PageSourceSearch

https://www.funx.nl/_next/static/chunks/1x2kec867h70u.js

js funx.nl collected 2026-10-01 11:32:19 UTC 700,444 bytes, 495 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="c0c985c4-00f5-d997-02e7-c7d50551cbf1")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,910560,(e,t,n)=>{"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}})},611829,(e,t,n)=>{"use strict";function r(e,t){var n=e.length;for(e.push(t);0<n;){var r=n-1>>>1,a=e[r];if(0<o(a,t))e[r]=t,e[n]=a,n=r;else break}}function a(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,a=e.length,i=a>>>1;r<i;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<a&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else if(u<a&&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(n.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var s,l=performance;n.unstable_now=function(){return l.now()}}else{var u=Date,c=u.now();n.unstable_now=function(){return u.now()-c}}var d=[],p=[],f=1,h=null,m=3,g=!1,y=!1,_=!1,b=!1,v="function"==typeof setTimeout?setTimeout:null,S="function"==typeof clearTimeout?clearTimeout:null,E="u">typeof setImmediate?setImmediate:null;function T(e){for(var t=a(p);null!==t;){if(null===t.callback)i(p);else if(t.startTime<=e)i(p),t.sortIndex=t.expirationTime,r(d,t);else break;t=a(p)}}function w(e){if(_=!1,T(e),!y)if(null!==a(d))y=!0,k||(k=!0,s());else{var t=a(p);null!==t&&P(w,t.startTime-e)}}var k=!1,I=-1,R=5,C=-1;function A(){return!!b||!(n.unstable_now()-C<R)}function N(){if(b=!1,k){var e=n.unstable_now();C=e;var t=!0;try{e:{y=!1,_&&(_=!1,S(I),I=-1),g=!0;var r=m;try{t:{for(T(e),h=a(d);null!==h&&!(h.expirationTime>e&&A());){var o=h.callback;if("function"==typeof o){h.callback=null,m=h.priorityLevel;var l=o(h.expirationTime<=e);if(e=n.unstable_now(),"function"==typeof l){h.callback=l,T(e),t=!0;break t}h===a(d)&&i(d),T(e)}else i(d);h=a(d)}if(null!==h)t=!0;else{var u=a(p);null!==u&&P(w,u.startTime-e),t=!1}}break e}finally{h=null,m=r,g=!1}}}finally{t?s():k=!1}}}if("function"==typeof E)s=function(){E(N)};else if("u">typeof MessageChannel){var x=new MessageChannel,O=x.port2;x.port1.onmessage=N,s=function(){O.postMessage(null)}}else s=function(){v(N,0)};function P(e,t){I=v(function(){e(n.unstable_now())},t)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(e){e.callback=null},n.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},n.unstable_getCurrentPriorityLevel=function(){return m},n.unstable_next=function(e){switch(m){case 1:case 2:case 3:var t=3;break;default:t=m}var n=m;m=t;try{return e()}finally{m=n}},n.unstable_requestPaint=function(){b=!0},n.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=m;m=e;try{return t()}finally{m=n}},n.unstable_scheduleCallback=function(e,t,i){var o=n.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?o+i:o,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=0x3fffffff;break;case 4:l=1e4;break;default:l=5e3}return l=i+l,e={id:f++,callback:t,priorityLevel:e,startTime:i,expirationTime:l,sortIndex:-1},i>o?(e.sortIndex=i,r(p,e),null===a(d)&&e===a(p)&&(_?(S(I),I=-1):_=!0,P(w,i-o))):(e.sortIndex=l,r(d,e),y||g||(y=!0,k||(k=!0,s()))),e},n.unstable_shouldYield=A,n.unstable_wrapCallback=function(e){var t=m;return function(){var n=m;m=t;try{return e.apply(this,arguments)}finally{m=n}}}},252659,(e,t,n)=>{"use strict";
2t.exports=e.r(611829)},531430,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"ReadonlyURLSearchParams",{enumerable:!0,get:function(){return a}});class r extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams"),Object.defineProperty(this,"__NEXT_ERROR_CODE",{value:"E1174",enumerable:!1,configurable:!0})}}class a extends URLSearchParams{append(){throw new r}delete(){throw new r}set(){throw new r}sort(){throw new r}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},470008,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={NavigationPromisesContext:function(){return c},PathParamsContext:function(){return u},PathnameContext:function(){return l},ReadonlyURLSearchParams:function(){return o.ReadonlyURLSearchParams},SearchParamsContext:function(){return s},createDevToolsInstrumentedPromise:function(){return d}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let i=e.r(191788),o=e.r(531430),s=(0,i.createContext)(null),l=(0,i.createContext)(null),u=(0,i.createContext)(null),c=(0,i.createContext)(null);function d(e,t){let n=Promise.resolve(t);return n.status="fulfilled",n.value=t,n.displayName=`${e} (SSR)`,n}},820011,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return s},isEqualNode:function(){return o}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let i=e.r(626016);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;else 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 n=t.title?t.title[0]:null,r="";if(n){let{children:e}=n.props;r="string"==typeof e?e:Array.isArray(e)?e.join(""):""}r!==document.title&&(document.title=r),["meta","base","link","style","script"].forEach(e=>{!function(e,t){let n=document.querySelector("head");if(!n)return;let r=new Set(n.querySelectorAll(`${e}[data-next-head]`));if("meta"===e){let e=n.querySelector("meta[charset]");null!==e&&r.add(e)}let a=[];for(let e=0;e<t.length;e++){let n=function({type:e,props:t}){let n=document.createElement(e);(0,i.setAttributesFromProps)(n,t);let{children:r,dangerouslySetInnerHTML:a}=t;return a?n.innerHTML=a.__html||"":r&&(n.textContent="string"==typeof r?r:Array.isArray(r)?r.join(""):""),n}(t[e]);n.setAttribute("data-next-head","");let s=!0;for(let e of r)if(o(e,n)){r.delete(e),s=!1;break}s&&a.push(n)}for(let e of r)e.parentNode?.removeChild(e);for(let e of a)"meta"===e.tagName.toLowerCase()&&null!==e.getAttribute("charset")&&n.prepend(e),n.appendChild(e)}(e,t[e]||[])})}}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},723788,(e,t,n)=>{"use strict";let r,a,i,o,s,l,u,c,d,p,f,h;Object.defineProperty(n,"__esModule",{value:!0});var m={emitter:function(){return $},hydrate:function(){return ep},initialize:function(){return G},router:function(){return r},version:function(){return j}};for(var g in m)Object.defineProperty(n,g,{enumerable:!0,get:m[g]});let y=e.r(741705),_=e.r(391398);e.r(910560);let b=y._(e.r(191788)),v=y._(e.r(681912)),S=e.r(713584),E=y._(e.r(547194)),T=e.r(425479),w=e.r(101280),k=e.r(478690),I=e.r(398928),R=e.r(889129),C=e.r(528035),A=y._(e.r(820011)),N=y._(e.r(687020)),x=e.r(145117),O=e.r(926990),P=e.r(653910),M=e.r(813521),L=e.r(544691),D=e.r(668186),U=e.r(701085),B=e.r(818126),F=e.r(470008),z=e.r(945290);e.r(339651),e.r(68934);let j="16.3.5",$=(0,E.default)(),H=!1;class W extends b.default.Component{componentDidCatch(e,t){this.props.fn(e,t)}componentDidMount(){this.scrollToHash(),r.isSsr&&(a.isFallback||a.nextE
2xport&&((0,k.isDynamicRoute)(r.pathname)||location.search||H)||a.props&&a.props.__N_SSG&&(location.search||H))&&r.replace(r.pathname+"?"+String((0,I.assign)((0,I.urlQueryToSearchParams)(r.query),new URLSearchParams(location.search))),i,{_h:1,shallow:!a.isFallback&&!H}).catch(e=>{if(!e.cancelled)throw e})}componentDidUpdate(){this.scrollToHash()}scrollToHash(){let{hash:e}=location;if(!(e=e&&e.substring(1)))return;let t=document.getElementById(e);t&&setTimeout(()=>t.scrollIntoView(),0)}render(){return this.props.children}}async function G(t={}){a=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=a,h=a.defaultLocale;let n=a.assetPrefix||"";if(self.__next_set_public_path__(`${n}/_next/`),i=(0,R.getURL)(),(0,D.hasBasePath)(i)&&(i=(0,L.removeBasePath)(i)),a.scriptLoader){let{initScriptLoader:t}=e.r(161457);t(a.scriptLoader)}o=new N.default(a.buildId,n);let u=([e,t])=>o.routeLoader.onEntrypoint(e,t);return window.__NEXT_P&&window.__NEXT_P.map(e=>setTimeout(()=>u(e),0)),window.__NEXT_P=[],window.__NEXT_P.push=u,(l=(0,A.default)()).getIsSsr=()=>r.isSsr,s=document.getElementById("__next"),{assetPrefix:n}}function q(e,t){return(0,_.jsx)(e,{...t})}function Y({children:e}){let t=b.default.useMemo(()=>(0,B.adaptForAppRouterInstance)(r),[]);return(0,_.jsx)(W,{fn:e=>J({App:d,err:e}).catch(e=>console.error("Error rendering page: ",e)),children:(0,_.jsx)(U.AppRouterContext.Provider,{value:t,children:(0,_.jsx)(F.SearchParamsContext.Provider,{value:(0,B.adaptForSearchParams)(r),children:(0,_.jsx)(B.PathnameContextProviderAdapter,{router:r,isAutoExport:self.__NEXT_DATA__.autoExport??!1,children:(0,_.jsx)(F.PathParamsContext.Provider,{value:(0,B.adaptForPathParams)(r),children:(0,_.jsx)(T.RouterContext.Provider,{value:(0,O.makePublicRouterInstance)(r),children:(0,_.jsx)(S.HeadManagerContext.Provider,{value:l,children:(0,_.jsx)(M.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1},children:e})})})})})})})})}let V=e=>t=>{let n={...t,Component:f,err:a.err,router:r};return(0,_.jsx)(Y,{children:q(e,n)})};function J(t){let{App:n,err:s}=t;return console.error(s),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),o.loadPage("/_error").then(({page:r,styleSheets:a})=>u?.Component===r?e.A(648761).then(r=>e.A(828805).then(e=>(t.App=n=e.default,r))).then(e=>({ErrorComponent:e.default,styleSheets:[]})):{ErrorComponent:r,styleSheets:a}).then(({ErrorComponent:e,styleSheets:o})=>{let l=V(n),u={Component:e,AppTree:l,router:r,ctx:{err:s,pathname:a.page,query:a.query,asPath:i,AppTree:l}};return Promise.resolve(t.props?.err?t.props:(0,R.loadGetInitialProps)(n,u)).then(n=>ec({...t,err:s,Component:e,styleSheets:o,props:n}))})}function K({callback:e}){return b.default.useLayoutEffect(()=>e(),[e]),null}let Q="beforeRender",X="afterRender",Z="afterHydrate",ee="routeChange",et="Next.js-hydration",en="Next.js-route-change-to-render",er="Next.js-render",ea=null,ei=!0;function eo(){[Q,Z,X,ee].forEach(e=>performance.clearMarks(e))}function es(){R.ST&&(performance.mark(Z),performance.getEntriesByName(Q,"mark").length&&(performance.measure("Next.js-before-hydration","navigationStart",Q),performance.measure(et,Q,Z)),p&&performance.getEntriesByName(et).forEach(p),eo())}function el(){if(!R.ST)return;performance.mark(X);let e=performance.getEntriesByName(ee,"mark");e.length&&(performance.getEntriesByName(Q,"mark").length&&(performance.measure(en,e[0].name,Q),performance.measure(er,Q,X),p&&(performance.getEntriesByName(er).forEach(p),performance.getEntriesByName(en).forEach(p))),eo(),[en,er].forEach(e=>performance.clearMeasures(e)))}function eu({callbacks:e,children:t}){return b.default.useLayoutEffect(()=>e.forEach(e=>e()),[e]),t}function ec(e){var t,n;let a,i,{App:o,Component:l,props:d,err:p}=e,f="initial"in e?void 0:e.styleSheets;l=l||u.Component;let h={...d=d||u.props,Component:l,err:p,router:r};u=h;let m=new Promise((e,t)=>
2{c&&c(),i=()=>{c=null,e()},c=()=>{c=null;let e=Object.defineProperty(Error("Cancel rendering route"),"__NEXT_ERROR_CODE",{value:"E503",enumerable:!1,configurable:!0});e.cancelled=!0,t(e)}});function g(){i()}!function(){let e;if(!f)return;let t=new Set((e=document.querySelectorAll("style[data-n-href]"),[].slice.call(e)).map(e=>e.getAttribute("data-n-href"))),n=document.querySelector("noscript[data-n-css]"),r=n?.getAttribute("data-n-css");f.forEach(({href:e,text:n})=>{if(!t.has(e)){let t=document.createElement("style");t.setAttribute("data-n-href",e),t.setAttribute("media","x"),r&&t.setAttribute("nonce",r),document.head.appendChild(t),t.appendChild(document.createTextNode(n))}})}();let y=(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(K,{callback:function(){if(e.scroll){let{x:t,y:n}=e.scroll;(0,w.disableSmoothScrollDuringRouteTransition)(()=>{window.scrollTo(t,n)})}}}),(0,_.jsxs)(Y,{children:[q(o,h),(0,_.jsx)(C.Portal,{type:"next-route-announcer",children:(0,_.jsx)(x.RouteAnnouncer,{})})]})]});return t=s,n=e=>(0,_.jsx)(eu,{callbacks:[e,g],children:y}),R.ST&&performance.mark(Q),a=n(ei?es:el),ea?(0,b.default.startTransition)(()=>{ea.render(a)}):(ea=v.default.hydrateRoot(t,a,{onRecoverableError:z.onRecoverableError}),ei=!1),m}async function ed(e){if(e.err&&(void 0===e.Component||!e.isHydratePass))return void await J(e);try{await ec(e)}catch(n){let t=(0,P.getProperError)(n);if(t.cancelled)throw t;await J({...e,err:t})}}async function ep(e){let t=a.err;try{let e=await o.routeLoader.whenEntrypoint("/_app");if("error"in e)throw e.error;let{component:t,exports:n}=e;d=t,n&&n.reportWebVitals&&(p=({id:e,name:t,startTime:r,value:a,duration:i,entryType:o,entries:s,attribution:l})=>{let u,c=`${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`;s&&s.length&&(u=s[0].startTime);let d={id:e||c,name:t,startTime:r||u,value:null==a?i:a,label:"mark"===o||"measure"===o?"custom":"web-vital"};l&&(d.attribution=l),n.reportWebVitals(d)});let r=await o.routeLoader.whenEntrypoint(a.page);if("error"in r)throw r.error;f=r.component}catch(e){t=(0,P.getProperError)(e)}window.__NEXT_PRELOADREADY&&await window.__NEXT_PRELOADREADY(a.dynamicIds),r=(0,O.createRouter)(a.page,a.query,i,{initialProps:a.props,pageLoader:o,App:d,Component:f,wrapApp:V,err:t,isFallback:!!a.isFallback,subscription:(e,t,n)=>ed(Object.assign({},e,{App:t,scroll:n})),locale:a.locale,locales:a.locales,defaultLocale:h,domainLocales:a.domainLocales,isPreview:a.isPreview}),H=await r._initialMatchesMiddlewarePromise;let n={App:d,initial:!0,Component:f,props:a.props,err:t,isHydratePass:!0};e?.beforeRender&&await e.beforeRender(),ed(n)}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},910783,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),e.r(983033),e.r(267398);let r=e.r(723788);window.next={version:r.version,turbopack:!0,get router(){return r.router},emitter:r.emitter},self.__next_set_public_path__=()=>{},self.__webpack_hash__="",(0,r.initialize)({}).then(()=>(self.__turbopack_load_page_chunks__=(t,n)=>{Promise.all(n.map(t=>e.l(t))).catch(e=>console.error("failed to load chunks for page "+t,e))},(0,r.hydrate)())).catch(e=>{console.error("Error was not caught",e)}),("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},687020,(e,t,n)=>{"use strict";var r=e.i(350461);Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return h}});let a=e.r(741705),i=e.r(344113),o=e.r(450169),s=a._(e.r(516544)),l=e.r(514862),u=e.r(478690),c=e.r(469590),d=e.r(523486),p=e.r(255447);e.r(558784);let f=e.r(861741);class h{constructor(e,t){this.routeLoader=(0,p.createRouteLoader)(t),this.buildId=e,this.assetPrefix=t,this.promisedSsgManifest=new Promise(e=>{window.__SSG_MANIFEST?e(window.__SSG_MANIFEST):window.__SSG_MANIFEST_CB=()=>{e(window.__SSG_MANIFEST)}})}
2getPageList(){return(0,p.getClientBuildManifest)().then(e=>e.sortedPages)}getMiddleware(){if(r.default.env.__NEXT_MIDDLEWARE_MATCHERS){let e=r.default.env.__NEXT_MIDDLEWARE_MATCHERS;return window.__MIDDLEWARE_MATCHERS=e||void 0,window.__MIDDLEWARE_MATCHERS}if(window.__MIDDLEWARE_MATCHERS)return window.__MIDDLEWARE_MATCHERS;{let e=new Promise(e=>{let t=self.__MIDDLEWARE_MATCHERS_CB;self.__MIDDLEWARE_MATCHERS_CB=()=>{e(self.__MIDDLEWARE_MATCHERS),t&&t()}});return(0,f.resolvePromiseWithTimeout)(e,(0,p.markAssetError)(Object.defineProperty(Error("Failed to load client middleware manifest"),"__NEXT_ERROR_CODE",{value:"E980",enumerable:!1,configurable:!0})),void 0)}}getDataHref(e){var t;let n,{asPath:r,href:a,locale:p}=e,{pathname:f,query:h,search:m}=(0,c.parseRelativeUrl)(a),{pathname:g}=(0,c.parseRelativeUrl)(r),y=(0,d.removeTrailingSlash)(f);if("/"!==y[0])throw Object.defineProperty(Error(`Route name should start with a "/", got "${y}"`),"__NEXT_ERROR_CODE",{value:"E303",enumerable:!1,configurable:!0});return t=e.skipInterpolation?g:(0,u.isDynamicRoute)(y)?(0,o.interpolateAs)(f,g,h).result:y,n=(0,s.default)((0,d.removeTrailingSlash)((0,l.addLocale)(t,p)),".json"),(0,i.addBasePath)(`/_next/data/${this.buildId}${n}${m}`,!0)}_isSsg(e){return this.promisedSsgManifest.then(t=>t.has(e))}loadPage(e){return this.routeLoader.loadRoute(e).then(e=>{if("component"in e)return{page:e.component,mod:e.exports,styleSheets:e.styles.map(e=>({href:e.href,text:e.content}))};throw e.error})}prefetch(e){return this.routeLoader.prefetch(e)}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},528035,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Portal",{enumerable:!0,get:function(){return i}});let r=e.r(191788),a=e.r(730943),i=({children:e,type:t})=>{let[n,i]=(0,r.useState)(null);return(0,r.useEffect)(()=>{let e=document.createElement(t);return document.body.appendChild(e),i(e),()=>{document.body.removeChild(e)}},[t]),n?(0,a.createPortal)(e,n):null};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},983033,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});let r=(0,e.r(420262).getDeploymentId)();globalThis.NEXT_DEPLOYMENT_ID=r,("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},145117,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={RouteAnnouncer:function(){return c},default:function(){return d}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let i=e.r(741705),o=e.r(391398),s=i._(e.r(191788)),l=e.r(926990),u={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",top:0,width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},c=()=>{let{asPath:e}=(0,l.useRouter)(),[t,n]=s.default.useState(""),r=s.default.useRef(e);return s.default.useEffect(()=>{if(r.current!==e)if(r.current=e,document.title)n(document.title);else{let t=document.querySelector("h1");n((t?.innerText??t?.textContent)||e)}},[e]),(0,o.jsx)("p",{"aria-live":"assertive",id:"__next-route-announcer__",role:"alert",style:u,children:t})},d=c;("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},701085,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return l},LayoutRouterContext:function(){return s},MissingSlotContext:function(){return c},TemplateContext:function(){return u}};
2for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let i=e.r(741705)._(e.r(191788)),o=i.default.createContext(null),s=i.default.createContext(null),l=i.default.createContext(null),u=i.default.createContext(null),c=i.default.createContext(new Set)},215125,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={VALID_LOADERS:function(){return i},imageConfigDefault:function(){return o}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let i=["default","imgix","cloudinary","akamai","custom"],o={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},813521,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"ImageConfigContext",{enumerable:!0,get:function(){return i}});let r=e.r(741705)._(e.r(191788)),a=e.r(215125),i=r.default.createContext(a.imageConfigDefault)},934221,(e,t,n)=>{"use strict";t.exports=["chrome 111","edge 111","firefox 111","safari 16.4"]},232063,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={UNDERSCORE_GLOBAL_ERROR_ROUTE:function(){return s},UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY:function(){return l},UNDERSCORE_NOT_FOUND_ROUTE:function(){return i},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return o}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let i="/_not-found",o=`${i}/page`,s="/_global-error",l=`${s}/page`},558784,(e,t,n)=>{"use strict";var r,a=e.i(350461);Object.defineProperty(n,"__esModule",{value:!0});var i={APP_CLIENT_INTERNALS:function(){return er},APP_PATHS_MANIFEST:function(){return v},APP_PATH_ROUTES_MANIFEST:function(){return S},AdapterOutputType:function(){return d},BARREL_OPTIMIZATION_PREFIX:function(){return V},BLOCKED_PAGES:function(){return H},BUILD_ID_FILE:function(){return $},BUILD_MANIFEST:function(){return E},CLIENT_PUBLIC_FILES_PATH:function(){return W},CLIENT_REFERENCE_MANIFEST:function(){return J},CLIENT_STATIC_FILES_PATH:function(){return G},CLIENT_STATIC_FILES_RUNTIME_MAIN:function(){return et},CLIENT_STATIC_FILES_RUNTIME_MAIN_APP:function(){return en},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS:function(){return eo},CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL:function(){return es},CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH:function(){return ea},CLIENT_STATIC_FILES_RUNTIME_WEBPACK:function(){return ei},COMPILER_INDEXES:function(){return c},COMPILER_NAMES:function(){return u},CONFIG_FILES:function(){return j},DEFAULT_RUNTIME_WEBPACK:function(){return el},DEFAULT_SANS_SERIF_FONT:function(){return ef},DEFAULT_SERIF_FONT:function(){return ep},DEV_CLIENT_MIDDLEWARE_MANIFEST:function(){return B},DEV_CLIENT_PAGES_MANIFEST:function(){return P},DYNAMIC_CSS_MANIFEST:function(){return ee},EDGE_RUNTIME_WEBPACK:function(){return eu},EDGE_UNSUPPORTED_NODE_APIS:function(){return e_},EXPORT_DETAIL:function(){return R},EXPORT_MARKER:function(){return I},FUNCTIONS_CONFIG_MANIFEST:function(){return T},IMAGES_MANIFEST:function(){return x},INTERCEPTION_ROUTE_REWRITE_MANIFEST:function(){return Z},MIDDLEWARE_BUILD_MANIFEST:function(){return Q},MIDDLEWARE_MANIFEST:function(){return L},MIDDLEWARE_REACT_LOADABLE_MANIFEST:function(){return X},MODERN_BROWSERSLIST_TARGET:function(){return s.default},NEXT_BUILTIN_DOCUMENT:function(){return Y},NEXT_FONT_MANIFEST:function(){return k},PAGES_MANIFEST:function(){return b},PHASE_ANALYZE:function(){return f},PHASE_DEVELOPMENT_SERVER:function(){return g},PHASE_EXPORT:function(){return p},PHASE_INFO:function(){return _},PHASE_PRODUCTION_BUILD:function(){return h},PHASE_PRODUCTION_SERVER:function(){return m},PHASE_TEST:function(){return y},PREFETCH_HINTS:function(){return A},PRERENDER_MANIFEST:function(){return C},REACT_LOADABLE_MANIFEST:function(){return F},REQUEST_INSIGHTS_DEV_ENDPOINT:function(){return M},ROUTES_MANIFEST:function(){return N},RSC_MODULE_TYPES:function(){return ey},SERVER_DIRECTORY:function(){return z},SERVER_FILES_MANIFEST:function(){return O},SERVER_PROPS_ID:function(){return ed},SERVER_REFERENCE_MANIFEST:function(){return K},STATIC_PROPS_ID:function(){return ec},STATIC_STATUS_PAGES:function(){return eh},STRING_LITERAL_DROP_BUNDLE:function(){return q},SUBRESOURCE_INTEGRITY_MANIFEST:function(){return w},SYSTEM_ENTRYPOINTS:function(){return eb},TRACE_OUTPUT_VERSION:function(){return em},TURBOPACK_CLIENT_BUILD_MANIFEST:function(){return U},TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST:function(){return D},TURBO_TRACE_DEFAULT_MEMORY_LIMIT:function(){return eg},UNDERSCORE_GLOBAL_ERROR_ROUTE:function(){return l.UNDERSCORE_GLOBAL_ERROR_ROUTE},UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY:function(){return l.UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY},UNDERSCORE_NOT_FOUND_ROUTE:function(){return l.UNDERSCORE_NOT_FOUND_ROUTE},UNDERSCORE_NOT_FOUND_ROUTE_ENTRY:function(){return l.UNDERSCORE_NOT_FOUND_ROUTE_ENTRY}};for(var o in i)Object.defineProperty(n,o,{enumerable:!0,get:i[o]});let s=e.r(741705)._(e.r(934221)),l=e.r(232063),u={client:"client",server:"server",edgeServer:"edge-server"},c={[u.client]:0,[u.server]:1,[u.edgeServer]:2};var d=((r={}).PAGES="PAGES",r.PAGES_API="PAGES_API",r.APP_PAGE="APP_PAGE",r.APP_ROUTE="APP_ROUTE",r.PRERENDER="PRERENDER",r.STATIC_FILE="STATIC_FILE",r.MIDDLEWARE="MIDDLEWARE",r);let p="phase-export",f="phase-analyze",h="phase-production-build",m="phase-production-server",g="phase-development-server",y="phase-test",_="phase-info",b="pages-manifest.json",v="app-paths-manifest.json",S="app-path-routes-manifest.json",E="build-manifest.json",T="functions-config-manifest.json",w="subresource-integrity-manifest",k="next-font-manifest",I="export-marker.json",R="export-detail.json",C="prerender-manifest.json",A="prefetch-hints.json",N="routes-manifest.json",x="images-manifest.json",O="required-server-files",P="_devPagesManifest.json",M="/_next/development/request-insights",L="middleware-manifest.json",D="_clientMiddlewareManifest.js",U="client-build-manifest.json",B="_devMiddlewareManifest.json",F="react-loadable-manifest.json",z="server",j=["next.config.js","next.config.mjs","next.config.ts",...a.default?.features?.typescript?["next.config.mts"]:[]],$="BUILD_ID",H=["/_document","/_app","/_error"],W="public",G="static",q="__NEXT_DROP_CLIENT_FILE__",Y="__NEXT_BUILTIN_DOCUMENT__",V="__barrel_optimize__",J="client-reference-manifest",K="server-reference-manifest",Q="middleware-build-manifest",X="middleware-react-loadable-manifest",Z="interception-route-rewrite-manifest",ee="dynamic-css-manifest",et="main",en=`${et}-app`,er="app-pages-internals",ea="react-refresh",ei="webpack",eo="polyfills",es=Symbol(eo),el="webpack-runtime",eu="edge-runtime-webpack",ec="__N_SSG",ed="__N_SSP",ep={name:"Times New Roman",xAvgCharWidth:821,azAvgWidth:854.3953488372093,unitsPerEm:2048},ef={name:"Arial",xAvgCharWidth:904,azAvgWidth:934.5116279069767,unitsPerEm:2048},eh=["/500"],em=1,eg=6e3,ey={client:"client",server:"server"},e_=["clearImmediate","setImmediate","BroadcastChannel","ByteLengthQueuingStrategy","CompressionStream","CountQueuingStrategy","DecompressionStream","DomException","MessageChannel","MessageEvent","MessagePort","ReadableByteStreamController","ReadableStreamBYOBRequest","ReadableStreamDefaultController","TransformStreamDefaultController","WritableStreamDefaultController"],eb=new Set([et,ea,en]);("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esMo
2dule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},818793,(e,t,n)=>{t.exports=e.r(558784)},818126,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={PathnameContextProviderAdapter:function(){return m},adaptForAppRouterInstance:function(){return p},adaptForPathParams:function(){return h},adaptForSearchParams:function(){return f}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let i=e.r(952456),o=e.r(391398),s=i._(e.r(191788)),l=e.r(470008),u=e.r(931235),c=e.r(566717),d=e.r(394599);function p(e){return{back(){e.back()},forward(){e.forward()},refresh(){e.reload()},hmrRefresh(){},push(t,{scroll:n}={}){e.push(t,void 0,{scroll:n})},replace(t,{scroll:n}={}){e.replace(t,void 0,{scroll:n})},prefetch(t){e.prefetch(t)},bfcacheId:"0"}}function f(e){return e.isReady&&e.query?(0,c.asPathToSearchParams)(e.asPath):new URLSearchParams}function h(e){if(!e.isReady||!e.query)return null;let t={};for(let n of Object.keys((0,d.getRouteRegex)(e.pathname).groups))t[n]=e.query[n];return t}function m({children:e,router:t,...n}){let r=(0,s.useRef)(n.isAutoExport),a=(0,s.useMemo)(()=>{let e,n=r.current;if(n&&(r.current=!1),(0,u.isDynamicRoute)(t.pathname)&&(t.isFallback||n&&!t.isReady))return null;try{e=new URL(t.asPath,"http://f")}catch(e){return"/"}return e.pathname},[t.asPath,t.isFallback,t.isReady,t.pathname]);return(0,o.jsx)(l.PathnameContext.Provider,{value:a,children:e})}},14760,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={BailoutToCSRError:function(){return o},isBailoutToCSRError:function(){return s}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let i="BAILOUT_TO_CLIENT_SIDE_RENDERING";class o extends Error{constructor(e){super(`Bail out to client-side rendering: ${e}`),this.reason=e,this.digest=i}}function s(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===i}},665288,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"reportGlobalError",{enumerable:!0,get:function(){return r}});let r="function"==typeof reportError?reportError:e=>{globalThis.console.error(e)};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},945290,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={isRecoverableError:function(){return c},onRecoverableError:function(){return d}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let i=e.r(741705),o=e.r(14760),s=i._(e.r(653910)),l=e.r(665288),u=new WeakSet;function c(e){return u.has(e)}let d=e=>{let t=(0,s.default)(e)&&"cause"in e?e.cause:e;(0,o.isBailoutToCSRError)(t)||(0,l.reportGlobalError)(t)};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},339651,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return i}});let r=e.r(741705)._(e.r(547194));class a{constructor(e,t,n){this.name=e,this.attributes=t.attributes??{},this.startTime=t.startTime??Date.now(),this.onSpanEnd=n,this.state={state:"inprogress"}}end(e){if("ended"===this.state.state)throw Object.defineProperty(Error("Span has already ended"),"__NEXT_ERROR_CODE",{value:"E17",enumerable:!1,configurable:!0});this.state={state:"ended",endTime:e??Date.now()},this.onSpanEnd(this)}}let i=new class{startSpan(e,t){return new a(e,t,this.handleSpanEnd)}onSpanEnd(e){return this._emitter.on("spanend",e),()=>{this._emitter.off("spanend",e)}}constructor(){this._emitter=(0,r.default)(),this.handleSpanEnd=e=>{this._emitter.emit("spanend",e)}}};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},991622,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={HTTPAccessErrorStatus:function(){return i}
2,HTTP_ERROR_FALLBACK_ERROR_CODE:function(){return s},getAccessFallbackErrorTypeByStatus:function(){return c},getAccessFallbackHTTPStatus:function(){return u},isHTTPAccessFallbackError:function(){return l}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let i={NOT_FOUND:404,FORBIDDEN:403,UNAUTHORIZED:401},o=new Set(Object.values(i)),s="NEXT_HTTP_ERROR_FALLBACK";function l(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,n]=e.digest.split(";");return t===s&&o.has(Number(n))}function u(e){return Number(e.digest.split(";")[1])}function c(e){switch(e){case 401:return"unauthorized";case 403:return"forbidden";case 404:return"not-found";default:return}}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},40184,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"RedirectStatusCode",{enumerable:!0,get:function(){return a}});var r,a=((r={})[r.SeeOther=303]="SeeOther",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",r);("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},301939,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={REDIRECT_ERROR_CODE:function(){return o},isRedirectError:function(){return s}};for(var a in r)Object.defineProperty(n,a,{enumerable:!0,get:r[a]});let i=e.r(40184),o="NEXT_REDIRECT";function s(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let t=e.digest.split(";"),[n,r]=t,a=t.slice(2,-2).join(";"),s=Number(t.at(-2));return n===o&&("replace"===r||"push"===r)&&"string"==typeof a&&!isNaN(s)&&s in i.RedirectStatusCode}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},68934,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isNextRouterError",{enumerable:!0,get:function(){return i}});let r=e.r(991622),a=e.r(301939);function i(e){return(0,a.isRedirectError)(e)||(0,r.isHTTPAccessFallbackError)(e)}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},566717,(e,t,n)=>{"use strict";function r(e){return new URL(e,"http://n").searchParams}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"asPathToSearchParams",{enumerable:!0,get:function(){return r}})},857647,(e,t,n)=>{"use strict";var r,a=e.i(350461),i=e.r(252659),o=e.r(191788),s=e.r(730943);function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function c(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do 0!=(4098&(t=e).flags)&&(n=t.return),e=t.return;while(e)}return 3===t.tag?n:null}function d(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function p(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function f(e){if(c(e)!==e)throw Error(l(188))}var h=Object.assign,m=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),E=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope");var C=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var A=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var N=Symbol.iterator;function x(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=N&&e[N]||e["@@iterator"])?e:null}var O=Symbol.for("react.client.reference"),P=Array.isArray,M=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D={pending:!1,data:null,method:null,action:null},U=[],B=-1;function F(e){return{current:e}}function z(e){0>B||(e.current=U[B],U[B]=null,B--)}function j(e,t){U[++B]=e.current,e.current=t}var $=F(null),H=F(null),W=F(null),G=F(null);function q(e,t){switch(j(W,t),j(H,e),j($,null),t.nodeType){case 9:case 11:e=(e
2=t.documentElement)&&(e=e.namespaceURI)?ug(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=uy(t=ug(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}z($),j($,e)}function Y(){z($),z(H),z(W)}function V(e){null!==e.memoizedState&&j(G,e);var t=$.current,n=uy(t,e.type);t!==n&&(j(H,e),j($,n))}function J(e){H.current===e&&(z($),z(H)),G.current===e&&(z(G),u9._currentValue=D)}function K(e){if(void 0===tL)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);tL=t&&t[1]||"",tD=-1<e.stack.indexOf("\n    at")?" (<anonymous>)":-1<e.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+tL+e+tD}var Q=!1;function X(e,t){if(!e||Q)return"";Q=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(e){if(e&&r&&"string"==typeof e.stack)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),o=i[0],s=i[1];if(o&&s){var l=o.split("\n"),u=s.split("\n");for(a=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(r===l.length||a===u.length)for(r=l.length-1,a=u.length-1;1<=r&&0<=a&&l[r]!==u[a];)a--;for(;1<=r&&0<=a;r--,a--)if(l[r]!==u[a]){if(1!==r||1!==a)do if(r--,a--,0>a||l[r]!==u[a]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=r&&0<=a)break}}}finally{Q=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?K(n):""}function Z(e){try{var t="",n=null;do t+=function(e,t){switch(e.tag){case 26:case 27:case 5:return K(e.type);case 16:return K("Lazy");case 13:return e.child!==t&&null!==t?K("Suspense Fallback"):K("Suspense");case 19:return K("SuspenseList");case 0:case 15:return X(e.type,!1);case 11:return X(e.type.render,!1);case 1:return X(e.type,!0);case 31:return K("Activity");default:return""}}(e,n),n=e,e=e.return;while(e)return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var ee=Object.prototype.hasOwnProperty,et=i.unstable_scheduleCallback,en=i.unstable_cancelCallback,er=i.unstable_shouldYield,ea=i.unstable_requestPaint,ei=i.unstable_now,eo=i.unstable_getCurrentPriorityLevel,es=i.unstable_ImmediatePriority,el=i.unstable_UserBlockingPriority,eu=i.unstable_NormalPriority,ec=i.unstable_LowPriority,ed=i.unstable_IdlePriority,ep=(i.log,i.unstable_setDisableYieldValue,null),ef=null,eh=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(em(e)/eg|0)|0},em=Math.log,eg=Math.LN2,ey=256,e_=262144,eb=4194304;function ev(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 0x1000000:case 0x2000000:return 0x3c00000&e;case 0x4000000:return 0x4000000;case 0x8000000:return 0x8000000;case 0x10000000:return 0x10000000;case 0x20000000:return 0x20000000;case 0x40000000:return 0;default:return e}}function eS(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var a=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=0x7ffffff&r;return 0!==s?0!=(r=s&~i)?a=ev(r):0!=(o&=s)?a=ev(o):n||0!=(n=s&~e)&&(a=ev(n)):0!=(s=r&~i)?a=ev(s):0!==o?a=ev(o):n||0!=(n=r&~e)&&(a=ev(n)),0===a?0:0!==t&&t!==a&&0==(t&i)&&((i=a&-a)>=(n=t&-t)||32===i&&0!=(4194048&n))?t:a}function eE(e,t){return 0==(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function eT(){var e=eb;return 0==(0x3c00000&(eb<<=1))&&(eb=4194304),e}function ew(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}
vendor: 4,458 bytes, line 2
2function ek(e,t){e.pendingLanes|=t,0x10000000!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function eI(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-eh(t);e.entangledLanes|=t,e.entanglements[r]=0x40000000|e.entanglements[r]|261930&n}function eR(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-eh(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function eC(e,t){var n=t&-t;return 0!=((n=0!=(42&n)?1:eA(n))&(e.suspendedLanes|t))?0:n}function eA(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 0x1000000:case 0x2000000:e=128;break;case 0x10000000:e=0x8000000;break;default:e=0}return e}function eN(e){return 2<(e&=-e)?8<e?0!=(0x7ffffff&e)?32:0x10000000:8:2}function ex(){var e=L.p;return 0!==e?e:void 0===(e=window.event)?32:ch(e.type)}function eO(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var eP=Math.random().toString(36).slice(2),eM="__reactFiber$"+eP,eL="__reactProps$"+eP,eD="__reactContainer$"+eP,eU="__reactEvents$"+eP,eB="__reactListeners$"+eP,eF="__reactHandles$"+eP,ez="__reactResources$"+eP,ej="__reactMarker$"+eP;function e$(e){delete e[eM],delete e[eL],delete e[eU],delete e[eB],delete e[eF]}function eH(e){var t=e[eM];if(t)return t;for(var n=e.parentNode;n;){if(t=n[eD]||n[eM]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uL(e);null!==e;){if(n=e[eM])return n;e=uL(e)}return t}n=(e=n).parentNode}return null}function eW(e){if(e=e[eM]||e[eD]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function eG(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(l(33))}function eq(e){var t=e[ez];return t||(t=e[ez]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function eY(e){e[ej]=!0}var eV=new Set,eJ={};function eK(e,t){eQ(e,t),eQ(e+"Capture",t)}function eQ(e,t){for(eJ[e]=t,e=0;e<t.length;e++)eV.add(t[e])}var eX=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),eZ={},e0={};function e1(e,t,n){if(ee.call(e0,t)||!ee.call(eZ,t)&&(eX.test(t)?e0[t]=!0:(eZ[t]=!0,!1)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function e2(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function e3(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function e4(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function e5(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function e6(e){if(!e._valueTracker){var t=e5(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function e8(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=e5(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function e7(e){if(void 0===(e=e||("u">typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var e9=/[\n"\\]/g;function te(e){return e.replace(e9,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}
vendor: 4,397 bytes, line 2
2function tt(e,t,n,r,a,i,o,s){e.name="",null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.type=o:e.removeAttribute("type"),null!=t?"number"===o?(0===t&&""===e.value||e.value!=t)&&(e.value=""+e4(t)):e.value!==""+e4(t)&&(e.value=""+e4(t)):"submit"!==o&&"reset"!==o||e.removeAttribute("value"),null!=t?tr(e,o,e4(t)):null!=n?tr(e,o,e4(n)):null!=r&&e.removeAttribute("value"),null==a&&null!=i&&(e.defaultChecked=!!i),null!=a&&(e.checked=a&&"function"!=typeof a&&"symbol"!=typeof a),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+e4(s):e.removeAttribute("name")}function tn(e,t,n,r,a,i,o,s){if(null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i&&(e.type=i),null!=t||null!=n){if(("submit"===i||"reset"===i)&&null==t)return void e6(e);n=null!=n?""+e4(n):"",t=null!=t?""+e4(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:a)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.name=o),e6(e)}function tr(e,t,n){"number"===t&&e7(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function ta(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+e4(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function ti(e,t,n){if(null!=t&&((t=""+e4(t))!==e.value&&(e.value=t),null==n)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=null!=n?""+e4(n):""}function to(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(l(92));if(P(r)){if(1<r.length)throw Error(l(93));r=r[0]}n=r}null==n&&(n=""),t=n}e.defaultValue=n=e4(t),(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r),e6(e)}function ts(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var tl=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function tu(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||tl.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function tc(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(l(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&tu(e,a,r)}else for(var i in t)t.hasOwnProperty(i)&&tu(e,i,t[i])}function td(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var tp=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
2dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),tf=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function th(e){return tf.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function tm(){}var tg=null;function ty(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.n
vendor: 4,899 bytes, line 2
2odeType?e.parentNode:e}var t_=null,tb=null;function tv(e){var t=eW(e);if(t&&(e=t.stateNode)){var n=e[eL]||null;switch(e=t.stateNode,t.type){case"input":if(tt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+te(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[eL]||null;if(!a)throw Error(l(90));tt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&e8(r)}break;case"textarea":ti(e,n.value,n.defaultValue);break;case"select":null!=(t=n.value)&&ta(e,!!n.multiple,t,!1)}}}var tS=!1;function tE(e,t,n){if(tS)return e(t,n);tS=!0;try{return e(t)}finally{if(tS=!1,(null!==t_||null!==tb)&&(lc(),t_&&(t=t_,e=tb,tb=t_=null,tv(t),e)))for(t=0;t<e.length;t++)tv(e[t])}}function tT(e,t){var n=e.stateNode;if(null===n)return null;var r=n[eL]||null;if(null===r)return null;switch(n=r[t],t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r="button"!==(e=e.type)&&"input"!==e&&"select"!==e&&"textarea"!==e),e=!r;break;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(l(231,t,typeof n));return n}var tw="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,tk=!1;if(tw)try{var tI={};Object.defineProperty(tI,"passive",{get:function(){tk=!0}}),window.addEventListener("test",tI,tI),window.removeEventListener("test",tI,tI)}catch(e){tk=!1}var tR=null,tC=null,tA=null;function tN(){if(tA)return tA;var e,t,n=tC,r=n.length,a="value"in tR?tR.value:tR.textContent,i=a.length;for(e=0;e<r&&n[e]===a[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===a[i-t];t++);return tA=a.slice(e,1<t?1-t:void 0)}function tx(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function tO(){return!0}function tP(){return!1}function tM(e){function t(t,n,r,a,i){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(a):a[o]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?tO:tP,this.isPropagationStopped=tP,this}return h(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=tO)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=tO)},persist:function(){},isPersistent:tO}),t}var tL,tD,tU,tB,tF,tz={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tj=tM(tz),t$=h({},tz,{view:0,detail:0}),tH=tM(t$),tW=h({},t$,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:t1,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==tF&&(tF&&"mousemove"===e.type?(tU=e.screenX-tF.screenX,tB=e.screenY-tF.screenY):tB=tU=0,tF=e),tU)},movementY:function(e){return"movementY"in e?e.movementY:tB}}),tG=tM(tW),tq=tM(h({},tW,{dataTransfer:0})),tY=tM(h({},t$,{relatedTarget:0})),tV=tM(h({},tz,{animationName:0,elapsedTime:0,pseudoElement:0})),tJ=tM(h({},tz,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),tK=tM(h({},tz,{data:0})),tQ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tX={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},tZ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function t0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=tZ[e])&&!!t[e]}function t1(){return t0}var t2=tM(h({},t$,{key:function(e){if(e.key){var t=tQ[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tx(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"ke
2yup"===e.type?tX[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:t1,charCode:function(e){return"keypress"===e.type?tx(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tx(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),t3=tM(h({},tW,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),t4=tM(h({},t$,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:t1})),t5=tM(h({},tz,{propertyName:0,elapsedTime:0,pseudoElement:0})),t6=tM(h({},tW,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),t8=tM(h({},tz,{newState:0,oldState:0})),t7=[9,13,27,32],t9=tw&&"CompositionEvent"in window,ne=null;tw&&"documentMode"in document&&(ne=document.documentMode);var nt=tw&&"TextEvent"in window&&!ne,nn=tw&&(!t9||ne&&8<ne&&11>=ne),nr=!1;function na(e,t){switch(e){case"keyup":return -1!==t7.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ni(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var no=!1,ns={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function nl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ns[e.type]:"textarea"===t}function nu(e,t,n,r){t_?tb?tb.push(r):tb=[r]:t_=r,0<(t=un(t,"onChange")).length&&(n=new tj("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nc=null,nd=null;function np(e){l4(e,0)}function nf(e){if(e8(eG(e)))return e}function nh(e,t){if("change"===e)return t}var nm=!1;if(tw){if(tw){var ng="oninput"in document;if(!ng){var ny=document.createElement("div");ny.setAttribute("oninput","return;"),ng="function"==typeof ny.oninput}r=ng}else r=!1;nm=r&&(!document.documentMode||9<document.documentMode)}function n_(){nc&&(nc.detachEvent("onpropertychange",nb),nd=nc=null)}function nb(e){if("value"===e.propertyName&&nf(nd)){var t=[];nu(t,nd,e,ty(e)),tE(np,t)}}function nv(e,t,n){"focusin"===e?(n_(),nc=t,nd=n,nc.attachEvent("onpropertychange",nb)):"focusout"===e&&n_()}function nS(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return nf(nd)}function nE(e,t){if("click"===e)return nf(t)}function nT(e,t){if("input"===e||"change"===e)return nf(t)}var nw="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function nk(e,t){if(nw(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!ee.call(t,a)||!nw(e[a],t[a]))return!1}return!0}function nI(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nR(e,t){var n,r=nI(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=nI(r)}}function nC(e){e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;for(var t=e7(e.document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=e7(e.document)}return t}function nA(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var nN=tw&&"documentMode"in document&&11>=document.documentMode,nx=null,nO=null,nP=null,nM=!1;function nL(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;nM||null==nx||nx!==e7(r)||(r="selectionStart"in(r=nx)&&nA(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,134 bytes, line 2
2sNode:r.focusNode,focusOffset:r.focusOffset},nP&&nk(nP,r)||(nP=r,0<(r=un(nO,"onSelect")).length&&(t=new tj("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=nx)))}function nD(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var nU={animationend:nD("Animation","AnimationEnd"),animationiteration:nD("Animation","AnimationIteration"),animationstart:nD("Animation","AnimationStart"),transitionrun:nD("Transition","TransitionRun"),transitionstart:nD("Transition","TransitionStart"),transitioncancel:nD("Transition","TransitionCancel"),transitionend:nD("Transition","TransitionEnd")},nB={},nF={};function nz(e){if(nB[e])return nB[e];if(!nU[e])return e;var t,n=nU[e];for(t in n)if(n.hasOwnProperty(t)&&t in nF)return nB[e]=n[t];return e}tw&&(nF=document.createElement("div").style,"AnimationEvent"in window||(delete nU.animationend.animation,delete nU.animationiteration.animation,delete nU.animationstart.animation),"TransitionEvent"in window||delete nU.transitionend.transition);var nj=nz("animationend"),n$=nz("animationiteration"),nH=nz("animationstart"),nW=nz("transitionrun"),nG=nz("transitionstart"),nq=nz("transitioncancel"),nY=nz("transitionend"),nV=new Map,nJ="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function nK(e,t){nV.set(e,t),eK(t,[e])}nJ.push("scrollEnd");var nQ="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof a.default&&"function"==typeof a.default.emit)return void a.default.emit("uncaughtException",e);console.error(e)},nX=[],nZ=0,n0=0;function n1(){for(var e=nZ,t=n0=nZ=0;t<e;){var n=nX[t];nX[t++]=null;var r=nX[t];nX[t++]=null;var a=nX[t];nX[t++]=null;var i=nX[t];if(nX[t++]=null,null!==r&&null!==a){var o=r.pending;null===o?a.next=a:(a.next=o.next,o.next=a),r.pending=a}0!==i&&n5(n,a,i)}}function n2(e,t,n,r){nX[nZ++]=e,nX[nZ++]=t,nX[nZ++]=n,nX[nZ++]=r,n0|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function n3(e,t,n,r){return n2(e,t,n,r),n6(e)}function n4(e,t){return n2(e,null,null,t),n6(e)}function n5(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var a=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(a=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,a&&null!==t&&(a=31-eh(n),null===(r=(e=i.hiddenUpdates)[a])?e[a]=[t]:r.push(t),t.lane=0x20000000|n),i):null}function n6(e){if(50<ln)throw ln=0,lr=null,Error(l(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var n8={};function n7(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function n9(e,t,n,r){return new n7(e,t,n,r)}function re(e){return!(!(e=e.prototype)||!e.isReactComponent)}function rt(e,t){var n=e.alternate;return null===n?((n=n9(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deleti
vendor: 3,250 bytes, line 2
2ons=null),n.flags=0x3e00000&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function rn(e,t){e.flags&=0x3e00002;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,e.dependencies=null===(t=n.dependencies)?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function rr(e,t,n,r,a,i){var o=0;if(r=e,"function"==typeof e)re(e)&&(o=1);else if("string"==typeof e)o=!function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;if("stylesheet"===t.rel)return e=t.disabled,"string"==typeof t.precedence&&null==e;return!0;case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,$.current)?"html"===e||"head"===e||"body"===e?27:5:26;else e:switch(e){case C:return(e=n9(31,n,t,a)).elementType=C,e.lanes=i,e;case _:return ra(n.children,a,i,t);case b:o=8,a|=24;break;case v:return(e=n9(12,n,t,2|a)).elementType=v,e.lanes=i,e;case w:return(e=n9(13,n,t,a)).elementType=w,e.lanes=i,e;case k:return(e=n9(19,n,t,a)).elementType=k,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case E:o=10;break e;case S:o=9;break e;case T:o=11;break e;case I:o=14;break e;case R:o=16,r=null;break e}o=29,n=Error(l(130,null===e?"null":typeof e,"")),r=null}return(t=n9(o,n,t,a)).elementType=e,t.type=r,t.lanes=i,t}function ra(e,t,n,r){return(e=n9(7,e,r,t)).lanes=n,e}function ri(e,t,n){return(e=n9(6,e,null,t)).lanes=n,e}function ro(e){var t=n9(18,null,null,0);return t.stateNode=e,t}function rs(e,t,n){return(t=n9(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var rl=new WeakMap;function ru(e,t){if("object"==typeof e&&null!==e){var n=rl.get(e);return void 0!==n?n:(t={value:e,source:t,stack:Z(t)},rl.set(e,t),t)}return{value:e,source:t,stack:Z(t)}}var rc=[],rd=0,rp=null,rf=0,rh=[],rm=0,rg=null,ry=1,r_="";function rb(e,t){rc[rd++]=rf,rc[rd++]=rp,rp=e,rf=t}function rv(e,t,n){rh[rm++]=ry,rh[rm++]=r_,rh[rm++]=rg,rg=e;var r=ry;e=r_;var a=32-eh(r)-1;r&=~(1<<a),n+=1;var i=32-eh(t)+a;if(30<i){var o=a-a%5;i=(r&(1<<o)-1).toString(32),r>>=o,a-=o,ry=1<<32-eh(t)+a|n<<a|r,r_=i+e}else ry=1<<i|n<<a|r,r_=e}function rS(e){null!==e.return&&(rb(e,1),rv(e,1,0))}function rE(e){for(;e===rp;)rp=rc[--rd],rc[rd]=null,rf=rc[--rd],rc[rd]=null;for(;e===rg;)rg=rh[--rm],rh[rm]=null,r_=rh[--rm],rh[rm]=null,ry=rh[--rm],rh[rm]=null}
vendor: 3,546 bytes, line 2
2function rT(e,t){rh[rm++]=ry,rh[rm++]=r_,rh[rm++]=rg,ry=t.id,r_=t.overflow,rg=e}var rw=null,rk=null,rI=!1,rR=null,rC=!1,rA=Error(l(519));function rN(e){var t=Error(l(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML",""));throw rD(ru(t,e)),rA}function rx(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[eM]=e,t[eL]=r,n){case"dialog":l5("cancel",t),l5("close",t);break;case"iframe":case"object":case"embed":l5("load",t);break;case"video":case"audio":for(n=0;n<l2.length;n++)l5(l2[n],t);break;case"source":l5("error",t);break;case"img":case"image":case"link":l5("error",t),l5("load",t);break;case"details":l5("toggle",t);break;case"input":l5("invalid",t),tn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":l5("invalid",t);break;case"textarea":l5("invalid",t),to(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||ul(t.textContent,n)?(null!=r.popover&&(l5("beforetoggle",t),l5("toggle",t)),null!=r.onScroll&&l5("scroll",t),null!=r.onScrollEnd&&l5("scrollend",t),null!=r.onClick&&(t.onclick=tm),t=!0):t=!1,t||rN(e,!0)}function rO(e){for(rw=e.return;rw;)switch(rw.tag){case 5:case 31:case 13:rC=!1;return;case 27:case 3:rC=!0;return;default:rw=rw.return}}function rP(e){if(e!==rw)return!1;if(!rI)return rO(e),rI=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t="form"===(t=e.type)||"button"===t||u_(e.type,e.memoizedProps)),t=!t),t&&rk&&rN(e),rO(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));rk=uM(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(l(317));rk=uM(e)}else 27===n?(n=rk,uk(e.type)?(e=uP,uP=null,rk=e):rk=n):rk=rw?uO(e.stateNode.nextSibling):null;return!0}function rM(){rk=rw=null,rI=!1}function rL(){var e=rR;return null!==e&&(null===sX?sX=e:sX.push.apply(sX,e),rR=null),e}function rD(e){null===rR?rR=[e]:rR.push(e)}var rU=F(null),rB=null,rF=null;function rz(e,t,n){j(rU,t._currentValue),t._currentValue=n}function rj(e){e._currentValue=rU.current,z(rU)}function r$(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function rH(e,t,n,r){var a=e.child;for(null!==a&&(a.return=e);null!==a;){var i=a.dependencies;if(null!==i){var o=a.child;i=i.firstContext;e:for(;null!==i;){var s=i;i=a;for(var u=0;u<t.length;u++)if(s.context===t[u]){i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),r$(i.return,n,e),r||(o=null);break e}i=s.next}}else if(18===a.tag){if(null===(o=a.return))throw Error(l(341));o.lanes|=n,null!==(i=o.alternate)&&(i.lanes|=n),r$(o,n,e),o=null}else o=a.child;if(null!==o)o.return=a;else for(o=a;null!==o;){if(o===e){o=null;break}if(null!==(a=o.sibling)){a.return=o.return,o=a;break}o=o.return}a=o}}function rW(e,t,n,r){e=null;for(var a=t,i=!1;null!==a;){if(!i){if(0!=(524288&a.flags))i=!0;else if(0!=(262144&a.flags))break}if(10===a.tag){var o=a.alternate;if(null===o)throw Error(l(387));if(null!==(o=o.memoizedProps)){var s=a.type;nw(a.pendingProps.value,o.value)||(null!==e?e.push(s):e=[s])}}else if(a===G.current){if(null===(o=a.alternate))throw Error(l(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(null!==e?e.push(u9):e=[u9])}a=a.return}null!==e&&rH(t,e,n,r),t.flags|=262144}function rG(e){for(e=e.firstContext;null!==e;){if(!nw(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}
2function rq(e){rB=e,rF=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function rY(e){return rJ(rB,e)}function rV(e,t){return null===rB&&rq(e),rJ(e,t)}function rJ(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===rF){if(null===e)throw Error(l(308));rF=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else rF=rF.next=t;return n}var rK="u">typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},rQ=i.unstable_scheduleCallback,rX=i.unstable_NormalPriority,rZ={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function r0(){return{controller:new rK,data:new Map,refCount:0}}function r1(e){e.refCount--,0===e.refCount&&rQ(rX,function(){e.controller.abort()})}var r2=null,r3=0,r4=0,r5=null;function r6(){if(0==--r3&&null!==r2){null!==r5&&(r5.status="fulfilled");var e=r2;r2=null,r4=0,r5=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var r8=M.S;M.S=function(e,t){s1=ei(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e){if(null===r2){var t=r2=[];r3=0,r4=lQ(),r5={status:"pending",value:void 0,then:function(e){t.push(e)}}}r3++,e.then(r6,r6)}(t),null!==r8&&r8(e,t)};var r7=F(null);function r9(){var e=r7.current;return null!==e?e:sD.pooledCache}function ae(e,t){null===t?j(r7,r7.current):j(r7,t.pool)}function at(){var e=r9();return null===e?null:{parent:rZ._currentValue,pool:e}}var an=Error(l(460)),ar=Error(l(474)),aa=Error(l(542)),ai={then:function(){}};function ao(e){return"fulfilled"===(e=e.status)||"rejected"===e}function as(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(tm,tm),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ad(e=t.reason),e;default:if("string"==typeof t.status)t.then(tm,tm);else{if(null!==(e=sD)&&100<e.shellSuspendCounter)throw Error(l(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw ad(e=t.reason),e}throw au=t,an}}function al(e){try{return(0,e._init)(e._payload)}catch(e){if(null!==e&&"object"==typeof e&&"function"==typeof e.then)throw au=e,an;throw e}}var au=null;function ac(){if(null===au)throw Error(l(459));var e=au;return au=null,e}function ad(e){if(e===an||e===aa)throw Error(l(483))}var ap=null,af=0;function ah(e){var t=af;return af+=1,null===ap&&(ap=[]),as(ap,e,t)}function am(e,t){e.ref=void 0!==(t=t.props.ref)?t:null}function ag(e,t){if(t.$$typeof===m)throw Error(l(525));throw Error(l(31,"[object Object]"===(e=Object.prototype.toString.call(t))?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ay(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function a(e,t){return(e=rt(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return(t.index=r,e)?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=0x4000002,n):r:(t.flags|=0x4000002,n):(t.flags|=1048576,n)}function o(t){return e&&null===t.alternate&&(t.flags|=0x4000002),t}function s(e,t,n,r){return null===t||6!==t.tag?(t=ri(n,e.mode,r)).return=e:(t=a(t,n)).return=e,t}function u(e,t,n,r){var i=n.type;return i===_?d(e,t,n.props.children,r,n.key):(null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===R&&al(i)===t.type)?am(t=a(t,n.props),n):am(t=rr(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=rs(n,e.mode,r)).return=e:(t=a(t,n.children||[])).return=e,t}function d(e,t,n,r,i){return null===t||7!==t.tag?(t=ra(n,e.mode,r,i)).return=e:(t=a(t,n)).return=e,t}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=ri(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case g:return am(n=rr(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case y:return(t=rs(t,e.mode,n)).return=e,t;case R:return p(e,t=al(t),n)}if(P(t)||x(t))return(t=ra(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return p(e,ah(t),n);if(t.$$typeof===E)return p(e,rV(e,t),n);ag(e,t)}return null}function f(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==a?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case g:return n.key===a?u(e,t,n,r):null;case y:return n.key===a?c(e,t,n,r):null;case R:return f(e,t,n=al(n),r)}if(P(n)||x(n))return null!==a?null:d(e,t,n,r,null);if("function"==typeof n.then)return f(e,t,ah(n),r);if(n.$$typeof===E)return f(e,t,rV(e,n),r);ag(e,n)}return null}function h(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return s(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case g:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case y:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case R:return h(e,t,n,r=al(r),a)}if(P(r)||x(r))return d(t,e=e.get(n)||null,r,a,null);if("function"==typeof r.then)return h(e,t,n,ah(r),a);if(r.$$typeof===E)return h(e,t,n,rV(t,r),a);ag(t,r)}return null}return function(s,u,c,d){try{af=0;var m=function s(u,c,d,m){if("object"==typeof d&&null!==d&&d.type===_&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case g:e:{for(var b=d.key;null!==c;){if(c.key===b){if((b=d.type)===_){if(7===c.tag){n(u,c.sibling),(m=a(c,d.props.children)).return=u,u=m;break e}}else if(c.elementType===b||"object"==typeof b&&null!==b&&b.$$typeof===R&&al(b)===c.type){n(u,c.sibling),am(m=
2a(c,d.props),d),m.return=u,u=m;break e}n(u,c);break}t(u,c),c=c.sibling}d.type===_?(m=ra(d.props.children,u.mode,m,d.key)).return=u:(am(m=rr(d.type,d.key,d.props,null,u.mode,m),d),m.return=u),u=m}return o(u);case y:e:{for(b=d.key;null!==c;){if(c.key===b)if(4===c.tag&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){n(u,c.sibling),(m=a(c,d.children||[])).return=u,u=m;break e}else{n(u,c);break}t(u,c),c=c.sibling}(m=rs(d,u.mode,m)).return=u,u=m}return o(u);case R:return s(u,c,d=al(d),m)}if(P(d))return function(a,o,s,l){for(var u=null,c=null,d=o,m=o=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var y=f(a,d,s[m],l);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(a,d),o=i(y,o,m),null===c?u=y:c.sibling=y,c=y,d=g}if(m===s.length)return n(a,d),rI&&rb(a,m),u;if(null===d){for(;m<s.length;m++)null!==(d=p(a,s[m],l))&&(o=i(d,o,m),null===c?u=d:c.sibling=d,c=d);return rI&&rb(a,m),u}for(d=r(d);m<s.length;m++)null!==(g=h(d,a,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),o=i(g,o,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(a,e)}),rI&&rb(a,m),u}(u,c,d,m);if(x(d)){if("function"!=typeof(b=x(d)))throw Error(l(150));return function(a,o,s,u){if(null==s)throw Error(l(151));for(var c=null,d=null,m=o,g=o=0,y=null,_=s.next();null!==m&&!_.done;g++,_=s.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=f(a,m,_.value,u);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(a,m),o=i(b,o,g),null===d?c=b:d.sibling=b,d=b,m=y}if(_.done)return n(a,m),rI&&rb(a,g),c;if(null===m){for(;!_.done;g++,_=s.next())null!==(_=p(a,_.value,u))&&(o=i(_,o,g),null===d?c=_:d.sibling=_,d=_);return rI&&rb(a,g),c}for(m=r(m);!_.done;g++,_=s.next())null!==(_=h(m,a,g,_.value,u))&&(e&&null!==_.alternate&&m.delete(null===_.key?g:_.key),o=i(_,o,g),null===d?c=_:d.sibling=_,d=_);return e&&m.forEach(function(e){return t(a,e)}),rI&&rb(a,g),c}(u,c,d=b.call(d),m)}if("function"==typeof d.then)return s(u,c,ah(d),m);if(d.$$typeof===E)return s(u,c,rV(u,d),m);ag(u,d)}return"string"==typeof d&&""!==d||"number"==typeof d||"bigint"==typeof d?(d=""+d,null!==c&&6===c.tag?(n(u,c.sibling),(m=a(c,d)).return=u):(n(u,c),(m=ri(d,u.mode,m)).return=u),o(u=m)):n(u,c)}(s,u,c,d);return ap=null,m}catch(e){if(e===an||e===aa)throw e;var b=n9(29,e,null,s.mode);return b.lanes=d,b.return=s,b}finally{}}}var a_=ay(!0),ab=ay(!1),av=!1;function aS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function aE(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function aT(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function aw(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&sL)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=n6(e),n5(e,null,n),t}return n2(e,r,t,n),n6(e)}function ak(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194048&n))){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,eR(e,n)}}function aI(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?a=i=o:i=i.next=o,n=n.next}while(null!==n)null===i?a=i=t:i=i.next=t}else a=i=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var aR=!1;function aC(){if(aR){var e=r5;if(null!==e)throw e}}function aA(e,t,n,r){aR=!1;var a=e.updateQueue;av=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var l=s,u=l.next;l.next=null,null===o?i=u:o.next=u,o=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==i){var d=a.baseState;for(o=0,c=u=l=null,s=i;;){var p=-0x20000001&s.lane,f=p!==s.lane;if(f?(sB&p)===p:(r&p)===p){0!==p&&p===r4&&(aR=!0),null!==c&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,g=s;switch(p=t,g.tag){case 1:if("function"==typeof(m=g.payload)){d=m.call(n,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(n,d,p):m))break e;d=h({},d,p);break e;case 2:av=!0}}null!==(p=s.callback)&&(e.flags|=64,f&&(e.flags|=8192),null===(f=a.callbacks)?a.callbacks=[p]:f.push(p))}else f={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=f,l=d):c=c.next=f,o|=p;if(null===(s=s.next))if(null===(s=a.shared.pending))break;else s=(f=s).next,f.next=null,a.lastBaseUpdate=f,a.shared.pending=null}null===c&&(l=d),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=c,null===i&&(a.shared.lanes=0),sq|=o,e.lanes=o,e.memoizedState=d}}function aN(e,t){if("function"!=typeof e)throw Error(l(191,e));e.call(t)}function ax(e,t){var n=e.callbacks;
2if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)aN(n[e],t)}var aO=F(null),aP=F(0);function aM(e,t){j(aP,e=sW),j(aO,t),sW=e|t.baseLanes}function aL(){j(aP,sW),j(aO,aO.current)}function aD(){sW=aP.current,z(aO),z(aP)}var aU=F(null),aB=null;function aF(e){var t=e.alternate;j(aW,1&aW.current),j(aU,e),null===aB&&(null===t||null!==aO.current?aB=e:null!==t.memoizedState&&(aB=e))}function az(e){j(aW,aW.current),j(aU,e),null===aB&&(aB=e)}function aj(e){22===e.tag?(j(aW,aW.current),j(aU,e),null===aB&&(aB=e)):a$()}function a$(){j(aW,aW.current),j(aU,aU.current)}function aH(e){z(aU),aB===e&&(aB=null),z(aW)}var aW=F(0);function aG(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||uN(n)||ux(n)))return t}else if(19===t.tag&&("forwards"===t.memoizedProps.revealOrder||"backwards"===t.memoizedProps.revealOrder||"unstable_legacy-backwards"===t.memoizedProps.revealOrder||"together"===t.memoizedProps.revealOrder)){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var aq=0,aY=null,aV=null,aJ=null,aK=!1,aQ=!1,aX=!1,aZ=0,a0=0,a1=null,a2=0;function a3(){throw Error(l(321))}function a4(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nw(e[n],t[n]))return!1;return!0}function a5(e,t,n,r,a,i){return aq=i,aY=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=null===e||null===e.memoizedState?or:oa,aX=!1,i=n(r,a),aX=!1,aQ&&(i=a8(t,n,r,a)),a6(e),i}function a6(e){M.H=on;var t=null!==aV&&null!==aV.next;if(aq=0,aJ=aV=aY=null,aK=!1,a0=0,a1=null,t)throw Error(l(300));null===e||ov||null!==(e=e.dependencies)&&rG(e)&&(ov=!0)}function a8(e,t,n,r){aY=e;var a=0;do{if(aQ&&(a1=null),a0=0,aQ=!1,25<=a)throw Error(l(301));if(a+=1,aJ=aV=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}M.H=oi,i=t(n,r)}while(aQ)return i}function a7(){var e=M.H,t=e.useState()[0];return t="function"==typeof t.then?io(t):t,e=e.useState()[0],(null!==aV?aV.memoizedState:null)!==e&&(aY.flags|=1024),t}function a9(){var e=0!==aZ;return aZ=0,e}function ie(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function it(e){if(aK){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}aK=!1}aq=0,aJ=aV=aY=null,aQ=!1,a0=aZ=0,a1=null}function ir(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===aJ?aY.memoizedState=aJ=e:aJ=aJ.next=e,aJ}function ia(){if(null===aV){var e=aY.alternate;e=null!==e?e.memoizedState:null}else e=aV.next;var t=null===aJ?aY.memoizedState:aJ.next;if(null!==t)aJ=t,aV=e;else{if(null===e){if(null===aY.alternate)throw Error(l(467));throw Error(l(310))}e={memoizedState:(aV=e).memoizedState,baseState:aV.baseState,baseQueue:aV.baseQueue,queue:aV.queue,next:null},null===aJ?aY.memoizedState=aJ=e:aJ=aJ.next=e}return aJ}function ii(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function io(e){var t=a0;return a0+=1,null===a1&&(a1=[]),e=as(a1,e,t),t=aY,null===(null===aJ?t.memoizedState:aJ.next)&&(M.H=null===(t=t.alternate)||null===t.memoizedState?or:oa),e}function is(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return io(e);if(e.$$typeof===E)return rY(e)}throw Error(l(438,String(e)))}function il(e){var t=null,n=aY.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=aY.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n=ii(),aY.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function iu(e,t){return"function"==typeof t?t(e):t}function ic(e){return id(ia(),aV,e)}function id(e,t,n){var r=e.queue;if(null===r)throw Error(l(311));r.lastRenderedReducer=n;var a=e.baseQueue,i=r.pending;if(null!==i){if(null!==a){var o=a.next;a.next=i.next,i.next=o}t.baseQueue=a=i,r.pending=null}if(i=e.baseState,null===a)e.memoizedState=i;else{t=a.next;var s=o=null,u=null,c=t,d=!1;do{var p=-0x20000001&c.lane;if(p!==c.lane?(sB&p)===p:(aq&p)===p){var f=c.revertLane;if(0===f)null!==u&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),p===r4&&(d=!0);else if((aq&f)===f){c=c.next,f===r4&&(d=!0);continue}else p={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(s=u=p,o=i):u=u.next=p,aY.lanes|=f,sq|=f;p=c.action,aX&&n(i,p),i=c.hasEagerState?c.eagerState:n(i,p)}else f={lane:p,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(s=u=f,o=i):u=u.next=f,aY.lanes|=p,sq|=p;c=c.next}while(null!==c&&c!==t)if(null===u?o=i:u.next=s,!nw(i,e.memoizedState)&&(ov=!0,d&&null!==(n=r5)))throw n;e.memoizedState=i,e.baseState=o,e.baseQueue=u,r.lastRenderedState=i}
2return null===a&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ip(e){var t=ia(),n=t.queue;if(null===n)throw Error(l(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var o=a=a.next;do i=e(i,o.action),o=o.next;while(o!==a)nw(i,t.memoizedState)||(ov=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ih(e,t,n){var r=aY,a=ia(),i=rI;if(i){if(void 0===n)throw Error(l(407));n=n()}else n=t();var o=!nw((aV||a).memoizedState,n);if(o&&(a.memoizedState=n,ov=!0),a=a.queue,iF(iy.bind(null,r,a,e),[e]),a.getSnapshot!==t||o||null!==aJ&&1&aJ.memoizedState.tag){if(r.flags|=2048,iM(9,{destroy:void 0},ig.bind(null,r,a,n,t),null),null===sD)throw Error(l(349));i||0!=(127&aq)||im(r,t,n)}return n}function im(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=aY.updateQueue)?(t=ii(),aY.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ig(e,t,n,r){t.value=n,t.getSnapshot=r,i_(t)&&ib(e)}function iy(e,t,n){return n(function(){i_(t)&&ib(e)})}function i_(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nw(e,n)}catch(e){return!0}}function ib(e){var t=n4(e,2);null!==t&&lo(t,e,2)}function iv(e){var t=ir();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:iu,lastRenderedState:e},t}function iS(e,t,n,r){return e.baseState=n,id(e,aV,"function"==typeof r?r:iu)}function iE(e,t,n,r,a){if(i9(e))throw Error(l(485));if(null!==(e=t.action)){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==M.T?n(!0):i.isTransition=!1,r(i),null===(n=t.pending)?(i.next=t.pending=i,iT(t,i)):(i.next=n.next,t.pending=n.next=i)}}function iT(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var i=M.T,o={};M.T=o;try{var s=n(a,r),l=M.S;null!==l&&l(o,s),iw(e,t,s)}catch(n){iI(e,t,n)}finally{null!==i&&null!==o.types&&(i.types=o.types),M.T=i}}else try{i=n(a,r),iw(e,t,i)}catch(n){iI(e,t,n)}}function iw(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){ik(e,t,n)},function(n){return iI(e,t,n)}):ik(e,t,n)}function ik(e,t,n){t.status="fulfilled",t.value=n,iR(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,iT(e,n)))}function iI(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do t.status="rejected",t.reason=n,iR(t),t=t.next;while(t!==r)}e.action=null}function iR(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function iC(e,t){return t}function iA(e,t){if(rI){var n=sD.formState;if(null!==n){e:{var r=aY;if(rI){if(rk){t:{for(var a=rk,i=rC;8!==a.nodeType;)if(!i||null===(a=uO(a.nextSibling))){a=null;break t}a="F!"===(i=a.data)||"F"===i?a:null}if(a){rk=uO(a.nextSibling),r="F!"===a.data;break e}}rN(r)}r=!1}r&&(t=n[0])}}return(n=ir()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:iC,lastRenderedState:t},n.queue=r,n=i6.bind(null,aY,r),r.dispatch=n,r=iv(!1),i=i7.bind(null,aY,!1,r.queue),r=ir(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=iE.bind(null,aY,a,i,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function iN(e){return ix(ia(),aV,e)}function ix(e,t,n){if(t=id(e,t,iC)[0],e=ic(iu)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=io(t)}catch(e){if(e===an)throw aa;throw e}else r=t;var a=(t=ia()).queue,i=a.dispatch;return n!==t.memoizedState&&(aY.flags|=2048,iM(9,{destroy:void 0},iO.bind(null,a,n),null)),[r,i,e]}function iO(e,t){e.action=t}function iP(e){var t=ia(),n=aV;if(null!==n)return ix(t,n,e);ia(),t=t.memoizedState;var r=(n=ia()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function iM(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=aY.updateQueue)&&(t=ii(),aY.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function iL(){return ia().memoizedState}function iD(e,t,n,r){var a=ir();aY.flags|=e,a.memoizedState=iM(1|t,{destroy:void 0},n,void 0===r?null:r)}function iU(e,t,n,r){var a=ia();r=void 0===r?null:r;var i=a.memoizedState.inst;null!==aV&&null!==r&&a4(r,aV.memoizedState.deps)?a.memoizedState=iM(t,i,n,r):(aY.flags|=e,a.memoizedState=iM(1|t,i,n,r))}function iB(e,t){iD(8390656,8,e,t)}function iF(e,t){iU(2048,8,e,t)}function iz(e){var t=ia().memoizedState,n={ref:t,nextImpl:e};aY.flags|=4;var r=aY.updateQueue;if(null===r)r=ii(),aY.updateQueue=r,r.events=[n];else{var a=r.events;null===a?r.events=[n]:a.push(n)}return function(){if(0!=(2&sL))throw Error(l(440));return t.impl.apply(void 0,arguments)}}function ij(e,t){return iU(4,2,e,t)}function i$(e,t){return iU(4,4,e,t)}function iH(e,t){if("function"==typeof t){var n=t(e=e());return function(){"function"==typeof n?n():t(null)}}if(null!=t)return t.current=e=e(),function(){t.current=null}}function iW(e,t,n){n=null!=n?n.concat([e]):null,iU(4,4,iH.bind(null,t,e),n)}function iG(){}function iq(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&a4(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function iY(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&a4(t,r[1])?r[0]:(n.memoizedState=[r=e(),t],r)}function iV(e,t,n){return void 0===n||0!=(0x40000000&aq)&&0==(261930&sB)?e.memoizedState=t:(e.memoizedState=n,e=li(),aY.lanes|=e,sq|=e,n)}function iJ(e,t,n,r){return nw(n,t)?n:null!==aO.current?(nw(e=iV(e,n,r),t)||(ov=!0),e):0==(42&aq)||0!=(0x40000000&aq)&&0==(261930&sB)?(ov=!0,e.memoizedState=n):(e=li(),aY.lanes|=e,sq|=e,t)}function iK(e,t,n,r,a){var i=L.p;L.p=0!==i&&8>i?i:8;var o=M.T,s={};M.T=s,i7(e,!1,t,n);try{var l=a(),u=M.S;if(null!==u&&u(s,l),null!==l&&"object"==typeof l&&"function"==typeof l.then){var c,d,p=(c=[],d={status:"pending",value:null,reason:null,then:function(e){c.push(e)}},l.then(function(){d.status="fulfilled",d.value=r;
2for(var e=0;e<c.length;e++)(0,c[e])(r)},function(e){for(d.status="rejected",d.reason=e,e=0;e<c.length;e++)(0,c[e])(void 0)}),d);i8(e,t,p,la())}else i8(e,t,r,la())}catch(n){i8(e,t,{then:function(){},status:"rejected",reason:n},la())}finally{L.p=i,null!==o&&null!==s.types&&(o.types=s.types),M.T=o}}function iQ(){}function iX(e,t,n,r){if(5!==e.tag)throw Error(l(476));var a=iZ(e).queue;iK(e,a,t,D,null===n?iQ:function(){return i0(e),n(r)})}function iZ(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:D,baseState:D,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:iu,lastRenderedState:D},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:iu,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function i0(e){var t=iZ(e);null===t.next&&(t=e.alternate.memoizedState),i8(e,t.next.queue,{},la())}function i1(){return rY(u9)}function i2(){return ia().memoizedState}function i3(){return ia().memoizedState}function i4(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=la(),r=aw(t,e=aT(n),n);null!==r&&(lo(r,t,n),ak(r,t,n)),t={cache:r0()},e.payload=t;return}t=t.return}}function i5(e,t,n){var r=la();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},i9(e)?oe(t,n):null!==(n=n3(e,t,n,r))&&(lo(n,e,r),ot(n,t,r))}function i6(e,t,n){i8(e,t,n,la())}function i8(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(i9(e))oe(t,a);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=i(o,n);if(a.hasEagerState=!0,a.eagerState=s,nw(s,o))return n2(e,t,a,0),null===sD&&n1(),!1}catch(e){}finally{}if(null!==(n=n3(e,t,a,r)))return lo(n,e,r),ot(n,t,r),!0}return!1}function i7(e,t,n,r){if(r={lane:2,revertLane:lQ(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},i9(e)){if(t)throw Error(l(479))}else null!==(t=n3(e,n,r,2))&&lo(t,e,2)}function i9(e){var t=e.alternate;return e===aY||null!==t&&t===aY}function oe(e,t){aQ=aK=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ot(e,t,n){if(0!=(4194048&n)){var r=t.lanes;r&=e.pendingLanes,t.lanes=n|=r,eR(e,n)}}var on={readContext:rY,use:is,useCallback:a3,useContext:a3,useEffect:a3,useImperativeHandle:a3,useLayoutEffect:a3,useInsertionEffect:a3,useMemo:a3,useReducer:a3,useRef:a3,useState:a3,useDebugValue:a3,useDeferredValue:a3,useTransition:a3,useSyncExternalStore:a3,useId:a3,useHostTransitionStatus:a3,useFormState:a3,useActionState:a3,useOptimistic:a3,useMemoCache:a3,useCacheRefresh:a3};on.useEffectEvent=a3;var or={readContext:rY,use:is,useCallback:function(e,t){return ir().memoizedState=[e,void 0===t?null:t],e},useContext:rY,useEffect:iB,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,iD(4194308,4,iH.bind(null,t,e),n)},useLayoutEffect:function(e,t){return iD(4194308,4,e,t)},useInsertionEffect:function(e,t){iD(4,2,e,t)},useMemo:function(e,t){var n=ir();t=void 0===t?null:t;var r=e();return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ir();if(void 0!==n)var a=n(t);else a=t;return r.memoizedState=r.baseState=a,r.queue=e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},e=e.dispatch=i5.bind(null,aY,e),[r.memoizedState,e]},useRef:function(e){return ir().memoizedState={current:e}},useState:function(e){var t=(e=iv(e)).queue,n=i6.bind(null,aY,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:iG,useDeferredValue:function(e,t){return iV(ir(),e,t)},useTransition:function(){var e=iv(!1);return e=iK.bind(null,aY,e.queue,!0,!1),ir().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=aY,a=ir();if(rI){if(void 0===n)throw Error(l(407));n=n()}else{if(n=t(),null===sD)throw Error(l(349));0!=(127&sB)||im(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,iB(iy.bind(null,r,i,e),[e]),r.flags|=2048,iM(9,{destroy:void 0},ig.bind(null,r,i,n,t),null),n},useId:function(){var e=ir(),t=sD.identifierPrefix;if(rI){var n=r_,r=ry;t="_"+t+"R_"+(n=(r&~(1<<32-eh(r)-1)).toString(32)+n),0<(n=aZ++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=a2++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:i1,useFormState:iA,useActionState:iA,useOptimistic:function(e){var t=ir();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=i7.bind(null,aY,!0,n),n.dispatch=t,[e,t]},useMemoCache:il,useCacheRefresh:function(){return ir().memoizedState=i4.bind(null,aY)},useEffectEvent:function(e){var t=ir(),n={impl:e};return t.memoizedState=n,function(){if(0!=(2&sL))throw Error(l(440));return n.impl.apply(void 0,arguments)}}},oa={readContext:rY,use:is,useCallback:iq,useContext:rY,useEffect:iF,useImperativeHandle:iW,useInsertionEffect:ij,useLayoutEffect:i$,useMemo:iY,useReducer:ic,useRef:iL,useState:function(){return ic(iu)},useDebugValue:iG,useDeferredValue:function(e,t){return iJ(ia(),aV.memoizedState,e,t)},useTransition:function(){var e=ic(iu)[0],t=ia().memoizedState;return["boolean"==typeof e?e:io(e),t]},useSyncExternalStore:ih,useId:i2,useHostTransitionStatus:i1,useFormState:iN,useActionState:iN,useOptimistic:function(e,t){return iS(ia(),aV,e,t)},useMemoCache:il,useCacheRefresh:i3};oa.useEffectEvent=iz;var oi={readContext:rY,use:is,useCallback:iq,useContext:rY,useEffect:iF,useImperativeHandle:iW,useInsertionEffect:ij,useLayoutEffect:i$,useMemo:iY,useReducer:ip,useRef
vendor: 13,814 bytes, line 2
2:iL,useState:function(){return ip(iu)},useDebugValue:iG,useDeferredValue:function(e,t){var n=ia();return null===aV?iV(n,e,t):iJ(n,aV.memoizedState,e,t)},useTransition:function(){var e=ip(iu)[0],t=ia().memoizedState;return["boolean"==typeof e?e:io(e),t]},useSyncExternalStore:ih,useId:i2,useHostTransitionStatus:i1,useFormState:iP,useActionState:iP,useOptimistic:function(e,t){var n=ia();return null!==aV?iS(n,aV,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:il,useCacheRefresh:i3};function oo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:h({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}oi.useEffectEvent=iz;var os={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=la(),a=aT(r);a.payload=t,null!=n&&(a.callback=n),null!==(t=aw(e,a,r))&&(lo(t,e,r),ak(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=la(),a=aT(r);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=aw(e,a,r))&&(lo(t,e,r),ak(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=la(),r=aT(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=aw(e,r,n))&&(lo(t,e,n),ak(t,e,n))}};function ol(e,t,n,r,a,i,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,o):!t.prototype||!t.prototype.isPureReactComponent||!nk(n,r)||!nk(a,i)}function ou(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function oc(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var a in n===t&&(n=h({},n)),e)void 0===n[a]&&(n[a]=e[a]);return n}function od(e){nQ(e)}function op(e){console.error(e)}function of(e){nQ(e)}function oh(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function om(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function og(e,t,n){return(n=aT(n)).tag=3,n.payload={element:null},n.callback=function(){oh(e,t)},n}function oy(e){return(e=aT(e)).tag=3,e}function o_(e,t,n,r){var a=n.type.getDerivedStateFromError;if("function"==typeof a){var i=r.value;e.payload=function(){return a(i)},e.callback=function(){om(t,n,r)}}var o=n.stateNode;null!==o&&"function"==typeof o.componentDidCatch&&(e.callback=function(){om(t,n,r),"function"!=typeof a&&(null===s4?s4=new Set([this]):s4.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var ob=Error(l(461)),ov=!1;function oS(e,t,n,r){t.child=null===e?ab(t,null,n,r):a_(t,e.child,n,r)}function oE(e,t,n,r,a){n=n.render;var i=t.ref;if("ref"in r){var o={};for(var s in r)"ref"!==s&&(o[s]=r[s])}else o=r;return(rq(t),r=a5(e,t,n,o,i,a),s=a9(),null===e||ov)?(rI&&s&&rS(t),t.flags|=1,oS(e,t,r,a),t.child):(ie(e,t,a),oG(e,t,a))}function oT(e,t,n,r,a){if(null===e){var i=n.type;return"function"!=typeof i||re(i)||void 0!==i.defaultProps||null!==n.compare?((e=rr(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ow(e,t,i,r,a))}if(i=e.child,!oq(e,a)){var o=i.memoizedProps;if((n=null!==(n=n.compare)?n:nk)(o,r)&&e.ref===t.ref)return oG(e,t,a)}return t.flags|=1,(e=rt(i,r)).ref=t.ref,e.return=t,t.child=e}function ow(e,t,n,r,a){if(null!==e){var i=e.memoizedProps;if(nk(i,r)&&e.ref===t.ref)if(ov=!1,t.pendingProps=r=i,!oq(e,a))return t.lanes=e.lanes,oG(e,t,a);else 0!=(131072&e.flags)&&(ov=!0)}return ox(e,t,n,r,a)}function ok(e,t,n,r){var a=r.children,i=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(0!=(128&t.flags)){if(i=null!==i?i.baseLanes|n:n,null!==e){for(r=t.child=e.child,a=0;null!==r;)a=a|r.lanes|r.childLanes,r=r.sibling;r=a&~i}else r=0,t.child=null;return oR(e,t,i,n,r)}if(0==(0x20000000&n))return r=t.lanes=0x20000000,oR(e,t,null!==i?i.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&ae(t,null!==i?i.cachePool:null),null!==i?aM(t,i):aL(),aj(t)}else null!==i?(ae(t,i.cachePool),aM(t,i),a$(),t.memoizedState=null):(null!==e&&ae(t,null),aL(),a$());return oS(e,t,a,n),t.child}function oI(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function oR(e,t,n,r,a){var i=r9();return t.memoizedState={baseLanes:n,cachePool:i=null===i?null:{parent:rZ._currentValue,pool:i}},null!==e&&ae(t,null),aL(),aj(t),null!==e&&rW(e,t,r,!0),t.childLanes=a,null}function oC(e,t){return(t=oz({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function oA(e,t,n){return a_(t,e.child,null,n),e=oC(t,t.pendingProps),e.flags|=2,aH(t),t.memoizedState=null,e}function oN(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(l(284));(null===e||e.ref!==n)&&(t.flags|=4194816)}}function ox(e,t,n,r,a){return(rq(t),n=a5(e,t,n,r,void 0,a),r=a9(),null===e||ov)?(rI&&r&&rS(t),t.flags|=1,oS(e,t,n,a),t.child):(ie(e,t,a),oG(e,t,a))}function oO(e,t,n,r,a,i){return(rq(t),t.updateQueue=null,n=a8(t,r,n,a),a6(e),r=a9(),null===e||ov)?(rI&&r&&rS(t),t.flags|=1,oS(e,t,n,i),t.child):(ie(e,t,i),oG(e,t,i))}function oP(e,t,n,r,a){if(rq(t),null===t.stateNode){var i=n8,o=n.contextType;"object"==typeof o&&null!==o&&(i=rY(o)),t.memoizedState=null!==(i=new n(r,i)).state&&void 0!==i.state?i.state:null,i.updater=os,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},aS(t),o=n.contextType,i.context="object"==typeof o&&null!==o?rY(o):n8,i.state=t.memoizedState,"function"==typeof(o=n.getDerivedStateFromProps)&&(oo(t,n,o,r),i.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(o=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),o!==i.state&&os.enqueueReplaceState(i,i.state,null),aA(t,r,i,a),aC(),i.state=t.memoizedState),"function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var s=t.memoizedProps,l=oc(n,s);i.props=l;var u=i.context,c=n.contextType;o=n8,"object"==typeof c&&null!==c&&(o=rY(c));var d=n.getDerivedStateFromProps;c="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate,s=t.pendingProps!==s,c||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(s||u!==o)&&ou(t,i,r,o),av=!1;var p=t.memoizedState;i.state=p,aA(t,r,i,a),aC(),u=t.memoizedState,s||p!==u||av?("function"==typeof d&&(oo(t,n,d,r),u=t.memoizedState),(l=av||ol(t,n,l,r,p,u,o))?(c||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4194308)):("function"==typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=o,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,aE(e,t),c=oc(n,o=t.memoizedProps),i.props=c,d=t.pendingProps,p=i.context,u=n.contextType,l=n8,"object"==typeof u&&null!==u&&(l=rY(u)),(u="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(o!==d||p!==l)&&ou(t,i,r,l),av=!1,p=t.memoizedState,i.state=p,aA(t,r,i,a),aC();var f=t.memoizedState;o!==d||p!==f||av||null!==e&&null!==e.dependencies&&rG(e.dependencies)?("function"==typeof s&&(oo(t,n,s,r),f=t.memoizedState),(c=av||ol(t,n,c,r,p,f,l)||null!==e&&null!==e.dependencies&&rG(e.dependencies))?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,f,l),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),i.props=r,i.state=f,i.context=l,r=c):("function"!=typeof i.componentDidUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,oN(e,t),r=0!=(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=a_(t,e.child,null,a),t.child=a_(t,null,n,a)):oS(e,t,n,a),t.memoizedState=i.state,e=t.child):e=oG(e,t,a),e}function oM(e,t,n,r){return rM(),t.flags|=256,oS(e,t,n,r),t.child}var oL={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function oD(e){return{baseLanes:e,cachePool:at()}}function oU(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=sJ),e}function oB(e,t,n){var r,a=t.pendingProps,i=!1,o=0!=(128&t.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&0!=(2&aW.current)),r&&(i=!0,t.flags&=-129),r=0!=(32&t.flags),t.flags&=-33,null===e){if(rI){if(i?aF(t):a$(),(e=rk)?null!==(e=null!==(e=uA(e,rC))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==rg?{id:ry,overflow:r_}:null,retryLane:0x20000000,hydrationErrors:null},(n=ro(e)).return=t,t.child=n,rw=t,rk=null):e=null,null===e)throw rN(t);return ux(e)?t.lanes=32:t.lanes=0x20000000,null}var s=a.children;return(a=a.fallback,i)?(a$(),s=oz({mode:"hidden",children:s},i=t.mode),a=ra(a,i,n,null),s.return=t,a.return=t,s.sibling=a,t.child=s,(a=t.child).memoizedState=oD(n),a.childLanes=oU(e,r,n),t.memoizedState=oL,oI(null,a)):(aF(t),oF(t,s))}var u=e.memoizedState;if(null!==u&&null!==(s=u.dehydrated)){if(o)256&t.flags?(aF(t),t.flags&=-257,t=oj(e,t,n)):null!==t.memoizedState?(a$(),t.child=e.child,t.flags|=128,t=null):(a$(),s=a.fallback,i=t.mode,a=oz({mode:"visible",children:a.children},i),s=ra(s,i,n,null),s.flags|=2,a.return=t,s.return=t,a.sibling=s,t.child=a,a_(t,e.child,null,n),(a=t.child).memoizedState=oD(n),a.childLanes=oU(e,r,n),t.memoizedState=oL,t=oI(null,a));else if(aF(t),ux(s)){if(r=s.nextSibling&&s.nextSibling.dataset)var c=r.dgst;r=c,(a=Error(l(419))).stack="",a.digest=r,rD({value:a,source:null,stack:null}),t=oj(e,t,n)}else if(ov||rW(e,t,n,!1),r=0!=(n&e.childLanes),ov||r){if(null!==(r=sD)&&0!==(a=eC(r,n))&&a!==u.retryLane)throw u.retryLane=a,n4(e,a),lo(r,e,a),ob;uN(s)||ly(),t=oj(e,t,n)}else uN(s)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,rk=uO(s.nextSibling),rw=t,rI=!0,rR=null,rC=!1,null!==e&&rT(t,e),t=oF(t,a.children),t.flags|=4096);return t}return i?(a$(),s=a.fallback,i=t.mode,c=(u=e.child).sibling,(a=rt(u,{mode:"hidden",children:a.children})).subtreeFlags=0x3e00000&u.subtreeFlags,null!==c?s=rt(c,s):(s=ra(s,i,n,null),s.flags|=2),s.return=t,a.return=t,a.sibling=s,t.child=a,oI(null,a),a=t.child,null===(s=e.child.memoizedState)?s=oD(n):(null!==(i=s.cachePool)?(u=rZ._currentValue,i=i.parent!==u?{parent:u,pool:u}:i):i=at(),s={baseLanes:s.baseLanes|n,cachePool:i}),a.memoizedState=s,a.childLanes=oU(e,r,n),t.memoizedState=oL,oI(e.child,a)):(aF(t),e=(n=e.child).sibling,(n=rt(n,{mode:"visible",children:a.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function oF(e,t){return(t=oz({mode:"visible",children:t},e.mode)).return=e,e.child=t}function oz(e,t){return(e=n9(22,e,null,t)).lanes=0,e}function oj(e,t,n){return a_(t,e.child,null,n),e=oF(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function o$(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),r$(e.return,t,n)}function oH(e,t,n,r,a,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,treeForkCount:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a,o.treeForkCount=i)}function oW(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;r=r.children;var o=aW.current,s=0!=(2&o);if(s?(o=1&o|2,t.flags|=128):o&=1,j(aW,o),oS(e,t,r,n),r=rI?rf:0,!s&&null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&o$(e,n,t);else if(19===e.tag)o$(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===aG(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),oH(t,!1,a,n,i,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===aG(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}oH(t,!0,n,null,i,r);break;case"together":oH(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function oG(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),sq|=t.lanes,0==(n&t.childLanes)){if(null===e)return null;else if(rW(e,t,n,!1),0==(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(l(153));if(null!==t.child){for(n=rt(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;
2)e=e.sibling,(n=n.sibling=rt(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function oq(e,t){return 0!=(e.lanes&t)||!!(null!==(e=e.dependencies)&&rG(e))}function oY(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)ov=!0;else{if(!oq(e,n)&&0==(128&t.flags))return ov=!1,function(e,t,n){switch(t.tag){case 3:q(t,t.stateNode.containerInfo),rz(t,rZ,e.memoizedState.cache),rM();break;case 27:case 5:V(t);break;case 4:q(t,t.stateNode.containerInfo);break;case 10:rz(t,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,az(t),null;break;case 13:var r=t.memoizedState;if(null!==r){if(null!==r.dehydrated)return aF(t),t.flags|=128,null;if(0!=(n&t.child.childLanes))return oB(e,t,n);return aF(t),null!==(e=oG(e,t,n))?e.sibling:null}aF(t);break;case 19:var a=0!=(128&e.flags);if((r=0!=(n&t.childLanes))||(rW(e,t,n,!1),r=0!=(n&t.childLanes)),a){if(r)return oW(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),j(aW,aW.current),!r)return null;break;case 22:return t.lanes=0,ok(e,t,n,t.pendingProps);case 24:rz(t,rZ,e.memoizedState.cache)}return oG(e,t,n)}(e,t,n);ov=0!=(131072&e.flags)}else ov=!1,rI&&0!=(1048576&t.flags)&&rv(t,rf,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=al(t.elementType),t.type=e,"function"==typeof e)re(e)?(r=oc(e,r),t.tag=1,t=oP(null,t,e,r,n)):(t.tag=0,t=ox(null,t,e,r,n));else{if(null!=e){var a=e.$$typeof;if(a===T){t.tag=11,t=oE(null,t,e,r,n);break e}if(a===I){t.tag=14,t=oT(null,t,e,r,n);break e}}throw Error(l(306,t=function e(t){if(null==t)return null;if("function"==typeof t)return t.$$typeof===O?null:t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case _:return"Fragment";case v:return"Profiler";case b:return"StrictMode";case w:return"Suspense";case k:return"SuspenseList";case C:return"Activity"}if("object"==typeof t)switch(t.$$typeof){case y:return"Portal";case E:return t.displayName||"Context";case S:return(t._context.displayName||"Context")+".Consumer";case T:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case I:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case R:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}(e)||e,""))}}return t;case 0:return ox(e,t,t.type,t.pendingProps,n);case 1:return a=oc(r=t.type,t.pendingProps),oP(e,t,r,a,n);case 3:e:{if(q(t,t.stateNode.containerInfo),null===e)throw Error(l(387));r=t.pendingProps;var i=t.memoizedState;a=i.element,aE(e,t),aA(t,r,null,n);var o=t.memoizedState;if(rz(t,rZ,r=o.cache),r!==i.cache&&rH(t,[rZ],n,!0),aC(),r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=oM(e,t,r,n);break e}else if(r!==a){rD(a=ru(Error(l(424)),t)),t=oM(e,t,r,n);break e}else for(rk=uO((e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e).firstChild),rw=t,rI=!0,rR=null,rC=!0,n=ab(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling;else{if(rM(),r===a){t=oG(e,t,n);break e}oS(e,t,r,n)}t=t.child}return t;case 26:return oN(e,t),null===e?(n=uW(t.type,null,t.pendingProps,null))?t.memoizedState=n:rI||(n=t.type,e=t.pendingProps,(r=um(W.current).createElement(n))[eM]=t,r[eL]=e,ud(r,n,e),eY(r),t.stateNode=r):t.memoizedState=uW(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return V(t),null===e&&rI&&(r=t.stateNode=uD(t.type,t.pendingProps,W.current),rw=t,rC=!0,a=rk,uk(t.type)?(uP=a,rk=uO(r.firstChild)):rk=a),oS(e,t,t.pendingProps.children,n),oN(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&rI&&((a=r=rk)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[ej])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(a=e.getAttribute("rel"))&&e.hasAttribute("data-precedence")||a!==n.rel||e.getAttribute("href")!==(null==n.href||""===n.href?null:n.href)||e.getAttribute("crossorigin")!==(null==n.crossOrigin?null:n.crossOrigin)||e.getAttribute("title")!==(null==n.title?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((a=e.getAttribute("src"))!==(null==n.src?null:n.src)||e.getAttribute("type")!==(null==n.type?null:n.type)||e.getAttribute("crossorigin")!==(null==n.crossOrigin?null:n.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}
2else{if("input"!==t||"hidden"!==e.type)return e;var a=null==n.name?null:""+n.name;if("hidden"===n.type&&e.getAttribute("name")===a)return e}if(null===(e=uO(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,rC))?(t.stateNode=r,rw=t,rk=uO(r.firstChild),rC=!1,a=!0):a=!1),a||rN(t)),V(t),a=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,r=i.children,u_(a,i)?r=null:null!==o&&u_(a,o)&&(t.flags|=32),null!==t.memoizedState&&(u9._currentValue=a=a5(e,t,a7,null,null,n)),oN(e,t),oS(e,t,r,n),t.child;case 6:return null===e&&rI&&((e=n=rk)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;)if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n||null===(e=uO(e.nextSibling)))return null;return e}(n,t.pendingProps,rC))?(t.stateNode=n,rw=t,rk=null,e=!0):e=!1),e||rN(t)),null;case 13:return oB(e,t,n);case 4:return q(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=a_(t,null,r,n):oS(e,t,r,n),t.child;case 11:return oE(e,t,t.type,t.pendingProps,n);case 7:return oS(e,t,t.pendingProps,n),t.child;case 8:case 12:return oS(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,rz(t,t.type,r.value),oS(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,rq(t),r=r(a=rY(a)),t.flags|=1,oS(e,t,r,n),t.child;case 14:return oT(e,t,t.type,t.pendingProps,n);case 15:return ow(e,t,t.type,t.pendingProps,n);case 19:return oW(e,t,n);case 31:var s=e,u=t,c=n,d=u.pendingProps,p=0!=(128&u.flags);if(u.flags&=-129,null===s){if(rI){if("hidden"===d.mode)return s=oC(u,d),u.lanes=0x20000000,oI(null,s);if(az(u),(s=rk)?null!==(s=null!==(s=uA(s,rC))&&"&"===s.data?s:null)&&(u.memoizedState={dehydrated:s,treeContext:null!==rg?{id:ry,overflow:r_}:null,retryLane:0x20000000,hydrationErrors:null},(c=ro(s)).return=u,u.child=c,rw=u,rk=null):s=null,null===s)throw rN(u);return u.lanes=0x20000000,null}return oC(u,d)}var f=s.memoizedState;if(null!==f){var h=f.dehydrated;if(az(u),p)if(256&u.flags)u.flags&=-257,u=oA(s,u,c);else if(null!==u.memoizedState)u.child=s.child,u.flags|=128,u=null;else throw Error(l(558));else if(ov||rW(s,u,c,!1),p=0!=(c&s.childLanes),ov||p){if(null!==(d=sD)&&0!==(h=eC(d,c))&&h!==f.retryLane)throw f.retryLane=h,n4(s,h),lo(d,s,h),ob;ly(),u=oA(s,u,c)}
vendor: 7,677 bytes, line 2
2else s=f.treeContext,rk=uO(h.nextSibling),rw=u,rI=!0,rR=null,rC=!1,null!==s&&rT(u,s),u=oC(u,d),u.flags|=4096;return u}return(s=rt(s.child,{mode:d.mode,children:d.children})).ref=u.ref,u.child=s,s.return=u,s;case 22:return ok(e,t,n,t.pendingProps);case 24:return rq(t),r=rY(rZ),null===e?(null===(a=r9())&&(a=sD,i=r0(),a.pooledCache=i,i.refCount++,null!==i&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:r,cache:a},aS(t),rz(t,rZ,a)):(0!=(e.lanes&n)&&(aE(e,t),aA(t,null,null,n),aC()),a=e.memoizedState,i=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=a),rz(t,rZ,r)):(rz(t,rZ,r=i.cache),r!==a.cache&&rH(t,[rZ],n,!0))),oS(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function oV(e){e.flags|=4}function oJ(e,t,n,r,a){if((t=0!=(32&e.mode))&&(t=!1),t){if(e.flags|=0x1000000,(0x13ffff40&a)===a)if(e.stateNode.complete)e.flags|=8192;else if(lh())e.flags|=8192;else throw au=ai,ar}else e.flags&=-0x1000001}function oK(e,t){if("stylesheet"!==t.type||0!=(4&t.state.loading))e.flags&=-0x1000001;else if(e.flags|=0x1000000,!u3(t))if(lh())e.flags|=8192;else throw au=ai,ar}function oQ(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?eT():0x20000000,e.lanes|=t,sK|=t)}function oX(e,t){if(!rI)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function oZ(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=0x3e00000&a.subtreeFlags,r|=0x3e00000&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function o0(e,t){switch(rE(t),t.tag){case 3:rj(rZ),Y();break;case 26:case 27:case 5:J(t);break;case 4:Y();break;case 31:null!==t.memoizedState&&aH(t);break;case 13:aH(t);break;case 19:z(aW);break;case 10:rj(t.type);break;case 22:case 23:aH(t),aD(),null!==e&&z(r7);break;case 24:rj(rZ)}}function o1(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var i=n.create;n.inst.destroy=r=i()}n=n.next}while(n!==a)}}catch(e){lO(t,t.return,e)}}function o2(e,t,n){try{var r=t.updateQueue,a=null!==r?r.lastEffect:null;if(null!==a){var i=a.next;r=i;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(void 0!==s){o.destroy=void 0,a=t;try{s()}catch(e){lO(a,n,e)}}}r=r.next}while(r!==i)}}catch(e){lO(t,t.return,e)}}function o3(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{ax(t,n)}catch(t){lO(e,e.return,t)}}}function o4(e,t,n){n.props=oc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){lO(e,t,n)}}function o5(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(n){lO(e,t,n)}}function o6(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(n){lO(e,t,n)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(n){lO(e,t,n)}else n.current=null}function o8(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){lO(e,e.return,t)}}function o7(e,t,n){try{var r=e.stateNode;(function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,o=null,s=null,u=null,c=null,d=null;for(h in n){var p=n[h];if(n.hasOwnProperty(h)&&null!=p)switch(h){case"checked":case"value":break;case"defaultValue":u=p;default:r.hasOwnProperty(h)||uu(e,t,h,null,r,p)}}for(var f in r){var h=r[f];if(p=n[f],r.hasOwnProperty(f)&&(null!=h||null!=p))switch(f){case"type":i=h;break;case"name":a=h;break;case"checked":c=h;break;case"defaultChecked":d=h;break;case"value":o=h;break;case"defaultValue":s=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(l(137,t));break;default:h!==p&&uu(e,t,f,h,r,p)}}tt(e,o,s,u,c,d,i,a);return;case"select":for(i in h=o=s=f=null,n)if(u=n[i],n.hasOwnProperty(i)&&null!=u)switch(i){case"value":break;case"multiple":h=u;default:r.hasOwnProperty(i)||uu(e,t,i,null,r,u)}for(a in r)if(i=r[a],u=n[a],r.hasOwnProperty(a)&&(null!=i||null!=u))switch(a){case"value":f=i;break;case"defaultValue":s=i;break;case"multiple":o=i;default:i!==u&&uu(e,t,a,i,r,u)}t=s,n=o,r=h,null!=f?ta(e,!!n,f,!1):!!r!=!!n&&(null!=t?ta(e,!!n,t,!0):ta(e,!!n,n?[]:"",!1));return;case"textarea":for(s in h=f=null,n)if(a=n[s],n.hasOwnProperty(s)&&null!=a&&!r.hasOwnProperty(s))switch(s){case"value":case"children":break;default:uu(e,t,s,null,r,a)}for(o in r)if(a=r[o],i=n[o],r.hasOwnProperty(o)&&(null!=a||null!=i))switch(o){case"value":f=a;break;case"defaultValue":h=a;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=a)throw Error(l(91));break;default:a!==i&&uu(e,t,o,a,r,i)}ti(e,f,h);return;case"option":for(var m in n)f=n[m],n.hasOwnProperty(m)&&null!=f&&!r.hasOwnProperty(m)&&("selected"===m?e.selected=!1:uu(e,t,m,null,r,f));for(u in r)f=r[u],h=n[u],r.hasOwnProperty(u)&&f!==h&&(null!=f||null!=h)&&("selected"===u?e.selected=f&&"function"!=typeof f&&"symbol"!=typeof f:uu(e,t,u,f,r,h));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)f=n[g],n.hasOwnProperty(g)&&null!=f&&!r.hasOwnProperty(g)&&uu(e,t,g,null,r,f);for(c in r)if(f=r[c],h=n[c],r.hasOwnProperty(c)&&f!==h&&(null!=f||null!=h))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(l(137,t));break;default:uu(e,t,c,f,r,h)}return;default:if(td(t)){for(var y in n)f=n[y],n.hasOwnProperty(y)&&void 0!==f&&!r.hasOwnProperty(y)&&uc(e,t,y,void 0,r,f);for(d in r)f=r[d],h=n[d],r.hasOwnProperty(d)&&f!==h&&(void 0!==f||void 0!==h)&&uc(e,t,d,f,r,h);return}}for(var _ in n)f=n[_],n.hasOwnProperty(_)&&null!=f&&!r.hasOwnProperty(_)&&uu(e,t,_,null,r,f);for(p in r)f=r[p],h=n[p],r.hasOwnProperty(p)&&f!==h&&(null!=f||null!=h)&&uu(e,t,p,f,r,h)})(r,e.type,n,t),r[eL]=t}catch(t){lO(e,e.return,t)}}function o9(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&uk(e.type)||4===e.tag}function se(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||o9(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&uk(e.type)||2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function st(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&uk(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(st(e,t,n),e=e.sibling;null!==e;)st(e,t,n),e=e.sibling}function sn(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);ud(t,r,n),t[eM]=e,t[eL]=n}catch(t){lO(e,e.return,t)}}var sr=!1,sa=!1,si=!1,so="function"==typeof WeakSet?WeakSet:Set,ss=null;function sl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:sv(e,n),4&r&&o1(5,n);break;case 1:if(sv(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(e){lO(n,n.return,e)}else{var a=oc(n.type,t.memoizedProps);t=t.memoizedState;
2try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){lO(n,n.return,e)}}64&r&&o3(n),512&r&&o5(n,n.return);break;case 3:if(sv(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{ax(e,t)}catch(e){lO(n,n.return,e)}}break;case 27:null===t&&4&r&&sn(n);case 26:case 5:sv(e,n),null===t&&4&r&&o8(n),512&r&&o5(n,n.return);break;case 12:default:sv(e,n);break;case 31:sv(e,n),4&r&&sf(e,n);break;case 13:sv(e,n),4&r&&sh(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=lD.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||sr)){t=null!==t&&null!==t.memoizedState||sa,a=sr;var i=sa;sr=r,(sa=t)&&!i?function e(t,n,r){for(r=r&&0!=(8772&n.subtreeFlags),n=n.child;null!==n;){var a=n.alternate,i=t,o=n,s=o.flags;switch(o.tag){case 0:case 11:case 15:e(i,o,r),o1(4,o);break;case 1:if(e(i,o,r),"function"==typeof(i=(a=o).stateNode).componentDidMount)try{i.componentDidMount()}catch(e){lO(a,a.return,e)}if(null!==(i=(a=o).updateQueue)){var l=a.stateNode;try{var u=i.shared.hiddenCallbacks;if(null!==u)for(i.shared.hiddenCallbacks=null,i=0;i<u.length;i++)aN(u[i],l)}catch(e){lO(a,a.return,e)}}r&&64&s&&o3(o),o5(o,o.return);break;case 27:sn(o);case 26:case 5:e(i,o,r),r&&null===a&&4&s&&o8(o),o5(o,o.return);break;case 12:default:e(i,o,r);break;case 31:e(i,o,r),r&&4&s&&sf(i,o);break;case 13:e(i,o,r),r&&4&s&&sh(i,o);break;case 22:null===o.memoizedState&&e(i,o,r),o5(o,o.return);case 30:}n=n.sibling}}(e,n,0!=(8772&n.subtreeFlags)):sv(e,n),sr=a,sa=i}case 30:}}var su=null,sc=!1;function sd(e,t,n){for(n=n.child;null!==n;)sp(e,t,n),n=n.sibling}
vendor: 4,240 bytes, line 2
2function sp(e,t,n){if(ef&&"function"==typeof ef.onCommitFiberUnmount)try{ef.onCommitFiberUnmount(ep,n)}catch(e){}switch(n.tag){case 26:sa||o6(n,t),sd(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:sa||o6(n,t);var r=su,a=sc;uk(n.type)&&(su=n.stateNode,sc=!1),sd(e,t,n),uU(n.stateNode),su=r,sc=a;break;case 5:sa||o6(n,t);case 6:if(r=su,a=sc,su=null,sd(e,t,n),su=r,sc=a,null!==su)if(sc)try{(9===su.nodeType?su.body:"HTML"===su.nodeName?su.ownerDocument.body:su).removeChild(n.stateNode)}catch(e){lO(n,t,e)}else try{su.removeChild(n.stateNode)}catch(e){lO(n,t,e)}break;case 18:null!==su&&(sc?(uI(9===(e=su).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),cO(e)):uI(su,n.stateNode));break;case 4:r=su,a=sc,su=n.stateNode.containerInfo,sc=!0,sd(e,t,n),su=r,sc=a;break;case 0:case 11:case 14:case 15:o2(2,n,t),sa||o2(4,n,t),sd(e,t,n);break;case 1:sa||(o6(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&o4(n,t,r)),sd(e,t,n);break;case 21:default:sd(e,t,n);break;case 22:sa=(r=sa)||null!==n.memoizedState,sd(e,t,n),sa=r}}function sf(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{cO(e)}catch(e){lO(t,t.return,e)}}}function sh(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{cO(e)}catch(e){lO(t,t.return,e)}}function sm(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new so),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new so),t;default:throw Error(l(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=lU.bind(null,e,t);t.then(r,r)}})}function sg(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r],i=e,o=t,s=o;e:for(;null!==s;){switch(s.tag){case 27:if(uk(s.type)){su=s.stateNode,sc=!1;break e}break;case 5:su=s.stateNode,sc=!1;break e;case 3:case 4:su=s.stateNode.containerInfo,sc=!0;break e}s=s.return}if(null===su)throw Error(l(160));sp(i,o,a),su=null,sc=!1,null!==(i=a.alternate)&&(i.return=null),a.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)s_(t,e),t=t.sibling}var sy=null;function s_(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:sg(t,e),sb(e),4&r&&(o2(3,e,e.return),o1(3,e),o2(5,e,e.return));break;case 1:sg(t,e),sb(e),512&r&&(sa||null===n||o6(n,n.return)),64&r&&sr&&null!==(e=e.updateQueue)&&null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r));break;case 26:var a=sy;if(sg(t,e),sb(e),512&r&&(sa||null===n||o6(n,n.return)),4&r){var i=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case"title":(!(i=a.getElementsByTagName("title")[0])||i[ej]||i[eM]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=a.createElement(r),a.head.insertBefore(i,a.querySelector("head > title"))),ud(i,r,n),i[eM]=e,eY(i),r=i;break e;case"link":var o=u1("link","href",a).get(r+(n.href||""));if(o){for(var s=0;s<o.length;s++)if((i=o[s]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){o.splice(s,1);break t}}ud(i=a.createElement(r),r,n),a.head.appendChild(i);break;case"meta":if(o=u1("meta","content",a).get(r+(n.content||""))){for(s=0;s<o.length;s++)if((i=o[s]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){o.splice(s,1);break t}}ud(i=a.createElement(r),r,n),a.head.appendChild(i);break;default:throw Error(l(468,r))}i[eM]=e,eY(i),r=i}e.stateNode=r}else u2(a,e.type,e.stateNode);else e.stateNode=uK(a,r,e.memoizedProps);else i!==r?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.
2count--,null===r?u2(a,e.type,e.stateNode):uK(a,r,e.memoizedProps)):null===r&&null!==e.stateNode&&o7(e,e.memoizedProps,n.memoizedProps)}break;case 27:sg(t,e),sb(e),512&r&&(sa||null===n||o6(n,n.return)),null!==n&&4&r&&o7(e,e.memoizedProps,n.memoizedProps);break;case 5:if(sg(t,e),sb(e),512&r&&(sa||null===n||o6(n,n.return)),32&e.flags){a=e.stateNode;try{ts(a,"")}catch(t){lO(e,e.return,t)}}4&r&&null!=e.stateNode&&(a=e.memoizedProps,o7(e,a,null!==n?n.memoizedProps:a)),1024&r&&(si=!0);break;case 6:if(sg(t,e),sb(e),4&r){if(null===e.stateNode)throw Error(l(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){lO(e,e.return,t)}}break;case 3:if(u0=null,a=sy,sy=uz(t.containerInfo),sg(t,e),sy=a,sb(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{cO(t.containerInfo)}catch(t){lO(e,e.return,t)}si&&(si=!1,function e(t){if(1024&t.subtreeFlags)for(t=t.child;null!==t;){var n=t;e(n),5===n.tag&&1024&n.flags&&n.stateNode.reset(),t=t.sibling}}(e));break;case 4:r=sy,sy=uz(e.stateNode.containerInfo),sg(t,e),sb(e),sy=r;break;case 12:default:sg(t,e),sb(e);break;case 31:case 19:sg(t,e),sb(e),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,sm(e,r));break;case 13:sg(t,e),sb(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(s0=ei()),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,sm(e,r));break;case 22:a=null!==e.memoizedState;var u=null!==n&&null!==n.memoizedState,c=sr,d=sa;if(sr=c||a,sa=d||u,sg(t,e),sa=d,sr=c,sb(e),8192&r)e:for((t=e.stateNode)._visibility=a?-2&t._visibility:1|t._visibility,a&&(null===n||u||sr||sa||function e(t){for(t=t.child;null!==t;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:o2(4,n,n.return),e(n);break;case 1:o6(n,n.return);var r=n.stateNode;"function"==typeof r.componentWillUnmount&&o4(n,n.return,r),e(n);break;case 27:uU(n.stateNode);case 26:case 5:o6(n,n.return),e(n);break;case 22:null===n.memoizedState&&e(n);break;default:e(n)}t=t.sibling}}(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){u=n=t;try{if(i=u.stateNode,a)o=i.style,"function"==typeof o.setProperty?o.setProperty("display","none","important"):o.display="none";else{s=u.stateNode;var p=u.memoizedProps.style,f=null!=p&&p.hasOwnProperty("display")?p.display:null;s.style.display=null==f||"boolean"==typeof f?"":(""+f).trim()}}catch(e){lO(u,u.return,e)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=a?"":u.memoizedProps}catch(e){lO(u,u.return,e)}}}else if(18===t.tag){if(null===n){u=t;try{var h=u.stateNode;a?uR(h,!0):uR(u.stateNode,!1)}catch(e){lO(u,u.return,e)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&null!==(r=e.updateQueue)&&null!==(n=r.retryQueue)&&(r.retryQueue=null,sm(e,n));case 30:case 21:}}function sb(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(o9(r)){n=r;break}r=r.return}if(null==n)throw Error(l(160));switch(n.tag){case 27:var a=n.stateNode,i=se(e);st(e,i,a);break;case 5:var o=n.stateNode;32&n.flags&&(ts(o,""),n.flags&=-33);var s=se(e);st(e,s,o);break;case 3:case 4:var u=n.stateNode.containerInfo,c=se(e);!function e(t,n,r){var a=t.tag;if(5===a||6===a)t=t.stateNode,n?(9===r.nodeType?r.body:"HTML"===r.nodeName?r.ownerDocument.body:r).insertBefore(t,n):((n=9===r.nodeType?r.body:"HTML"===r.nodeName?r.ownerDocument.body:r).appendChild(t),null!=(r=r._reactRootContainer)||null!==n.onclick||(n.onclick=tm));else if(4!==a&&(27===a&&uk(t.type)&&(r=t.stateNode,n=null),null!==(t=t.child)))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,c,u);break;default:throw Error(l(161))}}catch(t){lO(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function sv(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)sl(e,t.alternate,t),t=t.sibling}function sS(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&r1(n))}function sE(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&r1(e))}function sT(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)sw(e,t,n,r),t=t.sibling}function sw(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:sT(e,t,n,r),2048&a&&o1(9,t);break;case 1:case 31:case 13:default:sT(e,t,n,r);break;case 3:sT(e,t,n,r),2048&a&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&r1(e)));break;case 12:if(2048&a){sT(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,o=i.id,s=i.onPostCommit;"function"==typeof s&&s(o,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(e){lO(t,t.return,e)}}else sT(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,o=t.alternate,null!==t.memoizedState?2&i._visibility?sT(e,t,n,r):sk(e,t):2&i._visibility?sT(e,t,n,r):(i._visibility|=2,function e(t,n,r,a,i){for(i=i&&0!=(10256&n.subtreeFlags),n=n.child;null!==n;){var o=n,s=o.flags;switch(o.tag){case 0:case 11:case 15:e(t,o,r,a,i),o1(8,o);break;case 23:break;case 22:var l=o.stateNode;null!==o.memoizedState?2&l._visibility?e(t,o,r,a,i):sk(t,o):(l._visibility|=2,e(t,o,r,a,i)),i&&2048&s&&sS(o.alternate,o);break;case 24:e(t,o,r,a,i),i&&2048&s&&sE(o.alternate,o);break;default:e(t,o,r,a,i)}n=n.sibling}}(e,t,n,r,0!=(10256&t.subtreeFlags))),2048&a&&sS(o,t);break;case 24:sT(e,t,n,r),2048&a&&sE(t.alternate,t)}}function sk(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=t,r=n.flags;switch(n.tag){case 22:sk(e,n),2048&r&&sS(n.alternate,n);break;case 24:sk(e,n),2048&r&&sE(n.alternate,n);break;default:sk(e,n)}t=t.sibling}}var sI=8192;function sR(e,t,n){if(e.subtreeFlags&sI)for(e=e.child;null!==e;)sC(e,t,n),e=e.sibling}
2function sC(e,t,n){switch(e.tag){case 26:sR(e,t,n),e.flags&sI&&null!==e.memoizedState&&function(e,t,n,r){if("stylesheet"===n.type&&("string"!=typeof r.media||!1!==matchMedia(r.media).matches)&&0==(4&n.state.loading)){if(null===n.instance){var a=uG(r.href),i=t.querySelector(uq(a));if(i){null!==(t=i._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=u5.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,eY(i);return}i=t.ownerDocument||t,r=uY(r),(a=uB.get(a))&&uX(r,a),eY(i=i.createElement("link"));var o=i;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),ud(i,"link",r),n.instance=i}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&0==(3&n.state.loading)&&(e.count++,n=u5.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,sy,e.memoizedState,e.memoizedProps);break;case 5:default:sR(e,t,n);break;case 3:case 4:var r=sy;sy=uz(e.stateNode.containerInfo),sR(e,t,n),sy=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=sI,sI=0x1000000,sR(e,t,n),sI=r):sR(e,t,n))}}function sA(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(null!==e)}}function sN(e){var t=e.deletions;if(0!=(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];ss=r,sO(r,e)}sA(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)sx(e),e=e.sibling}function sx(e){switch(e.tag){case 0:case 11:case 15:sN(e),2048&e.flags&&o2(9,e,e.return);break;case 3:case 12:default:sN(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,function e(t){var n=t.deletions;if(0!=(16&t.flags)){if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];ss=a,sO(a,t)}sA(t)}for(t=t.child;null!==t;){switch((n=t).tag){case 0:case 11:case 15:o2(8,n,n.return),e(n);break;case 22:2&(r=n.stateNode)._visibility&&(r._visibility&=-3,e(n));break;default:e(n)}t=t.sibling}}(e)):sN(e)}}function sO(e,t){for(;null!==ss;){var n=ss;switch(n.tag){case 0:case 11:case 15:o2(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:r1(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,ss=r;else for(n=e;null!==ss;){var a=(r=ss).sibling,i=r.return;if(!function e(t){var n=t.alternate;null!==n&&(t.alternate=null,e(n)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(n=t.stateNode)&&e$(n),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}(r),r===n){ss=null;break}if(null!==a){a.return=i,ss=a;break}ss=i}}}var sP={getCacheForType:function(e){var t=rY(rZ),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return rY(rZ).controller.signal}},sM="function"==typeof WeakMap?WeakMap:Map,sL=0,sD=null,sU=null,sB=0,sF=0,sz=null,sj=!1,s$=!1,sH=!1,sW=0,sG=0,sq=0,sY=0,sV=0,sJ=0,sK=0,sQ=null,sX=null,sZ=!1,s0=0,s1=0,s2=1/0,s3=null,s4=null,s5=0,s6=null,s8=null,s7=0,s9=0,le=null,lt=null,ln=0,lr=null;function la(){return 0!=(2&sL)&&0!==sB?sB&-sB:null!==M.T?lQ():ex()}function li(){if(0===sJ)if(0==(0x20000000&sB)||rI){var e=e_;0==(3932160&(e_<<=1))&&(e_=262144),sJ=e}else sJ=0x20000000;return null!==(e=aU.current)&&(e.flags|=32),sJ}function lo(e,t,n){(e===sD&&(2===sF||9===sF)||null!==e.cancelPendingCommit)&&(lp(e,0),lu(e,sB,sJ,!1)),ek(e,n),(0==(2&sL)||e!==sD)&&(e===sD&&(0==(2&sL)&&(sY|=n),4===sG&&lu(e,sB,sJ,!1)),lW(e))}function ls(e,t,n){if(0!=(6&sL))throw Error(l(327));for(var r=!n&&0==(127&t)&&0==(t&e.expiredLanes)||eE(e,t),a=r?function(e,t){var n=sL;sL|=2;var r=lm(),a=lg();sD!==e||sB!==t?(s3=null,s2=ei()+500,lp(e,t)):s$=eE(e,t);e:for(;;)try{if(0!==sF&&null!==sU){t=sU;var i=sz;t:switch(sF){case 1:sF=0,sz=null,lS(e,t,i,1);break;case 2:case 9:if(ao(i)){sF=0,sz=null,lv(t);break}t=function(){2!==sF&&9!==sF||sD!==e||(sF=7),lW(e)},i.then(t,t);break e;case 3:sF=7;break e;case 4:sF=5;break e;case 7:ao(i)?(sF=0,sz=null,lv(t)):(sF=0,sz=null,lS(e,t,i,7));break;case 5:var o=null;switch(sU.tag){case 26:o=sU.memoizedState;case 5:case 27:var s=sU;if(o?u3(o):s.stateNode.complete){sF=0,sz=null;var u=s.sibling;if(null!==u)sU=u;else{var c=s.return;null!==c?(sU=c,lE(c)):sU=null}break t}}sF=0,sz=null,lS(e,t,i,5);break;case 6:sF=0,sz=null,lS(e,t,i,6);break;case 8:ld(),sG=6;break e;default:throw Error(l(462))}}for(;null!==sU&&!er();)lb(sU);break}catch(t){lf(e,t)}return(rF=rB=null,M.H=r,M.A=a,sL=n,null!==sU)?0:(sD=null,sB=0,n1(),sG)}(e,t):l_(e,t,!0),i=r;;){if(0===a)s$&&!r&&lu(e,t,0,!1);else{if(n=e.current.alternate,i&&!function(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],i=a.getSnapshot;a=a.value;try{if(!nw(i(),a))return!1}catch(e){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(n)){a=l_(e,t,!1),i=!1;continue}if(2===a){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=0!=(o=-0x20000001&e.pendingLanes)?o:0x20000000&o?0x20000000:0;if(0!==o){t=o;e:{a=sQ;var s=e.current.memoizedState.isDehydrated;if(s&&(lp(e,o).flags|=256),2!==(o=l_(e,o,!1))){if(sH&&!s){e.errorRecoveryDisabledLanes|=i,sY|=i,a=4;break e}i=sX,sX=a,null!==i&&(null===sX?sX=i:sX.push.apply(sX,i))}a=o}if(i=!1,2!==a)continue}}if(1===a){lp(e,0),lu(e,t,0,!0);break}e:{switch(r=e,i=a){case 0:case 1:throw Error(l(345));case 4:if((4194048&t)!==t)break;case 6:lu(r,t,sJ,!sj);break e;case 2:sX=null;break;case 3:case 5:break;default:throw Error(l(329))}if((0x3c00000&t)===t&&10<(a=s0+300-ei())){if(lu(r,t,sJ,!sj),0!==eS(r,0,!0))break e;s7=t,r.timeoutHandle=uv(ll.bind(null,r,n,sX,s3,sZ,t,sJ,sY,sK,sj,i,"Throttled",-0,0),a);break e}ll(r,n,sX,s3,sZ,t,sJ,sY,sK,sj,i,null,-0,0)}}break}lW(e)}function ll(e,t,n,r,a,i,o,s,l,u,c,d,p,f){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||0x1002000==(0x1002000&d)){sC(t,i,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:tm});var h,m,g=(0x3c00000&i)===i?s0-ei():(4194048&i)===i?s1-ei():0;if(null!==(h=d,m=g,h.stylesheets&&0===h.count&&u8(h,h.stylesheets),g=0<h.count||0<h.imgCount?function(e){var t=setTimeout(function(){if(h.stylesheets&&u8(h,h.stylesheets),h.unsuspend){var e=h.unsuspend;h.unsuspend=null,e()}},6e4+m);0<h.imgBytes&&0===u4&&(u4=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var a=n[r],i=a.transferSize,o=a.initiatorType,s=a.duration;if(i&&s&&up(o)){for(o=0,s=a.responseEnd,r+=1;r<n.length;r++){var l=n[r],u=l.startTime;if(u>s)break;var c=l.transferSize,d=l.initiatorType;c&&up(d)&&(o+=c*((l=l.responseEnd)<s?1:(s-u)/(l-u)))}if(--r,t+=8*(i+o)/(a.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var n=setTimeout(function(){if(h.waitingForImages=!1,0===h.count&&(h.stylesheets&&u8(h,h.stylesheets),h.unsuspend)){var e=h.unsuspend;h.unsuspend=null,e()}},(h.imgBytes>u4?50:800)+m);return h.unsuspend=e,function(){h.unsuspend=null,clearTimeout(t),clearTimeout(n)}}:null)){s7=i,e.cancelPendingCommit=g(lw.bind(null,e,t,i,n,r,a,o,s,l,c,d,null,p,f)),lu(e,i,o,!u);return}}lw(e,t,i,n,r,a,o,s,l)}function lu(e,t,n,r){t&=~sV,t&=~sY,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var i=31-eh(a),o=1<<i;r[i]=-1,a&=~o}0!==n&&eI(e,n,t)}function lc(){return 0!=(6&sL)||(lG(0,!1),!1)}function ld(){if(null!==sU){if(0===sF)var e=sU.return;else e=sU,rF=rB=null,it(e),ap=null,af=0,e=sU;for(;null!==e;)o0(e.alternate,e),e=e.return;sU=null}}function lp(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,uS(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),s7=0,ld(),sD=e,sU=n=rt(e.current,null),sB=t,sF=0,sz=null,sj=!1,s$=eE(e,t),sH=!1,sK=sJ=sV=sY=sq=sG=0,sX=sQ=null,
2sZ=!1,0!=(8&t)&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var a=31-eh(r),i=1<<a;t|=e[a],r&=~i}return sW=t,n1(),n}function lf(e,t){aY=null,M.H=on,t===an||t===aa?(t=ac(),sF=3):t===ar?(t=ac(),sF=4):sF=t===ob?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,sz=t,null===sU&&(sG=1,oh(e,ru(t,e.current)))}function lh(){var e=aU.current;return null===e||((4194048&sB)===sB?null===aB:((0x3c00000&sB)===sB||0!=(0x20000000&sB))&&e===aB)}function lm(){var e=M.H;return M.H=on,null===e?on:e}function lg(){var e=M.A;return M.A=sP,e}function ly(){sG=4,sj||(4194048&sB)!==sB&&null!==aU.current||(s$=!0),0==(0x7ffffff&sq)&&0==(0x7ffffff&sY)||null===sD||lu(sD,sB,sJ,!1)}function l_(e,t,n){var r=sL;sL|=2;var a=lm(),i=lg();(sD!==e||sB!==t)&&(s3=null,lp(e,t)),t=!1;var o=sG;e:for(;;)try{if(0!==sF&&null!==sU){var s=sU,l=sz;switch(sF){case 8:ld(),o=6;break e;case 3:case 2:case 9:case 6:null===aU.current&&(t=!0);var u=sF;if(sF=0,sz=null,lS(e,s,l,u),n&&s$){o=0;break e}break;default:u=sF,sF=0,sz=null,lS(e,s,l,u)}}(function(){for(;null!==sU;)lb(sU)})(),o=sG;break}catch(t){lf(e,t)}return t&&e.shellSuspendCounter++,rF=rB=null,sL=r,M.H=a,M.A=i,null===sU&&(sD=null,sB=0,n1()),o}function lb(e){var t=oY(e.alternate,e,sW);e.memoizedProps=e.pendingProps,null===t?lE(e):sU=t}function lv(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=oO(n,t,t.pendingProps,t.type,void 0,sB);break;case 11:t=oO(n,t,t.pendingProps,t.type.render,t.ref,sB);break;case 5:it(t);default:o0(n,t),t=oY(n,t=sU=rn(t,sW),sW)}e.memoizedProps=e.pendingProps,null===t?lE(e):sU=t}function lS(e,t,n,r){rF=rB=null,it(t),ap=null,af=0;var a=t.return;try{if(function(e,t,n,r,a){if(n.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&rW(t,n,a,!0),null!==(n=aU.current)){switch(n.tag){case 31:case 13:return null===aB?ly():null===n.alternate&&0===sG&&(sG=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ai?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),lP(e,r,a)),!1;case 22:return n.flags|=65536,r===ai?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),lP(e,r,a)),!1}throw Error(l(435,n.tag))}return lP(e,r,a),ly(),!1}if(rI)return null!==(t=aU.current)?(0==(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==rA&&rD(ru(e=Error(l(422),{cause:r}),n))):(r!==rA&&rD(ru(t=Error(l(423),{cause:r}),n)),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=ru(r,n),a=og(e.stateNode,r,a),aI(e,a),4!==sG&&(sG=2)),!1;var i=Error(l(520),{cause:r});if(i=ru(i,n),null===sQ?sQ=[i]:sQ.push(i),4!==sG&&(sG=2),null===t)return!0;r=ru(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=og(n.stateNode,r,e),aI(n,e),!1;case 1:if(t=n.type,i=n.stateNode,0==(128&n.flags)&&("function"==typeof t.getDerivedStateFromError||null!==i&&"function"==typeof i.componentDidCatch&&(null===s4||!s4.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,o_(a=oy(a),e,n,r),aI(n,a),!1}n=n.return}while(null!==n)return!1}(e,a,t,n,sB)){sG=1,oh(e,ru(n,e.current)),sU=null;return}}catch(t){if(null!==a)throw sU=a,t;sG=1,oh(e,ru(n,e.current)),sU=null;return}32768&t.flags?(rI||1===r?e=!0:s$||0!=(0x20000000&sB)?e=!1:(sj=e=!0,(2===r||9===r||3===r||6===r)&&null!==(r=aU.current)&&13===r.tag&&(r.flags|=16384)),lT(t,e)):lE(t)}function lE(e){var t=e;do{if(0!=(32768&t.flags))return void lT(t,sj);e=t.return;var n=function(e,t,n){var r=t.pendingProps;switch(rE(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return oZ(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),rj(rZ),Y(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(null===e||null===e.child)&&(rP(t)?oV(t):null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,rL())),oZ(t),null;case 26:var a=t.type,i=t.memoizedState;return null===e?(oV(t),null!==i?(oZ(t),oK(t,i)):(oZ(t),oJ(t,a,null,r,n))):i?i!==e.memoizedState?(oV(t),oZ(t),oK(t,i)):(oZ(t),t.flags&=-0x1000001):((e=e.memoizedProps)!==r&&oV(t),oZ(t),oJ(t,a,e,r,n)),null;case 27:if(J(t),n=W.current,a=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&oV(t);else{if(!r){if(null===t.stateNode)throw Error(l(166));return oZ(t),null}
2e=$.current,rP(t)?rx(t):(t.stateNode=e=uD(a,r,n),oV(t))}return oZ(t),null;case 5:if(J(t),a=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&oV(t);else{if(!r){if(null===t.stateNode)throw Error(l(166));return oZ(t),null}if(i=$.current,rP(t))rx(t);else{var o=um(W.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":(i=o.createElement("div")).innerHTML="<script></script>",i=i.removeChild(i.firstChild);break;case"select":i="string"==typeof r.is?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?i.multiple=!0:r.size&&(i.size=r.size);break;default:i="string"==typeof r.is?o.createElement(a,{is:r.is}):o.createElement(a)}}i[eM]=t,i[eL]=r;e:for(o=t.child;null!==o;){if(5===o.tag||6===o.tag)i.appendChild(o.stateNode);else if(4!==o.tag&&27!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(t.stateNode=i,ud(i,a,r),a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break;case"img":r=!0;break;default:r=!1}r&&oV(t)}}return oZ(t),oJ(t,t.type,null===e?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&oV(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(l(166));if(e=W.current,rP(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(a=rw))switch(a.tag){case 27:case 5:r=a.memoizedProps}e[eM]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||ul(e.nodeValue,n)))||rN(t,!0)}else(e=um(e).createTextNode(r))[eM]=t,t.stateNode=e}return oZ(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=rP(t),null!==n){if(null===e){if(!r)throw Error(l(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(l(557));e[eM]=t}else rM(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;oZ(t),e=!1}else n=rL(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e){if(256&t.flags)return aH(t),t;return aH(t),null}if(0!=(128&t.flags))throw Error(l(558))}return oZ(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=rP(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(l(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(l(317));a[eM]=t}else rM(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;oZ(t),a=!1}else a=rL(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a){if(256&t.flags)return aH(t),t;return aH(t),null}}if(aH(t),0!=(128&t.flags))return t.lanes=n,t;return n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(r=t.child,a=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(a=r.alternate.memoizedState.cachePool.pool),i=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(i=r.memoizedState.cachePool.pool),i!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),oQ(t,t.updateQueue),oZ(t),null;case 4:return Y(),null===e&&l7(t.stateNode.containerInfo),oZ(t),null;case 10:return rj(t.type),oZ(t),null;case 19:if(z(aW),null===(r=t.memoizedState))return oZ(t),null;if(a=0!=(128&t.flags),null===(i=r.rendering))if(a)oX(r,!1);else{if(0!==sG||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=aG(e))){for(t.flags|=128,oX(r,!1),t.updateQueue=e=i.updateQueue,oQ(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)rn(n,e),n=n.sibling;return j(aW,1&aW.current|2),rI&&rb(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&ei()>s2&&(t.flags|=128,a=!0,oX(r,!1),t.lanes=4194304)}else{if(!a)if(null!==(e=aG(i))){if(t.flags|=128,a=!0,t.updateQueue=e=e.updateQueue,oQ(t,e),oX(r,!0),null===r.tail&&"hidden"===r.tailMode&&!i.alternate&&!rI)return oZ(t),null}else 2*ei()-r.renderingStartTime>s2&&0x20000000!==n&&(t.flags|=128,a=!0,oX(r,!1),t.lanes=4194304);r.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=r.last)?e.sibling=i:t.child=i,r.last=i)}if(null!==r.tail)return e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ei(),e.sibling=null,n=aW.current,j(aW,a?1&n|2:1&n),rI&&rb(t,r.treeForkCount),e;return oZ(t),null;case 22:case 23:return aH(t),aD(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!=(0x20000000&n)&&0==(128&t.flags)&&(oZ(t),6&t.subtreeFlags&&(t.flags|=8192)):oZ(t),null!==(n=t.updateQueue)&&oQ(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&z(r7),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),rj(rZ),oZ(t),null;case 25:case 30:return null}throw Error(l(156,t.tag))}(t.alternate,t,sW);if(null!==n){sU=n;return}if(null!==(t=t.sibling)){sU=t;return}sU=t=e}while(null!==t)0===sG&&(sG=5)}function lT(e,t){do{var n=function(e,t){switch(rE(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return rj(rZ),Y(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return J(t),null;case 31:if(null!==t.memoizedState){if(aH(t),null===t.alternate)throw Error(l(340));rM()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(aH(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(l(340));rM()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return z(aW),null;case 4:return Y(),null;case 10:return rj(t.type),null;case 22:case 23:return aH(t),aD(),null!==e&&z(r7),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return rj(rZ),null;default:return null}}(e.alternate,e);if(null!==n){n.flags&=32767,sU=n;return}if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deleti
2ons=null),!t&&null!==(e=e.sibling)){sU=e;return}sU=e=n}while(null!==e)sG=6,sU=null}function lw(e,t,n,r,a,i,o,s,u){e.cancelPendingCommit=null;do lA();while(0!==s5)if(0!=(6&sL))throw Error(l(327));if(null!==t){if(t===e.current)throw Error(l(177));if(!function(e,t,n,r,a,i){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=o&~n;0<n;){var c=31-eh(n),d=1<<c;s[c]=0,l[c]=-1;var p=u[c];if(null!==p)for(u[c]=null,c=0;c<p.length;c++){var f=p[c];null!==f&&(f.lane&=-0x20000001)}n&=~d}0!==r&&eI(e,r,0),0!==i&&0===a&&0!==e.tag&&(e.suspendedLanes|=i&~(o&~t))}(e,n,i=t.lanes|t.childLanes|n0,o,s,u),e===sD&&(sU=sD=null,sB=0),s8=t,s6=e,s7=n,s9=i,le=a,lt=r,0!=(10256&t.subtreeFlags)||0!=(10256&t.flags)?(e.callbackNode=null,e.callbackPriority=0,et(eu,function(){return lN(),null})):(e.callbackNode=null,e.callbackPriority=0),r=0!=(13878&t.flags),0!=(13878&t.subtreeFlags)||r){r=M.T,M.T=null,a=L.p,L.p=2,o=sL,sL|=4;try{!function(e,t){if(e=e.containerInfo,uf=cs,nA(e=nC(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a,i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var s=0,u=-1,c=-1,d=0,p=0,f=e,h=null;t:for(;;){for(;f!==n||0!==i&&3!==f.nodeType||(u=s+i),f!==o||0!==r&&3!==f.nodeType||(c=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(a=f.firstChild);)h=f,f=a;for(;;){if(f===e)break t;if(h===n&&++d===i&&(u=s),h===o&&++p===r&&(c=s),null!==(a=f.nextSibling))break;h=(f=h).parentNode}f=a}n=-1===u||-1===c?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(uh={focusedElem:e,selectionRange:n},cs=!1,ss=t;null!==ss;)if(e=(t=ss).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,ss=e;else for(;null!==ss;){switch(o=(t=ss).alternate,e=t.flags,t.tag){case 0:if(0!=(4&e)&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(i=e[n]).ref.impl=i.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!=(1024&e)&&null!==o){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var m=oc(n.type,i);e=r.getSnapshotBeforeUpdate(m,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){lO(n,n.return,e)}}break;case 3:if(0!=(1024&e)){if(9===(n=(e=t.stateNode.containerInfo).nodeType))uC(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":uC(e);break;default:e.textContent=""}}break;default:if(0!=(1024&e))throw Error(l(163))}if(null!==(e=t.sibling)){e.return=t.return,ss=e;break}ss=t.return}}(e,t)}finally{sL=o,L.p=a,M.T=r}}s5=1,lk(),lI(),lR()}}function lk(){if(1===s5){s5=0;var e=s6,t=s8,n=0!=(13878&t.flags);if(0!=(13878&t.subtreeFlags)||n){n=M.T,M.T=null;var r=L.p;L.p=2;var a=sL;sL|=4;try{s_(t,e);var i=uh,o=nC(e.containerInfo),s=i.focusedElem,l=i.selectionRange;if(o!==s&&s&&s.ownerDocument&&function e(t,n){return!!t&&!!n&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(s.ownerDocument.documentElement,s)){if(null!==l&&nA(s)){var u=l.start,c=l.end;if(void 0===c&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var d=s.ownerDocument||document,p=d&&d.defaultView||window;if(p.getSelection){var f=p.getSelection(),h=s.textContent.length,m=Math.min(l.start,h),g=void 0===l.end?m:Math.min(l.end,h);!f.extend&&m>g&&(o=g,g=m,m=o);var y=nR(s,m),_=nR(s,g);if(y&&_&&(1!==f.rangeCount||f.anchorNode!==y.node||f.anchorOffset!==y.offset||f.focusNode!==_.node||f.focusOffset!==_.offset)){var b=d.createRange();b.setStart(y.node,y.offset),f.removeAllRanges(),m>g?(f.addRange(b),f.extend(_.node,_.offset)):(b.setEnd(_.node,_.offset),f.addRange(b))}}}}for(d=[],f=s;f=f.parentNode;)1===f.nodeType&&d.push({element:f,left:f.scrollLeft,top:f.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var v=d[s];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}cs=!!uf,uh=uf=null}finally{sL=a,L.p=r,M.T=n}}e.current=t,s5=2}}function lI(){if(2===s5){s5=0;var e=s6,t=s8,n=0!=(8772&t.flags);if(0!=(8772&t.subtreeFlags)||n){n=M.T,M.T=null;var r=L.p;L.p=2;var a=sL;sL|=4;try{sl(e,t.alternate,t)}finally{sL=a,L.p=r,M.T=n}}s5=3}}function lR(){if(4===s5||3===s5){s5=0,ea();var e=s6,t=s8,n=s7,r=lt;0!=(10256&t.subtreeFlags)||0!=(10256&t.flags)?s5=5:(s5=0,s8=s6=null,lC(e,e.pendingLanes));var a=e.pendingLanes;if(0===a&&(s4=null),eN(n),t=t.stateNode,ef&&"function"==typeof ef.onCommitFiberRoot)try{ef.onCommitFiberRoot(ep,t,void 0,128==(128&t.current.flags))}catch(e){}if(null!==r){t=M.T,a=L.p,L.p=2,M.T=null;try{for(var i=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];i(s.value,{componentStack:s.stack})}}finally{M.T=t,L.p=a}}0!=(3&s7)&&lA(),lW(e),a=e.pendingLanes,0!=(261930&n)&&0!=(42&a)?e===lr?ln++:(ln=0,lr=e):ln=0,lG(0,!1)}}function lC(e,t){0==(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,r1(t))}function lA(){return lk(),lI(),lR(),lN()}function lN(){if(5!==s5)return!1;var e=s6,t=s9;s9=0;var n=eN(s7),r=M.T,a=L.p;
2try{L.p=32>n?32:n,M.T=null,n=le,le=null;var i=s6,o=s7;if(s5=0,s8=s6=null,s7=0,0!=(6&sL))throw Error(l(331));var s=sL;if(sL|=4,sx(i.current),sw(i,i.current,o,n),sL=s,lG(0,!1),ef&&"function"==typeof ef.onPostCommitFiberRoot)try{ef.onPostCommitFiberRoot(ep,i)}catch(e){}return!0}finally{L.p=a,M.T=r,lC(e,t)}}function lx(e,t,n){t=ru(n,t),t=og(e.stateNode,t,2),null!==(e=aw(e,t,2))&&(ek(e,2),lW(e))}function lO(e,t,n){if(3===e.tag)lx(e,e,n);else for(;null!==t;){if(3===t.tag){lx(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===s4||!s4.has(r))){e=ru(n,e),null!==(r=aw(t,n=oy(2),2))&&(o_(n,r,t,e),ek(r,2),lW(r));break}}t=t.return}}function lP(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new sM;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(sH=!0,a.add(n),e=lM.bind(null,e,t,n),t.then(e,e))}function lM(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,sD===e&&(sB&n)===n&&(4===sG||3===sG&&(0x3c00000&sB)===sB&&300>ei()-s0?0==(2&sL)&&lp(e,0):sV|=n,sK===sB&&(sK=0)),lW(e)}function lL(e,t){0===t&&(t=eT()),null!==(e=n4(e,t))&&(ek(e,t),lW(e))}function lD(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),lL(e,n)}function lU(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(l(314))}null!==r&&r.delete(t),lL(e,n)}var lB=null,lF=null,lz=!1,lj=!1,l$=!1,lH=0;function lW(e){e!==lF&&null===e.next&&(null===lF?lB=lF=e:lF=lF.next=e),lj=!0,lz||(lz=!0,uT(function(){0!=(6&sL)?et(es,lq):lY()}))}function lG(e,t){if(!l$&&lj){l$=!0;do for(var n=!1,r=lB;null!==r;){if(!t)if(0!==e){var a=r.pendingLanes;if(0===a)var i=0;else{var o=r.suspendedLanes,s=r.pingedLanes;i=0xc000095&(i=(1<<31-eh(42|e)+1)-1&(a&~(o&~s)))?0xc000095&i|1:i?2|i:0}0!==i&&(n=!0,lK(r,i))}else i=sB,0==(3&(i=eS(r,r===sD?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||eE(r,i)||(n=!0,lK(r,i));r=r.next}while(n)l$=!1}}function lq(){lY()}function lY(){lj=lz=!1;var e,t=0;0===lH||((e=window.event)&&"popstate"===e.type?e===ub||(ub=e,0):(ub=null,1))||(t=lH);for(var n=ei(),r=null,a=lB;null!==a;){var i=a.next,o=lV(a,n);0===o?(a.next=null,null===r?lB=i:r.next=i,null===i&&(lF=r)):(r=a,(0!==t||0!=(3&o))&&(lj=!0)),a=i}0!==s5&&5!==s5||lG(t,!1),0!==lH&&(lH=0)}function lV(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=-0x3c00001&e.pendingLanes;0<i;){var o=31-eh(i),s=1<<o,l=a[o];-1===l?(0==(s&n)||0!=(s&r))&&(a[o]=function(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return -1}}(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}if(t=sD,n=sB,n=eS(e,e===t?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===sF||9===sF)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&en(r),e.callbackNode=null,e.callbackPriority=0;if(0==(3&n)||eE(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&en(r),eN(n)){case 2:case 8:n=el;break;case 32:default:n=eu;break;case 0x10000000:n=ed}return n=et(n,r=lJ.bind(null,e)),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&en(r),e.callbackPriority=2,e.callbackNode=null,2}function lJ(e,t){if(0!==s5&&5!==s5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(lA()&&e.callbackNode!==n)return null;var r=sB;return 0===(r=eS(e,e===sD?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(ls(e,r,t),lV(e,ei()),null!=e.callbackNode&&e.callbackNode===n?lJ.bind(null,e):null)}function lK(e,t){if(lA())return null;ls(e,t,!0)}function lQ(){if(0===lH){var e=r4;0===e&&(e=ey,0==(261888&(ey<<=1))&&(ey=256)),lH=e}return lH}function lX(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:th(""+e)}function lZ(e,t){var n=t.ownerDocument.createElement("input");
vendor: 5,065 bytes, line 2
2return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var l0=0;l0<nJ.length;l0++){var l1=nJ[l0];nK(l1.toLowerCase(),"on"+(l1[0].toUpperCase()+l1.slice(1)))}nK(nj,"onAnimationEnd"),nK(n$,"onAnimationIteration"),nK(nH,"onAnimationStart"),nK("dblclick","onDoubleClick"),nK("focusin","onFocus"),nK("focusout","onBlur"),nK(nW,"onTransitionRun"),nK(nG,"onTransitionStart"),nK(nq,"onTransitionCancel"),nK(nY,"onTransitionEnd"),eQ("onMouseEnter",["mouseout","mouseover"]),eQ("onMouseLeave",["mouseout","mouseover"]),eQ("onPointerEnter",["pointerout","pointerover"]),eQ("onPointerLeave",["pointerout","pointerover"]),eK("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),eK("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),eK("onBeforeInput",["compositionend","keypress","textInput","paste"]),eK("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),eK("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),eK("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var l2="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),l3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(l2));function l4(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&a.isPropagationStopped())break e;i=s,a.currentTarget=u;try{i(a)}catch(e){nQ(e)}a.currentTarget=null,i=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,u=s.currentTarget,s=s.listener,l!==i&&a.isPropagationStopped())break e;i=s,a.currentTarget=u;try{i(a)}catch(e){nQ(e)}a.currentTarget=null,i=l}}}}function l5(e,t){var n=t[eU];void 0===n&&(n=t[eU]=new Set);var r=e+"__bubble";n.has(r)||(l9(t,e,2,!1),n.add(r))}function l6(e,t,n){var r=0;t&&(r|=4),l9(n,e,r,t)}var l8="_reactListening"+Math.random().toString(36).slice(2);function l7(e){if(!e[l8]){e[l8]=!0,eV.forEach(function(t){"selectionchange"!==t&&(l3.has(t)||l6(t,!1,e),l6(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[l8]||(t[l8]=!0,l6("selectionchange",!1,t))}}function l9(e,t,n,r){switch(ch(t)){case 2:var a=cl;break;case 8:a=cu;break;default:a=cc}n=a.bind(null,t,n,e),a=void 0,tk&&("touchstart"===t||"touchmove"===t||"wheel"===t)&&(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function ue(e,t,n,r,a){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===a)break;if(4===o)for(o=r.return;null!==o;){var l=o.tag;if((3===l||4===l)&&o.stateNode.containerInfo===a)return;o=o.return}for(;null!==s;){if(null===(o=eH(s)))return;if(5===(l=o.tag)||6===l||26===l||27===l){r=i=o;continue e}s=s.parentNode}}r=r.return}tE(function(){var r=i,a=ty(n),o=[];e:{var s=nV.get(e);if(void 0!==s){var l=tj,u=e;switch(e){case"keypress":if(0===tx(n))break e;case"keydown":case"keyup":l=t2;break;case"focusin":u="focus",l=tY;break;case"focusout":u="blur",l=tY;break;case"beforeblur":case"afterblur":l=tY;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=tG;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=tq;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=t4;break;case nj:case n$:case nH:l=tV;break;case nY:l=t5;break;case"scroll":case"scrollend":l=tH;break;case"wheel":l=t6;break;case"copy":case"cut":case"paste":l=tJ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=t3;break;case"toggle":case"beforetoggle":l=t8}var d=0!=(4&t),p=!d&&("scroll"===e||"scrollend"===e),f=d?null!==s?s+"Capture":null:s;d=[];for(var h,m=r;null!==m;){var g=m;if(h=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===h||null===f||null!=(g=tT(m,f))&&d.push(ut(m,g,h)),p)break;m=m.return}0<d.length&&(s=new l(s,u,null,n,a),o.push({event:s,listeners:d}))}}if(0==(7&t)){if((s="mouseover"===e||"pointerover"===e,l="mouseout"===e||"pointerout"===e,!(s&&n!==tg&&(u=n.relatedTarget||n.fromElement)&&(eH(u)||u[eD])))&&(l||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,null!==(u=u?eH(u):null)&&(p=c(u),d=u.tag,u!==p||5!==d&&27!==d&&6!==d)&&(u=null)):(l=null,u=r),l!==u)){if(d=tG,g="onMouseLeave",f="onMouseEnter",m="mou
2se",("pointerout"===e||"pointerover"===e)&&(d=t3,g="onPointerLeave",f="onPointerEnter",m="pointer"),p=null==l?s:eG(l),h=null==u?s:eG(u),(s=new d(g,m+"leave",l,n,a)).target=p,s.relatedTarget=h,g=null,eH(a)===r&&((d=new d(f,m+"enter",u,n,a)).target=h,d.relatedTarget=p,g=d),p=g,l&&u)t:{for(d=ur,f=l,m=u,h=0,g=f;g;g=d(g))h++;g=0;for(var y,_=m;_;_=d(_))g++;for(;0<h-g;)f=d(f),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(f===m||null!==m&&f===m.alternate){d=f;break t}f=d(f),m=d(m)}d=null}else d=null;null!==l&&ua(o,s,l,d,!1),null!==u&&null!==p&&ua(o,p,u,d,!0)}e:{if("select"===(l=(s=r?eG(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var b=nh;else if(nl(s))if(nm)b=nT;else{b=nS;var v=nv}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)?b=nE:r&&td(r.elementType)&&(b=nh);if(b&&(b=b(e,r))){nu(o,b,n,a);break e}v&&v(e,s,r),"focusout"===e&&r&&"number"===s.type&&null!=r.memoizedProps.value&&tr(s,"number",s.value)}switch(v=r?eG(r):window,e){case"focusin":(nl(v)||"true"===v.contentEditable)&&(nx=v,nO=r,nP=null);break;case"focusout":nP=nO=nx=null;break;case"mousedown":nM=!0;break;case"contextmenu":case"mouseup":case"dragend":nM=!1,nL(o,n,a);break;case"selectionchange":if(nN)break;case"keydown":case"keyup":nL(o,n,a)}if(t9)t:{switch(e){case"compositionstart":var S="onCompositionStart";break t;case"compositionend":S="onCompositionEnd";break t;case"compositionupdate":S="onCompositionUpdate";break t}S=void 0}else no?na(e,n)&&(S="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(S="onCompositionStart");S&&(nn&&"ko"!==n.locale&&(no||"onCompositionStart"!==S?"onCompositionEnd"===S&&no&&(y=tN()):(tC="value"in(tR=a)?tR.value:tR.textContent,no=!0)),0<(v=un(r,S)).length&&(S=new tK(S,e,null,n,a),o.push({event:S,listeners:v}),y?S.data=y:null!==(y=ni(n))&&(S.data=y))),(y=nt?function(e,t){switch(e){case"compositionend":return ni(t);case"keypress":if(32!==t.which)return null;return nr=!0," ";case"textInput":return" "===(e=t.data)&&nr?null:e;default:return null}}(e,n):function(e,t){if(no)return"compositionend"===e||!t9&&na(e,t)?(e=tN(),tA=tC=tR=null,no=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return nn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(S=un(r,"onBeforeInput")).length&&(v=new tK("onBeforeInput","beforeinput",null,n,a),o.push({event:v,listeners:S}),v.data=y);var E=e;if("submit"===E&&r&&r.stateNode===a){var T=lX((a[eL]||null).action),w=n.submitter;w&&null!==(E=(E=w[eL]||null)?lX(E.formAction):w.getAttribute("formAction"))&&(T=E,w=null);var k=new tj("action","action",null,n,a);o.push({event:k,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(0!==lH){var e=w?lZ(a,w):new FormData(a);iX(r,{pending:!0,data:e,method:a.method,action:T},null,e)}}else"function"==typeof T&&(k.preventDefault(),iX(r,{pending:!0,data:e=w?lZ(a,w):new FormData(a),method:a.method,action:T},T,e))},currentTarget:a}]})}}l4(o,t)})}function ut(e,t,n){return{instance:e,listener:t,currentTarget:n}}function un(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,i=a.stateNode;if(5!==(a=a.tag)&&26!==a&&27!==a||null===i||(null!=(a=tT(e,n))&&r.unshift(ut(e,a,i)),null!=(a=tT(e,t))&&r.push(ut(e,a,i))),3===e.tag)return r;e=e.return}return[]}function ur(e){if(null===e)return null;do e=e.return;while(e&&5!==e.tag&&27!==e.tag)return e||null}function ua(e,t,n,r,a){for(var i=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===u||(l=u,a?null!=(u=tT(n,i))&&o.unshift(ut(n,u,l)):a||null!=(u=tT(n,i))&&o.push(ut(n,u,l))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var ui=/\r\n?/g,uo=/\u0000|\uFFFD/g;function us(e){return("string"==typeof e?e:""+e).replace(ui,"\n").replace(uo,"")}function ul(e,t){return t=us(t),us(e)===t}function uu(e,t,n,r,a,i){switch(n){case"children":"string"==typeof r?"body"===t||"textarea"===t&&""===r||ts(e,r):("number"==typeof r||"bigint"==typeof r)&&"body"!==t&&ts(e,""+r);break;case"className":e2(e,"class",r);break;case"tabIndex":e2(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":e2(e,n,r);break;
vendor: 3,985 bytes, line 2
2case"style":tc(e,r,i);break;case"data":if("object"!==t){e2(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)||null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=th(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"==typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"==typeof i&&("formAction"===n?("input"!==t&&uu(e,t,"name",a.name,a,null),uu(e,t,"formEncType",a.formEncType,a,null),uu(e,t,"formMethod",a.formMethod,a,null),uu(e,t,"formTarget",a.formTarget,a,null)):(uu(e,t,"encType",a.encType,a,null),uu(e,t,"method",a.method,a,null),uu(e,t,"target",a.target,a,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=th(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=tm);break;case"onScroll":null!=r&&l5("scroll",e);break;case"onScrollEnd":null!=r&&l5("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(l(61));if(null!=(n=r.__html)){if(null!=a.children)throw Error(l(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":case"innerText":case"textContent":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}n=th(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":l5("beforetoggle",e),l5("toggle",e),e1(e,"popover",r);break;case"xlinkActuate":e3(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":e3(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":e3(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":e3(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":e3(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":e3(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":e3(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":e3(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":e3(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":e1(e,"is",r);break;default:2<n.length&&("o"===n[0]||"O"===n[0])&&("n"===n[1]||"N"===n[1])||e1(e,n=tp.get(n)||n,r)}}
2function uc(e,t,n,r,a,i){switch(n){case"style":tc(e,r,i);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(l(61));if(null!=(n=r.__html)){if(null!=a.children)throw Error(l(60));e.innerHTML=n}}break;case"children":"string"==typeof r?ts(e,r):("number"==typeof r||"bigint"==typeof r)&&ts(e,""+r);break;case"onScroll":null!=r&&l5("scroll",e);break;case"onScrollEnd":null!=r&&l5("scrollend",e);break;case"onClick":null!=r&&(e.onclick=tm);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:if(!eJ.hasOwnProperty(n))e:{if("o"===n[0]&&"n"===n[1]&&(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),"function"==typeof(i=null!=(i=e[eL]||null)?i[n]:null)&&e.removeEventListener(t,i,a),"function"==typeof r)){"function"!=typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break e}n in e?e[n]=r:!0===r?e.setAttribute(n,""):e1(e,n,r)}}}function ud(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":l5("error",e),l5("load",e);var r,a=!1,i=!1;for(r in n)if(n.hasOwnProperty(r)){var o=n[r];if(null!=o)switch(r){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:uu(e,t,r,o,n,null)}}i&&uu(e,t,"srcSet",n.srcSet,n,null),a&&uu(e,t,"src",n.src,n,null);return;case"input":l5("invalid",e);var s=r=o=i=null,u=null,c=null;for(a in n)if(n.hasOwnProperty(a)){var d=n[a];if(null!=d)switch(a){case"name":i=d;break;case"type":o=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":r=d;break;case"defaultValue":s=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(l(137,t));break;default:uu(e,t,a,d,n,null)}}tn(e,r,s,u,c,o,i,!1);return;case"select":for(i in l5("invalid",e),a=o=r=null,n)if(n.hasOwnProperty(i)&&null!=(s=n[i]))switch(i){case"value":r=s;break;case"defaultValue":o=s;break;case"multiple":a=s;default:uu(e,t,i,s,n,null)}t=r,n=o,e.multiple=!!a,null!=t?ta(e,!!a,t,!1):null!=n&&ta(e,!!a,n,!0);return;case"textarea":for(o in l5("invalid",e),r=i=a=null,n)if(n.hasOwnProperty(o)&&null!=(s=n[o]))switch(o){case"value":a=s;break;case"defaultValue":i=s;break;case"children":r=s;break;case"dangerouslySetInnerHTML":if(null!=s)throw Error(l(91));break;default:uu(e,t,o,s,n,null)}to(e,a,i,r);return;case"option":for(u in n)n.hasOwnProperty(u)&&null!=(a=n[u])&&("selected"===u?e.selected=a&&"function"!=typeof a&&"symbol"!=typeof a:uu(e,t,u,a,n,null));return;case"dialog":l5("beforetoggle",e),l5("toggle",e),l5("cancel",e),l5("close",e);break;case"iframe":case"object":l5("load",e);break;case"video":case"audio":for(a=0;a<l2.length;a++)l5(l2[a],e);break;case"image":l5("error",e),l5("load",e);break;case"details":l5("toggle",e);break;case"embed":case"source":case"link":l5("error",e),l5("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(a=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:uu(e,t,c,a,n,null)}return;default:if(td(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(a=n[d])&&uc(e,t,d,a,n,void 0);return}}for(s in n)n.hasOwnProperty(s)&&null!=(a=n[s])&&uu(e,t,s,a,n,null)}function up(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var uf=null,uh=null;function um(e){return 9===e.nodeType?e:e.ownerDocument}function ug(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function uy(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function u_(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ub=null,uv="function"==typeof setTimeout?setTimeout:void 0,uS="function"==typeof clearTimeout?clearTimeout:void 0,uE="function"==typeof Promise?Promise:void 0,uT="function"==typeof queueMicrotask?queueMicrotask:void 0!==uE?function(e){return uE.resolve(null).then(e).catch(uw)}:uv;function uw(e){setTimeout(function(){throw e})}function uk(e){return"head"===e}function uI(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)||"/&"===n){if(0===r){e.removeChild(a),cO(t);return}r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)uU(e.ownerDocument.documentElement);else if("head"===n){uU(n=e.ownerDocument.head);for(var i=n.firstChild;i;){var o=i.nextSibling,s=i.nodeName;i[ej]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=o}}else"body"===n&&uU(e.ownerDocument.body);n=a}while(n)cO(t)}function uR(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.
vendor: 4,425 bytes, line 2
2nodeType)if("/$"===(n=r.data))if(0===e)break;else e--;else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function uC(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":uC(n),e$(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function uA(e,t){for(;8!==e.nodeType;)if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t||null===(e=uO(e.nextSibling)))return null;return e}function uN(e){return"$?"===e.data||"$~"===e.data}function ux(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function uO(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var uP=null;function uM(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return uO(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function uL(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function uD(e,t,n){switch(t=um(n),e){case"html":if(!(e=t.documentElement))throw Error(l(452));return e;case"head":if(!(e=t.head))throw Error(l(453));return e;case"body":if(!(e=t.body))throw Error(l(454));return e;default:throw Error(l(451))}}function uU(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);e$(e)}var uB=new Map,uF=new Set;function uz(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var uj=L.d;L.d={f:function(){var e=uj.f(),t=lc();return e||t},r:function(e){var t=eW(e);null!==t&&5===t.tag&&"form"===t.type?i0(t):uj.r(e)},D:function(e){uj.D(e),uH("dns-prefetch",e,null)},C:function(e,t){uj.C(e,t),uH("preconnect",e,t)},L:function(e,t,n){if(uj.L(e,t,n),u$&&e&&t){var r='link[rel="preload"][as="'+te(t)+'"]';"image"===t&&n&&n.imageSrcSet?(r+='[imagesrcset="'+te(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(r+='[imagesizes="'+te(n.imageSizes)+'"]')):r+='[href="'+te(e)+'"]';var a=r;switch(t){case"style":a=uG(e);break;case"script":a=uV(e)}uB.has(a)||(e=h({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),uB.set(a,e),null!==u$.querySelector(r)||"style"===t&&u$.querySelector(uq(a))||"script"===t&&u$.querySelector(uJ(a))||(ud(t=u$.createElement("link"),"link",e),eY(t),u$.head.appendChild(t)))}},m:function(e,t){if(uj.m(e,t),u$&&e){var n=t&&"string"==typeof t.as?t.as:"script",r='link[rel="modulepreload"][as="'+te(n)+'"][href="'+te(e)+'"]',a=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=uV(e)}if(!uB.has(a)&&(e=h({rel:"modulepreload",href:e},t),uB.set(a,e),null===u$.querySelector(r))){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u$.querySelector(uJ(a)))return}ud(n=u$.createElement("link"),"link",e),eY(n),u$.head.appendChild(n)}}},X:function(e,t){if(uj.X(e,t),u$&&e){var n=eq(u$).hoistableScripts,r=uV(e),a=n.get(r);a||((a=u$.querySelector(uJ(r)))||(e=h({src:e,async:!0},t),(t=uB.get(r))&&uZ(e,t),eY(a=u$.createElement("script")),ud(a,"link",e),u$.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},n.set(r,a))}},S:function(e,t,n){if(uj.S(e,t,n),u$&&e){var r=eq(u$).hoistableStyles,a=uG(e);t=t||"default";var i=r.get(a);if(!i){var o={loading:0,preload:null};if(i=u$.querySelector(uq(a)))o.loading=5;else{e=h({rel:"stylesheet",href:e,"data-precedence":t},n),(n=uB.get(a))&&uX(e,n);var s=i=u$.createElement("link");eY(s),ud(s,"link",e),s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),s.addEventListener("load",function(){o.loading|=1}),s.addEventListener("error",function(){o.loading|=2}),o.loading|=4,uQ(i,t,u$)}i={type:"stylesheet",instance:i,count:1,state:o},r.set(a,i)}}},M:function(e,t){if(uj.M(e,t),u$&&e){var n=eq(u$).hoistableScripts,r=uV(e),a=n.get(r);a||((a=u$.querySelector(uJ(r)))||(e=h({src:e,async:!0,type:"module"},t),(t=uB.get(r))&&uZ(e,t),eY(a=u$.createElement("script")),ud(a,"link",e),u$.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},n.set(r,a))}}};
vendor: 4,931 bytes, line 2
2var u$="u"<typeof document?null:document;function uH(e,t,n){if(u$&&"string"==typeof t&&t){var r=te(t);r='link[rel="'+e+'"][href="'+r+'"]',"string"==typeof n&&(r+='[crossorigin="'+n+'"]'),uF.has(r)||(uF.add(r),e={rel:e,crossOrigin:n,href:t},null===u$.querySelector(r)&&(ud(t=u$.createElement("link"),"link",e),eY(t),u$.head.appendChild(t)))}}function uW(e,t,n,r){var a=(a=W.current)?uz(a):null;if(!a)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=uG(n.href),(r=(n=eq(a).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=uG(n.href);var i,o,s,u,c=eq(a).hoistableStyles,d=c.get(e);if(d||(a=a.ownerDocument||a,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=a.querySelector(uq(e)))&&!c._p&&(d.instance=c,d.state.loading=5),uB.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},uB.set(e,n),c||(i=a,o=e,s=n,u=d.state,i.querySelector('link[rel="preload"][as="style"]['+o+"]")?u.loading=1:(u.preload=o=i.createElement("link"),o.addEventListener("load",function(){return u.loading|=1}),o.addEventListener("error",function(){return u.loading|=2}),ud(o,"link",s),eY(o),i.head.appendChild(o))))),t&&null===r)throw Error(l(528,""));return d}if(t&&null!==r)throw Error(l(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=uV(n),(r=(n=eq(a).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function uG(e){return'href="'+te(e)+'"'}function uq(e){return'link[rel="stylesheet"]['+e+"]"}function uY(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function uV(e){return'[src="'+te(e)+'"]'}function uJ(e){return"script[async]"+e}function uK(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+te(n.href)+'"]');if(r)return t.instance=r,eY(r),r;var a=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return eY(r=(e.ownerDocument||e).createElement("style")),ud(r,"style",a),uQ(r,n.precedence,e),t.instance=r;case"stylesheet":a=uG(n.href);var i=e.querySelector(uq(a));if(i)return t.state.loading|=4,t.instance=i,eY(i),i;r=uY(n),(a=uB.get(a))&&uX(r,a),eY(i=(e.ownerDocument||e).createElement("link"));var o=i;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),ud(i,"link",r),t.state.loading|=4,uQ(i,n.precedence,e),t.instance=i;case"script":if(i=uV(n.src),a=e.querySelector(uJ(i)))return t.instance=a,eY(a),a;return r=n,(a=uB.get(i))&&uZ(r=h({},n),a),eY(a=(e=e.ownerDocument||e).createElement("script")),ud(a,"link",r),e.head.appendChild(a),t.instance=a;case"void":return null;default:throw Error(l(443,t.type))}return"stylesheet"===t.type&&0==(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,uQ(r,n.precedence,e)),t.instance}function uQ(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,i=a,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)i=s;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function uX(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function uZ(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var u0=null;function u1(e,t,n){if(null===u0){var r=new Map,a=u0=new Map;a.set(n,r)}else(r=(a=u0).get(n))||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var i=n[a];if(!(i[ej]||i[eM]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var o=i.getAttribute(t)||"";o=e+o;var s=r.get(o);s?s.push(i):r.set(o,[i])}}return r}function u2(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function u3(e){return"stylesheet"!==e.type||0!=(3&e.state.loading)}var u4=0;function u5(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages)){if(this.stylesheets)u8(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var u6=null;function u8(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,u6=new Map,t.forEach(u7,e),u6=null,u5.call(e))}function u7(e,t){if(!(4&t.state.loading)){var n=u6.get(e);
vendor: 5,907 bytes, line 2
2if(n)var r=n.get(null);else{n=new Map,u6.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var o=a[i];("LINK"===o.nodeName||"not all"!==o.getAttribute("media"))&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}o=(a=t.instance).getAttribute("data-precedence"),(i=n.get(o)||r)===r&&n.set(null,a),n.set(o,a),this.count++,r=u5.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),i?i.parentNode.insertBefore(a,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(a,e.firstChild),t.state.loading|=4}}var u9={$$typeof:E,Provider:null,Consumer:null,_currentValue:D,_currentValue2:D,_threadCount:0};function ce(e,t,n,r,a,i,o,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ew(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ew(0),this.hiddenUpdates=ew(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function ct(e,t,n,r,a,i,o,s,l,u,c,d){return e=new ce(e,t,n,o,l,u,c,d,s),t=1,!0===i&&(t|=24),i=n9(3,null,null,t),e.current=i,i.stateNode=e,t=r0(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},aS(i),e}function cn(e,t,n,r,a,i){a=a?n8:n8,null===r.context?r.context=a:r.pendingContext=a,(r=aT(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=aw(e,r,t))&&(lo(n,e,t),ak(n,e,t))}function cr(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ca(e,t){cr(e,t),(e=e.alternate)&&cr(e,t)}function ci(e){if(13===e.tag||31===e.tag){var t=n4(e,0x4000000);null!==t&&lo(t,e,0x4000000),ca(e,0x4000000)}}function co(e){if(13===e.tag||31===e.tag){var t=la(),n=n4(e,t=eA(t));null!==n&&lo(n,e,t),ca(e,t)}}var cs=!0;function cl(e,t,n,r){var a=M.T;M.T=null;var i=L.p;try{L.p=2,cc(e,t,n,r)}finally{L.p=i,M.T=a}}function cu(e,t,n,r){var a=M.T;M.T=null;var i=L.p;try{L.p=8,cc(e,t,n,r)}finally{L.p=i,M.T=a}}function cc(e,t,n,r){if(cs){var a=cd(r);if(null===a)ue(e,t,r,cp,n),cT(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return cg=cw(cg,e,t,n,r,a),!0;case"dragenter":return cy=cw(cy,e,t,n,r,a),!0;case"mouseover":return c_=cw(c_,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return cb.set(i,cw(cb.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,cv.set(i,cw(cv.get(i)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(cT(e,r),4&t&&-1<cE.indexOf(e)){for(;null!==a;){var i=eW(a);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var o=ev(i.pendingLanes);if(0!==o){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var l=1<<31-eh(o);s.entanglements[1]|=l,o&=~l}lW(i),0==(6&sL)&&(s2=ei()+500,lG(0,!1))}}break;case 31:case 13:null!==(s=n4(i,2))&&lo(s,i,2),lc(),ca(i,2)}if(null===(i=cd(r))&&ue(e,t,r,cp,n),i===a)break;a=i}null!==a&&r.stopPropagation()}else ue(e,t,r,null,n)}}function cd(e){return cf(e=ty(e))}var cp=null;function cf(e){if(cp=null,null!==(e=eH(e))){var t=c(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=d(t)))return e;e=null}else if(31===n){if(null!==(e=p(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return cp=e,null}function ch(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(eo()){case es:return 2;case el:return 8;case eu:case ec:return 32;case ed:return 0x10000000;default:return 32}default:return 32}}var cm=!1,cg=null,cy=null,c_=null,cb=new Map,cv=new Map,cS=[],cE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function cT(e,t){switch(e){case"focusin":case"focusout":cg=null;break;case"dragenter":case"dragleave":cy=null;break;case"mouseover":case"mouseout":c_=null;break;case"pointerover":case"pointerout":cb.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":cv.delete(t.pointerId)}}function cw(e,t,n,r,a,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[a]},null!==t&&null!==(t=eW(t))&&ci(t)):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.pu
2sh(a)),e}function ck(e){var t=eH(e.target);if(null!==t){var n=c(t);if(null!==n){if(13===(t=n.tag)){if(null!==(t=d(n))){e.blockedOn=t,eO(e.priority,function(){co(n)});return}}else if(31===t){if(null!==(t=p(n))){e.blockedOn=t,eO(e.priority,function(){co(n)});return}}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=3===n.tag?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function cI(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=cd(e.nativeEvent);if(null!==n)return null!==(t=eW(n))&&ci(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);tg=r,n.target.dispatchEvent(r),tg=null,t.shift()}return!0}function cR(e,t,n){cI(e)&&n.delete(t)}function cC(){cm=!1,null!==cg&&cI(cg)&&(cg=null),null!==cy&&cI(cy)&&(cy=null),null!==c_&&cI(c_)&&(c_=null),cb.forEach(cR),cv.forEach(cR)}function cA(e,t){e.blockedOn===t&&(e.blockedOn=null,cm||(cm=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,cC)))}var cN=null;function cx(e){cN!==e&&(cN=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){cN===e&&(cN=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if("function"!=typeof r)if(null===cf(r||n))continue;else break;var i=eW(n);null!==i&&(e.splice(t,3),t-=3,iX(i,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function cO(e){function t(t){return cA(t,e)}null!==cg&&cA(cg,e),null!==cy&&cA(cy,e),null!==c_&&cA(c_,e),cb.forEach(t),cv.forEach(t);for(var n=0;n<cS.length;n++){var r=cS[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<cS.length&&null===(n=cS[0]).blockedOn;)ck(n),null===n.blockedOn&&cS.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var a=n[r],i=n[r+1],o=a[eL]||null;if("function"==typeof i)o||cx(n);else if(o){var s=null;if(i&&i.hasAttribute("formAction")){if(a=i,o=i[eL]||null)s=o.formAction;else if(null!==cf(a))continue}else s=o.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),cx(n)}}}function cP(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return a=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==a&&(a(),a=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==a&&(a(),a=null)}}}function cM(e){this._internalRoot=e}function cL(e){this._internalRoot=e}cL.prototype.render=cM.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(l(409));cn(t.current,la(),e,t,null,null)},cL.prototype.unmount=cM.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cn(e.current,2,null,e,null,null),lc(),t[eD]=null}},cL.prototype.unstable_scheduleHydration=function(e){if(e){var t=ex();e={blockedOn:null,target:e,priority:t};for(var n=0;n<cS.length&&0!==t&&t<cS[n].priority;n++);cS.splice(n,0,e),0===n&&ck(e)}};var cD=o.version;if("19.2.6"!==cD)throw Error(l(527,cD,"19.2.6"));if(L.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(l(188));throw Error(l(268,e=Object.keys(e).join(",")))}return null===(e=null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=c(e)))throw Error(l(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(r=a.return)){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return f(a),e;if(i===r)return f(a),t;i=i.sibling}throw Error(l(188))}if(n.return!==r.return)n=a,r=i;else{for(var o=!1,s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o){for(s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o)throw Error(l(189))}}if(n.alternate!==r)throw Error(l(190))}if(3!==n.tag)throw Error(l(188));return n.stateNode.current===n?e:t}(t))?function e(t){var n=t.tag;if(5===n||26===n||27===n||6===n)return t;for(t=t.child;null!==t;){if(null!==(n=e(t)))return n;t=t.sibling}return null}(e):null)?null:e.stateNode},"u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var cU=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cU.isDisabled&&cU.supportsFiber)try{ep=cU.inject({bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.6"}),ef=cU}catch(e){}}n.createRoot=function(e,t){if(!u(e))throw Error(l(299));var n=!1,r="",a=od,i=op,o=of;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(i=t.onCaughtError),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=ct(e,1,!1,null,null,n,r,null,a,i,o,cP),e[eD]=t.current,l7(e),new cM(t)},n.hydrateRoot=function(e,t,n){if(!u(e))throw Error(l(299));var r,a=!1,i="",o=od,s=op,c=of,d=null;return null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onUncaughtError&&(o=n.onUncaughtError),void 0!==n.onCaughtError&&(s=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.formState&&(d=n.formState)),(t=ct(e,1,!0,t,null!=n?n:null,a,i,d,o,s,c,cP)).context=(r=null,n8),n=t.current,(i=aT(a=eA(a=la()))).callback=null,aw(n,i,a),n=a,t.current.lanes=n,ek(t,n),lW(t),e[eD]=t.current,l7(e),new cL(t)},n.version="19.2.6"},681912,(e,t,n)=>{"use strict";!function e(){if("u">typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),t.exports=e.r(857647)},382850,e=>{"use strict";let t,n,r,a,i,o,s,l,u,c,d,p,f,h,m,g,y,_,b,v,S,E,T,w,k,I,R,C,A,N,x,O;var P,M,L,D,U,B,F,z,j,$,H,W,G=e.i(350461);e.s([],176418),e.i(176418);
2var q=e.i(182021),Y=e.i(410544),V=e.i(653541);function J(e,t,n=[t],r="npm"){let a=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};a.name||(a.name=`sentry.javascript.${t}`,a.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:V.SDK_VERSION})),a.version=V.SDK_VERSION)}var K=e.i(275885),Q=e.i(451048),X=e.i(664660);let Z=[];function ee(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function et(e,t,n){if(n[t.name]){X.DEBUG_BUILD&&q.debug.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Z.includes(t.name)||"function"!=typeof t.setupOnce||(t.setupOnce(),Z.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)}["processSpan","processSegmentSpan"].forEach(n=>{let r=t[n];"function"==typeof r&&e.on(n,n=>r.call(t,n,e))}),X.DEBUG_BUILD&&q.debug.log(`Integration installed: ${t.name}`)}function en(e){let t=(0,Q.getClient)();if(!t){X.DEBUG_BUILD&&q.debug.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function er(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}var ea=e.i(387395),ei=e.i(399677);let eo=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/Java exception was raised during method invocation$/,/Java object is gone$/],es=(e={})=>{let t;return{name:"EventFilters",setup(n){t=eu(e,n.getOptions())},processEvent:(n,r,a)=>(t||(t=eu(e,a.getOptions())),!function(e,t){if(e.type){if("transaction"===e.type&&function(e,t){if(!t?.length)return!1;let n=e.transaction;return!!n&&(0,ei.stringMatchesSomePattern)(n,t)}(e,t.ignoreTransactions))return X.DEBUG_BUILD&&q.debug.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
3Event: ${(0,ea.getEventDescription)(e)}`),!0}else{var n,r,a;if(n=e,r=t.ignoreErrors,r?.length&&er(n).some(e=>(0,ei.stringMatchesSomePattern)(e,r)))return X.DEBUG_BUILD&&q.debug.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
4Event: ${(0,ea.getEventDescription)(e)}`),!0;if(a=e,a.exception?.values?.length&&!a.message&&!a.exception.values.some(e=>e.stacktrace||e.type&&"Error"!==e.type||e.value))return X.DEBUG_BUILD&&q.debug.warn(`Event dropped due to not having an error message, error type or stacktrace.
5Event: ${(0,ea.getEventDescription)(e)}`),!0;if(function(e,t){if(!t?.length)return!1;let n=ec(e);return!!n&&(0,ei.stringMatchesSomePattern)(n,t)}(e,t.denyUrls))return X.DEBUG_BUILD&&q.debug.warn(`Event dropped due to being matched by \`denyUrls\` option.
6Event: ${(0,ea.getEventDescription)(e)}.
7Url: ${ec(e)}`),!0;if(!function(e,t){if(!t?.length)return!0;let n=ec(e);return!n||(0,ei.stringMatchesSomePattern)(n,t)}(e,t.allowUrls))return X.DEBUG_BUILD&&q.debug.warn(`Event dropped due to not being matched by \`allowUrls\` option.
8Event: ${(0,ea.getEventDescription)(e)}.
9Url: ${ec(e)}`),!0}return!1}(n,t)?n:null)}},el=(e={})=>({...es(e),name:"InboundFilters"});function eu(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:eo],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function ec(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length),n=t?.stacktrace?.frames;return n?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}(n):null}catch{return X.DEBUG_BUILD&&q.debug.error(`Cannot extract url for event ${(0,ea.getEventDescription)(e)}`),null}}var ed=e.i(899619);let ep=new WeakMap,ef=()=>({name:"FunctionToString",setupOnce(){let e=Function.prototype.toString;try{Function.prototype.toString=function(...t){let n,r=(0,ed.getOriginalFunction)(this);try{ep.has((0,Q.getClient)())&&void 0!==r&&(n=r)}catch{}return e.apply(n??this,t)}}catch{}},setup(e){ep.set(e,!0)}});var eh=e.i(63104),em=e.i(893859),eg=e.i(25366);let ey=()=>{let e;return{name:"Dedupe",processEvent(t){if(t.type)return t;try{var n,r,a,i,o,s;let l,u,c,d;if(n=t,(r=e)&&(a=n,i=r,l=a.message,u=i.message,(l||u)&&(!l||u)&&(l||!u)&&l===u&&eb(a,i)&&e_(a,i)&&1||(o=n,s=r,c=ev(s),d=ev(o),c&&d&&c.type===d.type&&c.value===d.value&&eb(o,s)&&e_(o,s))))return X.DEBUG_BUILD&&q.debug.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}};function e_(e,t){let n=(0,eg.getFramesFromEvent)(e),r=(0,eg.getFramesFromEvent)(t);
9if(!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],a=n[e];if(t.filename!==a.filename||t.lineno!==a.lineno||t.colno!==a.colno||t.function!==a.function)return!1}return!0}function eb(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{return!1}}function ev(e){return e.exception?.values?.[0]}var eS=e.i(878174);function eE(e){(0,Q.getCurrentScope)().setClient(e)}var eT=e.i(111053);function ew(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function ek(e,t,n){let r;return t||`${ew(e)}${e.projectId}/envelope/?${r={sentry_version:"7"},e.publicKey&&(r.sentry_key=e.publicKey),n&&(r.sentry_client=`${n.name}/${n.version}`),new URLSearchParams(r).toString()}`}var eI=e.i(872028),eR=e.i(540735);function eC(e){return(0,ed.addNonEnumerableProperty)(e,"_streamed",!0),e}function eA(e){return!!e&&"function"==typeof e&&"_streamed"in e&&!!e._streamed}var eN=e.i(931140),ex=e.i(479838);function eO(e,t=[]){return[e,t]}function eP(e,t){let[n,r]=e;return[n,[...r,t]]}function eM(e,t){for(let n of e[1]){let e=n[0].type;if(t(n,e))return!0}return!1}function eL(e,t){return eM(e,(e,n)=>t.includes(n))}function eD(e){let t=(0,eN.getSentryCarrier)(Y.GLOBAL_OBJ);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function eU(e){let[t,n]=e,r=JSON.stringify(t);function a(e){"string"==typeof r?r="string"==typeof e?r+e:[eD(r),e]:r.push("string"==typeof e?eD(e):e)}for(let e of n){let[t,n]=e;if(a(`
10${JSON.stringify(t)}
11`),"string"==typeof n||n instanceof Uint8Array)a(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify((0,eS.normalize)(n))}a(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)}let eB={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function eF(e){return e in eB?eB[e]:e}function ez(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function ej(e,t,n,r){let a=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date((0,ex.safeDateNow)()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:(0,eT.dsnToString)(r)},...a&&{trace:a}}}function e$(e){q.debug.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function eH(e,t){if(!t?.length)return!1;for(let r of t){var n;if("string"==typeof(n=r)||n instanceof RegExp){if(e.description&&(0,ei.isMatchingPattern)(e.description,r))return X.DEBUG_BUILD&&e$(e),!0;continue}let t=!!r.attributes&&Object.keys(r.attributes).length>0;if(!r.name&&!r.op&&!t)continue;let a=!r.name||e.description&&(0,ei.isMatchingPattern)(e.description,r.name),i=!r.op||e.op&&(0,ei.isMatchingPattern)(e.op,r.op),o=!r.attributes||Object.entries(r.attributes).every(([t,n])=>(function(e,t){return"string"==typeof e&&("string"==typeof t||t instanceof RegExp)?(0,ei.isMatchingPattern)(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e===t})(e.attributes?.[t],n));if(a&&i&&o)return X.DEBUG_BUILD&&e$(e),!0}return!1}var eW=e.i(574860),eG=e.i(914046),eq=e.i(272536),eY=e.i(266361),eV=e.i(847378);let eJ=0;function eK(e){let n=Math.floor(1e3*e);void 0!==t&&n!==t&&(eJ=0);let r=eJ;return eJ++,t=n,{key:"sentry.timestamp.sequence",value:{value:r,type:"integer"}}}function eQ(e,t){return t?(0,Q.withScope)(t,()=>{let n=(0,em.getActiveSpan)(),r=n?(0,em.spanToTraceContext)(n):(0,Q.getTraceContextFromScope)(t);return[n?(0,eR.getDynamicSamplingContextFromSpan)(n):(0,eR.getDynamicSamplingContextFromScope)(e,t),r]}):[void 0,void 0]}let eX={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function eZ(){let e;return"u">typeof window&&(!(!("u">typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==G.default?G.default:0))||(e=Y.GLOBAL_OBJ.process,e?.type==="renderer"))}function e0(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function e1(e,t){var n;let r=e4(),a=(n=e,e4().get(n));void 0===a?r.set(e,[t]):a.length>=100?(e3(e,a),r.set(e,[t])):r.set(e,[...a,t])}function e2(e,t=(0,Q.getCurrentScope)(),n=e1){let r=t?.getClient()??(0,Q.getClient)();if(!r){X.DEBUG_BUILD&&q.debug.warn("No client available to capture log.");return}let{release:a,environment:i,enableLogs:o=!0,beforeSendLog:s}=r.getOptions();if(!o){X.DEBUG_BUILD&&q.debug.warn("logging option not enabled, log will not be captured.");return}let[,l]=eQ(r,t),u={...e.attributes},{user:{id:c,email:d,username:p},attributes:f={}}=(0,eq.getCombinedScopeData)((0,Q.getIsolationScope)(),t);e0(u,"user.id",c,!1),e0(u,"user.email",d,!1),e0(u,"user.name",p,!1),e0(u,"sentry.release",a),e0(u,"sentry.environment",i);let{name:h,version:m}=r.getSdkMetadata()?.sdk??{};e0(u,"sentry.sdk.name",h),e0(u,"sentry.sdk.version",m);let g=r.getIntegrationByName("Replay"),y=g?.getReplayId(!0);e0(u,"sentry.replay_id",y),y&&g?.getRecordingMode()==="buffer"&&e0(u,"sentry._internal.replay_is_buffering",!0);let _=e.message;
11if((0,eG.isParameterizedString)(_)){let{__sentry_template_string__:e,__sentry_template_values__:t=[]}=_;t?.length&&(u["sentry.message.template"]=e),t.forEach((e,t)=>{u[`sentry.message.parameter.${t}`]=e})}let b=(0,eY._getSpanForScope)(t);e0(u,"sentry.trace.parent_span_id",b?.spanContext().spanId);let v={...e,attributes:u};r.emit("beforeCaptureLog",v);let S=s?(0,q.consoleSandbox)(()=>s(v)):v;if(!S){r.recordDroppedEvent("before_send","log_item",1),X.DEBUG_BUILD&&q.debug.warn("beforeSendLog returned null, log will not be captured.");return}let{level:E,message:T,attributes:w={},severityNumber:k}=S,I=(0,eV.timestampInSeconds)(),R=eK(I);n(r,{timestamp:I,level:E,body:e5(String(T)),trace_id:l?.trace_id,severity_number:k??eX[E],attributes:function(e){let t={};for(let[n,r]of Object.entries(e)){let e=e5(n);"string"===r.type?t[e]={...r,value:e5(r.value)}:t[e]=r}return t}({...(0,eW.serializeAttributes)(f),...(0,eW.serializeAttributes)(w,!0),[R.key]:R.value})}),r.emit("afterCaptureLog",S)}function e3(e,t){var n,r,a,i,o;let s,l,u=t??(o=e,e4().get(o))??[];if(0===u.length)return;let c=e.getOptions(),d=(n=c._metadata,r=c.tunnel,a=e.getDsn(),i=e.getDataCollectionOptions().userInfo,s={},n?.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),r&&a&&(s.dsn=(0,eT.dsnToString)(a)),eO(s,[(l=i?"auto":"never",[{type:"log",item_count:u.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...eZ()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:u}])]));e4().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(d)}function e4(){return(0,eN.getGlobalSingleton)("clientToLogBufferMap",()=>new WeakMap)}function e5(e){let t=Object(e),n=t.isWellFormed,r=t.toWellFormed;return"function"==typeof n&&"function"==typeof r?n.call(e)?e:r.call(e):e}function e6(e,t,n,r=!0){!n||!r&&t in e||(e[t]=n)}function e8(e,t){var n;let r=e9(),a=(n=e,e9().get(n));void 0===a?r.set(e,[t]):a.length>=1e3?(e7(e,a),r.set(e,[t])):r.set(e,[...a,t])}function e7(e,t){var n,r,a,i,o;let s,l,u=t??(o=e,e9().get(o))??[];if(0===u.length)return;let c=e.getOptions(),d=(n=c._metadata,r=c.tunnel,a=e.getDsn(),i=e.getDataCollectionOptions().userInfo,s={},n?.sdk&&(s.sdk={name:n.sdk.name,version:n.sdk.version}),r&&a&&(s.dsn=(0,eT.dsnToString)(a)),eO(s,[(l=i?"auto":"never",[{type:"trace_metric",item_count:u.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...eZ()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:u}])]));e9().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(d)}function e9(){return(0,eN.getGlobalSingleton)("clientToMetricBufferMap",()=>new WeakMap)}var te=e.i(817433);function tt(e){return"stream"===e.getOptions().traceLifecycle}var tn=e.i(980323);function tr(e){return"object"==typeof e&&"function"==typeof e.unref&&e.unref(),e}let ta=Symbol.for("SentryBufferFullError");function ti(e=100){let t=new Set;return{get $(){return Array.from(t)},add:function(n){if(!(t.size<e))return(0,tn.rejectedSyncPromise)(ta);let r=n();return t.add(r),r.then(()=>{t.delete(r)},()=>{t.delete(r)}),r},drain:function(e){if(!t.size)return(0,tn.resolvedSyncPromise)(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);return e?Promise.race([n,new Promise(t=>tr(setTimeout(()=>t(!1),e)))]):n}}}function to(e,t=(0,ex.safeDateNow)()){let n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function ts(e,t,n=(0,ex.safeDateNow)()){return(e[t]||e.all||0)>n}function tl(e,{statusCode:t,headers:n},r=(0,ex.safeDateNow)()){let a={...e},i=n?.["x-sentry-rate-limits"],o=n?.["retry-after"];if(i)for(let e of i.trim().split(",")){let[t,n,,,i]=e.split(":",5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(n)for(let e of n.split(";"))"metric_bucket"===e?(!i||i.split(";").includes("custom"))&&(a[e]=r+s):a[e]=r+s;else a.all=r+s}else o?a.all=r+to(o,r):429===t&&(a.all=r+6e4);return a}function tu(e,t,n=ti(e.bufferSize||64)){let r={};return{send:function(a){let i=[];if(eM(a,(t,n)=>{let a=eF(n);ts(r,a)?e.recordDroppedEvent("ratelimit_backoff",a):i.push(t)}),0===i.length)return Promise.resolve({});let o=eO(a[0],i),s=t=>{if(eL(o,["client_report"])){X.DEBUG_BUILD&&q.debug.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}eM(o,(n,r)=>{e.recordDroppedEvent(t,eF(r))})};return n.add(()=>t({body:eU(o)}).then(e=>(413===e.statusCode?(X.DEBUG_BUILD&&q.debug.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),s("send_error")):(X.DEBUG_BUILD&&void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&q.debug.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=tl(r,e)),e),e=>{throw s("network_error"),X.DEBUG_BUILD&&q.debug.error("Encountered error running transport request:",e),e})).then(e=>e,e=>
11{if(e===ta)return X.DEBUG_BUILD&&q.debug.error("Skipped sending event because buffer is full."),s("queue_overflow"),Promise.resolve({});throw e})},flush:e=>n.drain(e)}}var tc=e.i(871766),td=e.i(958927),tp=e.i(929203);let tf="[Filtered]",th=["forwarded","-ip","remote-","via","-user"],tm=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"],tg=[".sid","sessid","remember","oidc","pkce","nonce","__secure-","__host-","awsalb","awselb","akamai","__stripe","cognito","firebase","supabase","sb-","mfa","2fa"],ty={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5},t_="Not capturing exception because it's already been captured.",tb="Discarded session because of missing or non-string release",tv=Symbol.for("SentryInternalError"),tS=Symbol.for("SentryDoNotSendEventError");function tE(e){return{message:e,[tv]:!0}}function tT(e){return{message:e,[tS]:!0}}function tw(e){return(0,eG.isObjectLike)(e)&&tv in e}function tk(e){return(0,eG.isObjectLike)(e)&&tS in e}function tI(e,t,n,r,a){let i,o=0,s=!1;e.on(n,()=>{o=0,clearTimeout(i),s=!1}),e.on(t,t=>{if((o+=r(t))>=8e5)a(e);else if(!s){let t=e.getOptions()._flushInterval??5e3;t>0&&(s=!0,i=tr(setTimeout(()=>{a(e)},t)))}}),e.on("flush",()=>{a(e)})}class tR{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=ti(e.transportOptions?.bufferSize??64),this._dataCollection=function(e){let t=null!=e.dataCollection?ty:!0===e.sendDefaultPii?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:th},httpHeaders:{request:{deny:th},response:{deny:th}},httpBodies:[],urlQueryParams:{deny:th},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7},n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:{request:n.httpHeaders?.request??t.httpHeaders.request,response:n.httpHeaders?.response??t.httpHeaders.response},httpBodies:n.httpBodies??t.httpBodies,urlQueryParams:n.urlQueryParams??n.queryParams??t.urlQueryParams,graphQL:{document:n.graphQL?.document??t.graphQL.document,variables:n.graphQL?.variables??t.graphQL.variables},genAI:{inputs:n.genAI?.inputs??t.genAI.inputs,outputs:n.genAI?.outputs??t.genAI.outputs},databaseQueryData:n.databaseQueryData??t.databaseQueryData,stackFrameVariables:n.stackFrameVariables??t.stackFrameVariables,frameContextLines:n.frameContextLines??t.frameContextLines}}(e),e.dsn?this._dsn=(0,eT.makeDsn)(e.dsn):X.DEBUG_BUILD&&q.debug.warn("No DSN provided, client will not send events."),this._dsn){const t=ek(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs??!0,this._options.enableLogs&&tI(this,"afterCaptureLog","flushLogs",tO,e3),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&tI(this,"afterCaptureMetric","flushMetrics",tx,e7)}captureException(e,t,n){let r=(0,ea.uuid4)();if((0,ea.checkOrSetAlreadyCaught)(e))return X.DEBUG_BUILD&&q.debug.log(t_),r;let a={event_id:r,...t};return this._process(()=>this.eventFromException(e,a).then(e=>this._captureEvent(e,a,n)).then(e=>e),"error"),a.event_id}captureMessage(e,t,n,r){let a={event_id:(0,ea.uuid4)(),...n},i=(0,eG.isParameterizedString)(e)?e:String(e),o=(0,eG.isPrimitive)(e),s=o?this.eventFromMessage(i,t,a):this.eventFromException(e,a);return this._process(()=>s.then(e=>this._captureEvent(e,a,r)),o?"unknown":"error"),a.event_id}captureEvent(e,t,n){let r=(0,ea.uuid4)();if(t?.originalException&&(0,ea.checkOrSetAlreadyCaught)(t.originalException))return X.DEBUG_BUILD&&q.debug.log(t_),r;let a={event_id:r,...t},i=e.sdkProcessingMetadata||{},o=i.capturedSpanScope,s=i.capturedSpanIsolationScope,l=tC(e.type);return this._process(()=>this._captureEvent(e,a,o||n,s),l),a.event_id}captureSession(e){this.sendSession(e),(0,te.updateSession)(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;
11if(this.emit("flush"),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),et(this,e,this._integrations),t||ee(this,[e])}sendEvent(e,t={}){var n,r,a;let i,o,s;this.emit("beforeSendEvent",e,t);let l=function(e,t){if("transaction"!==e.type||!e.spans?.length||!e.sdkProcessingMetadata?.hasGenAiSpans||!1===t.getOptions().streamGenAiSpans||tt(t))return;let n=[],r=[];for(let t of e.spans)t.op?.startsWith("gen_ai.")?n.push(function(e){let t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:e.status&&"ok"!==e.status&&"cancelled"!==e.status?"error":"ok",is_segment:!1,attributes:{...e.data},links:e.links};return(0,em.streamedSpanJsonToSerializedSpan)(t)}(t)):r.push(t);if(0===n.length)return;e.spans=r;let a=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...eZ()&&{ingest_settings:{infer_ip:a,infer_user_agent:a}},items:n}]}(e,this),u=(n=this._dsn,r=this._options._metadata,a=this._options.tunnel,i=ez(r),o=e.type&&"replay_event"!==e.type?e.type:"event",!function(e,t){if(!t)return;let n=e.sdk||{};e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0}}(e,r?.sdk),s=ej(e,i,a,n),delete e.sdkProcessingMetadata,eO(s,[[{type:o},e]]));for(let e of t.attachments||[])u=eP(u,function(e){let t="string"==typeof e.data?eD(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}(e));l&&(u=eP(u,l)),this.sendEnvelope(u).then(t=>this.emit("afterSendEvent",e,t))}sendSession(e){var t,n,r;let a,{release:i,environment:o=eI.DEFAULT_ENVIRONMENT}=this._options;if("aggregates"in e){let t=e.attrs||{};if(!t.release&&!i){X.DEBUG_BUILD&&q.debug.warn(tb);return}t.release=t.release||i,t.environment=t.environment||o,e.attrs=t}else{if(!e.release&&!i){X.DEBUG_BUILD&&q.debug.warn(tb);return}e.release=e.release||i,e.environment=e.environment||o}this.emit("beforeSendSession",e);let s=(t=this._dsn,n=this._options._metadata,r=this._options.tunnel,a=ez(n),eO({sent_at:new Date((0,ex.safeDateNow)()).toISOString(),...a&&{sdk:a},...!!r&&t&&{dsn:(0,eT.dsnToString)(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]]));this.sendEnvelope(s)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;X.DEBUG_BUILD&&q.debug.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return X.DEBUG_BUILD&&q.debug.error("Error while sending envelope:",e),{}}return X.DEBUG_BUILD&&q.debug.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){var e;let t,{integrations:n}=this._options;this._integrations=(e=this,t={},n.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),n.forEach(n=>{n&&et(e,n,t)}),t),ee(this,n)}_updateSessionFromEvent(e,t){let n="fatal"===t.level,r=!1,a=t.exception?.values;if(a){for(let e of(r=!0,n=!1,a))if(e.mechanism?.handled===!1){n=!0;break}}let i="ok"===e.status;(i&&0===e.errors||i&&n)&&((0,te.updateSession)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r){let a=this.getOptions(),i=this.getIntegrationNames();
11return!t.integrations&&i.length&&(t.integrations=i),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),(0,tp.prepareEvent)(a,e,t,n,this,r).then(e=>(null===e||(this.emit("postprocessEvent",e,t),e.contexts={trace:{...e.contexts?.trace,...(0,Q.getTraceContextFromScope)(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:(0,eR.getDynamicSamplingContextFromScope)(this,n),...e.sdkProcessingMetadata}),e))}_captureEvent(e,t={},n=(0,Q.getCurrentScope)(),r=(0,Q.getIsolationScope)()){return X.DEBUG_BUILD&&tA(e)&&q.debug.log(`Captured error event \`${er(e)[0]||"<unknown>"}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{X.DEBUG_BUILD&&(tk(e)?q.debug.log(e.message):tw(e)?q.debug.warn(e.message):q.debug.warn(e))})}_processEvent(e,t,n,r){let a=this.getOptions(),{sampleRate:i}=a,o=tN(e),s=tA(e),l=e.type||"error",u=`before send for type \`${l}\``,c=void 0===i?void 0:(0,td.parseSampleRate)(i),d=tC(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(null===e)throw this.recordDroppedEvent("event_processor",d),tT("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:function(e,t){let n=`${t} must return \`null\` or a valid event.`;if((0,eG.isThenable)(e))return e.then(e=>{if(!(0,eG.isPlainObject)(e)&&null!==e)throw tE(n);return e},e=>{throw tE(`${t} rejected with ${e}`)});if(!(0,eG.isPlainObject)(e)&&null!==e)throw tE(n);return e}(function(e,t,n,r){let{beforeSend:a,beforeSendTransaction:i,ignoreSpans:o}=t,s=!eA(t.beforeSendSpan)&&t.beforeSendSpan,l=n;if(tA(l)&&a)return a(l,r);if(tN(l)){if(s||o){let t=function(e){let{trace_id:t,parent_span_id:n,span_id:r,status:a,origin:i,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:a,timestamp:e.timestamp,trace_id:t??"",origin:i,profile_id:o?.[eh.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:o?.[eh.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:e.measurements,is_segment:!0}}(l);if(o?.length&&eH({description:t.description,op:t.op,attributes:t.data},o))return null;if(s){let e=s(t);if(e)l=(0,tc.merge)(n,{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[eh.SEMANTIC_ATTRIBUTE_PROFILE_ID]:e.profile_id},...e.exclusive_time&&{[eh.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:e.exclusive_time}}}},measurements:e.measurements});else(0,em.showSpanDropWarning)()}if(l.spans){let t=[],n=l.spans;for(let e of n){if(o?.length&&eH({description:e.description,op:e.op,attributes:e.data},o)){!function(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}(n,e);continue}if(s){let n=s(e);n?t.push(n):((0,em.showSpanDropWarning)(),t.push(e))}else t.push(e)}let r=l.spans.length-t.length;r&&e.recordDroppedEvent("before_send","span",r),l.spans=t}}if(i){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return i(l,r)}}return l}(this,a,e,t),u)}).then(a=>{if(null===a){if(this.recordDroppedEvent("before_send",d),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",t)}throw tT(`${u} returned \`null\`, will not send event.`)}let l=n.getSession()||r.getSession();if(s&&l&&this._updateSessionFromEvent(l,a),s&&"number"==typeof c&&(0,ex.safeMathRandom)()>c)throw this.recordDroppedEvent("sample_rate","error"),tT(`Discarding event because it's not included in the random sample (sampling rate = ${i})`);if(o){let e=(a.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(a.spans?a.spans.length:0);e>0&&this.recordDroppedEvent("before_send","span",e)}let p=a.transaction_info;return o&&p&&a.transaction!==e.transaction&&(a.transaction_info={...p,source:"custom"}),this.sendEvent(a,t),a}).then(null,e=>{if(tk(e)||tw(e))throw e;throw this.captureException(e,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:e}),tE(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
12Reason: ${e}`)})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===ta&&this.recordDroppedEvent("queue_overflow",t),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(){var e;X.DEBUG_BUILD&&q.debug.log("Flushing outcomes...");let t=this._clearOutcomes();if(0===t.length){X.DEBUG_BUILD&&q.debug.log("No outcomes to send");return}if(!this._dsn){X.DEBUG_BUILD&&q.debug.log("No dsn provided, will not send outcomes");return}X.DEBUG_BUILD&&q.debug.log("Sending outcomes:",t);let n=eO((e=this._options.tunnel&&(0,eT.dsnToString)(this._dsn))?{dsn:e}:{},[[{type:"client_report"},{timestamp:(0,eV.dateTimestampInSeconds)(),discarded_events:t}]]);this.sendEnvelope(n)}}function tC(e){return"replay_event"===e?"replay":e||"error"}function tA(e){return void 0===e.type}function tN(e){return"transaction"===e.type}function tx(e){let t=0;return e.name&&(t+=2*e.name.length),(t+=8)+tP(e.attributes)}function tO(e){let t=0;return e.message&&(t+=2*e.message.length),t+tP(e.attributes)}function tP(e){if(!e)return 0;let t=0;
12return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*tM(e[0]):(0,eG.isPrimitive)(e)?t+=tM(e):t+=100}),t}function tM(e){return"string"==typeof e?2*e.length:"number"==typeof e?8:4*("boolean"==typeof e)}function tL(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):void 0===e.ipAddress&&(e.ipAddress="{{auto}}")}function tD(e){return(0,eG.isError)(e)&&"__sentry_fetch_url_host__"in e&&"string"==typeof e.__sentry_fetch_url_host__?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function tU(e,t){var n,r;let a,i,o=tF(e,t),s={type:(n=t,!(a=n?.name)&&tj(n)?n.message&&Array.isArray(n.message)&&2==n.message.length?n.message[0]:"WebAssembly.Exception":a),value:(r=t,i=r?.message,tj(r)?Array.isArray(r.message)&&2==r.message.length?r.message[1]:"wasm exception":i?i.error&&"string"==typeof i.error.message?tD(i.error):tD(r):"No error message")};return o.length&&(s.stacktrace={frames:o}),void 0===s.type&&""===s.value&&(s.value="Unrecoverable error caught"),s}function tB(e,t){return{exception:{values:[tU(e,t)]}}}function tF(e,t){var n,r;let a=t.stacktrace||t.stack||"",i=(n=t)&&tz.test(n.message)?1:0,o="number"==typeof(r=t).framesToPop?r.framesToPop:0;try{return e(a,i,o)}catch{}return[]}let tz=/Minified React error #\d+;/i;function tj(e){return"u">typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function t$(e,t,n,r){let a=tW(e,t,n?.syntheticException||void 0,r);return(0,ea.addExceptionMechanism)(a),a.level="error",n?.event_id&&(a.event_id=n.event_id),(0,tn.resolvedSyncPromise)(a)}function tH(e,t,n="info",r,a){let i=tG(e,t,r?.syntheticException||void 0,a);return i.level=n,r?.event_id&&(i.event_id=r.event_id),(0,tn.resolvedSyncPromise)(i)}function tW(e,t,n,r,a){let i;if((0,eG.isErrorEvent)(t)&&t.error)return tB(e,t.error);if((0,eG.isDOMError)(t)||(0,eG.isDOMException)(t)){if("stack"in t){i=tB(e,t);let a=i.exception?.values?.[0];if(r&&n&&a&&!a.stacktrace){let t=tF(e,n);t.length&&(a.stacktrace={frames:t},(0,ea.addExceptionMechanism)(i,{synthetic:!0}))}}else{let a=t.name||((0,eG.isDOMError)(t)?"DOMError":"DOMException"),o=t.message?`${a}: ${t.message}`:a;i=tG(e,o,n,r),(0,ea.addExceptionTypeValue)(i,o)}return"code"in t&&(i.tags={...i.tags,"DOMException.code":`${t.code}`}),i}return(0,eG.isError)(t)?tB(e,t):((0,eG.isPlainObject)(t)||(0,eG.isEvent)(t)?i=function(e,t,n,r){let a=(0,Q.getClient)(),i=a?.getOptions().normalizeDepth,o=Object.values(t).find(eG.isError),s={__serialized__:(0,eS.normalizeToSize)(t,i)};if(o)return{exception:{values:[tU(e,o)]},extra:s};let l={exception:{values:[{type:(0,eG.isEvent)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:function(e,{isUnhandledRejection:t}){let n=(0,ed.extractExceptionKeysForMessage)(e),r=t?"promise rejection":"exception";if((0,eG.isErrorEvent)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if((0,eG.isEvent)(e)){let t=function(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}(e);return`Event \`${t}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(t,{isUnhandledRejection:r})}]},extra:s};if(n){let t=tF(e,n);t.length&&(l.exception.values[0].stacktrace={frames:t})}return l}(e,t,n,a):(i=tG(e,t,n,r),(0,ea.addExceptionTypeValue)(i,`${t}`,void 0)),(0,ea.addExceptionMechanism)(i,{synthetic:!0}),i)}function tG(e,t,n,r){let a={};if(r&&n){let r=tF(e,n);r.length&&(a.exception={values:[{value:t,stacktrace:{frames:r}}]}),(0,ea.addExceptionMechanism)(a,{synthetic:!0})}if((0,eG.isParameterizedString)(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return a.logentry={message:e,params:n},a}return a.message=t,a}let tq=Y.GLOBAL_OBJ;function tY(){try{return tq.document.location.href}catch{return""}}function tV(e,t=5){if(!tq.HTMLElement)return null;let n=e;for(let e=0;e<t&&n;e++){if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}let tJ=Y.GLOBAL_OBJ,tK=0;function tQ(e,t={}){if("function"!=typeof e)return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){let t=e.__sentry_wrapped__;if("function"==typeof t)return t;return e}if((0,ed.getOriginalFunction)(e))return e}catch{return e}let n=function(...n){Y.GLOBAL_OBJ._sentryWrappedDepth=(Y.GLOBAL_OBJ._sentryWrappedDepth||0)+1;try{let r=n.map(e=>tQ(e,t));return e.apply(this,r)}catch(e){throw tK++,setTimeout(()=>{tK--}),(0,Q.withScope)(r=>{r.addEventProcessor(e=>(t.mechanism&&((0,ea.addExceptionTypeValue)(e,void 0,void 0),(0,ea.addExceptionMechanism)(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),(0,K.captureException)(e)}),e}finally{Y.GLOBAL_OBJ._sentryWrappedDepth=(Y.GLOBAL_OBJ._sentryWrappedDepth||0)-1}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}catch{}(0,ed.markFunctionWrapped)(n,e),(0,ed.addNonEnumerableProperty)(e,"__sentry_wrapped__",n);try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:()=>e.name})}catch{}return n}function tX(){let e=tY(),{referrer:t}=tJ.document||{},{userAgent:n}=tJ.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}class tZ extends tR{constructor(e){const t=function(e){return{release:"string"==typeof __SENTRY_RELEASE__?__SENTRY_RELEASE__:tJ.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}(e);J(t,"browser",["browser"],tJ.SENTRY_SDK_SOURCE||"npm"),super(t);const{userInfo:n}=this.getDataCollectionOptions();t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:n?"auto":"never",...t._metadata.sdk.settings});const{sendClientReports:r}=this._options;tJ.document&&tJ.document.addEventListener("visibilitychange",()=>{"hidden"===tJ.document.visibilityState&&(r&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),n&&this.on("beforeSendSession",tL)}eventFromException(e,t){return t$(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return tH(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}}let t0={},t1={};function t2(e,t){return t0[e]=t0[e]||[],t0[e].push(t),()=>{let n=t0[e];if(n){let e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}function t3(e,t){if(!t1[e]){t1[e]=!0;try{t()}catch(t){X.DEBUG_BUILD&&q.debug.error(`Error while instrumenting ${e}`,t)}}}function t4(e,t){let n=e&&t0[e];if(n)for(let r of n)try{r(t)}catch(t){X.DEBUG_BUILD&&q.debug.error(`Error while triggering instrumentation handler.
13Type: ${e}
14Name: ${(0,eg.getFunctionName)(r)}
15Error:`,t)}}let t5=new Set([]);function t6(e){let t="console",n=t2(t,e);return t3(t,t7),n}
15let t8=new Set;function t7(){"console"in Y.GLOBAL_OBJ&&q.CONSOLE_LEVELS.forEach(function(e){!t8.has(e)&&e in Y.GLOBAL_OBJ.console&&(t8.add(e),(0,ed.fill)(Y.GLOBAL_OBJ.console,e,function(t){return q.originalConsoleMethods[e]=t,function(...t){let n=t[0],r=q.originalConsoleMethods[e],a=t5.size&&"string"==typeof n&&(0,ei.stringMatchesSomePattern)(n,t5);a||t4("console",{args:t,level:e}),(!a||X.DEBUG_BUILD&&q.debug.isEnabled())&&r?.apply(Y.GLOBAL_OBJ.console,t)}}))})}let t9=Y.GLOBAL_OBJ;function ne(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function nt(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in t9))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}())return!1;if(ne(t9.fetch))return!0;let e=!1,t=t9.document;if(t&&"function"==typeof t.createElement)try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=ne(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){X.DEBUG_BUILD&&q.debug.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}function nn(e,t){let n="fetch",r=t2(n,e);return t3(n,()=>nr(void 0,t)),r}function nr(e,t=!1){(!t||nt())&&(0,ed.fill)(Y.GLOBAL_OBJ,"fetch",function(t){return function(...n){let r=Error(),{method:a,url:i}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){let[t,n]=e;return{url:ns(t),method:no(n,"method")?String(n.method).toUpperCase():(0,eG.isRequest)(t)&&no(t,"method")?String(t.method).toUpperCase():"GET"}}let t=e[0];return{url:ns(t),method:no(t,"method")?String(t.method).toUpperCase():"GET"}}(n),o={args:n,fetchData:{method:a,url:i},startTimestamp:1e3*(0,eV.timestampInSeconds)(),virtualError:r,headers:function(e){let[t,n]=e;try{if("object"==typeof n&&null!==n&&"headers"in n&&n.headers)return new Headers(n.headers);if((0,eG.isRequest)(t))return new Headers(t.headers)}catch{}}(n)};return e||t4("fetch",{...o}),t.apply(Y.GLOBAL_OBJ,n).then(async t=>(e?e(t):t4("fetch",{...o,endTimestamp:1e3*(0,eV.timestampInSeconds)(),response:t}),t),e=>{t4("fetch",{...o,endTimestamp:1e3*(0,eV.timestampInSeconds)(),error:e}),(0,eG.isError)(e)&&void 0===e.stack&&(e.stack=r.stack,(0,ed.addNonEnumerableProperty)(e,"framesToPop",1));let t=(0,Q.getClient)(),n=t?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==n&&(0,eG.isError)(e)&&"TypeError"===e.name&&("Failed to fetch"===e.message||"Load failed"===e.message||"NetworkError when attempting to fetch resource."===e.message))try{let t=new URL(o.fetchData.url).host;"always"===n?e.message=`${e.message} (${t})`:(0,ed.addNonEnumerableProperty)(e,"__sentry_fetch_url_host__",t)}catch{}throw e})}})}async function na(e,t){if(e?.body){let n=e.body,r=n.getReader(),a=setTimeout(()=>{n.cancel().then(null,()=>{})},9e4),i=!0;for(;i;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:a}=await r.read();clearTimeout(e),a&&(t(),i=!1)}catch{i=!1}finally{clearTimeout(e)}}clearTimeout(a),r.releaseLock(),n.cancel().then(null,()=>{})}}function ni(e){let t;try{t=e.clone()}catch{return}na(t,()=>{t4("fetch-body-resolved",{endTimestamp:1e3*(0,eV.timestampInSeconds)(),response:e})})}function no(e,t){return(0,eG.isObjectLike)(e)&&!!e[t]}function ns(e){return"string"==typeof e?e:e?no(e,"url")?e.url:e.toString?e.toString():"":""}function nl(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}function nu(e,t){let n=(0,Q.getClient)(),r=(0,Q.getIsolationScope)();if(!n)return;let{beforeBreadcrumb:a=null,maxBreadcrumbs:i=100}=n.getOptions();if(i<=0)return;let o={timestamp:(0,eV.dateTimestampInSeconds)(),...e},s=a?(0,q.consoleSandbox)(()=>a(o,t)):o;null!==s&&(n.emit&&n.emit("beforeAddBreadcrumb",s,t),r.addBreadcrumb(s,i))}function nc(e){if(void 0!==e)return e>=400&&e<500?"warning":e>=500?"error":void 0}let nd="graphql.document",np="http.url",nf="sentry.segment.name",nh="sentry.transaction",nm="url.full",ng="url.path",ny="url.template";function n_(e){return"isRelative"in e}function nb(e,t){let n=0>=e.indexOf("://")&&0!==e.indexOf("//"),r=t??(n?"thismessage:/":void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);if(n)return{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash};return t}catch{}}function nv(e){if(n_(e))return e.pathname;let t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function nS(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 nE(e){return e.split(/[?#]/,1)[0]}function nT(e,t=!0){if(e.startsWith("data:")){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",a=e.includes(";base64,"),i=e.indexOf(","),o="";if(t&&-1!==i){let t=e.slice(i+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${a?",base64":""}${o?`,${o}`:""}`}return e}let nw=Y.GLOBAL_OBJ;function nk(e){t2("dom",e),t3("dom",nI)}function nI(){if(!nw.document)return;let e=t4.bind(null,"dom"),t=nR(e,!0);nw.document.addEventListener("click",t,!1),nw.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(t=>{let n=nw[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&((0,ed.fill)(n,"addEventListener",function(t){return function(n,r,a){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},i=r[n]=r[n]||{refCount:0};if(!i.handler){let r=nR(e);i.handler=r,t.call(this,n,r,a)}i.refCount++}catch{}return t.call(this,n,r,a)}}),(0,ed.fill)(n,"removeEventListener",function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{let n=this.__sentry_instrumentation_handlers__||{},a=n[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,r),a.handler=void 0,delete n[t]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function nR(e,t=!1){return i=>{var o;if(!i||i._sentryCaptured)return;let s=function(e){try{return e.target}catch{return null}}(i);if(o=i.type,"keypress"===o&&(!s?.tagName||"INPUT"!==s.tagName&&"TEXTAREA"!==s.tagName&&!s.isContentEditable&&1))return;(0,ed.addNonEnumerableProperty)(i,"_sentryCaptured",!0),s&&!s._sentryId&&(0,ed.addNonEnumerableProperty)(s,"_sentryId",(0,ea.uuid4)());
15let l="keypress"===i.type?"input":i.type;!function(e){if(e.type!==r)return!1;try{if(!e.target||e.target._sentryId!==a)return!1}catch{}return!0}(i)&&(e({event:i,name:l,global:t}),r=i.type,a=s?s._sentryId:void 0),clearTimeout(n),n=nw.setTimeout(()=>{a=void 0,r=void 0},1e3)}}let nC="__sentry_xhr_v3__";function nA(e){t2("xhr",e),t3("xhr",nN)}function nN(){if(!nw.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),a=1e3*(0,eV.timestampInSeconds)(),i=(0,eG.isString)(n[0])?n[0].toUpperCase():void 0,o=function(e){if((0,eG.isString)(e))return e;try{return e.toString()}catch{}}(n[1]);if(!i||!o)return e.apply(t,n);t[nC]={method:i,url:o,request_headers:{}},"POST"===i&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[nC];if(e&&4===t.readyState){try{e.status_code=t.status}catch{}t4("xhr",{endTimestamp:1e3*(0,eV.timestampInSeconds)(),startTimestamp:a,xhr:t,virtualError:r}),t.removeEventListener("readystatechange",s)}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:(e,t,n)=>(s(),e.apply(t,n))}):t.addEventListener("readystatechange",s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,a]=n,i=t[nC];return i&&(0,eG.isString)(r)&&(0,eG.isString)(a)&&(i.request_headers[r.toLowerCase()]=a),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[nC];return r&&(void 0!==n[0]&&(r.body=n[0]),t4("xhr",{startTimestamp:1e3*(0,eV.timestampInSeconds)(),xhr:t})),e.apply(t,n)}})}function nx(e){let t="history";t2(t,e),t3(t,nO)}function nO(){function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=i,a=function(e){try{return new URL(e,nw.location.origin).toString()}catch{return e}}(String(n));if(i=a,r===a)return e.apply(this,t);t4("history",{from:r,to:a})}return e.apply(this,t)}}nw.addEventListener("popstate",()=>{let e=nw.location.href,t=i;i=e,t===e||t4("history",{from:t,to:e})}),"history"in t9&&t9.history&&((0,ed.fill)(nw.history,"pushState",e),(0,ed.fill)(nw.history,"replaceState",e))}let nP={};try{"u">typeof Node&&(nP.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),"u">typeof Element&&(nP.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,nP.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,nP.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,nP.getAttribute=Element.prototype.getAttribute),"u">typeof HTMLElement&&(nP.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function nM(e,t,n){let r=nP[t];if(r)try{return r.call(e,n)}catch{}let a=e[t];return"function"==typeof a?a.call(e,n):a}function nL(e,t={}){if(!e)return"<unknown>";try{let n,r=e,a=[],i=0,o=0,s=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;for(;r&&i++<5&&(n=function(e,t){let n=[],r=nM(e,"tagName");if(!r)return"";if("u">typeof HTMLElement&&e instanceof HTMLElement){let t=nM(e,"dataset");if(t){if(t.sentryComponent)return t.sentryComponent;if(t.sentryElement)return t.sentryElement}}n.push(r.toLowerCase());let a=t?.length?t.filter(t=>nM(e,"getAttribute",t)).map(t=>[t,nM(e,"getAttribute",t)]):null;if(a?.length)a.forEach(e=>{n.push(`[${e[0]}="${e[1]}"]`)});else{let t=nM(e,"id");t&&n.push(`#${t}`);let r=nM(e,"className");if(r&&(0,eG.isString)(r))for(let e of r.split(/\s+/))n.push(`.${e}`)}for(let t of["aria-label","type","name","title","alt"]){let r=nM(e,"getAttribute",t);r&&n.push(`[${t}="${r}"]`)}return n.join("")}(r,s),"html"!==n&&(!(i>1)||!(o+3*a.length+n.length>=l)));)a.push(n),o+=n.length,r=nM(r,"parentNode");return a.reverse().join(" > ")}catch{return"<unknown>"}}let nD="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,nU=(e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:"Breadcrumbs",setup(e){var n,r,a,i,o,s,l;t.console&&t6((n=e,function(e){if((0,Q.getClient)()!==n)return;let t={category:"console",data:{arguments:e.args,logger:"console"},level:nl(e.level),message:(0,ei.safeJoin)(e.args," ")};if("assert"===e.level)if(!1!==e.args[0])return;else t.message=`Assertion failed: ${(0,ei.safeJoin)(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);nu(t,{input:e.args,level:e.level})})),t.dom&&nk((r=e,a=t.dom,function(e){let t,n;if((0,Q.getClient)()!==r)return;let i="object"==typeof a?a.serializeAttribute:void 0,o="object"==typeof a&&"number"==typeof a.maxStringLength?a.maxStringLength:void 0;o&&o>1024&&(nD&&q.debug.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${o} was configured. Sentry will use 1024 instead.`),o=1024),"string"==typeof i&&(i=[i]);try{var s;let r=e.event,a=(s=r)&&s.target?r.target:r;t=nL(a,{keyAttrs:i,maxStringLength:o}),n=tV(a)}catch{t="<unknown>"}if(0===t.length)return;let l={category:`ui.${e.name}`,message:t};n&&(l.data={"ui.component_name":n}),nu(l,{event:e.event,name:e.name,global:e.global})})),t.xhr&&nA((i=e,function(e){if((0,Q.getClient)()!==i)return;let{startTimestamp:t,endTimestamp:n}=e,r=e.xhr[nC];if(!t||!n||!r)return;let{method:a,url:o,status_code:s,body:l}=r,u={xhr:e.xhr,input:l,startTimestamp:t,endTimestamp:n},c={category:"xhr",data:{method:a,url:o,status_code:s},type:"http",level:nc(s)};i.emit("beforeOutgoingRequestBreadcrumb",c,u),nu(c,u)})),t.fetch&&nn((o=e,function(e){if((0,Q.getClient)()!==o)return;let{startTimestamp:t,endTimestamp:n}=e;
15if(n&&(!e.fetchData.url.match(/sentry_key/)||"POST"!==e.fetchData.method))if(e.error){let r={data:e.error,input:e.args,startTimestamp:t,endTimestamp:n},a={category:"fetch",data:e.fetchData,level:"error",type:"http"};o.emit("beforeOutgoingRequestBreadcrumb",a,r),nu(a,r)}else{let r=e.response,a={...e.fetchData,status_code:r?.status},i={input:e.args,response:r,startTimestamp:t,endTimestamp:n},s={category:"fetch",data:a,type:"http",level:nc(a.status_code)};o.emit("beforeOutgoingRequestBreadcrumb",s,i),nu(s,i)}})),t.history&&nx((s=e,function(e){if((0,Q.getClient)()!==s)return;let t=e.from,n=e.to,r=nS(tJ.location.href),a=t?nS(t):void 0,i=nS(n);a?.path||(a=r),r.protocol===i.protocol&&r.host===i.host&&(n=i.relative),r.protocol===a.protocol&&r.host===a.host&&(t=a.relative),nu({category:"navigation",data:{from:t,to:n}})})),t.sentry&&e.on("beforeSendEvent",(l=e,function(e){(0,Q.getClient)()===l&&nu({category:`sentry.${"transaction"===e.type?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:(0,ea.getEventDescription)(e)},{event:e})}))}}},nB="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),nF=(e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:"BrowserApiErrors",setupOnce(){t.setTimeout&&(0,ed.fill)(tJ,"setTimeout",nz),t.setInterval&&(0,ed.fill)(tJ,"setInterval",nz),t.requestAnimationFrame&&(0,ed.fill)(tJ,"requestAnimationFrame",nj),t.XMLHttpRequest&&"XMLHttpRequest"in tJ&&(0,ed.fill)(XMLHttpRequest.prototype,"send",n$);let e=t.eventTarget;e&&(Array.isArray(e)?e:nB).forEach(e=>{var n,r;let a;return n=e,r=t,a=tJ[n]?.prototype,void(a?.hasOwnProperty?.("addEventListener")&&((0,ed.fill)(a,"addEventListener",function(e){return function(t,a,i){var o,s,l,u;try{o=a,"function"==typeof o.handleEvent&&(a.handleEvent=tQ(a.handleEvent,{mechanism:{data:{handler:(0,eg.getFunctionName)(a),target:n},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return r.unregisterOriginalCallbacks&&(s=this,l=t,u=a,s&&"object"==typeof s&&"removeEventListener"in s&&"function"==typeof s.removeEventListener&&s.removeEventListener(l,u)),e.apply(this,[t,tQ(a,{mechanism:{data:{handler:(0,eg.getFunctionName)(a),target:n},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),i])}}),(0,ed.fill)(a,"removeEventListener",function(e){return function(t,n,r){try{if(Object.prototype.hasOwnProperty.call(n,"__sentry_wrapped__")){let a=n.__sentry_wrapped__;a&&e.call(this,t,a,r)}}catch{}return e.call(this,t,n,r)}})))})}}};function nz(e){return function(...t){let n=t[0];return t[0]=tQ(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${(0,eg.getFunctionName)(e)}`}}),e.apply(this,t)}}function nj(e){return function(t){return e.apply(this,[tQ(t,{mechanism:{data:{handler:(0,eg.getFunctionName)(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function n$(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(e=>{e in n&&"function"==typeof n[e]&&(0,ed.fill)(n,e,function(t){let n={mechanism:{data:{handler:(0,eg.getFunctionName)(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=(0,ed.getOriginalFunction)(t);return r&&(n.mechanism.data.handler=(0,eg.getFunctionName)(r)),tQ(t,n)})}),e.apply(this,t)}}function nH(e,t,n){nw.document&&nw.addEventListener(e,t,n)}function nW(e,t,n){nw.document&&nw.removeEventListener(e,t,n)}let nG=e=>{let t=!1;return()=>{t||(e(),t=!0)}},nq=e=>{let t=nw.requestIdleCallback||nw.setTimeout;nw.document?.visibilityState==="hidden"?e():(nH("visibilitychange",e=nG(e),{once:!0,capture:!0}),nH("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),nW("visibilitychange",e,{capture:!0}),nW("pagehide",e,{capture:!0})}
15))},nY=(e={})=>{let t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(void 0===tJ.document){nD&&q.debug.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}(0,K.startSession)({ignoreDuration:!0});let e=!1;nq(()=>{e||((0,K.captureSession)(),e=!0)});let n=(0,Q.getIsolationScope)(),r=n.getUser();n.addScopeListener(t=>{let n=t.getUser();(r?.id!==n?.id||r?.ip_address!==n?.ip_address)&&(r=n,e&&(0,K.captureSession)())}),"route"===t&&nx(({from:t,to:n})=>{t!==n&&((0,K.startSession)({ignoreDuration:!0}),(0,K.captureSession)(),e=!0)})}}};var nV=e.i(22511);function nJ(e,t){let n=e.attributes??(e.attributes={});Object.entries(t).forEach(([e,t])=>{null==t||e in n||(n[e]=t)})}let nK=()=>({name:"CultureContext",preprocessEvent(e){let t=nQ();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=nQ();t&&nJ(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}});function nQ(){try{let e=tJ.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}let nX=null;function nZ(e){let t="error";t2(t,e),t3(t,n0)}function n0(){nX=Y.GLOBAL_OBJ.onerror,Y.GLOBAL_OBJ.onerror=function(e,t,n,r,a){return t4("error",{column:r,error:a,line:n,msg:e,url:t}),!!nX&&nX.apply(this,arguments)},Y.GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__=!0}let n1=null;function n2(e){let t="unhandledrejection";t2(t,e),t3(t,n3)}function n3(){n1=Y.GLOBAL_OBJ.onunhandledrejection,Y.GLOBAL_OBJ.onunhandledrejection=function(e){return t4("unhandledrejection",e),!n1||n1.apply(this,arguments)},Y.GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}let n4=(e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:"GlobalHandlers",setupOnce(){Error.stackTraceLimit=50},setup(e){var n,r;t.onerror&&(n=e,nZ(e=>{var t,r,a,i;let o,s,l,u,c,{stackParser:d,attachStacktrace:p}=n7();if((0,Q.getClient)()!==n||tK>0)return;let{msg:f,url:h,line:m,column:g,error:y}=e,_=(t=tW(d,y||f,void 0,p,!1),r=h,a=m,i=g,0===(c=(u=(l=(s=(o=t.exception=t.exception||{}).values=o.values||[])[0]=s[0]||{}).stacktrace=l.stacktrace||{}).frames=u.frames||[]).length&&c.push({colno:i,lineno:a,filename:function(e){if((0,eG.isString)(e)&&0!==e.length)return e.startsWith("data:")?`<${nT(e,!1)}>`:e}(r)??tY(),function:eg.UNKNOWN_FUNCTION,in_app:!0}),t);_.level="error",(0,K.captureEvent)(_,{originalException:y,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})}),n8("onerror")),t.onunhandledrejection&&(r=e,n2(e=>{let{stackParser:t,attachStacktrace:n}=n7();if((0,Q.getClient)()!==r||tK>0)return;let a=n5(e),i=(0,eG.isPrimitive)(a)?n6(a):tW(t,a,void 0,n,!0);i.level="error",(0,K.captureEvent)(i,{originalException:a,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})}),n8("onunhandledrejection"))}}};function n5(e){if((0,eG.isPrimitive)(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function n6(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function n8(e){nD&&q.debug.log(`Global Handler attached: ${e}`)}function n7(){let e=(0,Q.getClient)();return e?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}let n9=()=>({name:"HttpContext",preprocessEvent(e){if(!tJ.navigator&&!tJ.location&&!tJ.document)return;let t=tX(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSpan(e){if(!tJ.navigator&&!tJ.location&&!tJ.document)return;let t=tX();nJ(e,{"user_agent.original":t.headers["User-Agent"],...e.is_segment&&{[nm]:e.attributes?.["sentry.op"]!=="http.client"?t.url:void 0,"http.request.header.referer":t.headers.Referer}})}});function re(e){return Array.isArray(e.errors)}function rt(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...re(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function rn(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}let rr=(e={})=>{let t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent(e,r,a){!function(e,t,n,r,a,i){if
15(!a.exception?.values||!i||!(0,eG.isError)(i.originalException))return;let o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;o&&(a.exception.values=function e(t,n,r,a,i,o,s,l){if(o.length>=r+1)return o;let u=[...o];if((0,eG.isError)(a[i])){rt(s,l,a);let o=t(n,a[i]),c=u.length;rn(o,i,c,l),u=e(t,n,r,a[i],i,[o,...u],o,c)}return re(a)&&a.errors.forEach((o,c)=>{if((0,eG.isError)(o)){rt(s,l,a);let d=t(n,o),p=u.length;rn(d,`errors[${c}]`,p,l),u=e(t,n,r,o,i,[d,...u],d,p)}}),u}(e,t,r,i.originalException,n,a.exception.values,o,0))}(tU,a.getOptions().stackParser,n,t,e,r)}}};function ra(e,t,n,r){let a={filename:e,function:"<anonymous>"===t?eg.UNKNOWN_FUNCTION:t,in_app:!0};return void 0!==n&&(a.lineno=n),void 0!==r&&(a.colno=r),a}let ri=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,ro=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rs=/\((\S*)(?::(\d+))(?::(\d+))\)/,rl=/at (.+?) ?\(data:(.+?),/,ru=[30,e=>{let t=e.match(rl);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=ri.exec(e);if(n){let[,e,t,r]=n;return ra(e,eg.UNKNOWN_FUNCTION,+t,+r)}let r=ro.exec(e);if(r){if(r[2]?.indexOf("eval")===0){let e=rs.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=rS(r[1]||eg.UNKNOWN_FUNCTION,r[2]);return ra(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],rc=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,rd=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,rp=[50,e=>{let t=rc.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=rd.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]||eg.UNKNOWN_FUNCTION;return[n,e]=rS(n,e),ra(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],rf=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,rh=[40,e=>{let t=rf.exec(e);return t?ra(t[2],t[1]||eg.UNKNOWN_FUNCTION,+t[3],t[4]?+t[4]:void 0):void 0}],rm=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,rg=[10,e=>{let t=rm.exec(e);return t?ra(t[2],t[3]||eg.UNKNOWN_FUNCTION,+t[1]):void 0}],ry=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,r_=[20,e=>{let t=ry.exec(e);return t?ra(t[5],t[3]||t[4]||eg.UNKNOWN_FUNCTION,+t[1],+t[2]):void 0}],rb=[ru,rp],rv=(0,eg.createStackParser)(...rb),rS=(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]:eg.UNKNOWN_FUNCTION,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},rE="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,rT={};function rw(e){let t=rT[e];if(t)return t;let n=nw[e];if(ne(n))return rT[e]=n.bind(nw);let r=nw.document;if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let a=t.contentWindow;a?.[e]&&(n=a[e]),r.head.removeChild(t)}catch(t){rE&&q.debug.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n?rT[e]=n.bind(nw):n}function rk(...e){return rw("setTimeout")(...e)}function rI(e,t=rw("fetch")){let n=0,r=0;async function a(a){let i=a.body.length;n+=i,r++;let o={body:a.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}catch(e){throw rT.fetch=void 0,e}finally{n-=i,r--}}return tu(e,a,ti(e.bufferSize||40))}let rR=/^HTML(\w*)Element$/;function rC(e){if("u">typeof window&&e===window)return"[Window]";if("u">typeof document&&e===document)return"[Document]";if(function(e){if("u"<typeof Element)return!1;try{return e instanceof Element}catch{return!1}}(e)){let t,n=(t=Object.getPrototypeOf(e),t?.constructor?t.constructor.name:"null prototype");if(rR.test(n))return`[HTMLElement: ${nL(e)}]`}}function rA(e){return[el(),ef(),{name:"ConversationId",setup(e){e.on("spanStart",e=>{let t=(0,Q.getCurrentScope)().getScopeData(),n=(0,Q.getIsolationScope)().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:a}=(0,em.spanToJSON)(e);if(!t?.startsWith("gen_ai.")&&!n["ai.operationId"]&&!a?.startsWith("ai."))return;e.setAttribute(eh.GEN_AI_CONVERSATION_ID_ATTRIBUTE,r)}})}},nF(),nU(),n4(),rr(),ey(),n9(),nK(),nY()]}function rN(e={}
15){let t,n=!e.skipBrowserExtensionCheck&&!!function(){if(void 0===tJ.window||tJ.nw)return!1;let e=tJ.chrome||tJ.browser;if(!e?.runtime?.id)return!1;let t=tY();return!(tJ===tJ.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}()&&(nD&&(0,q.consoleSandbox)(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0),r=null==e.defaultIntegrations?rA():e.defaultIntegrations,a={...e,enabled:!n&&e.enabled,stackParser:(0,eg.stackParserFromStackParserOptions)(e.stackParser||rv),integrations:function(e){let t,n,r=e.defaultIntegrations||[],a=e.integrations;if(r.forEach(e=>{e.isDefaultInstance=!0}),Array.isArray(a))t=[...r,...a];else if("function"==typeof a){let e=a(r);t=Array.isArray(e)?e:[e]}else t=r;return n={},t.forEach(e=>{let{name:t}=e,r=n[t];r&&!r.isDefaultInstance&&e.isDefaultInstance||(n[t]=e)}),Object.values(n)}({integrations:e.integrations,defaultIntegrations:r}),transport:e.transport||rI};return(0,eS.setNormalizeStringifier)(rC),!0===a.debug&&(X.DEBUG_BUILD?q.debug.enable():(0,q.consoleSandbox)(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),(0,Q.getCurrentScope)().update(a.initialScope),eE(t=new tZ(a)),t.init(),t}function rx(){}function rO(e){e()}var rP=e.i(191788);function rM(e){let t={...e};J(t,"react"),(0,K.setContext)("react",{version:rP.version});let n=rN(t);return(0,eS.setNormalizeStringifier)(rL),n}function rL(e){return(0,eG.isPlainObject)(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e?"[SyntheticEvent]":rC(e)}let rD="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function rU(e){return(0,eG.isError)(e)&&["NEXT_NOT_FOUND","NEXT_HTTP_ERROR_FALLBACK;404"].includes(e.digest)}function rB(e){return(0,eG.isError)(e)&&"string"==typeof e.digest&&e.digest.startsWith("NEXT_REDIRECT;")}var rF=e.i(359546),rz=e.i(333226),rj=e.i(254402);function r$(e,t,n,r=(0,em.getActiveSpan)()){let a=r&&(0,em.getRootSpan)(r);a&&(X.DEBUG_BUILD&&q.debug.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),a.addEvent(e,{[eh.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:t,[eh.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:n}))}function rH(e){if(!e||0===e.length)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[eh.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT],a=n[eh.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE];"string"==typeof r&&"number"==typeof a&&(t[e.name]={value:a,unit:r})}),t}function rW(){return(0,eN.getSentryCarrier)((0,eN.getMainCarrier)()).segmentSpanCaptureStrategy}class rG{constructor(e={}){this._traceId=e.traceId||(0,rj.generateTraceId)(),this._spanId=e.spanId||(0,rj.generateSpanId)(),this._startTime=e.startTimestamp||(0,eV.timestampInSeconds)(),this._links=e.links,this._attributes={},this.setAttributes({[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"manual",[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._frozen||(this._links?this._links.push(e):this._links=[e]),this}addLinks(e){return this._frozen||(this._links?this._links.push(...e):this._links=e),this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?em.TRACE_FLAG_SAMPLED:em.TRACE_FLAG_NONE}}setAttribute(e,t){return this._frozen||(void 0===t?delete this._attributes[e]:this._attributes[e]=t,e===eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE&&void 0!==t&&(0,nV.spanShouldInferOtelSource)(this)&&(0,nV.markSpanSourceAsExplicit)(this)),this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=(0,em.spanTimeInputToSeconds)(e))}setStatus(e){return this._frozen||(this._status=e),this}updateName(e){return this._frozen||(this._name=e,(0,nV.spanShouldInferOtelSource)(this)||this.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"custom")),this}end(e){if(this._endTime){this._frozen=(0,nV.spanIsTracerProviderSpan)(this);return}this._endTime=(0,em.spanTimeInputToSeconds)(e),function(e){if(!X.DEBUG_BUILD)return;let{description:t="< unknown name >",op:n="< unknown op >"}=(0,em.spanToJSON)(e),{spanId:r}=e.spanContext(),a=(0,em.getRootSpan)(e)===e,i=`[Tracing] Finishing "${n}" ${a?"root ":""}span "${t}" with ID ${r}`;q.debug.log(i)}(this),this._onSpanEnded(),this._frozen=(0,nV.spanIsTracerProviderSpan)(this)}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:(0,em.getStatusMessage)(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],profile_id:this._attributes[eh.SEMANTIC_ATTRIBUTE_PROFILE_ID],exclusive_time:this._attributes[eh.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME],measurements:rH(this._events),is_segment:this._isStandaloneSpan&&(0,em.getRootSpan)(this)===this||void 0,segment_id:this._isStandaloneSpan?(0,em.getRootSpan)(this).spanContext().spanId:void 0,links:(0,em.convertSpanLinksForEnvelope)(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===(0,em.getRootSpan)(this),status:(0,em.getSimpleStatus)(this._status),attributes:(0,em.addStatusMessageAttribute)(this._attributes,this._status),links:(0,em.getStreamedSpanLinks)(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;X.DEBUG_BUILD&&q.debug.log("[Tracing] Adding an event to span:",e);let r=rq(t)?t:n||(0,eV.timestampInSeconds)(),a=rq(t)?{}:t||{},i={name:e,time:(0,em.spanTimeInputToSeconds)(r),attributes:a};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=(0,Q.getClient)();e&&(e.emit("spanEnd",this),this._isStandaloneSpan||e.emit("afterSpanEnd",this));let t=(0,em.getRootSpan)(this),n=this._isStandaloneSpan||this===t;if(this._isStandaloneSpan)return void(this._sampled?function(e){let t=(0,Q.getClient)();if(!t)return;let n=e[1];n&&0!==n.length?t.sendEnvelope(e):t.recordDroppedEvent("before_send","span")}(function(e,t){let n=(0,eR.getDynamicSamplingContextFromSpan)(e[0]),r=t?.getDsn(),a=t?.getOptions().tunnel,i={sent_at:new Date((0,ex.safeDateNow)()).toISOString(),...!!n.trace_id&&!!n.public_key&&{trace:n},...!!a&&r&&{dsn:(0,eT.dsnToString)(r)}},{beforeSendSpan:o,ignoreSpans:s}=t?.getOptions()||{},l=s?.length?e.filter(e=>{let t=(0,em.spanToJSON)(e);return!eH({description:t.description,op:t.op,attributes:t.data},s)}):e,u=e.length-l.length;u&&t?.recordDroppedEvent("before_send","span",u);let c=o?e=>{let t=(0,em.spanToJSON)(e),n=eA(o)?t:o(t);return n||((0,em.showSpanDropWarning)(),t)}:em.spanToJSON,d=[];for(let e of l){let t=c(e);t&&d.push([{type:"span"},t])}return eO(i,d)}([this],e)):(X.DEBUG_BUILD&&q.debug.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),e&&e.recordDroppedEvent("sample_rate","span")));if(!n){let e=rW();if(e){let n=(0,nV.getCapturedScopesOnSpan)(this).scope||(0,Q.getCurrentScope)();e.onChildSpanEnded(this,t,e=>this._convertSpanToTransaction(e),n)}return}if(e&&tt(e))return void e.emit("afterSegmentSpanEnd",this);let r=(0,nV.getCapturedScopesOnSpan)(this).scope||(0,Q.getCurrentScope)(),a=rW();if(a)a.onSegmentSpanEnded(e=>this._convertSpanToTransaction(e),r);else{let e=this._convertSpanToTransaction();e&&r.captureEvent(e)}}_convertSpanToTransaction(e={}){if(!rY((0,em.spanToJSON)(this)))return;this._name||(X.DEBUG_BUILD&&q.debug.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");let{scope:t,isolationScope:n}=(0,nV.getCapturedScopesOnSpan)(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(!0!==this._sampled)return;e.onSpanCaptured?.(this);let a=[];for(let t of(0,em.getSpanDescendants)(this)){var i;if(t===this||(i=t)instanceof rG&&i.isStandaloneSpan()||e.isSpanAlreadyCaptured?.(t))continue;let n=(0,em.spanToJSON)(t);rY(n)&&(e.onSpanCaptured?.(t),a.push(n))}let o=this._attributes[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];delete this._attributes[eh.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];let s=!1;
15a.forEach(e=>{delete e.data[eh.SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME],e.op?.startsWith("gen_ai.")&&(s=!0)});let l={contexts:{trace:(0,em.spanToTransactionTraceContext)(this)},spans:a.length>1e3?a.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,1e3):a,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:(0,eR.getDynamicSamplingContextFromSpan)(this),hasGenAiSpans:s},request:r,...o&&{transaction_info:{source:o}}},u=rH(this._events);return u&&Object.keys(u).length&&(X.DEBUG_BUILD&&q.debug.log("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),l.measurements=u),l}}function rq(e){return e&&"number"==typeof e||e instanceof Date||Array.isArray(e)}function rY(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}var rV=e.i(442044),rJ=e.i(414697),rK=e.i(157821),rQ=e.i(428659);function rX(e,t,n=()=>{},r=()=>{}){var a,i,o,s;let l;try{l=e()}catch(e){throw t(e),n(),e}return a=l,i=t,o=n,s=r,(0,eG.isThenable)(a)?(0,rQ.chainAndCopyPromiseLike)(a,e=>{o(),s(e)},e=>{i(e),o()}):(o(),s(a),a)}var rZ=e.i(76357);let r0="__SENTRY_SUPPRESS_TRACING__";function r1(e,t){let n=an();if(n.startSpan)return n.startSpan(e,t);let r=at(e),{forceTransaction:a,parentSpan:i,scope:o}=e,s=o?.clone();return(0,Q.withScope)(s,()=>ai(i)(()=>{let n=(0,Q.getCurrentScope)(),o=aa(n,i),s=(0,Q.getClient)(),l=e.onlyIfParent&&!o?r9(n,s):ae({parentSpan:o,spanArguments:r,forceTransaction:a,scope:n});return ao(l)&&o||(0,eY._setSpanForScope)(n,l),rX(()=>t(l),()=>{let{status:e}=(0,em.spanToJSON)(l);l.isRecording()&&(!e||"ok"===e)&&l.setStatus({code:rV.SPAN_STATUS_ERROR,message:"internal_error"})},()=>{l.end()})}))}function r2(e,t){let n=an();if(n.startSpanManual)return n.startSpanManual(e,t);let r=at(e),{forceTransaction:a,parentSpan:i,scope:o}=e,s=o?.clone();return(0,Q.withScope)(s,()=>ai(i)(()=>{let n=(0,Q.getCurrentScope)(),o=aa(n,i),s=e.onlyIfParent&&!o?r9(n,(0,Q.getClient)()):ae({parentSpan:o,spanArguments:r,forceTransaction:a,scope:n});return ao(s)&&o||(0,eY._setSpanForScope)(n,s),rX(()=>t(s,()=>s.end()),()=>{let{status:e}=(0,em.spanToJSON)(s);s.isRecording()&&(!e||"ok"===e)&&s.setStatus({code:rV.SPAN_STATUS_ERROR,message:"internal_error"})})}))}function r3(e){let t=an();return t.startInactiveSpan?t.startInactiveSpan(e):function(e){let t=at(e),{forceTransaction:n,parentSpan:r}=e;return(e.scope?t=>(0,Q.withScope)(e.scope,t):void 0!==r?e=>r5(r,e):e=>e())(()=>{let a=(0,Q.getCurrentScope)(),i=aa(a,r),o=(0,Q.getClient)();return e.onlyIfParent&&!i?r9(a,o):ae({parentSpan:i,spanArguments:t,forceTransaction:n,scope:a})})}(e)}let r4=(e,t)=>{let n=(0,eN.getMainCarrier)(),r=(0,rJ.getAsyncContextStrategy)(n);if(r.continueTrace)return r.continueTrace(e,t);let{sentryTrace:a,baggage:i}=e,o=(0,Q.getClient)(),s=(0,rK.baggageHeaderToDynamicSamplingContext)(i);return o&&!(0,rZ.shouldContinueTrace)(o,s?.org_id)?r7(t):(0,Q.withScope)(e=>{let n=(0,rZ.propagationContextFromHeaders)(a,i);return e.setPropagationContext(n),(0,eY._setSpanForScope)(e,void 0),t()})};function r5(e,t){let n=an();return n.withActiveSpan?n.withActiveSpan(e,t):(0,Q.withScope)(n=>((0,eY._setSpanForScope)(n,e||void 0),t(n)))}function r6(e){let t=an();return t.suppressTracing?t.suppressTracing(e):(0,Q.withScope)(t=>{t.setSDKProcessingMetadata({[r0]:!0});let n=e();return t.setSDKProcessingMetadata({[r0]:void 0}),n})}function r8(e=(0,Q.getCurrentScope)()){let t=an();return t.isTracingSuppressed?t.isTracingSuppressed(e):!0===e.getScopeData().sdkProcessingMetadata[r0]}function r7(e){let t=an();return t.startNewTrace?t.startNewTrace(e):(0,Q.withScope)(t=>(t.setPropagationContext({traceId:(0,rj.generateTraceId)(),sampleRand:(0,ex.safeMathRandom)()}),X.DEBUG_BUILD&&q.debug.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),r5(null,e)))}function r9(e,t){t?.recordDroppedEvent("no_parent_span","span");let n=new rz.SentryNonRecordingSpan({traceId:e.getPropagationContext().traceId});return(0,nV.setCapturedScopesOnSpan)(n,e,(0,Q.getIsolationScope)()),n}function ae({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){var a,i;let o,s,l=(0,Q.getIsolationScope)();if(!(0,rF.hasSpansEnabled)()){let t=r.getPropagationContext(),a=e?e.spanContext().traceId:t.traceId,i=new rz.SentryNonRecordingSpan({traceId:a});return e&&!n&&(0,em.addChildSpanToSpan)(e,i),(0,nV.setCapturedScopesOnSpan)(i,r,l),i}let u=(0,Q.getClient)();if(a=u,i=t,o=a?.getOptions().ignoreSpans,a&&tt(a)&&o?.length&&eH({description:i.name||"",op:i.attributes?.[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]||i.op,attributes:i.attributes},o)){r8(r)||u?.recordDroppedEvent("ignored","span");let t=new rz.SentryNonRecordingSpan({dropReason:"ignored",traceId:e?.
15spanContext().traceId??r.getPropagationContext().traceId});return e&&!n&&(0,em.addChildSpanToSpan)(e,t),(0,nV.setCapturedScopesOnSpan)(t,r,l),t}if(e&&!n)s=function(e,t,n,r){let{spanId:a,traceId:i}=e.spanContext(),o=r8(t),s=!o&&(0,em.spanIsSampled)(e),l=s?new rG({...n,parentSpanId:a,traceId:i,sampled:s}):new rz.SentryNonRecordingSpan({traceId:i});(0,em.addChildSpanToSpan)(e,l),(0,nV.setCapturedScopesOnSpan)(l,t,r);let u=(0,Q.getClient)();return u&&(tt(u)&&(0,rz.spanIsNonRecordingSpan)(l)&&((0,rz.spanIsNonRecordingSpan)(e)&&e.dropReason?(l.dropReason=e.dropReason,u.recordDroppedEvent(e.dropReason,"span")):o||(l.dropReason="sample_rate",u.recordDroppedEvent("sample_rate","span"))),u.emit("spanStart",l),n.endTimestamp&&(u.emit("spanEnd",l),u.emit("afterSpanEnd",l))),l}(e,r,t,l),(0,em.addChildSpanToSpan)(e,s);else if(e){let n=(0,eR.getDynamicSamplingContextFromSpan)(e),{traceId:a,spanId:i}=e.spanContext(),o=(0,em.spanIsSampled)(e);s=ar({traceId:a,parentSpanId:i,...t},r,l,o),(0,eR.freezeDscOnSpan)(s,n)}else{let{traceId:e,dsc:n,parentSpanId:a,sampled:i}=r.getPropagationContext();s=ar({traceId:e,parentSpanId:a,...t},r,l,i),n&&(0,eR.freezeDscOnSpan)(s,n)}return!function(e){if(!X.DEBUG_BUILD)return;let{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=(0,em.spanToJSON)(e),{spanId:a}=e.spanContext(),i=(0,em.spanIsSampled)(e),o=(0,em.getRootSpan)(e),s=o===e,l=`[Tracing] Starting ${i?"sampled":"unsampled"} ${s?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${a}`];if(r&&u.push(`parent ID: ${r}`),!s){let{op:e,description:t}=(0,em.spanToJSON)(o);u.push(`root ID: ${o.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}q.debug.log(`${l}
16  ${u.join("\n  ")}`)}(s),s}function at(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=(0,em.spanTimeInputToSeconds)(e.startTime),delete n.startTime,n}return t}function an(){let e=(0,eN.getMainCarrier)();return(0,rJ.getAsyncContextStrategy)(e)}function ar(e,t,n,r){let a=(0,Q.getClient)(),i=a?.getOptions()||{},{name:o=""}=e,s={spanAttributes:{...e.attributes},spanName:o,parentSampled:r};a?.emit("beforeSampling",s,{decision:!1});let l=s.parentSampled??r,u=s.spanAttributes,c=t.getPropagationContext(),d=r8(t),[p,f,h]=d?[!1]:function(e,t,n){let r,a;if(!(0,rF.hasSpansEnabled)(e))return[!1];"function"==typeof e.tracesSampler?(r=e.tracesSampler({...t,inheritOrSampleWith:e=>"number"==typeof t.parentSampleRate?t.parentSampleRate:"boolean"==typeof t.parentSampled?Number(t.parentSampled):e}),a=!0):void 0!==t.parentSampled?r=t.parentSampled:void 0!==e.tracesSampleRate&&(r=e.tracesSampleRate,a=!0);let i=(0,td.parseSampleRate)(r);if(void 0===i)return X.DEBUG_BUILD&&q.debug.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(r)} of type ${JSON.stringify(typeof r)}.`),[!1];if(!i)return X.DEBUG_BUILD&&q.debug.log(`[Tracing] Discarding transaction because ${"function"==typeof e.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,i,a];let o=n<i;return!o&&X.DEBUG_BUILD&&q.debug.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),[o,i,a]}(i,{name:o,parentSampled:l,attributes:u,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:(0,td.parseSampleRate)(c.dsc?.sample_rate)},c.sampleRand),m=new rG({...e,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"custom",[eh.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:void 0!==f&&h?f:void 0,...u},sampled:p});return p||!a||d||(X.DEBUG_BUILD&&q.debug.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),a.recordDroppedEvent("sample_rate",tt(a)?"span":"transaction")),(0,nV.setCapturedScopesOnSpan)(m,t,n),a&&a.emit("spanStart",m),m}function aa(e,t){if(t)return t;if(null===t)return;let n=(0,eY._getSpanForScope)(e);if(!n)return;let r=(0,Q.getClient)();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?(0,em.getRootSpan)(n):n}function ai(e){return void 0!==e?t=>r5(e,t):e=>e()}function ao(e){return(0,rz.spanIsNonRecordingSpan)(e)&&"ignored"===e.dropReason}let as={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3};function al(e,t={}){let n,r,a,i=new Map,o=!1,s="externalFinish",l=!t.disableAutoFinish,u=[],{idleTimeout:c=as.idleTimeout,finalTimeout:d=as.finalTimeout,childSpanTimeout:p=as.childSpanTimeout,beforeSpanEnd:f,trimIdleSpanEndTimestamp:h=!0}=t,m=(0,Q.getClient)(),g=(0,Q.getCurrentScope)();if(!m||!(0,rF.hasSpansEnabled)()){let e=new rz.SentryNonRecordingSpan({traceId:g.getPropagationContext().traceId});return(0,nV.setCapturedScopesOnSpan)(e,g,(0,Q.getIsolationScope)()),e}let y=(0,em.getActiveSpan)(),_=(n=r3(e),(0,eY._setSpanForScope)((0,Q.getCurrentScope)(),n),X.DEBUG_BUILD&&q.debug.log("[Tracing] Started span is an i
16dle span"),n);function b(){r&&(clearTimeout(r),r=void 0)}function v(){a&&(clearTimeout(a),a=void 0)}function S(e){b(),r=setTimeout(()=>{!o&&0===i.size&&l&&(s="idleTimeout",_.end(e))},c)}function E(e){v(),a=setTimeout(()=>{!o&&l&&(s="heartbeatFailed",_.end(e))},p)}function T(e){o=!0,i.clear(),u.forEach(e=>e()),(0,eY._setSpanForScope)(g,y);let t=(0,em.spanToJSON)(_),{start_timestamp:n}=t;if(!n)return;t.data[eh.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]||_.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,s);let r=t.status;r&&"unknown"!==r||_.setStatus({code:rV.SPAN_STATUS_OK}),q.debug.log(`[Tracing] Idle span "${t.op}" finished`);let a=(0,em.getSpanDescendants)(_).filter(e=>e!==_),l=0;a.forEach(t=>{t.isRecording()&&(t.setStatus({code:rV.SPAN_STATUS_ERROR,message:"cancelled"}),t.end(e),X.DEBUG_BUILD&&q.debug.log("[Tracing] Cancelling span since span ended early",JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:r=0}=(0,em.spanToJSON)(t),a=r<=e,i=n-r<=(d+c)/1e3;if(X.DEBUG_BUILD){let e=JSON.stringify(t,void 0,2);a?i||q.debug.log("[Tracing] Discarding span since it finished after idle span final timeout",e):q.debug.log("[Tracing] Discarding span since it happened after idle span was finished",e)}(!i||!a)&&((0,em.removeChildSpanFromSpan)(_,t),l++)}),l>0&&_.setAttribute("sentry.idle_span_discarded_spans",l)}return _.end=new Proxy(_.end,{apply(e,t,n){if(f&&f(_),(0,rz.spanIsNonRecordingSpan)(t))return;let[r,...a]=n,i=r||(0,eV.timestampInSeconds)(),o=(0,em.spanTimeInputToSeconds)(i),s=(0,em.getSpanDescendants)(_).filter(e=>e!==_),l=(0,em.spanToJSON)(_);if(!s.length||!h)return T(o),Reflect.apply(e,t,[o,...a]);let u=m.getOptions().ignoreSpans,c=s?.reduce((e,t)=>{let n=(0,em.spanToJSON)(t);return!n.timestamp||u&&eH({description:n.description,op:n.op,attributes:n.data},u)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),p=l.start_timestamp,g=Math.min(p?p+d/1e3:1/0,Math.max(p||-1/0,Math.min(o,c||1/0)));return T(g),Reflect.apply(e,t,[g,...a])}}),u.push(m.on("spanStart",e=>{var t;!(o||e===_||(0,em.spanToJSON)(e).timestamp||e instanceof rG&&e.isStandaloneSpan())&&(0,em.getSpanDescendants)(_).includes(e)&&(t=e.spanContext().spanId,b(),i.set(t,!0),E((0,eV.timestampInSeconds)()+p/1e3))})),u.push(m.on("spanEnd",e=>{if(!o){var t;t=e.spanContext().spanId,i.has(t)&&i.delete(t),0===i.size&&(S((0,eV.timestampInSeconds)()+c/1e3),v())}})),u.push(m.on("idleSpanEnableAutoFinish",e=>{e===_&&(l=!0,S(),i.size&&E())})),t.disableAutoFinish||S(),setTimeout(()=>{o||(_.setStatus({code:rV.SPAN_STATUS_ERROR,message:"deadline_exceeded"}),s="finalTimeout",_.end())},d),_}let au=!1;function ac(){au||(au=!0,nZ(e),n2(e));function e(){let e=(0,em.getActiveSpan)(),t=e&&(0,em.getRootSpan)(e);if(t){let e="internal_error";X.DEBUG_BUILD&&q.debug.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:rV.SPAN_STATUS_ERROR,message:e})}}}let ad=(e,t,n,r)=>{let a,i;return o=>{if(t.value>=0&&(o||r)&&((i=t.value-(a??0))||void 0===a)){var s;a=t.value,t.delta=i,s=t.value,t.rating=s>n[1]?"poor":s>n[0]?"needs-improvement":"good",e(t)}}},ap=(e=!0)=>{let t=nw.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},af=()=>{let e=ap();return e?.activationStart??0},ah=-1,am=new Set,ag=e=>{if(("pagehide"===e.type||nw.document?.visibilityState==="hidden")&&ah>-1){if("visibilitychange"===e.type||"pagehide"===e.type)for(let e of am)e();isFinite(ah)||(ah="visibilitychange"===e.type?e.timeStamp:0,nW("prerenderingchange",ag,!0))}},ay=()=>{if(nw.document&&ah<0){let e=af();ah=(nw.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(t=>"hidden"===t.name&&t.startTime>e)[0]?.startTime)??(nw.document?.visibilityState!=="hidden"||nw.document?.prerendering?1/0:0),nH("visibilitychange",ag,!0),nH("pagehide",ag,!0),nH("prerenderingchange",ag,!0)}return{get firstHiddenTime(){return ah},onHidden(e){am.add(e)}}},a_=(e,t=-1)=>{let n=ap(),r="navigate";return n&&(nw.document?.prerendering||af()>0?r="prerender":nw.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,navigationType:r}},ab=new WeakMap;function av(e,t){try{return ab.get(e)||ab.set(e,new t),ab.get(e)}catch(e){return new t}}class aS{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}}let aE=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},aT=e=>{nw.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},aw=[1800,3e3],ak=[.1,.25],aI=0,aR=1/0,aC=0,aA=e=>
16{e.forEach(e=>{e.interactionId&&(aR=Math.min(aR,e.interactionId),aI=(aC=Math.max(aC,e.interactionId))?(aC-aR)/7+1:0)})},aN=()=>o?aI:performance.interactionCount||0,ax=0;class aO{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){ax=aN(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor((aN()-ax)/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||"first-input"===e.entryType))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<10||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>10)for(let e of this._longestInteractionList.splice(10))this._longestInteractionMap.delete(e.id);this._onAfterProcessingINPCandidate?.(n)}}}let aP=[200,500];class aM{_processEntry(e){this._onBeforeProcessingEntry?.(e)}}let aL=[2500,4e3],aD=[800,1800],aU=e=>{nw.document?.prerendering?aT(()=>aU(e)):nw.document?.readyState!=="complete"?addEventListener("load",()=>aU(e),!0):setTimeout(e)},aB={},aF={};function az(e,t=!1){return aJ("cls",e,aG,s,t)}function aj(e,t=!1){return aJ("lcp",e,aq,l,t)}function a$(e){return aJ("inp",e,aV,c)}function aH(e,t){var n;let r;return aK(e,t),aF[e]||(r={},"event"===(n=e)&&(r.durationThreshold=0),aE(n,e=>{aW(n,{entries:e})},r),aF[e]=!0),aQ(e,t)}function aW(e,t){let n=aB[e];if(n?.length)for(let r of n)try{r(t)}catch(t){rE&&q.debug.error(`Error while triggering instrumentation handler.
17Type: ${e}
18Name: ${(0,eg.getFunctionName)(r)}
19Error:`,t)}}function aG(){return((e,t={})=>{((e,t={})=>{aT(()=>{let n,r=ay(),a=a_("FCP"),i=aE("paint",e=>{for(let t of e)"first-contentful-paint"===t.name&&(i.disconnect(),t.startTime<r.firstHiddenTime&&(a.value=Math.max(t.startTime-af(),0),a.entries.push(t),n(!0)))});i&&(n=ad(e,a,aw,t.reportAllChanges))})})(nG(()=>{let n,r=a_("CLS",0),a=ay(),i=av(t,aS),o=e=>{for(let t of e)i._processEntry(t);i._sessionValue>r.value&&(r.value=i._sessionValue,r.entries=i._sessionEntries,n())},s=aE("layout-shift",o);s&&(n=ad(e,r,ak,t.reportAllChanges),a.onHidden(()=>{o(s.takeRecords()),n(!0)}),nw?.setTimeout?.(n))}))})(e=>{aW("cls",{metric:e}),s=e},{reportAllChanges:!0})}function aq(){return((e,t={})=>{aT(()=>{let n,r=ay(),a=a_("LCP"),i=av(t,aM),o=e=>{for(let o of(t.reportAllChanges||(e=e.slice(-1)),e))i._processEntry(o),o.startTime<r.firstHiddenTime&&(a.value=Math.max(o.startTime-af(),0),a.entries=[o],n())},s=aE("largest-contentful-paint",o);if(s){n=ad(e,a,aL,t.reportAllChanges);let r=nG(()=>{o(s.takeRecords()),s.disconnect(),n(!0)}),i=e=>{e.isTrusted&&(nq(r),nW(e.type,i,{capture:!0}))};for(let e of["keydown","click","visibilitychange"])nH(e,i,{capture:!0})}})})(e=>{aW("lcp",{metric:e}),l=e},{reportAllChanges:!0})}function aY(){return((e,t={})=>{let n=a_("TTFB"),r=ad(e,n,aD,t.reportAllChanges);aU(()=>{let e=ap();e&&(n.value=Math.max(e.responseStart-af(),0),n.entries=[e],r(!0))})})(e=>{aW("ttfb",{metric:e}),u=e})}function aV(){return((e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;let n=ay();aT(()=>{let r;"interactionCount"in performance||o||(o=aE("event",aA,{type:"event",buffered:!0,durationThreshold:0}));let a=a_("INP"),i=av(t,aO),s=e=>{nq(()=>{for(let t of e)i._processEntry(t);let t=i._estimateP98LongestInteraction();t&&t._latency!==a.value&&(a.value=t._latency,a.entries=t.entries,r())})},l=aE("event",s,{durationThreshold:t.durationThreshold??40});r=ad(e,a,aP,t.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{s(l.takeRecords()),r(!0)}))})})(e=>{aW("inp",{metric:e}),c=e})}function aJ(e,t,n,r,a=!1){let i;return aK(e,t),aF[e]||(i=n(),aF[e]=!0),r&&t({metric:r}),aQ(e,t,a?i:void 0)}function aK(e,t){aB[e]=aB[e]||[],aB[e].push(t)}function aQ(e,t,n){return()=>{n&&n();let r=aB[e];if(!r)return;let a=r.indexOf(t);-1!==a&&r.splice(a,1)}}function aX(e){return"number"==typeof e&&isFinite(e)}function aZ(e,t,n,{...r}){let a=(0,em.spanToJSON)(e).start_timestamp;return a&&a>t&&"function"==typeof e.updateStartTime&&e.updateStartTime(t),r5(e,()=>{let e=r3({startTime:t,...r});return e&&e.end(n),e})}function a0(e){let t,n=(0,Q.getClient)();if(!n)return;let{name:r,transaction:a,attributes:i,startTime:o}=e,{release:s,environment:l}=n.getOptions(),{userInfo:u}=n.getDataCollectionOptions(),c=n.getIntegrationByName("Replay"),d=c?.getReplayId(),p=(0,Q.getCurrentScope)(),f=p.getUser(),h=void 0!==f?f.email||f.id||f.ip_address:void 0;try{t=p.getScopeData().contexts.profile.profile_id}catch{}return r3({name:r,attributes:{release:s,environment:l,user:h||void 0,profile_id:t||void 0,replay_id:d||void 0,transaction:a,"user_agent.original":nw.navigator?.userAgent,"client.address":u?"{{auto}}":void 0,...i},startTime:o,experimental:{standalone:!0}})}function a1(){return nw.addEventListener&&nw.performance}function a2(e){return e/1e3}function a3(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function a4(e,t){let n,r,a=!1;function i(e){!a&&r&&t(e,r.spanContext().spanId,r),a=!0}nH("visibilitychange",n=e=>{("pagehide"===e.type||nw.document?.visibilityState==="hidden")&&(()=>{i("pagehide")})()},{capture:!0,once:!0}),nH("pagehide",n,{capture:!0,once:!0});let o=e.on("beforeStartNavigationSpan",(e,t)=>{t?.isRedirect||(i("navigation"),o(),s())}),s=e.on("afterStartPageLoadSpan",e=>{r=e,s()})}function a5(e){return null!=e&&e>0&&e<=6e4}function a6(e){return e?(((0,eV.browserPerformanceTimeOrigin)()||performance.timeOrigin)+e)/1e3:e}function a8(e){let t={};if(void 0!=e.nextHopProtocol){let{name:n,version:r}=function(e){let t="unknown",n="unknown",r="";for(let a of e){if("/"===a){[t,n]=e.split("/");break}if(!isNaN(Number(a))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=a}
19return r===e&&(t=r),{name:t,version:n}}(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return(0,eV.browserPerformanceTimeOrigin)()||a1()?.timeOrigin?Object.fromEntries(Object.entries({...t,"http.request.redirect_start":a6(e.redirectStart),"http.request.redirect_end":a6(e.redirectEnd),"http.request.worker_start":a6(e.workerStart),"http.request.fetch_start":a6(e.fetchStart),"http.request.domain_lookup_start":a6(e.domainLookupStart),"http.request.domain_lookup_end":a6(e.domainLookupEnd),"http.request.connect_start":a6(e.connectStart),"http.request.secure_connection_start":a6(e.secureConnectionStart),"http.request.connection_end":a6(e.connectEnd),"http.request.request_start":a6(e.requestStart),"http.request.response_start":a6(e.responseStart),"http.request.response_end":a6(e.responseEnd),"http.request.time_to_first_byte":null!=e.responseStart?e.responseStart/1e3:void 0}).filter(([,e])=>null!=e)):t}let a7=0,a9={};function ie(){d=void 0,p=void 0,a9={}}function it(e,t,n,r,a=n){var i;let o=t["secureConnection"===(i=n)?"connectEnd":"fetch"===i?"domainLookupStart":`${i}End`],s=t[`${n}Start`];s&&o&&aZ(e,r+a2(s),r+a2(o),{op:`browser.${a}`,name:t.name,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics",..."redirect"===n&&null!=t.redirectCount?{"http.redirect_count":t.redirectCount}:{}}})}let ir=new WeakMap,ia=new WeakMap,ii=["text/event-stream","application/x-ndjson","application/stream+json"],io=()=>({name:"FetchStreamPerformance",setup(){let e;t2(e="fetch-body-resolved",e=>{if(e.response){let t=ir.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);let n=ia.get(e.response);n&&clearTimeout(n)}}}),t3(e,()=>nr(ni)),nn(e=>{if(e.endTimestamp&&e.response){let t=e.response.headers?.get("content-type")||"";if(e.response.headers?.get("content-length")||!ii.some(e=>
19t.startsWith(e)))return;let n=e.fetchData?.url||"",r=e.fetchData?.method||"GET",a=nb(n),i=n.startsWith("data:")?nT(n):a?nv(a):n,o=r3({name:`${r} ${i}`,startTime:e.endTimestamp,attributes:{url:nT(n),"http.method":r,type:"fetch",[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client.stream",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.stream"}});ir.set(e.response,o);let s=setTimeout(()=>{o.isRecording()&&o.end()},9e4);ia.set(e.response,s)}})}}),is=[],il=new Map,iu=new Map,ic={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"},id=({metric:e})=>{if(void 0==e.value)return;let t=a2(e.value);if(t>60)return;let n=e.entries.find(t=>t.duration===e.value&&ic[t.name]);if(!n)return;let{interactionId:r}=n,a=ic[n.name],i=a2((0,eV.browserPerformanceTimeOrigin)()+n.startTime),o=(0,em.getActiveSpan)(),s=o?(0,em.getRootSpan)(o):void 0,l=null!=r?il.get(r):void 0,u=l?.span||s,c=u?(0,em.spanToJSON)(u).description:(0,Q.getCurrentScope)().getScopeData().transactionName,d=a0({name:l?.elementName||nL(n.target),transaction:c,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.inp",[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:`ui.interaction.${a}`,[eh.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:n.duration},startTime:i});d&&(d.addEvent("inp",{[eh.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[eh.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e.value}),d.end(i+t))};function ip(e){let{name:t,op:n,origin:r,metricName:a,value:i,attributes:o,parentSpan:s,reportEvent:l,startTime:u,endTime:c}=e,d=(0,Q.getCurrentScope)().getScopeData().transactionName,p={[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:r,[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:n,[eh.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,[`browser.web_vital.${a}.value`]:i,[nh]:d,[nf]:d,"user_agent.original":nw.navigator?.userAgent,...o};s&&(0,em.spanToStreamedSpanJSON)(s).attributes?.[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]==="pageload"&&(p["sentry.pageload.span_id"]=s.spanContext().spanId),l&&(p[`browser.web_vital.${a}.report_event`]=l);let f=r3({name:t,attributes:p,startTime:u,parentSpan:s});f&&f.end(c??u)}let ih="WebVitals",im=(e={})=>{let t=new Set(e.ignore??[]);return{name:ih,setup(n){let r=tt(n),{enableStandaloneClsSpans:a,enableStandaloneLcpSpans:i}=e._experiments??{},o=r||t.has("cls")?void 0:a||!1,s=r||t.has("lcp")?void 0:i||!1,l=function({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=a1();if(r&&(0,eV.browserPerformanceTimeOrigin)()){r.mark&&nw.performance.mark("sentry-tracing-init");let a=t?function(e){let t,n=0;if(!a3("largest-contentful-paint"))return;let r=aj(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&a5(e.value)&&(n=e.value,t=r)},!0);a4(e,(e,a)=>{(function(e,t,n,r){if(!a5(e))return;rE&&q.debug.log(`Sending LCP span (${e})`);let a=a2(((0,eV.browserPerformanceTimeOrigin)()||0)+(t?.startTime||0)),i=(0,Q.getCurrentScope)().getScopeData().transactionName,o=t?nL(t.element):"Largest contentful paint",s={[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.lcp",[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.lcp",[eh.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(s["lcp.element"]=nL(t.element)),t.id&&(s["lcp.id"]=t.id),t.url&&(s["lcp.url"]=t.url),null!=t.loadTime&&(s["lcp.loadTime"]=t.loadTime),null!=t.renderTime&&(s["lcp.renderTime"]=t.renderTime),null!=t.size&&(s["lcp.size"]=t.size));let l=a0({name:o,transaction:i,attributes:s,startTime:a});l&&(l.addEvent("lcp",{[eh.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"millisecond",[eh.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:e}),l.end(a))})(n,t,a,e),r()})}(n):!1===t?aj(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&a5(e.value)&&(a9.lcp={value:e.value,unit:"millisecond"},d=t)},!0):void 0,i=e?function(e){let t,n=0;if(!a3("layout-shift"))return;let r=az(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);a4(e,(e,a)=>{var i,o,s,l;let u,c,d,p,f;i=n,o=t,s=a,l=e,rE&&q.debug.log(`Sending CLS span (${i})`),u=o?a2(((0,eV.browserPerformanceTimeOrigin)()||0)+o.startTime):(0,eV.timestampInSeconds)(),c=(0,Q.getCurrentScope)().getScopeData().transactionName,d=o?nL(o.sources[0]?.node):"Layout shift",p={[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser.cls",[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"ui.webvital.cls",[eh.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:0,"sentry.pageload.span_id":s,"sentry.report_event":l}
19,o?.sources&&o.sources.forEach((e,t)=>{p[`cls.source.${t+1}`]=nL(e.node)}),(f=a0({name:d,transaction:c,attributes:p,startTime:u}))&&(f.addEvent("cls",{[eh.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]:"",[eh.SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]:i}),f.end(u)),r()})}(n):!1===e?az(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(a9.cls={value:e.value,unit:""},p=t)},!0):void 0,o=aJ("ttfb",({metric:e})=>{e.entries[e.entries.length-1]&&(a9.ttfb={value:e.value,unit:"millisecond"})},aY,u),s=aH("paint",({entries:e})=>{let t=ay();for(let n of e){let e=n.startTime<t.firstHiddenTime;"first-paint"===n.name&&e&&(a9.fp={value:n.startTime,unit:"millisecond"}),"first-contentful-paint"===n.name&&e&&(a9.fcp={value:n.startTime,unit:"millisecond"})}});return()=>{o(),s(),a?.(),i?.()}}return()=>void 0}({recordClsStandaloneSpans:o,recordLcpStandaloneSpans:s,client:n}),c=new WeakSet;n.on("afterStartPageLoadSpan",e=>{c.add(e)}),n.on("spanEnd",e=>{c.delete(e)&&(l(),function(e,t){let n=(0,eV.browserPerformanceTimeOrigin)();if(!a1()?.getEntries||!n)return ie();let{spanStreamingEnabled:r,recordClsOnPageloadSpan:a,recordLcpOnPageloadSpan:i}=t,o=a2(n);if("pageload"===(0,em.spanToJSON)(e).op){if(function(e){let t=ap(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}(a9),r){let t=(t,n,r)=>{let a=r??`browser.web_vital.${t}.value`;e.setAttribute(a,n),rE&&q.debug.log("Setting web vital attribute",{[a]:n},"on pageload span")};["ttfb","fp","fcp"].forEach(e=>{a9[e]&&t(e,a9[e].value)}),a9["ttfb.requestTime"]&&t("ttfb.requestTime",a9["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else{var s,l;a||delete a9.cls,i||delete a9.lcp,Object.entries(a9).forEach(([t,n])=>{r$(t,n.value,n.unit,e)}),s=e,l=t,d&&l.recordLcpOnPageloadSpan&&(d.element&&s.setAttribute("lcp.element",nL(d.element)),d.id&&s.setAttribute("lcp.id",d.id),d.url&&s.setAttribute("lcp.url",d.url.trim().slice(0,200)),null!=d.loadTime&&s.setAttribute("lcp.loadTime",d.loadTime),null!=d.renderTime&&s.setAttribute("lcp.renderTime",d.renderTime),s.setAttribute("lcp.size",d.size)),p?.sources&&l.recordClsOnPageloadSpan&&p.sources.forEach((e,t)=>s.setAttribute(`cls.source.${t+1}`,nL(e.node)))}e.setAttribute(r?"browser.performance.time_origin":"performance.timeOrigin",o),e.setAttribute(r?"browser.performance.navigation.activation_start":"performance.activationStart",af())}ie()}(e,{recordClsOnPageloadSpan:!1===o,recordLcpOnPageloadSpan:!1===s,spanStreamingEnabled:r}))}),r?(t.has("lcp")||function(e){let t,n=0;if(!a3("largest-contentful-paint"))return;let r=aj(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&a5(e.value)&&(n=e.value,t=r)},!0);a4(e,(e,a,i)=>{(function(e,t,n,r){if(!a5(e))return;rE&&q.debug.log(`Sending LCP span (${e})`);let a=(0,eV.browserPerformanceTimeOrigin)()||0,i=a2(a),o=a2(a+(t?.startTime||0)),s=t?nL(t.element):"Largest contentful paint",l={};t?.element&&(l["browser.web_vital.lcp.element"]=nL(t.element)),t?.id&&(l["browser.web_vital.lcp.id"]=t.id),t?.url&&(l["browser.web_vital.lcp.url"]=t.url),t?.loadTime!=null&&(l["browser.web_vital.lcp.load_time"]=t.loadTime),t?.renderTime!=null&&(l["browser.web_vital.lcp.render_time"]=t.renderTime),t?.size!=null&&(l["browser.web_vital.lcp.size"]=t.size),ip({name:s,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:l,parentSpan:n,reportEvent:r,startTime:i,endTime:o})})(n,t,i,e),r()})}(n),t.has("cls")||function(e){let t,n=0;if(!a3("layout-shift"))return;let r=az(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(n=e.value,t=r)},!0);a4(e,(e,a,i)=>{var o,s,l,u;let c,d,p;o=n,s=t,l=i,u=e,rE&&q.debug.log(`Sending CLS span (${o})`),c=s?a2(((0,eV.browserPerformanceTimeOrigin)()||0)+s.startTime):(0,eV.timestampInSeconds)(),d=s?nL(s.sources[0]?.node):"Layout shift",p={},s?.sources&&s.sources.forEach((e,t)=>{p[`browser.web_vital.cls.source.${t+1}`]=nL(e.node)}),ip({name:d,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:o,attributes:p,parentSpan:l,reportEvent:u,startTime:c}),r()})}(n),!t.has("inp")&&a1()&&(0,eV.browserPerformanceTimeOrigin)()&&a$(({metric:e})=>{var t,n,r;let a,i,o,s,l,u,c,d;if(null==e.value||a2(e.value)>60)return;let p=e.entries.find(t=>t.duration===e.value&&ic[t.name]);p&&(t=e.value,n=p,rE&&q.debug.log(`Sending INP span (${t})`),a=a2((0,eV.browserPerformanceTimeOrigin)()+n.startTime),i=a2(t),o=ic[n.name],s=null!=(r=n.interactionId)?il.get(r):void 0,u=(l=(0,em.getActiveSpan)())?(0,em.getRootSpan)(l):void 0,d=(c=s?.span||u)?(0,em.spanToStreamedSpanJSON)(c).name:(0,Q.getCurrentScope)().getScopeData().transactionName,ip({name:s?.elementName||nL(n.target),op:`ui.interaction.${o}`,origin:"auto.http.browser.inp",metricName:"inp",value:t,attributes:{[eh.SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]:n.duration,[nh]:d,[nf]:d},startTime:a,endTime:a+i,parentSpan:c}))})):t.has("inp")||function(){if(a1()&&(0,eV.browserPerformanceTimeOrigin)()){let e=a$(id);()=>{e()}}}()},afterAllSetup(){t.has("inp")||function(){let e=Object.keys(ic);function t(e){let t=e.target;if(!t)return;let n=nL(t),r=Math.round(e.timeStamp);if(iu.set(r,n),iu.size>
1950){let e=iu.keys().next().value;void 0!==e&&iu.delete(e)}}eZ()&&e.forEach(e=>{nw.addEventListener(e,t,{capture:!0,passive:!0})});let n=({entries:e})=>{let t=(0,em.getActiveSpan)(),n=t&&(0,em.getRootSpan)(t);e.forEach(e=>{if(!("duration"in e))return;let t=e.interactionId;if(null==t||il.has(t))return;let r=e.target?nL(e.target):function(e){let t=Math.round(e.startTime),n=iu.get(t);if(!n)for(let e=-5;e<=5;e++){let r=iu.get(t+e);if(r){n=r;break}}return n||"<unknown>"}(e);if(is.length>10){let e=is.shift();il.delete(e)}is.push(t),il.set(t,{span:n,elementName:r})})};aH("event",n),aH("first-input",n)}()}}},ig="sentry_previous_trace";function iy(e){return 1===e.traceFlags}function i_(e={}){let t=e.client||(0,Q.getClient)();if(!(0,K.isEnabled)()||!t)return{};let n=(0,eN.getMainCarrier)(),r=(0,rJ.getAsyncContextStrategy)(n);if(r.getTraceData)return r.getTraceData(e);let a=e.scope||(0,Q.getCurrentScope)(),i=e.span||(0,em.getActiveSpan)(),o=(0,rz.spanIsNonRecordingSpan)(i)&&!(0,rF.hasSpansEnabled)(t.getOptions());if(!i&&(0,Q.hasExternalPropagationContext)())return{};let s=i&&!o?(0,em.spanToTraceHeader)(i):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,rZ.generateSentryTraceHeader)(t,r,n)}(a),l=i?(0,eR.getDynamicSamplingContextFromSpan)(i):(0,eR.getDynamicSamplingContextFromScope)(t,a),u=(0,rK.dynamicSamplingContextToSentryBaggageHeader)(l);if(!rZ.TRACEPARENT_REGEXP.test(s))return q.debug.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let c={"sentry-trace":s,baggage:u};return e.propagateTraceparent&&(c.traceparent=i&&!o?(0,em.spanToTraceparentHeader)(i):function(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return(0,rZ.generateTraceparentHeader)(t,r,n)}(a)),c}function ib(e){return"string"==typeof e&&e.split(",").some(e=>e.trim().startsWith(rK.SENTRY_BAGGAGE_KEY_PREFIX))}function iv(e,t,n,r){let a={url:nT(e),type:"fetch","http.method":n,[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:r,[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client"};return t&&(n_(t)||(a[np]=nT(t.href),a[nm]=nT(t.href),a["server.address"]=t.host),t.search&&(a["http.query"]=t.search),t.hash&&(a["http.fragment"]=t.hash)),a}let iS=Symbol.for("sentry__originalRequestBody");function iE(e){return new URLSearchParams(e).toString()}function iT(e,t=q.debug){try{if("string"==typeof e)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[iE(e)];if(!e)return[void 0]}catch(n){return rE&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return rE&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function iw(e=[]){if(e.length>=2&&e[1]&&"object"==typeof e[1]&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){let t=e[0][iS];if(void 0!==t)return t}}function ik(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return rE&&q.debug.error(t,"Failed to get xhr response headers",e),{}}return t?t.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return r&&(e[n.toLowerCase()]=r),e},{}):{}}function iI(e){try{return new URL(e,tJ.location.origin).href}catch{return}}function iR(e){try{return new Headers(e)}catch{return}}let iC={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function iA(e,t){let{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:a,enableHTTPTimings:i,tracePropagationTargets:o,onRequestSpanStart:s,onRequestSpanEnd:l}={...iC,...t},u="function"==typeof a?a:e=>!0,c=e=>(function(e,t){let n=tY();if(n){let r,a;try{r=new URL(e,n),a=new URL(n).origin}catch{return!1}let i=r.origin===a;return t?(0,ei.stringMatchesSomePattern)(r.toString(),t)||i&&(0,ei.stringMatchesSomePattern)(r.pathname,t):i}{let n=!!e.match(/^\/(?!\/)/);return t?(0,ei.stringMatchesSomePattern)(e,t):n}})(e,o),d={},p=e.getOptions().propagateTraceparent;n&&nn(t=>{let n=function(e,t,n,r,a){if(!e.fetchData)return;let{method:i,url:o}=e.fetchData,s=(0,rF.hasSpansEnabled)()&&t(o);if(e.endTimestamp){var l,u,c;let t,n=e.fetchData.__span;if(!n)return;let i=r[n];i&&(s&&(function(e,t){if(t.response){(0,rV.setHttpStatus)(e,t.response.status);let n=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:rV.SPAN_STATUS_ERROR,message:"internal_error"});e.end()}(i,e),l=i,u=e,t="object"==typeof(c=a)&&null!==c?c.onRequestSpanEnd:void 0,t?.(l,{headers:u.response?.headers,error:u.error})),delete r[n]);return}let{spanOrigin:d="auto.http.browser",propagateTraceparent:p=!1}="object"==typeof a?a:{spanOrigin:a},f=(0,Q.getClient)(),h=!!(0,em.getActiveSpan)(),m=h||!!f&&tt(f),g=s&&m?r3(function(e,t,n){if(e.startsWith("data:")){let r=nT(e);return{name:`${t} ${r}`,attributes:iv(e,void 0,t,n)}}let r=nb(e),a=r?nv(r):e;return{name:`${t} ${a}`,attributes:iv(e,r,t,n)}}(o,i,d)):new rz.SentryNonRecordingSpan,y=ao(g)&&h?void 0:g;if(s&&!m&&f?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=g.spanContext().spanId,r[g.spanContext().spanId]=g,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=function(e,t,n,r){var a,i;let o=i_({span:n,propagateTraceparent:r}),s=o["sentry-trace"],l=o.baggage,u=o.traceparent;if(!s)return;let c=t.headers||((0,eG.isRequest)(e)?e.headers:void 0);if(!c)return{"sentry-trace":s,...l&&{baggage:l},...u&&{traceparent:u}};if(a=c,"u">typeof Headers&&(0,eG.isInstanceOf)(a,Headers)){let e=new Headers(c);if(e.get("sentry-trace")||e.set("sentry-trace",s),r&&u&&!e.get("traceparent")&&e.set("traceparent",u),l){let t=e.get("baggage");t?ib(t)||e.set("baggage",`${t},${l}`):e.set("baggage",l)}return e}if(Array.isArray(i=c)&&i.every(e=>Array.isArray(e)&&2===e.length&&"string"==typeof e[0])){let e=[...c];e.find(e=>"sentry-trace"===e[0])||e.push(["sentry-trace",s]),r&&u&&!e.find(e=>"traceparent"===e[0])&&e.push(["traceparent",u]);let t=c.find(e=>"baggage"===e[0]&&"string"==typeof e[1]&&ib(e[1]));return l&&!t&&e.push(["baggage",l]),e}{let e="sentry-trace"in c?c["sentry-trace"]:void 0,t="traceparent"in c?c.traceparent:void 0,n="baggage"in c?c.baggage:void 0,a=n?Array.isArray(n)?[...n]:[n]:[],i=n&&(Array.isArray(n)?n.find(e=>ib(e)):ib(n));l&&!i&&a.push(l);let o=Object.assign({},c,{"sentry-trace":e??s,...a.length>0&&{baggage:a.join(",")}});return r&&u&&!t&&(o.traceparent=u),o}}(t,n,(0,rF.hasSpansEnabled)()&&m?y:void 0,p);r&&(e.args[1]=n,n.headers=r)}if(f){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};f.emit("beforeOutgoingRequestSpan",g,t)}return g}(t,u,c,d,{propagateTraceparent:p,onRequestSpanEnd:l});if(n){let r=iI(t.fetchData.url),a=r?nS(r).host:void 0,o=r?nT(r):void 0;n.setAttributes({[np]:o,[nm]:o,"server.address":a}),i&&iN(n,e),s?.(n,{headers:t.headers})}}),r&&nA(t=>{let n=function(e,t,n,r,a,i){let o=e.xhr,s=o?.[nC];if(!o||o.__sentry_own_request__||!s)return;let{url:l,method:u}=s,c=(0,rF.hasSpansEnabled)()&&t(l);
19if(e.endTimestamp){let t=o.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(c&&void 0!==s.status_code&&((0,rV.setHttpStatus)(n,s.status_code),n.end(),i?.(n,{headers:iR(ik(o)),error:e.error})),delete r[t]);return}let d=iI(l),p=d?nS(d):nS(l),f=d?nT(d):void 0,h=nT(nE(l)),m=(0,Q.getClient)(),g=!!(0,em.getActiveSpan)(),y=g||!!m&&tt(m),_=c&&y?r3({name:`${u} ${h}`,attributes:{url:nT(l),type:"xhr","http.method":u,"http.url":f,[nm]:f,"server.address":p?.host,[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.http.browser",[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"http.client",...p?.search&&{"http.query":p?.search},...p?.hash&&{"http.fragment":p?.hash}}}):new rz.SentryNonRecordingSpan,b=ao(_)&&g?void 0:_;return c&&!y&&m?.recordDroppedEvent("no_parent_span","span"),o.__sentry_xhr_span_id__=_.spanContext().spanId,r[o.__sentry_xhr_span_id__]=_,n(l)&&function(e,t,n){let{"sentry-trace":r,baggage:a,traceparent:i}=i_({span:t,propagateTraceparent:n});r&&function(e,t,n,r){let a=e.__sentry_xhr_v3__?.request_headers;if(!a?.["sentry-trace"]&&e.setRequestHeader)try{if(e.setRequestHeader("sentry-trace",t),r&&!a?.traceparent&&e.setRequestHeader("traceparent",r),n){let t=a?.baggage;t&&t.split(",").some(e=>e.trim().startsWith("sentry-"))||e.setRequestHeader("baggage",n)}}catch{}}(e,r,a,i)}(o,(0,rF.hasSpansEnabled)()&&y?b:void 0,a),m&&m.emit("beforeOutgoingRequestSpan",_,e),_}(t,u,c,d,p,l);n&&(i&&iN(n,e),s?.(n,{headers:iR(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}function iN(e,t){let{url:n}=(0,em.spanToJSON)(e).data;if(!n||"string"!=typeof n)return;let r=()=>void setTimeout(a);if(tt(t)){let t=e.end.bind(e);e.end=e=>{let n=e??(0,eV.timestampInSeconds)(),i=!1,o=()=>{i||(i=!0,setTimeout(a),t(n),clearTimeout(s))};r=o;let s=setTimeout(o,300)}}let a=aH("resource",({entries:t})=>{t.forEach(t=>{"resource"===t.entryType&&"initiatorType"in t&&"string"==typeof t.nextHopProtocol&&("fetch"===t.initiatorType||"xmlhttprequest"===t.initiatorType)&&t.name.endsWith(n)&&(e.setAttributes(a8(t)),r())})})}let ix=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function iO(){let e=tJ.navigator;return!!e?.userAgent&&ix.test(e.userAgent)}let iP={...as,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...iC},iM=(e={})=>{let t,n;"enableElementTiming"in e&&(0,q.consoleSandbox)(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let r={name:void 0,source:void 0},a=tJ.document,{enableInp:i,enableLongTask:o,enableLongAnimationFrame:s,_experiments:{enableInteractions:l,enableStandaloneClsSpans:u,enableStandaloneLcpSpans:c},beforeStartSpan:d,idleTimeout:p,finalTimeout:f,childSpanTimeout:h,markBackgroundSpan:m,traceFetch:g,traceXHR:y,trackFetchStreamPerformance:_,shouldCreateSpanForRequest:b,enableHTTPTimings:v,ignoreResourceSpans:S,ignorePerformanceApiSpans:E,instrumentPageLoad:T,instrumentNavigation:w,detectRedirects:k,linkPreviousTrace:I,consistentTraceSampling:R,enableReportPageLoaded:C,onRequestSpanStart:A,onRequestSpanEnd:N}={...iP,...e},x=iO();function O(e,t,i=!0,o){let s="pageload"===t.op,l=t.name,u=d?d(t):t,c=nb(o||tY()),m={...c?.pathname&&{[ng]:c.pathname},...c&&!n_(c)&&{[nm]:c.href},...u.attributes};if(l!==u.name&&(m[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]="custom"),u.attributes=m,!i){let e=(0,eV.dateTimestampInSeconds)();r3({...u,startTime:e}).end(e);return}r.name=u.name,r.source=m[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];let g=al(u,{idleTimeout:p,finalTimeout:f,childSpanTimeout:h,disableAutoFinish:s,beforeSpanEnd:t=>{!function(e,t){let n=a1(),r=(0,eV.browserPerformanceTimeOrigin)();if(!n?.getEntries||!r)return;let{spanStreamingEnabled:a,ignorePerformanceApiSpans:i,ignoreResourceSpans:o}=t,s=a2(r),l=n.getEntries(),{op:u,start_timestamp:c}=(0,em.spanToJSON)(e);
19l.slice(a7).forEach(t=>{let n=a2(t.startTime),r=a2(Math.max(0,t.duration));if("navigation"!==u||!c||!(s+n<c))switch(t.entryType){case"navigation":var a,l,d,p,f,h;let m,g,y;a=e,l=t,d=s,["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(e=>{it(a,l,e,d)}),it(a,l,"secureConnection",d,"TLS/SSL"),it(a,l,"fetch",d,"cache"),it(a,l,"domainLookup",d,"DNS"),p=a,f=l,m=(h=d)+a2(f.requestStart),g=h+a2(f.responseEnd),y=h+a2(f.responseStart),f.responseEnd&&(aZ(p,m,g,{op:"browser.request",name:f.name,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}),aZ(p,y,g,{op:"browser.response",name:f.name,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}}));break;case"mark":case"paint":case"measure":!function(e,t,n,r,a,i){if(function(e){if(e?.entryType==="measure")try{return"Components ⚛"===e.detail.devtools.track}catch{return}}(t)||["mark","measure"].includes(t.entryType)&&(0,ei.stringMatchesSomePattern)(t.name,i))return;let o=ap(!1),s=a+Math.max(n,a2(o?o.requestStart:0)),l=a+n,u=l+r,c={[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"};s!==l&&(c["sentry.browser.measure_happened_before_request"]=!0,c["sentry.browser.measure_start_time"]=s),function(e,t){try{let n=t.detail;if(!n)return;if("object"==typeof n){for(let[t,r]of Object.entries(n))if(r&&(0,eG.isPrimitive)(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(void 0!==r)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if((0,eG.isPrimitive)(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}(c,t),s<=u&&aZ(e,s,u,{name:t.name,op:t.entryType,attributes:c})}(e,t,n,r,s,i);break;case"resource":!function(e,t,n,r,a,i,o){var s,l;if("xmlhttprequest"===t.initiatorType||"fetch"===t.initiatorType)return;let u=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(o?.includes(u))return;let c={[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.resource.browser.metrics"},d=nS(n);d.protocol&&(c["url.scheme"]=d.protocol.split(":").pop()),d.host&&(c["server.address"]=d.host),c["url.same_origin"]=n.includes(nw.location.origin),c[nm]=n,s=t,l=c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]].forEach(([e,t])=>{let n=s[e];null!=n&&("number"==typeof n&&n<0x7fffffff||"string"==typeof n)&&(l[t]=n)});let p={...c,...a8(t)},f=i+r;aZ(e,f,f+a,{name:n.replace(nw.location.origin,""),op:u,attributes:p})}(e,t,t.name,n,r,s,o)}}),a7=Math.max(l.length-1,0),function(e,t){let n=nw.navigator;if(!n)return;let r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute(t?"network.connection.type":"connectionType",r.type),aX(r.rtt)&&(t?e.setAttribute("network.connection.rtt",r.rtt):"pageload"===(0,em.spanToJSON)(e).op&&r$("connection.rtt",r.rtt,"millisecond"))),aX(n.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",n.deviceMemory):e.setAttribute("deviceMemory",`${n.deviceMemory} GB`)),aX(n.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",n.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency)))}(e,a)}(t,{ignoreResourceSpans:S,ignorePerformanceApiSpans:E,spanStreamingEnabled:tt(e)}),iz(e,void 0);let r=(0,Q.getCurrentScope)(),a=r.getPropagationContext();r.setPropagationContext({...a,traceId:g.spanContext().traceId,sampled:(0,em.spanIsSampled)(g),dsc:(0,eR.getDynamicSamplingContextFromSpan)(t)}),s&&(n=void 0)},trimIdleSpanEndTimestamp:!C});function y(){a&&["interactive","complete"].includes(a.readyState)&&(e.emit("idleSpanEnableAutoFinish",g),a.removeEventListener("readystatechange",y))}s&&C&&(n=g),iz(e,g),s&&!C&&a&&(a.addEventListener("readystatechange",y),y())}return{name:"BrowserTracing",setup(e){if(x){nD&&q.debug.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}if(ac(),s&&Y.GLOBAL_OBJ.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?new PerformanceObserver(e=>{let t=(0,em.getActiveSpan)();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=a2((0,eV.browserPerformanceTimeOrigin)()+n.startTime),{start_timestamp:r,op:a}=(0,em.spanToJSON)(t);if("navigation"===a&&r&&e<r)continue;let i=a2(n.duration),o={[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}
19,{invoker:s,invokerType:l,sourceURL:u,sourceFunctionName:c,sourceCharPosition:d}=n.scripts[0];o["browser.script.invoker"]=s,o["browser.script.invoker_type"]=l,u&&(o["code.filepath"]=u),c&&(o["code.function"]=c),-1!==d&&(o["browser.script.source_char_position"]=d),aZ(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:o})}}).observe({type:"long-animation-frame",buffered:!0}):o&&aH("longtask",({entries:e})=>{let t=(0,em.getActiveSpan)();if(!t)return;let{op:n,start_timestamp:r}=(0,em.spanToJSON)(t);for(let a of e){let e=a2((0,eV.browserPerformanceTimeOrigin)()+a.startTime),i=a2(a.duration);"navigation"===n&&r&&e<r||aZ(t,e,e+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}})}}),l&&aH("event",({entries:e})=>{let t=(0,em.getActiveSpan)();if(t){for(let n of e)if("click"===n.name){let e=a2((0,eV.browserPerformanceTimeOrigin)()+n.startTime),r=a2(n.duration),a={name:nL(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.browser.metrics"}},i=tV(n.target);i&&(a.attributes["ui.component_name"]=i),aZ(t,e,e+r,a)}}}),k&&a){let e=()=>{t=(0,eV.timestampInSeconds)()};addEventListener("click",e,{capture:!0}),addEventListener("keydown",e,{capture:!0,passive:!0})}function r(){let t=e[iF];t&&!(0,em.spanToJSON)(t).timestamp&&(nD&&q.debug.log(`[Tracing] Finishing current active span with op: ${(0,em.spanToJSON)(t).op}`),t.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"cancelled"),t.end())}e.on("startNavigationSpan",(n,a)=>{if((0,Q.getClient)()!==e)return;if(a?.isRedirect){nD&&q.debug.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),O(e,{op:"navigation.redirect",...n},!1,a.url);return}t=void 0,r();let i=(0,Q.getCurrentScope)();i.setPropagationContext({traceId:(0,rj.generateTraceId)(),sampleRand:Math.random(),propagationSpanId:(0,rF.hasSpansEnabled)()?void 0:(0,rj.generateSpanId)()}),i.setSDKProcessingMetadata({normalizedRequest:void 0}),O(e,{op:"navigation",...n,parentSpan:null,forceTransaction:!0},!0,a?.url)}),e.on("startPageLoadSpan",(t,n={})=>{if((0,Q.getClient)()!==e)return;r();let a=n.sentryTrace||iU("sentry-trace")||iB("sentry-trace"),i=n.baggage||iU("baggage")||iB("baggage"),o=(0,rZ.propagationContextFromHeaders)(a,i),s=(0,Q.getCurrentScope)();s.setPropagationContext(o),(0,rF.hasSpansEnabled)()||(s.getPropagationContext().propagationSpanId=(0,rj.generateSpanId)()),s.setSDKProcessingMetadata({normalizedRequest:tX()}),O(e,{op:"pageload",...t})}),e.on("endPageloadSpan",()=>{C&&n&&(n.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"reportPageLoaded"),n.end())})},afterAllSetup(e){var n,a,o,s,d;let S;if(x)return;e.addIntegration&&!e.getIntegrationByName?.(ih)&&e.addIntegration(im({ignore:i?[]:["inp"],_experiments:{enableStandaloneClsSpans:u,enableStandaloneLcpSpans:c}}));let E=tY();if("off"!==I&&function(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r="session-storage"===t,a=r?function(){try{let e=tJ.sessionStorage?.getItem(ig);return JSON.parse(e)}catch{return}}():void 0;e.on("spanStart",e=>{if((0,em.getRootSpan)(e)!==e)return;let t=(0,Q.getCurrentScope)().getPropagationContext();a=function(e,t,n){let r=(0,em.spanToJSON)(t),a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:function(){try{let e=Number(r.data?.[eh.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]??n.dsc?.sample_rate);return Number.isNaN(e)?0:e}catch{return 0}}(),sampleRand:n.sampleRand};if(!e)return a;let i=e.spanContext;return i.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(nD&&q.debug.log(`Adding previous_trace \`${JSON.stringify(i)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:i,attributes:{[eh.SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE]:"previous_trace"}}),t.setAttribute("sentry.previous_trace",`${i.traceId}-${i.spanId}-${+!!iy(i)}`)),a)}(a,e,t),r&&function(e){try{tJ.sessionStorage.setItem(ig,JSON.stringify(e))}catch(e){nD&&q.debug.warn("Could not store previous trace in sessionStorage",e)}}(a)});let i=!0;n&&e.on("beforeSampling",e=>
19{if(!a)return;let t=(0,Q.getCurrentScope)(),n=t.getPropagationContext();if(i&&n.parentSpanId){i=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(a.sampleRate),sampled:String(iy(a.spanContext))},sampleRand:a.sampleRand}),e.parentSampled=iy(a.spanContext),e.parentSampleRate=a.sampleRate,e.spanAttributes={...e.spanAttributes,[eh.SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE]:a.sampleRate}})}(e,{linkPreviousTrace:I,consistentTraceSampling:R}),tJ.location){if(T){let t=(0,eV.browserPerformanceTimeOrigin)();iL(e,{name:tJ.location.pathname,startTime:t?t/1e3:void 0,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.browser"}})}w&&nx(({to:n,from:r})=>{var a,i;let o,s;if(void 0===r&&E?.indexOf(n)!==-1){E=void 0;return}E=void 0;let l=nb(n),u=e[iF],c=u&&k&&(a=u,i=t,o=(0,em.spanToJSON)(a),!((s=(0,eV.dateTimestampInSeconds)())-o.start_timestamp>1.5)&&(!i||!(s-i<=1.5)));iD(e,{name:l?.pathname||tJ.location.pathname,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.browser"}},{url:n,isRedirect:c})})}m&&(tJ.document?tJ.document.addEventListener("visibilitychange",()=>{let e=(0,em.getActiveSpan)();if(!e)return;let t=(0,em.getRootSpan)(e);if(tJ.document.hidden&&t){let e="cancelled",{op:n,status:r}=(0,em.spanToJSON)(t);nD&&q.debug.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:rV.SPAN_STATUS_ERROR,message:e}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):nD&&q.debug.warn("[Tracing] Could not set up background tab detection due to lack of global document")),l&&(n=e,a=p,o=f,s=h,d=r,tJ.document&&addEventListener("click",()=>{let e="ui.action.click",t=function(e){return e[iF]}(n);if(t&&["navigation","pageload"].includes((0,em.spanToJSON)(t).op)){nD&&q.debug.warn(`[Tracing] Did not create ${e} span because a pageload or navigation span is in progress.`);return}if(S&&(S.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,"interactionInterrupted"),S.end(),S=void 0),!d.name){nD&&q.debug.warn(`[Tracing] Did not create ${e} transaction because _latestRouteName is missing.`);return}S=al({name:d.name,op:e,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:d.source||"url"}},{idleTimeout:a,finalTimeout:o,childSpanTimeout:s})},{capture:!0})),iA(e,{traceFetch:g,traceXHR:y,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:b,enableHTTPTimings:v,onRequestSpanStart:A,onRequestSpanEnd:N}),_&&e.addIntegration(io())}}};function iL(e,t,n){e.emit("startPageLoadSpan",t,n),(0,Q.getCurrentScope)().setTransactionName(t.name);let r=e[iF];return r&&e.emit("afterStartPageLoadSpan",r),r}function iD(e,t,n){let{url:r,isRedirect:a}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:a,url:r}),e.emit("startNavigationSpan",t,{isRedirect:a,url:r});let i=(0,Q.getCurrentScope)();return i.setTransactionName(t.name),r&&!a&&i.setSDKProcessingMetadata({normalizedRequest:{...tX(),url:r}}),e[iF]}function iU(e){let t=tJ.document,n=t?.querySelector(`meta[name=${e}]`);return n?.getAttribute("content")||void 0}function iB(e){let t=tJ.performance?.getEntriesByType?.("navigation")[0],n=t?.serverTiming?.find(t=>t.name===e);return n?.description}let iF="_sentry_idleSpan";function iz(e,t){(0,ed.addNonEnumerableProperty)(e,iF,t)}function ij(e){try{return new URL(e,nw.location.origin).toString()}catch{return e}}let i$=Y.GLOBAL_OBJ,iH=null,iW=new Map,iG=new Map;function iq(e){let t=e.split("/").filter(Boolean),n=0;for(let e of t)if(e.startsWith(":")){let t=e.substring(1);t.endsWith("*?")?n+=1e3:t.endsWith("*")?n+=100:n+=10}return t.length>0&&(n+=1/t.length),n}function iY(e){if(iW.has(e))return iW.get(e)??null;try{let t=new RegExp(e);return iW.set(e,t),t}catch(t){return rD&&q.debug.warn("Could not compile regex",{regexString:e,error:t}),null}}function iV(){if(!i$?._sentryRouteManifest||"string"!=typeof i$._sentryRouteManifest)return null;let e=i$._sentryRouteManifest;if(iH&&C===e)return iH;iW.clear(),iG.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return iH=t,C=e,t}catch{return rD&&q.debug.warn("Could not extract route manifest"),null}}let iJ=e=>{let t=iV();if(!t)return;let n=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(iG.has(n))return iG.get(n);let{staticRoutes:r,dynamicRoutes:a}=t;if(!Array.isArray(r)||!Array.isArray(a))return;let i=(function(e,t,n){let r=[];if(t.some(t=>t.path===e))return r;for(let t of n)if(t.regex){let n=iY(t.regex);n?.test(e)&&r.push(t.path)}if(!e.startsWith("/:")){for(let t of n)if(t.hasOptionalPrefix&&t.regex){let n="/"===e?"/SENTRY_OPTIONAL_PREFIX":`/SENTRY_OPTIONAL_PREFIX${e}`,a=iY(t.regex);a?.test(n)&&r.push(t.path)}}return r})(n,r,a).sort((e,t)=>
19iq(e)-iq(t))[0];return iG.set(n,i),i};function iK(e){return e.length>1&&e.endsWith("/")?e.slice(0,-1):e}function iQ(e,t,n){e.setAttributes({[ng]:t,[nm]:ij(n)})}let iX="incomplete-app-router-transaction",iZ="router-patch",i0={current:void 0},i1=Y.GLOBAL_OBJ,i2=Y.GLOBAL_OBJ;function i3(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let i4=new WeakSet;function i5(e,t,n){i4.has(t)||(i4.add(t),["back","forward","push","replace"].forEach(r=>{t?.[r]&&(t[r]=new Proxy(t[r],{apply(t,a,i){if("router-patch"!==iZ)return t.apply(a,i);let o=iX,s={[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"},l=i[0],u=G.default.env._sentryBasePath??i2._sentryBasePath,c=u&&"string"==typeof l&&!l.startsWith(u)?`${u}${l}`:l;"push"===r?(o=iK(i3(c)),s["navigation.type"]="router.push"):"replace"===r?(o=iK(i3(c)),s["navigation.type"]="router.replace"):"back"===r?s["navigation.type"]="router.back":"forward"===r&&(s["navigation.type"]="router.forward");let d=iJ(o),p="back"===r||"forward"===r?void 0:ij(c);return n.current=iD(e,{name:d??o,attributes:{...s,[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:d?"route":"url",...d&&{[ny]:d}}},p?{url:p}:void 0),t.apply(a,i)}}))}))}var i6=e.i(203828);let i8=i6.default.events?i6.default:i6.default.default;function i7(e={}){let t=iM({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){let[n,{headers:r}]=t;return r?.get("next-router-prefetch")&&n?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:n=!0,instrumentNavigation:r=!0}=e;return{...t,afterAllSetup(e){!iO()&&(r&&function(e){if(tJ.document.getElementById("__NEXT_DATA__"))"false"!==G.default.env._sentryHasPagesRouter&&i8.events.on("routeChangeStart",t=>{let n,r,a=nE(t),i=function(e){let t=tJ.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let n,r,a,i=(n=t.split("/"),r="",n[n.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(n.pop(),r="(?:/(.+?))?"),a=n.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/"),RegExp(`^${a}${r}(?:/)?$`));return e.match(i)})}(a);i?(n=i,r="route"):(n=a,r="url"),iD(e,{name:n,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.pages_router_instrumentation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r,..."route"===r&&{[ny]:n}}},{url:ij(t)})});else{let t,n,r;A=(t,n)=>{let r=G.default.env._sentryBasePath??i2._sentryBasePath,a=r&&!t.startsWith(r)?`${r}${t}`:t,i=iK(new URL(a,tJ.location.href).pathname),o=iJ(i),s=o??i;"router-patch"===iZ&&(iZ="transition-start-hook");let l=i0.current;l?(l.updateName(s),l.setAttributes({"navigation.type":`router.${n}`,[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:o?"route":"url",...o&&{[ny]:o}}),iQ(l,i,a),i0.current=void 0):iD(e,{name:s,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:o?"route":"url","navigation.type":`router.${n}`,...o&&{[ny]:o}}},{url:ij(a)})},tJ.addEventListener("popstate",()=>{let t=iK(tJ.location.pathname),n=iJ(t);i0.current?.isRecording()?(i0.current.updateName(n??t),i0.current.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,n?"route":"url"),n&&i0.current.setAttribute(ny,n),iQ(i0.current,t,tJ.location.href)):i0.current=iD(e,{name:n??t,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n?"route":"url","navigation.type":"browser.popstate",...n&&{[ny]:n}}},{url:ij(t)})}),t=!1,n=0,r=setInterval(()=>{n++;let a=i1?.next?.router??i1?.nd?.router;t||n>500?clearInterval(r):a&&(clearInterval(r),t=!0,i5(e,a,i0),["nd","next"].forEach(t=>{let n=i1[t];n&&(i1[t]=new Proxy(n,{set:(t,n,r)=>("router"===n&&"object"==typeof r&&null!==r&&i5(e,r,i0),t[n]=r,!0)}))}))},20)}}(e),t.afterAllSetup(e),n&&function(e){if(tJ.document.getElementById("__NEXT_DATA__"))!function(e){let{route:t,params:n,sentryTrace:r,baggage:a}=function(){let e,t=tJ.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{rD&&q.debug.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let n={},{page:r,query:a,props:i}=e;return n.route=r,n.params=a,i?.pageProps&&(n.sentryTrace=i.pageProps._sentryTraceData,n.baggage=i.pageProps._sentryBaggage),n}(),i=(0,rK.parseBaggageHeader)(a),o=t||tJ.location.pathname;i?.["sentry-transaction"]&&"/_error"===o&&(o=(o=i["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let s=(0,eV.browserPerformanceTimeOrigin)();iL(e,{name:o,startTime:s?s/1e3:void 0,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.pages_router_instrumentation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:t?"route":"url",...t&&{[ny]:t},...n&&{...n}}},{sentryTrace:r,baggage:a})}(e);else{let t,n,r;n=iJ(t=iK(tJ.location.pathname)),iL(e,{name:n??t,startTime:(r=(0,eV.browserPerformanceTimeOrigin)())?r/1e3:void 0,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.app_router_instrumentation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n?"route":"url",...n&&{[ny]:n}}})}}(e))}}}let i9=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function oe(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let a=r>=0?e[r]:"/";a&&(t=`${a}/${t}`,n="/"===a.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--;)e.unshift("..");return e})(t.split("/").filter(e=>!!e),!n).join("/"),(n?"/":"")+t||"."}function ot(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 on=(e={})=>{let t=e.root,n=e.prefix||"app:///",r="window"in Y.GLOBAL_OBJ&&!!Y.GLOBAL_OBJ.window,a=e.iteratee||function({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let a=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),i=/^\//.test(r.filename);if(e){if(t){let e=r.filename;0===e.indexOf(t)&&(r.filename=e.replace(t,n))}}else if(a||i){let e,i,o=a?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,s=t?function(e,t){e=oe(e).slice(1),t=oe(t).slice(1);let n=ot(e.split("/")),r=ot(t.split("/")),a=Math.min(n.length,r.length),i=a;for(let e=0;e<a;e++)if(n[e]!==r[e]){i=e;break}let o=[];for(let e=i;e<n.length;e++)o.push("..");return(o=o.concat(r.slice(i))).join("/")}(t,o):(e=o.length>1024?`<truncated>${o.slice(-1024)}`:o,(i=i9.exec(e))?i.slice(1):[])[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?.frames?.map(e=>a(e))}}}})}}}catch{return e}}(t)),t}}},or=/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js(:\d+)*$/,oa=new class{constructor(e){this._maxSize=e,this._cache=new Map}get size(){return this._cache.size}get(e){let t=this._cache.get(e);if(void 0!==t)return this._cache.delete(e),this._cache.set(e,t),t}set(e,t){if(this._cache.size>=this._maxSize){let e=this._cache.keys().next().value;this._cache.delete(e)}this._cache.set(e,t)}remove(e){let t=this._cache.get(e);return t&&this._cache.delete(e),t}clear(){this._cache.clear()}keys(){return Array.from(this._cache.keys())}values(){let e=[];return this._cache.forEach(t=>e.push(t)),e}}(100),oi=Y.GLOBAL_OBJ,oo=!1,os=Y.GLOBAL_OBJ;function ol(e){let t,n,r,a,i,o;oo&&(0,q.consoleSandbox)(()=>{console.warn("[@sentry/nextjs] You are calling `Sentry.init()` more than once on the client. This can happen if you have both a `sentry.client.config.ts` and a `instrumentation-client.ts` file with `Sentry.init()` calls. It is recommended to call `Sentry.init()` once in `instrumentation-client.ts`.")}),oo=!0,!rD&&e.debug&&(0,q.consoleSandbox)(()=>{console.warn("[@sentry/nextjs] You have enabled `debug: true`, but Sentry debug logging was removed from your bundle (likely via `withSentryConfig({ disableLogger: true })` / `webpack.treeshake.removeDebugLogging: true`). Set that option to `false` to see Sentry debug output.")}),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&function(){tJ.document&&function(e){let t=iJ(e)||e,n=oa.get(t);if(void 0!==n)return n;let r=iV();if(!r?.isrRoutes||!Array.isArray(r.isrRoutes)||0===r.isrRoutes.length)return oa.set(t,!1),!1;let a=r.isrRoutes.includes(t);return oa.set(t,a),a}(tJ.location.pathname)&&(e("sentry-trace"),e("baggage"));function e(e){try{let t=tJ.document.querySelector(`meta[name="${e}"]`);t&&t.remove()}catch{}}}();let s={environment:e.environment||G.default.env.SENTRY_ENVIRONMENT||((t=G.default.env.NEXT_PUBLIC_VERCEL_ENV)?`vercel-${t}`:void 0)||"production",defaultIntegrations:(n=rA(e),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&n.push(i7()),r=os._sentryRewriteFramesAssetPrefixPath||"",a=G.default.env._sentryAssetPrefix||os._sentryAssetPrefix,i=G.default.env._sentryBasePath||os._sentryBasePath,o="true"===G.default.env._experimentalThirdPartyOriginStackFrames||"true"===os._experimentalThirdPartyOriginStackFrames,n.push((({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:n,experimentalThirdPartyOriginStackFrames:r})=>({...on({iteratee:a=>{if(r){let n="u">typeof window&&window.location?window.location.origin:"";if(a.filename?.startsWith(n)&&!a.filename.endsWith(".js"))return a;
19if(e)a.filename?.startsWith(e)&&(a.filename=a.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(a.filename);e===n&&(a.filename=a.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(a.filename);a.filename=a.filename?.replace(e,"app://").replace(n,"")}catch{}return r?a.filename?.includes("/_next")&&(a.filename=decodeURI(a.filename)):a.filename?.startsWith("app:///_next")&&(a.filename=decodeURI(a.filename)),a.filename?.match(or)&&(a.in_app=!1),a}}),name:"NextjsClientStackFrameNormalization"}))({assetPrefix:a,basePath:i,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:o})),n),release:G.default.env._sentryRelease||os._sentryRelease,...e};!function(e){let t=G.default.env._sentryRewritesTunnelPath||oi._sentryRewritesTunnelPath;if(t&&e.dsn){let n=(0,eT.dsnFromString)(e.dsn);if(!n)return;let r=n.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(r){let a=r[1],i=r[2],o=`${t}?o=${a}&p=${n.projectId}`;i&&(o+=`&r=${i}`),e.tunnel=o,rD&&q.debug.log(`Tunneling events to "${o}"`)}else rD&&q.debug.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(s),J(s,"nextjs",["nextjs","react"]),s.ignoreSpans=[...s.ignoreSpans||[],/^\/404$/,RegExp(`^${iX}$`)];let l=rM(s),u=(e,t)=>rB(t?.originalException)||e.exception?.values?.[0]?.value==="NEXT_REDIRECT"?null:e;u.id="NextRedirectErrorFilter",(0,K.addEventProcessor)(u);try{(0,Q.getGlobalScope)().setTag("turbopack",!0)}catch{}return l}function ou(e,t={},n=(0,Q.getCurrentScope)()){let{message:r,name:a,email:i,url:o,source:s,associatedEventId:l,tags:u}=e,c={contexts:{feedback:{contact_email:i,name:a,message:r,url:o,source:s,associated_event_id:l}},type:"feedback",level:"info",tags:u},d=n?.getClient()||(0,Q.getClient)();return d&&d.emit("beforeSendFeedback",c,t),n.captureEvent(c,t)}e.s([],123641),e.i(123641),e.s([],607627),e.i(607627);let oc=Y.GLOBAL_OBJ,od=oc.document,op=oc.navigator,of="Report a Bug",oh="Cancel",om="Send Bug Report",og="Confirm",oy="Report a Bug",o_="[email protected]",ob="Email",ov="What's the bug? What did you expect?",oS="Description",oE="Your Name",oT="Name",ow="Thank you for your report!",ok="(required)",oI="Add a screenshot",oR="Remove screenshot",oC="Highlight",oA="Hide",oN="Remove",ox="Unable to submit feedback with empty message",oO="No client setup, cannot send feedback.",oP="Unable to determine if Feedback was correctly sent.",oM="Unable to send feedback. This could be because this domain is not in your list of allowed domains.",oL="Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.",oD={ERROR_EMPTY_MESSAGE:ox,ERROR_NO_CLIENT:oO,ERROR_TIMEOUT:oP,ERROR_FORBIDDEN:oM,ERROR_GENERIC:oL};function oU(e,t){return t?.[e]??oD[e]}let oB=(e,t={includeReplay:!0})=>{let n=t.errorMessages;if(!e.message)throw Error(oU("ERROR_EMPTY_MESSAGE",n));let r=(0,Q.getClient)();if(!r)throw Error(oU("ERROR_NO_CLIENT",n));e.tags&&Object.keys(e.tags).length&&(0,Q.getCurrentScope)().setTags(e.tags);let a=ou({source:"api",url:tY(),...e},t);return new Promise((e,t)=>{let i=setTimeout(()=>{o(),t(oU("ERROR_TIMEOUT",n))},3e4),o=r.on("afterSendEvent",(r,s)=>{if(r.event_id===a)return(clearTimeout(i),o(),s?.statusCode&&s.statusCode>=200&&s.statusCode<300)?e(a):s?.statusCode===403?t(oU("ERROR_FORBIDDEN",n)):t(oU("ERROR_GENERIC",n))})})},oF="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function oz(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function oj(e,t){return Object.entries(t).forEach(([t,n])=>{e.setAttributeNS(null,t,n)}),e}let o$="rgba(88, 74, 192, 1)",oH={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:o$,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},oW={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackgroun
19d:o$,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function oG(e){return`
20  --foreground: ${e.foreground};
21  --background: ${e.background};
22  --accent-foreground: ${e.accentForeground};
23  --accent-background: ${e.accentBackground};
24  --success-color: ${e.successColor};
25  --error-color: ${e.errorColor};
26  --border: ${e.border};
27  --box-shadow: ${e.boxShadow};
28  --outline: ${e.outline};
29  --interactive-filter: ${e.interactiveFilter};
30  `}function oq({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){let a=od.createElement("style");return a.textContent=`
31:host {
32  --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
33  --font-size: 14px;
34  --z-index: 100000;
35
36  --page-margin: 16px;
37  --inset: auto 0 0 auto;
38  --actor-inset: var(--inset);
39
40  font-family: var(--font-family);
41  font-size: var(--font-size);
42
43  ${"system"!==e?`color-scheme: only ${e};`:""}
44
45  ${oG("dark"===e?{...oW,...t}:{...oH,...n})}
46}
47
48${"system"===e?`
49@media (prefers-color-scheme: dark) {
50  :host {
51    color-scheme: only dark;
52
53    ${oG({...oW,...t})}
54  }
55}`:""}
56`,r&&a.setAttribute("nonce",r),a}let oY=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:r="sentry-feedback",autoInject:a=!0,showBranding:i=!0,isEmailRequired:o=!1,isNameRequired:s=!1,showEmail:l=!0,showName:u=!0,enableScreenshot:c=!0,useSentryUser:d={email:"email",name:"username"},tags:p,styleNonce:f,scriptNonce:h,colorScheme:m="system",themeLight:g={},themeDark:y={},addScreenshotButtonLabel:_=oI,cancelButtonLabel:b=oh,confirmButtonLabel:v=og,emailLabel:S=ob,emailPlaceholder:E=o_,formTitle:T=oy,isRequiredLabel:w=ok,messageLabel:k=oS,messagePlaceholder:I=ov,nameLabel:R=oT,namePlaceholder:C=oE,removeScreenshotButtonLabel:A=oR,submitButtonLabel:N=om,successMessageText:x=ow,triggerLabel:O=of,triggerAriaLabel:P="",highlightToolText:M=oC,hideToolText:L=oA,removeHighlightText:D=oN,errorEmptyMessageText:U=ox,errorNoClientText:B=oO,errorTimeoutText:F=oP,errorForbiddenText:z=oM,errorGenericText:j=oL,onFormOpen:$,onFormClose:H,onSubmitSuccess:W,onSubmitError:G,onFormSubmitted:Y}={})=>{let V={id:r,autoInject:a,showBranding:i,isEmailRequired:o,isNameRequired:s,showEmail:l,showName:u,enableScreenshot:c,useSentryUser:d,tags:p,styleNonce:f,scriptNonce:h,colorScheme:m,themeDark:y,themeLight:g,triggerLabel:O,triggerAriaLabel:P,cancelButtonLabel:b,submitButtonLabel:N,confirmButtonLabel:v,formTitle:T,emailLabel:S,emailPlaceholder:E,messageLabel:k,messagePlaceholder:I,nameLabel:R,namePlaceholder:C,successMessageText:x,isRequiredLabel:w,addScreenshotButtonLabel:_,removeScreenshotButtonLabel:A,highlightToolText:M,hideToolText:L,removeHighlightText:D,errorEmptyMessageText:U,errorNoClientText:B,errorTimeoutText:F,errorForbiddenText:z,errorGenericText:j,onFormClose:H,onFormOpen:$,onSubmitError:G,onSubmitSuccess:W,onFormSubmitted:Y},J=null,K=null,Q=[],X=e=>{if(!J){let t=od.createElement("div");t.id=String(e.id),od.body.appendChild(t),J=t.attachShadow({mode:"open"}),K=oq(e),J.appendChild(K)}return J},Z=async r=>{let a,i,o=r.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(op.userAgent)||/Macintosh/i.test(op.userAgent)&&op.maxTouchPoints&&op.maxTouchPoints>1)&&!!isSecureContext;try{a=(t?t():await e("feedbackModalIntegration",h))(),en(a)}catch{throw oF&&q.debug.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),Error("[Feedback] Missing feedback modal integration!")}
56try{let t=o?n?n():await e("feedbackScreenshotIntegration",h):void 0;t&&(i=t(),en(i))}catch{oF&&q.debug.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}let s={ERROR_EMPTY_MESSAGE:r.errorEmptyMessageText,ERROR_NO_CLIENT:r.errorNoClientText,ERROR_TIMEOUT:r.errorTimeoutText,ERROR_FORBIDDEN:r.errorForbiddenText,ERROR_GENERIC:r.errorGenericText},l=a.createDialog({options:{...r,onFormClose:()=>{l?.close(),r.onFormClose?.()},onFormSubmitted:()=>{l?.close(),r.onFormSubmitted?.()}},screenshotIntegration:i,sendFeedback:(e,t)=>oB(e,{includeReplay:!0,...t,errorMessages:s}),shadow:X(r)});return l},ee=(e,t={})=>{let n=oz(V,t),r="string"==typeof e?od.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!r)throw oF&&q.debug.error("[Feedback] Unable to attach to target element"),Error("Unable to attach to target element");let a=null,i=async()=>{a||(a=await Z({...n,onFormSubmitted:()=>{a?.removeFromDom(),n.onFormSubmitted?.()}})),a.appendToDom(),a.open()};r.addEventListener("click",i);let o=()=>{Q=Q.filter(e=>e!==o),a?.removeFromDom(),a=null,r.removeEventListener("click",i)};return Q.push(o),o},et=(e={})=>
56{let t=oz(V,e),n=X(t),r=function({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){let a,i,o,s,l,u,c,d,p=od.createElement("button");if(p.type="button",p.className="widget__actor",p.ariaHidden="false",p.ariaLabel=t||e||of,p.appendChild((i=oj((a=e=>oc.document.createElementNS("http://www.w3.org/2000/svg",e))("svg"),{width:"20",height:"20",viewBox:"0 0 20 20",fill:"var(--actor-color, var(--foreground))"}),o=oj(a("g"),{clipPath:"url(#clip0_57_80)"}),s=oj(a("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"}),i.appendChild(o).appendChild(s),l=a("defs"),u=oj(a("clipPath"),{id:"clip0_57_80"}),c=oj(a("rect"),{width:"20",height:"20",fill:"white"}),u.appendChild(c),l.appendChild(u),i.appendChild(l).appendChild(u).appendChild(c),i)),e){let t=od.createElement("span");t.appendChild(od.createTextNode(e)),p.appendChild(t)}let f=((d=od.createElement("style")).textContent=`
57.widget__actor {
58  position: fixed;
59  z-index: var(--z-index);
60  margin: var(--page-margin);
61  inset: var(--actor-inset);
62
63  display: flex;
64  align-items: center;
65  gap: 8px;
66  padding: 16px;
67
68  font-family: inherit;
69  font-size: var(--font-size);
70  font-weight: 600;
71  line-height: 1.14em;
72  text-decoration: none;
73
74  background: var(--actor-background, var(--background));
75  border-radius: var(--actor-border-radius, 1.7em/50%);
76  border: var(--actor-border, var(--border));
77  box-shadow: var(--actor-box-shadow, var(--box-shadow));
78  color: var(--actor-color, var(--foreground));
79  fill: var(--actor-color, var(--foreground));
80  cursor: pointer;
81  opacity: 1;
82  transition: transform 0.2s ease-in-out;
83  transform: translate(0, 0) scale(1);
84}
85.widget__actor[aria-hidden="true"] {
86  opacity: 0;
87  pointer-events: none;
88  visibility: hidden;
89  transform: translate(0, 16px) scale(0.98);
90}
91
92.widget__actor:hover {
93  background: var(--actor-hover-background, var(--background));
94  filter: var(--interactive-filter);
95}
96
97.widget__actor svg {
98  width: 1.14em;
99  height: 1.14em;
100}
101
102@media (max-width: 600px) {
103  .widget__actor span {
104    display: none;
105  }
106}
107`,r&&d.setAttribute("nonce",r),d);return{el:p,appendToDom(){n.appendChild(f),n.appendChild(p)},removeFromDom(){p.remove(),f.remove()},show(){p.ariaHidden="false"},hide(){p.ariaHidden="true"}}}({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:f});return ee(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){eZ()&&V.autoInject&&("loading"===od.readyState?od.addEventListener("DOMContentLoaded",()=>et().appendToDom()):et().appendToDom())},attachTo:ee,createWidget(e={}){let t=et(oz(V,e));return t.appendToDom(),t},createForm:async(e={})=>Z(oz(V,e)),setTheme(e){if(V.colorScheme=e,J){let e=oq(V);K?J.replaceChild(e,K):J.prepend(e),K=e}},remove(){J&&(J.parentElement?.remove(),J=null,K=null),Q.forEach(e=>e()),Q=[]}}};function oV(){let e=(0,Q.getClient)();return e?.getIntegrationByName("Feedback")}var oJ,oK,oQ,oX,oZ,o0,o1,o2={},o3=[],o4=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,o5=Array.isArray;function o6(e,t){for(var n in t)e[n]=t[n];return e}function o8(e){var t=e.parentNode;t&&t.removeChild(e)}function o7(e,t,n){var r,a,i,o={};for(i in t)"key"==i?r=t[i]:"ref"==i?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?oJ.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===o[i]&&(o[i]=e.defaultProps[i]);return o9(e,o,r,a,null)}function o9(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++oQ:a,__i:-1,__u:0};return null==a&&null!=oK.vnode&&oK.vnode(i),i}function se(e){return e.children}function st(e,t){this.props=e,this.context=t}function sn(e,t){if(null==t)return e.__?sn(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?sn(e):null}function sr(e){(!e.__d&&(e.__d=!0)&&oX.push(e)&&!sa.__r++||oZ!==oK.debounceRendering)&&((oZ=oK.debounceRendering)||o0)(sa)}function sa(){var e,t,n,r=[],a=[];for(oX.sort(o1);e=oX.shift();)e.__d&&(n=oX.length,t=function(e,t,n){var r,a=e.__v,i=a.__e,o=e.__P;if(o)return(r=o6({},a)).__v=a.__v+1,oK.vnode&&oK.vnode(r),sc(o,r,a,e.__n,void 0!==o.ownerSVGElement,32&a.__u?[i]:null,t,null==i?sn(a):i,!!(32&a.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(r),r}(e,r,a)||t,0===n||oX.length>n?(sd(r,t,a),a.length=r.length=0,t=void 0,oX.sort(o1)):t&&oK.__c&&oK.__c(t,o3));t&&sd(r,t,a),sa.__r=0}function si(e,t,n,r,a,i,o,s,l,u,c){var d,p,f,h,m,g=r&&r.__k||o3,y=t.length;for(n.__d=l,function(e,t,n){var r,a,i,o,s,l=t.length,u=n.length,c=u,d=0;for(e.__k=[],r=0;r<l;r++)null!=(a=e.__k[r]=null==(a=t[r])||"boolean"==typeof a||"function"==typeof a?null:"string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?o9(null,a,null,null,a):o5(a)?o9(se,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?o9(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a)?(a.__=e,a.__b=e.__b+1,s=function(e,t,n,r){var a=e.key,i=e.type,o=n-1,s=n+1,l=t[n];if(null===l||l&&a==l.key&&i===l.type)return n;if(r>+(null!=l&&0==(131072&l.__u)))for(;o>=0||s<t.length;){if(o>=0){if((l=t[o])&&0==(131072&l.__u)&&a==l.key&&i===l.type)return o;o--}
vendor: 5,987 bytes, line 107
107if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&a==l.key&&i===l.type)return s;s++}}return -1}(a,n,o=r+d,c),a.__i=s,i=null,-1!==s&&(c--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof a.type&&(a.__u|=65536)):s!==o&&(s===o+1?d++:s>o?c>l-o?d+=s-o:d--:d=s<o&&s==o-1?s-o:0,s!==r+d&&(a.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&(i.__e==e.__d&&(e.__d=sn(i)),sf(i,i,!1),n[r]=null,c--);if(c)for(r=0;r<u;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=sn(i)),sf(i,i))}(n,t,g),l=n.__d,d=0;d<y;d++)null!=(f=n.__k[d])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?o2:g[f.__i]||o2,f.__i=d,sc(e,f,p,a,i,o,s,l,u,c),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&sp(p.ref,null,f),c.push(f.ref,f.__c||h,f)),null==m&&null!=h&&(m=h),65536&f.__u||p.__k===f.__k?l=function e(t,n,r){var a,i;if("function"==typeof t.type){for(a=t.__k,i=0;a&&i<a.length;i++)a[i]&&(a[i].__=t,n=e(a[i],n,r));return n}t.__e!=n&&(r.insertBefore(t.__e,n||null),n=t.__e);do n=n&&n.nextSibling;while(null!=n&&8===n.nodeType)return n}(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:h&&(l=h.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=m}function so(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||o4.test(t)?n:n+"px"}function ss(e,t,n,r,a){var i;n:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||so(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||so(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?su:sl,i)):e.removeEventListener(t,i?su:sl,i);else{if(a)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break n}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function sl(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(oK.event?oK.event(e):e)}}function su(e){if(this.l)return this.l[e.type+!0](oK.event?oK.event(e):e)}function sc(e,t,n,r,a,i,o,s,l,u){var c,d,p,f,h,m,g,y,_,b,v,S,E,T,w,k=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),i=[s=t.__e=n.__e]),(c=oK.__b)&&c(t);n:if("function"==typeof k)try{if(y=t.props,_=(c=k.contextType)&&r[c.__c],b=c?_?_.props.value:c.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:("prototype"in k&&k.prototype.render?t.__c=d=new k(y,b):(t.__c=d=new st(y,b),d.constructor=k,d.render=sh),_&&_.sub(d),d.props=y,d.state||(d.state={}),d.context=b,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=k.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=o6({},d.__s)),o6(d.__s,k.getDerivedStateFromProps(y,d.__s))),f=d.props,h=d.state,d.__v=t,p)null==k.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==k.getDerivedStateFromProps&&y!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,b),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,b)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=y,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),v=0;v<d._sb.length;v++)d.__h.push(d._sb[v]);d._sb=[],d.__h.length&&o.push(d);break n}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,b),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(f,h,m)})}if(d.context=b,d.props=y,d.__P=e,d.__e=!1,S=oK.__r,E=0,"prototype"in k&&k.prototype.render){for(d.state=d.__s,d.__d=!1,S&&S(t),c=d.render(d.props,d.state,d.context),T=0;T<d._sb.length;T++)d.__h.push(d._sb[T]);d._sb=[]}else do d.__d=!1,S&&S(t),c=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++E<25)d.state=d.__s,null!=d.getChildContext&&(r=o6(o6({},r),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(m=d.getSnapshotBeforeUpdate(f,h)),si(e,o5(w=null!=c&&c.type===se&&null==c.key?c.props.children:c)?w:[w],t,n,r,a,i,o,s,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&o.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,l||null!=i?(t.__e=s,t.__u|=l?160:32,i[i.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),oK.__e(e,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,a,i,o,s,l){var u,c,d,p,f,h,m,g=n.props,y=t.props,_=t.type;if("svg"===_&&(a=!0),null!=i){for(u=0;u<i.length;u++)if((f=i[u])&&"setAttribute"in f==!!_&&(_?f.localName===_:3===f.nodeType)){e=f,i[u]=null;break}}if(null==e){if(null===_)return document.createTextNode(y);e=a?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,y.is&&y),i=null,s=!1}if(null===_)g===y||s&&e.data===y||(e.data=y);else{if(i=i&&oJ.call(e.childNodes),g=n.props||o2,!s&&null!=i)for(g={},u=0;u<e.attributes.length;u++)g[(f=e.attributes[u]).name]=f.value;for(u in g)f=g[u],"children"==u||("dangerouslySetInnerHTML"==u?d=f:"key"===u||u in y||ss(e,u,null,f,a));for(u in y)f=y[u],"children"==u?p=f:"dangerouslySetInnerHTML"==u?c=f:"value"==u?h=f:"checked"==u?m=f:"key"===u||s&&"function"!=typeof f||g[u]===f||ss(e,u,f,g[u],a);if(c)s||d&&(c.__html===d.__html||c.__html===e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(d&&(e.innerHTML=""),si(e,o5(p)?p:[p],t,n,r,a&&"foreignObject"!==_,i,o,i?i[0]:n.__k&&sn(n,0),s,l),null!=i)for(u=i.length;u--;)null!=i[u]&&o8(i[u]);s||(u="value",void 0===h||h===e[u]&&("progress"!==_||h)&&("option"!==_||h===g[u])||ss(e,u,h,g[u],!1),u="checked",void 0!==m&&m!==e[u]&&ss(e,u,m,g[u],!1))}return e}(n.__e,t,n,r,a,i,o,l,u);(c=oK.diffed)&&c(t)}function sd(e,t,n){for(var r=0;r<n.length;r++)sp(n[r],n[++r],n[++r]);oK.__c&&oK.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){oK.__e(e,t.__v)}})}
vendor: 1,211 bytes, line 107
107function sp(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){oK.__e(e,n)}}function sf(e,t,n){var r,a;if(oK.unmount&&oK.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||sp(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){oK.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(a=0;a<r.length;a++)r[a]&&sf(r[a],t,n||"function"!=typeof e.type);n||null==e.__e||o8(e.__e),e.__=e.__e=e.__d=void 0}function sh(e,t,n){return this.constructor(e,n)}oJ=o3.slice,oK={__e:function(e,t,n,r){for(var a,i,o;t=t.__;)if((a=t.__c)&&!a.__)try{if((i=a.constructor)&&null!=i.getDerivedStateFromError&&(a.setState(i.getDerivedStateFromError(e)),o=a.__d),null!=a.componentDidCatch&&(a.componentDidCatch(e,r||{}),o=a.__d),o)return a.__E=a}catch(t){e=t}throw e}},oQ=0,st.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=o6({},this.state),"function"==typeof e&&(e=e(o6({},n),this.props)),e&&o6(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),sr(this))},st.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),sr(this))},st.prototype.render=se,oX=[],o0="function"==typeof Promise?Promise.prototype.then.bind(Prom
107ise.resolve()):setTimeout,o1=function(e,t){return e.__v.__b-t.__v.__b},sa.__r=0;var sm,sg,sy,s_,sb=0,sv=[],sS=[],sE=oK,sT=sE.__b,sw=sE.__r,sk=sE.diffed,sI=sE.__c,sR=sE.unmount,sC=sE.__;function sA(e,t){sE.__h&&sE.__h(sg,e,sb||t),sb=0;var n=sg.__H||(sg.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:sS}),n.__[e]}function sN(e){return sb=1,sx(sz,e)}function sx(e,t,n){var r=sA(sm++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):sz(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=sg,!sg.u)){var a=function(e,t,n){if(!r.__c.__H)return!0;var a=r.__c.__H.__.filter(function(e){return!!e.__c});if(a.every(function(e){return!e.__N}))return!i||i.call(this,e,t,n);var o=!1;return a.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),!(!o&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};sg.u=!0;var i=sg.shouldComponentUpdate,o=sg.componentWillUpdate;sg.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,a(e,t,n),i=r}o&&o.call(this,e,t,n)},sg.shouldComponentUpdate=a}return r.__N||r.__}function sO(e,t){var n=sA(sm++,4);!sE.__s&&sF(n.__H,t)&&(n.__=e,n.i=t,sg.__h.push(n))}function sP(e,t){var n=sA(sm++,7);return sF(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function sM(e,t){return sb=8,sP(function(){return e},t)}function sL(){for(var e;e=sv.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(sU),e.__H.__h.forEach(sB),e.__H.__h=[]}catch(t){e.__H.__h=[],sE.__e(t,e.__v)}}sE.__b=function(e){sg=null,sT&&sT(e)},sE.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),sC&&sC(e,t)},sE.__r=function(e){sw&&sw(e),sm=0;var t=(sg=e.__c).__H;t&&(sy===sg?(t.__h=[],sg.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=sS,e.__N=e.i=void 0})):(t.__h.forEach(sU),t.__h.forEach(sB),t.__h=[],sm=0)),sy=sg},sE.diffed=function(e){sk&&sk(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==sv.push(t)&&s_===sE.requestAnimationFrame||((s_=sE.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),sD&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);sD&&(t=requestAnimationFrame(n))})(sL)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==sS&&(e.__=e.__V),e.i=void 0,e.__V=sS})),sy=sg=null},sE.__c=function(e,t){t.some(function(e){try{e.__h.forEach(sU),e.__h=e.__h.filter(function(e){return!e.__||sB(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],sE.__e(n,e.__v)}}),sI&&sI(e,t)},sE.unmount=function(e){sR&&sR(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{sU(e)}catch(e){t=e}}),n.__H=void 0,t&&sE.__e(t,n.__v))};var sD="function"==typeof requestAnimationFrame;function sU(e){var t=sg,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),sg=t}function sB(e){var t=sg;e.__c=e.__(),sg=t}function sF(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function sz(e,t){return"function"==typeof t?t(e):t}let sj=Object.defineProperty({__proto__:null,useCallback:sM,useContext:function(e){var t=sg.context[e.__c],n=sA(sm++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(sg)),t.props.value):e.__},useDebugValue:function(e,t){sE.useDebugValue&&sE.useDebugValue(t?t(e):e)},useEffect:function(e,t){var n=sA(sm++,3);!sE.__s&&sF(n.__H,t)&&(n.__=e,n.i=t,sg.__H.__h.push(n))},useErrorBoundary:function(e){var t=sA(sm++,10),n=sN();return t.__=e,sg.componentDidCatch||(sg.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:function(){var e=sA(sm++,11);if(!e.__){for(var t=sg.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__},useImperativeHandle:function(e,t,n){sb=6,sO(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))},useLayoutEffect:sO,useMemo:sP,useReducer:sx,useRef:function(e){return sb=5,sP(function(){return{current:e}},[])},useState:sN},Symbol.toStringTag,{value:"Module"});function s$({options:e}){let t=sP(()=>{let e,t;return{__html:(e=oj(od.createElementNS("http://www.w3.org/2000/svg","svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),t=oj(od.createElementNS("http://www.w3.org/2000/svg","path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"}),e.appendChild(t),e).outerHTML}},[]);return o7("h2",{class:"dialog__header"},o7("span",{class:"dialog__title"},e.formTitle),e.showBranding?o7("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function sH(e,t){let n=e.get(t);return"string"==typeof n?n.trim():""}function sW({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:a,onSubmitSuccess:i,onSubmitError:o,showEmail
107:s,showName:l,screenshotInput:u}){let{tags:c,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:p,cancelButtonLabel:f,emailLabel:h,emailPlaceholder:m,isEmailRequired:g,isNameRequired:y,messageLabel:_,messagePlaceholder:b,nameLabel:v,namePlaceholder:S,submitButtonLabel:E,isRequiredLabel:T}=e,[w,k]=sN(!1),[I,R]=sN(null),[C,A]=sN(!1),N=u?.input,[x,O]=sN(null),P=sM(e=>{O(e),A(!1)},[]),M=sM(e=>{var t;let n,r=(n=[],(t={emailLabel:h,isEmailRequired:g,isNameRequired:y,messageLabel:_,nameLabel:v}).isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n);return r.length>0?R(`Please enter in the following required fields: ${r.join(", ")}`):R(null),0===r.length},[h,g,y,_,v]);return o7("form",{class:"form",onSubmit:sM(async e=>{k(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target),n=await (u&&C?u.value():void 0),r={name:sH(t,"name"),email:sH(t,"email"),message:sH(t,"message"),attachments:n?[n]:void 0};if(!M(r))return;try{let e=await a({name:r.name,email:r.email,message:r.message,source:"widget",tags:c},{attachments:r.attachments});i(r,e)}catch(t){oF&&q.debug.error(t);let e=t instanceof Error?t:Error(String(t));R(e.message),o(e)}}finally{k(!1)}},[u&&C,i,o])},N&&C?o7(N,{onError:P}):null,o7("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:w},o7("div",{class:"form__top"},I?o7("div",{class:"form__error-container"},I):null,l?o7("label",{for:"name",class:"form__label"},o7(sG,{label:v,isRequiredLabel:T,isRequired:y}),o7("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:S,required:y,type:"text"})):o7("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),s?o7("label",{for:"email",class:"form__label"},o7(sG,{label:h,isRequiredLabel:T,isRequired:g}),o7("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:g,type:"email"})):o7("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),o7("label",{for:"message",class:"form__label"},o7(sG,{label:_,isRequiredLabel:T,isRequired:!0}),o7("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:b,required:!0,rows:5})),N?o7("label",{for:"screenshot",class:"form__label"},o7("button",{class:"btn btn--default",disabled:w,type:"button",onClick:()=>{O(null),A(e=>!e)}},C?p:d),x?o7("div",{class:"form__error-container"},x.message):null):null),o7("div",{class:"btn-group"},o7("button",{class:"btn btn--primary",disabled:w,type:"submit"},E),o7("button",{class:"btn btn--default",disabled:w,type:"button",onClick:r},f))))}function sG({label:e,isRequired:t,isRequiredLabel:n}){return o7("span",{class:"form__label__text"},e,t&&o7("span",{class:"form__label__text--required"},n))}function sq({open:e,onFormSubmitted:t,...n}){let r=n.options,a=sP(()=>{let e,t,n,r,a,i,o,s;return{__html:(t=oj((e=e=>oc.document.createElementNS("http://www.w3.org/2000/svg",e))("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),n=oj(e("g"),{clipPath:"url(#clip0_57_156)"}),r=oj(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),a=oj(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 
10710.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"}),t.appendChild(n).append(a,r),i=e("defs"),o=oj(e("clipPath"),{id:"clip0_57_156"}),s=oj(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"}),o.appendChild(s),i.appendChild(o),t.appendChild(i).appendChild(o).appendChild(s),t).outerHTML}},[]),[i,o]=sN(null),s=sM(()=>{i&&(clearTimeout(i),o(null)),t()},[i]),l=sM((e,r)=>{n.onSubmitSuccess(e,r),o(setTimeout(()=>{t(),o(null)},5e3))},[t]);return o7(se,null,i?o7("div",{class:"success__position",onClick:s},o7("div",{class:"success__content"},r.successMessageText,o7("span",{class:"success__icon",dangerouslySetInnerHTML:a}))):o7("dialog",{class:"dialog",onClick:r.onFormClose,open:e},o7("div",{class:"dialog__position"},o7("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},o7(s$,{options:r}),o7(sW,{...n,onSubmitSuccess:l})))))}let sY=`
108.dialog {
109  position: fixed;
110  z-index: var(--z-index);
111  margin: 0;
112  inset: 0;
113
114  display: flex;
115  align-items: center;
116  justify-content: center;
117  padding: 0;
118  height: 100vh;
119  width: 100vw;
120
121  color: var(--dialog-color, var(--foreground));
122  fill: var(--dialog-color, var(--foreground));
123  line-height: 1.75em;
124
125  background-color: rgba(0, 0, 0, 0.05);
126  border: none;
127  inset: 0;
128  opacity: 1;
129  transition: opacity 0.2s ease-in-out;
130}
131
132.dialog__position {
133  position: fixed;
134  z-index: var(--z-index);
135  inset: var(--dialog-inset);
136  padding: var(--page-margin);
137  display: flex;
138  max-height: calc(100vh - (2 * var(--page-margin)));
139}
140@media (max-width: 600px) {
141  .dialog__position {
142    inset: var(--page-margin);
143    padding: 0;
144  }
145}
146
147.dialog__position:has(.editor) {
148  inset: var(--page-margin);
149  padding: 0;
150}
151
152.dialog:not([open]) {
153  opacity: 0;
154  pointer-events: none;
155  visibility: hidden;
156}
157.dialog:not([open]) .dialog__content {
158  transform: translate(0, -16px) scale(0.98);
159}
160
161.dialog__content {
162  display: flex;
163  flex-direction: column;
164  gap: 16px;
165  padding: var(--dialog-padding, 24px);
166  max-width: 100%;
167  width: 100%;
168  max-height: 100%;
169  overflow: auto;
170
171  background: var(--dialog-background, var(--background));
172  border-radius: var(--dialog-border-radius, 20px);
173  border: var(--dialog-border, var(--border));
174  box-shadow: var(--dialog-box-shadow, var(--box-shadow));
175  transform: translate(0, 0) scale(1);
176  transition: transform 0.2s ease-in-out;
177}
178
179`,sV=`
180.dialog__header {
181  display: flex;
182  gap: 4px;
183  justify-content: space-between;
184  font-weight: var(--dialog-header-weight, 600);
185  margin: 0;
186}
187.dialog__title {
188  align-self: center;
189  width: var(--form-width, 272px);
190}
191
192@media (max-width: 600px) {
193  .dialog__title {
194    width: auto;
195  }
196}
197
198.dialog__position:has(.editor) .dialog__title {
199  width: auto;
200}
201
202
203.brand-link {
204  display: inline-flex;
205}
206.brand-link:focus-visible {
207  outline: var(--outline);
208}
209`,sJ=`
210.form {
211  display: flex;
212  overflow: auto;
213  flex-direction: row;
214  gap: 16px;
215  flex: 1 0;
216}
217
218.form fieldset {
219  border: none;
220  margin: 0;
221  padding: 0;
222}
223
224.form__right {
225  flex: 0 0 auto;
226  display: flex;
227  overflow: auto;
228  flex-direction: column;
229  justify-content: space-between;
230  gap: 20px;
231  width: var(--form-width, 100%);
232}
233
234.dialog__position:has(.editor) .form__right {
235  width: var(--form-width, 272px);
236}
237
238.form__top {
239  display: flex;
240  flex-direction: column;
241  gap: 8px;
242}
243
244.form__error-container {
245  color: var(--error-color);
246  fill: var(--error-color);
247}
248
249.form__label {
250  display: flex;
251  flex-direction: column;
252  gap: 4px;
253  margin: 0px;
254}
255
256.form__label__text {
257  display: flex;
258  gap: 4px;
259  align-items: center;
260}
261
262.form__label__text--required {
263  font-size: 0.85em;
264}
265
266.form__input {
267  font-family: inherit;
268  line-height: inherit;
269  background: transparent;
270  box-sizing: border-box;
271  border: var(--input-border, var(--border));
272  border-radius: var(--input-border-radius, 6px);
273  color: var(--input-color, inherit);
274  fill: var(--input-color, inherit);
275  font-size: var(--input-font-size, inherit);
276  font-weight: var(--input-font-weight, 500);
277  padding: 6px 12px;
278}
279
280.form__input::placeholder {
281  opacity: 0.65;
282  color: var(--input-placeholder-color, inherit);
283  filter: var(--interactive-filter);
284}
285
286.form__input:focus-visible {
287  outline: var(--input-focus-outline, var(--outline));
288}
289
290.form__input--textarea {
291  font-family: inherit;
292  resize: vertical;
293}
294
295.error {
296  color: var(--error-color);
297  fill: var(--error-color);
298}
299`,sK=`
300.btn-group {
301  display: grid;
302  gap: 8px;
303}
304
305.btn {
306  line-height: inherit;
307  border: var(--button-border, var(--border));
308  border-radius: var(--button-border-radius, 6px);
309  cursor: pointer;
310  font-family: inherit;
311  font-size: var(--button-font-size, inherit);
312  font-weight: var(--button-font-weight, 600);
313  padding: var(--button-padding, 6px 16px);
314}
315.btn[disabled] {
316  opacity: 0.6;
317  pointer-events: none;
318}
319
320.btn--primary {
321  color: var(--button-primary-color, var(--accent-foreground));
322  fill: var(--button-primary-color, var(--accent-foreground));
323  background: var(--button-primary-background, var(--accent-background));
324  border: var(--button-primary-border, var(--border));
325  border-radius: var(--button-primary-border-radius, 6px);
326  font-weight: var(--button-primary-font-weight, 500);
327}
328.btn--primary:hover {
329  color: var(--button-primary-hover-color, var(--accent-foreground));
330  fill: var(--button-primary-hover-color, var(--accent-foreground));
331  background: var(--button-primary-hover-background, var(--accent-background));
332  filter: var(--interactive-filter);
333}
334.btn--primary:focus-visible {
335  background: var(--button-primary-hover-background, var(--accent-background));
336  filter: var(--interactive-filter);
337  outline: var(--button-primary-focus-outline, var(--outline));
338}
339
340.btn--default {
341  color: var(--button-color, var(--foreground));
342  fill: var(--button-color, var(--foreground));
343  background: var(--button-background, var(--background));
344  border: var(--button-border, var(--border));
345  border-radius: var(--button-border-radius, 6px);
346  font-weight: var(--button-font-weight, 500);
347}
348.btn--default:hover {
349  color: var(--button-color, var(--foreground));
350  fill: var(--button-color, var(--foreground));
351  background: var(--button-hover-background, var(--background));
352  filter: var(--interactive-filter);
353}
354.btn--default:focus-visible {
355  background: var(--button-hover-background, var(--background));
356  filter: var(--interactive-filter);
357  outline: var(--button-focus-outline, var(--outline));
358}
359`,sQ=`
360.success__position {
361  position: fixed;
362  inset: var(--dialog-inset);
363  padding: var(--page-margin);
364  z-index: var(--z-index);
365}
366.success__content {
367  background: var(--success-background, var(--background));
368  border: var(--success-border, var(--border));
369  border-radius: var(--success-border-radius, 1.7em/50%);
370  box-shadow: var(--success-box-shadow, var(--box-shadow));
371  font-weight: var(--success-font-weight, 600);
372  color: var(--success-color);
373  fill: var(--success-color);
374  padding: 12px 24px;
375  line-height: 1.75em;
376
377  display: grid;
378  align-items: center;
379  grid-auto-flow: column;
380  gap: 6px;
381  cursor: default;
382}
383
384.success__icon {
385  display: flex;
386}
387`,sX=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{var a;let i,o,s,l,u=e.useSentryUser,c=(i=(0,Q.getCurrentScope)().getUser(),o=(0,Q.getIsolationScope)().getUser(),s=(0,Q.getGlobalScope)().getUser(),i&&Object.keys(i).length?i:o&&Object.keys(o).length?o:s),d=od.createElement("div"),p=(a=e.styleNonce,(l=od.createElement("style")).textContent=`
388:host {
389  --dialog-inset: var(--inset);
390}
391
392${sY}
393${sV}
394${sJ}
395${sK}
396${sQ}
397`,a&&l.setAttribute("nonce",a),l),f="",h={get el(){return d},appendToDom(){r.contains(p)||r.contains(d)||(r.appendChild(p),r.appendChild(d))},removeFromDom(){d.remove(),p.remove(),od.body.style.overflow=f},open(){g(!0),e.onFormOpen?.(),(0,Q.getClient)()?.emit("openFeedbackWidget"),f=od.body.style.overflow,od.body.style.overflow="hidden"},close(){g(!1),od.body.style.overflow=f}},m=t?.createInput({h:o7,hooks:sj,dialog:h,options:e}),g=t=>{var r,a,i,o;r=o7(sq,{options:e,screenshotInput:m,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(u&&c?.[u.name]||""),defaultEmail:String(u&&c?.[u.email]||""),onFormClose:()=>{g(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(t,n)=>{g(!1),e.onSubmitSuccess?.(t,n)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),oK.__&&oK.__(r,d),a=d.__k,i=[],o=[],sc(d,r=d.__k=o7(se,null,[r]),a||o2,o2,void 0!==d.ownerSVGElement,a?null:d.firstChild?oJ.call(d.childNodes):null,i,a?a.__e:d.firstChild,!1,o),r.__d=void 0,sd(i,r,o)};return h}});function sZ(e,t,n){if(!e)return;let r=e.getContext("2d",t);r&&n(e,r)}function s0(e,t){sZ(e,{alpha:!0},(e,n)=>{n.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function s1(e,t,n){sZ(e,{alpha:!0},(e,r)=>{n.length&&(r.fillStyle="rgba(0, 0, 0, 0.25)",r.fillRect(0,0,e.width,e.height)),n.forEach(e=>{switch(e.type){case"highlight":r.shadowColor="rgba(0, 0, 0, 0.7)",r.shadowBlur=50,r.fillStyle=t,r.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),r.clearRect(e.x,e.y,e.w,e.h);break;case"hide":r.fillStyle="rgb(0, 0, 0)",r.fillRect(e.x,e.y,e.w,e.h)}})})}let s2=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{let a=od.createElement("canvas");return{input:function({h:e,hooks:t,outputBuffer:n,dialog:r,options:a}){var i;let o,s,l,u=function({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:n,onAfterScreenshot:r,onError:a}){let i=function(){let[t,n]=e.useState(oc.devicePixelRatio??1);return e.useEffect(()=>{let e=()=>{n(oc.devicePixelRatio)},t=matchMedia(`(resolution: ${oc.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),t}();e.useEffect(()=>{(async()=>{t();let e=await op.mediaDevices.getDisplayMedia({video:{width:oc.innerWidth*i,height:oc.innerHeight*i},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),a=od.createElement("video");await new Promise((t,r)=>{a.srcObject=e,a.onloadedmetadata=()=>{n(a,i),e.getTracks().forEach(e=>e.stop()),t()},a.play().catch(r)}),r()})().catch(a)},[])}}({hooks:t}),c=function({h:e}){return function({action:t,setAction:n,options:r}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${"highlight"===t?"editor__tool--active":""}`,onClick:()=>{n("highlight"===t?"":"highlight")}},r.highlightToolText),e("button",{type:"button",class:`editor__tool ${"hide"===t?"editor__tool--active":""}`,onClick:()=>{n("hide"===t?"":"hide")}},r.hideToolText)))}}({h:e}),d=function({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}({h:e}),p={__html:(i=a.styleNonce,o=od.createElement("style"),s="#1A141F",l="#302735",o.textContent=`
398.editor {
399  display: flex;
400  flex-grow: 1;
401  flex-direction: column;
402}
403
404.editor__image-container {
405  justify-items: center;
406  padding: 15px;
407  position: relative;
408  height: 100%;
409  border-radius: var(--menu-border-radius, 6px);
410
411  background-color: ${s};
412  background-image: repeating-linear-gradient(
413      -145deg,
414      transparent,
415      transparent 8px,
416      ${s} 8px,
417      ${s} 11px
418    ),
419    repeating-linear-gradient(
420      -45deg,
421      transparent,
422      transparent 15px,
423      ${l} 15px,
424      ${l} 16px
425    );
426}
427
428.editor__canvas-container {
429  width: 100%;
430  height: 100%;
431  position: relative;
432  display: flex;
433  align-items: center;
434  justify-content: center;
435}
436
437.editor__canvas-container > * {
438  object-fit: contain;
439  position: absolute;
440}
441
442.editor__tool-container {
443  padding-top: 8px;
444  display: flex;
445  justify-content: center;
446}
447
448.editor__tool-bar {
449  display: flex;
450  gap: 8px;
451}
452
453.editor__tool {
454  display: flex;
455  padding: 8px 12px;
456  justify-content: center;
457  align-items: center;
458  border: var(--button-border, var(--border));
459  border-radius: var(--button-border-radius, 6px);
460  background: var(--button-background, var(--background));
461  color: var(--button-color, var(--foreground));
462}
463
464.editor__tool--active {
465  background: var(--button-primary-background, var(--accent-background));
466  color: var(--button-primary-color, var(--accent-foreground));
467}
468
469.editor__rect {
470  position: absolute;
471  z-index: 2;
472}
473
474.editor__rect button {
475  opacity: 0;
476  position: absolute;
477  top: -12px;
478  right: -12px;
479  cursor: pointer;
480  padding: 0;
481  z-index: 3;
482  border: none;
483  background: none;
484}
485
486.editor__rect:hover button {
487  opacity: 1;
488}
489`,i&&o.setAttribute("nonce",i),o).innerText},f=r.el.style,h=({screenshot:r})=>{let[i,o]=t.useState("highlight"),[s,l]=t.useState([]),u=t.useRef(null),f=t.useRef(null),h=t.useRef(null),m=t.useRef(null),[g,y]=t.useState(1),_=t.useMemo(()=>{let e=od.getElementById(a.id);if(!e)return"white";let t=getComputedStyle(e);return t.getPropertyValue("--button-primary-background")||t.getPropertyValue("--accent-background")},[a.id]);t.useLayoutEffect(()=>{let e=()=>{let t=u.current;t&&(sZ(r.canvas,{alpha:!1},e=>
489{y(Math.min(t.clientWidth/e.width,t.clientHeight/e.height))}),(0===t.clientHeight||0===t.clientWidth)&&setTimeout(e,0))};return e(),oc.addEventListener("resize",e),()=>{oc.removeEventListener("resize",e)}},[r]);let b=t.useCallback((e,t)=>{sZ(e,{alpha:!0},(e,n)=>{n.scale(t,t),e.width=r.canvas.width,e.height=r.canvas.height})},[r]);t.useEffect(()=>{b(f.current,r.dpi),s0(f.current,r.canvas)},[r]),t.useEffect(()=>{b(h.current,r.dpi),sZ(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),s1(h.current,_,s)},[s,_]),t.useEffect(()=>{b(n,r.dpi),s0(n,r.canvas),sZ(od.createElement("canvas"),{alpha:!0},(e,t)=>{t.scale(r.dpi,r.dpi),e.width=r.canvas.width,e.height=r.canvas.height,s1(e,_,s),s0(n,e)})},[s,r,_]);let v=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),l(t=>{let n=[...t];return n.splice(e,1),n})},[]),S={width:`${r.canvas.width*g}px`,height:`${r.canvas.height*g}px`},E=e=>{e.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:a.styleNonce,dangerouslySetInnerHTML:p}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:u},e("canvas",{ref:f,id:"background",style:S}),e("canvas",{ref:h,id:"foreground",style:S}),e("div",{ref:m,onMouseDown:e=>{if(!i||!m.current)return;let t=m.current.getBoundingClientRect(),n={type:i,x:e.offsetX/g,y:e.offsetY/g},r=(e,n)=>{let r=(n.clientX-t.x)/g,a=(n.clientY-t.y)/g;return{type:e.type,x:Math.min(e.x,r),y:Math.min(e.y,a),w:Math.abs(r-e.x),h:Math.abs(a-e.y)}},a=e=>{sZ(h.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),s1(h.current,_,[...s,r(n,e)])},o=e=>{let t=r(n,e);t.w*g>=1&&t.h*g>=1&&l(e=>[...e,t]),od.removeEventListener("mousemove",a),od.removeEventListener("mouseup",o)};od.addEventListener("mousemove",a),od.addEventListener("mouseup",o)},style:S},s.map((t,n)=>e("div",{key:n,class:"editor__rect",style:{top:`${t.y*g}px`,left:`${t.x*g}px`,width:`${t.w*g}px`,height:`${t.h*g}px`}},e("button",{"aria-label":a.removeHighlightText,onClick:v(n),onMouseDown:E,onMouseUp:E,type:"button"},e(d,null))))))),e(c,{options:a,action:i,setAction:o}))};return function({onError:r}){let[a,i]=t.useState();return(u({onBeforeScreenshot:t.useCallback(()=>{f.display="none"},[]),onScreenshot:t.useCallback((e,t)=>{sZ(od.createElement("canvas"),{alpha:!1},(n,r)=>{r.scale(t,t),n.width=e.videoWidth,n.height=e.videoHeight,r.drawImage(e,0,0,n.width,n.height),i({canvas:n,dpi:t})}),n.width=e.videoWidth,n.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{f.display="block"},[]),onError:t.useCallback(e=>{f.display="block",r(e)},[])}),a)?e(h,{screenshot:a}):e("div",null)}}({h:e,hooks:t,outputBuffer:a,dialog:n,options:r}),value:async()=>{let e=await new Promise(e=>
489{a.toBlob(e,"image/png")});if(e)return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),s3=["replayIntegration","replayCanvasIntegration","feedbackIntegration","feedbackModalIntegration","feedbackScreenshotIntegration","captureConsoleIntegration","contextLinesIntegration","linkedErrorsIntegration","dedupeIntegration","extraErrorDataIntegration","graphqlClientIntegration","httpClientIntegration","reportingObserverIntegration","rewriteFramesIntegration","browserProfilingIntegration","moduleMetadataIntegration","instrumentAnthropicAiClient","instrumentOpenAiClient","instrumentGoogleGenAIClient","instrumentStateGraph","instrumentLangGraph","createLangChainCallbackHandler","instrumentLangChainEmbeddings"],s4={replayCanvasIntegration:"replay-canvas",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot"};async function s5(e,t){var n;let r,a,i=s3.includes(e)?s4[e]||e.replace("Integration","").toLowerCase():void 0,o=tJ.Sentry=tJ.Sentry||{};if(!i)throw Error(`Cannot lazy load integration: ${e}`);let s=o[e];if("function"==typeof s&&!("_isShim"in s))return s;let l=(n=i,r=(0,Q.getClient)(),a=r?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com",new URL(`/${V.SDK_VERSION}/${n}.min.js`,a).toString()),u=tJ.document.createElement("script");u.src=l,u.crossOrigin="anonymous",u.referrerPolicy="strict-origin",t&&u.setAttribute("nonce",t);let c=new Promise((e,t)=>{u.addEventListener("load",()=>e()),u.addEventListener("error",t)}),d=tJ.document.currentScript,p=tJ.document.body||tJ.document.head||d?.parentElement;if(p)p.appendChild(u);else throw Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await c}catch{throw Error(`Error when loading integration: ${e}`)}let f=o[e];if("function"!=typeof f)throw Error(`Could not load integration: ${e}`);return f}let s6=oY({lazyLoadIntegration:s5}),s8=oY({getModalIntegration:()=>sX,getScreenshotIntegration:()=>s2}),s7="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function s9(e,t){let n;return eM(e,(e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}function le(e,t){return n=>{let r=e(n),a=new Map,i=t||(e=>{let t=e.getEvent();return t?.extra?.[s7]&&Array.isArray(t.extra[s7])?t.extra[s7]:[]});function o(t,r){let i=r?`${t}:${r}`:t,o=a.get(i);if(!o){let s=(0,eT.dsnFromString)(t);if(!s)return;let l=ek(s,n.tunnel);o=r?(t=>{let n=e(t);return{...n,send:async e=>{let t=s9(e,["event","transaction","profile","replay_event"]);return t&&(t.release=r),n.send(e)}}})({...n,url:l}):e({...n,url:l}),a.set(i,o)}return[t,o]}return{send:async function(e){let t=i({envelope:e,getEvent:function(t){return s9(e,t?.length?t:["event"])}}).map(e=>"string"==typeof e?o(e,void 0):o(e.dsn,e.release)).filter(e=>!!e),n=t.length?t:[["",r]];return(await Promise.all(n.map(([t,n])=>n.send(eO(t?{...e[0],dsn:t}:e[0],e[1])))))[0]},flush:async function(e){let t=[...a.values(),r];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}var lt=e.i(620978);let ln=["addListener","on","once","prependListener","prependOnceListener","addEventListener"],lr=["removeListener","off","removeEventListener"],la=Symbol("SentryScopeBoundListeners");function li(e,t=(0,Q.getCurrentScope)()){var n,r;if(e[la])return e;for(let n of(ls(e),ln))"function"==typeof e[n]&&(e[n]=function(e,t,n){return function(...r){let a=r[0],i=r[1],o=r.slice(2);if(!lo(i)||void 0!==f&&(i===f||i.listener===f))return t.apply(this,r);let s=function(e){return e[la]}(e)||ls(e),l=s.get(a);l||(l=new WeakMap,s.set(a,l));let u=l.get(i);u||(u=function(...e){return(0,Q.withScope)(n,()=>i.apply(this,e))},l.set(i,u));let c=f;f=u;try{return t.call(this,a,u,...o)}finally{f=c}}}(e,e[n],t));for(let t of lr)"function"==typeof e[t]&&(e[t]=function(e,t){return function(...n){let r=n[0],a=n[1],i=n.slice(2),o=lo(a)?(function(e){return e[la]})(e)?.get(r)?.get(a):void 0;return o?t.call(this,r,o,...i):t.apply(this,n)}}(e,e[t]));return"function"==typeof e.removeAllListeners&&(n=e,r=e.removeAllListeners,e.removeAllListeners=function(...e){let t=function(e){return e[la]}(n);if(t)if(0===e.length)ls(n);else{let n=e[0];t.delete(n)}return r.apply(this,e)}),e}function lo(e){return"function"==typeof e}function ls(e){let t=new Map;return e[la]=t,t}let ll=(e={})=>{let t=e.levels||q.CONSOLE_LEVELS,n=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in Y.GLOBAL_OBJ&&t6(({args:r,level:a})=>{var i,o,s;let l,u,c;
489(0,Q.getClient)()===e&&t.includes(a)&&(i=r,o=a,s=n,l=nl(o),u=Error(),c={level:nl(o),extra:{arguments:i}},(0,Q.withScope)(e=>{if(e.addEventProcessor(e=>(e.logger="console",(0,ea.addExceptionMechanism)(e,{handled:s,type:"auto.core.capture_console"}),e)),"assert"===o){if(!i[0]){let t=`Assertion failed: ${(0,ei.safeJoin)(i.slice(1)," ")||"console.assert"}`;e.setExtra("arguments",i.slice(1)),e.captureMessage(t,l,{captureContext:c,syntheticException:u})}return}let t=i.find(e=>e instanceof Error);if(t)return void(0,K.captureException)(t,c);let n=(0,ei.safeJoin)(i," ");e.captureMessage(n,l,{captureContext:c,syntheticException:u})}))})}}};function lu(e,t,n){var r,a,i;return"util"in Y.GLOBAL_OBJ&&"function"==typeof Y.GLOBAL_OBJ.util.format?Y.GLOBAL_OBJ.util.format(...e):(r=e,a=t,i=n,r.map(e=>(0,eG.isPrimitive)(e)?String(e):JSON.stringify((0,eS.normalize)(e,a,i))).join(" "))}function lc(e){return/%[sdifocO]/.test(e)}function ld(e,t){let n={},r=Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${r}`,t.forEach((e,t)=>{n[`sentry.message.parameter.${t}`]=e}),n}let lp={[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.log.console"},lf=(e={})=>{let t=e.levels||q.CONSOLE_LEVELS;return{name:"ConsoleLogs",setup(e){let{enableLogs:n,normalizeDepth:r=3,normalizeMaxBreadth:a=1e3}=e.getOptions();if(!n){X.DEBUG_BUILD&&q.debug.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}let i=t6(({args:n,level:i})=>{if((0,Q.getClient)()!==e||!t.includes(i))return;let o=n[0],s=n.slice(1);if("assert"===i){o||e2({level:"error",message:s.length>0?`Assertion failed: ${lu(s,r,a)}`:"Assertion failed",attributes:lp});return}let l="log"===i,u={...lp};if((0,eG.isPlainObject)(o)){Object.assign(u,(0,eS.normalize)(o,r,a));let e="string"==typeof n[1]?2:1;n.slice(e).forEach((e,t)=>{u[`sentry.message.parameter.${t}`]=(0,eS.normalize)(e,r,a)})}else if(s.length>0&&"string"==typeof o&&!lc(o))for(let[e,t]of Object.entries(ld(o,s)))u[e]=e.startsWith("sentry.message.parameter.")?(0,eS.normalize)(t,r,a):t;e2({level:l?"info":i,message:lu(n,r,a),severityNumber:l?10:void 0,attributes:u})});e.registerCleanup(i)}}},lh=["trace","debug","info","warn","error","fatal"];function lm(e={}){let t=new Set(e.levels??lh),n=e.client;return{log(e){let{type:r,level:a,message:i,args:o,tag:s,date:l,...u}=e,c=n||(0,Q.getClient)();if(!c)return;let d=function(e,t){if("verbose"===e)return"debug";if("silent"===e)return"trace";if(e){let t=lg[e];if(t)return t}if("number"==typeof t){let e=ly[t];if(e)return e}return"info"}(r,a);if(!t.has(d))return;let{normalizeDepth:p=3,normalizeMaxBreadth:f=1e3}=c.getOptions(),h={};for(let[e,t]of Object.entries(u))h[e]=(0,eS.normalize)(t,p,f);h["sentry.origin"]="auto.log.consola",s&&(h["consola.tag"]=s),r&&(h["consola.type"]=r),null!=a&&"number"==typeof a&&(h["consola.level"]=a);let m=function(e,t,n){let{message:r,attributes:a,messageTemplate:i,messageParameters:o}=e,s={};if(i&&o)for(let[e,r]of Object.entries(ld(i,o)))s[e]=e.startsWith("sentry.message.parameter.")?(0,eS.normalize)(r,t,n):r;else o&&o.length>0&&o.forEach((e,r)=>{s[`sentry.message.parameter.${r}`]=(0,eS.normalize)(e,t,n)});return{message:r,attributes:{...(0,eS.normalize)(a,t,n),...s}}}(function(e,t,n){if(!e?.length)return{message:""};let r=lu(e,t,n),a=e[0];if((0,eG.isPlainObject)(a)){let t="string"==typeof e[1]?2:1;return{message:r,attributes:a,messageParameters:e.slice(t)}}{let t=e.slice(1),n=t.length>0&&"string"==typeof a&&!lc(a);return{message:r,messageTemplate:n?a:void 0,messageParameters:n?t:void 0}}}(o,p,f),p,f);m?.attributes&&Object.assign(h,m.attributes),e2({level:d,message:m?.message||i||o&&lu(o,p,f)||"",attributes:h})}}}let lg={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},ly={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"},l_="gen_ai.system",lb="gen_ai.request.model",lv="gen_ai.request.stream",lS="gen_ai.request.temperature",lE="gen_ai.request.max_tokens",lT="gen_ai.request.frequency_penalty",lw="gen_ai.request.presence_penalty",lk="gen_ai.request.top_p",lI="gen_ai.request.top_k",lR="gen_ai.request.encoding_format",lC="gen_ai.request.dimensions",lA="gen_ai.response.finish_reasons",lN="gen_ai.response.model",lx="gen_ai.response.id",lO="gen_ai.usage.input_tokens",lP="gen_ai.usage.output_tokens",lM="gen_ai.usage.total_tokens",lL="gen_ai.operation.name",lD="sentry.sdk_meta.gen_ai.input.messages.original_length",lU="gen_ai.input.messages",lB="gen_ai.system_instructions",lF="gen_ai.response.text",lz="gen_ai.request.available_tools",lj="gen_ai.response.tool_calls",l$="gen_ai.agent.name",lH="gen_ai.conversation.id",lW="gen_ai.embeddings.input",lG="gen_ai.embeddings",lq="gen_ai.execute_tool",lY="gen_ai.tool.name",lV="gen_ai.tool.input",lJ="gen_ai.tool.output";function lK(e){var t,n,r,a,i,o,s,l;return!!e&&"object"==typeof e&&("type"in(t=e)&&"string"==typeof t.type&&"source"in t&&lK(t.source)||lX(e)||"image_url"in(n=e)&&("string"==typeof n.image_url?n.image_url.startsWith("data:"):lQ(n))||lZ(e)||l0(e)||"media_type"in(r=e)&&"string"==typeof r.media_type&&"data"in r||"type"in(a=e)&&"file"===a.type&&"mediaType"in a&&"string"==typeof a.mediaType&&"data"in a&&"string"==typeof a.data&&!a.data.startsWith("http://")&&!a.data.startsWith("https://")||"type"in(i=e)&&"image"===i.type&&"image"in i&&"string"==typeof i.image&&!i.image.startsWith("http://")&&!i.image.startsWith("https://")||"type"in(o=e)&&("blob"===o.type||"base64"===o.type)||"b64_json"in e||"type"in(s=e)&&"result"in s&&"image_generation"===s.type||"uri"in(l=e)&&"string"==typeof l.uri&&l.uri.startsWith("data:"))}function lQ(e){return"image_url"in e&&!!e.image_url&&"object"==typeof e.image_url&&"url"in e.image_url&&"string"==typeof e.image_url.url&&e.
489image_url.url.startsWith("data:")}function lX(e){return"inlineData"in e&&!!e.inlineData&&"object"==typeof e.inlineData&&"data"in e.inlineData&&"string"==typeof e.inlineData.data}function lZ(e){return"type"in e&&"input_audio"===e.type&&"input_audio"in e&&!!e.input_audio&&"object"==typeof e.input_audio&&"data"in e.input_audio&&"string"==typeof e.input_audio.data}function l0(e){return"type"in e&&"file"===e.type&&"file"in e&&!!e.file&&"object"==typeof e.file&&"file_data"in e.file&&"string"==typeof e.file.file_data}let l1="[Blob substitute]",l2=["image_url","data","content","b64_json","result","uri","image"];function l3(e){let t={...e};for(let n of(lK(t.source)&&(t.source=l3(t.source)),lX(e)&&(t.inlineData={...e.inlineData,data:l1}),lQ(e)&&(t.image_url={...e.image_url,url:l1}),lZ(e)&&(t.input_audio={...e.input_audio,data:l1}),l0(e)&&(t.file={...e.file,file_data:l1}),l2))"string"==typeof t[n]&&(t[n]=l1);return t}let l4=e=>new TextEncoder().encode(e).length,l5=e=>l4(JSON.stringify(e));function l6(e,t){if(l4(e)<=t)return e;let n=0,r=e.length,a="";for(;n<=r;){let i=Math.floor((n+r)/2),o=e.slice(0,i);l4(o)<=t?(a=o,n=i+1):r=i-1}return a}function l8(e,t){return"string"==typeof e?t:{...e,text:t}}function l7(e){return null!==e&&"object"==typeof e&&"content"in e&&Array.isArray(e.content)}function l9(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function ue(e){let t=(0,Q.getClient)()?.getDataCollectionOptions().genAI;return{...e,recordInputs:e?.recordInputs??t?.inputs??!1,recordOutputs:e?.recordOutputs??t?.outputs??!1}}function ut(e){if(void 0!==e)return e;let t=(0,Q.getClient)();return!t||!tt(t)&&!1===t.getOptions().streamGenAiSpans}function un(e,t){return e?`${e}.${t}`:t}function ur(e,t,n){if(!e.isRecording())return;let r={"gen_ai.response.streaming":!0};t.responseId&&(r[lx]=t.responseId),t.responseModel&&(r[lN]=t.responseModel),void 0!==t.promptTokens&&(r[lO]=t.promptTokens),void 0!==t.completionTokens&&(r[lP]=t.completionTokens),void 0!==t.totalTokens?r[lM]=t.totalTokens:(void 0!==t.promptTokens||void 0!==t.completionTokens||void 0!==t.cacheCreationInputTokens||void 0!==t.cacheReadInputTokens)&&(r[lM]=(t.promptTokens??0)+(t.completionTokens??0)+(t.cacheCreationInputTokens??0)+(t.cacheReadInputTokens??0)),t.finishReasons.length&&(r[lA]=JSON.stringify(t.finishReasons)),n&&t.responseTexts.length&&(r[lF]=t.responseTexts.join("")),n&&t.toolCalls.length&&(r[lj]=JSON.stringify(t.toolCalls)),e.setAttributes(r),e.end()}function ua(e){if("string"==typeof e)return l6(e,2e4);try{return JSON.stringify(Array.isArray(e)?function(e){if(!Array.isArray(e)||0===e.length)return e;let t=function e(t){return t.map(t=>{let n;return t&&"object"==typeof t&&(l7(t)?n={...t,content:e(t.content)}:"content"in t&&lK(t.content)&&(n={...t,content:l3(t.content)}),l9(t)&&(n={...n??t,parts:e(t.parts)}),lK(n)?n=l3(n):lK(t)&&(n=l3(t))),n??t})}([e[e.length-1]]),n=t[0];return 19998>=l5(n)?t:function(e){if(!e)return[];if("string"==typeof e){let t=l6(e,19998);return t?[t]:[]}if("object"!=typeof e)return[];if(null!==e&&"object"==typeof e&&"content"in e&&"string"==typeof e.content){let t=19998-l5({...e,content:""});if(t<=0)return[];let n=l6(e.content,t);return[{...e,content:n}]}return l7(e)||l9(e)?function(e,t){let{key:n,items:r}="parts"in e&&Array.isArray(e.parts)?{key:"parts",items:e.parts}:"content"in e&&Array.isArray(e.content)?{key:"content",items:e.content}:{key:null,items:[]};if(null===n||0===r.length)return[];let a=r.map(e=>l8(e,"")),i=t-l5({...e,[n]:a});if(i<=0)return[];let o=[];for(let e of r){let t="string"==typeof e?e:"text"in e&&"string"==typeof e.text?e.text:"",n=l4(t);if(n<=i)o.push(e),i-=n;else if(0===o.length){let n=l6(t,i);n&&o.push(l8(e,n));break}else break}return o.length<=0?[]:[{...e,[n]:o}]}(e,19998):[]}(n)}(e):e)}catch{return"[unserializable]"}}function ui(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};let t=e.findIndex(e=>e&&"object"==typeof e&&"role"in e&&"system"===e.role);if(-1===t)return{systemInstructions:void 0,filteredMessages:e};let n=e[t],r="string"==typeof n.content?n.content:void 0!==n.content?JSON.stringify(n.content):void 0;return r?{systemInstructions:JSON.stringify([{type:"text",content:r}]),filteredMessages:[...e.slice(0,t),...e.slice(t+1)]}:{systemInstructions:void 0,filteredMessages:e}}async function uo(e,t){let[n,r]=await Promise.all([t,e]);return r&&"object"==typeof r&&"data"in r?{...r,data:n}:n}function us(e,t){return(0,eG.isThenable)(e)?new Proxy(e,{get(e,n){let r=n in Promise.prototype||n===Symbol.toStringTag?t:e,a=Reflect.get(r,n);return"withResponse"===n&&"function"==typeof a?function(){return uo(a.call(e),t)}:"function"==typeof a?a.bind(r):a}}):t}let ul="auto.ai.langchain",uu={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"},uc=(e,t,n)=>{null!=n&&(e[t]=n)},ud=(e,t,n)=>{let r=Number(n);Number.isNaN(r)||(e[t]=r)};function up(e){if(Array.isArray(e))try{let t=e.map(e=>e&&"object"==typeof e&&lK(e)?l3(e):e);return JSON.stringify(t)}catch{return String(e)}return(0,ei.stringify)(e,String)}function uf(e){let t=e.toLowerCase();return uu[t]??t}function uh(e){return e.includes("System")?"system":e.includes("Human")?"user":e.includes("AI")||e.includes("Assistant")?"assistant":e.includes("Function")?"function":e.includes("Tool")?"tool":"user"}function um(e){if(!(!e||Array.isArray(e)))return e.invocation_params}function ug(e){return e.map(e=>{let t=e._getType;if("function"==typeof t)return{role:uf(t.call(e)),content:up(e.content)};if(1===e.lc&&e.kwargs){let t=e.id,n=Array.isArray(t)&&t.length>0?t[t.length-1]:"";return{role:uf("string"==typeof n?uh(n):"user"),content:up(e.kwargs?.content)}}if(e.type)return{role:uf(String(e.type).toLowerCase()),content:up(e.content)};if(e.role)return{role:uf(String(e.role)),content:up(e.content)};let n=e.constructor?.name;return n&&"Object"!==n?{role:uf(uh(n)),content:up(e.content)}:{role:"user",content:up(e.content)}})}function uy(e,t,n,r,a){let i,o;return{[l_]:(0,ei.stringify)(e??"langchain",String),[lL]:"chat",[lb]:(0,ei.stringify)(t,String),[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:ul,...(i={},o="kwargs"in n?n.kwargs:void 0,ud(i,lS,r?.temperature??a?.ls_temperature??o?.temperature),ud(i,lE,r?.max_tokens??a?.ls_max_tokens??o?.max_tokens),ud(i,lk,r?.top_p??o?.top_p),ud(i,lT,r?.frequency_penalty),ud(i,lw,r?.presence_penalty),r&&"stream"in r&&uc(i,lv,!!r.stream),i)}}function u_(e){let t={},n=e?.lc_agent_name;return"string"==typeof n&&(t[l$]=n),t}function ub(e){return"object"==typeof e&&e?.name==="SentryCallbackHandler"}function uv(e={}){let{recordInputs:t,recordOutputs:n}=ue(e),r=ut(e.enableTruncation),a=new Map,i=e=>{let t=a.get(e);t?.isRecording()&&(t.end(),a.delete(e))}
489,o={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(e,n,i,o,s,l,u,c){let d=function(e,t,n,r,a,i){let o=uy(i?.ls_provider,a?.model??i?.ls_model_name??"unknown",e,a,i);if(n&&Array.isArray(t)&&t.length>0){uc(o,lD,t.length);let e=t.map(e=>({role:"user",content:e}));uc(o,lU,r?ua(e):(0,ei.stringify)(e))}return o}(e,n,t,r,um(l),u),p=d[lb],f=d[lL];r2({name:`${f} ${p}`,op:"gen_ai.chat",attributes:{...u_(u),...d,[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},e=>(a.set(i,e),e))},handleChatModelStart(e,n,i,o,s,l,u,c){let d=function(e,t,n,r,a,i){let o=uy(i?.ls_provider??e.id?.[2],a?.model??i?.ls_model_name??"unknown",e,a,i);if(n&&Array.isArray(t)&&t.length>0){let{systemInstructions:e,filteredMessages:n}=ui(ug(t.flat()));e&&uc(o,lB,e),uc(o,lD,Array.isArray(n)?n.length:0),uc(o,lU,r?ua(n):(0,ei.stringify)(n))}return o}(e,n,t,r,um(l),u),p=function(e){let t=e?.invocation_params?.tools??e?.options?.tools;if(Array.isArray(t)&&0!==t.length)return JSON.stringify(t.map(e=>{let t=e.function;return{type:"function",name:e.name??t?.name??"",description:e.description??t?.description}}))}(s);p&&(d[lz]=p);let f=d[lb],h=d[lL];r2({name:`${h} ${f}`,op:"gen_ai.chat",attributes:{...u_(u),...d,[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},e=>(a.set(i,e),e))},handleLLMEnd(e,t,r,o,s){let l=a.get(t);if(l?.isRecording()){let r=function(e,t){if(!e)return;let n={};if(Array.isArray(e.generations)){let r=e.generations.flat().map(e=>e.generationInfo?.finish_reason?e.generationInfo.finish_reason:e.generation_info?.finish_reason?e.generation_info.finish_reason:null).filter(e=>"string"==typeof e);if(r.length>0&&uc(n,lA,(0,ei.stringify)(r,String)),!function(e,t){let n=[];for(let t of e.flat()){let e=t.message,r=e?.tool_calls;if(Array.isArray(r)&&r.length>0)n.push(...r);else{let e=t.message?.content;if(Array.isArray(e))for(let t of e)"tool_use"===t.type&&n.push(t)}}n.length>0&&uc(t,lj,(0,ei.stringify)(n,String))}(e.generations,n),t){let t=e.generations.flat().map(e=>e.text??e.message?.content).filter(e=>"string"==typeof e);t.length>0&&uc(n,lF,(0,ei.stringify)(t,String))}}!function(e,t){if(!e)return;let n=e.tokenUsage,r=e.usage;if(n)ud(t,lO,n.promptTokens),ud(t,lP,n.completionTokens),ud(t,lM,n.totalTokens);else if(r){ud(t,lO,r.input_tokens),ud(t,lP,r.output_tokens);let e=Number(r.input_tokens),n=Number(r.output_tokens),a=(Number.isNaN(e)?0:e)+(Number.isNaN(n)?0:n);a>0&&ud(t,lM,a),void 0!==r.cache_creation_input_tokens&&ud(t,"gen_ai.usage.cache_creation_input_tokens",r.cache_creation_input_tokens),void 0!==r.cache_read_input_tokens&&ud(t,"gen_ai.usage.cache_read_input_tokens",r.cache_read_input_tokens)}}(e.llmOutput,n);let r=e.llmOutput,a=e.generations?.[0]?.[0],i=a?.message,o=r?.model_name??r?.model??i?.response_metadata?.model_name;o&&uc(n,lN,o);let s=r?.id??i?.id;s&&uc(n,lx,s);let l=r?.stop_reason??i?.response_metadata?.finish_reason;return l&&uc(n,"gen_ai.response.stop_reason",(0,ei.stringify)(l,String)),n}(e,n);r&&l.setAttributes(r),i(t)}},handleLLMError(e,t){let n=a.get(t);n?.isRecording()&&(n.setStatus({code:rV.SPAN_STATUS_ERROR,message:"internal_error"}),i(t))},handleChainStart(e,n,r,i,o,s,l,u){if(s?.__sentry_langgraph__)return;let c=u||e.name||"unknown_chain",d={[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.langchain","langchain.chain.name":c};t&&(d["langchain.chain.inputs"]=JSON.stringify(n)),r2({name:`chain ${c}`,op:"gen_ai.invoke_agent",attributes:{...d,[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.invoke_agent"}},e=>(a.set(r,e),e))},handleChainEnd(e,t){let r=a.get(t);r?.isRecording()&&(n&&r.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),i(t))},handleChainError(e,t){let n=a.get(t);n?.isRecording()&&(n.setStatus({code:rV.SPAN_STATUS_ERROR,message:"internal_error"}),i(t))},handleToolStart(e,n,r,i,o,s,l){if(s?.__sentry_langgraph__)return;let u=l||e.name||"unknown_tool",c={...u_(s),[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:ul,[lL]:"execute_tool",[lY]:u};t&&(c[lV]=n),r2({name:`execute_tool ${u}`,op:"gen_ai.execute_tool",attributes:{...c,[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.execute_tool"}},e=>(a.set(r,e),e))},handleToolEnd(e,t){let r=a.get(t);if(r?.isRecording()){if(n){let t=e&&"object"==typeof e&&"content"in e?e.content:e;r.setAttributes({[lJ]:"string"==typeof t?t:JSON.stringify(t)})}i(t)}},handleToolError(e,t){let n=a.get(t);n?.isRecording()&&(n.setStatus({code:rV.SPAN_STATUS_ERROR,message:"internal_error"}),i(t))},copy:()=>o,toJSON:()=>
489({lc:1,type:"not_implemented",id:o.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:o.lc_id})};return o}var uS=e.i(918895);let uE=(e={})=>{let{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,r,a){let{maxValueLength:i}=a.getOptions();return function(e,t={},n,r,a){if(!t.originalException||!(0,eG.isError)(t.originalException))return e;let i=t.originalException.name||t.originalException.constructor.name,o=function e(t,n,r){try{let a=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],i={};for(let e of Object.keys(t)){if(-1!==a.indexOf(e))continue;let n=t[e];i[e]=(0,eG.isError)(n)||"string"==typeof n?r?(0,ei.truncate)(`${n}`,r):`${n}`:n}if(n&&void 0!==t.cause&&((0,eG.isError)(t.cause)?i.cause={[t.cause.name||t.cause.constructor.name]:e(t.cause,!1,r)}:i.cause=t.cause),"function"==typeof t.toJSON){let e=t.toJSON();for(let t of Object.keys(e)){let n=e[t];i[t]=(0,eG.isError)(n)?n.toString():n}}return i}catch(e){X.DEBUG_BUILD&&q.debug.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,r,a);if(o){let t={...e.contexts},r=(0,eS.normalize)(o,n);return(0,eG.isPlainObject)(r)&&((0,uS.setSkipNormalizationHint)(r),t[i]=r),{...e,contexts:t}}return e}(e,r,t,n,i)}}},uT="flag.evaluation.";function uw(e){if(e.type)return e;let t=(0,Q.getCurrentScope)().getScopeData().contexts.flags,n=t?t.values:[];return n.length&&(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...n]}),e}function uk(e,t,n=100){let r=(0,Q.getCurrentScope)().getScopeData().contexts;r.flags||(r.flags={values:[]}),function(e,t,n,r){if("boolean"!=typeof n)return;if(e.length>r){X.DEBUG_BUILD&&q.debug.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);return}let a=e.findIndex(e=>e.flag===t);-1!==a&&e.splice(a,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}(r.flags.values,e,t,n)}function uI(e,t,n=10){if("boolean"!=typeof t)return;let r=(0,em.getActiveSpan)();if(!r)return;let a=(0,em.spanToJSON)(r).data;`${uT}${e}`in a?r.setAttribute(`${uT}${e}`,t):Object.keys(a).filter(e=>e.startsWith(uT)).length<n&&r.setAttribute(`${uT}${e}`,t)}let uR=()=>
489({name:"FeatureFlags",processEvent:(e,t,n)=>uw(e),addFeatureFlag(e,t){uk(e,t),uI(e,t)}}),uC={"messages.create":{operation:"chat"},"messages.stream":{operation:"chat",streaming:!0},"messages.countTokens":{operation:"chat"},"models.get":{operation:"models"},"completions.create":{operation:"chat"},"models.retrieve":{operation:"models"},"beta.messages.create":{operation:"chat"}},uA={invalid_request_error:"invalid_argument",authentication_error:"unauthenticated",permission_error:"permission_denied",not_found_error:"not_found",request_too_large:"failed_precondition",rate_limit_error:"resource_exhausted",api_error:"internal_error",overloaded_error:"unavailable"};function uN(e){return e&&uA[e]||"internal_error"}function ux(e,t,n,r){if(e&&"object"==typeof e&&(!("type"in e)||"string"!=typeof e.type||"error"!==e.type||(r.setStatus({code:rV.SPAN_STATUS_ERROR,message:uN(e.error?.type)}),0))){if("message_delta"===e.type&&(e.usage&&"number"==typeof e.usage.output_tokens&&(t.completionTokens=e.usage.output_tokens),e.delta?.stop_reason&&t.finishReasons.push(e.delta.stop_reason)),e.message){let n=e.message;n.id&&(t.responseId=n.id),n.model&&(t.responseModel=n.model),n.usage&&("number"==typeof n.usage.input_tokens&&(t.promptTokens=n.usage.input_tokens),"number"==typeof n.usage.cache_creation_input_tokens&&(t.cacheCreationInputTokens=n.usage.cache_creation_input_tokens),"number"==typeof n.usage.cache_read_input_tokens&&(t.cacheReadInputTokens=n.usage.cache_read_input_tokens))}"content_block_start"===e.type&&"number"==typeof e.index&&e.content_block&&("tool_use"===e.content_block.type||"server_tool_use"===e.content_block.type)&&(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]});if("content_block_delta"===e.type&&e.delta){if("number"==typeof e.index&&"partial_json"in e.delta&&"string"==typeof e.delta.partial_json){let n=t.activeToolBlocks[e.index];n&&n.inputJsonParts.push(e.delta.partial_json)}n&&"string"==typeof e.delta.text&&t.responseTexts.push(e.delta.text)}!function(e,t){let n;if("content_block_stop"!==e.type||"number"!=typeof e.index)return;let r=t.activeToolBlocks[e.index];if(!r)return;let a=r.inputJsonParts.join("");try{n=a?JSON.parse(a):{}}catch{n={__unparsed:a}}t.toolCalls.push({type:"tool_use",id:r.id,name:r.name,input:n}),delete t.activeToolBlocks[e.index]}(e,t)}}async function*uO(e,t,n){let r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(let a of e)ux(a,r,n,t),yield a}finally{ur(t,r,n)}}let uP=!1,uM=new WeakSet;function uL(e,t,n){!function(e,t,n){if(Array.isArray(t)&&0===t.length)return;let{systemInstructions:r,filteredMessages:a}=ui(t);r&&e.setAttributes({[lB]:r});let i=Array.isArray(a)?a.length:1;e.setAttributes({[lU]:n?ua(a):(0,ei.stringify)(a),[lD]:i})}(e,function(e){let{system:t,messages:n,input:r}=e,a="string"==typeof t?[{role:"system",content:e.system}]:[],i=Array.isArray(r)?r:null!=r?[r]:void 0,o=Array.isArray(n)?n:null!=n?[n]:[];return[...a,...i??o]}(t),n),"prompt"in t&&e.setAttributes({"gen_ai.prompt":JSON.stringify(t.prompt)})}function uD(e,t){throw t.isRecording()&&(t.setStatus({code:rV.SPAN_STATUS_ERROR,message:"internal_error"}),t.end()),e}function uU(e,t){return function(e,t){for(let n of Object.keys(uC)){let r=n.split("."),a=r.pop(),i=e;for(let e of r)i=i?.[e];if(!i||"function"!=typeof i[a])continue;let o=i[a];if(uM.has(o))continue;let s=function(e,t,n,r,a){return new Proxy(e,{apply(e,i,o){let s,l=void 0!==i?i:r,u=!0===n.streaming;if(!u&&uP)return e.apply(l,o);let c=n.operation||"unknown",d=function(e,t,n){let r={[l_]:"anthropic",[lL]:n,[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.anthropic"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t=e[0];t.tools&&Array.isArray(t.tools)&&(r[lz]=JSON.stringify(t.tools)),r[lb]=t.model??"unknown","temperature"in t&&(r[lS]=t.temperature),"top_p"in t&&(r[lk]=t.top_p),"stream"in t&&(r[lv]=t.stream),"top_k"in t&&(r[lI]=t.top_k),"frequency_penalty"in t&&(r[lT]=t.frequency_penalty),"max_tokens"in t&&(r[lE]=t.max_tokens)}else"models.retrieve"===t||"models.get"===t?r[lb]=e[0]:r[lb]="unknown";return r}(o,t,c),p=d[lb]??"unknown",f="object"==typeof o[0]?o[0]:void 0,h=!!f?.stream;if(h||u){let t=d[lb]??"unknown",n={name:`${c} ${t}`,op:`gen_ai.${c}`,attributes:d};if(!h||u)return r2(n,t=>{try{var n;let r;a.recordInputs&&f&&uL(t,f,ut(a.enableTruncation)),uP=!0;let i=e.apply(l,o);return uP=!1,n=a.recordOutputs??!1,r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}},i.on("streamEvent",e=>{ux(e,r,n,t)}),i.on("message",()=>{ur(t,r,n)}),i.on("error",e=>{(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:rV.SPAN_STATUS_ERROR,message:"internal_error"}),t.end())}),i}catch(e){return uP=!1,uD(e,t)}});{let t,r=r2(n,n=>(t=e.apply(l,o),a.recordInputs&&f&&uL(n,f,ut(a.enableTruncation)),(async()=>{try{let e=await t;return uO(e,n,a.recordOutputs??!1)}catch(e){return uD(e,n)}})()));return us(t,r)}}let m=r1({name:`${c} ${p}`,op:`gen_ai.${c}`,attributes:d},t=>(s=e.apply(l,o),a.recordInputs&&f&&uL(t,f,ut(a.enableTruncation)),s.then(e=>(!function(e,t,n){if(t&&"object"==typeof t){if("type"in t&&"error"===t.type)return t.error&&(e.setStatus({code:rV.SPAN_STATUS_ERROR,message:uN(t.error.type)}),(0,K.captureException)(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}));n&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[lF]:t.content.map(e=>e.text).filter(e=>!!e).join("")});let n=[];for(let e of t.content)("tool_use"===e.type||"server_tool_use"===e.type)&&n.push(e);n.length>0&&e.setAttributes({[lj]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[lF]:t.completion}),"input_tokens"in t&&e.setAttributes({[lF]:JSON.stringify(t.input_tokens)})}(e,t),function(e,t){if("id"in t&&"model"in t){var n,r,a,i;e.setAttributes({[lx]:t.id,[lN]:t.model}),"usage"in t&&t.usage&&(n=t.usage.input_tokens,r=t.usage.output_tokens,a=t.usage.cache_creation_input_tokens,i=t.usage.cache_read_input_tokens,void 0!==n&&e.setAttributes({[lO]:n}),void 0!==r&&e.setAttributes({[lP]:r}),(void 0!==n||void 0!==r||void 0!==a||void 0!==i)&&e.setAttributes({[lM]:(n??0)+(r??0)+(a??0)+(i??0)}))}}(e,t)}}(t,e,a.recordOutputs),e))));return us(s,m)}})}(o,n,uC[n],i,t);uM.add(s),i[a]=s}return e}(e,ue(t))}let uB="auto.ai.langgraph",uF=!1,uz="__sentry_patched__";function uj(e,t,n,r,a,i){return new Proxy(e,{apply(e,o,s){let l=a?.modelName??a?.model;return r1({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:uB,[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.invoke_agent",[lL]:"invoke_agent"}},async a=>{try{let u=n?.name;u&&"string"==typeof u&&(a.setAttribute("gen_ai.pipeline.name",u),a.setAttribute(l$,u),a.updateName(`invoke_agent ${u}`)),l&&a.setAttribute(lb,l);let c=s.length>1?s[1]:void 0,d=c?.configurable,p=d?.thread_id;if(p&&"string"==typeof p&&a.setAttribute(lH,p),i){let e=s[1]??{};s[1]=e;let t=e.metadata??{};e.metadata={...t,__sentry_langgraph__:!0,..."string"==typeof u?{lc_agent_name:u}:{}},e.callbacks=function(e,t){if(!e)return[t];if(e&&"object"==typeof e&&"function"==typeof e.addHandler&&"function"==typeof e.copy){if((e.handlers??[]).some(ub))return e;let n=e.copy();return n.addHandler(t,!0),n}let n=Array.isArray(e)?e:[e];return n.some(ub)?e:[...n,t]}(e.callbacks,i)}let f=function(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;let t=e.builder?.nodes?.tools?.runnable?.tools;return t&&Array.isArray(t)&&0!==t.length?t.map(e=>({name:e.lc_kwargs?.name,description:e.lc_kwargs?.description,schema:e.lc_kwargs?.schema})):null}(t);f&&a.setAttribute(lz,JSON.stringify(f));let h=r.recordInputs,m=r.recordOutputs,g=s.length>0?s[0]?.messages??[]:[];if(g&&h){let e=ug(g),{systemInstructions:t,filteredMessages:n}=ui(e);t&&a.setAttribute(lB,t);let i=ut(r.enableTruncation),o=Array.isArray(n)?n.length:0;a.setAttributes({[lU]:i?ua(n):(0,ei.stringify)(n),[lD]:o})}let y=await Reflect.apply(e,o,s);return m&&function(e,t,n){let r=n?.messages;if(!r||!Array.isArray(r))return;let a=t?.length??0,i=r.length>a?r.slice(a):[];if(0===i.length)return;let o=function(e){if(!e||0===e.length)return null;let t=[];for(let n of e)if(n&&"object"==typeof n){let e=n.tool_calls;e&&Array.isArray(e)&&t.push(...e)}return t.length>0?t:null}(i);o&&e.setAttribute(lj,JSON.stringify(o));let s=ug(i);e.setAttribute(lF,JSON.stringify(s));let l=0,u=0,c=0;for(let t of i){let n=function(e){let t=0,n=0,r=0;if(e.usage_metadata&&"object"==typeof e.usage_metadata){let a=e.usage_metadata;return"number"==typeof a.input_tokens&&(t=a.input_tokens),"number"==typeof a.output_tokens&&(n=a.output_tokens),"number"==typeof a.total_tokens&&(r=a.total_tokens),{inputTokens:t,outputTokens:n,totalTokens:r}}if(e.response_metadata&&"object"==typeof e.response_metadata){let a=e.response_metadata;if(a.tokenUsage&&"object"==typeof a.tokenUsage){let e=a.tokenUsage;"number"==typeof e.promptTokens&&(t=e.promptTokens),"number"==typeof e.completionTokens&&(n=e.completionTokens),"number"==typeof e.totalTokens&&(r=e.totalTokens)}}return{inputTokens:t,outputTokens:n,totalTokens:r}}(t);l+=n.inputTokens,u+=n.outputTokens,c+=n.totalTokens,function(e,t){if(t.response_metadata&&"object"==typeof t.response_metadata){let n=t.response_metadata;n.model_name&&"string"==typeof n.model_name&&e.setAttribute(lN,n.model_name),n.finish_reason&&"string"==typeof n.finish_reason&&e.setAttribute(lA,[n.finish_reason])}}(e,t)}l>0&&e.setAttribute(lO,l),u>0&&e.setAttribute(lP,u),c>0&&e.setAttribute(lM,c)}(a,g??null,y),y}catch(e){throw a.setStatus({code:rV.SPAN_STATUS_ERROR,message:"internal_error"}),e}})}})}function u$(e,t){if(Object.prototype.hasOwnProperty.call(e,uz))return e;let n=ue(t),r=uv(n),a=new Proxy(e,{apply(e,t,a){let i,o,s=function(e){let t=e[0];if("object"!=typeof t||!t||!("llm"in t)||!t.llm||"object"!=typeof t.llm)return null;let n=t.llm;return"string"!=typeof n.modelName&&"string"!=typeof n.model?null:n}(a),l="object"==typeof(o=a[0])&&o&&"name"in o&&"string"==typeof o.name?o.name:null,u=a[0];u&&Array.isArray(u.tools)&&u.tools.length>0&&function(e,t,n){let r="__sentry_tool_wrapped__";for(let a of e){if(!a||"object"!=typeof a)continue;let e=a.invoke;if("function"!=typeof e||Object.prototype.hasOwnProperty.call(a,r))continue;
489let i="string"==typeof a.name?a.name:"unknown_tool",o="string"==typeof a.description?a.description:void 0;a.invoke=new Proxy(e,{apply(e,r,a){let s={[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:uB,[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:lq,[lL]:"execute_tool",[lY]:i,"gen_ai.tool.type":"function"},l=a[1],u=l?.metadata?.lc_agent_name??n;"string"==typeof u&&(s[l$]=u),o&&(s["gen_ai.tool.description"]=o);let c=a[0];if("object"==typeof c&&c&&("id"in c&&"string"==typeof c.id&&(s["gen_ai.tool.call.id"]=c.id),t.recordInputs)){let e="args"in c&&"object"==typeof c.args?c.args:c;try{s[lV]=JSON.stringify(e)}catch{}}return r1({op:lq,name:`execute_tool ${i}`,attributes:s},async n=>{try{let i=await Reflect.apply(e,r,a);if(t.recordOutputs)try{let e=i&&"object"==typeof i&&"content"in i?i.content:i;n.setAttribute(lJ,"string"==typeof e?e:JSON.stringify(e))}catch{}return i}catch(e){throw n.setStatus({code:rV.SPAN_STATUS_ERROR,message:"internal_error"}),e}})}}),Object.defineProperty(a,r,{value:!0,enumerable:!1})}}(u.tools,n,l??void 0),uF=!0;try{i=Reflect.apply(e,t,a)}finally{uF=!1}let c=i.invoke;if(c&&"function"==typeof c){let e={};l&&(e.name=l),i.invoke=uj(c.bind(i),i,e,n,s,r)}return i}});return Object.defineProperty(a,uz,{value:!0,enumerable:!1}),a}function uH(e,t){return e.compile=function(e,t){if(Object.prototype.hasOwnProperty.call(e,uz))return e;let n=uv(t),r=new Proxy(e,{apply:(e,r,a)=>uF?Reflect.apply(e,r,a):r1({op:"gen_ai.create_agent",name:"create_agent",attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:uB,[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.create_agent",[lL]:"create_agent"}},i=>{try{let o=Reflect.apply(e,r,a),s=a.length>0?a[0]:{};s?.name&&"string"==typeof s.name&&(i.setAttribute(l$,s.name),i.updateName(`create_agent ${s.name}`));let l=o.invoke;return l&&"function"==typeof l&&(o.invoke=uj(l.bind(o),o,s,t,void 0,n)),o}catch(e){throw i.setStatus({code:rV.SPAN_STATUS_ERROR,message:"internal_error"}),e}})});return Object.defineProperty(r,uz,{value:!0,enumerable:!1}),r}(e.compile,ue(t)),e}let uW={"models.generateContent":{operation:"generate_content"},"models.generateContentStream":{operation:"generate_content",streaming:!0},"models.embedContent":{operation:"embeddings"},"chats.create":{proxyResultPath:"chat"},"chat.sendMessage":{operation:"chat"},"chat.sendMessageStream":{operation:"chat",streaming:!0}};async function*uG(e,t,n){let r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(let a of e)!function(e,t,n,r){if(!(!e||function(e,t){let n=e?.promptFeedback;if(n?.blockReason){let e=n.blockReasonMessage??n.blockReason;return t.setStatus({code:rV.SPAN_STATUS_ERROR,message:"internal_error"}),(0,K.captureException)(`Content blocked: ${e}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}(e,r))){let r;for(let a of("string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion),(r=e.usageMetadata)&&("number"==typeof r.promptTokenCount&&(t.promptTokens=r.promptTokenCount),"number"==typeof r.candidatesTokenCount&&(t.completionTokens=r.candidatesTokenCount),"number"==typeof r.totalTokenCount&&(t.totalTokens=r.totalTokenCount)),Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls),e.candidates??[]))for(let e of(a?.finishReason&&!t.finishReasons.includes(a.finishReason)&&t.finishReasons.push(a.finishReason),a?.content?.parts??[]))n&&e.text&&t.responseTexts.push(e.text),e.functionCall&&t.toolCalls.push({type:"function",id:e.functionCall.id,name:e.functionCall.name,arguments:e.functionCall.args})}}(a,r,n,t),yield a}finally{ur(t,r,n)}}function uq(e,t="user"){return"string"==typeof e?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(e=>uq(e,t)):"object"==typeof e&&e?"role"in e&&"string"==typeof e.role?[e]:"parts"in e?[{...e,role:t}]:[{role:t,content:e}]:[]}function uY(e,t){if("model"in e&&"string"==typeof e.model)return e.model;if(t&&"object"==typeof t){if("model"in t&&"string"==typeof t.model)return t.model;if("modelVersion"in t&&"string"==typeof t.modelVersion)return t.modelVersion}return"unknown"}function uV(e,t,n,r){if("embeddings"===n){let n=t.contents;null!=n&&e.setAttribute(lW,"string"==typeof n?n:JSON.stringify(n));return}let a=[];if("config"in t&&t.config&&"object"==typeof t.config&&"systemInstruction"in t.config&&t.config.systemInstruction&&a.push(...uq(t.config.systemInstruction,"system")),"history"in t&&a.push(...uq(t.history,"user")),"contents"in t&&a.push(...uq(t.contents,"user")),"message"in t&&a.push(...uq(t.message,"user")),Array.isArray(a)&&a.length){let{systemInstructions:t,filteredMessages:n}=ui(a);t&&e.setAttribute(lB,t);let i=Array.isArray(n)?n.length:0;e.setAttributes({[lD]:i,[lU]:r?ua(n):(0,ei.stringify)(n)})}}function uJ(e,t){return function e(t,n="",r){return new Proxy(t,{get:(t,a,i)=>{let o=Reflect.get(t,a,i),s=un(n,String(a)),l=uW[s];if("function"==typeof o&&l){let n,a=l.operation?(n="embeddings"===l.operation,new Proxy(o,{apply(e,a,i){let o=l.operation||"unknown",s=i[0],u=function(e,t,n){let r={[l_]:"google_genai",[lL]:e,[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.google_genai"};if(t){if(r[lb]=uY(t,n),"config"in t&&"object"==typeof t.config&&t.config){let e,n=t.config;if(Object.assign(r,(e={},"temperature"in n&&"number"==typeof n.temperature&&(e[lS]=n.temperature),"topP"in n&&"number"==typeof n.topP&&(e[lk]=n.topP),"topK"in n&&"number"==typeof n.topK&&(e[lI]=n.topK),"maxOutputTokens"in n&&"number"==typeof n.maxOutputTokens&&(e[lE]=n.maxOutputTokens),"frequencyPenalty"in n&&"number"==typeof n.frequencyPenalty&&(e[lT]=n.frequencyPenalty),"presencePenalty"in n&&"number"==typeof n.presencePenalty&&(e[lw]=n.presencePenalty
489),e)),"tools"in n&&Array.isArray(n.tools)){let e=n.tools.flatMap(e=>e.functionDeclarations);r[lz]=JSON.stringify(e)}}}else r[lb]=uY({},n);return r}(o,s,t),c=u[lb]??"unknown";return l.streaming?r2({name:`${o} ${c}`,op:`gen_ai.${o}`,attributes:u},async n=>{try{r.recordInputs&&s&&uV(n,s,o,ut(r.enableTruncation));let a=await e.apply(t,i);return uG(a,n,!!r.recordOutputs)}catch(e){throw n.setStatus({code:rV.SPAN_STATUS_ERROR,message:"internal_error"}),n.end(),e}}):r1({name:`${o} ${c}`,op:`gen_ai.${o}`,attributes:u},a=>(r.recordInputs&&s&&uV(a,s,o,ut(r.enableTruncation)),rX(()=>e.apply(t,i),()=>{},()=>{},e=>{n||function(e,t,n){if(t&&"object"==typeof t){if(t.modelVersion&&e.setAttribute(lN,t.modelVersion),t.usageMetadata&&"object"==typeof t.usageMetadata){let n=t.usageMetadata;"number"==typeof n.promptTokenCount&&e.setAttributes({[lO]:n.promptTokenCount}),"number"==typeof n.candidatesTokenCount&&e.setAttributes({[lP]:n.candidatesTokenCount}),"number"==typeof n.totalTokenCount&&e.setAttributes({[lM]:n.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){let n=t.candidates.map(e=>e.content?.parts&&Array.isArray(e.content.parts)?e.content.parts.map(e=>"string"==typeof e.text?e.text:"").filter(e=>e.length>0).join(""):"").filter(e=>e.length>0);n.length>0&&e.setAttributes({[lF]:n.join("")})}if(n&&t.functionCalls){let n=t.functionCalls;Array.isArray(n)&&n.length>0&&e.setAttributes({[lj]:JSON.stringify(n)})}}}(a,e,r.recordOutputs)})))}})):o.bind(t);return l.proxyResultPath?function(...t){let n=a(...t);return n&&"object"==typeof n?e(n,l.proxyResultPath,r):n}:a}return"function"==typeof o?o.bind(t):o&&"object"==typeof o?e(o,s,r):o}})}(e,"",ue(t))}function uK(e,t={}){return new Proxy(e,{apply:(e,n,r)=>r1(function(e,t,n={}){let r,a,i,{recordInputs:o}=ue(n),s=(r=e??{},(a={[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:ul,[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:lG,[lL]:"embeddings",[lb]:r.model??"unknown"})[l_]=(i=r.constructor?.name??"").includes("OpenAI")?"openai":i.includes("Google")?"google_genai":i.includes("Mistral")?"mistralai":i.includes("Vertex")?"google_vertexai":i.includes("Bedrock")?"aws_bedrock":i.includes("Ollama")?"ollama":i.includes("Cloudflare")?"cloudflare":i.includes("Cohere")?"cohere":"langchain","dimensions"in r&&(a[lC]=r.dimensions),"encodingFormat"in r&&(a[lR]=r.encodingFormat),a),l=s[lb]||"unknown";return o&&null!=t&&(s[lW]="string"==typeof t?t:JSON.stringify(t)),{name:`embeddings ${l}`,op:lG,attributes:s}}(n,r[0],t),()=>Reflect.apply(e,n,r))})}function uQ(e,t){return"function"==typeof e.embedQuery&&(e.embedQuery=uK(e.embedQuery,t)),"function"==typeof e.embedDocuments&&(e.embedDocuments=uK(e.embedDocuments,t)),e}let uX={"responses.create":{operation:"chat"},"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},uZ=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta","response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"];async function*u0(e,t,n){let r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(let a of e){if(null!==a&&"object"==typeof a&&"object"in a&&"chat.completion.chunk"===a.object){for(let e of(r.responseId=a.id??r.responseId,r.responseModel=a.model??r.responseModel,a.usage&&(r.promptTokens=a.usage.prompt_tokens,r.completionTokens=a.usage.completion_tokens,r.totalTokens=a.usage.total_tokens),a.choices??[]))n&&(e.delta?.content&&r.responseTexts.push(e.delta.content),e.delta?.tool_calls&&function(e,t){for(let n of e){let e=n.index;if(void 0!==e&&n.function)if(e in t.chatCompletionToolCalls){let r=t.chatCompletionToolCalls[e];n.function.arguments&&r?.function&&(r.function.arguments+=n.function.arguments)}else t.chatCompletionToolCalls[e]={...n,function:{name:n.function.name,arguments:n.function.arguments||""}}}}(e.delta.tool_calls,r)),e.finish_reason&&r.finishReasons.push(e.finish_reason)}else null!==a&&"object"==typeof a&&"type"in a&&"string"==typeof a.type&&a.type.startsWith("response.")&&function(e,t,n,r){if(!(e&&"object"==typeof e))return t.eventTypes.push("unknown:non-object");
489if(e instanceof Error){r.setStatus({code:rV.SPAN_STATUS_ERROR,message:"internal_error"}),(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if("type"in e){if(!uZ.includes(e.type))return t.eventTypes.push(e.type);if(n&&("response.output_item.done"===e.type&&"item"in e&&t.responsesApiToolCalls.push(e.item),"response.output_text.delta"===e.type&&"delta"in e&&e.delta))return t.responseTexts.push(e.delta);if("response"in e){let{response:r}=e;t.responseId=r.id??t.responseId,t.responseModel=r.model??t.responseModel,r.usage&&(t.promptTokens=r.usage.input_tokens,t.completionTokens=r.usage.output_tokens,t.totalTokens=r.usage.total_tokens),r.status&&t.finishReasons.push(r.status),n&&r.output_text&&t.responseTexts.push(r.output_text)}}}(a,r,n,t);yield a}}finally{let e=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];ur(t,{...r,toolCalls:e},n)}}function u1(e,t,n,r){if("embeddings"===n&&"input"in t){let n=t.input;if(null==n||"string"==typeof n&&0===n.length||Array.isArray(n)&&0===n.length)return;e.setAttribute(lW,"string"==typeof n?n:JSON.stringify(n));return}let a="input"in t?t.input:"messages"in t?t.messages:void 0;if(!a||Array.isArray(a)&&0===a.length)return;let{systemInstructions:i,filteredMessages:o}=ui(a);i&&e.setAttribute(lB,i),e.setAttribute(lU,r?ua(o):(0,ei.stringify)(o)),Array.isArray(o)?e.setAttribute(lD,o.length):e.setAttribute(lD,1)}function u2(e,t){return function e(t,n="",r){return new Proxy(t,{get(t,a){let i=t[a],o=un(n,String(a)),s=uX[o];if("function"==typeof i&&s)return function(...e){let n,a=s.operation||"unknown",o=function(e,t){let n={[l_]:"openai",[lL]:t,[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.openai"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t,r,a=e[0],i=function(e){let t=[...Array.isArray(e.tools)?e.tools:[],...e.web_search_options&&"object"==typeof e.web_search_options?[{type:"web_search_options",...e.web_search_options}]:[]];if(0!==t.length)try{return JSON.stringify(t)}catch(e){X.DEBUG_BUILD&&q.debug.error("Failed to serialize OpenAI tools:",e);return}}(a);i&&(n[lz]=i),Object.assign(n,(t={[lb]:a.model??"unknown"},"temperature"in a&&(t[lS]=a.temperature),"top_p"in a&&(t[lk]=a.top_p),"frequency_penalty"in a&&(t[lT]=a.frequency_penalty),"presence_penalty"in a&&(t[lw]=a.presence_penalty),"stream"in a&&(t[lv]=a.stream),"encoding_format"in a&&(t[lR]=a.encoding_format),"dimensions"in a&&(t[lC]=a.dimensions),(r="conversation"in a&&"string"==typeof a.conversation?a.conversation:"previous_response_id"in a&&"string"==typeof a.previous_response_id?a.previous_response_id:void 0)&&(t[lH]=r),t))}else n[lb]="unknown";return n}(e,a),l=o[lb]||"unknown",u=e[0],c=u&&"object"==typeof u&&!0===u.stream,d={name:`${a} ${l}`,op:`gen_ai.${a}`,attributes:o};if(c){let n,o=r2(d,o=>(n=i.apply(t,e),r.recordInputs&&u&&u1(o,u,a,ut(r.enableTruncation)),(async()=>{try{let e=await n;return u0(e,o,r.recordOutputs??!1)}catch(e){throw o.setStatus({code:rV.SPAN_STATUS_ERROR,message:"internal_error"}),o.end(),e}})()));return us(n,o)}let p=r1(d,o=>(n=i.apply(t,e),r.recordInputs&&u&&u1(o,u,a,ut(r.enableTruncation)),n.then(e=>(!function(e,t,n){if(!t||"object"!=typeof t)return;let r={};if("string"==typeof t.id&&(r[lx]=t.id),"string"==typeof t.model&&(r[lN]=t.model),"conversation"===t.object&&"string"==typeof t.id&&(r[lH]=t.id),t.usage&&"object"==typeof t.usage){let e=t.usage,n=e.prompt_tokens??e.input_tokens;"number"==typeof n&&(r[lO]=n);let a=e.completion_tokens??e.output_tokens;"number"==typeof a&&(r[lP]=a),"number"==typeof e.total_tokens&&(r[lM]=e.total_tokens)}if(Array.isArray(t.choices)){let e=t.choices,a=e.map(e=>e.finish_reason).filter(e=>"string"==typeof e);if(a.length>0&&(r[lA]=JSON.stringify(a)),n){let t=e.map(e=>{let t=e.message;return t?.content||""});r[lF]=JSON.stringify(t);let n=e.map(e=>{let t=e.message;return t?.tool_calls}).filter(e=>Array.isArray(e)&&e.length>0).flat();n.length>0&&(r[lj]=JSON.stringify(n))}}if("string"!=typeof t.status||r[lA]||(r[lA]=JSON.stringify([t.status])),n&&("string"!=typeof t.output_text||r[lF]||(r[lF]=t.output_text),Array.isArray(t.output)&&t.output.length>
4890&&!r[lj])){let e=t.output.filter(e=>e?.type==="function_call");e.length>0&&(r[lj]=JSON.stringify(e))}e.setAttributes(r)}(o,e,r.recordOutputs),e))));return us(n,p)};return"function"==typeof i?i.bind(t):i&&"object"==typeof i?e(i,o,r):i}})}(e,"",ue(t))}let u3=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],u4=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],u5={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},u6=["select","insert","upsert","update","delete"];function u8(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function u7(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function u9(e,t){return Object.keys(t).length>0?t:Array.isArray(e)&&e.length>0?e:void 0}function ce(e,t){if(!e)return;if("function"==typeof e.get)return e.get(t)??void 0;let n=t.toLowerCase(),r=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0!==r?e[r]:void 0}function ct(e,t=!1){return new Proxy(e,{apply:(n,r,a)=>r1({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(n,r,a).then(t=>((0,eG.isObjectLike)(t)&&"error"in t&&t.error?(e.setStatus({code:rV.SPAN_STATUS_ERROR}),(0,K.captureException)(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:rV.SPAN_STATUS_OK}),e.end(),t)).catch(t=>{throw e.setStatus({code:rV.SPAN_STATUS_ERROR}),e.end(),(0,K.captureException)(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...a))})}let cn=(e,t={})=>{var n;if(!e){X.DEBUG_BUILD&&q.debug.warn("Supabase integration was not installed because no Supabase client was provided.");return}n=e.constructor===Function?e:e.constructor,u7(n.prototype.from)||(n.prototype.from=new Proxy(n.prototype.from,{apply(e,n,r){let a=Reflect.apply(e,n,r);return function(e,t){for(let n of u6)u7(e.prototype[n])||(e.prototype[n]=new Proxy(e.prototype[n],{apply(e,r,a){let i=Reflect.apply(e,r,a),o=i.constructor;return X.DEBUG_BUILD&&q.debug.log(`Instrumenting ${n} operation's PostgRESTFilterBuilder`),!function(e,t){u7(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(e,n,r){let a=function(e,t={}){switch(e){case"GET":return"select";case"POST":if(ce(t,"Prefer")?.includes("resolution="))return"upsert";return"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}(n.method,n.headers);if(!u6.includes(a)||!n?.url?.pathname||"string"!=typeof n.url.pathname)return Reflect.apply(e,n,r);let i=n.url.pathname.split("/"),o=i.length>0?i[i.length-1]:"",s=[];for(let[e,t]of n.url.searchParams.entries())s.push(function(e,t){let n;if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;let[r,...a]=t.split(".");return n=r?.startsWith("fts")?"textSearch":r?.startsWith("plfts")?"textSearch[plain]":r?.startsWith("phfts")?"textSearch[phrase]":r?.startsWith("wfts")?"textSearch[websearch]":r&&u5[r]||"filter",`${n}(${e}, ${a.join(".")})`}(e,t));let l=Object.create(null);if((0,eG.isPlainObject)(n.body))for(let[e,t]of Object.entries(n.body))l[e]=t;let u=(0,Q.getClient)(),c=t.sendOperationData??u?.getDataCollectionOptions().databaseQueryData===!0,d=u9(n.body,l),p="select"===a?"":`${a}${void 0!==u9(n.body,l)?"(...) ":""}`,f=c?s.join(" "):s.length>0?"[redacted]":"",h=[p.trimEnd(),f].filter(Boolean).join(" "),m=h?`${h} from(${o})`:`from(${o})`,g={"db.table":o,"db.schema":n.schema,"db.url":n.url.origin,"db.sdk":ce(n.headers,"X-Client-Info"),"db.system":"postgresql","db.operation":a,[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db"};return s.length&&c&&(g["db.query"]=s),void 0!==d&&c&&(g["db.body"]=d),r1({name:m,attributes:g},t=>Reflect.apply(e,n,[]).then(e=>{if(t&&(e&&"object"==typeof e&&"status"in e&&(0,rV.setHttpStatus)(t,e.status||500),t.end()),e?.error){let t=Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);let n={};s.length&&c&&(n.query=s),void 0!==d&&c&&(n.body=d),(0,K.captureException)(t,e=>(e.addEventProcessor(e=>((0,ea.addExceptionMechanism)(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",n),e))}let n={type:"supabase",category:`db.${a}`,message:m},r={};return s.length&&c&&(r.query=s),void 0!==d&&c&&(r.body=d),Object.keys(r).length&&(n.data=r),nu(n),e},e=>{throw t&&((0,rV.setHttpStatus)(t,500),t.end()),e}).then(...r))}}),u8(e.prototype.then))}(o,t),i}}),u8(e.prototype[n]))}(a.constructor,t),a}}),u8(n.prototype.from));let r=e.auth;if(!(!r||u7(e.auth))){for(let t of u3){let n=r[t];n&&"function"==typeof e.auth[t]&&(e.auth[t]=ct(n))}for(let t of u4){let n=r.admin[t];n&&"function"==typeof e.auth.admin[t]&&(e.auth.admin[t]=ct(n,!0))}u8(e.auth)}},cr=e=>{let t,n;return t=e.supabaseClient,n={sendOperationData:e.sendOperationData},{setupOnce(){cn(t,n)},name:"Supabase"}};function ca(e,t,n,r,a){e2({level:e,message:t,attributes:n,severityNumber:a},r)}function ci(e,t,{scope:n}={}){ca("trace",e,t,n)}function co(e,t,{scope:n}={}){ca("debug",e,t,n)}function cs(e,t,{scope:n}={}){ca("info",e,t,n)}function cl(e,t,{scope:n}={}){ca("warn",e,t,n)}function cu(e,t,{scope:n}={}){ca("error",e,t,n)}function cc(e,t,{scope:n}={}){ca("fatal",e,t,n)}function cd(e,...t){let n=new String(String.raw(e,...t));
489return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}e.s(["debug",0,co,"error",0,cu,"fatal",0,cc,"info",0,cs,"trace",0,ci,"warn",0,cl],809333),e.i(809333),e.s(["debug",0,co,"error",0,cu,"fatal",0,cc,"fmt",0,cd,"info",0,cs,"trace",0,ci,"warn",0,cl],745287);var cp=e.i(745287),cp=cp;function cf(e,t,n,r){!function(e,t){let n=t?.scope??(0,Q.getCurrentScope)(),r=t?.captureSerializedMetric??e8,a=n?.getClient()??(0,Q.getClient)();if(!a){X.DEBUG_BUILD&&q.debug.warn("No client available to capture metric.");return}let{_experiments:i,enableMetrics:o,beforeSendMetric:s}=a.getOptions();if(!(o??i?.enableMetrics??!0)){X.DEBUG_BUILD&&q.debug.warn("metrics option not enabled, metric will not be captured.");return}let{user:l,attributes:u}=(0,eq.getCombinedScopeData)((0,Q.getIsolationScope)(),n),c=function(e,t,n){let{release:r,environment:a}=t.getOptions(),i={...e.attributes};e6(i,"user.id",n.id,!1),e6(i,"user.email",n.email,!1),e6(i,"user.name",n.username,!1),e6(i,"sentry.release",r),e6(i,"sentry.environment",a);let{name:o,version:s}=t.getSdkMetadata()?.sdk??{};e6(i,"sentry.sdk.name",o),e6(i,"sentry.sdk.version",s);let l=t.getIntegrationByName("Replay"),u=l?.getReplayId(!0);return e6(i,"sentry.replay_id",u),u&&l?.getRecordingMode()==="buffer"&&e6(i,"sentry._internal.replay_is_buffering",!0),{...e,attributes:i}}(e,a,l);a.emit("processMetric",c);let d=s||i?.beforeSendMetric,p=d?d(c):c;if(!p){X.DEBUG_BUILD&&q.debug.log("`beforeSendMetric` returned `null`, will not send metric.");return}let f=function(e,t,n,r){let[,a]=eQ(t,n),i=(0,eY._getSpanForScope)(n),o=i?i.spanContext().traceId:a?.trace_id,s=i?i.spanContext().spanId:void 0,l=(0,eV.timestampInSeconds)(),u=eK(l);return{timestamp:l,trace_id:o??"",span_id:s,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...(0,eW.serializeAttributes)(r),...(0,eW.serializeAttributes)(e.attributes,"skip-undefined"),[u.key]:u.value}}}(p,a,n,u);X.DEBUG_BUILD&&q.debug.log("[Metric]",f),r(a,f),a.emit("afterCaptureMetric",p)}({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}e.s(["count",0,function(e,t=1,n){cf("counter",e,t,n)},"distribution",0,function(e,t,n){cf("distribution",e,t,n)},"gauge",0,function(e,t,n){cf("gauge",e,t,n)}],832168);var ch=e.i(832168),ch=ch;let cm=new Map,cg=new Set;function cy(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;let n=function(e,t){if(Y.GLOBAL_OBJ._sentryModuleMetadata)for(let t of Object.keys(Y.GLOBAL_OBJ._sentryModuleMetadata)){let n=Y.GLOBAL_OBJ._sentryModuleMetadata[t];if(!cg.has(t)){for(let r of(cg.add(t),e(t).reverse()))if(r.filename){cm.set(r.filename,n);break}}}return cm.get(t)}(e,t.filename);n&&(t.module_metadata=n)})})}function c_(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}let cb=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{eM(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(c_(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||cy(e.getOptions().stackParser,t)})}}),cv=e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{eM(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(c_(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||cy(e.getOptions().stackParser,t)})},preprocessEvent(t){e.ignoreSentryInternalFrames&&(Y.GLOBAL_OBJ._sentryWrappedDepth??0)>0&&(t.sdkProcessingMetadata={...t.sdkProcessingMetadata,insideSentryWrapped:!0})},processEvent(t){let n=!!e.ignoreSentryInternalFrames&&t.sdkProcessingMetadata?.insideSentryWrapped===!0&&t.exception?.values?.length===1,r=function(e,t,n){let r=(0,eg.getFramesFromEvent)(e);if(r)return r.filter((e,r)=>!!e.filename&&(null!=e.lineno||null!=e.colno||null!=e.instruction_addr)&&(!t||!function(e,t,n){var r;if(0!==t)return!1;if(n&&!(r=e).context_line&&!r.pre_context&&r.function&&r.function.length<=2||"sentryWrapped"===e.function)return!0;if(!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(cT))return!1;if(e.pre_context){let t=e.pre_context.length;for(let n=0;n<t;n++)if(e.pre_context[n]?.includes(cE))return!0}return!1}(e,r,!!n))).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(cS)).map(e=>e.slice(cS.length)):[])}(t,e.ignoreSentryInternalFrames,n);if(r&&r["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"](t=>!t.some(t=>e.filterKeys.includes(t)))){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}return t}}),cS="_sentryBundlerPluginAppKey:",cE="Attempt to invoke user-land function",cT="fn.apply(this, wrappedArguments)";function cw(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}let ck=(e={})=>{let t=e.limit??10;return{name:"ZodErrors",processEvent:(n,r)=>(function(e,t=!1,n,r){var a;if(!n.exception?.values||!r.originalException||(a=r.originalException,!((0,eG.isError)(a)&&"ZodError"===a.name&&Array.isArray(a.issues)))||0===r.originalException.issues.length)return n;try{let a=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(cw);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({f
489ilename:"zod_issues.json",data:JSON.stringify({issues:a})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:function(e){let t=new Set;for(let n of e.issues){let e=n.path.map(e=>"number"==typeof e?"<array>":e).join(".");e.length>0&&t.add(e)}let n=Array.from(t);if(0===n.length){let t="variable";if(e.issues.length>0){let n=e.issues[0];void 0!==n&&"expected"in n&&"string"==typeof n.expected&&(t=n.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${(0,ei.truncate)(n.join(", "),100)}`}(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":a.slice(0,e)}}}catch(e){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}
490${e.stack}`:"unknown"}}}}})(t,e.saveZodIssuesAsAttachment,n,r)}},cI={startProfiler:function(){let e=(0,Q.getClient)();if(!e){nD&&q.debug.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){nD&&q.debug.warn("BrowserProfiling integration is not available");return}e.emit("startUIProfiler")},stopProfiler:function(){let e=(0,Q.getClient)();if(!e){nD&&q.debug.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){nD&&q.debug.warn("ProfilingIntegration is not available");return}e.emit("stopUIProfiler")}};function cR(e,{metadata:t,tunnel:n,dsn:r}){return eO({event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:(0,eT.dsnToString)(r)}},[[{type:"user_report"},e]])}function cC(e={}){let t=tJ.document,n=t?.head||t?.body;if(!n){nD&&q.debug.error("[showReportDialog] Global document not defined");return}let r=(0,Q.getCurrentScope)(),a=(0,Q.getClient)(),i=a?.getDsn();if(!i){nD&&q.debug.error("[showReportDialog] DSN not configured");return}let o={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||(0,K.lastEventId)()},s=tJ.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=function(e,t){let n=(0,eT.makeDsn)(e);if(!n)return"";let r=`${ew(n)}embed/error-page/`,a=`dsn=${(0,eT.dsnToString)(n)}`;for(let e in t)if("dsn"!==e&&"onClose"!==e)if("user"===e){let e=t.user;if(!e)continue;e.name&&(a+=`&name=${encodeURIComponent(e.name)}`),e.email&&(a+=`&email=${encodeURIComponent(e.email)}`)}else a+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${r}?${a}`}(i,o);let{onLoad:l,onClose:u}=o;if(l&&(s.onload=l),u){let e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{u()}finally{tJ.removeEventListener("message",e)}};tJ.addEventListener("message",e)}n.appendChild(s)}let cA=Y.GLOBAL_OBJ,cN=new WeakMap,cx=(e={})=>{let t=e.types||["crash","deprecation","intervention"];function n(e){if(cN.has((0,Q.getClient)()))for(let t of e)(0,Q.withScope)(e=>{e.setExtra("url",t.url);let n=`ReportingObserver [${t.type}]`,r="No details available";if(t.body){let n={};for(let e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){let e=t.body;r=[e.crashId||"",e.reason||""].join(" ").trim()||r}else r=t.body.message||r}(0,K.captureMessage)(`${n}: ${r}`)})}return{name:"ReportingObserver",setupOnce(){"ReportingObserver"in t9&&new cA.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){cN.set(e,!0)}}};function cO(e,t){return t.some(t=>e.includes(t))}function cP(e,t,n){if(!1===t)return{};let r=null!=n?[...tm,...n]:tm,a={};if(!0===t){for(let t of Object.keys(e))a[t]=cO(t.toLowerCase(),r)?tf:e[t];return a}if("deny"in t){let n=t.deny.map(e=>e.toLowerCase());for(let t of Object.keys(e)){let i=t.toLowerCase(),o=cO(i,r)||n.some(e=>i.includes(e));a[t]=o?tf:e[t]}return a}let i=t.allow.map(e=>e.toLowerCase());for(let t of Object.keys(e)){let n=t.toLowerCase();if(cO(n,r))a[t]=tf;else{let r=i.some(e=>n.includes(e));a[t]=r?e[t]:tf}}return a}function cM(e,t){if(!1===t)return{};try{let n=function(e){let t={},n=0;for(;n<e.length;){let r=e.indexOf("=",n);if(-1===r)break;let a=e.indexOf(";",n);if(-1===a)a=e.length;else if(a<r){n=e.lastIndexOf(";",r-1)+1;continue}let i=e.slice(n,r).trim();if(void 0===t[i]){let n=e.slice(r+1,a).trim();
49034===n.charCodeAt(0)&&(n=n.slice(1,-1));try{t[i]=-1!==n.indexOf("%")?decodeURIComponent(n):n}catch{t[i]=n}}n=a+1}return t}(e);if(0===Object.keys(n).length)return{};return cP(n,t,tg)}catch{return tf}}function cL(e,t){var n,r,a,i,o,s;let l,u=t?.getDsn(),c=t?.getOptions().tunnel;return n=e,r=u,!(!(l=nb(n))||n_(l))&&!!r&&(a=l.hostname,a===(i=r.host)||i.length>0&&a.endsWith(`.${i}`))&&/(^|&|\?)sentry_key=/.test(l.search)||(o=e,!!(s=c)&&cD(o)===cD(s))}function cD(e){return"/"===e[e.length-1]?e.slice(0,-1):e}let cU=(e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){var n,r,a,i;n=e,r=t,nt()&&nn(e=>{if((0,Q.getClient)()!==n)return;let{response:t,args:a,error:i,virtualError:o}=e,[s,l]=a;t&&function(e,t,n,r,a){if(cF(e,n.status,n.url)){var i,o;let e,s,l,u,c=(i=t,!(o=r)&&i instanceof Request||i instanceof Request&&i.bodyUsed?i:new Request(i,o)),d=cj();if(!1!==d.requestHeaders&&(e=cP(cB(c.headers),d.requestHeaders)),!1!==d.responseHeaders&&(s=cP(cB(n.headers),d.responseHeaders)),!1!==d.cookies){let e=c.headers.get("Cookie")||void 0;if(e){let t=cM(e,d.cookies);"object"==typeof t&&(l=t)}let t=n.headers.get("Set-Cookie")||void 0;if(t){let e=cM(t,d.cookies);"object"==typeof e&&(u=e)}}let p=cz({url:c.url,method:c.method,status:n.status,requestHeaders:e,responseHeaders:s,requestCookies:l,responseCookies:u,error:a,type:"fetch"});(0,K.captureEvent)(p)}}(r,s,t,l,i||o)},!1),a=e,i=t,"XMLHttpRequest"in Y.GLOBAL_OBJ&&nA(e=>{if((0,Q.getClient)()!==a)return;let{error:t,virtualError:n}=e,r=e.xhr,o=r[nC];if(!o)return;let{method:s,request_headers:l}=o;try{!function(e,t,n,r,a){if(cF(e,t.status,t.responseURL)){let e,i,o,s=cj();if(!1!==s.cookies)try{let e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;if(e){let t=cM(e,s.cookies);"object"==typeof t&&(i=t)}}catch{}if(!1!==s.responseHeaders)try{let e;o=cP((e=t.getAllResponseHeaders())?e.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return n&&r&&(e[n]=r),e},{}):{},s.responseHeaders)}catch{}!1!==s.requestHeaders&&(e=cP(r,s.requestHeaders));let l=cz({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:o,responseCookies:i,error:a,type:"xhr"});(0,K.captureEvent)(l)}}(i,r,s,l,t||n)}catch(e){nD&&q.debug.warn("Error while extracting response event form XHR response",e)}})}}};function cB(e){let t={};return e.forEach((e,n)=>{t[n]=e}),t}function cF(e,t,n){var r,a;return r=e.failedRequestStatusCodes,r.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])&&(a=e.failedRequestTargets,a.some(e=>"string"==typeof e?n.includes(e):e.test(n)))&&!cL(n,(0,Q.getClient)())}function cz(e){let t=(0,Q.getClient)(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,a=`HTTP Client Error with status code: ${e.status}`,i={message:a,exception:{values:[{type:"Error",value:a,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:function(e){if(e){let t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}(e.responseHeaders)}}};return(0,ea.addExceptionMechanism)(i,{type:`auto.http.client.${e.type}`,handled:!1}),i}function cj(){let e=(0,Q.getClient)();if(!e)return{cookies:!1,requestHeaders:!1,responseHeaders:!1};let t=e.getOptions();if(null==t.dataCollection){let e=!!t.sendDefaultPii;return{cookies:e,requestHeaders:e,responseHeaders:e}}let{cookies:n,httpHeaders:r}=e.getDataCollectionOptions();return{cookies:n,requestHeaders:r.request,responseHeaders:r.response}}let c$=Y.GLOBAL_OBJ,cH=(e={})=>({name:"ContextLines",processEvent:(t,n,r)=>(function(e,t){let n=c$.document,r=c$.location&&nE(c$.location.href);if(!n||!r)return e;let a=e.exception?.values;if(!a?.length)return e;let i=n.documentElement.innerHTML;if(!i)return e;let o=["<!DOCTYPE html>","<html>",...i.split("\n"),"</html>"];return a.forEach(e=>{let n=e.stacktrace;n?.frames&&(n.frames=n.frames.map(e=>{var n,a,i,s;return n=e,a=o,i=r,s=t,n.filename===i&&n.lineno&&a.length&&(0,ea.addContextToFrame)(a,n,s),n}))}),e})(t,e.frameContextLines??r?.getDataCollectionOptions().frameContextLines??7)});function cW(e){if(cY(e))return`persisted ${e.operationName}`;if(cq(e)){let{query:t,operationName:n}=e,{operationName:r=n,operationType:a}=function(e){let t=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(t)return{operationType:t[1],operationName:t[2]};let n=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return n?{operationType:n[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}(t);return r?`${a} ${r}`:`${a}`}return"unknown"}function cG(e){let t;if("xhr"in e){let n=e.xhr[nC];t=n&&iT(n.body)[0]}else t=iT(iw(e.input))[0];return t}function cq(e){return(0,eG.isObjectLike)(e)&&"string"==typeof e.query}function cY(e){return(0,eG.isObjectLike)(e)&&"string"==typeof e.o
490perationName&&(0,eG.isObjectLike)(e.extensions)&&(0,eG.isObjectLike)(e.extensions.persistedQuery)&&"string"==typeof e.extensions.persistedQuery.sha256Hash&&"number"==typeof e.extensions.persistedQuery.version}function cV(e){try{let t=JSON.parse(e);if(cq(t)||cY(t))return t;return}catch{return}}let cJ=e=>({name:"GraphQLClient",setup(t){var n,r,a,i;n=t,r=e,n.on("beforeOutgoingRequestSpan",(e,t)=>{let a=(0,em.spanToJSON)(e).data||{};if("http.client"!==a[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP])return;let i=a[nm]||a["http.url"]||a.url,o=a[eh.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]||a["http.method"];if(!(0,eG.isString)(i)||!(0,eG.isString)(o))return;let{endpoints:s}=r,l=(0,ei.stringMatchesSomePattern)(i,s),u=cG(t);if(l&&u){let t=cV(u);if(t){let r=cW(t);e.updateName(`${o} ${i} (${r})`),cq(t)&&!0===n.getDataCollectionOptions().graphQL.document&&e.setAttribute(nd,t.query),cY(t)&&(e.setAttribute("graphql.persisted_query.hash.sha256",t.extensions.persistedQuery.sha256Hash),e.setAttribute("graphql.persisted_query.version",t.extensions.persistedQuery.version))}}}),a=t,i=e,a.on("beforeOutgoingRequestBreadcrumb",(e,t)=>{let{category:n,type:r,data:o}=e;if("http"===r&&("fetch"===n||"xhr"===n)){let e=o?.url,{endpoints:n}=i,r=(0,ei.stringMatchesSomePattern)(e,n),s=cG(t);if(r&&o&&s){let e=cV(s);if(!o.graphql&&e){let t=cW(e);o["graphql.operation"]=t,cq(e)&&!0===a.getDataCollectionOptions().graphQL.document&&(o[nd]=e.query),cY(e)&&(o["graphql.persisted_query.hash.sha256"]=e.extensions.persistedQuery.sha256Hash,o["graphql.persisted_query.version"]=e.extensions.persistedQuery.version)}}}})}}),cK=(e={})=>{let t=["script"];return{name:"ViewHierarchy",processEvent:(n,r)=>{if(void 0!==n.type||e.shouldAttach?.(n,r)===!1)return n;let a={rendering_system:"DOM",positioning:"absolute",windows:[]};!function n(r,a,i=0){if(r)for(let o of"shadowRoot"in r&&r.shadowRoot?r.shadowRoot.children:r.children){if(!(o instanceof HTMLElement))continue;let r=tV(o,1)||void 0,s=o.tagName.toLowerCase();if(t.includes(s))continue;let l=e.onElement?.({element:o,componentName:r,tagName:s,depth:i})||{};if("skip"===l)continue;if("children"===l){n(o,a,i+1);continue}let{x:u,y:c,width:d,height:p}=o.getBoundingClientRect(),f={identifier:o.id||void 0,type:r||s,visible:!0,alpha:1,height:p,width:d,x:u,y:c,...l};f.children=[],n(o,f.children,i+1),a.push(f)}}(e.rootElement?.()||tJ.document.body,a.windows);let i={filename:"view-hierarchy.json",attachmentType:"event.view_hierarchy",contentType:"application/json",data:JSON.stringify(a)};return r.attachments=r.attachments||[],r.attachments.push(i),n}}},cQ=Y.GLOBAL_OBJ,cX="sentryReplaySession",cZ="Unable to send Replay";var c0=Object.defineProperty,c1=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?c0(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n},c2=((P=c2||{})[P.Document=0]="Document",P[P.DocumentType=1]="DocumentType",P[P.Element=2]="Element",P[P.Text=3]="Text",P[P.CDATA=4]="CDATA",P[P.Comment=5]="Comment",P);function c3(e){let t=e?.host;return t?.shadowRoot===e}function c4(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function c5(e){try{var t;let n=e.rules||e.cssRules;return n?((t=Array.from(n,c6).join("")).includes(" background-clip: text;")&&!t.includes(" -webkit-background-clip: text;")&&(t=t.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),t):null}catch(e){return null}}function c6(e){let t;if("styleSheet"in e)try{t=c5(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let n=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,n=e.selectorText.includes(":"),r="string"==typeof e.style.all&&e.style.all;if(r&&(t=function(e){let t="";for(let n=0;n<e.style.length;n++){let r=e.style,a=r[n],i=r.getPropertyPriority(a);t+=`${a}:${r.getPropertyValue(a)}${i?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),n&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),n||r)return t}return t||e.cssText}class c8{constructor(){c1(this,"idNodeMap",new Map),c1(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);
490this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function c7({maskInputOptions:e,tagName:t,type:n}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||"password"===n||"INPUT"===t&&!n&&e.text)}function c9({isMasked:e,element:t,value:n,maskInputFn:r}){let a=n||"";return e?(r&&(a=r(a,t)),"*".repeat(a.length)):a}function de(e){return e.toLowerCase()}function dt(e){return e.toUpperCase()}let dn="__rrweb_original__";function dr(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?de(t):null}function da(e,t,n){return"INPUT"===t&&("radio"===n||"checkbox"===n)?e.getAttribute("value")||"":e.value}function di(e,t){let n;try{n=new URL(e,t??window.location.href)}catch(e){return null}let r=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return r?.[1]??null}let ds={};function dl(e){let t=ds[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let a=t.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(t)}catch(e){}return ds[e]=r.bind(window)}function du(...e){return dl("setTimeout")(...e)}function dc(...e){return dl("clearTimeout")(...e)}function dd(e){try{return e.contentDocument}catch{}}let dp=1,df=RegExp("[^a-z0-9-_:]");function dh(){return dp++}let dm=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,dg=/^(?:[a-z+]+:)?\/\//i,dy=/^www\..*/i,d_=/^(data:)([^,]*),(.*)/i;function db(e,t){return(e||"").replace(dm,(e,n,r,a,i,o)=>{let s=r||i||o,l=n||a||"";if(!s)return e;if(dg.test(s)||dy.test(s)||d_.test(s))return`url(${l}${s}${l})`;if("/"===s[0])return`url(${l}${(t.indexOf("//")>-1?t.split("/").slice(0,3).join("/"):t.split("/")[0]).split("?")[0]+s}${l})`;let u=t.split("/"),c=s.split("/");for(let e of(u.pop(),c))if("."===e)continue;else".."===e?u.pop():u.push(e);return`url(${l}${u.join("/")}${l})`})}let dv=/^[^ \t\n\r\u000c]+/,dS=/^[, \t\n\r\u000c]+/,dE=new WeakMap;function dT(e,t){return t&&""!==t.trim()?dw(e,t):t}function dw(e,t){let n=dE.get(e);if(n||(n=e.createElement("a"),dE.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function dk(e,t,n,r,a,i,o){if(!r)return r;if("src"===n||"href"===n&&("use"!==t||"#"!==r[0])||"xlink:href"===n&&"#"!==r[0])return dT(e,r);if("background"===n&&("table"===t||"td"===t||"th"===t))return dT(e,r);if("srcset"===n)return function(e,t){if(""===t.trim())return t;let n=0;function r(e){let r,a=e.exec(t.substring(n));return a?(r=a[0],n+=r.length,r):""}let a=[];for(;r(dS),!(n>=t.length);){let i=r(dv);if(","===i.slice(-1))i=dT(e,i.substring(0,i.length-1)),a.push(i);else{let r="";i=dT(e,i);let o=!1;for(;;){let e=t.charAt(n);if(""===e){a.push((i+r).trim());break}if(o)")"===e&&(o=!1);else if(","===e){n+=1,a.push((i+r).trim());break}else"("===e&&(o=!0);r+=e,n+=1}}}return a.join(", ")}(e,r);if("style"===n){let t=db(r,dw(e));return o&&o.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{let n=e.split(";"),r=[];for(let e of n){if(!(e=e.trim()))continue;let n=e.indexOf(":");if(-1===n){r.push(e);continue}let a=e.slice(0,n).trim();t.has(a)||r.push(e)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,o)),t}else if("object"===t&&"data"===n)return dT(e,r);return"function"==typeof i?i(n,r,a):r}function dI(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function dR(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:dR(e.parentNode,t,n,r+1)}function dC(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch{return!1}}}function dA(e,t,n,r,a,i){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===o)return!1;if("INPUT"===o.tagName){let e=o.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,l=-1;if(i){if((l=dR(o,dC(r,a)))<0)return!0;s=dR(o,dC(t,n),l>=0?l:1/0)}else{if((s=dR(o,dC(t,n)))<0)return!1;l=dR(o,dC(r,a),s>=0?s:1/0)}return s>=0?!(l>=0)||s<=l:!(l>=0)&&!!i}catch(e){}return!!i}function dN(e){return null==e?"":e.toLowerCase()}function dx(e,t){let n,{doc:r,mirror:a,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:f=!1,inlineStylesheet:g=!0,maskInputOptions:y={},maskAttributeFn:_,maskTextFn:b,maskInputFn:v,slimDOMOptions:S,dataURLOptions:E={}
490,inlineImages:T=!1,recordCanvas:w=!1,onSerialize:k,onIframeLoad:I,iframeLoadTimeout:R=5e3,onBlockedImageLoad:C,onStylesheetLoad:A,stylesheetLoadTimeout:N=5e3,keepIframeSrcFn:x=()=>!1,newlyAddedElement:O=!1,ignoreCSSAttributes:P}=t,{preserveWhiteSpace:M=!0}=t,L=function(e,t){let{doc:n,mirror:r,blockClass:a,blockSelector:i,unblockSelector:o,maskAllText:s,maskAttributeFn:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:g={},maskTextFn:y,maskInputFn:_,dataURLOptions:b={},inlineImages:v,recordCanvas:S,keepIframeSrcFn:E,newlyAddedElement:T=!1,ignoreCSSAttributes:w}=t,k=function(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return 1===n?void 0:n}(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:c2.Document,childNodes:[],compatMode:e.compatMode};return{type:c2.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:c2.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:k};case e.ELEMENT_NODE:return function(e,t){let n,{doc:r,blockClass:a,blockSelector:i,unblockSelector:o,inlineStylesheet:s,maskInputOptions:l={},maskAttributeFn:u,maskInputFn:c,dataURLOptions:d={},inlineImages:p,recordCanvas:f,keepIframeSrcFn:g,newlyAddedElement:y=!1,rootId:_,maskTextClass:b,unmaskTextClass:v,maskTextSelector:S,unmaskTextSelector:E,ignoreCSSAttributes:T}=t,w=function(e,t,n,r){try{if(r&&e.matches(r))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch(e){}return!1}(e,a,i,o),k=function(e){if(e instanceof HTMLFormElement)return"form";let t=de(e.tagName);return df.test(t)?"div":t}(e),I={},R=e.attributes.length;for(let t=0;t<R;t++){let n=e.attributes[t];n.name&&!dI(k,n.name,n.value)&&(I[n.name]=dk(r,k,de(n.name),n.value,e,u,T))}if("link"===k&&s){let t=Array.from(r.styleSheets).find(t=>t.href===e.href),n=null;t&&(n=c5(t)),n&&(I.rel=null,I.href=null,I.crossorigin=null,I._cssText=db(n,t.href))}if("style"===k&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=c5(e.sheet);t&&(I._cssText=db(t,dw(r)))}if("input"===k||"textarea"===k||"select"===k||"option"===k){let t=dr(e),n=da(e,dt(k),t),r=e.checked;if("submit"!==t&&"button"!==t&&n){let r=dA(e,b,S,v,E,c7({type:t,tagName:dt(k),maskInputOptions:l}));I.value=c9({isMasked:r,element:e,value:n,maskInputFn:c})}r&&(I.checked=r)}if("option"===k&&(e.selected&&!l.select?I.selected=!0:delete I.selected),"canvas"===k&&f){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let a=t.getImageData;if(new Uint32Array((dn in a?a[dn]:a).call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(I.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){let t=e.toDataURL(d.type,d.quality),n=r.createElement("canvas");n.width=e.width,n.height=e.height,t!==n.toDataURL(d.type,d.quality)&&(I.rr_dataURL=t)}}if("img"===k&&p){h||(m=(h=r.createElement("canvas")).getContext("2d"));let t=e.currentSrc||e.getAttribute("src")||"<unknown-src>",n=e.crossOrigin,a=()=>{e.removeEventListener("load",a);try{h.width=e.naturalWidth,h.height=e.naturalHeight,m.drawImage(e,0,0),I.rr_dataURL=h.toDataURL(d.type,d.quality)}catch(n){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?a():e.addEventListener("load",a);return}console.warn(`Cannot inline img src=${t}! Error: ${n}`)}"anonymous"===e.crossOrigin&&(n?I.crossOrigin=n:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?a():e.addEventListener("load",a)}if(("audio"===k||"video"===k)&&(I.rr_mediaState=e.paused?"paused":"played",I.rr_mediaCurrentTime=e.currentTime),!y&&(e.scrollLeft&&(I.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(I.rr_scrollTop=e.scrollTop)),w){let{width:t,height:n}=e.getBoundingClientRect();I={class:I.class,rr_width:`${t}px`,rr_height:`${n}px`}}"iframe"!==k||g(I.src)||(w||dd(e)||(I.rr_src=I.src),delete I.src);try{customElements.get(k)&&(n=!0)}catch(e){}return{type:c2.Element,tagName:k,attributes:I,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:w,rootId:_,isCustom:n}}(e,{doc:n,blockClass:a,blockSelector:i,unblockSelector:o,inlineStylesheet:f,maskAttributeFn:l,maskInputOptions:g,maskInputFn:_,dataURLOptions:b,inlineImages:v,recordCanvas:S,keepIframeSrcFn:E,newlyAddedElement:T,rootId:k,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,ignoreCSSAttributes:w});case e.TEXT_NODE:return function(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:a,maskTextSelector:i,unmaskTextSelector:o,maskTextFn:s,maskInputOptions:l,maskInputFn:u,rootId:c}=t,d=e.parentNode&&e.parentNode.tagName,p=e.textContent,f="STYLE"===d||void 0,h="SCRIPT"===d||void 0,m="TEXTAREA"===d||void 0;if(f&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=c5(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=db(p,dw(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");let g=dA(e,r,i,a,o,n);return f||h||m||!p||!g||(p=s?s(p,e.parentElement):p.replace(/[\S]/g,"*")),m&&p&&(l.textarea||g)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=c9({isMasked:dA(e,r,i,a,o,c7({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:u})),{type:c2.Text,textContent:p||"",isStyle:f,rootId:c}}(e,{doc:n,maskAllText:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,maskTextFn:y,maskInputOptions:g,maskInputFn:_,rootId:k});case e.CDATA_SECTION_NODE:return{type:c2.CDATA,textContent:"",rootId:k};case e.COMMENT_NODE:return{type:c2.Comment,textContent:e.textContent||"",rootId:k};default:return!1}}(e,{doc:r,mirror:a,blockClass:i,blockSelector:o,maskAllText:l,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,inlineStylesheet:g,maskInputOptions:y,maskAttributeFn:_,maskTextFn:b,maskInputFn:v,dataURLOptions:E,inlineImages:T,recordCanvas:w,keepIframeSrcFn:x,newlyAddedElement:O,ignoreCSSAttributes:P});if(!L)return console.warn(e,"not serialized"),null;n=a.hasNode(e)?a.getId(e):!function(e,t){if(t.comment&&e.type===c2.Comment)return!0;
490if(e.type===c2.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===di(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(dN(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===dN(e.attributes.name)||"icon"===dN(e.attributes.rel)||"apple-touch-icon"===dN(e.attributes.rel)||"shortcut icon"===dN(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&dN(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(dN(e.attributes.property).match(/^(og|twitter|fb):/)||dN(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===dN(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===dN(e.attributes.name)||"googlebot"===dN(e.attributes.name)||"bingbot"===dN(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===dN(e.attributes.name)||"generator"===dN(e.attributes.name)||"framework"===dN(e.attributes.name)||"publisher"===dN(e.attributes.name)||"progid"===dN(e.attributes.name)||dN(e.attributes.property).match(/^article:/)||dN(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===dN(e.attributes.name)||"yandex-verification"===dN(e.attributes.name)||"csrf-token"===dN(e.attributes.name)||"p:domain_verify"===dN(e.attributes.name)||"verify-v1"===dN(e.attributes.name)||"verification"===dN(e.attributes.name)||"shopify-checkout-api-token"===dN(e.attributes.name)))return!0}}return!1}(L,S)&&(M||L.type!==c2.Text||L.isStyle||L.textContent.trim().length)?dh():-2;let D=Object.assign(L,{id:n});if(a.add(e,D),-2===n)return null;k&&k(e);let U=!f;if(D.type===c2.Element){U=U&&!D.needBlock;let t=e.shadowRoot;t&&c4(t)&&(D.isShadowHost=!0)}if((D.type===c2.Document||D.type===c2.Element)&&U){S.headWhitespace&&D.type===c2.Element&&"head"===D.tagName&&(M=!1);let t={doc:r,mirror:a,blockClass:i,blockSelector:o,maskAllText:l,unblockSelector:s,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:f,inlineStylesheet:g,maskInputOptions:y,maskAttributeFn:_,maskTextFn:b,maskInputFn:v,slimDOMOptions:S,dataURLOptions:E,inlineImages:T,recordCanvas:w,preserveWhiteSpace:M,onSerialize:k,onIframeLoad:I,iframeLoadTimeout:R,onBlockedImageLoad:C,onStylesheetLoad:A,stylesheetLoadTimeout:N,keepIframeSrcFn:x,ignoreCSSAttributes:P};for(let n of e.childNodes?Array.from(e.childNodes):[]){let e=dx(n,t);e&&D.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=dx(n,t);r&&(c4(e.shadowRoot)&&(r.isShadow=!0),D.childNodes.push(r))}}if(e.parentNode&&c3(e.parentNode)&&c4(e.parentNode)&&(D.isShadow=!0),D.type!==c2.Element||"iframe"!==D.tagName||D.needBlock||function(e,t,n){let r,a=function(e){try{return e.contentWindow}catch{}}(e);if(!a)return;let i=!1;try{r=a.document.readyState}catch(e){return}if("complete"!==r){let r=du(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{dc(r),i=!0,t()});return}let o="about:blank";if(a.location.href!==o||e.src===o||""===e.src)return du(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=dd(e);if(t&&I){let n=dx(t,{doc:t,mirror:a,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:g,maskInputOptions:y,maskAttributeFn:_,maskTextFn:b,maskInputFn:v,slimDOMOptions:S,dataURLOptions:E,inlineImages:T,recordCanvas:w,preserveWhiteSpace:M,onSerialize:k,onIframeLoad:I,iframeLoadTimeout:R,onStylesheetLoad:A,stylesheetLoadTimeout:N,keepIframeSrcFn:x,ignoreCSSAttributes:P});n&&I(e,n)}},R),D.type===c2.Element&&"img"===D.tagName&&!e.complete&&D.needBlock){let t=()=>{if(e.isConnected&&!e.complete&&C)try{let t=e.getBoundingClientRect();t.width>0&&t.height>0&&C(e,D,t)}catch(e){}e.removeEventListener("load",t)};e.isConnected&&e.addEventListener("load",t)}return D.type===c2.Element&&"link"===D.tagName&&"string"==typeof D.attributes.rel&&("stylesheet"===D.attributes.rel||"preload"===D.attributes.rel&&"string"==typeof D.attributes.href&&"css"===di(D.attributes.href))&&function(e,t,n){let r,a=!1;try{r=e.sheet}catch(e){r=null}if(r)return;let i=du(()=>{a||(t(),a=!0)},n);e.addEventListener("load",()=>{dc(i),a=!0,t()})}(e,()=>{if(A){let t=dx(e,{doc:r,mirror:a,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:p,skipChild:!1,inlineStylesheet:g,maskInputOptions:y,maskAttributeFn:_,maskTextFn:b,maskInputFn:v,slimDOMOptions:S,dataURLOptions:E,inlineImages:T,recordCanvas:w,preserveWhiteSpace:M,onSerialize:k,onIframeLoad:I,iframeLoadTimeout:R,onStylesheetLoad:A,stylesheetLoadTimeout:N,keepIframeSrcFn:x,ignoreCSSAttributes:P});t&&A(e,t)}},N),D.type===c2.Element&&delete D.needBlock,D}function dO(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}let dP="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",dM={map:{},getId:()=>(console.error(dP),-1),getNode:()=>(console.error(dP),null),removeNodeFromMap(){console.error(dP)},has:()=>(console.error(dP),!1),reset(){console.error(dP)}};function dL(e,t,n={}){let r=null,a=0;return function(...i){let o=Date.now();a||!1!==n.leading||(a=o);let s=t-(o-a),l=this;s<=0||s>t?(r&&(function(...e){dX("clearTimeout")(...e)}
490(r),r=null),a=o,e.apply(l,i)):r||!1===n.trailing||(r=dZ(()=>{a=!1===n.leading?0:Date.now(),r=null,e.apply(l,i)},s))}}function dD(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],a=n(r);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=a,()=>{e[t]=r}}catch{return()=>{}}}"u">typeof window&&window.Proxy&&window.Reflect&&(dM=new Proxy(dM,{get:(e,t,n)=>("map"===t&&console.error(dP),Reflect.get(e,t,n))}));let dU=Date.now;function dB(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function dF(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function dz(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function dj(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function d$(e,t,n,r,a){if(!e)return!1;let i=dj(e);if(!i)return!1;let o=dC(t,n);if(!a){let e=r&&i.matches(r);return o(i)&&!e}let s=dR(i,o),l=-1;return!(s<0)&&(r&&(l=dR(i,dC(null,r))),s>-1&&l<0||s<l)}function dH(e,t){return -2===t.getId(e)}function dW(e){return!!e.changedTouches}function dG(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function dq(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function dY(e){return!!e?.shadowRoot}/[1-9][0-9]{12}/.test(Date.now().toString())||(dU=()=>new Date().getTime());class dV{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let n;return this.has(e)?this.getId(e):(n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function dJ(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function dK(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let n=function(e){let t,n=e;for(;t=dJ(n);)n=t;return n}(e);return t.contains(n)}(e))}let dQ={};function dX(e){let t=dQ[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let a=t.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(t)}catch(e){}return dQ[e]=r.bind(window)}function dZ(...e){return dX("setTimeout")(...e)}var d0=((M=d0||{})[M.DomContentLoaded=0]="DomContentLoaded",M[M.Load=1]="Load",M[M.FullSnapshot=2]="FullSnapshot",M[M.IncrementalSnapshot=3]="IncrementalSnapshot",M[M.Meta=4]="Meta",M[M.Custom=5]="Custom",M[M.Plugin=6]="Plugin",M),d1=((L=d1||{})[L.Mutation=0]="Mutation",L[L.MouseMove=1]="MouseMove",L[L.MouseInteraction=2]="MouseInteraction",L[L.Scroll=3]="Scroll",L[L.ViewportResize=4]="ViewportResize",L[L.Input=5]="Input",L[L.TouchMove=6]="TouchMove",L[L.MediaInteraction=7]="MediaInteraction",L[L.StyleSheetRule=8]="StyleSheetRule",L[L.CanvasMutation=9]="CanvasMutation",L[L.Font=10]="Font",L[L.Log=11]="Log",L[L.Drag=12]="Drag",L[L.StyleDeclaration=13]="StyleDeclaration",L[L.Selection=14]="Selection",L[L.AdoptedStyleSheet=15]="AdoptedStyleSheet",L[L.CustomElement=16]="CustomElement",L),d2=((D=d2||{})[D.MouseUp=0]="MouseUp",D[D.MouseDown=1]="MouseDown",D[D.Click=2]="Click",D[D.ContextMenu=3]="ContextMenu",D[D.DblClick=4]="DblClick",D[D.Focus=5]="Focus",D[D.Blur=6]="Blur",D[D.TouchStart=7]="TouchStart",D[D.TouchMove_Departed=8]="TouchMove_Departed",D[D.TouchEnd=9]="TouchEnd",D[D.TouchCancel=10]="TouchCancel",D),d3=((U=d3||{})[U.Mouse=0]="Mouse",U[U.Pen=1]="Pen",U[U.Touch=2]="Touch",U),d4=((B=d4||{})[B.Play=0]="Play",B[B.Pause=1]="Pause",B[B.Seeked=2]="Seeked",B[B.VolumeChange=3]="VolumeChange",B[B.RateChange=4]="RateChange",B);let d5=e=>g?(...t)=>{try{return e(...t)}catch(e){if(g&&!0===g(e))return()=>{};throw e}}:e;for(var d6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
490+/",d8="u"<typeof Uint8Array?[]:new Uint8Array(256),d7=0;d7<d6.length;d7++)d8[d6.charCodeAt(d7)]=d7;class d9{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}function pe(e){try{return e.contentDocument}catch(e){}}function pt(e){try{return e.contentWindow}catch(e){}}class pn{constructor(e){this.doc=e,this.unattachedDoc=null}parse(e){return this.parseWithConstructableStylesheet(e)||this.parseWithDetachedElement(e)}parseWithConstructableStylesheet(e){if("u"<typeof CSSStyleSheet||"function"!=typeof CSSStyleSheet.prototype.replaceSync)return null;try{let t=new CSSStyleSheet;t.replaceSync(`x { ${e} }`);let n=t.cssRules[0];if(!n||n.type!==CSSRule.STYLE_RULE)return null;return n.style}catch{return null}}parseWithDetachedElement(e){let t=this.getUnattachedDoc().createElement("span");return t.setAttribute("style",e),t.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}return this.unattachedDoc}}class pr{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let n=0;n<e;n++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}let pa=(e,t)=>`${e}@${t}`;class pi{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new pr,r=e=>{let t=e,n=-2;for(;-2===n;)n=(t=t&&t.nextSibling)&&this.mirror.getId(t);return n},a=a=>{if(!a.parentNode||!dK(a))return;let i=c3(a.parentNode)?this.mirror.getId(dJ(a)):this.mirror.getId(a.parentNode),o=r(a);if(-1===i||-1===o)return n.addNode(a);let s=dx(a,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{dG(e,this.mirror)&&!d$(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),dq(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),dY(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{if(d$(e,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(e,t);let n=pt(e);n&&this.canvasManager.addWindow(n),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});s&&(e.push({parentId:i,nextId:o,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!ps(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&a(e);for(let e of this.addedSet)pl(this.droppedSet,e)||ps(this.removes,e,this.mirror)?pl(this.movedSet,e)?a(e):this.droppedSet.add(e):a(e);let i=null;for(;n.length;){let e=null;if(i){let t=this.mirror.getId(i.value.parentNode),n=r(i.value);-1!==t&&-1!==n&&(e=i)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);
490if(-1===r(n.value))continue;if(-1!==t){e=n;break}{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(-1!==this.mirror.getId(r)){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}i=e.previous,n.removeNode(e.value),a(e.value)}let o={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(o.texts.length||o.attributes.length||o.removes.length||o.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(o))},this.processMutation=e=>{if(!dH(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;d$(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:dA(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,dj(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if("value"===n){let n=dr(t),a=t.tagName;r=da(t,a,n);let i=c7({maskInputOptions:this.maskInputOptions,tagName:a,type:n});r=c9({isMasked:dA(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,i),element:t,value:r,maskInputFn:this.maskInputFn})}if(d$(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let a=this.attributeMap.get(e.target);if("IFRAME"===t.tagName&&"src"===n&&!this.keepIframeSrcFn(r)){if(pe(t))return;n="rr_src"}if(a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(e.target,a)),"type"===n&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!dI(t.tagName,n)&&(a.attributes[n]=dk(this.doc,de(t.tagName),de(n),r,t,this.maskAttributeFn),"style"===n)){let n=e.oldValue?this.styleDeclarationParser.parse(e.oldValue):null;for(let e of Array.from(t.style)){let r=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e);r!==(n?.getPropertyValue(e)||"")||i!==(n?.getPropertyPriority(e)||"")?""===i?a.styleDiff[e]=r:a.styleDiff[e]=[r,i]:a._unchangedStyles[e]=[r,i]}if(n)for(let e of Array.from(n))""===t.style.getPropertyValue(e)&&(a.styleDiff[e]=!1)}break}case"childList":if(d$(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=c3(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);d$(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||dH(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(po(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===n||function e(t,n){if(c3(t))return!1;let r=n.getId(t);return!n.has(r)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,n))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[pa(n,r)]?po(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:!!(c3(e.target)&&c4(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(dH(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&-1!==n&&(this.movedMap[pa(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!d$(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEac
490h(e=>this.genAdds(e)),dY(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(t=>{this[t]=e[t]}),this.styleDeclarationParser=new pn(this.doc)}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function po(e,t){e.delete(t),t.childNodes?.forEach(t=>po(e,t))}function ps(e,t,n){return 0!==e.length&&function(e,t,n){let r=t.parentNode;for(;r;){let t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}(e,t,n)}function pl(e,t){return 0!==e.size&&function e(t,n){let{parentNode:r}=n;return!!r&&(!!t.has(r)||e(t,r))}(e,t)}let pu=[];function pc(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function pd(e,t){let n=new pi;pu.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,a=window?.Zone?.__symbol__?.("MutationObserver");a&&window[a]&&(r=window[a]);let i=new r(d5(t=>{e.onMutation&&!1===e.onMutation(t)||n.processMutations.bind(n)(t)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function pp({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:i,sampling:o}){return dO("scroll",d5(dL(d5(o=>{let s=pc(o);if(!s||d$(s,r,a,i,!0))return;let l=n.getId(s);if(s===t&&t.defaultView){let n=dB(t.defaultView);e({id:l,x:n.left,y:n.top})}else e({id:l,x:s.scrollLeft,y:s.scrollTop})}),o.scroll||100)),t)}let pf=["INPUT","TEXTAREA","SELECT"],ph=new WeakMap;function pm(e){var t=[];if(pb("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||pb("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||pb("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||pb("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){let n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}function pg(e,t,n){let r,a;return e?(e.ownerNode?r=t.getId(e.ownerNode):a=n.getId(e),{styleId:a,id:r}):{}}function py({mirror:e,stylesheetManager:t},n){let r=null;r="#document"===n.nodeName?e.getId(n):e.getId(n.host);let a="#document"===n.nodeName?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,i=a?.prototype?Object.getOwnPropertyDescriptor(a?.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&a&&i?(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return i.get?.call(this)},set(e){let n=i.set?.call(this,e);if(null!==r&&-1!==r)try{t.adoptStyleSheets(e,r)}catch(e){}return n}}),d5(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})})):()=>{}}function p_(e,t={}){let n,r=e.doc.defaultView;if(!r)return()=>{};e.recordDOM&&(n=pd(e,e.doc));let a=function({mousemoveCb:e,sampling:t,doc:n,mirror:r}){let a;if(!1===t.mousemove)return()=>{};let i="number"==typeof t.mousemove?t.mousemove:50,o="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,s=[],l=dL(d5(t=>{let n=Date.now()-a;e(s.map(e=>(e.timeOffset-=n,e)),t),s=[],a=null}),o),u=d5(dL(d5(e=>{let t=pc(e),{clientX:n,clientY:i}=dW(e)?e.changedTouches[0]:e;a||(a=dU()),s.push({x:n,y:i,id:r.getId(t),timeOffset:dU()-a}),l("u">typeof DragEvent&&e instanceof DragEvent?d1.Drag:e instanceof MouseEvent?d1.MouseMove:d1.TouchMove)}),i,{trailing:!1})),c=[dO("mousemove",u,n),dO("touchmove",u,n),dO("drag",u,n)];return d5(()=>
490{c.forEach(e=>e())})}(e),i=function({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:i,sampling:o}){if(!1===o.mouseInteraction)return()=>{};let s=!0===o.mouseInteraction||void 0===o.mouseInteraction?{}:o.mouseInteraction,l=[],u=null;return Object.keys(d2).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEach(o=>{let s=de(o),c=t=>{let s=pc(t);if(d$(s,r,a,i,!0))return;let l=null,c=o;if("pointerType"in t){switch(t.pointerType){case"mouse":l=d3.Mouse;break;case"touch":l=d3.Touch;break;case"pen":l=d3.Pen}l===d3.Touch?d2[o]===d2.MouseDown?c="TouchStart":d2[o]===d2.MouseUp&&(c="TouchEnd"):d3.Pen}else dW(t)&&(l=d3.Touch);null!==l?(u=l,(c.startsWith("Touch")&&l===d3.Touch||c.startsWith("Mouse")&&l===d3.Mouse)&&(l=null)):d2[o]===d2.Click&&(l=u,u=null);let d=dW(t)?t.changedTouches[0]:t;if(!d)return;let p=n.getId(s),{clientX:f,clientY:h}=d;d5(e)({type:d2[c],id:p,x:f,y:h,...null!==l&&{pointerType:l}})};if(window.PointerEvent)switch(d2[o]){case d2.MouseDown:case d2.MouseUp:s=s.replace("mouse","pointer");break;case d2.TouchStart:case d2.TouchEnd:return}l.push(dO(s,c,t))}),d5(()=>{l.forEach(e=>e())})}(e),o=pp(e),s=function({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return dO("resize",d5(dL(d5(()=>{let t=dF(),a=dz();(n!==t||r!==a)&&(e({width:Number(a),height:Number(t)}),n=t,r=a)}),200)),t)}(e,{win:r}),l=function({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:i,ignoreClass:o,ignoreSelector:s,maskInputOptions:l,maskInputFn:u,sampling:c,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:m}){function g(e){let n=pc(e),c=e.isTrusted,g=n&&dt(n.tagName);if("OPTION"===g&&(n=n.parentElement),!n||!g||0>pf.indexOf(g)||d$(n,r,a,i,!0))return;let _=n;if(_.classList.contains(o)||s&&_.matches(s))return;let b=dr(n),v=da(_,g,b),S=!1,E=c7({maskInputOptions:l,tagName:g,type:b}),T=dA(n,p,h,f,m,E);("radio"===b||"checkbox"===b)&&(S=n.checked),v=c9({isMasked:T,element:n,value:v,maskInputFn:u}),y(n,d?{text:v,isChecked:S,userTriggered:c}:{text:v,isChecked:S});let w=n.name;"radio"===b&&w&&S&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach(e=>{if(e!==n){let t=c9({isMasked:T,element:e,value:da(e,g,b),maskInputFn:u});y(e,d?{text:t,isChecked:!S,userTriggered:!1}:{text:t,isChecked:!S})}})}function y(t,r){let a=ph.get(t);if(!a||a.text!==r.text||a.isChecked!==r.isChecked){ph.set(t,r);let a=n.getId(t);d5(e)({...r,id:a})}}let _=("last"===c.input?["change"]:["input","change"]).map(e=>dO(e,d5(g),t)),b=t.defaultView;if(!b)return()=>{_.forEach(e=>e())};let v=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),S=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return v&&v.set&&_.push(...S.map(e=>(function e(t,n,r,a,i=window){let o=i.Object.getOwnPropertyDescriptor(t,n);return i.Object.defineProperty(t,n,a?r:{set(e){dZ(()=>{r.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>e(t,n,o||{},!0)})(e[0],e[1],{set(){d5(g)({target:this,isTrusted:!1})}},!1,b))),d5(()=>{_.forEach(e=>e())})}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:a,sampling:i,doc:o}){let s=d5(o=>dL(d5(i=>{let s=pc(i);if(!s||d$(s,t,n,r,!0))return;let{currentTime:l,volume:u,muted:c,playbackRate:d}=s;e({type:o,id:a.getId(s),currentTime:l,volume:u,muted:c,playbackRate:d})}),i.media||500)),l=[dO("play",s(d4.Play),o),dO("pause",s(d4.Pause),o),dO("seeked",s(d4.Seeked),o),dO("volumechange",s(d4.VolumeChange),o),dO("ratechange",s(d4.RateChange),o)];return d5(()=>{l.forEach(e=>e())})}(e),c=()=>{},d=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){let a,i;if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:d5((r,a,i)=>{let[o,s]=i,{id:l,styleId:u}=pg(a,t,n.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:o,index:s}]}),r.apply(a,i)})});let s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:d5((r,a,i)=>{let[o]=i,{id:s,styleId:l}=pg(a,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:o}]}),r.apply(a,i)})}),r.CSSStyleSheet.prototype.replace&&(a=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:d5((r,a,i)=>{let[o]=i,{id:s,styleId:l}=pg(a,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replace:o}),r.apply(a,i)})})),r.CSSStyleSheet.prototype.replaceSync&&(i=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(i,{apply:d5((r,a,i)=>{let[o]=i,{id:s,styleId:l}=pg(a,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replaceSync:o}),r.apply(a,i)})}));let l={};pv("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(pv("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),pv("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),pv("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));let u={};return Object.entries(l).forEach(([r,a])=>{u[r]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=new Proxy(u[r].insertRule,{apply:d5((r,a,i)=>{let[o,s]=i,{id:l,styleId:u}=pg(a.parentStyleSheet,t,n.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:o,index:[...pm(a),s||0]}]}),r.apply(a,i)})}),a.prototype.deleteRule=new Proxy(u[r].deleteRule,{apply:d5((r,a,i)=>{let[o]=i,{id:s,styleId:l}=pg(a.parentStyleSheet,t,n.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:[...pm(a),o]}]}),r.apply(a,i)})})}),d5(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=s,a&&(r.CSSStyleSheet.prototype.replace=a),i&&(r.CSSStyleSheet.prototype.replaceSync=i),Ob
490ject.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:r}),d=py(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:a}){let i=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:d5((a,o,s)=>{let[l,u,c]=s;if(n.has(l))return i.apply(o,[l,u,c]);let{id:d,styleId:p}=pg(o.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:l,value:u,priority:c},index:pm(o.parentRule)}),a.apply(o,s)})});let o=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:d5((a,i,s)=>{let[l]=s;if(n.has(l))return o.apply(i,[l]);let{id:u,styleId:c}=pg(i.parentRule?.parentStyleSheet,t,r.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,remove:{property:l},index:pm(i.parentRule)}),a.apply(i,s)})}),d5(()=>{a.CSSStyleDeclaration.prototype.setProperty=i,a.CSSStyleDeclaration.prototype.removeProperty=o})}(e,{win:r}),e.collectFonts&&(f=function({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],a=new WeakMap,i=n.FontFace;n.FontFace=function(e,t,n){let r=new i(e,t,n);return a.set(r,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let o=dD(t.fonts,"add",function(t){return function(n){return dZ(d5(()=>{let t=a.get(n);t&&(e(t),a.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=i}),r.push(o),d5(()=>{r.forEach(e=>e())})}(e)));let h=function(e){let{doc:t,mirror:n,blockClass:r,blockSelector:a,unblockSelector:i,selectionCb:o}=e,s=!0,l=d5(()=>{let e=t.getSelection();if(!e||s&&e?.isCollapsed)return;s=e.isCollapsed||!1;let l=[],u=e.rangeCount||0;for(let t=0;t<u;t++){let{startContainer:o,startOffset:s,endContainer:u,endOffset:c}=e.getRangeAt(t);d$(o,r,a,i,!0)||d$(u,r,a,i,!0)||l.push({start:n.getId(o),startOffset:s,end:n.getId(u),endOffset:c})}o({ranges:l})});return l(),dO("selectionchange",l)}(e),m=function({doc:e,customElementCb:t}){let n=e.defaultView;return n&&n.customElements?dD(n.customElements,"define",function(e){return function(n,r,a){try{t({define:{name:n}})}catch(e){}return e.apply(this,[n,r,a])}}):()=>{}}(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,r,t.options));return d5(()=>{pu.forEach(e=>e.reset()),n?.disconnect(),a(),i(),o(),s(),l(),u(),c(),d(),p(),f(),h(),m(),g.forEach(e=>e())})}function pb(e){return void 0!==window[e]}function pv(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class pS{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let a=n||this.getIdToRemoteIdMap(e),i=r||this.getRemoteIdToIdMap(e),o=a.get(t);return o||(o=this.generateIdFn(),a.set(t,o),i.set(o,t)),o}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}
490getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let a=r.get(t);return a||-1}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class pE{constructor(){this.crossOriginIframeMirror=new pS(dh),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class pT{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new pS(dh),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new pS(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0);let t=pt(e);t&&this.crossOriginIframeMap.set(t,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&pt(e)?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);let n=pe(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let n=this.transformCrossOriginEvent(t,e.data.event);n&&this.wrappedEmit(n,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case d0.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:d0.IncrementalSnapshot,data:{source:d1.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case d0.Meta:case d0.Load:case d0.DomContentLoaded:break;case d0.Plugin:return t;case d0.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case d0.IncrementalSnapshot:switch(t.data.source){case d1.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,["parentId","id"])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,["id"])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case d1.Drag:case d1.TouchMove:case d1.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case d1.ViewportResize:return!1;case d1.MediaInteraction:case d1.MouseInteraction:case d1.Scroll:case d1.CanvasMutation:case d1.Input:return this.replaceIds(t.data,e,["id"]),t;case d1.StyleSheetRule:case d1.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case d1.Font:return t;case d1.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case d1.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,n,r){for(let a of r)(Array.isArray(t[a])||"number"==typeof t[a])&&(Array.isArray(t[a])?t[a]=e.getIds(n,t[a]):t[a]=e.getId(n,t[a]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEac
490h(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===c2.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class pw{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class pk{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!c4(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=pd({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(pp({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),dZ(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(py({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=pe(e),n=pt(e);t&&n&&this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(dD(e.prototype,"attachShadow",function(e){return function(r){let a=e.call(this,r);return this.shadowRoot&&dK(this)&&n.addShadowRoot(this.shadowRoot,t),a}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class pI{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new dV,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:c6(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class pR{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){dX("requestAnimationFrame")(...e)}(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}let pC=new c8;function pA(e={}){let t,{emit:n,checkoutEveryNms:r,checkoutEveryNth:a,blockClass:i="rr-block",blockSelector:o=null,unblockSelector:s=null,ignoreClass:l="rr-ignore",ignoreSelector:u=null,maskAllText:c=!1,maskTextClass:d="rr-mask",unmaskTextClass:p=null,maskTextSelector:f=null,unmaskTextSelector:h=null,inlineStylesheet:m=!0,maskAllInputs:b,maskInputOptions:v,slimDOMOptions:S,maskAttributeFn:E,maskInputFn:T,maskTextFn:w,maxCanvasSize:k=null,packFn:I,sampling:R={},dataURLOptions:C={},mousemoveWait:A,recordDOM:N=!0,recordCanvas:x=!1,recordCrossOriginIframes:O=!1,recordAfter:P="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:L=!1,inlineImages:D=!1,plugins:U,keepIframeSrcFn:B=()=>!1,ignoreCSSAttributes:F=new Set([]),errorHandler:z,onMutation:j,getCanvasManager:$}=e;g=z;let H=!O||window.parent===window,W=!1;if(!H)try{window.parent.document&&(W=!1)}catch(e){W=!0}if(H&&!n)throw Error("emit function is required");if(!H&&!W)return()=>{};void 0!==A&&void 0===R.mousemove&&(R.mousemove=A),pC.reset();let G=!0===b?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==v?v:{},q=!0===S||"all"===S?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===S,headMetaDescKeywords:"all"===S}:S||{};!function(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError("1 argument is required");do if(this===t)return!0;while(t=t&&t.parentNode)return!1})}();let Y=0,V=e=>{for(let t of U||[])t.eventProcessor&&(e=t.eventProcessor(e));return I&&!W&&(e=I(e)),e};y=(e,i)=>{if(e.timestamp=dU(),pu[0]?.isFrozen()&&e.type!==d0.FullSnapshot&&(e.type!==d0.IncrementalSnapshot||e.data.source!==d1.Mutation)&&pu.forEach(e
490=>e.unfreeze()),H)n?.(V(e),i);else if(W){let t={type:"rrweb",event:V(e),origin:window.location.origin,isCheckout:i};window.parent.postMessage(t,"*")}if(e.type===d0.FullSnapshot)t=e,Y=0;else if(e.type===d0.IncrementalSnapshot){if(e.data.source===d1.Mutation&&e.data.isAttachIframe)return;Y++;let n=a&&Y>=a,i=r&&t&&e.timestamp-t.timestamp>r;(n||i)&&er(!0)}};let J=e=>{y({type:d0.IncrementalSnapshot,data:{source:d1.Mutation,...e}})},K=e=>y({type:d0.IncrementalSnapshot,data:{source:d1.Scroll,...e}}),Q=e=>y({type:d0.IncrementalSnapshot,data:{source:d1.CanvasMutation,...e}}),X=new pI({mutationCb:J,adoptedStyleSheetCb:e=>y({type:d0.IncrementalSnapshot,data:{source:d1.AdoptedStyleSheet,...e}})}),Z="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new pE:new pT({mirror:pC,mutationCb:J,stylesheetManager:X,recordCrossOriginIframes:O,wrappedEmit:y});for(let e of U||[])e.getMirror&&e.getMirror({nodeMirror:pC,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});let ee=new pR,et=function(e,t){try{return e?e(t):new d9}catch{return console.warn("Unable to initialize CanvasManager"),new d9}}($,{mirror:pC,win:window,mutationCb:e=>y({type:d0.IncrementalSnapshot,data:{source:d1.CanvasMutation,...e}}),recordCanvas:x,blockClass:i,blockSelector:o,unblockSelector:s,maxCanvasSize:k,sampling:R.canvas,dataURLOptions:C,errorHandler:z}),en="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new pw:new pk({mutationCb:J,scrollCb:K,bypassOptions:{onMutation:j,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskInputOptions:G,dataURLOptions:C,maskAttributeFn:E,maskTextFn:w,maskInputFn:T,recordCanvas:x,inlineImages:D,sampling:R,slimDOMOptions:q,iframeManager:Z,stylesheetManager:X,canvasManager:et,keepIframeSrcFn:B,processedNodeManager:ee,ignoreCSSAttributes:F},mirror:pC}),er=(e=!1)=>{if(!N)return;y({type:d0.Meta,data:{href:window.location.href,width:dz(),height:dF()}},e),X.reset(),en.init(),pu.forEach(e=>e.lock());let t=function(e,t){let{mirror:n=new c8,blockClass:r="rr-block",blockSelector:a=null,unblockSelector:i=null,maskAllText:o=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:u=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOM:_=!1,dataURLOptions:b,preserveWhiteSpace:v,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:T,onBlockedImageLoad:w,onStylesheetLoad:k,stylesheetLoadTimeout:I,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:C=new Set([])}=t||{};return dx(e,{doc:e,mirror:n,blockClass:r,blockSelector:a,unblockSelector:i,maskAllText:o,maskTextClass:s,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===h?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===h?{}:h,maskAttributeFn:m,maskTextFn:g,maskInputFn:y,slimDOMOptions:!0===_||"all"===_?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===_,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===_?{}:_,dataURLOptions:b,inlineImages:p,recordCanvas:f,preserveWhiteSpace:v,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:T,onBlockedImageLoad:w,onStylesheetLoad:k,stylesheetLoadTimeout:I,keepIframeSrcFn:R,newlyAddedElement:!1,ignoreCSSAttributes:C})}(document,{mirror:pC,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,inlineStylesheet:m,maskAllInputs:G,maskAttributeFn:E,maskInputFn:T,maskTextFn:w,slimDOM:q,dataURLOptions:C,recordCanvas:x,inlineImages:D,onSerialize:e=>{dG(e,pC)&&Z.addIframe(e),dq(e,pC)&&X.trackLinkElement(e),dY(e)&&en.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t);let n=pt(e);n&&et.addWindow(n),en.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{X.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{J({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:B,ignoreCSSAttributes:F});if(!t)return console.warn("Failed to snapshot the document");y({type:d0.FullSnapshot,data:{node:t,initialOffset:dB(window)}}
490),pu.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&X.adoptStyleSheets(document.adoptedStyleSheets,pC.getId(document))};_=er;try{let e=[],t=e=>d5(p_)({onMutation:j,mutationCb:J,mousemoveCb:(e,t)=>y({type:d0.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>y({type:d0.IncrementalSnapshot,data:{source:d1.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>y({type:d0.IncrementalSnapshot,data:{source:d1.ViewportResize,...e}}),inputCb:e=>y({type:d0.IncrementalSnapshot,data:{source:d1.Input,...e}}),mediaInteractionCb:e=>y({type:d0.IncrementalSnapshot,data:{source:d1.MediaInteraction,...e}}),styleSheetRuleCb:e=>y({type:d0.IncrementalSnapshot,data:{source:d1.StyleSheetRule,...e}}),styleDeclarationCb:e=>y({type:d0.IncrementalSnapshot,data:{source:d1.StyleDeclaration,...e}}),canvasMutationCb:Q,fontCb:e=>y({type:d0.IncrementalSnapshot,data:{source:d1.Font,...e}}),selectionCb:e=>{y({type:d0.IncrementalSnapshot,data:{source:d1.Selection,...e}})},customElementCb:e=>{y({type:d0.IncrementalSnapshot,data:{source:d1.CustomElement,...e}})},blockClass:i,ignoreClass:l,ignoreSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:f,unmaskTextSelector:h,maskInputOptions:G,inlineStylesheet:m,sampling:R,recordDOM:N,recordCanvas:x,inlineImages:D,userTriggeredOnInput:M,collectFonts:L,doc:e,maskAttributeFn:E,maskInputFn:T,maskTextFn:w,keepIframeSrcFn:B,blockSelector:o,unblockSelector:s,slimDOMOptions:q,dataURLOptions:C,mirror:pC,iframeManager:Z,stylesheetManager:X,shadowDomManager:en,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:F,plugins:U?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>y({type:d0.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});Z.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{er(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?n():(e.push(dO("DOMContentLoaded",()=>{y({type:d0.DomContentLoaded,data:{}}),"DOMContentLoaded"===P&&n()})),e.push(dO("load",()=>{y({type:d0.Load,data:{}}),"load"===P&&n()},window))),()=>{e.forEach(e=>e()),ee.destroy(),_=void 0,g=void 0}}catch(e){console.warn(e)}}function pN(e){return e>0x2540be3ff?e:1e3*e}function px(e){return e>0x2540be3ff?e/1e3:e}function pO(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:d0.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,eS.normalize)(t,10,1e3)}}),"console"===t.category)))}function pP(e){return e.closest("button,a")||e}function pM(e){let t=pL(e);return t&&t instanceof Element?pP(t):t}function pL(e){var t;return(t=e,(0,eG.isObjectLike)(t)&&"target"in t)?e.target:e}pA.mirror=pC,pA.takeFullSnapshot=function(e){if(!_)throw Error("please take full snapshot after start recording");_(e)},(F=H||(H={}))[F.NotStarted=0]="NotStarted",F[F.Running=1]="Running",F[F.Stopped=2]="Stopped";let pD=new Set([d1.Mutation,d1.StyleSheetRule,d1.StyleDeclaration,d1.AdoptedStyleSheet,d1.CanvasMutation,d1.Selection,d1.MediaInteraction]);class pU{constructor(e,t,n=pO){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){var e;let t=(e=()=>{this._lastMutation=pF()},b||(b=[],(0,ed.fill)(cQ,"open",function(e){return function(...t){if(b)try{b.forEach(e=>e())}catch{}return e.apply(cQ,t)}})),b.push(e),()=>{let t=b?b.indexOf(e):-1;t>-1&&b.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var n,r,a;if(n=t,r=this._ignoreSelector,!pB.includes(n.tagName)||"INPUT"===n.tagName&&!["submit","button"].includes(n.getAttribute("type")||"")||"A"===n.tagName&&(n.hasAttribute("download")||n.hasAttribute("target")&&"_self"!==n.getAttribute("target"))||r&&n.matches(r)||!((a=e).data&&"number"==typeof a.data.nodeId&&a.timestamp))return;let i={timestamp:px(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===i.node&&1>
490Math.abs(e.timestamp-i.timestamp))||(this._clicks.push(i),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=px(e)}registerScroll(e=Date.now()){this._lastScroll=px(e)}registerClick(e){let t=pP(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=pF();for(let n of(this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)}),e)){let e=this._clicks.indexOf(n);e>-1&&(this._generateBreadcrumbs(n),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:a,clickBreadcrumb:i}=e;if(!n&&!r){let n=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),r=n<1e3*this._timeout?"mutation":"timeout",o={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.slowClickDetected",data:{...i.data,url:cQ.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:a||1}};this._addBreadcrumbEvent(t,o);return}if(a>1){let e={type:"default",message:i.message,timestamp:i.timestamp,category:"ui.multiClick",data:{...i.data,url:cQ.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=rk(()=>this._checkClicks(),1e3)}}let pB=["A","BUTTON","INPUT"];function pF(){return Date.now()/1e3}function pz(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var pj=((z=pj||{})[z.Document=0]="Document",z[z.DocumentType=1]="DocumentType",z[z.Element=2]="Element",z[z.Text=3]="Text",z[z.CDATA=4]="CDATA",z[z.Comment=5]="Comment",z);let p$=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function pH(e,t){let n=pA.mirror.getId(e),r=n&&pA.mirror.getNode(n),a=r&&pA.mirror.getMeta(r),i=a&&a.type===pj.Element?a:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(e=>e.type===pj.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let n in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(p$.has(n)){let r=n;("data-testid"===n||"data-test-id"===n)&&(r="testId"),t[r]=e[n]}return t}(i.attributes)}}:{}}}let pW={resource:function(e){let{entryType:t,initiatorType:n,name:r,responseEnd:a,startTime:i,decodedBodySize:o,encodedBodySize:s,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:pY(i),end:pY(a),name:r,data:{size:u,statusCode:l,decodedBodySize:o,encodedBodySize:s}}},paint:function(e){let{duration:t,entryType:n,name:r,startTime:a}=e,i=pY(a);return{type:n,name:r,start:i,end:i+t,data:void 0}},navigation:function(e){let{entryType:t,name:n,decodedBodySize:r,duration:a,domComplete:i,encodedBodySize:o,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:p,startTime:f,transferSize:h,type:m}=e;return 0===a?null:{type:`${t}.${m}`,start:pY(f),end:pY(i),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:o,duration:a,domInteractive:u,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:i,redirectCount:p}}}};function pG(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function pq(e){let t=pW[e.entryType];return t?t(e):null}function pY(e){return(((0,eV.browserPerformanceTimeOrigin)()||cQ.performance.timeOrigin)+e)/1e3}function pV(e){let t=e.entries[e.entries.length-1];return pQ(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function pJ(e){let t=[],n=[];for(let r of e.entries)if(void 0!==r.sources){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=pA.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return pQ(e,"cumulative-layout-shift",n,t)}function pK(e){let t=e.entries[e.entries.length-1];return pQ(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function pQ(e,t,n,r){let a=e.value,i=e.rating,o=pY(a);return{type:"web-vital",name:t,start:o,end:o,data:{value:a,size:a,rating:i,nodeIds:n?n.map(e=>pA.mirror.getId(e)):void 0,attributions:r}}}let pX="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,pZ=["log","warn","error"],p0="[Replay] ";function p1(e,t="info"){nu({category:"console",data:{logger:"replay"},level:t,message:`${p0}${e}`},{level:t})}let p2=(N=!1,x=!1,O={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{N=!!e.captureExceptions,x=!!e.traceInternals}}
490,pX?(pZ.forEach(e=>{O[e]=(...t)=>{q.debug[e](p0,...t),x&&p1(t.join(""),nl(e))}}),O.exception=(e,...t)=>{t.length&&O.error&&O.error(...t),q.debug.error(p0,e),N?(0,K.captureException)(e,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):x&&p1(e,"error")},O.infoTick=(...e)=>{q.debug.log(p0,...e),x&&setTimeout(()=>p1(e[0]),0)}):pZ.forEach(e=>{O[e]=()=>void 0}),O);class p3 extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class p4 extends Error{constructor(){super("Worker destroyed")}}class p5{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>2e7)throw new p3;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=null;for(let{timestamp:t}of this.events)(null===e||t<e)&&(e=t);return null===e?e:pN(e)}}class p6{constructor(e){this._onMessage=({data:e})=>{if("number"!=typeof e.id)return;let t=this._pending.get(e.id);if(t&&t.method===e.method){if(this._pending.delete(e.id),!e.success){pX&&p2.error("Error in compression worker: ",e.response),t.reject(Error("Error in compression worker"));return}t.resolve(e.response)}},this._worker=e,this._id=0,this._pending=new Map,this._worker.addEventListener("message",this._onMessage)}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:n})=>{n.success?e():(pX&&p2.warn("Received worker message with unsuccessful status",n),t(Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",e=>{pX&&p2.warn("Failed to load Replay compression worker",e),t(Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})})),this._ensureReadyPromise}destroy(){pX&&p2.log("Destroying compression worker"),this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(e=>e.reject(new p4)),this._pending.clear(),this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,a)=>{this._pending.set(n,{method:e,resolve:r,reject:a});try{this._worker.postMessage({id:n,method:e,arg:t})}catch(e){this._pending.delete(n),a(e)}})}_getAndIncrementId(){return this._id++}}class p8{constructor(e){this._worker=new p6(e),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(e){let t=pN(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return(this._totalSize+=n.length,this._totalSize>2e7)?Promise.reject(new p3):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{pX&&p2.exception(e,'Sending "clear" message to worker failed',e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage("addEvent",e)}async _finishRequest(){let e=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,e}}class p7{constructor(e){this._fallback=new p5,this._compression=new p8(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}
490async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){pX&&p2.exception(e,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(let t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){if(e instanceof p4)return;pX&&p2.exception(e,"Failed to add events when switching buffers.")}}}function p9(){try{return"sessionStorage"in cQ&&!!cQ.sessionStorage}catch{return!1}}function fe(e){return void 0!==e&&Math.random()<e}function ft(e){if(p9())try{cQ.sessionStorage.setItem(cX,JSON.stringify(e))}catch{}}function fn(e){let t=Date.now(),n=e.id||(0,ea.uuid4)(),r=e.started||t,a=e.lastActivity||t,i=e.segmentId||0,o=e.sampled;return{id:n,started:r,lastActivity:a,segmentId:i,sampled:o,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function fr({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let a=fn({sampled:fe(e)?"session":!!t&&"buffer",previousSessionId:r});return n&&ft(a),a}function fa(e,t,n=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=n}function fi(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!!function(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return fa(e.started,t,r)||fa(e.lastActivity,n,r)}(e,{sessionIdleExpire:t,maxReplayDuration:n})&&("buffer"!==e.sampled||0!==e.segmentId)}function fo({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let a=r.stickySession&&function(){if(!p9())return null;try{let e=cQ.sessionStorage.getItem(cX);if(!e)return null;let t=JSON.parse(e);return pX&&p2.infoTick("Loading existing session"),fn(t)}catch{return null}}();return a?fi(a,{sessionIdleExpire:e,maxReplayDuration:t})?(pX&&p2.infoTick("Session in sessionStorage is expired, creating new one..."),fr(r,{previousSessionId:a.id})):a:(pX&&p2.infoTick("Creating new session"),fr(r,{previousSessionId:n}))}function fs(e,t,n){return!!fu(e,t)&&(fl(e,t,n),!0)}async function fl(e,t,n){let{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;let a="buffer"===e.recordingMode;try{n&&a&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);let i=e.getOptions(),o=function(e,t){try{if("function"==typeof t&&e.type===d0.Custom)return t(e)}catch(e){return pX&&p2.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,i.beforeAddRecordingEvent);if(!o)return;return await r.addEvent(o)}catch(i){if(!e.isEnabled())return e.handleException(i),null;let t=i&&i instanceof p3,n=(0,Q.getClient)();if(n&&n.recordDroppedEvent(t?"buffer_overflow":"internal_sdk_error","replay"),t&&a)return r.clear(),r.waitForCheckout=!0,null;e.handleException(i),await e.stop({reason:t?"eventBufferOverflow":"eventBufferError"})}}function fu(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=pN(t.timestamp);return!(n+e.timeouts.sessionIdlePause<Date.now())&&(!(n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(pX&&p2.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1))}function fc(e,t,n){let r=e.getContext();t&&r.traceIds.size<100&&r.traceIds.add(t),n&&r.segmentNames.size<100&&r.segmentNames.add(n)}function fd(e){return"transaction"===e.type}function fp(e){return"feedback"===e.type}function ff(e){return!!e.category}function fh(){let e=(0,Q.getCurrentScope)().getPropagationContext().dsc;e&&delete e.replay_id;let t=(0,em.getActiveSpan)();if(t){let e=(0,eR.getDynamicSamplingContextFromSpan)(t);delete e.replay_id}}function fm(e){let t=(0,Q.getCurrentScope)().getPropagationContext().dsc;t&&(t.replay_id=e);let n=(0,em.getActiveSpan)();n&&((0,eR.getDynamicSamplingContextFromSpan)(n).replay_id=e)}function fg(e,t){return t.map(({type:t,start:n,end:r,name:a,data:i})=>{let o=e.throttledAddEvent({type:d0.Custom,timestamp:n,data:{tag:"performanceSpan",payload:{op:t,description:a,startTimestamp:n,endTimestamp:r,data:i}}});return"string"==typeof o?Promise.resolve(null):o})}function fy(e,t){var n;e.isEnabled()&&null!==t&&(n=t.name,(!pX||!e.getOptions()._experiments.traceInternals)&&cL(n,(0,Q.getClient)())||e.addUpdate(()=>(fg(e,[t]),!0)))}function f_(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=iE(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function fb(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function fv(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function fS(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:a,method:i,statusCode:o,request:s,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:a,data:{method:i,statusCode:o,request:s,response:l}}}function fE(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function fT(e,t,n){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:a,warnings:i}=function(e){var t;let n,r;if(!e||"string"!=typeof e)return{body:e};let a=e.length>15e4,i=(n=(t=e)[0],r=t[t.length-1],"["===n&&"]"===r||"{"===n&&"}"===r);if(a){let t=e.slice(0,15e4);return i?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(i)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(n);return r.body=a,i?.length&&(r._meta={warnings:i}),r}function fw(e,t){return Object.entries(e).reduce((n,[r,a])=>{let i=r.toLowerCase();return t.includes(i)&&e[r]&&(n[i]=a),n},{})}function fk(e,t){let n=function(e,t=cQ.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(cQ.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(e);return(0,ei.stringMatchesSomePattern)(n,t)}async function fI(e,t,n){try{let r=await fR(e,t,n),a=fS("resource.fetch",r);fy(n.replay,a)}catch(e){pX&&p2.exception(e,"Failed to capture fetch breadcrumb")}}async function fR(e,t,n){let r=Date.now(),{startTimestamp:a=r,endTimestamp:i=r}=t,{url:o,method:s,status_code:l=0,request_body_size:u,response_body_size:c}=e.data,d=fk(o,n.networkDetailAllowUrls)&&!fk(o,n.networkDetailDenyUrls);return{startTimestamp:a,endTimestamp:i,url:o,method:s,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},n,r){var a,i;let o=n?(a=n,i=t,1===a.length&&"string"!=typeof a[0]?fx(a[0],i):2===a.length?fx(a[1],i):{}):{};if(!e)return fT(o,r,void 0);let[s,l]=iT(iw(n),p2),u=fT(o,r,s);return l?fv(u,l):u}(n,t.input,u):fE(u),response:await fC(d,n,t.response,c)}}async function fC(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,a){if(!e&&void 0!==a)return fE(a);let i=r?fN(r.headers,n):{};if(!r||!t&&void 0!==a)return fT(i,a,void 0);let[o,s]=await fA(r),l=function(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:a}){try{let i=e?.length&&void 0===n?f_(e):n;if(!r)return fE(i);if(t)return fT(a,i,e);return fT(a,i,void 0)}catch(e){return pX&&p2.exception(e,"Failed to serialize response body"),fT(a,n,void 0)}}(o,{networkCaptureBodies:t,responseBodySize:a,captureDetails:e,headers:i});return s?fv(l,s):l}async function fA(e){let t=function(e){try{return e.clone()}catch(e){pX&&p2.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{var n;return[await (n=t,new Promise((e,t)=>
490{let r=rk(()=>t(Error("Timeout while trying to read response body")),500);fO(n).then(t=>e(t),e=>t(e)).finally(()=>clearTimeout(r))}))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return pX&&p2.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"];return pX&&p2.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function fN(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function fx(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?fN(n,t):Array.isArray(n)?{}:fw(n,t):{}}async function fO(e){return await e.text()}async function fP(e,t,n){try{let r=function(e,t,n){let r=Date.now(),{startTimestamp:a=r,endTimestamp:i=r,input:o,xhr:s}=t,{url:l,method:u,status_code:c=0,request_body_size:d,response_body_size:p}=e.data;if(!l)return null;if(!s||!fk(l,n.networkDetailAllowUrls)||fk(l,n.networkDetailDenyUrls)){let e=fE(d);return{startTimestamp:a,endTimestamp:i,url:l,method:u,statusCode:c,request:e,response:fE(p)}}let f=s[nC],h=f?fw(f.request_headers,n.networkRequestHeaders):{},m=fw(ik(s),n.networkResponseHeaders),[g,y]=n.networkCaptureBodies?iT(o,p2):[void 0],[_,b]=n.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var n=e.response,r=e.responseType;try{if("string"==typeof n)return[n];if(n instanceof Document)return[n.body.outerHTML];if("json"===r&&(0,eG.isObjectLike)(n))return[JSON.stringify(n)];if(!n)return[void 0]}catch(e){return pX&&p2.exception(e,"Failed to serialize body",n),[void 0,"BODY_PARSE_ERROR"]}return pX&&p2.log("Skipping network body because of body type",n),[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return pX&&p2.warn("Failed to get xhr response body",...t),[void 0]}(s):[void 0],v=fT(h,d,g),S=fT(m,p,_);return{startTimestamp:a,endTimestamp:i,url:l,method:u,statusCode:c,request:y?fv(v,y):v,response:b?fv(S,b):S}}(e,t,n),a=fS("resource.xhr",r);fy(n.replay,a)}catch(e){pX&&p2.exception(e,"Failed to capture xhr breadcrumb")}}async function fM(e){try{return Promise.all(fg(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,a=Date.now()/1e3;return{type:"memory",name:"memory",start:a,end:a,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}(cQ.performance.memory)]))}catch{return[]}}let fL=Y.GLOBAL_OBJ.navigator;async function fD({client:e,scope:t,replayId:n,event:r}){let a={event_id:n,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",r,a);let i=await (0,tp.prepareEvent)(e.getOptions(),r,a,t,e,(0,Q.getIsolationScope)());if(!i)return null;e.emit("postprocessEvent",i,a),i.platform=i.platform||"javascript";let o=e.getSdkMetadata(),{name:s,version:l,settings:u}=o?.sdk||{};return i.sdk={...i.sdk,name:s||"sentry.javascript.unknown",version:l||"0.0.0",settings:u},i}async function fU({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:a,session:i}){var o;let s,l=function({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)}
491`;if("string"==typeof e)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);(n=new Uint8Array(t.length+e.length)).set(t),n.set(e,t.length)}return n}({recordingData:e,headers:{segment_id:n}}),{urls:u,errorIds:c,traceIds:d,segmentNames:p,initialTimestamp:f}=r,h=(0,Q.getClient)(),m=(0,Q.getCurrentScope)(),g=h?.getTransport(),y=h?.getDsn();if(!h||!g||!y||!i.sampled)return Promise.resolve({});let _={type:"replay_event",replay_start_timestamp:f/1e3,timestamp:a/1e3,error_ids:c,trace_ids:d,segment_names:p,urls:u,replay_id:t,segment_id:n,replay_type:i.sampled},b=await fD({scope:m,client:h,replayId:t,event:_});if(!b)return h.recordDroppedEvent("event_processor","replay"),pX&&p2.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete b.sdkProcessingMetadata;let v=(o=h.getOptions().tunnel,eO(ej(b,ez(b),o,y),[[{type:"replay_event"},b],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{s=await g.send(v)}catch(t){let e=Error(cZ);try{e.cause=t}catch{}throw e}let S=tl({},s);if(ts(S,"replay"))throw new fF(S);if("number"==typeof s.statusCode&&(s.statusCode<200||s.statusCode>=300))throw new fB(s.statusCode);return s}
491class fB extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class fF extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class fz extends Error{constructor(){super("Session is too long, not sending replay")}}async function fj(e,t={count:0,interval:5e3}){let{recordingData:n,onError:r}=e;if(n.length)try{return await fU(e),!0}catch(n){if(n instanceof fB||n instanceof fF)throw n;if((0,K.setContext)("Replays",{_retryCount:t.count}),r&&r(n),t.count>=3){let e=Error(`${cZ} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{rk(async()=>{try{await fj(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}let f$="__THROTTLED";class fH{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,segmentNames:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,n){return function(e,t,n){let r,a,i,o=n?.maxWait?Math.max(n.maxWait,t):0,s=n?.setTimeoutImpl||setTimeout;function l(){return u(),r=e()}function u(){void 0!==a&&clearTimeout(a),void 0!==i&&clearTimeout(i),a=i=void 0}function c(){return a&&clearTimeout(a),a=s(l,t),o&&void 0===i&&(i=s(l,o)),r}return c.cancel=u,c.flush=function(){return void 0!==a||void 0!==i?l():r},c}(e,t,{...n,setTimeoutImpl:rk})}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e){let t=new Map,n=!1;return(...r)=>{let a,i=Math.floor(Date.now()/1e3);if(a=i-5,t.forEach((e,n)=>{n<a&&t.delete(n)}),[...t.values()].reduce((e,t)=>e+t,0)>=300){let e=n;return n=!0,e?"__SKIPPED":f$}n=!1;let o=t.get(i)||0;return t.set(i,o+1),e(...r)}}((e,t)=>fu(this,e)?fl(this,e,t):Promise.resolve(null));const{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),a=n?{threshold:Math.min(3e3,n),timeout:n,scrollTimeout:300,ignoreSelector:r?r.join(","):""}:void 0;if(a&&(this.clickDetector=new pU(this,a)),pX){const t=e._experiments;p2.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===cQ.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=pz({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=pz({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=function(e){var t;let{metaKey:n,shiftKey:r,ctrlKey:a,altKey:i,key:o,target:s}=e;if(!s||"INPUT"===(t=s).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!o)return null;let l=n||a||i,u=1===o.length;if(!l&&u)return null;let c=nL(s,{maxStringLength:200})||"<unknown>",d=pH(s,c);return pz({category:"ui.keyDown",message:c,data:{...d.data,metaKey:n,shiftKey:r,ctrlKey:a,altKey:i,key:o}})}(t);n&&pO(e,n)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){pX&&p2.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session){pX&&p2.exception(Error("Unable to initialize and create session"));return}!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",pX&&p2.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode){pX&&p2.log("Recording is already in progress");return}if(this._isEnabled&&"buffer"===this.recordingMode){pX&&p2.log("Buffering is in progress, call `flush()` to save the replay");return}pX&&p2.infoTick("Starting replay in session mode"),this._updateUserActivity();let e=fo({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}
491startBuffering(){if(this._isEnabled){pX&&p2.log("Buffering is in progress, call `flush()` to save the replay");return}pX&&p2.infoTick("Starting replay in buffer mode");let e=fo({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t,n=this._canvas;this._stopRecording=pA({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(n,r)=>{try{if(!e.checkAndHandleExpiredSession()){pX&&p2.warn("Received replay event after session expired.");return}let a=r||!t;t=!0,function(e){let t=e.data;if(e.type===d0.IncrementalSnapshot&&t&&"object"==typeof t&&"source"in t&&t.source===d1.Mutation&&"attributes"in t&&Array.isArray(t.attributes))for(let e of t.attributes){let t=pA.mirror.getNode(e.id),n=t&&pA.mirror.getMeta(t);if(n?.type===pj.Element)for(let[t,r]of Object.entries(e.attributes))null===r?delete n.attributes[t]:n.attributes[t]=r}}(n),e.clickDetector&&function(e,t){try{var n;if(n=t,3!==n.type)return;let{source:r}=t.data;if(pD.has(r)&&e.registerMutation(t.timestamp),r===d1.Scroll&&e.registerScroll(t.timestamp),t.data.source===d1.MouseInteraction){let{type:n,id:r}=t.data,a=pA.mirror.getNode(r);a instanceof HTMLElement&&n===d2.Click&&e.registerClick(a)}}catch{}}(e.clickDetector,n),e.addUpdate(()=>{if("buffer"===e.recordingMode&&a&&e.setInitialState(),!fs(e,n,a))return!0;if(!a)return!1;let t=e.session;if(function(e,t){if(t&&e.session?.segmentId===0){let t;fs(e,(t=e.getOptions(),{type:d0.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}),!1)}}(e,a),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){let n=e.eventBuffer.getEarliestTimestamp();n&&(pX&&p2.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&ft(t))}return!!t?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}catch(t){e.handleException(t)}}),.../iPhone|iPad|iPod/i.test(fL?.userAgent??"")||/Macintosh/i.test(fL?.userAgent??"")&&fL?.maxTouchPoints&&fL?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...n?{recordCanvas:n.recordCanvas,getCanvasManager:n.getCanvasManager,sampling:n.sampling,dataURLOptions:n.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(!this._isEnabled)return;this._isEnabled=!1,this.recordingMode="buffer";let n=t??"manual";(0,Q.getClient)()?.emit("replayEnd",{sessionId:this.session?.id,reason:n});try{pX&&p2.log(`Stopping Replay triggered by ${n}`),fh(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(p9())try{cQ.sessionStorage.removeItem(cX)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}pause(){!this._isPaused&&(this._isPaused=!0,this.stopRecording(),pX&&p2.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),pX&&p2.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();pX&&p2.log("Converting buffer to session"),await this.flushImmediate();let n=this.stopRecording();e&&n&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession(),fm(this.session.id)),this.startRecording())}addUpdate(e){let t=e();"buffer"!==this.recordingMode&&this._isEnabled&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(e){if(!e||this.session?.sampled!==!1)return this.session?.id}
491checkAndHandleExpiredSession(){return this._lastActivity&&fa(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"?void this.pause():!!this._checkSession()}setInitialState(){let e=`${cQ.location.pathname}${cQ.location.hash}${cQ.location.search}`,t=`${cQ.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===f$){let e=pz({category:"replay.throttled"});this.addUpdate(()=>!fs(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||(0,em.getActiveSpan)(),t=e&&(0,em.getRootSpan)(e),n=(t&&(0,em.spanToJSON)(t).data||{})[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(t&&n&&["route","custom"].includes(n))return(0,em.spanToJSON)(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=function(e){try{let t=e||function(){if("u"<typeof __SENTRY_EXCLUDE_REPLAY_WORKER__||!__SENTRY_EXCLUDE_REPLAY_WORKER__){let e;return e=new Blob(['
vendor: 10,329 bytes, line 491
491var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
491'],{type:"text/javascript"}),URL.createObjectURL(e)}return""}();if(!t)return;pX&&p2.log(`Using compression worker${e?` from ${e}`:""}`);let n=new Worker(t);return new p7(n)}catch(e){pX&&p2.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return pX&&p2.log("Using simple buffer"),new p5}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&(0,Q.getClient)()?.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording(),"session"===this.recordingMode&&this.session&&fm(this.session.id)}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=fo({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return!fi(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"sessionExpired"}),this.initializeSampling(e.id))}_addListeners(){try{cQ.document.addEventListener("visibilitychange",this._handleVisibilityChange),cQ.addEventListener("blur",this._handleWindowBlur),cQ.addEventListener("focus",this._handleWindowFocus),cQ.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){let t,n=(0,Q.getClient)();nk(t=>{var n,r;if(!e.isEnabled())return;let a=function(e){let{target:t,message:n}=function(e){let t,n="click"===e.name,r=null;try{r=n?pM(e.event):pL(e.event),t=nL(r,{maxStringLength:200})||"<unknown>"}catch{t="<unknown>"}return{target:r,message:t}}(e);return pz({category:`ui.${e.name}`,...pH(t,n)})}(t);if(!a)return;let i="click"===t.name,o=i?t.event:void 0;i&&e.clickDetector&&o?.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&(n=e.clickDetector,r=pM(t.event),n.handleClick(a,r)),pO(e,a)}),nx(t=>{if(!e.isEnabled())return;let n=function(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}(t);null!==n&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(fg(e,[n]),!1)))}),(t=(0,Q.getClient)())&&t.on("beforeAddBreadcrumb",t=>(function(e,t){var n;if(!e.isEnabled()||!ff(t))return;let r=(n=t,!ff(n)||["fetch","xhr","sentry.event","sentry.transaction"].includes(n.category)||n.category.startsWith("ui.")?null:"console"===n.category?function(e){let t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return pz(e);let n=!1,r=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(n=!0,`${e.slice(0,5e3)}\u2026`):e;if("object"==typeof e)try{let t=(0,eS.normalize)(e,7);if(JSON.stringify(t).length>5e3)return n=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}\u2026`;return t}catch{}return e});return pz({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(n):pz(n));r&&pO(e,r)})(e,t));let r=(0,Q.getClient)();try{let{networkDetailAllowUrls:t,networkDetailDenyUrls:n,networkCaptureBodies:a,networkRequestHeaders:i,networkResponseHeaders:o}=e.getOptions(),s={replay:e,networkDetailAllowUrls:t,networkDetailDenyUrls:n,networkCaptureBodies:a,networkRequestHeaders:i,networkResponseHeaders:o};r&&r.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,n){if(t.data)try{var r,a,i,o;r=t,"xhr"===r.category&&(a=n,a?.xhr)&&(!function(e,t){let{xhr:n,input:r}=t;if(!n)return;let a=f_(r),i=n.getResponseHeader("content-length")?fb(n.getResponseHeader("content-length")):function(e,t){try{let n="json"===t&&(0,eG.isObjectLike)(e)?JSON.stringify(e):e;return f_(n)}catch{return}}(n.response,n.responseType);void 0!==a&&(e.data.request_body_size=a),void 0!==i&&(e.data.response_body_size=i)}(t,n),fP(t,n,e)),i=t,"fetch"===i.category&&(o=n,o?.input!==void 0)&&(!function(e,t){let{input
491:n,response:r}=t,a=f_(n?iw(n):void 0),i=r?fb(r.headers.get("content-length")):void 0;void 0!==a&&(e.data.request_body_size=a),void 0!==i&&(e.data.response_body_size=i)}(t,n),fI(t,n,e))}catch(e){pX&&p2.exception(e,"Error when enriching network breadcrumb")}})(s,e,t))}catch{}let a=Object.assign((t,n)=>{if(e.session&&fi(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire})&&fh(),!e.isEnabled()||e.isPaused())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!fd(t)&&!fp(t))return t;if(!e.checkAndHandleExpiredSession())return fh(),t;if(fp(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:d0.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t;if(!t.type&&t.exception?.values?.length&&n.originalException?.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return pX&&p2.log("Ignoring error from rrweb internals",t),null;let r="buffer"===e.recordingMode&&t.message!==cZ&&!!t.exception&&!t.type&&fe(e.getOptions().errorSampleRate);if((r||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),r&&"buffer"===e.recordingMode&&e.session?.sampled==="buffer"){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&ft(t)}return t},{id:"Replay"});(0,K.addEventProcessor)(a),n&&(n.on("beforeSendEvent",t=>{var n,r;let a;e.isEnabled()&&!t.type&&(n=e,r=t,a=r.exception?.values?.[0]?.value,"string"==typeof a&&(a.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||a.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&pO(n,pz({category:"replay.hydrate-error",data:{url:tY()}})))}),n.on("afterSendEvent",(t,n)=>{if(!e.isEnabled()||t.type&&!fd(t))return;let r=n.statusCode;if(r&&!(r<200)&&!(r>=300)){if(fd(t)){var a,i;return void(a=e,i=t,fc(a,i.contexts?.trace?.trace_id,i.transaction))}!function(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags?.replayId)return;let{beforeErrorSampling:r}=e.getOptions();("function"!=typeof r||r(t))&&rk(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t)}}),n.on("createDsc",t=>{let n=e.getSessionId();n&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),n.on("processSegmentSpan",t=>{e.isEnabled()&&fc(e,t.trace_id,t.name||void 0)}),n.on("spanStart",t=>{e.lastActiveSpan=t}),n.on("spanEnd",t=>{e.lastActiveSpan=t}),n.on("beforeSendFeedback",async(t,n)=>{let r=e.getSessionId();n?.includeReplay&&e.isEnabled()&&r&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=r)}),n.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];return["navigation","paint","resource"].forEach(e=>{r.push(aH(e,n))}),r.push(aj(pG(pV,e)),az(pG(pJ,e)),a$(pG(pK,e))),()=>{r.forEach(e=>e())}}(this)}_removeListeners(){try{cQ.document.removeEventListener("visibilitychange",this._handleVisibilityChange),cQ.removeEventListener("blur",this._handleWindowBlur),cQ.removeEventListener("focus",this._handleWindowFocus),cQ.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){this.session&&(fi(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})?fh():(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){pX&&p2.log("Document has become active, but session has expired");return}e&&this._createCustomBreadcrumb(e)}}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:d0.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(pq).filter(
491Boolean).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(fg(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.segmentNames.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),segmentNames:Array.from(this._context.segmentNames),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){pX&&p2.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents){if((await fM(this),this.eventBuffer)&&e===this.getSessionId())try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new fz;let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession();let a=await this.eventBuffer.finish();await fj({replayId:e,recordingData:a,segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendError"});let e=(0,Q.getClient)();e&&e.recordDroppedEvent(t instanceof fF?"ratelimit_backoff":t instanceof fz?"invalid":"send_error","replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){pX&&p2.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=n<this._options.minReplayDuration,a=n>this._options.maxReplayDuration+5e3;if(r||a){pX&&p2.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?"short":"long"}, not sending replay.`),r&&this._debouncedFlush();return}let i=this.eventBuffer;i&&0===this.session.segmentId&&!i.hasCheckout&&pX&&p2.log("Flushing initial segment without checkout.");let o=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&ft(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let n=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),r=t.join(",");return n?.matches(r)}))return!1;let n=e.length,r=this._options.mutationLimit,a=this._options.mutationBreadcrumbLimit,i=r&&n>r;if(n>a||i){let e=pz({category:"replay.mutations",data:{count:n,limit:i}});this._createCustomBreadcrumb(e)}return!i||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function fW(e,t){return[...e,...t].join(",")}let fG='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',fq=["content-length","content-type","accept"],fY=Symbol.for("sentry__originalRequestBody"),fV=!1,fJ=!1,fK=e=>new fQ(e);class fQ{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:n=4999,maxReplayDuration:r=36e5,stickySession:a=!0,useCompression:i=!0,workerUrl:o,_experiments:s={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:c=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:f=7e3,slowClickIgnoreSelectors:h=[],networkDetailAllowUrls:m=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:_=[],networkResponseHeaders:b=[],mask:v=[],maskAttributes:S=["title","placeholder","aria-label"],unmask:E=[],block:T=[],unblock:w=[],ignore:k=[],maskFn:I,beforeAddRecordingEvent:R,beforeErrorSampling:C,onError:A,attachRawBodyFromRequest:N=!1}={}){this.name="Replay";const x=function({mask:e,unmask:t,block:n,unblock:r,ignore:a}){return{maskTextSelector:fW(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:fW(t,[]),blockSelector:fW(n,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not
491([src])"]),unblockSelector:fW(r,[]),ignoreSelector:fW(a,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:v,unmask:E,block:T,unblock:w,ignore:k});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:I,maskInputFn:I,maskAttributeFn:(e,t,n)=>(function({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:a,value:i}){if(a.unmaskTextSelector&&e.matches(a.unmaskTextSelector))return i;let o=n.includes(t),s=r&&"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"");return o||s?i.replace(/[\S]/g,"*"):i})({maskAttributes:S,maskAllText:l,privacyOptions:x,key:e,value:t,el:n}),...x,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!s.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,5e4),maxReplayDuration:Math.min(r,36e5),stickySession:a,useCompression:i,workerUrl:o,blockAllMedia:c,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:f,slowClickIgnoreSelectors:h,networkDetailAllowUrls:m,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:fX(_),networkResponseHeaders:fX(b),beforeAddRecordingEvent:R,beforeErrorSampling:C,onError:A,attachRawBodyFromRequest:N,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${fG}`:fG,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&eZ())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return fV}set _isInitialized(e){fV=e}afterAllSetup(e){eZ()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("u"<typeof Request||fJ)return;let e=Request;try{let t=function(t,n){let r=new e(t,n);return n?.body!=null&&(r[fY]=n.body),r};t.prototype=e.prototype,Y.GLOBAL_OBJ.Request=t,fJ=!0}catch{}}(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(e){return this._replay?this._replay.stop({forceFlush:e?.flush??"session"===this._replay.recordingMode,reason:"manual"}):Promise.resolve()}flush(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}processSpan(e){let t=this.getReplayId(!0);t&&(nJ(e,{"sentry.replay_id":t}),"buffer"===this.getRecordingMode()&&nJ(e,{"sentry._internal.replay_is_buffering":!0}))}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){var t;let n,r,a,i,o=(t=this._initialOptions,n=e.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...t},a=(0,td.parseSampleRate)(n.replaysSessionSampleRate),i=(0,td.parseSampleRate)(n.replaysOnErrorSampleRate),null==a&&null==i&&(0,q.consoleSandbox)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=a&&(r.sessionSampleRate=a),null!=i&&(r.errorSampleRate=i),r);this._replay=new fH({options:o,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function fX(e){return[...fq,...e.map(e=>e.toLowerCase())]}function fZ(){let e=(0,Q.getClient)();return e?.getIntegrationByName("Replay")}var f0=Object.defineProperty,f1=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?f0(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n};function f2(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:f2(e.parentNode,t,n,r+1)}function f3(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch{return!1}}}let f4="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.",f5={map:{},getId:()=>(console.error(f4),-1),getNode:()=>(console.error(f4),null),removeNodeFromMap(){console.error(f4)},has:()=>(console.error(f4),!1),reset(){console.error(f4)}};function f6(e,t,n,r,a=window){let i=a.Object.getOwnPropertyDescriptor(e,t);return a.Object.defineProperty(e,t,r?n:{set(e){hn(()=>{n.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>f6(e,t,i||{},!0)}function f8(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],a=n(r);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=a,()=>{e[t]=r}}catch{return()=>{}}}function f7(e,t,n,r,a){if(!e)return!1;let i=function(e){if(!e)return null;
491try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e);if(!i)return!1;let o=f3(t,n);if(!a){let e=r&&i.matches(r);return o(i)&&!e}let s=f2(i,o),l=-1;return!(s<0)&&(r&&(l=f2(i,f3(null,r))),s>-1&&l<0||s<l)}"u">typeof window&&window.Proxy&&window.Reflect&&(f5=new Proxy(f5,{get:(e,t,n)=>("map"===t&&console.error(f4),Reflect.get(e,t,n))})),Date.now().toString();let f9={};function he(e){let t=f9[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let a=t.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(t)}catch(e){}return f9[e]=r.bind(window)}function ht(...e){return he("requestAnimationFrame")(...e)}function hn(...e){return he("setTimeout")(...e)}var hr=((j=hr||{})[j["2D"]=0]="2D",j[j.WebGL=1]="WebGL",j[j.WebGL2=2]="WebGL2",j);let ha=e=>v?(...t)=>{try{return e(...t)}catch(e){if(v&&!0===v(e))return()=>{};throw e}}:e;for(var hi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ho="u"<typeof Uint8Array?[]:new Uint8Array(256),hs=0;hs<hi.length;hs++)ho[hi.charCodeAt(hs)]=hs;var hl=function(e){var t,n=new Uint8Array(e),r=n.length,a="";for(t=0;t<r;t+=3)a+=hi[n[t]>>2],a+=hi[(3&n[t])<<4|n[t+1]>>4],a+=hi[(15&n[t+1])<<2|n[t+2]>>6],a+=hi[63&n[t+2]];return r%3==2?a=a.substring(0,a.length-1)+"=":r%3==1&&(a=a.substring(0,a.length-2)+"=="),a};let hu=new Map,hc=(e,t,n)=>{let r;if(!e||!(hp(e,t)||"object"==typeof e))return;let a=e.constructor.name,i=((r=hu.get(n))||(r=new Map,hu.set(n,r)),r.has(a)||r.set(a,[]),r.get(a)),o=i.indexOf(e);return -1===o&&(o=i.length,i.push(e)),o},hd=(e,t,n)=>e.map(e=>(function e(t,n,r){if(t instanceof Array)return t.map(t=>e(t,n,r));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:hl(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,n,r),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:n}=t;return{rr_type:e,src:n}}else if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,n,r),t.width,t.height]};else if(hp(t,n)||"object"==typeof t)return{rr_type:t.constructor.name,index:hc(t,n,r)};return t})(e,t,n)),hp=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(n=>e instanceof t[n]);function hf(e,t,n,r,a){let i=[];try{let o=f8(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(i,...o){if(!f7(this,t,n,r,!0)){let e="experimental-webgl"===i?"webgl":i;if("__context"in this||(this.__context=e),a&&["webgl","webgl2"].includes(e))if(o[0]&&"object"==typeof o[0]){let e=o[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else o.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[i,...o])}});i.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{i.forEach(e=>e())}}function hh(e,t,n,r,a,i,o,s){let l=[];for(let o of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(o))try{if("function"!=typeof e[o])continue;let u=f8(e,o,function(e){return function(...l){let u=e.apply(this,l);if(hc(u,s,this),"tagName"in this.canvas&&!f7(this.canvas,r,a,i,!0)){let e=hd(l,s,this),r={type:t,property:o,args:e};n(this.canvas,r)}return u}});l.push(u)}catch{let r=f6(e,o,{set(e){n(this.canvas,{type:t,property:o,args:[e],setter:!0})}});l.push(r)}return l}class hm{constructor(e){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};const{enableManualSnapshot:t,sampling:n="all",win:r,recordCanvas:a,errorHandler:i}=e;if(e.sampling=n,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,i&&function(e){v=e}(i),(a&&"number"==typeof n||t)&&(this.worker=this.initFPSWorker()),this.addWindow(r),t)return;ha(()=>{a&&"all"===n&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),a&&"number"==typeof n&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEac
491h(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(e){let{sampling:t="all",blockClass:n,blockSelector:r,unblockSelector:a,recordCanvas:i,enableManualSnapshot:o}=this.options;if(!this.windowsSet.has(e)){if(o){this.windowsSet.add(e),this.windows.push(new WeakRef(e));return}ha(()=>{if(i&&"all"===t&&this.initCanvasMutationObserver(e,n,r,a),i&&"number"==typeof t){let t=hf(e,n,r,a,!0);this.restoreHandlers.push(()=>{t()})}})(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(e,t){t?.skipRequestAnimationFrame?this.takeSnapshot(performance.now(),!0,e):ht(t=>this.takeSnapshot(t,!0,e))}initFPSWorker(){let e,t=new Worker((e=new Blob(['for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']),URL.createObjectURL(e)));return t.onmessage=e=>{let t=e.data,{id:n}=t;if(this.snapshotInProgressMap.set(n,!1),!("base64"in t))return;let{base64:r,type:a,width:i,height:o}=t;this.mutationCb({id:n,type:hr["2D"],commands:[{property:"clearRect",args:[0,0,i,o]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:a}]},0,0,i,o]}]})},t}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;let t=n=>{this.takeSnapshot(n,!1),e=ht(t)};e=ht(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,n,r){var a,i;let o,s=hf(e,t,n,r,!1),l=function(e,t,n,r,a){let i=[];for(let o of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[o])continue;let s=f8(t.CanvasRenderingContext2D.prototype,o,function(i){return function(...s){return f7(this.canvas,n,r,a,!0)||hn(()=>{let n=hd(s,t,this);e(this.canvas,{type:hr["2D"],property:o,args:n})},0),i.apply(this,s)}});i.push(s)}catch{let n=f6(t.CanvasRenderingContext2D.prototype,o,{set(t){e(this.canvas,{type:hr["2D"],property:o,args:[t],setter:!0})}});i.push(n)}return()=>{i.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r),u=(a=this.processMutation.bind(this),i=this.mirror,(o=[]).push(...hh(e.WebGLRenderingContext.prototype,hr.WebGL,a,t,n,r,i,e)),void 0!==e.WebGL2RenderingContext&&o.push(...hh(e.WebGL2RenderingContext.prototype,hr.WebGL2,a,t,n,r,i,e)),()=>{o.forEach(e=>e())});this.restoreHandlers.push(()=>{s(),l(),u()})}
491getCanvasElements(e,t,n){let r=[],a=a=>{a.querySelectorAll("canvas").forEach(a=>{f7(a,e,t,n,!0)||r.push(a)})};for(let e of this.windows){let t,n=e.deref();try{t=n&&n.document}catch{}t&&a(t)}for(let e of this.shadowDoms){let t=e.deref();t&&a(t)}return r}takeSnapshot(e,t,n){let{sampling:r,blockClass:a,blockSelector:i,unblockSelector:o,dataURLOptions:s,maxCanvasSize:l}=this.options;return(!this.lastSnapshotTime||!(e-this.lastSnapshotTime<1e3/("all"===r?2:r||2)))&&(this.lastSnapshotTime=e,(n?[n]:this.getCanvasElements(a,i,o)).forEach(e=>{let n=this.mirror.getId(e);if(!(!this.mirror.hasNode(e)||!e.width||!e.height||this.snapshotInProgressMap.get(n))){if(this.snapshotInProgressMap.set(n,!0),!t&&["webgl","webgl2"].includes(e.__context)){let t=e.getContext(e.__context);t?.getContextAttributes()?.preserveDrawingBuffer===!1&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then(t=>{this.worker?.postMessage({id:n,bitmap:t,width:e.width,height:e.height,dataURLOptions:s,maxCanvasSize:l},[t])}).catch(e=>{ha(()=>{throw this.snapshotInProgressMap.delete(n),e})()})}}),!0)}startPendingCanvasMutationFlusher(){ht(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,ht(e)};ht(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),ht(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;let r=n.map(e=>{let{type:t,...n}=e;return n}),{type:a}=n[0];this.mutationCb({id:t,type:a,commands:r}),this.pendingCanvasMutations.delete(e)}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}new class e{constructor(){f1(this,"idNodeMap",new Map),f1(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}},($=W||(W={}))[$.NotStarted=0]="NotStarted",$[$.Running=1]="Running",$[$.Stopped=2]="Stopped";let hg={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},hy=(e={})=>{let t,n,[r,a]=e.maxCanvasSize||[],i={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[r?Math.min(r,1280):1280,a?Math.min(a,1280):1280]},o=new Promise(e=>n=e);return{name:"ReplayCanvas",getOptions(){let{quality:e,enableManualSnapshot:r,maxCanvasSize:a}=i;return{enableManualSnapshot:r,recordCanvas:!0,getCanvasManager:e=>{let i=new hm({...e,enableManualSnapshot:r,maxCanvasSize:a,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return t=i,n(i),i},...hg[e]||hg.medium}},async snapshot(e,n){(t||await o).snapshot(e,n)}}};var ch=ch;let h_=()=>({name:"ElementTiming",setup(){a1()&&(0,eV.browserPerformanceTimeOrigin)()&&aH("element",({entries:e})=>{for(let t of e){if(!t.identifier)continue;let e=t.identifier,n=t.name,r=t.renderTime,a=t.loadTime,i={"sentry.origin":"auto.ui.browser.element_timing","ui.element.identifier":e};n&&(i["ui.element.paint_type"]=n),t.id&&(i["ui.element.id"]=t.id),t.element&&(i["ui.element.type"]=t.element.tagName.toLowerCase()),t.url&&(i["ui.element.url"]=t.url),t.naturalWidth&&(i["ui.element.width"]=t.naturalWi
491dth),t.naturalHeight&&(i["ui.element.height"]=t.naturalHeight),r>0&&ch.distribution("ui.element.render_time",r,{unit:"millisecond",attributes:i}),a>0&&ch.distribution("ui.element.load_time",a,{unit:"millisecond",attributes:i})}})}});function hb(e=(0,Q.getClient)()){e?.emit("endPageloadSpan")}function hv(e){let t=(0,em.getActiveSpan)();if(t===e)return;let n=(0,Q.getCurrentScope)();e.end=new Proxy(e.end,{apply:(e,r,a)=>((0,eY._setSpanForScope)(n,t),Reflect.apply(e,r,a))}),(0,eY._setSpanForScope)(n,e)}class hS{constructor(e,t){this._traceBuckets=new Map,this._client=e;const{maxSpanLimit:n,flushInterval:r,maxTraceWeightInBytes:a}=t??{};this._maxSpanLimit=n&&n>0&&n<=1e3?n:1e3,this._flushInterval=r&&r>0?r:5e3,this._maxTraceWeight=a&&a>0?a:5e6,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>{this._traceBuckets.forEach(e=>{clearTimeout(e.timeout)}),this._traceBuckets.clear()})}add(e){let t=e.trace_id,n=this._traceBuckets.get(t);n||(n={spans:new Set,size:0,timeout:tr(setTimeout(()=>{this.flush(t)},this._flushInterval))},this._traceBuckets.set(t,n)),n.spans.add(e),n.size+=function(e){let t;if(t=156+2*e.name.length+(0,eW.estimateTypedAttributesSizeInBytes)(e.attributes),e.links&&e.links.length>0){let n=e.links[0],r=n?.attributes;t+=(100+(r?(0,eW.estimateTypedAttributesSizeInBytes)(r):0))*e.links.length}return t}(e),(n.spans.size>=this._maxSpanLimit||n.size>=this._maxTraceWeight)&&this.flush(t)}drain(){this._traceBuckets.size&&(X.DEBUG_BUILD&&q.debug.log(`Flushing span tree map with ${this._traceBuckets.size} traces`),this._traceBuckets.forEach((e,t)=>{this.flush(t)}))}flush(e){var t,n;let r,a,i,o,s,l,u=this._traceBuckets.get(e);if(!u)return;if(!u.spans.size)return void this._removeTrace(e);let c=Array.from(u.spans),d=c[0]?._segmentSpan;if(!d){X.DEBUG_BUILD&&q.debug.warn("No segment span reference found on span JSON, cannot compute DSC"),this._removeTrace(e);return}let p=(0,eR.getDynamicSamplingContextFromSpan)(d),f=c.map(e=>{let{_segmentSpan:t,...n}=e;return n}),h=(r=(t=this._client).getOptions(),a=t.getDsn(),i=r.tunnel,o=ez(r._metadata),s={sent_at:new Date((0,ex.safeDateNow)()).toISOString(),...!!(n=p).trace_id&&!!n.public_key&&{trace:p},...o&&{sdk:o},...!!i&&a&&{dsn:(0,eT.dsnToString)(a)}},l=t.getDataCollectionOptions().userInfo?"auto":"never",eO(s,[[{type:"span",item_count:f.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...eZ()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:f}]]));X.DEBUG_BUILD&&q.debug.log(`Sending span envelope for trace ${e} with ${f.length} spans`),this._client.sendEnvelope(h).then(null,e=>{X.DEBUG_BUILD&&q.debug.error("Error while sending streamed span envelope:",e)}),this._removeTrace(e)}_removeTrace(e){let t=this._traceBuckets.get(e);t&&clearTimeout(t.timeout),this._traceBuckets.delete(e)}}let hE=()=>({name:"SpanStreaming",beforeSetup(e){let t=e.getOptions();t.traceLifecycle||(nD&&q.debug.log('[SpanStreaming] setting `traceLifecycle` to "stream"'),t.traceLifecycle="stream")},setup(e){let t="SpanStreaming integration requires",n="Falling back to static trace lifecycle.",r=e.getOptions();if(!tt(e)){r.traceLifecycle="static",nD&&q.debug.warn(`${t} \`traceLifecycle\` to be set to "stream"! ${n}`);return}let a=r.beforeSendSpan;if(a&&!eA(a)){r.traceLifecycle="static",nD&&q.debug.warn(`${t} a beforeSendSpan callback using \`withStreamedSpan\`! ${n}`);return}let i=new hS(e);e.on("afterSpanEnd",t=>{(0,em.spanIsSampled)(t)&&i.add(function(e,t){var n,r;let a,i,o=(0,em.spanToStreamedSpanJSON)(e),s=(0,em.INTERNAL_getSegmentSpan)(e),l=(0,em.spanToStreamedSpanJSON)(s),{isolationScope:u,scope:c}=(0,nV.getCapturedScopesOnSpan)(e),d=(0,eq.getCombinedScopeData)(u,c);!function(e,t,n,r){let a=n.getSdkMetadata(),{release:i,environment:o}=n.getOptions();nJ(e,{"sentry.trace_lifecycle":"stream",[nf]:t.name,"sentry.segment.id":t.span_id,"sentry.sdk.name":a?.sdk?.name,"sentry.sdk.version":a?.sdk?.version,[eh.SEMANTIC_ATTRIBUTE_SENTRY_RELEASE]:i,[eh.SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]:o||eI.DEFAULT_ENVIRONMENT,[eh.SEMANTIC_ATTRIBUTE_USER_ID]:r.user?.id,[eh.SEMANTIC_ATTRIBUTE_USER_EMAIL]:r.user?.email,[eh.SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS]:r.user?.ip_address,[eh.SEMANTIC_ATTRIBUTE_USER_USERNAME]:r.user?.username,...r.attributes})}(o,l,t,d);let p=e.kind;t.emit("preprocessSpan",o,{spanKind:p}),o.is_segment&&(nJ(o,function(e){let t={},{response:n,profile:r,cloud_resource:a,culture:i,state:o}=e;if(n&&(null!=n.status_code&&(t["http.response.status_code"]=n.status_code),null!=n.body_size&&(t["http.response.body.size"]=n.body_size)),r&&(r.profile_id&&(t["sentry.profile_id"]=r.profile_id),r.profiler_id&&(t["sentry.profiler_id"]=r.profiler_id)),a)for(let[e,n]of Object.entries(a))null!=n&&(t[e]=n);i&&(i.locale&&(t["culture.locale"]=i.locale),i.timezone&&(t["culture.timezone"]=i.timezone)),o?.state&&"string"==typeof o.state.type&&(t["state.type"]=o.state.type);let s=e.angular;if(s){let e=s.version;("string"==typeof e||"number"==typeof e)&&(t["angular.version"]=e)}let l=e.react;if(l){let e=l.version;("string"==typeof e||"number"==typeof e)&&(t["react.version"]=e)}return t}(d.contexts)),n=o,(a=t.getIntegrationNames()).length&&nJ(n,{[eh.SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS]:a}),t.emit("processSegmentSpan",o)),t.emit("processSpan",o);let{beforeSendSpan:f}=t.getOptions(),h=f&&eA(f)?(i=f(r=o))||((0,em.showSpanDropWarning)(),r):o,m=h.attributes?.[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];return o.is_segment&&m&&nJ(h,{"sentry.segment.name.source":m}),{...(0,em.streamedSpanJsonToSerializedSpan)(h),_segmentSpan:s}}(t,e))}),e.on("afterSegmentSpanEnd",e=>{let t=e.spanContext().traceId;setTimeout(()=>{i.flush(t)},500)})}});function hT(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function hw(e){return hT(e.getAllKeys())}function hk(e){let t;function n(){var n,r;let a,i;return void 0==t&&(n=e.dbName||"sentry-offline",r=e.storeName||"queue",(a=indexedDB.open(n)).onupgradeneeded=()=>a.result.createObjectStore(r),i=hT(a),t=e=>i.then(t=>e(t.transaction(r,"readwrite").objectStore(r)))),t}return{push:async t=>{try{var r,a;let i=eU(t);await (r=n(),a=e.maxQueueSize||30,r(e=>hw(e).then(t=>{if(!(t.length>=a))return e.put(i,Math.max(...t,0)+1),hT(e.transaction)})))}catch{}},unshift:async t=>{try{var r,a;let i=eU(t);await (r=n(),a=e.maxQueueSize||30,r(e=>hw(e).then(t=>{if(!(t.length>=a))return e.put(i,Math.min(...t,0)-1),hT(e.transaction)})))}catch{}},shift:async()=>{try{let e=await n()(e=>hw(e).then(t=>{let n=t[0];if(null!=n)return hT(e.get(n)).then(t=>(e.delete(n),hT(e.transaction).then(()=>t)))}));if(e)return function(e){let t="string"==typeof e?eD(e):e;function n(e){let n=t.subarray(0,e);return t=t.subarray(e+1),n}function r(){var e;let r,a=t.indexOf(10);return a<0&&(a=t.length),JSON.parse((e=n(a),(r=(0,eN.getSentryCarrier)(Y.GLOBAL_OBJ)).decodePolyfill?r.decodePolyfill(e):new TextDecoder().decode(e)))}let a=r(),i=[];for(;t.length;){let e=r(),t="number"==typeof e.length?e.length:void 0;i.push([e,t?n(t):r()])}return[a,i]}(e)}catch{}}}}function hI(e=rI){var t;return t=function(e){function t(...e){X.DEBUG_BUILD&&q.debug.log("[Offline]:",...e)}return n=>{let r,a=e(n);if(!n.createStore)throw Error("No `createStore` function was provided");let i=n.createStore(n),o=5e3;function s(e){r&&clearTimeout(r),r=tr(setTimeout(async()=>{r=void 0;let e=await i.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=new Date((0,ex.safeDateNow)()).toISOString(),u(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e))}function l(){r||(s(o),o=Math.min(2*o,36e5))}async function u(e,r=!1){if(!r&&eL(e,["replay_event","replay_recording"]))return await i.push(e),s(100),{};
491try{if(n.shouldSend&&await n.shouldSend(e)===!1)throw Error("Envelope not sent because `shouldSend` callback returned false");let t=await a.send(e),r=100;if(t){if(t.headers?.["retry-after"])r=to(t.headers["retry-after"]);else if(t.headers?.["x-sentry-rate-limits"])r=6e4;else if((t.statusCode||0)>=400)return t}return s(r),o=5e3,t}catch(a){var c;if(await (c=o,!eL(e,["client_report"])&&(!n.shouldStore||n.shouldStore(e,a,c))))return r?await i.unshift(e):await i.push(e),l(),t("Error sending. Event queued.",a),{};throw a}}return n.flushAtStartup&&l(),{send:u,flush:e=>(void 0===e&&(o=5e3,s(100)),a.flush(e))}}}(e),e=>{let n=t({...e,createStore:hk});return tJ.addEventListener("online",async e=>{await n.flush()}),n}}var hR=e.i(790830);let hC="window"in Y.GLOBAL_OBJ&&Y.GLOBAL_OBJ.window===Y.GLOBAL_OBJ&&"u"<typeof importScripts,hA=String(0),hN=hC?"main":"worker",hx=tJ.navigator,hO="",hP="",hM="",hL=hx?.userAgent||"",hD="",hU=hx?.language||hx?.languages?.[0]||"",hB=hx?.userAgentData;function hF(e){return"pageload"===(0,em.spanToJSON)(e).op}function hz(e){let t=(0,Q.getClient)(),n=t?.getOptions(),r=n?.stackParser;return r?(0,hR.getDebugImagesForResources)(r,e):[]}function hj(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(nD&&q.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):!0===e||!1===e||!(e<0)&&!(e>1)||(nD&&q.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1)}"object"==typeof hB&&null!==hB&&"getHighEntropyValues"in hB&&hB.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(hO=e.platform||"",hM=e.architecture||"",hD=e.model||"",hP=e.platformVersion||"",e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];hL=`${t.brand} ${t.version}`}}).catch(e=>void 0);let h$=!1;function hH(){let e=tJ.Profiler;if("function"!=typeof e){nD&&q.debug.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}let t=Math.floor(3e3);try{return new e({sampleInterval:10,maxBufferSize:t})}catch(e){nD&&(q.debug.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),q.debug.log("[Profiling] Disabling profiling for current user session.")),h$=!0}}function hW(e){if(h$)return nD&&q.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return nD&&q.debug.log("[Profiling] Discarding profile because root span was not sampled."),!1;let t=(0,Q.getClient)(),n=t?.getOptions();if(!n)return nD&&q.debug.log("[Profiling] Profiling disabled, no options found."),!1;let r=n.profilesSampleRate;return hj(r)?r?!!(!0===r||Math.random()<r)||(nD&&q.debug.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(nD&&q.debug.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(nD&&q.debug.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function hG(e){return void 0!==e.profilesSampleRate}let hq=new Map,hY=new WeakSet;function hV(e){e.setAttribute("thread.id",hA),e.setAttribute("thread.name",hN)}function hJ(e){let t;hF(e)&&(t=1e3*(0,eV.timestampInSeconds)());let n=hH();if(!n)return;nD&&q.debug.log(`[Profiling] started profiling span: ${(0,em.spanToJSON)(e).description}`);let r=(0,ea.uuid4)(),a=null;async function i(){if(e&&n){if(a){nD&&q.debug.log("[Profiling] profile for:",(0,em.spanToJSON)(e).description,"already exists, returning early");return}return n.stop().then(t=>{if(o&&(tJ.clearTimeout(o),o=void 0),nD&&q.debug.log(`[Profiling] stopped profiling of span: ${(0,em.spanToJSON)(e).description}`),!t){nD&&q.debug.log(`[Profiling] profiler returned null profile for: ${(0,em.spanToJSON)(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}a=t;if(hq.set(r,t),hq.size>30){let e=hq.keys().next().value;void 0!==e&&hq.delete(e)}}).catch(e=>{nD&&q.debug.log("[Profiling] error while stopping profiler:",e)})}}(0,Q.getCurrentScope)().setContext("profile",{profile_id:r,start_timestamp:t}),hY.add(e),hV(e);let o=tJ.setTimeout(()=>{nD&&q.debug.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,em.spanToJSON)(e).description),i()},3e4),s=e.end.bind(e);e.end=function(){return e?(i().then(()=>{s()},()=>{s()}),e):s()}}class hK{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(e){let t=e.getOptions().profileLifecycle,n=function(e){if(h$)return nD&&q.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started."),!1;if("trace"!==e.profileLifecycle&&"manual"!==e.profileLifecycle)return nD&&q.debug.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;let t=e.profileSessionSampleRate;return hj(t)?t?Math.random()<=t:(nD&&q.debug.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(nD&&q.debug.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}(e.getOptions());nD&&q.debug.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),!n&&nD&&q.debug.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=(0,ea.uuid4)(),this._client=e,this._sessionSampled=n,this._lifecycleMode=t,"trace"===t&&this._setupTraceLifecycleListeners(e),e.on("spanStart",e=>{this._isRunning&&hV(e)})}
491start(){if("trace"===this._lifecycleMode){nD&&q.debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){nD&&q.debug.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){nD&&q.debug.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if("trace"===this._lifecycleMode){nD&&q.debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){nD&&q.debug.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(e){if("trace"!==this._lifecycleMode||!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;1===n&&(nD&&q.debug.log("[Profiling] Detected already active root span during setup. Active root spans now:",n),this._beginProfiling()),this._isRunning&&hV(e)}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,nD&&q.debug.log("[Profiling] Started profiling with profiler ID:",this._profilerId),(0,Q.getGlobalScope)().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){nD&&q.debug.log("[Profiling] Failed to start JS Profiler; stopping."),this._resetProfilerInfo();return}this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(e=>{nD&&q.debug.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}),"manual"===this._lifecycleMode&&(0,Q.getGlobalScope)().setContext("profile",{}))}_setupTraceLifecycleListeners(e){e.on("spanStart",e=>{if(!this._sessionSampled){nD&&q.debug.log("[Profiling] Span not profiled because of negative sampling decision for user session.");return}if(e!==(0,em.getRootSpan)(e))return;if(!e.isRecording()){nD&&q.debug.log("[Profiling] Discarding profile because root span was not sampled.");return}let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;1===n&&(nD&&q.debug.log(`[Profiling] Root span ${t} started. Profiling active while there are active root spans (count=${n}).`),this._beginProfiling())}),e.on("spanEnd",e=>{if(!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||!this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.delete(t);let n=this._activeRootSpanIds.size;nD&&q.debug.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${n}).`),0===n&&(this._collectCurrentChunk().catch(e=>{nD&&q.debug.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,(0,Q.getGlobalScope)().setContext("profile",{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);let t=setTimeout(()=>this._onRootSpanTimeout(e),3e5);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;let e=hH();if(!e){nD&&q.debug.log("[Profiling] Failed to start JS Profiler.");return}this._profiler=e}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{nD&&q.debug.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",e)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler)return void this._resetProfilerInfo();this._startPeriodicChunking()}},6e4))}_onRootSpanTimeout(e){!this._rootSpanTimeouts.has(e)||(this._rootSpanTimeouts.delete(e),this._activeRootSpanIds.has(e)&&(nD&&q.debug.log(`[Profiling] Reached 5-minute timeout for root span ${e}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(e),0===this._activeRootSpanIds.size&&this._endProfiling()))}async _collectCurrentChunk(){let e=this._profiler;if(this._profiler=void 0,e)try{let t=await e.stop(),n=function(e,t,n){if(null==e)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);let r=function(e){let t=[];for(let n=0;n<e.frames.length;n++){let r=e.frames[n];r&&(t[n]={function:r.name,abs_path:"number"==typeof r.resourceId?e.resources[r.resourceId]:void 0,lineno:r.line,colno:r.column})}let n=[];for(let t=0;t<e.stacks.length;t++){let r=e.stacks[t];if(!r)continue;let a=[],i=r;for(;i;)a.push(i.frameId),i=void 0===i.parentId?void 0:e.stacks[i.parentId];n[t]=a}let r=(0,eV.browserPerformanceTimeOrigin)(),a="number"==typeof performance.timeOrigin?performance.timeOrigin:r||0,i=a-(r||a),o=[];for(let t=0;t<e.samples.length;t++){let n=e.samples[t];if(!n)continue;let r=(a+(n.timestamp-i))/1e3;o[t]={stack_id:n.stackId??0,thread_id:hA,timestamp:r}}return{frames:t,stacks:n,samples:o,thread_metadata:{[hA]:{name:hN}}}}(e),a=t.getOptions(),i=t.getSdkMetadata?.()?.sdk;return{chunk_id:(0,ea.uuid4)(),client_sdk:{name:i?.name??"sentry.javascript.browser",version:i?.version??"0.0.0"},profiler_id:n||(0,ea.uuid4)(),platform:"javascript",version:"2",release:a.release??"",environment:a.environment??"production",debug_meta:{images:hz(e.resources)},profile:r}}(t,this._client,this._profilerId),r=function(e){try{if(!e||"object"!=typeof e)return{reason:"chunk is not an object"};let t=e=>"string"==typeof e&&/^[a-f0-9]{32}$/.test(e);
491if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};let n=e.profile;if(!n)return{reason:"missing profile data"};if(!Array.isArray(n.frames)||!n.frames.length)return{reason:"profile has no frames"};if(!Array.isArray(n.stacks)||!n.stacks.length)return{reason:"profile has no stacks"};if(!Array.isArray(n.samples)||!n.samples.length)return{reason:"profile has no samples"};return{valid:!0}}catch(e){return{reason:`unknown validation error: ${e}`}}}(n);if("reason"in r){nD&&q.debug.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",r.reason);return}this._sendProfileChunk(n),nD&&q.debug.log("[Profiling] Collected browser profile chunk.")}catch(e){nD&&q.debug.log("[Profiling] Error while stopping JS Profiler for chunk:",e)}}_sendProfileChunk(e){let t=this._client,n=ez(t.getSdkMetadata?.()),r=t.getDsn(),a=t.getOptions().tunnel,i=eO({event_id:(0,ea.uuid4)(),sent_at:new Date().toISOString(),...n&&{sdk:n},...!!a&&r&&{dsn:(0,eT.dsnToString)(r)}},[[{type:"profile_chunk",platform:"javascript"},e]]);t.sendEnvelope(i).then(null,e=>{nD&&q.debug.error("Error while sending profile chunk envelope:",e)})}}let hQ=()=>({name:"BrowserProfiling",setup(e){let t=e.getOptions(),n=new hK;if(hG(t)||t.profileLifecycle||(t.profileLifecycle="manual"),hG(t)&&!t.profilesSampleRate){nD&&q.debug.log("[Profiling] Profiling disabled, no profiling options found.");return}let r=(0,em.getActiveSpan)(),a=r&&(0,em.getRootSpan)(r);if(hG(t)&&void 0!==t.profileSessionSampleRate&&nD&&q.debug.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),hG(t))a&&hF(a)&&hW(a)&&hJ(a),e.on("spanStart",e=>{let t=(0,em.getRootSpan)(e);e===t?hW(e)&&hJ(e):hY.has(t)&&hV(e)}),e.on("beforeEnvelope",e=>{let t;if(!hq.size)return;let n=(t=[],eM(e,(e,n)=>{if("transaction"===n)for(let n=1;n<e.length;n++){let r=e[n];r?.contexts?.profile?.profile_id&&t.push(e[n])}}),t);if(!n.length)return;let r=[];for(let e of n){let t=e?.contexts,n=t?.profile?.profile_id,a=t?.profile?.start_timestamp;if("string"!=typeof n||!n){nD&&q.debug.log("[Profiling] cannot find profile for a span without a profile context");continue}t?.profile&&delete t.profile;let i=function(e){let t=hq.get(e);return t&&hq.delete(e),t}(n);if(!i){nD&&q.debug.log(`[Profiling] Could not retrieve profile for span: ${n}`);continue}let o=function(e,t,n,r){return(n.samples.length<2?(nD&&q.debug.log("[Profiling] Discarding profile because it contains less than 2 samples"),1):!n.frames.length&&(nD&&q.debug.log("[Profiling] Discarding profile because it contains no frames"),1))?null:function(e,t,n,r){var a;let i;if("transaction"!==r.type)throw TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);let o=("string"==typeof(i=r.contexts?.trace?.trace_id)&&32!==i.length&&nD&&q.debug.log(`[Profiling] Invalid traceId: ${i} on profiled event`),"string"!=typeof i)?"":i,s="thread_metadata"in(a=n)?a:function(e){let t,n=0,r={samples:[],stacks:[],frames:[],thread_metadata:{[hA]:{name:hN}}},a=e.samples[0];if(!a)return r;let i=a.timestamp,o=(0,eV.browserPerformanceTimeOrigin)(),s="number"==typeof performance.timeOrigin?performance.timeOrigin:o||0,l=s-(o||s);return e.samples.forEach((a,o)=>{if(void 0===a.stackId){void 0===t&&(t=n,r.stacks[t]=[],n++),r.samples[o]={elapsed_since_start_ns:((a.timestamp+l-i)*1e6).toFixed(0),stack_id:t,thread_id:hA};return}let s=e.stacks[a.stackId],u=[];for(;s;){u.push(s.frameId);let t=e.frames[s.frameId];t&&void 0===r.frames[s.frameId]&&(r.frames[s.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),s=void 0===s.parentId?void 0:e.stacks[s.parentId]}let c={elapsed_since_start_ns:((a.timestamp+l-i)*1e6).toFixed(0),stack_id:n,thread_id:hA};r.stacks[n]=u,r.samples[o]=c,n++}
491),r}(a),l=t||("number"==typeof r.start_timestamp?1e3*r.start_timestamp:1e3*(0,eV.timestampInSeconds)()),u="number"==typeof r.timestamp?1e3*r.timestamp:1e3*(0,eV.timestampInSeconds)();return{event_id:e,timestamp:new Date(l).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||eI.DEFAULT_ENVIRONMENT,runtime:{name:"javascript",version:tJ.navigator.userAgent},os:{name:hO,version:hP,build_number:hL},device:{locale:hU,model:hD,manufacturer:hL,architecture:hM,is_emulator:!1},debug_meta:{images:hz(n.resources)},profile:s,transactions:[{name:r.transaction||"",id:r.event_id||(0,ea.uuid4)(),trace_id:o,active_thread_id:hA,relative_start_ns:"0",relative_end_ns:((u-l)*1e6).toFixed(0)}]}}(e,t,n,r)}(n,a,i,e);o&&r.push(o)}!function(e,t){if(t.length)for(let n of t)e[1].push([{type:"profile"},n])}(e,r)});else{let r=t.profileLifecycle;if(e.on("startUIProfiler",()=>n.start()),e.on("stopUIProfiler",()=>n.stop()),"manual"===r)n.initialize(e);else if("trace"===r){if(!(0,rF.hasSpansEnabled)(t)){nD&&q.debug.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}n.initialize(e),a&&n.notifyRootSpanActive(a),tJ.setTimeout(()=>{let e=(0,em.getActiveSpan)(),t=e&&(0,em.getRootSpan)(e);t&&n.notifyRootSpanActive(t)},0)}}}}),hX=[{op:"ui.interaction.click",name:"#sentry-spotlight"}],hZ=(e={})=>{let t=e.sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{nD&&q.debug.log("Using Sidecar URL",t)},beforeSetup(e){let t=e.getOptions();t.ignoreSpans=[...t.ignoreSpans||[],...hX]},afterAllSetup:e=>{var n,r;let a,i;n=e,r=t,a=rw("fetch"),i=0,n.on("beforeEnvelope",e=>{i>3?q.debug.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",i):a(r,{method:"POST",body:eU(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(i=0)},e=>{i++,q.debug.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}}},h0=()=>
491({name:"LaunchDarkly",processEvent:(e,t,n)=>uw(e)});function h1(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{uk(e,t.value),uI(e,t.value)}}}let h2=()=>({name:"OpenFeature",processEvent:(e,t,n)=>uw(e)});class h3{after(e,t){uk(t.flagKey,t.value),uI(t.flagKey,t.value)}error(e,t,n){uk(e.flagKey,e.defaultValue),uI(e.flagKey,e.defaultValue)}}let h4=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){let t=e.prototype;(0,ed.fill)(t,"isEnabled",h5)},processEvent:(e,t,n)=>uw(e)});function h5(e){return function(...t){let n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r?(uk(n,r),uI(n,r)):nD&&q.debug.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}function h6(e){return function(...t){let n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r&&(uk(n,r),uI(n,r)),r}}let h8=({growthbookClass:e})=>(({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){let t=e.prototype;"function"==typeof t.isOn&&(0,ed.fill)(t,"isOn",h6),"function"==typeof t.getFeatureValue&&(0,ed.fill)(t,"getFeatureValue",h6)}
491,processEvent:(e,t,n)=>uw(e)}))({growthbookClass:e}),h7=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",e=>{uk(e.gate.name,e.gate.value),uI(e.gate.name,e.gate.value)})},processEvent:(e,t,n)=>uw(e)});async function h9(){let e=(0,Q.getClient)();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";let t=e.getOptions().tunnel||"https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7";try{await r6(()=>fetch(t,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}let me=({worker:e})=>({name:"WebWorker",setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>mt(e))},addWorker:e=>mt(e)});function mt(e){e.addEventListener("message",e=>{if(function(e){if(!(0,eG.isPlainObject)(e)||!0!==e._sentryMessage)return!1;let t="_sentryDebugIds"in e,n="_sentryModuleMetadata"in e,r="_sentryWorkerError"in e,a="_sentryWasmImages"in e;return(!!t||!!n||!!r||!!a)&&(!t||!!((0,eG.isPlainObject)(e._sentryDebugIds)||void 0===e._sentryDebugIds))&&(!n||!!((0,eG.isPlainObject)(e._sentryModuleMetadata)||void 0===e._sentryModuleMetadata))&&(!r||!!(0,eG.isPlainObject)(e._sentryWorkerError))&&(!a||!!Array.isArray(e._sentryWasmImages)&&!!e._sentryWasmImages.every(e=>(0,eG.isPlainObject)(e)&&"string"==typeof e.code_file))&&!0}(e.data)){if(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(nD&&q.debug.log("Sentry debugId web worker message received",e.data),tJ._sentryDebugIds={...e.data._sentryDebugIds,...tJ._sentryDebugIds}),e.data._sentryModuleMetadata&&(nD&&q.debug.log("Sentry module metadata web worker message received",e.data),tJ._sentryModuleMetadata={...e.data._sentryModuleMetadata,...tJ._sentryModuleMetadata}),e.data._sentryWasmImages){nD&&q.debug.log("Sentry WASM images web worker message received",e.data);let t=tJ._sentryWasmImages||[],n=e.data._sentryWasmImages.filter(e=>(0,eG.isPlainObject)(e)&&"string"==typeof e.code_file&&!t.some(t=>t.code_file===e.code_file));tJ._sentryWasmImages=[...t,...n]}e.data._sentryWorkerError&&(nD&&q.debug.log("Sentry worker rejection message received",e.data._sentryWorkerError),function(e){let t=(0,Q.getClient)();if(!t)return;let n=t.getOptions().stackParser,r=t.getOptions().attachStacktrace,a=e.reason,i=(0,eG.isPrimitive)(a)?n6(a):tW(n,a,void 0,r,!0);i.level="error",e.filename&&(i.contexts={...i.contexts,worker:{filename:e.filename}}),(0,K.captureEvent)(i,{originalException:a,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),nD&&q.debug.log("Captured worker unhandled rejection",a)}(e.data._sentryWorkerError))}})}function mn({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{let n={reason:n5(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:n}),nD&&q.debug.log("[Sentry Worker] Forwarding unhandled rejection to parent",n)}),nD&&q.debug.log("[Sentry Worker] Registered worker with unhandled rejection handling")}function mr(e,{componentStack:t},n){let r;if(null!==(r=rP.version.match(/^([^.]+)/))&&parseInt(r[0])>=17&&(0,eG.isError)(e)&&t){let n,r=Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,n=new WeakSet,function e(t,r){if(!n.has(t)){if(t.cause)return n.add(t),e(t.cause,r);t.cause=r}}(e,r)}return(0,K.captureException)(e,n)}function ma(e){return(t,n)=>{let r=!!e,a=mr(t,n,{mechanism:{handled:r,type:"auto.function.react.error_handler"}});r&&e(t,n,a)}}e.s(["BrowserClient",0,tZ,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",0,s7,"OpenFeatureIntegrationHook",0,h3,"SDK_VERSION",()=>V.SDK_VERSION,"SEMANTIC_ATTRIBUTE_SENTRY_OP",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_OP,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"Scope",()=>lt.Scope,"WINDOW",0,tJ,"addBreadcrumb",0,nu,"addEventProcessor",()=>K.addEventProcessor,"addIntegration",0,en,"bindScopeToEmitter",0,li,"breadcrumbsIntegration",0,nU,"browserApiErrorsIntegration",0,nF,"browserProfilingIntegration",0,hQ,"browserSessionIntegration",0,nY,"browserTracingIntegration",0,iM,"buildLaunchDarklyFlagUsedHandler",0,h1,"captureConsoleIntegration",0,ll,"captureEvent",()=>K.captureEvent,"captureException",()=>K.captureException,"captureFeedback",0,ou,"captureMessage",()=>K.captureMessage,"captureSession",()=>K.captureSession,"chromeStackLineParser",0,ru,"close",()=>K.close,"consoleLoggingIntegration",0,lf,"contextLinesIntegration",0,cH,"continueTrace",0,r4,"createConsolaReporter",0,lm,"createLangChainCallbackHandler",0,uv,"createTransport",0,tu,"createUserFeedbackEnvelope",0,cR,"cultureContextIntegration",0,nK,"dedupeIntegration",0,ey,"defaultRequestInstrumentationOptions",0,iC,"defaultStackLineParsers",0,rb,"defaultStackParser",0,rv,"diagnoseSdkConnectivity",0,h9,"elementTimingIntegration",0,h_,"endSession",()=>K.endSession,"eventFiltersIntegration",0,es,"eventFromException",0,t$,"eventFromMessage",0,tH,"exceptionFromError",0,tU,"extraErrorDataIntegration",0,uE,"featureFlagsIntegration",0,uR,"feedbackAsyncIntegration",0,s6,"feedbackIntegration",0,s8,"feedbackSyncIntegration",0,s8,"fetchStreamPerformanceIntegration",0,io,"flush",()=>K.flush,"forceLoad",0,rx,"functionToStringIntegration",0,ef,"geckoStackLineParser",0,rp,"getAbsoluteUrl",0,ij,"getActiveSpan",()=>em.getActiveSpan,"getClient",()=>Q.getClient,"getCurrentScope",()=>Q.getCurrentScope,"getDefaultIntegrations",0,rA,"getFeedback",0,oV,"getGlobalScope",()=>Q.getGlobalScope,"getIsolationScope",()=>Q.getIsolationScope,"getReplay",0,fZ,"getRootSpan",()=>em.getRootSpan,"getSpanDescendants",()=>em.getSpanDescendants,"getSpanStatusFromHttpCode",()=>rV.getSpanStatusFromHttpCode,"getTraceData",0,i_,"globalHandlersIntegration",0,n4,"graphqlClientIntegration",0,cJ,"growthbookIntegration",0,h8,"httpClientIntegration",0,cU,"httpContextIntegration",0,n9,"inboundFiltersIntegration",0,el,"init",0,rN,"instrumentAnthropicAiClient",0,uU,"instrumentCreateReactAgent",0,u$,"instrumentGoogleGenAIClient",0,uJ,"instrumentLangChainEmbeddings",0,uQ,"instrumentLangGraph",0,uH,"instrumentOpenAiClient",0,u2,"instrumentOutgoingRequests",0,iA,"instrumentStateGraph",0,uH,"instrumentSupabaseClient",0,cn,"isBotUserAgent",0,iO,"isEnabled",()=>K.isEnabled,"isInitialized",()=>K.isInitialized,"lastEventId",()=>K.lastEventId,"launchDarklyIntegration",0,h0,"lazyLoadIntegration",0,s5,"linkedErrorsIntegration",0,rr,"logger",()=>cp,"makeBrowserOfflineTransport",0,hI,"makeFetchTransport",0,rI,"makeMultiplexedTransport",0,le,"metrics",()=>ch,"moduleMetadataIntegration",0,cb,"normalizeStringifyValue",0,rC,"onLoad",0,rO,"openFeatureIntegration",0,h2,"opera10StackLineParser",0,rg,"opera11StackLineParser",0,r_,"parameterize",0,cd,"registerSpanErrorInstrumentation",0,ac,"registerWebWorker",0,mn,"replayCanvasIntegration",0,hy,"replayIntegration",0,fK,"reportPageLoaded",0,hb,"reportingObserverIntegration",0,cx,"rewriteFramesIntegration",0,on,"sendFeedback",0,oB,"setActiveSpanInBrowser",0,hv,"setAttribute",()=>K.setAttribute,"setAttributes",()=>K.setAttributes,"setContext",()=>K.setContext,"setConversationId",()=>K.setConversationId,"setCurrentClient",0,eE,"setExtra",()=>K.setExtra,"setExtras",()=>K.setExtras,"setHttpStatus",()=>rV.setHttpStatus,"setMeasurement",0,r$,"setTag",()=>
491K.setTag,"setTags",()=>K.setTags,"setUser",()=>K.setUser,"showReportDialog",0,cC,"spanStreamingIntegration",0,hE,"spanToBaggageHeader",()=>eR.spanToBaggageHeader,"spanToJSON",()=>em.spanToJSON,"spanToTraceHeader",()=>em.spanToTraceHeader,"spotlightBrowserIntegration",0,hZ,"startBrowserTracingNavigationSpan",0,iD,"startBrowserTracingPageLoadSpan",0,iL,"startInactiveSpan",0,r3,"startNewTrace",0,r7,"startSession",()=>K.startSession,"startSpan",0,r1,"startSpanManual",0,r2,"statsigIntegration",0,h7,"supabaseIntegration",0,cr,"suppressTracing",0,r6,"thirdPartyErrorFilterIntegration",0,cv,"uiProfiler",0,cI,"unleashIntegration",0,h4,"updateSpanName",()=>em.updateSpanName,"viewHierarchyIntegration",0,cK,"webVitalsIntegration",0,im,"webWorkerIntegration",0,me,"winjsStackLineParser",0,rh,"withActiveSpan",0,r5,"withIsolationScope",()=>Q.withIsolationScope,"withScope",()=>Q.withScope,"withStreamedSpan",0,eC,"zodErrorsIntegration",0,ck],148132),e.i(148132);var mi=rP;let mo="ui.react.render",ms="ui.react.mount",ml={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},mu={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},mc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},md=Symbol.for("react.forward_ref"),mp=Symbol.for("react.memo"),mf={};function mh(e){if("object"==typeof e&&null!==e&&e.$$typeof===mp)return mc;let t=e.$$typeof;return t&&mf[t]||ml}mf[md]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},mf[mp]=mc;let mm=Object.defineProperty.bind(Object),mg=Object.getOwnPropertyNames.bind(Object),my=Object.getOwnPropertySymbols?.bind(Object),m_=Object.getOwnPropertyDescriptor.bind(Object),mb=Object.getPrototypeOf.bind(Object),mv=Object.prototype;function mS(e,t,n){if("string"!=typeof t){if(mv){let n=mb(t);n&&n!==mv&&mS(e,n)}let n=mg(t);my&&(n=n.concat(my(t)));let r=mh(e),a=mh(t);for(let i of n)if(!mu[i]&&!a?.[i]&&!r?.[i]&&!m_(e,i)){let n=m_(t,i);if(n)try{mm(e,i,n)}catch(e){}}}return e}class mE extends mi.Component{constructor(e){super(e);const{name:t,disabled:n=!1}=this.props;if(n)return;this._mountSpan=r3({name:`<${t}>`,onlyIfParent:!0,op:ms,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":t}})}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:e,includeUpdates:t=!0}){if(t&&this._mountSpan&&e!==this.props.updateProps){let t=Object.keys(e).filter(t=>e[t]!==this.props.updateProps[t]);if(t.length>0){let e=(0,eV.timestampInSeconds)();this._updateSpan=r5(this._mountSpan,()=>r3({name:`<${this.props.name}>`,onlyIfParent:!0,op:"ui.react.update",startTime:e,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":t}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){let e=(0,eV.timestampInSeconds)(),{name:t,includeRender:n=!0}=this.props;if(this._mountSpan&&n){let n=(0,em.spanToJSON)(this._mountSpan).timestamp;r5(this._mountSpan,()=>{let r=r3({onlyIfParent:!0,name:`<${t}>`,op:mo,startTime:n,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":t}});r&&r.end(e)})}}render(){return this.props.children}}function mT(e,t){let n=t?.name||e.displayName||e.name||"unknown",r=r=>mi.createElement(mE,{...t,name:n,updateProps:r},mi.createElement(e,{...r}));return r.displayName=`profiler(${n})`,mS(r,e),r}function mw(e,t={disabled:!1,hasRenderSpan:!0}){let[n]=mi.useState(()=>{if(!t?.disabled)return r3({name:`<${e}>`,onlyIfParent:!0,op:ms,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":e}})});mi.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){let t=(0,em.spanToJSON)(n).timestamp,r=(0,eV.timestampInSeconds)(),a=r3({name:`<${e}>`,onlyIfParent:!0,op:mo,startTime:t,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":e}});a&&a.end(r)}}),[])}Object.assign(mE,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}});var mk=rP;let mI="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,mR={componentStack:null,error:null,eventId:null};class mC extends mk.Component{constructor(e){super(e),this.state=mR,this._openFallbackReportDialog=!0;const t=(0,Q.getClient)();t&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=t.on("afterSendEvent",t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&cC({...e.dialogOptions,eventId:this._lastEventId})}))}
491componentDidCatch(e,t){let{componentStack:n}=t,{beforeCapture:r,onError:a,showDialog:i,dialogOptions:o}=this.props;(0,Q.withScope)(s=>{r&&r(s,e,n);let l=mr(e,t,{mechanism:{handled:null!=this.props.handled?this.props.handled:!!this.props.fallback,type:"auto.function.react.error_boundary"}});a&&a(e,n,l),i&&(this._lastEventId=l,this._openFallbackReportDialog&&cC({...o,eventId:l})),this.setState({error:e,componentStack:n,eventId:l})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&(this.state===mR?r(null,null,null):r(e,t,n)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){let{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(mR)}render(){let{fallback:e,children:t}=this.props,n=this.state;if(null===n.componentStack)return"function"==typeof t?t():t;let r="function"==typeof e?mk.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:n.eventId}):e;return mk.isValidElement(r)?r:(e&&mI&&q.debug.warn("fallback did not produce a valid ReactElement"),null)}}function mA(e,t){let n=e.displayName||e.name||"unknown",r=mk.memo(n=>mk.createElement(mC,{...t},mk.createElement(e,{...n})));return r.displayName=`errorBoundary(${n})`,mS(r,e),r}let mN={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function mx(e){let t={...mN,...e};return e=>(n,r)=>{function a(e){return(n,r)=>{let a=e(n,r),i=(0,Q.getCurrentScope)(),o=t.actionTransformer(r);null!=o&&nu({category:"redux.action",data:o,type:"info"});let s=t.stateTransformer(a);if(null!=s){let e=(0,Q.getClient)(),t=e?.getOptions(),n=t?.normalizeDepth||3,r={state:{type:"redux",value:s}};(0,uS.setNormalizationDepthOverrideHint)(r,3+n),i.setContext("state",r)}else i.setContext("state",null);let{configureScopeWithState:l}=t;return"function"==typeof l&&l(i,a),a}}t.attachReduxState&&(0,Q.getGlobalScope)().addEventProcessor((e,t)=>{try{void 0===e.type&&"redux"===e.contexts.state.state.type&&(t.attachments=[...t.attachments||[],{filename:"redux_state.json",data:JSON.stringify(e.contexts.state.state.value)}])}catch{}return e});let i=e(a(n),r);return i.replaceReducer=new Proxy(i.replaceReducer,{apply:function(e,t,n){e.apply(t,[a(n[0])])}}),i}}function mO(e){let t=iM({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,match:a,instrumentPageLoad:i=!0,instrumentNavigation:o=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),i&&tJ.location&&mP(r,tJ.location,a,(t,n="url")=>{iL(e,{name:t,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.reactrouter_v3",[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n,..."route"===n&&{[ny]:t}}})}),o&&n.listen&&n.listen(t=>{("PUSH"===t.action||"POP"===t.action)&&mP(r,t,a,(t,n="url")=>{iD(e,{name:t,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.react.reactrouter_v3",[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n,..."route"===n&&{[ny]:t}}})})})}}}function mP(e,t,n,r){let a=t.pathname;n({location:t,routes:e},(e,t,n)=>{if(e||!n)return r(a);let i=function(e){if(!Array.isArray(e)||0===e.length)return"";let t=e.filter(e=>!!e.path),n=-1;for(let e=t.length-1;e>=0;e--){let r=t[e];if(r.path?.startsWith("/")){n=e;break}}return t.slice(n).reduce((e,{path:t})=>{let n="/"===e||""===e?t:`/${t}`;return`${e}${n}`},"")}(n.routes||[]);return 0===i.length||"/*"===i?r(a):r(a=i,"route")})}function mM(e,t={}){let n=iM({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:r=!0,instrumentNavigation:a=!0}=t;return{...n,afterAllSetup(t){n.afterAllSetup(t);let i=(t,n)=>{let r=e.matchRoutes(t,n,{preload:!1,throwOnError:!1}),a=r[r.length-1];return a?.routeId!=="__root__"?a:void 0},o=(t,n,r,a)=>{var i;let o;t.updateName(n?n.routeId:a),t.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,n?"route":"url"),t.setAttributes({...n&&{[ny]:n.routeId},...(o=mL(e,i=r),{[ng]:i.pathname,[nm]:o}),...mD(n)})},s=tJ.location;if(r&&s){let n=e.state?.location,r=n?i(n.pathname,n.search):i(s.pathname,e.options.parseSearch(s.search)),a=iL(t,{name:r?r.routeId:s.pathname,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.tanstack_router",[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r?"route":"url",...r&&{[ny]:r.routeId},...mD(r)}}),l=e.subscribe("onResolved",e=>{if(l(),!a)return;let{toLocation:t}=e;o(a,i(t.pathname,t.search),t,t.pathname)})}if(a){let n;e.subscribe("onBeforeLoad",r=>{let{toLocation:a,fromLocation:s}=r;if(!s||a.state===s.state)return;let l=i(a.pathname,a.search),u=tJ.location?.pathname||a.pathname;n?o(n,l,a,u):n=iD(t,{name:l?l.routeId:u,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.react.tanstack_router",[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:l?"route":"url",...l&&{[ny]:l.routeId},...mD(l)}},{url:mL(e,a)})}),e.subscribe("onResolved",e=>{let t=n;if(n=void 0,!t)return;let{toLocation:r}=e,a=i(r.pathname,r.search);a&&o(t,a,r,tJ.location?.pathname||r.pathname)})}}}}function mL(e,t){let n=e.options.stringifySearch?.(t.search)??"";return ij(`${t.pathname}${n&&"?"!==n?n:""}`)}function mD(e){if(!e)return{};let t={};
491return Object.entries(e.params).forEach(([e,n])=>{t[`url.path.params.${e}`]=n,t[`url.path.parameter.${e}`]=n,t[`params.${e}`]=n}),t}function mU(e){let t=iM({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:a,instrumentPageLoad:i=!0,instrumentNavigation:o=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),mF(e,i,o,n,"reactrouter_v4",r,a)}}}function mB(e){let t=iM({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:a,instrumentPageLoad:i=!0,instrumentNavigation:o=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),mF(e,i,o,n,"reactrouter_v5",r,a)}}}function mF(e,t,n,r,a,i=[],o){function s(e){if(0===i.length||!o)return[e,"url"];for(let t of function e(t,n,r,a=[]){return t.some(t=>{let i=t.path?r(n,t):a.length?a[a.length-1].match:{path:"/",url:"/",params:{},isExact:"/"===n};return i&&(a.push({route:t,match:i}),t.routes&&e(t.routes,n,r,a)),!!i}),a}(i,e,o))if(t.match.isExact)return[t.match.path,"route"];return[e,"url"]}if(t){let t=r.location?r.location.pathname:tJ.location?tJ.location.pathname:void 0;if(t){let[n,r]=s(t);iL(e,{name:n,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.pageload.react.${a}`,[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r,..."route"===r&&{[ny]:n}}})}}n&&r.listen&&r.listen((t,n)=>{if(n&&("PUSH"===n||"POP"===n)){let[n,r]=s(t.pathname);iD(e,{name:n,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.navigation.react.${a}`,[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r,..."route"===r&&{[ny]:n}}})}})}function mz(e){let t=e.displayName||e.name,n=t=>{if(t?.computedMatch?.isExact){let e=t.computedMatch.path,n=function(){let e=(0,em.getActiveSpan)(),t=e&&(0,em.getRootSpan)(e);if(!t)return;let n=(0,em.spanToJSON)(t).op;return"navigation"===n||"pageload"===n?t:void 0}();(0,Q.getCurrentScope)().setTransactionName(e),n&&(n.updateName(e),n.setAttributes({[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[ny]:e}))}return rP.createElement(e,{...t})};return n.displayName=`sentryRoute(${t})`,mS(n,e),n}function mj(e,t){if(!t||"/"===t||!e.toLowerCase().startsWith(t.toLowerCase()))return e;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?e:e.slice(n)||"/"}let m$=new WeakMap;function mH(e,t){return void 0!==e&&void 0!==t&&(!!mG.test(t)||e===t)}function mW(e){return e.split("/").filter(Boolean)}let mG=/^:[\w-]+$/;function mq(e){let t=e.split("/"),n=t.length;for(let e of(t.includes("*")&&(n+=-2),t))if("*"===e)continue;else mG.test(e)?n+=3:""===e?n+=1:n+=10;return n}let mY=!1,mV=[];function mJ(){let e=mV.length;return e>0?mV[e-1]??null:null}function mK(e){return e.params["*"]||""}function mQ(e){return"*"===e[e.length-1]?e.slice(0,-1):e}function mX(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function mZ(e){return e.endsWith("*")}function m0(e){return e.includes("/*")||e.endsWith("*")}function m1(e,t){return mZ(e)&&!!t.route.children?.length||!1}function m2(e){return!!(!e.children&&e.element&&e.path?.endsWith("/*"))}function m3(e){return e.split(/\\?\//).filter(e=>e.length>0&&","!==e).length}function m4(e){return"/"===e[0]?e:`/${e}`}function m5(e,t){let n=S(e,t);if(!n||0===n.length)return"";for(let r of n)if(r.route.path&&"*"!==r.route.path){let n=mQ(r.route.path||""),a=mj(t.pathname,m4(r.pathnameBase));if(t.pathname===a)return mX(a);return mX(mX(n||"")+m4(m5(e.filter(e=>e!==r.route),{pathname:a})))}return""}function m6(e,t){return mY?mj(e.pathname,t):e.pathname||""}function m8(e,t,n,r,a="",i,o){let s;if(o&&i&&i.length>0){let t=function(e,t,n){if(!e||!t?.length)return null;let r=n?mj(e,n):e,a=m$.get(t);for(let e of(!a&&(a=[...t].sort((e,t)=>{let n=mq(e);return mq(t)-n}),m$.set(t,a),mI&&q.debug.log("[React Router] Sorted route manifest by specificity:",a.length,"patterns")),a))if(function(e,t){if("/"===t)return"/"===e||""===e;let n=mW(e),r=mW(t);if(r.length>0&&"*"===r[r.length-1]){let e=r.slice(0,-1);if(n.length<e.length)return!1;for(let[t,r]of e.entries())if(!mH(n[t],r))return!1;return!0}if(n.length!==r.length)return!1;for(let[e,t]of r.entries())if(!mH(n[e],t))return!1;return!0}(r,e))return mI&&q.debug.log("[React Router] Matched pathname",r,"to pattern",e),e;return mI&&q.debug.log("[React Router] No manifest match found for pathname:",r),null}(e.pathname,i,a);if(t)return[(mY?"":a)+t,"route"]}let l="url",u=function(e,t){let n=S(t,e);if(n){for(let e of n)if(m2(e.route)&&mK(e))return!0}return!1}(e,n);u&&(s=m4(m5(n,e)),l="route"),u&&s||([s,l]=function(e,t,n,r=""){if(!e||0===e.length)return[mY?mj(t.pathname,r):t.pathname,"url"];if(!n)return[m6(t,r),"url"];let a="";for(let e of n){let n=e.route;if(!n)continue;if(n.index)return function(e,t,n){let r=e&&e.length>
4910?e:mY?mj(t,n):t,a="/*"===r.slice(-2)?r.slice(0,-2):r;return a.length>1&&"/"===a[a.length-1]&&(a=a.slice(0,-1)),[a,"route"]}(a,e.pathname,r);let i=n.path;if(!i||m1(i,e))continue;let o="/"===i[0]||"/"===a[a.length-1]?i:`/${i}`;if(a=mX(a)+m4(o),mX(t.pathname)===mX(r+e.pathname)){if(m3(a)!==m3(e.pathname)&&!mZ(a))return[(mY?"":r)+o,"route"];return m1(a,e)&&(a=a.slice(0,-1)),[(mY?"":r)+a,"route"]}}return[m6(t,r),"url"]}(t,e,r,a));let c=function(e,t,n){let r=t.filter(m2);if(!r.length)return;let a=S(r,e),i=a?.[a.length-1];if(!i||!mK(i))return;let o=mX(mQ(i.route.path||""));if(!o)return;let s=m4(o),l=o.split("/")[0],u=l?.startsWith(":")&&n?.split("/").includes(l);if(n===s||n?.startsWith(`${s}/`)||u)return;let c=mj(e.pathname,m4(i.pathnameBase))||"/",d=m5(t.filter(e=>e!==i.route),{pathname:c});return d?m4(`${o}${m4(d)}`):void 0}(e,n,s);return c?[c,"route"]:[s||e.pathname,l]}function m7(){let e=(0,em.getActiveSpan)(),t=e?(0,em.getRootSpan)(e):void 0;if(!t)return;let n=(0,em.spanToJSON)(t).op;return"navigation"===n||"pageload"===n?t:void 0}function m9(e,t){if(e.handle&&"object"==typeof e.handle)for(let n of Object.keys(e.handle)){let r=e.handle[n];"function"!=typeof r||r.__sentry_proxied__||(e.handle[n]=function(e,t,n,r){let a=new Proxy(e,{apply(e,a,i){let o,s=function(){let e=mJ();if(e)return e.targetPath?{pathname:e.targetPath,search:"",hash:"",state:null,key:"default"}:null;if(void 0!==tJ)try{let e=tJ.location;if(e)return{pathname:e.pathname,search:e.search||"",hash:e.hash||"",state:null,key:"default"}}catch{mI&&q.debug.warn("[React Router] Could not access window.location")}return null}(),l=(o=mJ())?o.span:m7(),u=e.apply(a,i);return function(e,t,n,r,a,i){(0,eG.isThenable)(e)?e.then(e=>{Array.isArray(e)&&r(e,t,a??void 0,i)}).catch(e=>{mI&&q.debug.warn(`Error resolving async handler '${n}' for route`,t,e)}):Array.isArray(e)&&r(e,t,a??void 0,i)}(u,t,n,r,s,l),u}});return(0,ed.addNonEnumerableProperty)(a,"__sentry_proxied__",!0),a}(r,e,n,t))}if(Array.isArray(e.children))for(let n of e.children)m9(n,t)}let ge=!1,gt=3e3,gn="",gr=new WeakSet,ga=tJ?.document?rP.useLayoutEffect:rP.useEffect,gi=new WeakMap,go=new Set,gs=new WeakMap,gl=new WeakMap;function gu(e){tJ?.cancelAnimationFrame?tJ.cancelAnimationFrame(e):clearTimeout(e)}function gc(e){return`${e.pathname}${e.search||""}${e.hash||""}`}function gd(e){return e.includes(":")||e.includes("*")}function gp(e,t){let n=t.children||[],r=e.filter(e=>!n.some(t=>t===e||e.path&&t.path===e.path||e.id&&t.id===e.id));r.length>0&&(t.children=[...n,...r])}function gf(e,t){let n=gs.get(e);n||(n=new Set,gs.set(e,n)),n.add(t),t.finally(()=>{let n=gs.get(e);n&&n.delete(t)})}function gh(e){let t=new Promise(t=>{gl.set(e,t)});gf(e,t)}function gm(e,t,n=null,r){e.forEach(e=>{go.add(e),ge&&m9(e,gm)}),t&&gp(e,t);let a=r??m7();if(a){let e=(0,em.spanToJSON)(a);if(e.timestamp){mI&&q.debug.warn("[React Router] Lazy handler resolved after span ended - skipping update");return}let t=e.op,i=n;if(!i&&!r&&void 0!==tJ){let e=tJ.location;e?.pathname&&(i={pathname:e.pathname})}i&&("pageload"===t?gI({activeRootSpan:a,location:{pathname:i.pathname},routes:Array.from(go),allRoutes:Array.from(go)}):"navigation"===t&&gg(a,i,Array.from(go),!1,I))}}function gg(e,t,n,r=!1,a){let i=(0,em.spanToJSON)(e),o=i.description,s=e?.__sentry_navigation_name_set__,l=o&&m0(o);if((!s||r||l)&&!i.timestamp){let r=a(n,t),[u,c]=m8(t,n,n,r||[],gn,R,ge),d=i.data?.[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];u&&(!o||!s&&("route"!==d||"route"===c)||"route"!==d&&"route"===c||"route"===d&&"route"===c&&l)&&(e.updateName(u),e.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,c),"route"===c&&e.setAttribute(ny,u),m0(u)||"route"!==c||(0,ed.addNonEnumerableProperty)(e,"__sentry_navigation_name_set__",!0))}}function gy(e,t,n,r,a){let i=!1,o=!!a&&"pageload"===(0,em.spanToJSON)(a).op,s=!1,l=null,u=null;e.subscribe(e=>{if(!i){let t=m7();t&&"pageload"===(0,em.spanToJSON)(t).op?o=!0:o&&("POP"!==e.historyAction||s?i=!0:s=!0)}if("PUSH"===e.historyAction||"POP"===e.historyAction&&i){let a=gc(e.location),i=()=>{u!==a&&(u=a,l=null,gT({location:e.location,routes:t,navigationType:e.historyAction,version:n,base
491name:r,allRoutes:Array.from(go)}))};if("idle"!==e.navigation.state)u!==a&&(u=null),null!==l&&gu(l),l=tJ?.requestAnimationFrame?tJ.requestAnimationFrame(i):setTimeout(i,0);else null!==l&&(gu(l),l=null),i()}})}function g_(e,t){return E&&T&&w&&I?function(n,r){if(gw(n),ge)for(let e of n)m9(e,gm);let a=m7();r&&"patchRoutesOnNavigation"in r&&"function"==typeof r.patchRoutesOnNavigation&&a&&((0,ed.addNonEnumerableProperty)(a,"__sentry_may_have_lazy_routes__",!0),gh(a));let i=e(n,gE(r,!1,a)),o=r?.basename;return"POP"===i.state.historyAction&&a&&gI({activeRootSpan:a,location:i.state.location,routes:n,basename:o,allRoutes:Array.from(go)}),gn=o||"",gy(i,n,t,o,a),i}:(mI&&q.debug.warn(`reactRouter${t?`V${t}`:""}Instrumentation was unable to wrap the \`createRouter\` function because of one or more missing parameters.`),e)}function gb(e,t){return E&&T&&w&&I?function(n,r){let a;if(gw(n),ge)for(let e of n)m9(e,gm);let i=m7();r&&"patchRoutesOnNavigation"in r&&"function"==typeof r.patchRoutesOnNavigation&&i&&((0,ed.addNonEnumerableProperty)(i,"__sentry_may_have_lazy_routes__",!0),gh(i));let o=e(n,gE(r,!0,i)),s=r?.basename,l=r?.initialEntries,u=r?.initialIndex,c=l?.length===1,d=void 0!==u&&l?.[u],p=(a=c?l[0]:d?l[u]:void 0)?"string"==typeof a?{pathname:a}:a:o.state.location,f=m7();return"POP"===o.state.historyAction&&f&&gI({activeRootSpan:f,location:p,routes:n,basename:s,allRoutes:Array.from(go)}),gn=s||"",gy(o,n,t,s,f),o}:(mI&&q.debug.warn(`reactRouter${t?`V${t}`:""}Instrumentation was unable to wrap the \`createMemoryRouter\` function because of one or more missing parameters.`),e)}function gv(e,t){let n=iM({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:a,useNavigationType:i,createRoutesFromChildren:o,matchRoutes:s,stripBasename:l,enableAsyncRouteHandlers:u=!1,instrumentPageLoad:c=!0,instrumentNavigation:d=!0,lazyRouteTimeout:p,lazyRouteManifest:f}=e;return{...n,setup(t){n.setup(t);let c=e.finalTimeout??3e4,d=(e.idleTimeout??1e3)*3,h=p??d;h===1/0?(gt=c,mI&&q.debug.log("[React Router] lazyRouteTimeout set to Infinity, capping at finalTimeout:",c,"ms to prevent indefinite hangs")):Number.isNaN(h)?(mI&&q.debug.warn("[React Router] lazyRouteTimeout must be a number, falling back to default:",d),gt=d):h<0?(mI&&q.debug.warn("[React Router] lazyRouteTimeout must be non-negative or Infinity, got:",h,"falling back to:",d),gt=d):gt=h,E=r,T=a,w=i,I=s,k=o,ge=u,R=f,function(e,t=!1){S=e,mY=t}(s,l||!1)},afterAllSetup(e){n.afterAllSetup(e);let r=tJ.location?.pathname;c&&r&&iL(e,{name:r,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.pageload.react.reactrouter${t?`_v${t}`:""}`}}),d&&gr.add(e)}}}function gS(e,t){if(!E||!T||!w||!I)return mI&&q.debug.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters."),e;let n=n=>{let r=rP.useRef(!0),{routes:a,locationArg:i}=n,o=e(a,i),s=T(),l=w(),u="string"==typeof i||i?.pathname?i:s;return ga(()=>{let e=gw(a);return()=>gk(e)}),ga(()=>{let e="string"==typeof u?{pathname:u}:u;r.current?(gI({activeRootSpan:m7(),location:e,routes:a,allRoutes:Array.from(go)}),r.current=!1):gT({location:e,routes:a,navigationType:l,version:t,allRoutes:Array.from(go)})},[l,u]),o};return(e,t)=>rP.createElement(n,{routes:e,locationArg:t})}function gE(e,t=!1,n){if(!e||!("patchRoutesOnNavigation"in e)||"function"!=typeof e.patchRoutesOnNavigation)return e||{};let r=e.patchRoutesOnNavigation;return{...e,patchRoutesOnNavigation:async e=>{let a=e?.path,i=m7()??n;if(!t){let t=e?.patch,n=e?.matches;t&&(e.patch=(e,r)=>{if(gw(r),n&&n.length>0){let t=n[n.length-1],a=t?.route;if(a){let t=Array.from(go).find(t=>{let n=void 0!==t.id&&t.id===e,r=t===a,i=void 0!==t.path&&void 0!==a.path&&t.path===a.path;return n||r||i});t&&gp(r,t)}}let o=i?(0,em.spanToJSON)(i):void 0;return a&&i&&o&&!o.timestamp&&"navigation"===o.op&&gg(i,{pathname:a,search:"",hash:"",state:null,key:"default"},Array.from(go),!0,I),t(e,r)})}let o=(async()=>{let t,n,o=(n={},mV.length>=10&&(mI&&q.debug.warn("[React Router] Navigation context stack overflow - removing oldest context"),mV.shift()),mV.push({token:n,targetPath:a,span:i}),n);try{t=await r(e)}finally{let e,t;e=mV[mV.length-1],e?.token===o&&mV.pop(),i&&(t=gl.get(i))&&(t(),gl.delete(i),i.__sentry_may_have_lazy_routes__&&(i.__sentry_may_have_lazy_routes__=!1))}let s=i?(0,em.spanToJSON)(i):void 0;return i&&s&&!s.timestamp&&"navigation"===s.op&&a&&gg(i,{pathname:a,search:"",hash:"",state:null,key:"default"},Array.from(go),!1,I),t})();return i&&gf(i,o),o}}}function gT(e){let{location:t,routes:n,navigationType:r,version:a,matches:i,basename:o,allRoutes:s}=e,l=Array.isArray(i)?i:I(s||n,t,o),u=(0,Q.getClient)();if(!u||!gr.has(u))return;let c=m7();if((!c||"pageload"!==(0,em.spanToJSON)(c).op||"POP"!==r)&&("PUSH"===r||"POP"===r)&&l){let e,[r,i]=m8(t,s||n,s||n,l,o,R,ge),c=gc(t),d=gi.get(u),p=!!d&&!d.isPlaceholder&&!!(0,em.spanToJSON)(d.span).timestamp,{skip:f,shouldUpdate:h}=function(e,t,n,r){if(!e)return{skip:!1,shouldUpdate:!1};if(e.locationKey===t&&(e.isPlaceholder||!r)){let t=!!e.routeName&&m0(e.routeName),r=m0(n),a=!!e.routeName&&gd(e.routeName),i=gd(n),o=n!==e.routeName&&n.length>(e.routeName?.length||0)&&!r;return{skip:!0,shouldUpdate:!!(e.routeName&&(t&&!r||!a&&i||o))}}return{skip:!1,shouldUpdate:!1}}(d,c,r,p);if(f){if(h&&d){let e=d.routeName;d.isPlaceholder?(d.routeName=r,mI&&q.debug.log(`[Tracing] Updated placeholder navigation name from "${e}" to "${r}" (will apply to real span)`)):(d.span.updateName(r),d.span.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,i),"route"===i&&d.span.setAttribute(ny,r),(0,ed.addNonEnumerableProperty)(d.span,"__sentry_navigation_name_set__",!0),d.routeName=r,mI&&q.debug.log(`[Tracing] Updated navigation span name from "${e}" to "${r}"`))}else mI&&q.debug.log(`[Tracing] Skipping duplicate navigation for location: ${c}`);return}let m={span:{end:()=>{}},routeName:r,pathname:t.pathname,locationKey:c,isPlaceholder:!0};gi.set(u,m);try{e=iD(u,{name:m.routeName,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:i,[eh.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.navigation.react.reactrouter${a?`_v${a}`:""}`,..."route"===i&&{[ny]:m.routeName}}})}catch(e){throw gi.delete(u),e}e?(gi.set(u,{span:e,routeName:m.routeName,pathname:t.pathname,locationKey:c}),gC(e,t,n,o,"navigation")):gi.delete(u)}}function gw(e){let t=[];
491return e.forEach(e=>{(function e(t,n=new Set){return n.has(t)||(n.add(t),t.children&&!t.index&&t.children.forEach(t=>{e(t,n).forEach(e=>{n.add(e)})})),n})(e).forEach(e=>{go.add(e),t.push(e)})}),t}function gk(e){e.forEach(e=>{go.delete(e)})}function gI({activeRootSpan:e,location:t,routes:n,matches:r,basename:a,allRoutes:i}){let o=Array.isArray(r)?r:I(i||n,t,a);if(o){let[r,s]=m8(t,i||n,i||n,o,a,R,ge);(0,Q.getCurrentScope)().setTransactionName(r||"/"),e&&(e.updateName(r),e.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,s),"route"===s&&e.setAttribute(ny,r),gC(e,t,n,a,"pageload"))}else e&&gC(e,t,n,a,"pageload")}function gR(e,t,n,r,a,i,o,s){try{let l=t.data?.[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if("route"===l&&n&&!m0(n))return;let u=Array.from(s),c=u.length>0?u:a,d=I(c,r,i);if(!d)return;let[p,f]=m8(r,c,c,d,i,R,ge),h=function(e,t,n,r,a=!1){return!!n&&(!!(!e&&a||e&&m0(e)&&"route"===r&&!m0(n))||"route"!==t&&"route"===r)}(n,l,p,f,!0),m="pageload"===o||!t.timestamp;h&&m&&(e.updateName(p),e.setAttribute(eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,f),"route"===f&&e.setAttribute(ny,p))}catch(e){mI&&q.debug.warn(`Error updating span details before ending: ${e}`)}}function gC(e,t,n,r,a){let i=`__sentry_${a}_end_patched__`;if(e?.[i]||!e.end)return;let o=e.end.bind(e),s=!1;e.end=function(...i){if(s)return;s=!0;let l=i.length>0?i[0]:Date.now()/1e3,u=(0,em.spanToJSON)(e),c=u.description,d=u.data?.[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],p=()=>{let t=(0,Q.getClient)();if(t&&"navigation"===a){let n=gi.get(t);n&&n.span===e&&gi.delete(t)}},f=gs.get(e),h=e.__sentry_may_have_lazy_routes__;if((f&&f.size>0||h)&&c&&(m0(c)||"route"!==d)){let i;if(0===gt){gR(e,u,c,t,n,r,a,go),p(),o(l);return}let s=new Promise(e=>setTimeout(e,gt));if(f&&f.size>0){let e=Promise.allSettled(f).then(()=>{});i=gt===1/0?e:Promise.race([e,s])}else i=s;i.then(()=>{let i=(0,em.spanToJSON)(e);gR(e,i,i.description,t,n,r,a,go),p(),o(l)}).catch(()=>{p(),o(l)});return}gR(e,u,c,t,n,r,a,go),p(),o(l)},(0,ed.addNonEnumerableProperty)(e,i,!0)}function gA(e,t){if(!E||!T||!w||!k||!I)return mI&&q.debug.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.
492      useEffect: ${E}. useLocation: ${T}. useNavigationType: ${w}.
493      createRoutesFromChildren: ${k}. matchRoutes: ${I}.`),e;let n=n=>{let r=rP.useRef(!0),a=T(),i=w(),o=k(n.children);return ga(()=>{let e=gw(o);return()=>gk(e)}),ga(()=>{r.current?(gI({activeRootSpan:m7(),location:a,routes:o,allRoutes:Array.from(go)}),r.current=!1):gT({location:a,routes:o,navigationType:i,version:t,allRoutes:Array.from(go)})},[a,i]),rP.createElement(e,{...n})};return mS(n,e),n}function gN(e){return gv(e,"6")}function gx(e){return gS(e,"6")}function gO(e){return g_(e,"6")}function gP(e){return gb(e,"6")}function gM(e){return gA(e,"6")}function gL(e){return gv(e,"7")}function gD(e){return gA(e,"7")}function gU(e){return g_(e,"7")}function gB(e){return gb(e,"7")}function gF(e){return gS(e,"7")}function gz(e){return gv(e,"")}function gj(e){return gA(e,"")}function g$(e){return g_(e,"")}function gH(e){return gb(e,"")}function gW(e){return gS(e,"")}function gG(e){let t={};try{e.forEach((e,n)=>{"string"==typeof e&&(t[n]=e)})}catch{}return t}function gq(e){let t=Object.create(null);try{Object.entries(e).forEach(([e,n])=>{"string"==typeof n?t[e]=n:"number"==typeof n&&(t[e]=String(n))})}catch{}return t}function gY(e){let t=e.headers||{},n=("string"==typeof t["x-forwarded-host"]?t["x-forwarded-host"]:void 0)||("string"==typeof t.host?t.host:void 0),r=("string"==typeof t["x-forwarded-proto"]?t["x-forwarded-proto"]:void 0)||e.protocol||(e.socket?.encrypted?"https":"http"),a=e.url||"",i=function({url:e,protocol:t,host:n}){return e?.startsWith("http")?e:e&&n?`${t}://${n}${e}`:void 0}({url:a,host:n,protocol:r}),o=e.body||void 0,s=e.cookies;return{url:i,method:e.method,query_string:gV(a),headers:gq(t),cookies:s,data:o}}function gV(e){if(e)try{let t=new URL(e,"http://s.io").search.slice(1);return t.length?t:void 0}catch{return}}async function gJ(){try{rD&&q.debug.log("Flushing events..."),await (0,K.flush)(2e3),rD&&q.debug.log("Done flushing events")}catch(e){rD&&q.debug.log("Error while flushing events:\n",e)}}function gK(e){var t;"function"==typeof gQ()?.waitUntil?(t=e,gQ()?.waitUntil(t)):function(e){if("string"!=typeof EdgeRuntime)return;let t=Y.GLOBAL_OBJ[Symbol.for("@vercel/request-context")],n=t?.get?.();n?.waitUntil&&n.waitUntil(e)}(e)}function gQ(){let e=Symbol.for("__cloudflare-context__");return Y.GLOBAL_OBJ[e]?.ctx}async function gX(e){let{req:t,res:n,err:r}=e,a=n?.statusCode||e.statusCode;if(a&&a<500||!e.pathname)return;if(r&&(0,ea.isAlreadyCaptured)(r)){gK(gJ());let e="object"==typeof r?r.__sentry_event_id__:void 0;return"string"==typeof e?((0,Q.getIsolationScope)().setLastEventId(e),e):(0,Q.getIsolationScope)().lastEventId()}let i=(0,Q.withScope)(e=>{if(t){let n=gY(t);e.setSDKProcessingMetadata({normalizedRequest:n})}
493return(0,K.captureException)(r||`_error.js called with falsy error (${r})`,{mechanism:{type:"auto.function.nextjs.underscore_error",handled:!1,data:{function:"_error.getInitialProps"}}})});return gK(gJ()),i}e.s(["BrowserClient",0,tZ,"ErrorBoundary",0,mC,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",0,s7,"OpenFeatureIntegrationHook",0,h3,"Profiler",0,mE,"SDK_VERSION",()=>V.SDK_VERSION,"SEMANTIC_ATTRIBUTE_SENTRY_OP",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_OP,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"Scope",()=>lt.Scope,"WINDOW",0,tJ,"addBreadcrumb",0,nu,"addEventProcessor",()=>K.addEventProcessor,"addIntegration",0,en,"bindScopeToEmitter",0,li,"breadcrumbsIntegration",0,nU,"browserApiErrorsIntegration",0,nF,"browserProfilingIntegration",0,hQ,"browserSessionIntegration",0,nY,"browserTracingIntegration",0,iM,"buildLaunchDarklyFlagUsedHandler",0,h1,"captureConsoleIntegration",0,ll,"captureEvent",()=>K.captureEvent,"captureException",()=>K.captureException,"captureFeedback",0,ou,"captureMessage",()=>K.captureMessage,"captureReactException",0,mr,"captureSession",()=>K.captureSession,"chromeStackLineParser",0,ru,"close",()=>K.close,"consoleLoggingIntegration",0,lf,"contextLinesIntegration",0,cH,"continueTrace",0,r4,"createConsolaReporter",0,lm,"createLangChainCallbackHandler",0,uv,"createReduxEnhancer",0,mx,"createTransport",0,tu,"createUserFeedbackEnvelope",0,cR,"cultureContextIntegration",0,nK,"dedupeIntegration",0,ey,"defaultRequestInstrumentationOptions",0,iC,"defaultStackLineParsers",0,rb,"defaultStackParser",0,rv,"diagnoseSdkConnectivity",0,h9,"elementTimingIntegration",0,h_,"endSession",()=>K.endSession,"eventFiltersIntegration",0,es,"eventFromException",0,t$,"eventFromMessage",0,tH,"exceptionFromError",0,tU,"extraErrorDataIntegration",0,uE,"featureFlagsIntegration",0,uR,"feedbackAsyncIntegration",0,s6,"feedbackIntegration",0,s8,"feedbackSyncIntegration",0,s8,"fetchStreamPerformanceIntegration",0,io,"flush",()=>K.flush,"forceLoad",0,rx,"functionToStringIntegration",0,ef,"geckoStackLineParser",0,rp,"getAbsoluteUrl",0,ij,"getActiveSpan",()=>em.getActiveSpan,"getClient",()=>Q.getClient,"getCurrentScope",()=>Q.getCurrentScope,"getDefaultIntegrations",0,rA,"getFeedback",0,oV,"getGlobalScope",()=>Q.getGlobalScope,"getIsolationScope",()=>Q.getIsolationScope,"getReplay",0,fZ,"getRootSpan",()=>em.getRootSpan,"getSpanDescendants",()=>em.getSpanDescendants,"getSpanStatusFromHttpCode",()=>rV.getSpanStatusFromHttpCode,"getTraceData",0,i_,"globalHandlersIntegration",0,n4,"graphqlClientIntegration",0,cJ,"growthbookIntegration",0,h8,"httpClientIntegration",0,cU,"httpContextIntegration",0,n9,"inboundFiltersIntegration",0,el,"init",0,rM,"instrumentAnthropicAiClient",0,uU,"instrumentCreateReactAgent",0,u$,"instrumentGoogleGenAIClient",0,uJ,"instrumentLangChainEmbeddings",0,uQ,"instrumentLangGraph",0,uH,"instrumentOpenAiClient",0,u2,"instrumentOutgoingRequests",0,iA,"instrumentStateGraph",0,uH,"instrumentSupabaseClient",0,cn,"isBotUserAgent",0,iO,"isEnabled",()=>K.isEnabled,"isInitialized",()=>K.isInitialized,"lastEventId",()=>K.lastEventId,"launchDarklyIntegration",0,h0,"lazyLoadIntegration",0,s5,"linkedErrorsIntegration",0,rr,"logger",()=>cp,"makeBrowserOfflineTransport",0,hI,"makeFetchTransport",0,rI,"makeMultiplexedTransport",0,le,"metrics",()=>ch,"moduleMetadataIntegration",0,cb,"normalizeStringifyValue",0,rC,"onLoad",0,rO,"openFeatureIntegration",0,h2,"opera10StackLineParser",0,rg,"opera11StackLineParser",0,r_,"parameterize",0,cd,"reactErrorHandler",0,ma,"reactRouterBrowserTracingIntegration",0,gz,"reactRouterV3BrowserTracingIntegration",0,mO,"reactRouterV4BrowserTracingIntegration",0,mU,"reactRouterV5BrowserTracingIntegration",0,mB,"reactRouterV6BrowserTracingIntegration",0,gN,"reactRouterV7BrowserTracingIntegration",0,gL,"registerSpanErrorInstrumentation",0,ac,"registerWebWorker",0,mn,"replayCanvasIntegration",0,hy,"replayIntegration",0,fK,"reportPageLoaded",0,hb,"reportingObserverIntegration",0,cx,"rewriteFramesIntegration",0,on,"sendFeedback",0,oB,"setActiveSpanInBrowser",0,hv,"setAttribute",()=>K.setAttribute,"setAttributes",()=>K.setAttributes,"setContext",()=>K.setContext,"setConversationId",()=>K.setConversationId,"setCurrentClient",0,eE,"setExtra",()=>K.setExtra,"setExtras",()=>K.setExtras,"setHttpStatus",()=>rV.setHttpStatus,"setMeasurement",0,r$,"setTag",()=>
493K.setTag,"setTags",()=>K.setTags,"setUser",()=>K.setUser,"showReportDialog",0,cC,"spanStreamingIntegration",0,hE,"spanToBaggageHeader",()=>eR.spanToBaggageHeader,"spanToJSON",()=>em.spanToJSON,"spanToTraceHeader",()=>em.spanToTraceHeader,"spotlightBrowserIntegration",0,hZ,"startBrowserTracingNavigationSpan",0,iD,"startBrowserTracingPageLoadSpan",0,iL,"startInactiveSpan",0,r3,"startNewTrace",0,r7,"startSession",()=>K.startSession,"startSpan",0,r1,"startSpanManual",0,r2,"statsigIntegration",0,h7,"supabaseIntegration",0,cr,"suppressTracing",0,r6,"tanstackRouterBrowserTracingIntegration",0,mM,"thirdPartyErrorFilterIntegration",0,cv,"uiProfiler",0,cI,"unleashIntegration",0,h4,"updateSpanName",()=>em.updateSpanName,"useProfiler",0,mw,"viewHierarchyIntegration",0,cK,"webVitalsIntegration",0,im,"webWorkerIntegration",0,me,"winjsStackLineParser",0,rh,"withActiveSpan",0,r5,"withErrorBoundary",0,mA,"withIsolationScope",()=>Q.withIsolationScope,"withProfiler",0,mT,"withScope",()=>Q.withScope,"withSentryReactRouterV6Routing",0,gM,"withSentryReactRouterV7Routing",0,gD,"withSentryRouting",0,mz,"withStreamedSpan",0,eC,"wrapCreateBrowserRouter",0,g$,"wrapCreateBrowserRouterV6",0,gO,"wrapCreateBrowserRouterV7",0,gU,"wrapCreateMemoryRouter",0,gH,"wrapCreateMemoryRouterV6",0,gP,"wrapCreateMemoryRouterV7",0,gB,"wrapReactRouterRouting",0,gj,"wrapUseRoutes",0,gW,"wrapUseRoutesV6",0,gx,"wrapUseRoutesV7",0,gF,"zodErrorsIntegration",0,ck],351955),e.i(351955);var gZ=e.i(818793);function g0(){return G.default.env.NEXT_PHASE===gZ.PHASE_PRODUCTION_BUILD}function g1(e){let t=g0(),n=!!e&&function(e){if(e.$$typeof!==Symbol.for("react.server.reference"))return!1;let{type:t}=function(e){let t=parseInt(e.slice(0,2),16),n=t>>1&63,r=Array(6);for(let e=0;e<6;e++){let t=n>>5-e&1;r[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:r,hasRestArgs:1==(1&t)}}(e.$$id);return"use-cache"===t}(e);return n&&rD&&q.debug.log("Skipping span creation in Cache Components context"),t||n}function g2(){return new rz.SentryNonRecordingSpan({traceId:"00000000000000000000000000000000",spanId:"0000000000000000"})}async function g3(e,t,n){return(0,Q.withIsolationScope)(async r=>{let a,i,o=(0,Q.getClient)()?.getDataCollectionOptions().httpBodies.includes("outgoingResponse"),s={};try{let e=await t.headers;a=e?.get("sentry-trace")??void 0,i=e?.get("baggage"),e?.forEach((e,t)=>{s[t]=e})}catch{rD&&q.debug.warn("Sentry wasn't able to extract the tracing headers for a server action. Will not trace this request.")}return r.setTransactionName(`serverAction/${e}`),r.setSDKProcessingMetadata({normalizedRequest:{headers:s}}),((0,em.getActiveSpan)()?(e,t)=>t():r4)({sentryTrace:a,baggage:i},async()=>{try{return await r1({op:"function.server_action",name:`serverAction/${e}`,forceTransaction:!0,attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.function.nextjs.server_action"}},async e=>{let r=await rX(n,t=>{rU(t)?e.setStatus({code:rV.SPAN_STATUS_ERROR,message:"not_found"}):rB(t)?(e.setStatus({code:rV.SPAN_STATUS_OK}),e.end()):(e.setStatus({code:rV.SPAN_STATUS_ERROR,message:"internal_error"}),(0,K.captureException)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.server_action"}}))});return(void 0!==t.recordResponse?t.recordResponse:o)&&(0,Q.getIsolationScope)().setExtra("server_action_result",r),t.formData&&t.formData.forEach((e,t)=>{(0,Q.getIsolationScope)().setExtra(`server_action_form_data.${t}`,"string"==typeof e?e:"[non-string value]")}),r})}finally{gK(gJ())}})})}function g4(e,t){let n=(0,Q.getCurrentScope)(),r=(0,Q.getClient)();if(r)if(r.captureCheckIn)return r.captureCheckIn(e,t,n);else X.DEBUG_BUILD&&q.debug.warn("Cannot capture check-in. Client does not support sending check-ins.");else X.DEBUG_BUILD&&q.debug.warn("Cannot capture check-in. No client defined.");return(0,ea.uuid4)()}function g5(e){return async function(...t){try{return await e.apply(this,t)}catch(t){throw(0,K.captureException)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.wrapped",data:{function:e.name}}}),t}}}function g6(e,t,n,r){return async function(...n){let a=gY(t);(0,Q.getCurrentScope)().setTransactionName(`${r.dataFetchingMethodName} (${r.dataFetcherRouteName})`),(0,Q.getIsolationScope)().setSDKProcessingMetadata({normalizedRequest:a});let i=(0,em.getActiveSpan)();i&&"/_error"!==r.requestedRouteName&&(0,em.getRootSpan)(i).setAttribute("sentry.route_backfill",r.requestedRouteName);let{"sentry-trace":o,baggage:s}=i_();return{sentryTrace:o,baggage:s,data:await e.apply(this,n)}}}async function g8(e,t){try{return await e(...t)}catch(e){throw(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.data_fetcher"}}),e}}function g7(e,t){(0,eG.isObjectLike)(e)&&(0,ed.addNonEnumerableProperty)(e,"__sentry_event_id__",t)}e.s(["BrowserClient",0,tZ,"ErrorBoundary",0,mC,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",0,s7,"OpenFeatureIntegrationHook",0,h3,"Profiler",0,mE,"SDK_VERSION",()=>V.SDK_VERSION,"SEMANTIC_ATTRIBUTE_SENTRY_OP",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_OP,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",()=>eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"Scope",()=>lt.Scope,"WINDOW",0,tJ,"addBreadcrumb",0,nu,"addEventProcessor",()=>K.addEventProcessor,"addIntegration",0,en,"bindScopeToEmitter",0,li,"breadcrumbsIntegration",0,nU,"browserApiErrorsIntegration",0,nF,"browserProfilingIntegration",0,hQ,"browserSessionIntegration",0,nY,"browserTracingIntegration",0,i7,"buildLaunchDarklyFlagUsedHandler",0,h1,"captureConsoleIntegration",0,ll,"captureEvent",()=>K.captureEvent,"captureException",()=>K.captureException,"captureFeedback",0,ou,"captureMessage",()=>K.captureMessage,"captureReactException",0,mr,"captureRequestError",0,function(e,t,n){(0,Q.withScope)(r=>{r.setSDKProcessingMetadata({normalizedRequest:{headers:gq(t.headers),method:t.method}}),r.setContext("nextjs",{request_path:t.path,router_kind:n.routerKind,router_path:n.routePath,route_type:n.routeType}),r.setTransactionName(`${t.method} ${n.routePath}`),(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.on_request_error"}}),gK(gJ())})},"captureRouterTransitionStart",0,function(e,t){A&&A(e,t)},"captureSession",()=>K.captureSession,"captureUnderscoreErrorException",0,gX,"chromeStackLineParser",0,ru,"close",()=>K.close,"consoleLoggingIntegration",0,lf,"contextLinesIntegration",0,cH,"continueTrace",0,r4,"createConsolaReporter",0,lm,"createLangChainCallbackHandler",0,uv,"createReduxEnhancer",0,mx,"createTransport",0,tu,"createUserFeedbackEnvelope",0,cR,"cultureContextIntegration",0,nK,"dedupeIntegration",0,ey,"defaultRequestInstrumentationOptions",0,iC,"defaultStackLineParsers",0,rb,"defaultStackParser",0,rv,"diagnoseSdkConnectivity",0,h9,"elementTimingIntegration",0,h_,"endSession",()=>K.endSession,"eventFiltersIntegration",0,es,"eventFromException",0,t$,"eventFromMessage",0,tH,"exceptionFromError",0,tU,"extraErrorDataIntegration",0,uE,"featureFlagsIntegration",0,uR,"feedbackAsyncIntegration",0,s6,"feedbackIntegration",0,s8,"feedbackSyncIntegration",0,s8,"fetchStreamPerformanceIntegration",0,io,"flush",()=>K.flush,"forceLoad",0,rx,"functionToStringIntegration",0,ef,"geckoStackLineParser",0,rp,"getAbsoluteUrl",0,ij,"getActiveSpan",()=>em.getActiveSpan,"getClient",()=>Q.getClient,"getCurrentScope",()=>Q.getCurrentScope,"getDefaultIntegrations",0,rA,"getFeedback",0,oV,"getGlobalScope",()=>Q.getGlobalScope,"getIsolationScope",()=>Q.getIsolationScope,"getReplay",0,fZ,"getRootSpan",()=>em.getRootSpan,"getSpanDescendants",()=>em.getSpanDescendants,"getSpanStatusFromHttpCode",()=>rV.getSpanStatusFromHttpCode,"getTraceData",0,i_,"globalHandlersIntegration",0,n4,"graphqlClientIntegration",0,cJ,"growthbookIntegration",0,h8,"httpClientIntegration",0,cU,"httpContextIntegration",0,n9,"inboundFiltersIntegration",0,el,"init",0,ol,"instrumentAnthropicAiClient",0,uU,"instrumentCreateReactAgent",0,u$,"instrumentGoogleGenAIClient",0,uJ,"instrumentLangChainEmbeddings",0,uQ,"instrumentLangGraph",0,uH,"instrumentOpenAiClient",0,u2,"instrumentOutgoingRequests",0,iA,"instrumentStateGraph",0,uH,"instrumentSupabaseClient",0,cn,"isBotUserAgent",0,iO,"isEnabled",()=>K.isEnabled,"isInitialized",()=>K.isInitialized,"lastEventId",()=>K.lastEventId,"launchDarklyIntegration",0,h0,"lazyLoadIntegration",0,s5,"linkedErrorsIntegration",0,rr,"logger",()=>cp,"makeBrowserOfflineTransport",0,hI,"makeFetchTransport",0,rI,"makeMultiplexedTransport",0,le,"metrics",()=>ch,"moduleMetadataIntegration",0,cb,"normalizeStringifyValue",0,rC,"onLoad",0,rO,"openFeatureIntegration",0,h2,"opera10StackLineParser",0,rg,"opera11StackLineParser",0,r_,"parameterize",0,cd,"reactErrorHandler",0,ma,"reactRouterBrowserTracingIntegration",0,gz,"reactRouterV3BrowserTracingIntegration",0,mO,"reactRouterV4BrowserTracingIntegration",0,mU,"reactRouterV5BrowserTracingIntegration",0,mB,"reactRouterV6BrowserTracingIntegration",0,gN,"reactRouterV7BrowserTracingIntegration",0,gL,"registerSpanErrorInstrumentation",0,ac,"registerWebWorker",0,mn,"replayCanvasIntegration",0,hy,"replayIntegration",0,fK,"reportPageLoaded",0,hb,"reportingObserverIntegration",0,cx,"rewriteFramesIntegration",0,on,"sendFeedback",0,oB,"setActiveSpanInBrowser",0,hv,"setAttribute",()=>K.setAttribute,"setAttributes",()=>K.setAttributes,"setContext",()=>K.setContext,"setConversationId",()=>K.setConversationId,"setCurrentClient",0,eE,"setExtra",()=>K.setExtra,"setExtras",()=>K.setExtras,"setHttpStatus",()=>rV.setHttpStatus,"setMeasurement",0,r$,"setTag",()=>
493K.setTag,"setTags",()=>K.setTags,"setUser",()=>K.setUser,"showReportDialog",0,cC,"spanStreamingIntegration",0,hE,"spanToBaggageHeader",()=>eR.spanToBaggageHeader,"spanToJSON",()=>em.spanToJSON,"spanToTraceHeader",()=>em.spanToTraceHeader,"spotlightBrowserIntegration",0,hZ,"startBrowserTracingNavigationSpan",0,iD,"startBrowserTracingPageLoadSpan",0,iL,"startInactiveSpan",0,function(e){return g1()?g2():r3(e)},"startNewTrace",0,r7,"startSession",()=>K.startSession,"startSpan",0,function(e,t){return g1(t)?t(g2()):r1(e,t)},"startSpanManual",0,function(e,t){if(g1(t)){let e=g2();return t(e,()=>e.end())}return r2(e,t)},"statsigIntegration",0,h7,"supabaseIntegration",0,cr,"suppressTracing",0,r6,"tanstackRouterBrowserTracingIntegration",0,mM,"thirdPartyErrorFilterIntegration",0,cv,"uiProfiler",0,cI,"unleashIntegration",0,h4,"updateSpanName",()=>em.updateSpanName,"useProfiler",0,mw,"viewHierarchyIntegration",0,cK,"webVitalsIntegration",0,im,"webWorkerIntegration",0,me,"winjsStackLineParser",0,rh,"withActiveSpan",0,r5,"withErrorBoundary",0,mA,"withIsolationScope",()=>Q.withIsolationScope,"withProfiler",0,mT,"withScope",()=>Q.withScope,"withSentryConfig",0,function(e){return e},"withSentryReactRouterV6Routing",0,gM,"withSentryReactRouterV7Routing",0,gD,"withSentryRouting",0,mz,"withServerActionInstrumentation",0,function(...e){if("function"==typeof e[1]){let[t,n]=e;return g3(t,{},n)}{let[t,n,r]=e;return g3(t,n,r)}},"withStreamedSpan",0,eC,"wrapApiHandlerWithSentryVercelCrons",0,function(e,t){return new Proxy(e,{apply:(e,n,r)=>{let a;if(!r?.[0])return e.apply(n,r);let[i]=r,o="nextUrl"in i?i.nextUrl.pathname:i.url,s="nextUrl"in i?i.headers.get("user-agent"):i.headers["user-agent"];if(!t||!s?.includes("vercel-cron"))return e.apply(n,r);let l=t.find(e=>e.path===o);if(!l?.path||!l.schedule)return e.apply(n,r);let u=l.path,c=g4({monitorSlug:u,status:"in_progress"},{maxRuntime:720,schedule:{type:"crontab",value:l.schedule}}),d=(0,ex.safeDateNow)()/1e3,p=()=>{g4({checkInId:c,monitorSlug:u,status:"error",duration:(0,ex.safeDateNow)()/1e3-d})};try{a=e.apply(n,r)}catch(e){throw p(),e}return(0,eG.isObjectLike)(a)&&"then"in a?Promise.resolve(a).then(()=>{g4({checkInId:c,monitorSlug:u,status:"ok",duration:(0,ex.safeDateNow)()/1e3-d})},()=>{p()}):g4({checkInId:c,monitorSlug:u,status:"ok",duration:(0,ex.safeDateNow)()/1e3-d}),a}})},"wrapAppGetInitialPropsWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(g0())return e.apply(t,n);let[r]=n,{req:a,res:i}=r.ctx,o=g5(e);if(!a||!i)return o.apply(t,n);{let e=g6(o,a,i,{dataFetcherRouteName:"/_app",requestedRouteName:r.ctx.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,sentryTrace:l,baggage:u}=await e.apply(t,n);return"object"==typeof s&&null!==s&&(s.pageProps||(s.pageProps={}),l&&(s.pageProps._sentryTraceData=l),u&&(s.pageProps._sentryBaggage=u)),s}}})},"wrapCreateBrowserRouter",0,g$,"wrapCreateBrowserRouterV6",0,gO,"wrapCreateBrowserRouterV7",0,gU,"wrapCreateMemoryRouter",0,gH,"wrapCreateMemoryRouterV6",0,gP,"wrapCreateMemoryRouterV7",0,gB,"wrapDocumentGetInitialPropsWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(g0())return e.apply(t,n);let[r]=n,{req:a,res:i}=r,o=g5(e);if(!a||!i)return o.apply(t,n);{let e=g6(o,a,i,{dataFetcherRouteName:"/_document",requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s}=await e.apply(t,n);return s}}})},"wrapErrorGetInitialPropsWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(g0())return e.apply(t,n);let[r]=n,{req:a,res:i}=r,o=g5(e);if(!a||!i)return o.apply(t,n);{let e=g6(o,a,i,{dataFetcherRouteName:"/_error",requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,baggage:l,sentryTrace:u}=await e.apply(t,n);return"object"==typeof s&&null!==s&&(u&&(s._sentryTraceData=u),l&&(s._sentryBaggage=l)),s}}})},"wrapGenerationFunctionWithSentry",0,function(e,t){return new Proxy(e,{apply:(e,n,r)=>{let a,i=(0,Q.getIsolationScope)();try{a=t.requestAsyncStorage?.getStore()?.headers}catch{}let o=a?gG(a):void 0;return i.setSDKProcessingMetadata({normalizedRequest:{headers:o}}),rX(()=>e.apply(n,r),e=>{let n=(0,em.getActiveSpan)(),{componentRoute:r,componentType:a,generationFunctionIdentifier:o}=t,s=!0;i.setTransactionName(`${a}.${o} (${r})`),n&&(rU(e)?(s=!1,n.setStatus({code:rV.SPAN_STATUS_ERROR,message:"not_found"})):rB(e)?(s=!1,n.setStatus({code:rV.SPAN_STATUS_OK})):n.setStatus({code:rV.SPAN_STATUS_ERROR,message:"internal_error"})),s&&(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.generation_function",data:{function:o}}})},()=>{gK(gJ())})}})},"wrapGetInitialPropsWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(g0())return e.apply(t,n);let[r]=n,{req:a,res:i}=r,o=g5(e);if(!a||!i)return o.apply(t,n);{let e=g6(o,a,i,{dataFetcherRouteName:r.pathname,requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,baggage:l,sentryTrace:u}=await e.apply(t,n)??{};return"object"==typeof s&&null!==s&&(u&&(s._sentryTraceData=u),l&&(s._sentryBaggage=l)),s}}})},"wrapGetServerSidePropsWithSentry",0,function(e,t){return new Proxy(e,{apply:async(e,n,r)=>{if(g0())return e.apply(n,r);let[a]=r,{req:i,res:o}=a,s=g6(g5(e),i,o,{dataFetcherRouteName:t,requestedRouteName:t,dataFetchingMethodName:"getServerSideProps"}),{data:l,baggage:u,sentryTrace:c}=await s.apply(n,r);return"object"==typeof l&&null!==l&&"props"in l&&(c&&(l.props._sentryTraceData=c),u&&(l.props._sentryBaggage=u)),l}})},"wrapGetStaticPropsWithSentry",0,function(e,t){return new Proxy(e,{apply:async(e,t,n)=>g0()?e.apply(t,n):g8(g5(e),n)})},"wrapMiddlewareWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,n)=>{let r="_sentryRewritesTunnelPath"in globalThis?globalThis._sentryRewritesTunnelPath:void 0;if(r&&"string"==typeof r){let e=n[0];if(e instanceof Request){var a;if((a=new URL(e.url).pathname)===r||a.startsWith(`${r}/`))return new Response(null,{status:200,headers:{"x-middleware-next":"1"}})}}return(0,Q.withIsolationScope)(r=>{let a,i,o=n[0],s=(0,Q.getCurrentScope)();if(o instanceof Request){let e;r.setSDKProcessingMetadata({normalizedRequest:(e=gG(o.headers),{method:o.method,url:o.url,query_string:gV(o.url),headers:e})}),a=`middleware ${o.method}`,i="url"}else a="middleware",i="component";s.setTransactionName(a);let l=()=>rX(()=>e.apply(t,n),e=>{(0,K.captureException)(e,{mechanism:{type:"auto.function.nextjs.wrap_middleware",handled:!1}})},()=>{gK(gJ())}),u=(0,em.getActiveSpan)();if(u){let e=(0,em.getRootSpan)(u);return e&&(0,nV.setCapturedScopesOnSpan)(e,s,r),l()}return r1({name:a,op:"http.server.middleware",attributes:{[eh.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:i,[eh.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.function.nextjs.wrap_middleware"}},l)})}})},"wrapPageComponentWithSentry",0,function(e){return"function"==typeof e&&e?.prototype?.isReactComponent?class extends e{render(...e){return(0,Q.withIsolationScope)(()=>{let t=(0,Q.getCurrentScope)(),n=(0,eG.isObjectLike)(this.props)&&"_sentryTraceData"in this.props&&"string"==typeof this.props._sentryTraceData?this.props._sentryTraceData:void 0;if(n){let e=(0,rZ.extractTraceparentData)(n);t.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return super.render(...e)}catch(t){let e=(0,K.captureException)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.page_class"}});throw g7(t,e),t}})}}:"function"==typeof e?new Proxy(e,{apply:(e,t,n)=>(0,Q.withIsolationScope)(()=>{let r=(0,Q.getCurrentScope)(),a=n?.[0]?._sentryTraceData;if(a){let e=(0,rZ.extractTraceparentData)(a);r.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return e.apply(t,n)}catch(t){let e=(0,K.captureException)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.page_function"}});throw g7(t,e),t}})}):e},"wrapReactRouterRouting",0,gj,"wrapRouteHandlerWithSentry",0,function(e,t){let{method:n,parameterizedRoute:r,headers:a}=t;return new Proxy(e,{apply:async(e,t,a)=>{let i=(0,em.getActiveSpan)(),o=i?(0,em.getRootSpan)(i):void 0;return(0,Q.withIsolationScope)((0,Q.getIsolationScope)(),()=>(0,Q.withScope)(async s=>{s.setTransactionName(`${n} ${r}`);let l=await rX(()=>e.apply(t,a),e=>{rB(e)||(rU(e)?(i&&(0,rV.setHttpStatus)(i,404),o&&(0,rV.setHttpStatus)(o,404)):(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.route_handler"}}))},()=>{gK(gJ())});try{l.status&&(i&&(0,rV.setHttpStatus)(i,l.status),o&&(0,rV.setHttpStatus)(o,l.status))}catch{}return l}))}})},"wrapServerComponentWithSentry",0,function(e,t){return new Proxy(e,{apply:(e,n,r)=>{let a=(0,Q.getIsolationScope)(),i=t.headers?gG(t.headers):void 0;return a.setSDKProcessingMetadata({normalizedRequest:{headers:i}}),rX(()=>e.apply(n,r),e=>{let n=(0,em.getActiveSpan)(),{componentRoute:r,componentType:i}=t,o=!0;a.setTransactionName(`${i} Server Component (${r})`),n&&(rU(e)?(o=!1,n.setStatus({code:rV.SPAN_STATUS_ERROR,message:"not_found"})):rB(e)?(o=!1,n.setStatus({code:rV.SPAN_STATUS_OK})):n.setStatus({code:rV.SPAN_STATUS_ERROR,message:"internal_error"})),o&&(0,K.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.server_component"}})},()=>{gK(gJ())})}})},"wrapUseRoutes",0,gW,"wrapUseRoutesV6",0,gx,"wrapUseRoutesV7",0,gF,"zodErrorsIntegration",0,ck],503896);var g9=e.i(503896);let ye=[/Blocked a frame with origin/,/request was interrupted by a call to pause/,/ResizeObserver loop limit exceeded/,/ResizeObserver loop completed with undelivered notifications/,/cast SDK is not available/,/Load Cast SDK failed/,/Failed to initialize Cast/,/cast_sender/,/__SENTRY_LOADER__/,/Invalid analytics license key/,/Unhandled UI element type/];g9.captureRequestError;let yt=g9.captureRouterTransitionStart;var yn=e.i(143861);globalThis._sentryRouteManifest='{"isrRoutes":[],"dynamicRoutes":[],"staticRoutes":[]}',globalThis._sentryNextJsVersion="16.3.5",(({allowUrls:e,channel:t})=>(({dsn:e,tracesSampleRate:t,environment:n,allowUrls:r,ignoreErrors:a=[],channel:i,...o})=>{ol({allowUrls:r,dsn:e||"https://[email protected]/6128674",environment:n||"production",ignoreErrors:[...ye,...a],initialScope:{tags:{siteName:i}},tracesSampleRate:t||(G.default.env.NEXT_PUBLIC_SENTRY_TRACES_SAMPLE_RATE?parseInt(G.default.env.NEXT_PUBLIC_SENTRY_TRACES_SAMPLE_RATE,10):0),...o})})({allowUrls:e,channel:t}))({allowUrls:[/(.*)(funx|nporadio)\.nl(.*)/i],channel:yn.CHANNEL}),e.s([],113865),e.i(113865),e.s(["onRouterTransitionStart",0,"function"==typeof yt?yt:()=>{}],382850)},267398,(e,t,n)=>{"use strict";{let n=e.f({"private-next-instrumentation-client":{id:()=>382850,module:()=>e.r(382850)}})("private-next-instrumentation-client");t.exports=Array.isArray(n)?n:[n]}}]);
494
495//# debugId=c0c985c4-00f5-d997-02e7-c7d50551cbf1

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.