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]="53204bfb-c30b-c69f-d114-0fc50b236f0e")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,293866,e=>{"use strict";let t,r,n,a,o,i,s,l,u,c,d,p,h,f,g,m,_,y;e.s([],32127),e.i(32127);var b,S,v,E,T,w,I,k,R,C,A,x,N=e.i(505284),M=e.i(488207),O=e.i(743769),P=e.i(581661),D=e.i(591370),L=e.i(703152),B=e.i(127611),U=e.i(849802);let F="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var W=e.i(392188);function $(e){return(0,W.isError)(e)&&["NEXT_NOT_FOUND","NEXT_HTTP_ERROR_FALLBACK;404"].includes(e.digest)}function j(e){return(0,W.isError)(e)&&"string"==typeof e.digest&&e.digest.startsWith("NEXT_REDIRECT;")}var H=e.i(982333),G=e.i(135921),z=e.i(70119),q=e.i(803848);let Y=O.GLOBAL_OBJ,J=null,V=new Map,K=new Map;function X(e){let t=e.split("/").filter(Boolean),r=0;for(let e of t)if(e.startsWith(":")){let t=e.substring(1);t.endsWith("*?")?r+=1e3:t.endsWith("*")?r+=100:r+=10}return t.length>0&&(r+=1/t.length),r}function Q(e){if(V.has(e))return V.get(e)??null;try{let t=new RegExp(e);return V.set(e,t),t}catch(t){return F&&M.debug.warn("Could not compile regex",{regexString:e,error:t}),null}}function Z(){if(!Y?._sentryRouteManifest||"string"!=typeof Y._sentryRouteManifest)return null;let e=Y._sentryRouteManifest;if(J&&f===e)return J;V.clear(),K.clear();let t={staticRoutes:[],dynamicRoutes:[],isrRoutes:[]};try{if(t=JSON.parse(e),!Array.isArray(t.staticRoutes)||!Array.isArray(t.dynamicRoutes))return null;return J=t,f=e,t}catch{return F&&M.debug.warn("Could not extract route manifest"),null}}let ee=e=>{let t=Z();if(!t)return;if(K.has(e))return K.get(e);let{staticRoutes:r,dynamicRoutes:n}=t;if(!Array.isArray(r)||!Array.isArray(n))return;let a=(function(e,t,r){let n=[];if(t.some(t=>t.path===e))return n;for(let t of r)if(t.regex){let r=Q(t.regex);r?.test(e)&&n.push(t.path)}if(!e.startsWith("/:")){for(let t of r)if(t.hasOptionalPrefix&&t.regex){let r="/"===e?"/SENTRY_OPTIONAL_PREFIX":`/SENTRY_OPTIONAL_PREFIX${e}`,a=Q(t.regex);a?.test(r)&&n.push(t.path)}}return n})(e,r,n).sort((e,t)=>X(e)-X(t))[0];return K.set(e,a),a},et="incomplete-app-router-transaction",er="router-patch",en={current:void 0},ea=O.GLOBAL_OBJ,eo=O.GLOBAL_OBJ;function ei(e){try{return new URL(e,"http://example.com/").pathname}catch{return"/"}}let es=new WeakSet;function el(e,t,r){es.has(t)||(es.add(t),["back","forward","push","replace"].forEach(n=>{t?.[n]&&(t[n]=new Proxy(t[n],{apply(t,a,o){if("router-patch"!==er)return t.apply(a,o);let i=et,s={[z.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url"},l=o[0],u=N.default.env._sentryBasePath??eo._sentryBasePath,c=u&&"string"==typeof l&&!l.startsWith(u)?`${u}${l}`:l;"push"===n?(i=ei(c),s["navigation.type"]="router.push"):"replace"===n?(i=ei(c),s["navigation.type"]="router.replace"):"back"===n?s["navigation.type"]="router.back":"forward"===n&&(s["navigation.type"]="router.forward");let d=ee(i);return r.current=(0,H.startBrowserTracingNavigationSpan)(e,{name:d??i,attributes:{...s,[z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:d?"route":"url"}}),t.apply(a,o)}}))}))}var eu=e.i(249338),ec=e.i(718032),ed=e.i(315585);let ep=ed.default.events?ed.default:ed.default.default,eh=G.WINDOW;function ef(e={}){let t=(0,H.browserTracingIntegration)({...e,instrumentNavigation:!1,instrumentPageLoad:!1,onRequestSpanStart(...t){let[r,{headers:n}]=t;return n?.get("next-router-prefetch")&&r?.setAttribute("http.request.prefetch",!0),e.onRequestSpanStart?.(...t)}}),{instrumentPageLoad:r=!0,instrumentNavigation:n=!0}=e;return{...t,afterAllSetup(e){n&&function(e){if(G.WINDOW.document.getElementById("__NEXT_DATA__"))ep.events.on("routeChangeStart",t=>{let r,n,a=(0,eu.stripUrlQueryAndFragment)(t),o=function(e){let t=eh.__BUILD_MANIFEST?.sortedPages;if(t)return t.find(t=>{let r,n,a,o=(r=t.split("/"),n="",r[r.length-1]?.match(/^\[\[\.\.\..+\]\]$/)&&(r.pop(),n="(?:/(.+?))?"),a=r.map(e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)")).join("/"),RegExp(`^${a}${n}(?:/)?$`));return e.match(o)})}(a);o?(r=o,n="route"):(r=a,n="url"),(0,H.startBrowserTracingNavigationSpan)(e,{name:r,attributes:{[z.
2SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.pages_router_instrumentation",[z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n}})});else{let t,r,n;g=(t,r)=>{let n=N.default.env._sentryBasePath??eo._sentryBasePath,a=new URL(n&&!t.startsWith(n)?`${n}${t}`:t,G.WINDOW.location.href).pathname,o=ee(a),i=o??a;"router-patch"===er&&(er="transition-start-hook");let s=en.current;s?(s.updateName(i),s.setAttributes({"navigation.type":`router.${r}`,[z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:o?"route":"url"}),en.current=void 0):(0,H.startBrowserTracingNavigationSpan)(e,{name:i,attributes:{[z.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:o?"route":"url","navigation.type":`router.${r}`}})},G.WINDOW.addEventListener("popstate",()=>{let t=ee(G.WINDOW.location.pathname);en.current?.isRecording()?(en.current.updateName(t??G.WINDOW.location.pathname),en.current.setAttribute(z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,t?"route":"url")):en.current=(0,H.startBrowserTracingNavigationSpan)(e,{name:t??G.WINDOW.location.pathname,attributes:{[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.nextjs.app_router_instrumentation",[z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:t?"route":"url","navigation.type":"browser.popstate"}})}),t=!1,r=0,n=setInterval(()=>{r++;let a=ea?.next?.router??ea?.nd?.router;t||r>500?clearInterval(n):a&&(clearInterval(n),t=!0,el(e,a,en),["nd","next"].forEach(t=>{let r=ea[t];r&&(ea[t]=new Proxy(r,{set:(t,r,n)=>("router"===r&&"object"==typeof n&&null!==n&&el(e,n,en),t[r]=n,!0)}))}))},20)}}(e),t.afterAllSetup(e),r&&function(e){if(G.WINDOW.document.getElementById("__NEXT_DATA__"))!function(e){let{route:t,params:r,sentryTrace:n,baggage:a}=function(){let e,t=eh.document.getElementById("__NEXT_DATA__");if(t?.innerHTML)try{e=JSON.parse(t.innerHTML)}catch{F&&M.debug.warn("Could not extract __NEXT_DATA__")}if(!e)return{};let r={},{page:n,query:a,props:o}=e;return r.route=n,r.params=a,o?.pageProps&&(r.sentryTrace=o.pageProps._sentryTraceData,r.baggage=o.pageProps._sentryBaggage),r}(),o=(0,ec.parseBaggageHeader)(a),i=t||eh.location.pathname;o?.["sentry-transaction"]&&"/_error"===i&&(i=(i=o["sentry-transaction"]).replace(/^(GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS|TRACE|CONNECT)\s+/i,""));let s=(0,q.browserPerformanceTimeOrigin)();(0,H.startBrowserTracingPageLoadSpan)(e,{name:i,startTime:s?s/1e3:void 0,attributes:{[z.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.pages_router_instrumentation",[z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:t?"route":"url",...r&&e.getOptions().sendDefaultPii&&{...r}}},{sentryTrace:n,baggage:a})}(e);else{let t,r;t=ee(G.WINDOW.location.pathname),r=(0,q.browserPerformanceTimeOrigin)(),(0,H.startBrowserTracingPageLoadSpan)(e,{name:t??G.WINDOW.location.pathname,startTime:r?r/1e3:void 0,attributes:{[z.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.nextjs.app_router_instrumentation",[z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:t?"route":"url"}})}}(e)}}}var eg=e.i(334538),em=e.i(492980);let e_=(0,eg.defineIntegration)(({assetPrefix:e,basePath:t,rewriteFramesAssetPrefixPath:r,experimentalThirdPartyOriginStackFrames:n})=>({...(0,em.rewriteFramesIntegration)({iteratee:a=>{if(n){let r="u">typeof window&&window.location?window.location.origin:"";if(a.filename?.startsWith(r)&&!a.filename.endsWith(".js"))return a;if(e)a.filename?.startsWith(e)&&(a.filename=a.filename.replace(e,"app://"));else if(t)try{let{origin:e}=new URL(a.filename);e===r&&(a.filename=a.filename?.replace(e,"app://").replace(t,""))}catch{}}else try{let{origin:e}=new URL(a.filename);a.filename=a.filename?.replace(e,"app://").replace(r,"")}catch{}return n?(a.filename?.includes("/_next")&&(a.filename=decodeURI(a.filename)),a.filename?.match(/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(a.in_app=!1)):(a.filename?.startsWith("app:///_next")&&(a.filename=decodeURI(a.filename)),a.filename?.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(a.in_app=!1)),a}}),name:"NextjsClientStackFrameNormalization"})),ey=new(e.i(697104)).LRUMap(100);var eb=e.i(172007);let eS=O.GLOBAL_OBJ,ev=!1,eE=O.GLOBAL_OBJ;function eT(e,t={},r=(0,L.getCurrentScope)()){let{message:n,name:a,email:o,url:i,source:s,associatedEventId:l,tags:u}=e,c={contexts:{feedback:{contact_email:o,name:a,message:n,url:i,source:s,associated_event_id:l}},type:"feedback",level:"info",tags:u},d=r?.getClient()||(0,L.getClient)();return d&&d.emit("beforeSendFeedback",c,t),r.captureEvent(c,t)}e.s([],968806),e.i(968806),e.s([],757115),e.i(757115);var ew=e.i(368938),eI=e.i(890554);let ek=O.GLOBAL_OBJ,eR=ek.document,eC=ek.navigator,eA="Report a Bug",ex="Cancel",eN="Send Bug Report",eM="Confirm",eO="Report a Bug",eP="[email protected]",eD="Email",eL="What's the bug? What did you expect?",eB="Description",eU="Your Name",eF="Name",eW="Thank y
2ou for your report!",e$="(required)",ej="Add a screenshot",eH="Remove screenshot",eG="Highlight",ez="Hide",eq="Remove",eY=(e,t={includeReplay:!0})=>{if(!e.message)throw Error("Unable to submit feedback with empty message");let r=(0,L.getClient)();if(!r)throw Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&(0,L.getCurrentScope)().setTags(e.tags);let n=eT({source:"api",url:(0,ew.getLocationHref)(),...e},t);return new Promise((e,t)=>{let a=setTimeout(()=>t("Unable to determine if Feedback was correctly sent."),3e4),o=r.on("afterSendEvent",(r,i)=>{if(r.event_id===n)return(clearTimeout(a),o(),i?.statusCode&&i.statusCode>=200&&i.statusCode<300)?e(n):i?.statusCode===403?t("Unable to send feedback. This could be because this domain is not in your list of allowed domains."):t("Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.")})})},eJ="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function eV(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(r,n)=>{t.onSubmitSuccess?.(r,n),e.onSubmitSuccess?.(r,n)},onSubmitError:r=>{t.onSubmitError?.(r),e.onSubmitError?.(r)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function eK(e,t){return Object.entries(t).forEach(([t,r])=>{e.setAttributeNS(null,t,r)}),e}let eX="rgba(88, 74, 192, 1)",eQ={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:eX,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%)"},eZ={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:eX,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 e0(e){return` 3 --foreground: ${e.foreground}; 4 --background: ${e.background}; 5 --accent-foreground: ${e.accentForeground}; 6 --accent-background: ${e.accentBackground}; 7 --success-color: ${e.successColor}; 8 --error-color: ${e.errorColor}; 9 --border: ${e.border}; 10 --box-shadow: ${e.boxShadow}; 11 --outline: ${e.outline}; 12 --interactive-filter: ${e.interactiveFilter}; 13 `}let e1=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:r})=>({id:n="sentry-feedback",autoInject:a=!0,showBranding:o=!0,isEmailRequired:i=!1,isNameRequired:s=!1,showEmail:l=!0,showName:u=!0,enableScreenshot:c=!0,useSentryUser:d={email:"email",name:"username"},tags:p,styleNonce:h,scriptNonce:f,colorScheme:g="system",themeLight:m={},themeDark:_={},addScreenshotButtonLabel:y=ej,cancelButtonLabel:b=ex,confirmButtonLabel:S=eM,emailLabel:v=eD,emailPlaceholder:E=eP,formTitle:T=eO,isRequiredLabel:w=e$,messageLabel:I=eB,messagePlaceholder:k=eL,nameLabel:R=eF,namePlaceholder:C=eU,removeScreenshotButtonLabel:A=eH,submitButtonLabel:x=eN,successMessageText:N=eW,triggerLabel:O=eA,triggerAriaLabel:P="",highlightToolText:D=eG,hideToolText:L=ez,removeHighlightText:B=eq,onFormOpen:U,onFormClose:F,onSubmitSuccess:W,onSubmitError:$,onFormSubmitted:j}={})=>{let H={id:n,autoInject:a,showBranding:o,isEmailRequired:i,isNameRequired:s,showEmail:l,showName:u,enableScreenshot:c,useSentryUser:d,tags:p,styleNonce:h,scriptNonce:f,colorScheme:g,themeDark:_,themeLight:m,triggerLabel:O,triggerAriaLabel:P,cancelButtonLabel:b,submitButtonLabel:x,confirmButtonLabel:S,formTitle:T,emailLabel:v,emailPlaceholder:E,messageLabel:I,messagePlaceholder:k,nameLabel:R,namePlaceholder:C,successMessageText:N,isRequiredLabel:w,addScreenshotButtonLabel:y,removeScreenshotButtonLabel:A,highlightToolText:D,hideToolText:L,removeHighlightText:B,onFormClose:F,onFormOpen:U,onSubmitError:$,onSubmitSuccess:W,onFormSubmitted:j},G=null,z=[],q=e=>{if(!G){let t=eR.createElement("div");t.id=String(e.id),eR.body.appendChild(t),(G=t.attachShadow({mode:"open"})).appendChild(function({colorScheme:e,themeDark:t,themeLight:r,styleNonce:n}){let a=eR.createElement("style");return a.textContent=` 14:host { 15 --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif; 16 --font-size: 14px; 17 --z-index: 100000; 18 19 --page-margin: 16px; 20 --inset: auto 0 0 auto; 21 --actor-inset: var(--inset); 22 23 font-family: var(--font-family); 24 font-size: var(--font-size); 25 26 ${"system"!==e?`color-scheme: only ${e};`:""} 27 28 ${e0("dark"===e?{...eZ,...t}:{...eQ,...r})} 29} 30 31${"system"===e?` 32@media (prefers-color-scheme: dark) { 33 :host { 34 color-scheme: only dark; 35 36 ${e0({...eZ,...t})} 37 } 38}`:""} 39`,n&&a.setAttribute("nonce",n),a}(e))}return G},Y=async n=>{let a,o,i=n.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(eC.userAgent)||/Macintosh/i.test(eC.userAgent)&&e
39C.maxTouchPoints&&eC.maxTouchPoints>1)&&!!isSecureContext;try{a=(t?t():await e("feedbackModalIntegration",f))(),(0,eg.addIntegration)(a)}catch{throw eJ&&M.debug.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),Error("[Feedback] Missing feedback modal integration!")}try{let t=i?r?r():await e("feedbackScreenshotIntegration",f):void 0;t&&(o=t(),(0,eg.addIntegration)(o))}catch{eJ&&M.debug.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}let s=a.createDialog({options:{...n,onFormClose:()=>{s?.close(),n.onFormClose?.()},onFormSubmitted:()=>{s?.close(),n.onFormSubmitted?.()}},screenshotIntegration:o,sendFeedback:eY,shadow:q(n)});return s},J=(e,t={})=>{let r=eV(H,t),n="string"==typeof e?eR.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!n)throw eJ&&M.debug.error("[Feedback] Unable to attach to target element"),Error("Unable to attach to target element");let a=null,o=async()=>{a||(a=await Y({...r,onFormSubmitted:()=>{a?.removeFromDom(),r.onFormSubmitted?.()}})),a.appendToDom(),a.open()};n.addEventListener("click",o);let i=()=>{z=z.filter(e=>e!==i),a?.removeFromDom(),a=null,n.removeEventListener("click",o)};return z.push(i),i},V=(e={})=>{let t=eV(H,e),r=q(t),n=function({triggerLabel:e,triggerAriaLabel:t,shadow:r,styleNonce:n}){let a,o,i,s,l,u,c,d,p=eR.createElement("button");if(p.type="button",p.className="widget__actor",p.ariaHidden="false",p.ariaLabel=t||e||eA,p.appendChild((o=eK((a=e=>ek.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))"}),i=eK(a("g"),{clipPath:"url(#clip0_57_80)"}),s=eK(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"}),o.appendChild(i).appendChild(s),l=a("defs"),u=eK(a("clipPath"),{id:"clip0_57_80"}),c=eK(a("rect"),{width:"20",height:"20",fill:"white"}),u.appendChild(c),l.appendChild(u),o.appendChild(l).appendChild(u).appendChild(c),o)),e){let t=eR.createElement("span");t.appendChild(eR.createTextNode(e)),p.appendChild(t)}let h=((d=eR.createElement("style")).textContent=` 40.widget__actor { 41 position: fixed;
42 z-index: var(--z-index); 43 margin: var(--page-margin); 44 inset: var(--actor-inset); 45 46 display: flex; 47 align-items: center; 48 gap: 8px; 49 padding: 16px; 50 51 font-family: inherit; 52 font-size: var(--font-size); 53 font-weight: 600; 54 line-height: 1.14em; 55 text-decoration: none; 56 57 background: var(--actor-background, var(--background)); 58 border-radius: var(--actor-border-radius, 1.7em/50%); 59 border: var(--actor-border, var(--border)); 60 box-shadow: var(--actor-box-shadow, var(--box-shadow)); 61 color: var(--actor-color, var(--foreground)); 62 fill: var(--actor-color, var(--foreground)); 63 cursor: pointer; 64 opacity: 1; 65 transition: transform 0.2s ease-in-out; 66 transform: translate(0, 0) scale(1); 67} 68.widget__actor[aria-hidden="true"] { 69 opacity: 0; 70 pointer-events: none; 71 visibility: hidden; 72 transform: translate(0, 16px) scale(0.98); 73} 74 75.widget__actor:hover { 76 background: var(--actor-hover-background, var(--background)); 77 filter: var(--interactive-filter); 78} 79 80.widget__actor svg { 81 width: 1.14em; 82 height: 1.14em; 83} 84 85@media (max-width: 600px) { 86 .widget__actor span { 87 display: none; 88 } 89} 90`,n&&d.setAttribute("nonce",n),d);return{el:p,appendToDom(){r.appendChild(h),r.appendChild(p)},removeFromDom(){p.remove(),h.remove()},show(){p.ariaHidden="false"},hide(){p.ariaHidden="true"}}}({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:r,styleNonce:h});return J(n.el,{...t,onFormOpen(){n.hide()},onFormClose(){n.show()},onFormSubmitted(){n.show()}}),n};return{name:"Feedback",setupOnce(){(0,eI.isBrowser)()&&H.autoInject&&("loading"===eR.readyState?eR.addEventListener("DOMContentLoaded",()=>V().appendToDom()):V().appendToDom())},attachTo:J,createWidget(e={}){let t=V(eV(H,e));return t.appendToDom(),t},createForm:async(e={})=>Y(eV(H,e)),remove(){G&&(G.parentElement?.remove(),G=null),z.forEach(e=>e()),z=[]}}};function e2(){let e=(0,L.getClient)();return e?.getIntegrationByName("Feedback")}var e3,e5,e6,e4,e7,e8,e9,te={},tt=[],tr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,tn=Array.isArray;function ta(e,t){for(var r in t)e[r]=t[r];return e}function to(e){var t=e.parentNode;t&&t.removeChild(e)}function ti(e,t,r){var n,a,o,i={};for(o in t)"key"==o?n=t[o]:"ref"==o?a=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?e3.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===i[o]&&(i[o]=e.defaultProps[o]);return ts(e,i,n,a,null)}function ts(e,t,r,n,a){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++e6:a,__i:-1,__u:0};return null==a&&null!=e5.vnode&&e5.vnode(o),o}function tl(e){return e.children}function tu(e,t){this.props=e,this.context=t}function tc(e,t){if(null==t)return e.__?tc(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?tc(e):null}function td(e){(!e.__d&&(e.__d=!0)&&e4.push(e)&&!tp.__r++||e7!==e5.debounceRendering)&&((e7=e5.debounceRendering)||e8)(tp)}function tp(){var e,t,r,n=[],a=[];for(e4.sort(e9);e=e4.shift();)e.__d&&(r=e4.length,t=function(e,t,r){var n,a=e.__v,o=a.__e,i=e.__P;if(i)return(n=ta({},a)).__v=a.__v+1,e5.vnode&&e5.vnode(n),ty(i,n,a,e.__n,void 0!==i.ownerSVGElement,32&a.__u?[o]:null,t,null==o?tc(a):o,!!(32&a.__u),r),n.__.__k[n.__i]=n,n.__d=void 0,n.__e!=o&&function e(t){var r,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,r=0;r<t.__k.length;r++)if(null!=(n=t.__k[r])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return e(t)}}(n),n}(e,n,a)||t,0===r||e4.length>r?(tb(n,t,a),a.length=n.length=0,t=void 0,e4.sort(e9)):t&&e5.__c&&e5.__c(t,tt));t&&tb(n,t,a),tp.__r=0}function th(e,t,r,n,a,o,i,s,l,u,c){var d,p,h,f,g,m=n&&n.__k||tt,_=t.length;for(r.__d=l,function(e,t,r){var n,a,o,i,s,l=t.length,u=r.length,c=u,d=0;for(e.__k=[],n=0;n<l;n++)null!=(a=e.__k[n]=null==(a=t[n])||"boolean"==typeof a||"function"==typeof a?null:"string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?ts(null,a,null,null,a):tn(a)?ts(tl,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?ts(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,r,n){var a=e.key,o=e.type,i=r-1,s=r+1,l=t[r];
vendor: 4,804 bytes, line 90
90if(null===l||l&&a==l.key&&o===l.type)return r;if(n>+(null!=l&&0==(131072&l.__u)))for(;i>=0||s<t.length;){if(i>=0){if((l=t[i])&&0==(131072&l.__u)&&a==l.key&&o===l.type)return i;i--}if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&a==l.key&&o===l.type)return s;s++}}return -1}(a,r,i=n+d,c),a.__i=s,o=null,-1!==s&&(c--,(o=r[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&d--,"function"!=typeof a.type&&(a.__u|=65536)):s!==i&&(s===i+1?d++:s>i?c>l-i?d+=s-i:d--:d=s<i&&s==i-1?s-i:0,s!==n+d&&(a.__u|=65536))):(o=r[n])&&null==o.key&&o.__e&&(o.__e==e.__d&&(e.__d=tc(o)),tv(o,o,!1),r[n]=null,c--);if(c)for(n=0;n<u;n++)null!=(o=r[n])&&0==(131072&o.__u)&&(o.__e==e.__d&&(e.__d=tc(o)),tv(o,o))}(r,t,m),l=r.__d,d=0;d<_;d++)null!=(h=r.__k[d])&&"boolean"!=typeof h&&"function"!=typeof h&&(p=-1===h.__i?te:m[h.__i]||te,h.__i=d,ty(e,h,p,a,o,i,s,l,u,c),f=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&tS(p.ref,null,h),c.push(h.ref,h.__c||f,h)),null==g&&null!=f&&(g=f),65536&h.__u||p.__k===h.__k?l=function e(t,r,n){var a,o;if("function"==typeof t.type){for(a=t.__k,o=0;a&&o<a.length;o++)a[o]&&(a[o].__=t,r=e(a[o],r,n));return r}t.__e!=r&&(n.insertBefore(t.__e,r||null),r=t.__e);do r=r&&r.nextSibling;while(null!=r&&8===r.nodeType)return r}(h,l,e):"function"==typeof h.type&&void 0!==h.__d?l=h.__d:f&&(l=f.nextSibling),h.__d=void 0,h.__u&=-196609);r.__d=l,r.__e=g}function tf(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||tr.test(t)?r:r+"px"}function tg(e,t,r,n,a){var o;e:if("style"===t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||tf(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||tf(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.u=n.u:(r.u=Date.now(),e.addEventListener(t,o?t_:tm,o)):e.removeEventListener(t,o?t_:tm,o);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==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,r))}}function tm(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(e5.event?e5.event(e):e)}}function t_(e){if(this.l)return this.l[e.type+!0](e5.event?e5.event(e):e)}function ty(e,t,r,n,a,o,i,s,l,u){var c,d,p,h,f,g,m,_,y,b,S,v,E,T,w,I=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(c=e5.__b)&&c(t);e:if("function"==typeof I)try{if(_=t.props,y=(c=I.contextType)&&n[c.__c],b=c?y?y.props.value:c.__:n,r.__c?m=(d=t.__c=r.__c).__=d.__E:("prototype"in I&&I.prototype.render?t.__c=d=new I(_,b):(t.__c=d=new tu(_,b),d.constructor=I,d.render=tE),y&&y.sub(d),d.props=_,d.state||(d.state={}),d.context=b,d.__n=n,p=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=I.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=ta({},d.__s)),ta(d.__s,I.getDerivedStateFromProps(_,d.__s))),h=d.props,f=d.state,d.__v=t,p)null==I.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==I.getDerivedStateFromProps&&_!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(_,b),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(_,d.__s,b)||t.__v===r.__v)){for(t.__v!==r.__v&&(d.props=_,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(e){e&&(e.__=t)}),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[],d.__h.length&&i.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(_,d.__s,b),null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(h,f,g)})}if(d.context=b,d.props=_,d.__P=e,d.__e=!1,v=e5.__r,E=0,"prototype"in I&&I.prototype.render){for(d.state=d.__s,d.__d=!1,v&&v(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,v&&v(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&&(n=ta(ta({},n),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(g=d.getSnapshotBeforeUpdate(h,f)),th(e,tn(w=null!=c&&c.type===tl&&null==c.key?c.props.children:c)?w:[w],t,r,n,a,o,i,s,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&i.push(d),m&&(d.__E=d.__=null)}catch(e){t.__v=null,l||null!=o?(t.__e=s,t.__u|=l?160:32,o[o.indexOf(s)]=null):(t.__e=r.__e,t.__k=r.__k),e5.__e(e,t,r)}else null==o&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=function(e,t,r,n,a,o,i,s,l){var u,c,d,p,h,f,g,m=r.props,_=t.props,y=t.type;if("svg"===y&&(a=!0),null!=o){for(u=0;
90u<o.length;u++)if((h=o[u])&&"setAttribute"in h==!!y&&(y?h.localName===y:3===h.nodeType)){e=h,o[u]=null;break}}if(null==e){if(null===y)return document.createTextNode(_);e=a?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,_.is&&_),o=null,s=!1}if(null===y)m===_||s&&e.data===_||(e.data=_);else{if(o=o&&e3.call(e.childNodes),m=r.props||te,!s&&null!=o)for(m={},u=0;u<e.attributes.length;u++)m[(h=e.attributes[u]).name]=h.value;for(u in m)h=m[u],"children"==u||("dangerouslySetInnerHTML"==u?d=h:"key"===u||u in _||tg(e,u,null,h,a));for(u in _)h=_[u],"children"==u?p=h:"dangerouslySetInnerHTML"==u?c=h:"value"==u?f=h:"checked"==u?g=h:"key"===u||s&&"function"!=typeof h||m[u]===h||tg(e,u,h,m[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=""),th(e,tn(p)?p:[p],t,r,n,a&&"foreignObject"!==y,o,i,o?o[0]:r.__k&&tc(r,0),s,l),null!=o)for(u=o.length;u--;)null!=o[u]&&to(o[u]);s||(u="value",void 0===f||f===e[u]&&("progress"!==y||f)&&("option"!==y||f===m[u])||tg(e,u,f,m[u],!1),u="checked",void 0!==g&&g!==e[u]&&tg(e,u,g,m[u],!1))}return e}(r.__e,t,r,n,a,o,i,l,u);(c=e5.diffed)&&c(t)}function tb(e,t,r){for(var n=0;n<r.length;n++)tS(r[n],r[++n],r[++n]);e5.__c&&e5.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){e5.__e(e,t.__v)}})}function tS(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){e5.__e(e,r)}}function tv(e,t,r){var n,a;if(e5.unmount&&e5.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||tS(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){e5.__e(e,t)}n.base=n.__P=null,e.__c=void 0}if(n=e.__k)for(a=0;a<n.length;a++)n[a]&&tv(n[a],t,r||"function"!=typeof e.type);r||null==e.__e||to(e.__e),e.__=e.__e=e.__d=void 0}function tE(e,t,r){return this.constructor(e,r)}e3=tt.slice,e5={__e:function(e,t,r,n){for(var a,o,i;t=t.__;)if((a=t.__c)&&!a.__)try{if((o=a.constructor)&&null!=o.getDerivedStateFromError&&(a.setState(o.getDerivedStateFromError(e)),i=a.__d),null!=a.componentDidCatch&&(a.componentDidCatch(e,n||{}),i=a.__d),i)return a.__E=a}catch(t){e=t}throw e}},e6=0,tu.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=ta({},this.state),"function"==typeof e&&(e=e(ta({},r),this.props)),e&&ta(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),td(this))},tu.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),td(this))},tu.prototype.render=tl,e4=[],e8="function"==typeof Promise?Promise.prototype.then.bind(Prom
90ise.resolve()):setTimeout,e9=function(e,t){return e.__v.__b-t.__v.__b},tp.__r=0;var tT,tw,tI,tk,tR=0,tC=[],tA=[],tx=e5,tN=tx.__b,tM=tx.__r,tO=tx.diffed,tP=tx.__c,tD=tx.unmount,tL=tx.__;function tB(e,t){tx.__h&&tx.__h(tw,e,tR||t),tR=0;var r=tw.__H||(tw.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:tA}),r.__[e]}function tU(e){return tR=1,tF(tJ,e)}function tF(e,t,r){var n=tB(tT++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):tJ(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=tw,!tw.u)){var a=function(e,t,r){if(!n.__c.__H)return!0;var a=n.__c.__H.__.filter(function(e){return!!e.__c});if(a.every(function(e){return!e.__N}))return!o||o.call(this,e,t,r);var i=!1;return a.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}}),!(!i&&n.__c.props===e)&&(!o||o.call(this,e,t,r))};tw.u=!0;var o=tw.shouldComponentUpdate,i=tw.componentWillUpdate;tw.componentWillUpdate=function(e,t,r){if(this.__e){var n=o;o=void 0,a(e,t,r),o=n}i&&i.call(this,e,t,r)},tw.shouldComponentUpdate=a}return n.__N||n.__}function tW(e,t){var r=tB(tT++,4);!tx.__s&&tY(r.__H,t)&&(r.__=e,r.i=t,tw.__h.push(r))}function t$(e,t){var r=tB(tT++,7);return tY(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function tj(e,t){return tR=8,t$(function(){return e},t)}function tH(){for(var e;e=tC.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(tz),e.__H.__h.forEach(tq),e.__H.__h=[]}catch(t){e.__H.__h=[],tx.__e(t,e.__v)}}tx.__b=function(e){tw=null,tN&&tN(e)},tx.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),tL&&tL(e,t)},tx.__r=function(e){tM&&tM(e),tT=0;var t=(tw=e.__c).__H;t&&(tI===tw?(t.__h=[],tw.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=tA,e.__N=e.i=void 0})):(t.__h.forEach(tz),t.__h.forEach(tq),t.__h=[],tT=0)),tI=tw},tx.diffed=function(e){tO&&tO(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==tC.push(t)&&tk===tx.requestAnimationFrame||((tk=tx.requestAnimationFrame)||function(e){var t,r=function(){clearTimeout(n),tG&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);tG&&(t=requestAnimationFrame(r))})(tH)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==tA&&(e.__=e.__V),e.i=void 0,e.__V=tA})),tI=tw=null},tx.__c=function(e,t){t.some(function(e){try{e.__h.forEach(tz),e.__h=e.__h.filter(function(e){return!e.__||tq(e)})}catch(r){t.some(function(e){e.__h&&(e.__h=[])}),t=[],tx.__e(r,e.__v)}}),tP&&tP(e,t)},tx.unmount=function(e){tD&&tD(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(e){try{tz(e)}catch(e){t=e}}),r.__H=void 0,t&&tx.__e(t,r.__v))};var tG="function"==typeof requestAnimationFrame;function tz(e){var t=tw,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),tw=t}function tq(e){var t=tw;e.__c=e.__(),tw=t}function tY(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function tJ(e,t){return"function"==typeof t?t(e):t}let tV=Object.defineProperty({__proto__:null,useCallback:tj,useContext:function(e){var t=tw.context[e.__c],r=tB(tT++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(tw)),t.props.value):e.__},useDebugValue:function(e,t){tx.useDebugValue&&tx.useDebugValue(t?t(e):e)},useEffect:function(e,t){var r=tB(tT++,3);!tx.__s&&tY(r.__H,t)&&(r.__=e,r.i=t,tw.__H.__h.push(r))},useErrorBoundary:function(e){var t=tB(tT++,10),r=tU();return t.__=e,tw.componentDidCatch||(tw.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]},useId:function(){var e=tB(tT++,11);if(!e.__){for(var t=tw.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__},useImperativeHandle:function(e,t,r){tR=6,tW(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==r?r:r.concat(e))},useLayoutEffect:tW,useMemo:t$,useReducer:tF,useRef:function(e){return tR=5,t$(function(){return{current:e}},[])},useState:tU},Symbol.toStringTag,{value:"Module"});function tK({options:e}){let t=t$(()=>{let e,t;return{__html:(e=eK(eR.createElementNS("http://www.w3.org/2000/svg","svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),t=eK(eR.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 ti("h2",{class:"dialog__header"},ti("span",{class:"dialog__title"},e.formTitle),e.showBranding?ti("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function tX(e,t){let r=e.get(t);return"string"==typeof r?r.trim():""}function tQ({options:e,defaultEmail:t,defaultName:r,onFormClose:n,onSubmit:a,onSubmitSuccess:o,onSubmitError:i,showEmail
90:s,showName:l,screenshotInput:u}){let{tags:c,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:p,cancelButtonLabel:h,emailLabel:f,emailPlaceholder:g,isEmailRequired:m,isNameRequired:_,messageLabel:y,messagePlaceholder:b,nameLabel:S,namePlaceholder:v,submitButtonLabel:E,isRequiredLabel:T}=e,[w,I]=tU(!1),[k,R]=tU(null),[C,A]=tU(!1),x=u?.input,[N,O]=tU(null),P=tj(e=>{O(e),A(!1)},[]),D=tj(e=>{var t;let r,n=(r=[],(t={emailLabel:f,isEmailRequired:m,isNameRequired:_,messageLabel:y,nameLabel:S}).isNameRequired&&!e.name&&r.push(t.nameLabel),t.isEmailRequired&&!e.email&&r.push(t.emailLabel),e.message||r.push(t.messageLabel),r);return n.length>0?R(`Please enter in the following required fields: ${n.join(", ")}`):R(null),0===n.length},[f,m,_,y,S]);return ti("form",{class:"form",onSubmit:tj(async e=>{I(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target),r=await (u&&C?u.value():void 0),n={name:tX(t,"name"),email:tX(t,"email"),message:tX(t,"message"),attachments:r?[r]:void 0};if(!D(n))return;try{let e=await a({name:n.name,email:n.email,message:n.message,source:"widget",tags:c},{attachments:n.attachments});o(n,e)}catch(e){eJ&&M.debug.error(e),R(e),i(e)}}finally{I(!1)}},[u&&C,o,i])},x&&C?ti(x,{onError:P}):null,ti("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:w},ti("div",{class:"form__top"},k?ti("div",{class:"form__error-container"},k):null,l?ti("label",{for:"name",class:"form__label"},ti(tZ,{label:S,isRequiredLabel:T,isRequired:_}),ti("input",{class:"form__input",defaultValue:r,id:"name",name:"name",placeholder:v,required:_,type:"text"})):ti("input",{"aria-hidden":!0,value:r,name:"name",type:"hidden"}),s?ti("label",{for:"email",class:"form__label"},ti(tZ,{label:f,isRequiredLabel:T,isRequired:m}),ti("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:g,required:m,type:"email"})):ti("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),ti("label",{for:"message",class:"form__label"},ti(tZ,{label:y,isRequiredLabel:T,isRequired:!0}),ti("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:b,required:!0,rows:5})),x?ti("label",{for:"screenshot",class:"form__label"},ti("button",{class:"btn btn--default",disabled:w,type:"button",onClick:()=>{O(null),A(e=>!e)}},C?p:d),N?ti("div",{class:"form__error-container"},N.message):null):null),ti("div",{class:"btn-group"},ti("button",{class:"btn btn--primary",disabled:w,type:"submit"},E),ti("button",{class:"btn btn--default",disabled:w,type:"button",onClick:n},h))))}function tZ({label:e,isRequired:t,isRequiredLabel:r}){return ti("span",{class:"form__label__text"},e,t&&ti("span",{class:"form__label__text--required"},r))}function t0({open:e,onFormSubmitted:t,...r}){let n=r.options,a=t$(()=>{let e,t,r,n,a,o,i,s;return{__html:(t=eK((e=e=>ek.document.createElementNS("http://www.w3.org/2000/svg",e))("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),r=eK(e("g"),{clipPath:"url(#clip0_57_156)"}),n=eK(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=eK(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
9010.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"}),t.appendChild(r).append(a,n),o=e("defs"),i=eK(e("clipPath"),{id:"clip0_57_156"}),s=eK(e("rect"),{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"}),i.appendChild(s),o.appendChild(i),t.appendChild(o).appendChild(i).appendChild(s),t).outerHTML}},[]),[o,i]=tU(null),s=tj(()=>{o&&(clearTimeout(o),i(null)),t()},[o]),l=tj((e,n)=>{r.onSubmitSuccess(e,n),i(setTimeout(()=>{t(),i(null)},5e3))},[t]);return ti(tl,null,o?ti("div",{class:"success__position",onClick:s},ti("div",{class:"success__content"},n.successMessageText,ti("span",{class:"success__icon",dangerouslySetInnerHTML:a}))):ti("dialog",{class:"dialog",onClick:n.onFormClose,open:e},ti("div",{class:"dialog__position"},ti("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},ti(tK,{options:n}),ti(tQ,{...r,onSubmitSuccess:l})))))}let t1=` 91.dialog { 92 position: fixed; 93 z-index: var(--z-index); 94 margin: 0; 95 inset: 0; 96 97 display: flex; 98 align-items: center; 99 justify-content: center; 100 padding: 0; 101 height: 100vh; 102 width: 100vw; 103 104 color: var(--dialog-color, var(--foreground)); 105 fill: var(--dialog-color, var(--foreground)); 106 line-height: 1.75em; 107 108 background-color: rgba(0, 0, 0, 0.05); 109 border: none; 110 inset: 0; 111 opacity: 1; 112 transition: opacity 0.2s ease-in-out; 113} 114 115.dialog__position { 116 position: fixed; 117 z-index: var(--z-index); 118 inset: var(--dialog-inset); 119 padding: var(--page-margin); 120 display: flex; 121 max-height: calc(100vh - (2 * var(--page-margin))); 122} 123@media (max-width: 600px) { 124 .dialog__position { 125 inset: var(--page-margin); 126 padding: 0; 127 } 128} 129 130.dialog__position:has(.editor) { 131 inset: var(--page-margin); 132 padding: 0; 133} 134 135.dialog:not([open]) { 136 opacity: 0; 137 pointer-events: none; 138 visibility: hidden; 139} 140.dialog:not([open]) .dialog__content { 141 transform: translate(0, -16px) scale(0.98); 142} 143 144.dialog__content { 145 display: flex; 146 flex-direction: column; 147 gap: 16px; 148 padding: var(--dialog-padding, 24px); 149 max-width: 100%; 150 width: 100%; 151 max-height: 100%; 152 overflow: auto; 153 154 background: var(--dialog-background, var(--background)); 155 border-radius: var(--dialog-border-radius, 20px); 156 border: var(--dialog-border, var(--border));
157 box-shadow: var(--dialog-box-shadow, var(--box-shadow)); 158 transform: translate(0, 0) scale(1); 159 transition: transform 0.2s ease-in-out; 160} 161 162`,t2=` 163.dialog__header { 164 display: flex; 165 gap: 4px; 166 justify-content: space-between; 167 font-weight: var(--dialog-header-weight, 600); 168 margin: 0; 169} 170.dialog__title { 171 align-self: center; 172 width: var(--form-width, 272px); 173} 174 175@media (max-width: 600px) { 176 .dialog__title { 177 width: auto; 178 } 179} 180 181.dialog__position:has(.editor) .dialog__title { 182 width: auto; 183} 184 185 186.brand-link { 187 display: inline-flex; 188} 189.brand-link:focus-visible { 190 outline: var(--outline); 191} 192`,t3=` 193.form { 194 display: flex; 195 overflow: auto; 196 flex-direction: row; 197 gap: 16px; 198 flex: 1 0; 199} 200 201.form fieldset { 202 border: none; 203 margin: 0; 204 padding: 0; 205} 206 207.form__right { 208 flex: 0 0 auto; 209 display: flex; 210 overflow: auto; 211 flex-direction: column; 212 justify-content: space-between; 213 gap: 20px; 214 width: var(--form-width, 100%); 215} 216 217.dialog__position:has(.editor) .form__right { 218 width: var(--form-width, 272px); 219} 220 221.form__top { 222 display: flex; 223 flex-direction: column; 224 gap: 8px; 225} 226 227.form__error-container { 228 color: var(--error-color); 229 fill: var(--error-color); 230} 231 232.form__label { 233 display: flex; 234 flex-direction: column; 235 gap: 4px; 236 margin: 0px; 237} 238 239.form__label__text { 240 display: flex; 241 gap: 4px; 242 align-items: center; 243} 244 245.form__label__text--required { 246 font-size: 0.85em; 247} 248 249.form__input { 250 font-family: inherit; 251 line-height: inherit; 252 background: transparent; 253 box-sizing: border-box; 254 border: var(--input-border, var(--border)); 255 border-radius: var(--input-border-radius, 6px); 256 color: var(--input-color, inherit); 257 fill: var(--input-color, inherit); 258 font-size: var(--input-font-size, inherit); 259 font-weight: var(--input-font-weight, 500); 260 padding: 6px 12px; 261} 262 263.form__input::placeholder { 264 opacity: 0.65; 265 color: var(--input-placeholder-color, inherit); 266 filter: var(--interactive-filter); 267} 268 269.form__input:focus-visible { 270 outline: var(--input-focus-outline, var(--outline)); 271} 272 273.form__input--textarea { 274 font-family: inherit; 275 resize: vertical; 276} 277 278.error { 279 color: var(--error-color); 280 fill: var(--error-color); 281} 282`,t5=` 283.btn-group { 284 display: grid; 285 gap: 8px; 286} 287 288.btn { 289 line-height: inherit; 290 border: var(--button-border, var(--border)); 291 border-radius: var(--button-border-radius, 6px); 292 cursor: pointer; 293 font-family: inherit; 294 font-size: var(--button-font-size, inherit); 295 font-weight: var(--button-font-weight, 600); 296 padding: var(--button-padding, 6px 16px); 297} 298.btn[disabled] { 299 opacity: 0.6; 300 pointer-events: none; 301} 302 303.btn--primary { 304 color: var(--button-primary-color, var(--accent-foreground)); 305 fill: var(--button-primary-color, var(--accent-foreground)); 306 background: var(--button-primary-background, var(--accent-background)); 307 border: var(--button-primary-border, var(--border)); 308 border-radius: var(--button-primary-border-radius, 6px); 309 font-weight: var(--button-primary-font-weight, 500); 310} 311.btn--primary:hover { 312 color: var(--button-primary-hover-color, var(--accent-foreground)); 313 fill: var(--button-primary-hover-color, var(--accent-foreground)); 314 background: var(--button-primary-hover-background, var(--accent-background)); 315 filter: var(--interactive-filter); 316} 317.btn--primary:focus-visible { 318 background: var(--button-primary-hover-background, var(--accent-background)); 319 filter: var(--interactive-filter); 320 outline: var(--button-primary-focus-outline, var(--outline)); 321} 322 323.btn--default { 324 color: var(--button-color, var(--foreground)); 325 fill: var(--button-color, var(--foreground)); 326 background: var(--button-background, var(--background)); 327 border: var(--button-border, var(--border)); 328 border-radius: var(--button-border-radius, 6px); 329 font-weight: var(--button-font-weight, 500); 330} 331.btn--default:hover { 332 color: var(--button-color, var(--foreground)); 333 fill: var(--button-color, var(--foreground)); 334 background: var(--button-hover-background, var(--background)); 335 filter: var(--interactive-filter); 336} 337.btn--default:focus-visible { 338 background: var(--button-hover-background, var(--background)); 339 filter: var(--interactive-filter); 340 outline: var(--button-focus-outline, var(--outline)); 341} 342`,t6=` 343.success__position { 344 position: fixed; 345 inset: var(--dialog-inset); 346 padding: var(--page-margin); 347 z-index: var(--z-index); 348} 349.success__content { 350 background: var(--success-background, var(--background)); 351 border: var(--success-border, var(--border)); 352 border-radius: var(--success-border-radius, 1.7em/50%);
353 box-shadow: var(--success-box-shadow, var(--box-shadow)); 354 font-weight: var(--success-font-weight, 600); 355 color: var(--success-color); 356 fill: var(--success-color); 357 padding: 12px 24px; 358 line-height: 1.75em; 359 360 display: grid; 361 align-items: center; 362 grid-auto-flow: column; 363 gap: 6px; 364 cursor: default; 365} 366 367.success__icon { 368 display: flex; 369} 370`,t4=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:r,shadow:n})=>{var a;let o,i,s,l,u=e.useSentryUser,c=(o=(0,L.getCurrentScope)().getUser(),i=(0,L.getIsolationScope)().getUser(),s=(0,L.getGlobalScope)().getUser(),o&&Object.keys(o).length?o:i&&Object.keys(i).length?i:s),d=eR.createElement("div"),p=(a=e.styleNonce,(l=eR.createElement("style")).textContent=` 371:host { 372 --dialog-inset: var(--inset); 373} 374 375${t1} 376${t2} 377${t3} 378${t5} 379${t6} 380`,a&&l.setAttribute("nonce",a),l),h="",f={get el(){return d},appendToDom(){n.contains(p)||n.contains(d)||(n.appendChild(p),n.appendChild(d))},removeFromDom(){d.remove(),p.remove(),eR.body.style.overflow=h},open(){m(!0),e.onFormOpen?.(),(0,L.getClient)()?.emit("openFeedbackWidget"),h=eR.body.style.overflow,eR.body.style.overflow="hidden"},close(){m(!1),eR.body.style.overflow=h}},g=t?.createInput({h:ti,hooks:tV,dialog:f,options:e}),m=t=>{var n,a,o,i;n=ti(t0,{options:e,screenshotInput:g,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(u&&c?.[u.name]||""),defaultEmail:String(u&&c?.[u.email]||""),onFormClose:()=>{m(!1),e.onFormClose?.()},onSubmit:r,onSubmitSuccess:(t,r)=>{m(!1),e.onSubmitSuccess?.(t,r)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),e5.__&&e5.__(n,d),a=d.__k,o=[],i=[],ty(d,n=d.__k=ti(tl,null,[n]),a||te,te,void 0!==d.ownerSVGElement,a?null:d.firstChild?e3.call(d.childNodes):null,o,a?a.__e:d.firstChild,!1,i),n.__d=void 0,tb(o,n,i)};return f}});function t7(e,t,r){if(!e)return;let n=e.getContext("2d",t);n&&r(e,n)}function t8(e,t){t7(e,{alpha:!0},(e,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function t9(e,t,r){t7(e,{alpha:!0},(e,n)=>{r.length&&(n.fillStyle="rgba(0, 0, 0, 0.25)",n.fillRect(0,0,e.width,e.height)),r.forEach(e=>{switch(e.type){case"highlight":n.shadowColor="rgba(0, 0, 0, 0.7)",n.shadowBlur=50,n.fillStyle=t,n.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),n.clearRect(e.x,e.y,e.w,e.h);break;case"hide":n.fillStyle="rgb(0, 0, 0)",n.fillRect(e.x,e.y,e.w,e.h)}})})}let re=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:r,options:n})=>{let a=eR.createElement("canvas");return{input:function({h:e,hooks:t,outputBuffer:r,dialog:n,options:a}){var o;let i,s,l,u=function({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:r,onAfterScreenshot:n,onError:a}){let o=function(){let[t,r]=e.useState(ek.devicePixelRatio??1);return e.useEffect(()=>{let e=()=>{r(ek.devicePixelRatio)},t=matchMedia(`(resolution: ${ek.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),t}();e.useEffect(()=>{(async()=>{t();let e=await eC.mediaDevices.getDisplayMedia({video:{width:ek.innerWidth*o,height:ek.innerHeight*o},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),a=eR.createElement("video");await new Promise((t,n)=>{a.srcObject=e,a.onloadedmetadata=()=>{r(a,o),e.getTracks().forEach(e=>e.stop()),t()},a.play().catch(n)}),n()})().catch(a)},[])}}({hooks:t}),c=function({h:e}){return function({action:t,setAction:r,options:n}){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:()=>{r("highlight"===t?"":"highlight")}},n.highlightToolText),e("button",{type:"button",class:`editor__tool ${"hide"===t?"editor__tool--active":""}`,onClick:()=>{r("hide"===t?"":"hide")}},n.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:(o=a.styleNonce,i=eR.createElement("style"),s="#1A141F",l="#302735",i.textContent=` 381.editor { 382 display: flex; 383 flex-grow: 1; 384 flex-direction: column; 385} 386 387.editor__image-container { 388 justify-items: center; 389 padding: 15px; 390 position: relative; 391 height: 100%; 392 border-radius: var(--menu-border-radius, 6px); 393 394 background-color: ${s}; 395 background-image: repeating-linear-gradient( 396 -145deg, 397 transparent, 398 transparent 8px, 399 ${s} 8px, 400 ${s} 11px 401 ), 402 repeating-linear-gradient( 403 -45deg, 404 transparent, 405 transparent 15px, 406 ${l} 15px, 407 ${l} 16px 408 ); 409} 410 411.editor__canvas-container { 412 width: 100%; 413 height: 100%; 414 position: relative; 415 display: flex; 416 align-items: center; 417 justify-content: center; 418} 419 420.editor__canvas-container > * { 421 object-fit: contain; 422 position: absolute; 423} 424 425.editor__tool-container { 426 padding-top: 8px; 427 display: flex; 428 justify-content: center; 429} 430 431.editor__tool-bar { 432 display: flex; 433 gap: 8px; 434} 435 436.editor__tool { 437 display: flex; 438 padding: 8px 12px; 439 justify-content: center; 440 align-items: center; 441 border: var(--button-border, var(--border)); 442 border-radius: var(--button-border-radius, 6px); 443 background: var(--button-background, var(--background)); 444 color: var(--button-color, var(--foreground)); 445} 446 447.editor__tool--active { 448 background: var(--button-primary-background, var(--accent-background)); 449 color: var(--button-primary-color, var(--accent-foreground)); 450} 451 452.editor__rect { 453 position: absolute; 454 z-index: 2; 455} 456 457.editor__rect button { 458 opacity: 0; 459 position: absolute; 460 top: -12px; 461 right: -12px; 462 cursor: pointer; 463 padding: 0; 464 z-index: 3; 465 border: none; 466 background: none; 467} 468 469.editor__rect:hover button { 470 opacity: 1; 471} 472`,o&&i.setAttribute("nonce",o),i).innerText},h=n.el.style,f=({screenshot:n})=>{let[o,i]=t.useState("highlight"),[s,l]=t.useState([]),u=t.useRef(null),h=t.useRef(null),f=t.useRef(null),g=t.useRef(null),[m,_]=t.useState(1),y=t.useMemo(()=>{let e=eR.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&&(t7(n.canvas,{alpha:!1},e=>
472{_(Math.min(t.clientWidth/e.width,t.clientHeight/e.height))}),(0===t.clientHeight||0===t.clientWidth)&&setTimeout(e,0))};return e(),ek.addEventListener("resize",e),()=>{ek.removeEventListener("resize",e)}},[n]);let b=t.useCallback((e,t)=>{t7(e,{alpha:!0},(e,r)=>{r.scale(t,t),e.width=n.canvas.width,e.height=n.canvas.height})},[n]);t.useEffect(()=>{b(h.current,n.dpi),t8(h.current,n.canvas)},[n]),t.useEffect(()=>{b(f.current,n.dpi),t7(f.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),t9(f.current,y,s)},[s,y]),t.useEffect(()=>{b(r,n.dpi),t8(r,n.canvas),t7(eR.createElement("canvas"),{alpha:!0},(e,t)=>{t.scale(n.dpi,n.dpi),e.width=n.canvas.width,e.height=n.canvas.height,t9(e,y,s),t8(r,e)})},[s,n,y]);let S=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),l(t=>{let r=[...t];return r.splice(e,1),r})},[]),v={width:`${n.canvas.width*m}px`,height:`${n.canvas.height*m}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:h,id:"background",style:v}),e("canvas",{ref:f,id:"foreground",style:v}),e("div",{ref:g,onMouseDown:e=>{if(!o||!g.current)return;let t=g.current.getBoundingClientRect(),r={type:o,x:e.offsetX/m,y:e.offsetY/m},n=(e,r)=>{let n=(r.clientX-t.x)/m,a=(r.clientY-t.y)/m;return{type:e.type,x:Math.min(e.x,n),y:Math.min(e.y,a),w:Math.abs(n-e.x),h:Math.abs(a-e.y)}},a=e=>{t7(f.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),t9(f.current,y,[...s,n(r,e)])},i=e=>{let t=n(r,e);t.w*m>=1&&t.h*m>=1&&l(e=>[...e,t]),eR.removeEventListener("mousemove",a),eR.removeEventListener("mouseup",i)};eR.addEventListener("mousemove",a),eR.addEventListener("mouseup",i)},style:v},s.map((t,r)=>e("div",{key:r,class:"editor__rect",style:{top:`${t.y*m}px`,left:`${t.x*m}px`,width:`${t.w*m}px`,height:`${t.h*m}px`}},e("button",{"aria-label":a.removeHighlightText,onClick:S(r),onMouseDown:E,onMouseUp:E,type:"button"},e(d,null))))))),e(c,{options:a,action:o,setAction:i}))};return function({onError:n}){let[a,o]=t.useState();return(u({onBeforeScreenshot:t.useCallback(()=>{h.display="none"},[]),onScreenshot:t.useCallback((e,t)=>{t7(eR.createElement("canvas"),{alpha:!1},(r,n)=>{n.scale(t,t),r.width=e.videoWidth,r.height=e.videoHeight,n.drawImage(e,0,0,r.width,r.height),o({canvas:r,dpi:t})}),r.width=e.videoWidth,r.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{h.display="block"},[]),onError:t.useCallback(e=>{h.display="block",n(e)},[])}),a)?e(f,{screenshot:a}):e("div",null)}}({h:e,hooks:t,outputBuffer:a,dialog:r,options:n}),value:async()=>{let e=await new Promise(e=>
472{a.toBlob(e,"image/png")});if(e)return{data:new Uint8Array(await e.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}});var rt=e.i(134753);let rr={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",graphqlClientIntegration:"graphqlclient",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",browserProfilingIntegration:"browserprofiling",moduleMetadataIntegration:"modulemetadata",instrumentAnthropicAiClient:"instrumentanthropicaiclient",instrumentOpenAiClient:"instrumentopenaiclient",instrumentGoogleGenAIClient:"instrumentgooglegenaiclient",instrumentLangGraph:"instrumentlanggraph",createLangChainCallbackHandler:"createlangchaincallbackhandler"},rn=G.WINDOW;async function ra(e,t){var r;let n,a,o=rr[e],i=rn.Sentry=rn.Sentry||{};if(!o)throw Error(`Cannot lazy load integration: ${e}`);let s=i[e];if("function"==typeof s&&!("_isShim"in s))return s;let l=(r=o,n=(0,L.getClient)(),a=n?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com",new URL(`/${rt.SDK_VERSION}/${r}.min.js`,a).toString()),u=G.WINDOW.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=G.WINDOW.document.currentScript,p=G.WINDOW.document.body||G.WINDOW.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 h=i[e];if("function"!=typeof h)throw Error(`Could not load integration: ${e}`);return h}let ro=e1({lazyLoadIntegration:ra}),ri=e1({getModalIntegration:()=>t4,getScreenshotIntegration:()=>re});var rs=e.i(428544),rl=e.i(989123);let ru="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function rc(e,t){let r;return(0,rl.forEachEnvelopeItem)(e,(e,n)=>(t.includes(n)&&(r=Array.isArray(e)?e[1]:void 0),!!r)),r}function rd(e,t){return r=>{let n=e(r),a=new Map,o=t||(e=>{let t=e.getEvent();return t?.extra?.[ru]&&Array.isArray(t.extra[ru])?t.extra[ru]:[]});function i(t,n){let o=n?`${t}:${n}`:t,i=a.get(o);if(!i){let s=(0,eb.dsnFromString)(t);if(!s)return;let l=(0,rs.getEnvelopeEndpointWithUrlEncodedAuth)(s,r.tunnel);i=n?(t=>{let r=e(t);return{...r,send:async e=>{let t=rc(e,["event","transaction","profile","replay_event"]);return t&&(t.release=n),r.send(e)}}})({...r,url:l}):e({...r,url:l}),a.set(o,i)}return[t,i]}return{send:async function(e){let t=o({envelope:e,getEvent:function(t){return rc(e,t?.length?t:["event"])}}).map(e=>"string"==typeof e?i(e,void 0):i(e.dsn,e.release)).filter(e=>!!e),r=t.length?t:[["",n]];return(await Promise.all(r.map(([t,r])=>r.send((0,rl.createEnvelope)(t?{...e[0],dsn:t}:e[0],e[1])))))[0]},flush:async function(e){let t=[...a.values(),n];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}var rp=e.i(304904),rh=e.i(63890),rf=e.i(256493),rg=e.i(397396),rm=e.i(42976),r_=e.i(98093);let ry=(0,eg.defineIntegration)((e={})=>{let t=e.levels||M.CONSOLE_LEVELS,r=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in O.GLOBAL_OBJ&&(0,rf.addConsoleInstrumentationHandler)(({args:n,level:a})=>{var o,i,s;let l,u,c;(0,L.getClient)()===e&&t.includes(a)&&(o=n,i=a,s=r,l=(0,rm.severityLevelFromString)(i),u=Error(),c={level:(0,rm.severityLevelFromString)(i),extra:{arguments:o}},(0,L.withScope)(e=>{if(e.addEventProcessor(e=>(e.logger="console",(0,rg.addExceptionMechanism)(e,{handled:s,type:"auto.core.capture_console"}),e)),"assert"===i){if(!o[0]){let t=`Assertion failed: ${(0,r_.safeJoin)(o.slice(1)," ")||"console.assert"}`;e.setExtra("arguments",o.slice(1)),e.captureMessage(t,l,{captureContext:c,syntheticException:u})}return}let t=o.find(e=>e instanceof Error);if(t)return void(0,D.captureException)(t,c);let r=(0,r_.safeJoin)(o," ");e.captureMessage(r,l,{captureContext:c,syntheticException:u})}))})}}});var rb=e.i(208146),rS=e.i(606449),rv=e.i(28961);function rE(e,t,r){var n,a,o;return"util"in O.GLOBAL_OBJ&&"function"==typeof O.GLOBAL_OBJ.util.format?O.GLOBAL_OBJ.util.format(...e):(n=e,a=t,o=r,n.map(e=>(0,W.isPrimitive)(e)?String(e):JSON.stringify((0,rv.normalize)(e,a,o))).join(" "))}let rT={[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.log.console"},rw=(0,eg.defineIntegration)((e={})=>{let t=e.levels||M.CONSOLE_LEVELS;return{name:"ConsoleLogs",setup(e){let{enableLogs:r,normalizeDepth:n=3,normalizeMaxBreadth:a=1e3}=e.getOptions();if(!r){rb.DEBUG_BUILD&&M.debug.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}(0,rf.addConsoleInstrumentationHandler)(({args:r,level:o})=>{var i;let s,l;if((0,L.getClient)()!==e||!t.includes(o))return;let u=r[0],c=r.slice(1);if("assert"===o){if(!u){let e=c.length>0?`Assertion failed: ${rE(c,n,a)}`:"Assertion failed";(0,rS._INTERNAL_captureLog)({level:"error",message:e,attributes:rT})}return}let d="log"===o,p=r.length>1&&"string"==typeof r[0]&&(i=r[0],!/%[sdifocO]/.test(i)),h={...rT,...p?(s={},l=Array(c.length).fill("{}").join(" "),s["sentry.message.template"]=`${u} ${l}
472`,c.forEach((e,t)=>{s[`sentry.message.parameter.${t}`]=e}),s):{}};(0,rS._INTERNAL_captureLog)({level:d?"info":o,message:rE(r,n,a),severityNumber:d?10:void 0,attributes:h})})}}});var rI=e.i(118454);let rk=["trace","debug","info","warn","error","fatal"];function rR(e={}){let t=new Set(e.levels??rk),r=e.client;return{log(e){let{type:n,level:a,message:o,args:i,tag:s,date:l,...u}=e,c=r||(0,L.getClient)();if(!c)return;let d=function(e,t){if("verbose"===e)return"debug";if("silent"===e)return"trace";if(e){let t=rC[e];if(t)return t}if("number"==typeof t){let e=rA[t];if(e)return e}return"info"}(n,a);if(!t.has(d))return;let{normalizeDepth:p=3,normalizeMaxBreadth:h=1e3}=c.getOptions(),f=[];o&&f.push(o),i&&i.length>0&&f.push(rE(i,p,h));let g=f.join(" ");u["sentry.origin"]="auto.log.consola",s&&(u["consola.tag"]=s),n&&(u["consola.type"]=n),null!=a&&"number"==typeof a&&(u["consola.level"]=a),(0,rS._INTERNAL_captureLog)({level:d,message:g,attributes:u})}}}let rC={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"},rA={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};var rx=e.i(212197);let rN="gen_ai.system",rM="gen_ai.request.model",rO="gen_ai.request.stream",rP="gen_ai.request.temperature",rD="gen_ai.request.max_tokens",rL="gen_ai.request.frequency_penalty",rB="gen_ai.request.presence_penalty",rU="gen_ai.request.top_p",rF="gen_ai.request.top_k",rW="gen_ai.response.finish_reasons",r$="gen_ai.response.model",rj="gen_ai.response.id",rH="gen_ai.usage.input_tokens",rG="gen_ai.usage.output_tokens",rz="gen_ai.usage.total_tokens",rq="gen_ai.operation.name",rY="sentry.sdk_meta.gen_ai.input.messages.original_length",rJ="gen_ai.input.messages",rV="gen_ai.system_instructions",rK="gen_ai.response.text",rX="gen_ai.request.available_tools",rQ="gen_ai.response.streaming",rZ="gen_ai.response.tool_calls",r0="gen_ai.agent.name",r1="gen_ai.conversation.id",r2="openai.response.id",r3="openai.response.model",r5="openai.response.timestamp",r6="chat",r4="embeddings",r7="anthropic.response.timestamp",r8="auto.ai.langchain",r9={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"},ne=e=>new TextEncoder().encode(e).length,nt=e=>ne(JSON.stringify(e));function nr(e,t){if(ne(e)<=t)return e;let r=0,n=e.length,a="";for(;r<=n;){let o=Math.floor((r+n)/2),i=e.slice(0,o);ne(i)<=t?(a=i,r=o+1):n=o-1}return a}function nn(e,t){return"string"==typeof e?t:{...e,text:t}}function na(e){var t;return!!e&&"object"==typeof e&&("type"in(t=e)&&"string"==typeof t.type&&"source"in t&&na(t.source)||no(e)||"media_type"in e&&"string"==typeof e.media_type&&"data"in e||"image_url"in e&&"string"==typeof e.image_url&&e.image_url.startsWith("data:")||"type"in e&&("blob"===e.type||"base64"===e.type)||"b64_json"in e||"type"in e&&"result"in e&&"image_generation"===e.type||"uri"in e&&"string"==typeof e.uri&&e.uri.startsWith("data:"))}function no(e){return"inlineData"in e&&!!e.inlineData&&"object"==typeof e.inlineData&&"data"in e.inlineData&&"string"==typeof e.inlineData.data}function ni(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}let ns="[Filtered]",nl=["image_url","data","content","b64_json","result","uri"];function nu(e){let t={...e};for(let r of(na(t.source)&&(t.source=nu(t.source)),no(e)&&(t.inlineData={...e.inlineData,data:ns}),nl))"string"==typeof t[r]&&(t[r]=ns);return t}function nc(e){if(!Array.isArray(e)||0===e.length)return e;let t=function e(t){return t.map(t=>{let r;t&&"object"==typeof t&&(null!==t&&"object"==typeof t&&"content"in t&&Array.isArray(t.content)?r={...t,content:e(t.content)}:"content"in t&&na(t.content)&&(r={...t,content:nu(t.content)}),ni(t)&&(r={...r??t,parts:e(t.parts)}),na(r)?r=nu(r):na(t)&&(r=nu(t)));return r??t})}([e[e.length-1]]),r=t[0];return 2e4>=nt(r)?t:function(e){if(!e)return[];if("string"==typeof e){let t=nr(e,2e4);return t?[t]:[]}if("object"!=typeof e)return[];if(null!==e&&"object"==typeof e&&"content"in e&&"string"==typeof e.content){let t=2e4-nt({...e,content:""});if(t<=0)return[];let r=nr(e.content,t);return[{...e,content:r}]}return ni(e)?function(e,t){let{parts:r}=e,n=r.map(e=>nn(e,"")),a=t-nt({...e,parts:n});if(a<=0)return[];let o=[];for(let e of r){let t="string"==typeof e?e:"text"in e?e.text:"",r=ne(t);if(r<=a)o.push(e),a-=r;else if(0===o.length){let r=nr(t,a);r&&o.push(nn(e,r));break}else break}return o.length<=0?[]:[{...e,parts:o}]}(e,2e4):[]}(r)}
472function nd(e){return e.includes("messages")?"chat":e.includes("completions")?"text_completion":e.includes("generateContent")?"generate_content":e.includes("models")?"models":e.includes("chat")?"chat":e.split(".").pop()||"unknown"}function np(e){return`gen_ai.${nd(e)}`}function nh(e,t){return e?`${e}.${t}`:t}function nf(e,t,r,n,a){void 0!==t&&e.setAttributes({[rH]:t}),void 0!==r&&e.setAttributes({[rG]:r}),(void 0!==t||void 0!==r||void 0!==n||void 0!==a)&&e.setAttributes({[rz]:(t??0)+(r??0)+(n??0)+(a??0)})}function ng(e){return"string"==typeof e?nr(e,2e4):Array.isArray(e)?JSON.stringify(nc(e)):JSON.stringify(e)}function nm(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 r=e[t],n="string"==typeof r.content?r.content:void 0!==r.content?JSON.stringify(r.content):void 0;return n?{systemInstructions:JSON.stringify([{type:"text",content:n}]),filteredMessages:[...e.slice(0,t),...e.slice(t+1)]}:{systemInstructions:void 0,filteredMessages:e}}let n_=(e,t,r)=>{null!=r&&(e[t]=r)},ny=(e,t,r)=>{let n=Number(r);Number.isNaN(n)||(e[t]=n)};function nb(e){if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}function nS(e){let t=e.toLowerCase();return r9[t]??t}function nv(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 nE(e){if(!(!e||Array.isArray(e)))return e.invocation_params}function nT(e){return e.map(e=>{let t=e._getType;if("function"==typeof t)return{role:nS(t.call(e)),content:nb(e.content)};if(1===e.lc&&e.kwargs){let t=e.id,r=Array.isArray(t)&&t.length>0?t[t.length-1]:"";return{role:nS("string"==typeof r?nv(r):"user"),content:nb(e.kwargs?.content)}}if(e.type)return{role:nS(String(e.type).toLowerCase()),content:nb(e.content)};if(e.role)return{role:nS(String(e.role)),content:nb(e.content)};let r=e.constructor?.name;return r&&"Object"!==r?{role:nS(nv(r)),content:nb(e.content)}:{role:"user",content:nb(e.content)}})}function nw(e,t,r,n,a){let o,i;return{[rN]:nb(e??"langchain"),[rq]:"chat",[rM]:nb(t),[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:r8,...(o={},i="kwargs"in r?r.kwargs:void 0,ny(o,rP,n?.temperature??a?.ls_temperature??i?.temperature),ny(o,rD,n?.max_tokens??a?.ls_max_tokens??i?.max_tokens),ny(o,rU,n?.top_p??i?.top_p),ny(o,rL,n?.frequency_penalty),ny(o,rB,n?.presence_penalty),n&&"stream"in n&&n_(o,rO,!!n.stream),o)}}function nI(e={}){let t=e.recordInputs??!1,r=e.recordOutputs??!1,n=new Map,a=e=>{let t=n.get(e);t?.isRecording()&&(t.end(),n.delete(e))},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,r,a,o,i,s,l,u){let c,d=nE(s),p=(c=nw(l?.ls_provider,d?.model??l?.ls_model_name??"unknown",e,d,l),t&&Array.isArray(r)&&r.length>0&&(n_(c,rY,r.length),n_(c,rJ,nb(r.map(e=>({role:"user",content:e}))))),c),h=p[rM],f=p[rq];(0,rI.startSpanManual)({name:`${f} ${h}`,op:"gen_ai.chat",attributes:{...p,[z.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},e=>(n.set(a,e),e))},handleChatModelStart(e,r,a,o,i,s,l,u){let c=function(e,t,r,n,a){let o=nw(a?.ls_provider??e.id?.[2],n?.model??a?.ls_model_name??"unknown",e,n,a);if(r&&Array.isArray(t)&&t.length>0){let{systemInstructions:e,filteredMessages:r}=nm(nT(t.flat()));e&&n_(o,rV,e),n_(o,rY,Array.isArray(r)?r.length:0),n_(o,rJ,nb(nc(r)))}return o}(e,r,t,nE(s),l),d=c[rM],p=c[rq];(0,rI.startSpanManual)({name:`${p} ${d}`,op:"gen_ai.chat",attributes:{...c,[z.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},e=>(n.set(a,e),e))},handleLLMEnd(e,t,o,i,s){let l=n.get(t);if(l?.isRecording()){let n=function(e,t){if(!e)return;let r={};if(Array.isArray(e.generations)){let a=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);a.length>0&&n_(r,rW,nb(a));var n=e.generations;let o=[];for(let e of n.flat()){let t=e.message?.content;if(Array.isArray(t))for(let e of t)"tool_use"===e.type&&o.push(e)}if(o.length>0&&n_(r,rZ,nb(o)),t){let t=e.generations.flat().map(e=>e.text??e.message?.content).filter(e=>"string"==typeof e);t.length>0&&n_(r,rK,nb(t))}}!function(e,t){if(!e)return;let r=e.tokenUsage,n=e.usage;if(r)ny(t,rH,r.promptTokens),ny(t,rG,r.completionTokens),ny(t,rz,r.totalTokens);else if(n){ny(t,rH,n.input_tokens),ny(t,rG,n.output_tokens);let e=Number(n.input_tokens),r=Number(n.output_tokens),a=(Number.isNaN(e)?0:e)+(Number.isNaN(r)?0:r);a>0&&ny(t,rz,a),void 0!==n.cache_creation_input_tokens&&ny(t,"gen_ai.usage.cache_creation_input_tokens",n.cache_creation_input_tokens),void 0!==n.cache_read_input_tokens&&ny(t,"gen_ai.usage.cache_read_input_tokens",n.cache_read_input_tokens)}}(e.llmOutput,r);let a=e.llmOutput,o=e.generations?.[0]?.[0],i=o?.message,s=a?.model_name??a?.model??i?.response_metadata?.model_name;s&&n_(r,r$,s);let l=a?.id??i?.id;l&&n_(r,rj,l);let u=a?.stop_reason??i?.response_metadata?.finish_reason;return u&&n_(r,"gen_ai.response.stop_reason",nb(u)),r}(e,r);n&&l.setAttributes(n),a(t)}},handleLLMError(e,t){let r=n.get(t);r?.isRecording()&&(r.setStatus({code:rx.SPAN_STATUS_ERROR,message:"llm_error"}),a(t)),(0,D.captureException)(e,{mechanism:{handled:!1,type:`${r8}.llm_error_handler`}})},handleChainStart(e,r,a,o){let i=e.name||"unknown_chain",s={[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.langchain","langchain.chain.name":i};t&&(s["langchain.chain.inputs"]=JSON.stringify(r)),(0,rI.startSpanManual)({name:`chain ${i}`,op:"gen_ai.invoke_agent",attributes:{...s,[z.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.invoke_agent"}},e=>(n.set(a,e),e))},handleChainEnd(e,t){let o=n.get(t);o?.isRecording()&&(r&&o.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),a(t))},handleChainError(e,t){let r=n.get(t);r?.isRecording()&&(r.setStatus({code:rx.SPAN_STATUS_ERROR,message:"chain_error"}),a(t)),(0,D.captureException)(e,{mechanism:{handled:!1,type:`${r8}.chain_error_handler`}})},handleToolStart(e,r,a,o){let i=e.name||"unknown_tool",s={[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:r8,"gen_ai.tool.name":i};t&&(s["gen_ai.tool.input"]=r),(0,rI.startSpanManual)({name:`execute_tool ${i}`,op:"gen_ai.execute_tool",attributes:{...s,[z.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.execute_tool"}},e=>(n.set(a,e),e))},handleToolEnd(e,t){let o=n.get(t);o?.isRecording()&&(r&&o.setAttributes({"gen_ai.tool.output":JSON.stringify(e)}),a(t))},handleToolError(e,t){let r=n.get(t);r?.isRecording()&&(r.setStatus({code:rx.SPAN_STATUS_ERROR,message:"tool_error"}),a(t)),(0,D.captureException)(e,{mechanism:{handled:!1,type:`${r8}.tool_error_handler`}})},copy:()=>o,toJSON:()=>
472({lc:1,type:"not_implemented",id:o.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:o.lc_id})};return o}var nk=e.i(777074),nR=e.i(541540),nC=e.i(136469),nA=e.i(829237);let nx=(0,eg.defineIntegration)((e={})=>{let{depth:t=3,captureErrorCause:r=!0}=e;return{name:"ExtraErrorData",processEvent(e,n,a){let{maxValueLength:o}=a.getOptions();return function(e,t={},r,n,a){if(!t.originalException||!(0,W.isError)(t.originalException))return e;let o=t.originalException.name||t.originalException.constructor.name,i=function e(t,r,n){try{let a=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],o={};for(let e of Object.keys(t)){if(-1!==a.indexOf(e))continue;let r=t[e];o[e]=(0,W.isError)(r)||"string"==typeof r?n?(0,r_.truncate)(`${r}`,n):`${r}`:r}if(r&&void 0!==t.cause&&((0,W.isError)(t.cause)?o.cause={[t.cause.name||t.cause.constructor.name]:e(t.cause,!1,n)}:o.cause=t.cause),"function"==typeof t.toJSON){let e=t.toJSON();for(let t of Object.keys(e)){let r=e[t];o[t]=(0,W.isError)(r)?r.toString():r}}return o}catch(e){rb.DEBUG_BUILD&&M.debug.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,n,a);if(i){let t={...e.contexts},n=(0,rv.normalize)(i,r);return(0,W.isPlainObject)(n)&&((0,nA.addNonEnumerableProperty)(n,"__sentry_skip_normalization__",!0),t[o]=n),{...e,contexts:t}}return e}(e,n,t,r,o)}}});var nN=e.i(858852);let nM="flag.evaluation.";function nO(e){let t=(0,L.getCurrentScope)().getScopeData().contexts.flags,r=t?t.values:[];return r.length&&(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...r]}),e}function nP(e,t,r=100){let n=(0,L.getCurrentScope)().getScopeData().contexts;n.flags||(n.flags={values:[]}),function(e,t,r,n){if("boolean"!=typeof r)return;if(e.length>n){rb.DEBUG_BUILD&&M.debug.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${n}`);return}let a=e.findIndex(e=>e.flag===t);-1!==a&&e.splice(a,1),e.length===n&&e.shift(),e.push({flag:t,result:r})}(n.flags.values,e,t,r)}function nD(e,t,r=10){if("boolean"!=typeof t)return;let n=(0,nN.getActiveSpan)();if(!n)return;let a=(0,nN.spanToJSON)(n).data;`${nM}${e}`in a?n.setAttribute(`${nM}${e}`,t):Object.keys(a).filter(e=>e.startsWith(nM)).length<r&&n.setAttribute(`${nM}${e}`,t)}let nL=(0,eg.defineIntegration)(()=>({name:"FeatureFlags",processEvent:(e,t,r)=>nO(e),addFeatureFlag(e,t){nP(e,t),nD(e,t)}}));var nB=e.i(999217),nU=e.i(764726),nF=e.i(62698);function nW(e,t,r,n){if(e&&"object"==typeof e&&(!("type"in e)||"string"!=typeof e.type||"error"!==e.type||(n.setStatus({code:rx.SPAN_STATUS_ERROR,message:e.error?.type??"internal_error"}),(0,D.captureException)(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),0))){if("message_delta"===e.type&&e.usage&&"output_tokens"in e.usage&&"number"==typeof e.usage.output_tokens&&(t.completionTokens=e.usage.output_tokens),e.message){let r=e.message;r.id&&(t.responseId=r.id),r.model&&(t.responseModel=r.model),r.stop_reason&&t.finishReasons.push(r.stop_reason),r.usage&&("number"==typeof r.usage.input_tokens&&(t.promptTokens=r.usage.input_tokens),"number"==typeof r.usage.cache_creation_input_tokens&&(t.cacheCreationInputTokens=r.usage.cache_creation_input_tokens),"number"==typeof r.usage.cache_read_input_tokens&&(t.cacheReadInputTokens=r.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 r=t.activeToolBlocks[e.index];r&&r.inputJsonParts.push(e.delta.partial_json)}r&&"string"==typeof e.delta.text&&t.responseTexts.push(e.delta.text)}!function(e,t){let r;if("content_block_stop"!==e.type||"number"!=typeof e.index)return;let n=t.activeToolBlocks[e.index];if(!n)return;let a=n.inputJsonParts.join("");try{r=a?JSON.parse(a):{}}catch{r={__unparsed:a}}t.toolCalls.push({type:"tool_use",id:n.id,name:n.name,input:r}),delete t.activeToolBlocks[e.index]}(e,t)}}async function*n$(e,t,r){let n={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)nW(a,n,r,t),yield a}finally{n.responseId&&t.setAttributes({[rj]:n.responseId}),n.responseModel&&t.setAttributes({[r$]:n.responseModel}),nf(t,n.promptTokens,n.completionTokens,n.cacheCreationInputTokens,n.cacheReadInputTokens),t.setAttributes({[rQ]:!0}),n.finishReasons.length>0&&t.setAttributes({[rW]:JSON.stringify(n.finishReasons)}),r&&n.responseTexts.length>0&&t.setAttributes({[rK]:n.responseTexts.join("")}),r&&n.toolCalls.length>0&&t.setAttributes({[rZ]:JSON.stringify(n.toolCalls)}),t.end()}}let nj=["messages.create","messages.stream","messages.countTokens","models.get","completions.
472create","models.retrieve","beta.messages.create"];function nH(e,t){!function(e,t){if(Array.isArray(t)&&0===t.length)return;let{systemInstructions:r,filteredMessages:n}=nm(t);r&&e.setAttributes({[rV]:r});let a=Array.isArray(n)?n.length:1;e.setAttributes({[rJ]:ng(n),[rY]:a})}(e,function(e){let{system:t,messages:r,input:n}=e,a="string"==typeof t?[{role:"system",content:e.system}]:[],o=Array.isArray(n)?n:null!=n?[n]:void 0,i=Array.isArray(r)?r:null!=r?[r]:[];return[...a,...o??i]}(t)),"prompt"in t&&e.setAttributes({"gen_ai.prompt":JSON.stringify(t.prompt)})}function nG(e,t,r){throw(0,D.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:r}}}),t.isRecording()&&(t.setStatus({code:rx.SPAN_STATUS_ERROR,message:"internal_error"}),t.end()),e}function nz(e,t){let r=!!(0,L.getClient)()?.getOptions().sendDefaultPii;return function e(t,r="",n){return new Proxy(t,{get(t,a){let o=t[a],i=nh(r,String(a));return"function"==typeof o&&nj.includes(i)?new Proxy(o,{apply(e,r,a){let s=function(e,t){let r={[rN]:"anthropic",[rq]:nd(t),[z.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[rX]=JSON.stringify(t.tools)),r[rM]=t.model??"unknown","temperature"in t&&(r[rP]=t.temperature),"top_p"in t&&(r[rU]=t.top_p),"stream"in t&&(r[rO]=t.stream),"top_k"in t&&(r[rF]=t.top_k),"frequency_penalty"in t&&(r[rL]=t.frequency_penalty),"max_tokens"in t&&(r[rD]=t.max_tokens)}else"models.retrieve"===t||"models.get"===t?r[rM]=e[0]:r[rM]="unknown";return r}(a,i),l=s[rM]??"unknown",u=nd(i),c="object"==typeof a[0]?a[0]:void 0,d=!!c?.stream,p="messages.stream"===i;if(d||p){let r,l;return r=s[rM]??"unknown",l={name:`${u} ${r} stream-response`,op:np(i),attributes:s},d&&!p?(0,rI.startSpanManual)(l,async e=>{try{n.recordInputs&&c&&nH(e,c);let r=await o.apply(t,a);return n$(r,e,n.recordOutputs??!1)}catch(t){return nG(t,e,i)}}):(0,rI.startSpanManual)(l,r=>{try{var o,s;let i;return n.recordInputs&&c&&nH(r,c),o=e.apply(t,a),s=n.recordOutputs??!1,i={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}},o.on("streamEvent",e=>{nW(e,i,s,r)}),o.on("message",()=>{r.isRecording()&&(i.responseId&&r.setAttributes({[rj]:i.responseId}),i.responseModel&&r.setAttributes({[r$]:i.responseModel}),nf(r,i.promptTokens,i.completionTokens,i.cacheCreationInputTokens,i.cacheReadInputTokens),r.setAttributes({[rQ]:!0}),i.finishReasons.length>0&&r.setAttributes({[rW]:JSON.stringify(i.finishReasons)}),s&&i.responseTexts.length>0&&r.setAttributes({[rK]:i.responseTexts.join("")}),s&&i.toolCalls.length>0&&r.setAttributes({[rZ]:JSON.stringify(i.toolCalls)}),r.end())}),o.on("error",e=>{(0,D.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),r.isRecording()&&(r.setStatus({code:rx.SPAN_STATUS_ERROR,message:"stream_error"}),r.end())}),o}catch(e){return nG(e,r,i)}})}return(0,rI.startSpan)({name:`${u} ${l}`,op:np(i),attributes:s},r=>(n.recordInputs&&c&&nH(r,c),(0,nF.handleCallbackErrors)(()=>e.apply(t,a),e=>{(0,D.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:i}}})},()=>{},e=>(function(e,t,r){if(t&&"object"==typeof t){if("type"in t&&"error"===t.type)return void(t.error&&(e.setStatus({code:rx.SPAN_STATUS_ERROR,message:t.error.type||"internal_error"}),(0,D.captureException)(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}})));r&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[rK]:t.content.map(e=>e.text).filter(e=>!!e).join("")});let r=[];for(let e of t.content)("tool_use"===e.type||"server_tool_use"===e.type)&&r.push(e);r.length>0&&e.setAttributes({[rZ]:JSON.stringify(r)})}"completion"in t&&e.setAttributes({[rK]:t.completion}),"input_tokens"in t&&e.setAttributes({[rK]:JSON.stringify(t.input_tokens)})}(e,t),"id"in t&&"model"in t&&(e.setAttributes({[rj]:t.id,[r$]:t.model}),"created"in t&&"number"==typeof t.created&&e.setAttributes({[r7]:new Date(1e3*t.created).toISOString()}),"created_at"in t&&"number"==typeof t.created_at&&e.setAttributes({[r7]:new Date(1e3*t.created_at).toISOString()}),"usage"in t&&t.usage&&nf(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}})(r,e,n.recordOutputs))))}}):"function"==typeof o?o.bind(t):o&&"object"==typeof o?e(o,i,n):o}})}(e,"",{recordInputs:r,recordOutputs:r,...t})}let nq=["models.generateContent","models.generateContentStream","chats.create","sendMessage","sendMessageStream"],nY="chats.create";async function*nJ(e,t,r){let n={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(let a of e)!function(e,t,r,n){if(!(!e||function(e,t){let r=e?.promptFeedback;if(r?.blockReason){let e=r.blockReasonMessage??r.blockReason;return t.setStatus({code:rx.SPAN_STATUS_ERROR,message:`Content blocked: ${e}`}),(0,D.captureException)(`Content blocked: ${e}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}(e,n))){let n;for(let a of("string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion),(n=e.usageMetadata)&&("number"==typeof n.promptTokenCount&&(t.promptTokens=n.promptTokenCount),"number"==typeof n.candidatesTokenCount&&(t.completionTokens=n.candidatesTokenCount),"number"==typeof n.totalTokenCount&&(t.totalTokens=n.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??[]))r&&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,n,r,t),yield a}finally{let e={[rQ]:!0};n.responseId&&(e[rj]=n.responseId),n.responseModel&&(e[r$]=n.responseModel),void 0!==n.promptTokens&&(e[rH]=n.promptTokens),void 0!==n.completionTokens&&(e[rG]=n.completionTokens),void 0!==n.totalTokens&&(e[rz]=n.totalTokens),n.finishReasons.length&&(e[rW]=JSON.stringify(n.finishReasons)),r&&n.responseTexts.length&&(e[rK]=n.responseTexts.join("")),r&&n.toolCalls.length&&(e[rZ]=JSON.stringify(n.toolCalls)),t.setAttributes(e),t.end()}}function nV(e,t="user"){return"string"==typeof e?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(e=>nV(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 nK(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 nX(e,t){let r=[];if("config"in t&&t.config&&"object"==typeof t.config&&"systemInstruction"in t.config&&t.config.systemInstruction&&r.push(...nV(t.config.systemInstruction,"system")),"history"in t&&r.push(...nV(t.history,"user")),"contents"in t&&r.push(...nV(t.contents,"user")),"message"in t&&r.push(...nV(t.message,"user")),Array.isArray(r)&&r.length){let{systemInstructions:t,filteredMessages:n}=nm(r);t&&e.setAttribute(rV,t);let a=Array.isArray(n)?n.length:0;e.setAttributes({[rY]:a,[rJ]:JSON.stringify(nc(n))})}}function nQ(e,t,r,n){let a=t===nY;return new Proxy(e,{apply(e,o,i){let s=i[0],l=function(e,t,r){let n={[rN]:"google_genai",[rq]:nd(e),[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.google_genai"};if(t){if(n[rM]=nK(t,r),"config"in t&&"object"==typeof t.config&&t.config){let e,r=t.config;if(Object.assign(n,(e={},"temperature"in r&&"number"==typeof r.temperature&&(e[rP]=r.temperature),"topP"in r&&"number"==typeof r.topP&&(e[rU]=r.topP),"topK"in r&&"number"==typeof r.topK&&(e[rF]=r.topK),"maxOutputTokens"in r&&"number"==typeof r.maxOutputTokens&&(e[rD]=r.maxOutputTokens),"frequencyPenalty"in r&&"number"==typeof r.frequencyPenalty&&(e[rL]=r.frequencyPenalty),"presencePenalty"in r&&"number"==typeof r.presencePenalty&&(e[rB]=r.presencePenalty
472),e)),"tools"in r&&Array.isArray(r.tools)){let e=r.tools.flatMap(e=>e.functionDeclarations);n[rX]=JSON.stringify(e)}}}else n[rM]=nK({},r);return n}(t,s,r),u=l[rM]??"unknown",c=nd(t);return t.includes("Stream")?(0,rI.startSpanManual)({name:`${c} ${u} stream-response`,op:np(t),attributes:l},async a=>{try{n.recordInputs&&s&&nX(a,s);let t=await e.apply(r,i);return nJ(t,a,!!n.recordOutputs)}catch(e){throw a.setStatus({code:rx.SPAN_STATUS_ERROR,message:"internal_error"}),(0,D.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),a.end(),e}}):(0,rI.startSpan)({name:a?`${c} ${u} create`:`${c} ${u}`,op:np(t),attributes:l},o=>(n.recordInputs&&s&&nX(o,s),(0,nF.handleCallbackErrors)(()=>e.apply(r,i),e=>{(0,D.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},e=>{a||function(e,t,r){if(t&&"object"==typeof t){if(t.modelVersion&&e.setAttribute(r$,t.modelVersion),t.usageMetadata&&"object"==typeof t.usageMetadata){let r=t.usageMetadata;"number"==typeof r.promptTokenCount&&e.setAttributes({[rH]:r.promptTokenCount}),"number"==typeof r.candidatesTokenCount&&e.setAttributes({[rG]:r.candidatesTokenCount}),"number"==typeof r.totalTokenCount&&e.setAttributes({[rz]:r.totalTokenCount})}if(r&&Array.isArray(t.candidates)&&t.candidates.length>0){let r=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);r.length>0&&e.setAttributes({[rK]:r.join("")})}if(r&&t.functionCalls){let r=t.functionCalls;Array.isArray(r)&&r.length>0&&e.setAttributes({[rZ]:JSON.stringify(r)})}}}(o,e,n.recordOutputs)})))}})}function nZ(e,t){let r=!!(0,L.getClient)()?.getOptions().sendDefaultPii;return function e(t,r="",n){return new Proxy(t,{get:(t,a,o)=>{let i=Reflect.get(t,a,o),s=nh(r,String(a));if("function"==typeof i&&function(e){if(nq.includes(e))return!0;let t=e.split(".").pop();return nq.includes(t)}(s)){if(s===nY){let r=nQ(i,s,t,n);return function(...t){let a=r(...t);return a&&"object"==typeof a?e(a,"chat",n):a}}return nQ(i,s,t,n)}return"function"==typeof i?i.bind(t):i&&"object"==typeof i?e(i,s,n):i}})}(e,"",{recordInputs:r,recordOutputs:r,...t})}let n0="auto.ai.langgraph";function n1(e,t){var r,n;return r=e.compile.bind(e),n=t||{},e.compile=new Proxy(r,{apply:(e,t,r)=>(0,rI.startSpan)({op:"gen_ai.create_agent",name:"create_agent",attributes:{[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:n0,[z.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.create_agent",[rq]:"create_agent"}},a=>{try{var o,i,s,l;let u=Reflect.apply(e,t,r),c=r.length>0?r[0]:{};c?.name&&"string"==typeof c.name&&(a.setAttribute(r0,c.name),a.updateName(`create_agent ${c.name}`));let d=u.invoke;return d&&"function"==typeof d&&(o=d.bind(u),i=u,s=c,l=n,u.invoke=new Proxy(o,{apply:(e,t,r)=>(0,rI.startSpan)({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:n0,[z.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.invoke_agent",[rq]:"invoke_agent"}},async n=>{try{let a=s?.name;a&&"string"==typeof a&&(n.setAttribute("gen_ai.pipeline.name",a),n.setAttribute(r0,a),n.updateName(`invoke_agent ${a}`));let o=r.length>1?r[1]:void 0,u=o?.configurable,c=u?.thread_id;c&&"string"==typeof c&&n.setAttribute(r1,c);let d=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}(i);d&&n.setAttribute(rX,JSON.stringify(d));let p=l.recordInputs,h=l.recordOutputs,f=r.length>0?r[0].messages??[]:[];if(f&&p){let e=nT(f),{systemInstructions:t,filteredMessages:r}=nm(e);t&&n.setAttribute(rV,t);let a=nc(r),o=Array.isArray(r)?r.length:0;n.setAttributes({[rJ]:JSON.stringify(a),[rY]:o})}let g=await Reflect.apply(e,t,r);return h&&function(e,t,r){let n=r?.messages;if(!n||!Array.isArray(n))return;let a=t?.length??0,o=n.length>a?n.slice(a):[];if(0===o.length)return;let i=function(e){if(!e||0===e.length)return null;let t=[];for(let r of e)if(r&&"object"==typeof r){let e=r.tool_calls;e&&Array.isArray(e)&&t.push(...e)}return t.length>0?t:null}(o);i&&e.setAttribute(rZ,JSON.stringify(i));
472let s=nT(o);e.setAttribute(rK,JSON.stringify(s));let l=0,u=0,c=0;for(let t of o){let r=function(e){let t=0,r=0,n=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&&(r=a.output_tokens),"number"==typeof a.total_tokens&&(n=a.total_tokens),{inputTokens:t,outputTokens:r,totalTokens:n}}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&&(r=e.completionTokens),"number"==typeof e.totalTokens&&(n=e.totalTokens)}}return{inputTokens:t,outputTokens:r,totalTokens:n}}(t);l+=r.inputTokens,u+=r.outputTokens,c+=r.totalTokens,function(e,t){if(t.response_metadata&&"object"==typeof t.response_metadata){let r=t.response_metadata;r.model_name&&"string"==typeof r.model_name&&e.setAttribute(r$,r.model_name),r.finish_reason&&"string"==typeof r.finish_reason&&e.setAttribute(rW,[r.finish_reason])}}(e,t)}l>0&&e.setAttribute(rH,l),u>0&&e.setAttribute(rG,u),c>0&&e.setAttribute(rz,c)}(n,f??null,g),g}catch(e){throw n.setStatus({code:rx.SPAN_STATUS_ERROR,message:"internal_error"}),(0,D.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})})),u}catch(e){throw a.setStatus({code:rx.SPAN_STATUS_ERROR,message:"internal_error"}),(0,D.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}),e}let n2=["responses.create","chat.completions.create","embeddings.create","conversations.create"],n3=["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"];function n5(e){return e.includes("chat.completions")||e.includes("responses")?r6:e.includes("embeddings")?r4:e.includes("conversations")?r6:e.split(".").pop()||"unknown"}function n6(e){return`gen_ai.${n5(e)}`}function n4(e,t,r,n){void 0!==t&&e.setAttributes({"openai.usage.prompt_tokens":t,[rH]:t}),void 0!==r&&e.setAttributes({"openai.usage.completion_tokens":r,[rG]:r}),void 0!==n&&e.setAttributes({[rz]:n})}function n7(e,t,r,n){e.setAttributes({[r2]:t,[rj]:t}),e.setAttributes({[r3]:r,[r$]:r}),e.setAttributes({[r5]:new Date(1e3*n).toISOString()})}async function*n8(e,t,r){let n={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",responseTimestamp:0,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(n.responseId=a.id??n.responseId,n.responseModel=a.model??n.responseModel,n.responseTimestamp=a.created??n.responseTimestamp,a.usage&&(n.promptTokens=a.usage.prompt_tokens,n.completionTokens=a.usage.completion_tokens,n.totalTokens=a.usage.total_tokens),a.choices??[]))r&&(e.delta?.content&&n.responseTexts.push(e.delta.content),e.delta?.tool_calls&&function(e,t){for(let r of e){let e=r.index;if(void 0!==e&&r.function)if(e in t.chatCompletionToolCalls){let n=t.chatCompletionToolCalls[e];r.function.arguments&&n?.function&&(n.function.arguments+=r.function.arguments)}else t.chatCompletionToolCalls[e]={...r,function:{name:r.function.name,arguments:r.function.arguments||""}}}}(e.delta.tool_calls,n)),e.finish_reason&&n.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,r,n){if(!(e&&"object"==typeof e))return t.eventTypes.push("unknown:non-object");if(e instanceof Error){n.setStatus({code:rx.SPAN_STATUS_ERROR,message:"internal_error"}),(0,D.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if("type"in e){if(!n3.includes(e.type))return t.eventTypes.push(e.type);if(r&&("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:n}=e;t.responseId=n.id??t.responseId,t.responseModel=n.model??t.responseModel,t.responseTimestamp=n.created_at??t.responseTimestamp,n.usage&&(t.promptTokens=n.usage.input_tokens,t.completionTokens=n.usage.output_tokens,t.totalTokens=n.usage.total_tokens),n.status&&t.finishReasons.push(n.status),r&&n.output_text&&t.responseTexts.push(n.output_text)}}}(a,n,r,t);yield a}}finally{n7(t,n.responseId,n.responseModel,n.responseTimestamp),n4(t,n.promptTokens,n.completionTokens,n.totalTokens),t.setAttributes({[rQ]:!0}),n.finishReasons.length&&t.setAttributes({[rW]:JSON.stringify(n.finishReasons)}),r&&n.responseTexts.length&&t.setAttributes({[rK]:n.responseTexts.join("")});let e=[...Object.values(n.chatCompletionToolCalls),...n.responsesApiToolCalls];e.length>0&&t.setAttributes({[rZ]:JSON.stringify(e)}),t.end()}}function n9(e,t,r){if(r===r4&&"input"in t){let r=t.input;if(null==r||"string"==typeof r&&0===r.length||Array.isArray(r)&&0===r.length)return;e.setAttribute("gen_ai.embeddings.input","string"==typeof r?r:JSON.stringify(r));return}let n="input"in t?t.input:"messages"in t?t.messages:void 0;if(!n||Array.isArray(n)&&0===n.length)return;let{systemInstructions:a,filteredMessages:o}=nm(n);a&&e.setAttribute(rV,a);let i=ng(o);e.setAttribute(rJ,i),Array.isArray(o)?e.setAttribute(rY,o.length):e.setAttribute(rY,1)}function ae(e,t){let r=!!(0,L.getClient)()?.getOptions().sendDefaultPii;return function e(t,r="",n){return new Proxy(t,{get(t,a){var o;let i=t[a],s=(o=String(a),r?`${r}.${o}`:o);return"function"==typeof i&&n2.includes(s)?async function(...e){let r=function(e,t){let r={[rN]:"open
472ai",[rq]:n5(t),[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.openai"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t,n,a,o=e[0],i=(t=[...Array.isArray(o.tools)?o.tools:[],...o.web_search_options&&"object"==typeof o.web_search_options?[{type:"web_search_options",...o.web_search_options}]:[]]).length>0?JSON.stringify(t):void 0;i&&(r[rX]=i),Object.assign(r,(n={[rM]:o.model??"unknown"},"temperature"in o&&(n[rP]=o.temperature),"top_p"in o&&(n[rU]=o.top_p),"frequency_penalty"in o&&(n[rL]=o.frequency_penalty),"presence_penalty"in o&&(n[rB]=o.presence_penalty),"stream"in o&&(n[rO]=o.stream),"encoding_format"in o&&(n["gen_ai.request.encoding_format"]=o.encoding_format),"dimensions"in o&&(n["gen_ai.request.dimensions"]=o.dimensions),(a="conversation"in o&&"string"==typeof o.conversation?o.conversation:"previous_response_id"in o&&"string"==typeof o.previous_response_id?o.previous_response_id:void 0)&&(n[r1]=a),n))}else r[rM]="unknown";return r}(e,s),a=r[rM]||"unknown",o=n5(s),l=e[0];return l&&"object"==typeof l&&!0===l.stream?(0,rI.startSpanManual)({name:`${o} ${a} stream-response`,op:n6(s),attributes:r},async r=>{try{n.recordInputs&&l&&n9(r,l,o);let a=await i.apply(t,e);return n8(a,r,n.recordOutputs??!1)}catch(e){throw r.setStatus({code:rx.SPAN_STATUS_ERROR,message:"internal_error"}),(0,D.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:s}}}),r.end(),e}}):(0,rI.startSpan)({name:`${o} ${a}`,op:n6(s),attributes:r},async r=>{try{n.recordInputs&&l&&n9(r,l,o);let a=await i.apply(t,e);return!function(e,t,r){if(t&&"object"==typeof t)if(null!==t&&"object"==typeof t&&"object"in t&&"chat.completion"===t.object){if(n7(e,t.id,t.model,t.created),t.usage&&n4(e,t.usage.prompt_tokens,t.usage.completion_tokens,t.usage.total_tokens),Array.isArray(t.choices)){let n=t.choices.map(e=>e.finish_reason).filter(e=>null!==e);if(n.length>0&&e.setAttributes({[rW]:JSON.stringify(n)}),r){let r=t.choices.map(e=>e.message?.tool_calls).filter(e=>Array.isArray(e)&&e.length>0).flat();r.length>0&&e.setAttributes({[rZ]:JSON.stringify(r)})}}if(r&&t.choices?.length){let r=t.choices.map(e=>e.message?.content||"");e.setAttributes({[rK]:JSON.stringify(r)})}}else if(null!==t&&"object"==typeof t&&"object"in t&&"response"===t.object){if(n7(e,t.id,t.model,t.created_at),t.status&&e.setAttributes({[rW]:JSON.stringify([t.status])}),t.usage&&n4(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.total_tokens),r&&Array.isArray(t.output)&&t.output.length>0){let r=t.output.filter(e=>"object"==typeof e&&null!==e&&"function_call"===e.type);r.length>0&&e.setAttributes({[rZ]:JSON.stringify(r)})}r&&t.output_text&&e.setAttributes({[rK]:t.output_text})}else null!==t&&"object"==typeof t&&"object"in t&&"list"===t.object&&"string"==typeof t.model&&t.model.toLowerCase().includes("embedding")?(e.setAttributes({[r3]:t.model,[r$]:t.model}),t.usage&&n4(e,t.usage.prompt_tokens,void 0,t.usage.total_tokens)):null!==t&&"object"==typeof t&&"object"in t&&"conversation"===t.object&&function(e,t){let{id:r,created_at:n}=t;e.setAttributes({[r2]:r,[rj]:r,[r1]:r}),n&&e.setAttributes({[r5]:new Date(1e3*n).toISOString()})}(e,t)}(r,a,n.recordOutputs),a}catch(e){throw(0,D.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:s}}}),e}})}:"function"==typeof i?i.bind(t):i&&"object"==typeof i?e(i,s,n):i}})}(e,"",{recordInputs:r,recordOutputs:r,...t})}let at=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],ar=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],an={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"},aa=["select","insert","upsert","update","delete"];function ao(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function ai(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function as(e,t=!1){return new Proxy(e,{apply:(r,n,a)=>(0,rI.startSpan)({name:`auth ${t?"(admin) ":""}${e.name}
472`,attributes:{[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[z.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(r,n,a).then(t=>(t&&"object"==typeof t&&"error"in t&&t.error?(e.setStatus({code:rx.SPAN_STATUS_ERROR}),(0,D.captureException)(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:rx.SPAN_STATUS_OK}),e.end(),t)).catch(t=>{throw e.setStatus({code:rx.SPAN_STATUS_ERROR}),e.end(),(0,D.captureException)(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...a))})}let al=e=>{var t;if(!e){rb.DEBUG_BUILD&&M.debug.warn("Supabase integration was not installed because no Supabase client was provided.");return}ai((t=e.constructor===Function?e:e.constructor).prototype.from)||(t.prototype.from=new Proxy(t.prototype.from,{apply(e,t,r){let n=Reflect.apply(e,t,r);return function(e){for(let t of aa)ai(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(e,r,n){let a=Reflect.apply(e,r,n),o=a.constructor;return rb.DEBUG_BUILD&&M.debug.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),ai(o.prototype.then)||(o.prototype.then=new Proxy(o.prototype.then,{apply(e,t,r){let n=function(e,t={}){switch(e){case"GET":return"select";case"POST":if(t.Prefer?.includes("resolution="))return"upsert";return"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}(t.method,t.headers);if(!aa.includes(n)||!t?.url?.pathname||"string"!=typeof t.url.pathname)return Reflect.apply(e,t,r);let a=t.url.pathname.split("/"),o=a.length>0?a[a.length-1]:"",i=[];for(let[e,r]of t.url.searchParams.entries())i.push(function(e,t){let r;if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;let[n,...a]=t.split(".");return r=n?.startsWith("fts")?"textSearch":n?.startsWith("plfts")?"textSearch[plain]":n?.startsWith("phfts")?"textSearch[phrase]":n?.startsWith("wfts")?"textSearch[websearch]":n&&an[n]||"filter",`${r}(${e}, ${a.join(".")})`}(e,r));let s=Object.create(null);if((0,W.isPlainObject)(t.body))for(let[e,r]of Object.entries(t.body))s[e]=r;let l=`${"select"===n?"":`${n}${s?"(...) ":""}`}${i.join(" ")} from(${o})`,u={"db.table":o,"db.schema":t.schema,"db.url":t.url.origin,"db.sdk":t.headers["X-Client-Info"],"db.system":"postgresql","db.operation":n,[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[z.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db"};return i.length&&(u["db.query"]=i),Object.keys(s).length&&(u["db.body"]=s),(0,rI.startSpan)({name:l,attributes:u},a=>Reflect.apply(e,t,[]).then(e=>{if(a&&(e&&"object"==typeof e&&"status"in e&&(0,rx.setHttpStatus)(a,e.status||500),a.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 r={};i.length&&(r.query=i),Object.keys(s).length&&(r.body=s),(0,D.captureException)(t,e=>(e.addEventProcessor(e=>((0,rg.addExceptionMechanism)(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",r),e))}let t={type:"supabase",category:`db.${n}`,message:l},r={};return i.length&&(r.query=i),Object.keys(s).length&&(r.body=s),Object.keys(r).length&&(t.data=r),(0,rh.addBreadcrumb)(t),e},e=>{throw a&&((0,rx.setHttpStatus)(a,500),a.end()),e}).then(...r))}}),ao(o.prototype.then)),a}}),ao(e.prototype[t]))}(n.constructor),n}}),ao(t.prototype.from));let r=e.auth;if(!(!r||ai(e.auth))){for(let t of at){let n=r[t];n&&"function"==typeof e.auth[t]&&(e.auth[t]=as(n))}for(let t of ar){let n=r.admin[t];n&&"function"==typeof e.auth.admin[t]&&(e.auth.admin[t]=as(n,!0))}ao(e.auth)}},au=(0,eg.defineIntegration)(e=>{let t;return t=e.supabaseClient,{setupOnce(){al(t)},name:"Supabase"}});function ac(e,t,r,n,a){(0,rS._INTERNAL_captureLog)({level:e,message:t,attributes:r,severityNumber:a},n)}function ad(e,t,{scope:r}={}){ac("trace",e,t,r)}function ap(e,t,{scope:r}={}){ac("debug",e,t,r)}function ah(e,t,{scope:r}={}){ac("info",e,t,r)}function af(e,t,{scope:r}={}){ac("warn",e,t,r)}function ag(e,t,{scope:r}={}){ac("error",e,t,r)}function am(e,t,{scope:r}={}){ac("fatal",e,t,r)}function a_(e,...t){let r=new String(String.raw(e,...t));
472return r.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),r.__sentry_template_values__=t,r}e.s(["debug",0,ap,"error",0,ag,"fatal",0,am,"info",0,ah,"trace",0,ad,"warn",0,af],547714),e.i(547714),e.s(["debug",0,ap,"error",0,ag,"fatal",0,am,"fmt",0,a_,"info",0,ah,"trace",0,ad,"warn",0,af],20077);var ay=e.i(20077),ay=ay,ab=e.i(490781);function aS(e,t,r,n){(0,ab._INTERNAL_captureMetric)({type:e,name:t,value:r,unit:n?.unit,attributes:n?.attributes},{scope:n?.scope})}e.s(["count",0,function(e,t=1,r){aS("counter",e,t,r)},"distribution",0,function(e,t,r){aS("distribution",e,t,r)},"gauge",0,function(e,t,r){aS("gauge",e,t,r)}],404804);var av=e.i(404804),av=av;let aE=new Map,aT=new Set;function aw(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;let r=function(e,t){if(O.GLOBAL_OBJ._sentryModuleMetadata)for(let t of Object.keys(O.GLOBAL_OBJ._sentryModuleMetadata)){let r=O.GLOBAL_OBJ._sentryModuleMetadata[t];if(!aT.has(t)){for(let n of(aT.add(t),e(t).reverse()))if(n.filename){aE.set(n.filename,r);break}}}return aE.get(t)}(e,t.filename);r&&(t.module_metadata=r)})})}function aI(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}let ak=(0,eg.defineIntegration)(()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{(0,rl.forEachEnvelopeItem)(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(aI(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||aw(e.getOptions().stackParser,t)})}}));var aR=e.i(102120),aC=e.i(139668),aA=e.i(671576),ax=e.i(924687),aN=e.i(265356);let aM=(0,eg.defineIntegration)(e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{(0,rl.forEachEnvelopeItem)(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(aI(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||aw(e.getOptions().stackParser,t)})},processEvent(t){let r=function(e,t){let r=(0,aN.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){if(0!==t||!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(aD))return!1;if(e.pre_context){let t=e.pre_context.length;for(let r=0;r<t;r++)if(e.pre_context[r]?.includes(aP))return!0}return!1}(e,r))).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(aO)).map(e=>e.slice(aO.length)):[])}(t,e.ignoreSentryInternalFrames);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}})),aO="_sentryBundlerPluginAppKey:",aP="Attempt to invoke user-land function",aD="fn.apply(this, wrappedArguments)";function aL(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 aB=(0,eg.defineIntegration)((e={})=>{let t=e.limit??10;return{name:"ZodErrors",processEvent:(r,n)=>(function(e,t=!1,r,n){var a;if(!r.exception?.values||!n.originalException||(a=n.originalException,!((0,W.isError)(a)&&"ZodError"===a.name&&Array.isArray(a.issues)))||0===n.originalException.issues.length)return r;try{let a=(t?n.originalException.issues:n.originalException.issues.slice(0,e)).map(aL);return t&&(Array.isArray(n.attachments)||(n.attachments=[]),n.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:a})})),{...r,exception:{...r.exception,values:[{...r.exception.values[0],value:function(e){let t=new Set;for(let r of e.issues){let e=r.path.map(e=>"number"==typeof e?"<array>":e).join(".");e.length>0&&t.add(e)}let r=Array.from(t);if(0===r.length){let t="variable";if(e.issues.length>0){let r=e.issues[0];void 0!==r&&"expected"in r&&"string"==typeof r.expected&&(t=r.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${(0,r_.truncate)(r.join(", "),100)}`}(n.originalException)},...r.exception.values.slice(1)]},extra:{...r.extra,"zoderror.issues":a.slice(0,e)}}}catch(e){return{...r,extra:{...r.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message} 473${e.stack}`:"unknown"}}}}})(t,e.saveZodIssuesAsAttachment,r,n)}});var aU=e.i(659291),aF=e.i(688901),aW=e.i(658284);let a$={startProfiler:function(){let e=(0,L.getClient)();if(!e){aW.DEBUG_BUILD&&M.debug.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){aW.DEBUG_BUILD&&M.debug.warn("BrowserProfiling integration is not available");return}e.emit("startUIProfiler")},stopProfiler:function(){let e=(0,L.getClient)();if(!e){aW.DEBUG_BUILD&&M.debug.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){aW.DEBUG_BUILD&&M.debug.warn("ProfilingIntegration is not available");return}e.emit("stopUIProfiler")}};var aj=e.i(769127),aH=e.i(97023);function aG(e,{metadata:t,tunnel:r,dsn:n}){let a={event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!r&&!!n&&{dsn:(0,eb.dsnToString)(n)}},o=[{type:"user_report"},e];return(0,rl.createEnvelope)(a,[o])}function az(e={}){let t=G.WINDOW.document,r=t?.head||t?.body;if(!r){aW.DEBUG_BUILD&&M.debug.error("[showReportDialog] Global document not defined");return}let n=(0,L.getCurrentScope)(),a=(0,L.getClient)(),o=a?.getDsn();if(!o){aW.DEBUG_BUILD&&M.debug.error("[showReportDialog] DSN not configured");return}let i={...e,user:{...n.getUser(),...e.user},eventId:e.eventId||(0,D.lastEventId)()},s=G.WINDOW.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=(0,rs.getReportDialogEndpoint)(o,i);let{onLoad:l,onClose:u}=i;if(l&&(s.onload=l),u){let e=t=>{if("__sentry_reportdialog_closed__"===t.data)try{u()}finally{G.WINDOW.removeEventListener("message",e)}};G.WINDOW.addEventListener("message",e)}r.appendChild(s)}var aq=e.i(440863),aY=e.i(560277),aJ=e.i(937943),aV=e.i(427336),aK=e.i(886405),aX=e.i(689242);let aQ=O.GLOBAL_OBJ,aZ=new WeakMap,a0=(0,eg.defineIntegration)((e={})=>{let t=e.types||["crash","deprecation","intervention"];function r(e){if(aZ.has((0,L.getClient)()))for(let t of e)(0,L.withScope)(e=>{e.setExtra("url",t.url);let r=`ReportingObserver [${t.type}]`,n="No details available";if(t.body){let r={};for(let e in t.body)r[e]=t.body[e];if(e.setExtra("body",r),"crash"===t.type){let e=t.body;n=[e.crashId||"",e.reason||""].join(" ").trim()||n}else n=t.body.message||n}(0,D.captureMessage)(`${r}: ${n}`)})}return{name:"ReportingObserver",setupOnce(){(0,aX.supportsReportingObserver)()&&new aQ.ReportingObserver(r,{buffered:!0,types:t}).observe()},setup(e){aZ.set(e,!0)}}});var a1=e.i(269568);function a2(e,t){var r,n,a,o;let i,s=t?.getDsn(),l=t?.getOptions().tunnel;return r=e,n=s,!(!(i=(0,eu.parseStringToURLObject)(r))||(0,eu.isURLObjectRelative)(i))&&!!n&&i.host.includes(n.host)&&/(^|&|\?)sentry_key=/.test(i.search)||(a=e,!!(o=l)&&a3(a)===a3(o))}function a3(e){return"/"===e[e.length-1]?e.slice(0,-1):e}var a5=e.i(216593);let a6=(0,eg.defineIntegration)((e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){var r,n,a,o;r=e,n=t,(0,aX.supportsNativeFetch)()&&(0,a1.addFetchInstrumentationHandler)(e=>{if((0,L.getClient)()!==r)return;let{response:t,args:a,error:o,virtualError:i}=e,[s,l]=a;t&&function(e,t,r,n,a){if(a8(e,r.status,r.url)){var o,i;let e,s,l,u,c=(o=t,!(i=n)&&o instanceof Request||o instanceof Request&&o.bodyUsed?o:new Request
473(o,i));oe()&&([e,l]=a4("Cookie",c),[s,u]=a4("Set-Cookie",r));let d=a9({url:c.url,method:c.method,status:r.status,requestHeaders:e,responseHeaders:s,requestCookies:l,responseCookies:u,error:a,type:"fetch"});(0,D.captureEvent)(d)}}(n,s,t,l,o||i)},!1),a=e,o=t,"XMLHttpRequest"in O.GLOBAL_OBJ&&(0,a5.addXhrInstrumentationHandler)(e=>{if((0,L.getClient)()!==a)return;let{error:t,virtualError:r}=e,n=e.xhr,i=n[a5.SENTRY_XHR_DATA_KEY];if(!i)return;let{method:s,request_headers:l}=i;try{!function(e,t,r,n,a){if(a8(e,t.status,t.responseURL)){let e,o,i;if(oe()){try{let e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;e&&(o=a7(e))}catch{}try{let e;i=(e=t.getAllResponseHeaders())?e.split("\r\n").reduce((e,t)=>{let[r,n]=t.split(": ");return r&&n&&(e[r]=n),e},{}):{}}catch{}e=n}let s=a9({url:t.responseURL,method:r,status:t.status,requestHeaders:e,responseHeaders:i,responseCookies:o,error:a,type:"xhr"});(0,D.captureEvent)(s)}}(o,n,s,l,t||r)}catch(e){aW.DEBUG_BUILD&&M.debug.warn("Error while extracting response event form XHR response",e)}})}}});function a4(e,t){var r;let n,a,o=(r=t.headers,n={},r.forEach((e,t)=>{n[t]=e}),n);try{let t=o[e]||o[e.toLowerCase()]||void 0;t&&(a=a7(t))}catch{}return[o,a]}function a7(e){return e.split("; ").reduce((e,t)=>{let[r,n]=t.split("=");return r&&n&&(e[r]=n),e},{})}function a8(e,t,r){var n,a;return n=e.failedRequestStatusCodes,n.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])&&(a=e.failedRequestTargets,a.some(e=>"string"==typeof e?r.includes(e):e.test(r)))&&!a2(r,(0,L.getClient)())}function a9(e){let t=(0,L.getClient)(),r=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,n=r&&t?t.getOptions().stackParser(r,0,1):void 0,a=`HTTP Client Error with status code: ${e.status}`,o={message:a,exception:{values:[{type:"Error",value:a,stacktrace:n?{frames:n}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:function(e){if(e){let t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}(e.responseHeaders)}}};return(0,rg.addExceptionMechanism)(o,{type:`auto.http.client.${e.type}`,handled:!1}),o}function oe(){let e=(0,L.getClient)();return!!e&&!!e.getOptions().sendDefaultPii}let ot=O.GLOBAL_OBJ,or=(0,eg.defineIntegration)((e={})=>{let t=null!=e.frameContextLines?e.frameContextLines:7;return{name:"ContextLines",processEvent:e=>(function(e,t){let r=ot.document,n=ot.location&&(0,eu.stripUrlQueryAndFragment)(ot.location.href);if(!r||!n)return e;let a=e.exception?.values;if(!a?.length)return e;let o=r.documentElement.innerHTML;if(!o)return e;let i=["<!DOCTYPE html>","<html>",...o.split("\n"),"</html>"];return a.forEach(e=>{let r=e.stacktrace;r?.frames&&(r.frames=r.frames.map(e=>{var r,a,o,s;return r=e,a=i,o=n,s=t,r.filename===o&&r.lineno&&a.length&&(0,rg.addContextToFrame)(a,r,s),r}))}),e})(e,t)}});var on=e.i(309417);function oa(e){if(ol(e))return`persisted ${e.operationName}`;if(os(e)){let{query:t,operationName:r}=e,{operationName:n=r,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 r=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return r?{operationType:r[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}(t);return n?`${a} ${n}`:`${a}`}return"unknown"}function oo(e){let t;if("xhr"in e){let r=e.xhr[a5.SENTRY_XHR_DATA_KEY];t=r&&(0,on.getBodyString)(r.body)[0]}else{let r=(0,on.getFetchRequestArgBody)(e.input);t=(0,on.getBodyString)(r)[0]}return t}function oi(e){return"object"==typeof e&&null!==e}function os(e){return oi(e)&&"string"==typeof e.query}function ol(e){return oi(e)&&"string"==typeof e.operationName&&oi(e.extensions)&&oi(e.extensions.persistedQuery)&&"string"==typeof e.extensions.persistedQuery.sha256Hash&&"number"==typeof e.extensions.persistedQuery.version}function ou(e){try{let t=JSON.parse(e);if(os(t)||ol(t))return t;return}catch{return}}let oc=(0,eg.defineIntegration)(e=>({name:"GraphQLClient",setup(t){var r,n,a,o;r=t,n=e,r.on("beforeOutgoingRequestSpan",(e,t)=>{let r=(0,nN.spanToJSON)(e).data||{};if("http.client"!==r[z.SEMANTIC_ATTRIBUTE_SENTRY_OP])return;let a=r[z.SEMANTIC_ATTRIBUTE_URL_FULL]||r["http.url"],o=r[z.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]||r["http.method"];
473if(!(0,W.isString)(a)||!(0,W.isString)(o))return;let{endpoints:i}=n,s=(0,r_.stringMatchesSomePattern)(a,i),l=oo(t);if(s&&l){let t=ou(l);if(t){let r=oa(t);e.updateName(`${o} ${a} (${r})`),os(t)&&e.setAttribute("graphql.document",t.query),ol(t)&&(e.setAttribute("graphql.persisted_query.hash.sha256",t.extensions.persistedQuery.sha256Hash),e.setAttribute("graphql.persisted_query.version",t.extensions.persistedQuery.version))}}}),a=t,o=e,a.on("beforeOutgoingRequestBreadcrumb",(e,t)=>{let{category:r,type:n,data:a}=e;if("http"===n&&("fetch"===r||"xhr"===r)){let e=a?.url,{endpoints:r}=o,n=(0,r_.stringMatchesSomePattern)(e,r),i=oo(t);if(n&&a&&i){let e=ou(i);if(!a.graphql&&e){let t=oa(e);a["graphql.operation"]=t,os(e)&&(a["graphql.document"]=e.query),ol(e)&&(a["graphql.persisted_query.hash.sha256"]=e.extensions.persistedQuery.sha256Hash,a["graphql.persisted_query.version"]=e.extensions.persistedQuery.version)}}}})}}));var od=e.i(116314),op=e.i(537430),oh=e.i(781217),of=e.i(26173),og=e.i(408060),om=e.i(626698),o_=e.i(537892);let oy=O.GLOBAL_OBJ,ob="sentryReplaySession",oS="Unable to send Replay";var ov=Object.defineProperty,oE=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?ov(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r},oT=((b=oT||{})[b.Document=0]="Document",b[b.DocumentType=1]="DocumentType",b[b.Element=2]="Element",b[b.Text=3]="Text",b[b.CDATA=4]="CDATA",b[b.Comment=5]="Comment",b);function ow(e){let t=e?.host;return t?.shadowRoot===e}function oI(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function ok(e){try{var t;let r=e.rules||e.cssRules;return r?((t=Array.from(r,oR).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 oR(e){let t;if("styleSheet"in e)try{t=ok(e.styleSheet)||function(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return""===e.layerName?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}(e)}catch(e){}else if("selectorText"in e){let t=e.cssText,r=e.selectorText.includes(":"),n="string"==typeof e.style.all&&e.style.all;if(n&&(t=function(e){let t="";for(let r=0;r<e.style.length;r++){let n=e.style,a=n[r],o=n.getPropertyPriority(a);t+=`${a}:${n.getPropertyValue(a)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}(e)),r&&(t=t.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")),r||n)return t}return t||e.cssText}class oC{constructor(){oE(this,"idNodeMap",new Map),oE(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function oA({maskInputOptions:e,tagName:t,type:r}){return"OPTION"===t&&(t="SELECT"),!!(e[t.toLowerCase()]||r&&e[r]||"password"===r||"INPUT"===t&&!r&&e.text)}function ox({isMasked:e,element:t,value:r,maskInputFn:n}){let a=r||"";return e?(n&&(a=n(a,t)),"*".repeat(a.length)):a}function oN(e){return e.toLowerCase()}function oM(e){return e.toUpperCase()}let oO="__rrweb_original__";function oP(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?oN(t):null}function oD(e,t,r){return"INPUT"===t&&("radio"===r||"checkbox"===r)?e.getAttribute("value")||"":e.value}function oL(e,t){let r;try{r=new URL(e,t??window.location.href)}catch(e){return null}let n=r.pathname.match(/\.([0-9a-z]+)(?:$)/i);return n?.[1]??null}let oB={};function oU(e){let t=oB[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let a=t.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(t)}catch(e){}return oB[e]=n.bind(window)}function oF(...e){return oU("setTimeout")(...e)}
473function oW(...e){return oU("clearTimeout")(...e)}function o$(e){try{return e.contentDocument}catch(e){}}let oj=1,oH=RegExp("[^a-z0-9-_:]");function oG(){return oj++}let oz=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,oq=/^(?:[a-z+]+:)?\/\//i,oY=/^www\..*/i,oJ=/^(data:)([^,]*),(.*)/i;function oV(e,t){return(e||"").replace(oz,(e,r,n,a,o,i)=>{let s=n||o||i,l=r||a||"";if(!s)return e;if(oq.test(s)||oY.test(s)||oJ.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 oK=/^[^ \t\n\r\u000c]+/,oX=/^[, \t\n\r\u000c]+/,oQ=new WeakMap;function oZ(e,t){return t&&""!==t.trim()?o0(e,t):t}function o0(e,t){let r=oQ.get(e);if(r||(r=e.createElement("a"),oQ.set(e,r)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return r.setAttribute("href",t),r.href}function o1(e,t,r,n,a,o,i){if(!n)return n;if("src"===r||"href"===r&&("use"!==t||"#"!==n[0])||"xlink:href"===r&&"#"!==n[0])return oZ(e,n);if("background"===r&&("table"===t||"td"===t||"th"===t))return oZ(e,n);if("srcset"===r)return function(e,t){if(""===t.trim())return t;let r=0;function n(e){let n,a=e.exec(t.substring(r));return a?(n=a[0],r+=n.length,n):""}let a=[];for(;n(oX),!(r>=t.length);){let o=n(oK);if(","===o.slice(-1))o=oZ(e,o.substring(0,o.length-1)),a.push(o);else{let n="";o=oZ(e,o);let i=!1;for(;;){let e=t.charAt(r);if(""===e){a.push((o+n).trim());break}if(i)")"===e&&(i=!1);else if(","===e){r+=1,a.push((o+n).trim());break}else"("===e&&(i=!0);n+=e,r+=1}}}return a.join(", ")}(e,n);if("style"===r){let t=oV(n,o0(e));return i&&i.size>0&&(t=function(e,t){if(!e||0===t.size)return e;try{let r=e.split(";"),n=[];for(let e of r){if(!(e=e.trim()))continue;let r=e.indexOf(":");if(-1===r){n.push(e);continue}let a=e.slice(0,r).trim();t.has(a)||n.push(e)}return n.join("; ")+(n.length>0&&e.endsWith(";")?";":"")}catch(t){return console.warn("Error filtering CSS properties:",t),e}}(t,i)),t}else if("object"===t&&"data"===r)return oZ(e,n);return"function"==typeof o?o(r,n,a):n}function o2(e,t,r){return("video"===e||"audio"===e)&&"autoplay"===t}function o3(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:o3(e.parentNode,t,r,n+1)}function o5(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch{return!1}}}function o6(e,t,r,n,a,o){try{let i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(null===i)return!1;if("INPUT"===i.tagName){let e=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(e))return!0}let s=-1,l=-1;if(o){if((l=o3(i,o5(n,a)))<0)return!0;s=o3(i,o5(t,r),l>=0?l:1/0)}else{if((s=o3(i,o5(t,r)))<0)return!1;l=o3(i,o5(n,a),s>=0?s:1/0)}return s>=0?!(l>=0)||s<=l:!(l>=0)&&!!o}catch(e){}return!!o}function o4(e){return null==e?"":e.toLowerCase()}function o7(e,n){let a,{doc:o,mirror:i,blockClass:s,blockSelector:l,unblockSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,skipChild:g=!1,inlineStylesheet:m=!0,maskInputOptions:_={},maskAttributeFn:y,maskTextFn:b,maskInputFn:S,slimDOMOptions:v,dataURLOptions:E={},inlineImages:T=!1,recordCanvas:w=!1,onSerialize:I,onIframeLoad:k,iframeLoadTimeout:R=5e3,onBlockedImageLoad:C,onStylesheetLoad:A,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:N=()=>!1,newlyAddedElement:M=!1,ignoreCSSAttributes:O}=n,{preserveWhiteSpace:P=!0}=n,D=function(e,n){let{doc:a,mirror:o,blockClass:i,blockSelector:s,unblockSelector:l,maskAllText:u,maskAttributeFn:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,inlineStylesheet:g,maskInputOptions:m={},maskTextFn:_,maskInputFn:y,dataURLOptions:b={},inlineImages:S,recordCanvas:v,keepIframeSrcFn:E,newlyAddedElement:T=!1,ignoreCSSAttributes:w}=n,I=function(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return 1===r?void 0:r}(a,o);switch(e.nodeType){case e.DOCUMENT_NODE:if("CSS1Compat"!==e.compatMode)return{type:oT.Document,childNodes:[],compatMode:e.compatMode};return{type:oT.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:oT.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:I};case e.ELEMENT_NODE:return function(e,n){let a,{doc:o,blockClass:i,blockSelector:s,unblockSelector:l,inlineStylesheet:u,maskInputOptions:c={},maskAttributeFn:d,maskInputFn:p,dataURLOptions:h={},inlineImages:f,recordCanvas:g,keepIframeSrcFn:m,newlyAddedElement:_=!1,rootId:y,maskTextClass:b,unmaskTextClass:S,maskTextSelector:v,unmaskTextSelector:E,ignoreCSSAttributes:T}=n,w=function(e,t,r,n){try{if(n&&e.matches(n))return!1;if("string"==typeof t){if(e.classList.contains(t))return!0}else for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}if(r)return e.matches(r)}catch(e){}return!1}(e,i,s,l),I=function(e){if(e instanceof HTMLFormElement)return"form";let t=oN(e.tagName);return oH.test(t)?"div":t}(e),k={},R=e.attributes.length;for(let t=0;t<R;t++){let r=e.attributes[t];r.name&&!o2(I,r.name,r.value)&&(k[r.name]=o1(o,I,oN(r.name),r.value,e,d,T))}if("link"===I&&u){let t=Array.from(o.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=ok(t)),r&&(k.rel=null,k.href=null,k.crossorigin=null,k._cssText=oV(r,t.href))}if("style"===I&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){let t=
473ok(e.sheet);t&&(k._cssText=oV(t,o0(o)))}if("input"===I||"textarea"===I||"select"===I||"option"===I){let t=oP(e),r=oD(e,oM(I),t),n=e.checked;if("submit"!==t&&"button"!==t&&r){let n=o6(e,b,v,S,E,oA({type:t,tagName:oM(I),maskInputOptions:c}));k.value=ox({isMasked:n,element:e,value:r,maskInputFn:p})}n&&(k.checked=n)}if("option"===I&&(e.selected&&!c.select?k.selected=!0:delete k.selected),"canvas"===I&&g){if("2d"===e.__context)!function(e){let t=e.getContext("2d");if(!t)return!0;for(let r=0;r<e.width;r+=50)for(let n=0;n<e.height;n+=50){let a=t.getImageData;if(new Uint32Array((oO in a?a[oO]:a).call(t,r,n,Math.min(50,e.width-r),Math.min(50,e.height-n)).data.buffer).some(e=>0!==e))return!1}return!0}(e)&&(k.rr_dataURL=e.toDataURL(h.type,h.quality));else if(!("__context"in e)){let t=e.toDataURL(h.type,h.quality),r=o.createElement("canvas");r.width=e.width,r.height=e.height,t!==r.toDataURL(h.type,h.quality)&&(k.rr_dataURL=t)}}if("img"===I&&f){t||(r=(t=o.createElement("canvas")).getContext("2d"));let n=e.currentSrc||e.getAttribute("src")||"<unknown-src>",a=e.crossOrigin,i=()=>{e.removeEventListener("load",i);try{t.width=e.naturalWidth,t.height=e.naturalHeight,r.drawImage(e,0,0),k.rr_dataURL=t.toDataURL(h.type,h.quality)}catch(t){if("anonymous"!==e.crossOrigin){e.crossOrigin="anonymous",e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i);return}console.warn(`Cannot inline img src=${n}! Error: ${t}`)}"anonymous"===e.crossOrigin&&(a?k.crossOrigin=a:e.removeAttribute("crossorigin"))};e.complete&&0!==e.naturalWidth?i():e.addEventListener("load",i)}if(("audio"===I||"video"===I)&&(k.rr_mediaState=e.paused?"paused":"played",k.rr_mediaCurrentTime=e.currentTime),!_&&(e.scrollLeft&&(k.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(k.rr_scrollTop=e.scrollTop)),w){let{width:t,height:r}=e.getBoundingClientRect();k={class:k.class,rr_width:`${t}px`,rr_height:`${r}px`}}"iframe"!==I||m(k.src)||(w||o$(e)||(k.rr_src=k.src),delete k.src);try{customElements.get(I)&&(a=!0)}catch(e){}return{type:oT.Element,tagName:I,attributes:k,childNodes:[],isSVG:!!("svg"===e.tagName||e.ownerSVGElement)||void 0,needBlock:w,rootId:y,isCustom:a}}(e,{doc:a,blockClass:i,blockSelector:s,unblockSelector:l,inlineStylesheet:g,maskAttributeFn:c,maskInputOptions:m,maskInputFn:y,dataURLOptions:b,inlineImages:S,recordCanvas:v,keepIframeSrcFn:E,newlyAddedElement:T,rootId:I,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,ignoreCSSAttributes:w});case e.TEXT_NODE:return function(e,t){let{maskAllText:r,maskTextClass:n,unmaskTextClass:a,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:s,maskInputOptions:l,maskInputFn:u,rootId:c}=t,d=e.parentNode&&e.parentNode.tagName,p=e.textContent,h="STYLE"===d||void 0,f="SCRIPT"===d||void 0,g="TEXTAREA"===d||void 0;if(h&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=ok(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}p=oV(p,o0(t.doc))}f&&(p="SCRIPT_PLACEHOLDER");let m=o6(e,n,o,a,i,r);return h||f||g||!p||!m||(p=s?s(p,e.parentElement):p.replace(/[\S]/g,"*")),g&&p&&(l.textarea||m)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),"OPTION"===d&&p&&(p=ox({isMasked:o6(e,n,o,a,i,oA({type:null,tagName:d,maskInputOptions:l})),element:e,value:p,maskInputFn:u})),{type:oT.Text,textContent:p||"",isStyle:h,rootId:c}}(e,{doc:a,maskAllText:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,maskTextFn:_,maskInputOptions:m,maskInputFn:y,rootId:I});case e.CDATA_SECTION_NODE:return{type:oT.CDATA,textContent:"",rootId:I};case e.COMMENT_NODE:return{type:oT.Comment,textContent:e.textContent||"",rootId:I};default:return!1}}(e,{doc:o,mirror:i,blockClass:s,blockSelector:l,maskAllText:c,unblockSelector:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,inlineStylesheet:m,maskInputOptions:_,maskAttributeFn:y,maskTextFn:b,maskInputFn:S,dataURLOptions:E,inlineImages:T,recordCanvas:w,keepIframeSrcFn:N,newlyAddedElement:M,ignoreCSSAttributes:O});if(!D)return console.warn(e,"not serialized"),null;a=i.hasNode(e)?i.getId(e):!function(e,t){if(t.comment&&e.type===oT.Comment)return!0;
473if(e.type===oT.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===oL(e.attributes.href)))return!0;else if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(o4(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===o4(e.attributes.name)||"icon"===o4(e.attributes.rel)||"apple-touch-icon"===o4(e.attributes.rel)||"shortcut icon"===o4(e.attributes.rel))))return!0;else if("meta"===e.tagName){if(t.headMetaDescKeywords&&o4(e.attributes.name).match(/^description|keywords$/))return!0;else if(t.headMetaSocial&&(o4(e.attributes.property).match(/^(og|twitter|fb):/)||o4(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===o4(e.attributes.name)))return!0;else if(t.headMetaRobots&&("robots"===o4(e.attributes.name)||"googlebot"===o4(e.attributes.name)||"bingbot"===o4(e.attributes.name)))return!0;else if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;else if(t.headMetaAuthorship&&("author"===o4(e.attributes.name)||"generator"===o4(e.attributes.name)||"framework"===o4(e.attributes.name)||"publisher"===o4(e.attributes.name)||"progid"===o4(e.attributes.name)||o4(e.attributes.property).match(/^article:/)||o4(e.attributes.property).match(/^product:/)))return!0;else if(t.headMetaVerification&&("google-site-verification"===o4(e.attributes.name)||"yandex-verification"===o4(e.attributes.name)||"csrf-token"===o4(e.attributes.name)||"p:domain_verify"===o4(e.attributes.name)||"verify-v1"===o4(e.attributes.name)||"verification"===o4(e.attributes.name)||"shopify-checkout-api-token"===o4(e.attributes.name)))return!0}}return!1}(D,v)&&(P||D.type!==oT.Text||D.isStyle||D.textContent.replace(/^\s+|\s+$/gm,"").length)?oG():-2;let L=Object.assign(D,{id:a});if(i.add(e,L),-2===a)return null;I&&I(e);let B=!g;if(L.type===oT.Element){B=B&&!L.needBlock;let t=e.shadowRoot;t&&oI(t)&&(L.isShadowHost=!0)}if((L.type===oT.Document||L.type===oT.Element)&&B){v.headWhitespace&&L.type===oT.Element&&"head"===L.tagName&&(P=!1);let t={doc:o,mirror:i,blockClass:s,blockSelector:l,maskAllText:c,unblockSelector:u,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,skipChild:g,inlineStylesheet:m,maskInputOptions:_,maskAttributeFn:y,maskTextFn:b,maskInputFn:S,slimDOMOptions:v,dataURLOptions:E,inlineImages:T,recordCanvas:w,preserveWhiteSpace:P,onSerialize:I,onIframeLoad:k,iframeLoadTimeout:R,onBlockedImageLoad:C,onStylesheetLoad:A,stylesheetLoadTimeout:x,keepIframeSrcFn:N,ignoreCSSAttributes:O};for(let r of e.childNodes?Array.from(e.childNodes):[]){let e=o7(r,t);e&&L.childNodes.push(e)}if(e.nodeType===e.ELEMENT_NODE&&e.shadowRoot)for(let r of Array.from(e.shadowRoot.childNodes)){let n=o7(r,t);n&&(oI(e.shadowRoot)&&(n.isShadow=!0),L.childNodes.push(n))}}if(e.parentNode&&ow(e.parentNode)&&oI(e.parentNode)&&(L.isShadow=!0),L.type!==oT.Element||"iframe"!==L.tagName||L.needBlock||function(e,t,r){let n,a=e.contentWindow;if(!a)return;let o=!1;try{n=a.document.readyState}catch(e){return}if("complete"!==n){let n=oF(()=>{o||(t(),o=!0)},r);e.addEventListener("load",()=>{oW(n),o=!0,t()});return}let i="about:blank";if(a.location.href!==i||e.src===i||""===e.src)return oF(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}(e,()=>{let t=o$(e);if(t&&k){let r=o7(t,{doc:t,mirror:i,blockClass:s,blockSelector:l,unblockSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:m,maskInputOptions:_,maskAttributeFn:y,maskTextFn:b,maskInputFn:S,slimDOMOptions:v,dataURLOptions:E,inlineImages:T,recordCanvas:w,preserveWhiteSpace:P,onSerialize:I,onIframeLoad:k,iframeLoadTimeout:R,onStylesheetLoad:A,stylesheetLoadTimeout:x,keepIframeSrcFn:N,ignoreCSSAttributes:O});r&&k(e,r)}},R),L.type===oT.Element&&"img"===L.tagName&&!e.complete&&L.needBlock){let t=()=>{if(e.isConnected&&!e.complete&&C)try{let t=e.getBoundingClientRect();t.width>0&&t.height>0&&C(e,L,t)}catch(e){}e.removeEventListener("load",t)};e.isConnected&&e.addEventListener("load",t)}return L.type===oT.Element&&"link"===L.tagName&&"string"==typeof L.attributes.rel&&("stylesheet"===L.attributes.rel||"preload"===L.attributes.rel&&"string"==typeof L.attributes.href&&"css"===oL(L.attributes.href))&&function(e,t,r){let n,a=!1;try{n=e.sheet}catch(e){return}if(n)return;let o=oF(()=>{a||(t(),a=!0)},r);e.addEventListener("load",()=>{oW(o),a=!0,t()})}(e,()=>{if(A){let t=o7(e,{doc:o,mirror:i,blockClass:s,blockSelector:l,unblockSelector:u,maskAllText:c,maskTextClass:d,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:f,skipChild:!1,inlineStylesheet:m,maskInputOptions:_,maskAttributeFn:y,maskTextFn:b,maskInputFn:S,slimDOMOptions:v,dataURLOptions:E,inlineImages:T,recordCanvas:w,preserveWhiteSpace:P,onSerialize:I,onIframeLoad:k,iframeLoadTimeout:R,onStylesheetLoad:A,stylesheetLoadTimeout:x,keepIframeSrcFn:N,ignoreCSSAttributes:O});t&&A(e,t)}},x),L.type===oT.Element&&delete L.needBlock,L}function o8(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}let o9="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.",ie={map:{},getId:()=>(console.error(o9),-1),getNode:()=>(console.error(o9),null),removeNodeFromMap(){console.error(o9)},has:()=>(console.error(o9),!1),reset(){console.error(o9)}};function it(e,t,r={}){let n=null,a=0;return function(...o){let i=Date.now();a||!1!==r.leading||(a=i);let s=t-(i-a),l=this;s<=0||s>t?(n&&(function(...e){iS("clearTimeout")(...e)}
473(n),n=null),a=i,e.apply(l,o)):n||!1===r.trailing||(n=iv(()=>{a=!1===r.leading?0:Date.now(),n=null,e.apply(l,o)},s))}}function ir(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],a=r(n);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=a,()=>{e[t]=n}}catch{return()=>{}}}"u">typeof window&&window.Proxy&&window.Reflect&&(ie=new Proxy(ie,{get:(e,t,r)=>("map"===t&&console.error(o9),Reflect.get(e,t,r))}));let ia=Date.now;function io(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 ii(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function is(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function il(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}function iu(e,t,r,n,a){if(!e)return!1;let o=il(e);if(!o)return!1;let i=o5(t,r);if(!a){let e=n&&o.matches(n);return i(o)&&!e}let s=o3(o,i),l=-1;return!(s<0)&&(n&&(l=o3(o,o5(null,n))),s>-1&&l<0||s<l)}function ic(e,t){return -2===t.getId(e)}function id(e){return!!e.changedTouches}function ip(e,t){return!!("IFRAME"===e.nodeName&&t.getMeta(e))}function ih(e,t){return!!("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function ig(e){return!!e?.shadowRoot}/[1-9][0-9]{12}/.test(Date.now().toString())||(ia=()=>new Date().getTime());class im{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){let r;return this.has(e)?this.getId(e):(r=void 0===t?this.id++:t,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r)}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function i_(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function iy(e){let t=e.ownerDocument;return!!t&&(t.contains(e)||function(e){let t=e.ownerDocument;if(!t)return!1;let r=function(e){let t,r=e;for(;t=i_(r);)r=t;return r}(e);return t.contains(r)}(e))}let ib={};function iS(e){let t=ib[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let a=t.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(t)}catch(e){}return ib[e]=n.bind(window)}function iv(...e){return iS("setTimeout")(...e)}var iE=((S=iE||{})[S.DomContentLoaded=0]="DomContentLoaded",S[S.Load=1]="Load",S[S.FullSnapshot=2]="FullSnapshot",S[S.IncrementalSnapshot=3]="IncrementalSnapshot",S[S.Meta=4]="Meta",S[S.Custom=5]="Custom",S[S.Plugin=6]="Plugin",S),iT=((v=iT||{})[v.Mutation=0]="Mutation",v[v.MouseMove=1]="MouseMove",v[v.MouseInteraction=2]="MouseInteraction",v[v.Scroll=3]="Scroll",v[v.ViewportResize=4]="ViewportResize",v[v.Input=5]="Input",v[v.TouchMove=6]="TouchMove",v[v.MediaInteraction=7]="MediaInteraction",v[v.StyleSheetRule=8]="StyleSheetRule",v[v.CanvasMutation=9]="CanvasMutation",v[v.Font=10]="Font",v[v.Log=11]="Log",v[v.Drag=12]="Drag",v[v.StyleDeclaration=13]="StyleDeclaration",v[v.Selection=14]="Selection",v[v.AdoptedStyleSheet=15]="AdoptedStyleSheet",v[v.CustomElement=16]="CustomElement",v),iw=((E=iw||{})[E.MouseUp=0]="MouseUp",E[E.MouseDown=1]="MouseDown",E[E.Click=2]="Click",E[E.ContextMenu=3]="ContextMenu",E[E.DblClick=4]="DblClick",E[E.Focus=5]="Focus",E[E.Blur=6]="Blur",E[E.TouchStart=7]="TouchStart",E[E.TouchMove_Departed=8]="TouchMove_Departed",E[E.TouchEnd=9]="TouchEnd",E[E.TouchCancel=10]="TouchCancel",E),iI=((T=iI||{})[T.Mouse=0]="Mouse",T[T.Pen=1]="Pen",T[T.Touch=2]="Touch",T),ik=((w=ik||{})[w.Play=0]="Play",w[w.Pause=1]="Pause",w[w.Seeked=2]="Seeked",w[w.VolumeChange=3]="VolumeChange",w[w.RateChange=4]="RateChange",w);function iR(e){try{return e.contentDocument}catch(e){}}class iC{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error("Position outside of list range");let t=this.head;for(let r=0;r<e;r++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&"__ln"in e.previousSibling){let r=e.previousSibling.__ln.next;t.next=r,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(e.nextSibling&&"__ln"in e.nextSibling&&e.nextSibling.__ln.previous){let r=e.nextSibling.__ln.previous;t.previous=r,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;
473this.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 iA=(e,t)=>`${e}@${t}`;class ix{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,r=new iC,n=e=>{let t=e,r=-2;for(;-2===r;)r=(t=t&&t.nextSibling)&&this.mirror.getId(t);return r},a=a=>{if(!a.parentNode||!iy(a))return;let o=ow(a.parentNode)?this.mirror.getId(i_(a)):this.mirror.getId(a.parentNode),i=n(a);if(-1===o||-1===i)return r.addNode(a);let s=o7(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=>{ip(e,this.mirror)&&!iu(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),ih(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),ig(a)&&this.shadowDomManager.addShadowRoot(a.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{iu(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});s&&(e.push({parentId:o,nextId:i,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)(!iM(this.removes,e,this.mirror)||this.movedSet.has(e.parentNode))&&a(e);for(let e of this.addedSet)iO(this.droppedSet,e)||iM(this.removes,e,this.mirror)?iO(this.movedSet,e)?a(e):this.droppedSet.add(e):a(e);let o=null;for(;r.length;){let e=null;if(o){let t=this.mirror.getId(o.value.parentNode),r=n(o.value);-1!==t&&-1!==r&&(e=o)}if(!e){let t=r.tail;for(;t;){let r=t;if(t=t.previous,r){let t=this.mirror.getId(r.value.parentNode);if(-1===n(r.value))continue;if(-1!==t){e=r;break}{let t=r.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let n=t.parentNode.host;if(-1!==this.mirror.getId(n)){e=r;break}}}}}}if(!e){for(;r.head;)r.removeNode(r.head.value);break}o=e.previous,r.removeNode(e.value),a(e.value)}let i={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if("string"==typeof t.style){let r=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles);r.length<t.style.length&&(r+n).split("var(").length===t.style.split("var(").length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(i.texts.length||i.attributes.length||i.removes.length||i.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(i))},this.processMutation=e=>{if(!ic(e.target,this.mirror))switch(e.type){case"characterData":{let t=e.target.textContent;iu(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||t===e.oldValue||this.texts.push({value:o6(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,il(e.target)):t.replace(/[\S]/g,"*"):t,node:e.target});break}case"attributes":{let t=e.target,r=e.attributeName,n=e.target.getAttribute(r);if("value"===r){let r=oP(t),a=t.tagName;n=oD(t,a,r);let o=oA({maskInputOptions:this.maskInputOptions,tagName:a,type:r});n=ox({isMasked:o6(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,o),element:t,value:n,maskInputFn:this.maskInputFn})}if(iu(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||n===e.oldValue)return;let a=this.attributeMap.get(e.target);
473if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(n)){if(iR(t))return;r="rr_src"}if(a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(e.target,a)),"type"===r&&"INPUT"===t.tagName&&"password"===(e.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!o2(t.tagName,r)&&(a.attributes[r]=o1(this.doc,oN(t.tagName),oN(r),n,t,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(e){this.unattachedDoc=this.doc}let r=this.unattachedDoc.createElement("span");for(let n of(e.oldValue&&r.setAttribute("style",e.oldValue),Array.from(t.style))){let e=t.style.getPropertyValue(n),o=t.style.getPropertyPriority(n);e!==r.style.getPropertyValue(n)||o!==r.style.getPropertyPriority(n)?""===o?a.styleDiff[n]=e:a.styleDiff[n]=[e,o]:a._unchangedStyles[n]=[e,o]}for(let e of Array.from(r.style))""===t.style.getPropertyValue(e)&&(a.styleDiff[e]=!1)}break}case"childList":if(iu(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let r=this.mirror.getId(t),n=ow(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);iu(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||ic(t,this.mirror)||-1===this.mirror.getId(t)||(this.addedSet.has(t)?(iN(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&-1===r||function e(t,r){if(ow(t))return!1;let n=r.getId(t);return!r.has(n)||(!t.parentNode||t.parentNode.nodeType!==t.DOCUMENT_NODE)&&(!t.parentNode||e(t.parentNode,r))}(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[iA(r,n)]?iN(this.movedSet,t):this.removes.push({parentId:n,id:r,isShadow:!!(ow(e.target)&&oI(e.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(ic(e,this.mirror))return;this.movedSet.add(e);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[iA(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);!iu(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),ig(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]})}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 iN(e,t){e.delete(t),t.childNodes?.forEach(t=>iN(e,t))}function iM(e,t,r){return 0!==e.length&&function(e,t,r){let n=t.parentNode;for(;n;){let t=r.getId(n);if(e.some(e=>e.id===t))return!0;n=n.parentNode}return!1}(e,t,r)}function iO(e,t){return 0!==e.size&&function e(t,r){let{parentNode:n}=r;return!!n&&(!!t.has(n)||e(t,n))}(e,t)}let iP=e=>n?(...t)=>{try{return e(...t)}catch(e){if(n&&!0===n(e))return()=>{};throw e}}:e,iD=[];function iL(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 iB(e,t){let r=new ix;iD.push(r),r.init(e);let n=window.MutationObserver||window.__rrMutationObserver,a=window?.Zone?.__symbol__?.("MutationObserver");a&&window[a]&&(n=window[a]);let o=new n(iP(t=>{e.onMutation&&!1===e.onMutation(t)||r.processMutations.bind(r)(t)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function iU({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,unblockSelector:o,sampling:i}){return o8("scroll",iP(it(iP(i=>{let s=iL(i);if(!s||iu(s,n,a,o,!0))return;let l=r.getId(s);if(s===t&&t.defaultView){let r=io(t.defaultView);e({id:l,x:r.left,y:r.top})}else e({id:l,x:s.scrollLeft,y:s.scrollTop})}),i.scroll||100)),t)}let iF=["INPUT","TEXTAREA","SELECT"],iW=new WeakMap;function i$(e){var t=[];if(iz("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||iz("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||iz("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||iz("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule){let r=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(r)}else if(e.parentStyleSheet){let r=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(r)}return t}function ij(e,t,r){let n,a;return e?(e.ownerNode?n=t.getId(e.ownerNode):a=r.getId(e),{styleId:a,id:n}):{}}function iH({mirror:e,stylesheetManager:t},r){let n=null;n="#document"===r.nodeName?e.getId(r):e.getId(r.host);let a="#document"===r.nodeName?r.defaultView?.Document:r.ownerDocument?.defaultView?.ShadowRoot,o=a?.prototype?Object.getOwnPropertyDescriptor(a?.prototype,"adoptedStyleSheets"):void 0;return null!==n&&-1!==n&&a&&o?(Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return o.get?.call(this)},set(e){let r=o.set?.call(this,e);if(null!==n&&-1!==n)try{t.adoptStyleSheets(e,n)}catch(e){}return r}}),iP(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function iG(e,t={}){let r,n=e.doc.defaultView;if(!n)return()=>{};e.recordDOM&&(r=iB(e,e.doc));let a=function({mousemoveCb:e,sampling:t,doc:r,mirror:n}){let a;if(!1===t.mousemove)return()=>{};let o="number"==typeof t.mousemove?t.mousemove:50,i="number"==typeof t.mousemoveCallback?t.mousemoveCallback:500,s=[],l=it(iP(t=>{let r=Date.now()-a;e(s.map(e=>(e.timeOffset-=r,e)),t),s=[],a=null}),i),u=iP(it(iP(e=>{let t=iL(e),{clientX:r,clientY:o}=id(e)?e.changedTouches[0]:e;a||(a=ia()),s.push({x:r,y:o,id:n.getId(t),timeOffset:ia()-a}),l("u">typeof DragEvent&&e instanceof DragEvent?iT.Drag:e instanceof MouseEvent?iT.MouseMove:iT.TouchMove)}),o,{trailing:!1})),c=[o8("mousemove",u,r),o8("touchmove",u,r),o8("drag",u,r)];return iP(()=>
473{c.forEach(e=>e())})}(e),o=function({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,unblockSelector:o,sampling:i}){if(!1===i.mouseInteraction)return()=>{};let s=!0===i.mouseInteraction||void 0===i.mouseInteraction?{}:i.mouseInteraction,l=[],u=null;return Object.keys(iw).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==s[e]).forEach(i=>{let s=oN(i),c=t=>{let s=iL(t);if(iu(s,n,a,o,!0))return;let l=null,c=i;if("pointerType"in t){switch(t.pointerType){case"mouse":l=iI.Mouse;break;case"touch":l=iI.Touch;break;case"pen":l=iI.Pen}l===iI.Touch?iw[i]===iw.MouseDown?c="TouchStart":iw[i]===iw.MouseUp&&(c="TouchEnd"):iI.Pen}else id(t)&&(l=iI.Touch);null!==l?(u=l,(c.startsWith("Touch")&&l===iI.Touch||c.startsWith("Mouse")&&l===iI.Mouse)&&(l=null)):iw[i]===iw.Click&&(l=u,u=null);let d=id(t)?t.changedTouches[0]:t;if(!d)return;let p=r.getId(s),{clientX:h,clientY:f}=d;iP(e)({type:iw[c],id:p,x:h,y:f,...null!==l&&{pointerType:l}})};if(window.PointerEvent)switch(iw[i]){case iw.MouseDown:case iw.MouseUp:s=s.replace("mouse","pointer");break;case iw.TouchStart:case iw.TouchEnd:return}l.push(o8(s,c,t))}),iP(()=>{l.forEach(e=>e())})}(e),i=iU(e),s=function({viewportResizeCb:e},{win:t}){let r=-1,n=-1;return o8("resize",iP(it(iP(()=>{let t=ii(),a=is();(r!==t||n!==a)&&(e({width:Number(a),height:Number(t)}),r=t,n=a)}),200)),t)}(e,{win:n}),l=function({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,unblockSelector:o,ignoreClass:i,ignoreSelector:s,maskInputOptions:l,maskInputFn:u,sampling:c,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:h,maskTextSelector:f,unmaskTextSelector:g}){function m(e){let r=iL(e),c=e.isTrusted,m=r&&oM(r.tagName);if("OPTION"===m&&(r=r.parentElement),!r||!m||0>iF.indexOf(m)||iu(r,n,a,o,!0))return;let y=r;if(y.classList.contains(i)||s&&y.matches(s))return;let b=oP(r),S=oD(y,m,b),v=!1,E=oA({maskInputOptions:l,tagName:m,type:b}),T=o6(r,p,f,h,g,E);("radio"===b||"checkbox"===b)&&(v=r.checked),S=ox({isMasked:T,element:r,value:S,maskInputFn:u}),_(r,d?{text:S,isChecked:v,userTriggered:c}:{text:S,isChecked:v});let w=r.name;"radio"===b&&w&&v&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach(e=>{if(e!==r){let t=ox({isMasked:T,element:e,value:oD(e,m,b),maskInputFn:u});_(e,d?{text:t,isChecked:!v,userTriggered:!1}:{text:t,isChecked:!v})}})}function _(t,n){let a=iW.get(t);if(!a||a.text!==n.text||a.isChecked!==n.isChecked){iW.set(t,n);let a=r.getId(t);iP(e)({...n,id:a})}}let y=("last"===c.input?["change"]:["input","change"]).map(e=>o8(e,iP(m),t)),b=t.defaultView;if(!b)return()=>{y.forEach(e=>e())};let S=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),v=[[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 S&&S.set&&y.push(...v.map(e=>(function e(t,r,n,a,o=window){let i=o.Object.getOwnPropertyDescriptor(t,r);return o.Object.defineProperty(t,r,a?n:{set(e){iv(()=>{n.set.call(this,e)},0),i&&i.set&&i.set.call(this,e)}}),()=>e(t,r,i||{},!0)})(e[0],e[1],{set(){iP(m)({target:this,isTrusted:!1})}},!1,b))),iP(()=>{y.forEach(e=>e())})}(e),u=function({mediaInteractionCb:e,blockClass:t,blockSelector:r,unblockSelector:n,mirror:a,sampling:o,doc:i}){let s=iP(i=>it(iP(o=>{let s=iL(o);if(!s||iu(s,t,r,n,!0))return;let{currentTime:l,volume:u,muted:c,playbackRate:d}=s;e({type:i,id:a.getId(s),currentTime:l,volume:u,muted:c,playbackRate:d})}),o.media||500)),l=[o8("play",s(ik.Play),i),o8("pause",s(ik.Pause),i),o8("seeked",s(ik.Seeked),i),o8("volumechange",s(ik.VolumeChange),i),o8("ratechange",s(ik.RateChange),i)];return iP(()=>{l.forEach(e=>e())})}(e),c=()=>{},d=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(c=function({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){let a,o;if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let i=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:iP((n,a,o)=>{let[i,s]=o,{id:l,styleId:u}=ij(a,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:i,index:s}]}),n.apply(a,o)})});let s=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:iP((n,a,o)=>{let[i]=o,{id:s,styleId:l}=ij(a,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:i}]}),n.apply(a,o)})}),n.CSSStyleSheet.prototype.replace&&(a=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(a,{apply:iP((n,a,o)=>{let[i]=o,{id:s,styleId:l}=ij(a,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replace:i}),n.apply(a,o)})})),n.CSSStyleSheet.prototype.replaceSync&&(o=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(o,{apply:iP((n,a,o)=>{let[i]=o,{id:s,styleId:l}=ij(a,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,replaceSync:i}),n.apply(a,o)})}));let l={};iq("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(iq("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),iq("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),iq("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let u={};return Object.entries(l).forEach(([n,a])=>{u[n]={insertRule:a.prototype.insertRule,deleteRule:a.prototype.deleteRule},a.prototype.insertRule=new Proxy(u[n].insertRule,{apply:iP((n,a,o)=>{let[i,s]=o,{id:l,styleId:u}=ij(a.parentStyleSheet,t,r.styleMirror);return(l&&-1!==l||u&&-1!==u)&&e({id:l,styleId:u,adds:[{rule:i,index:[...i$(a),s||0]}]}),n.apply(a,o)})}),a.prototype.deleteRule=new Proxy(u[n].deleteRule,{apply:iP((n,a,o)=>{let[i]=o,{id:s,styleId:l}=ij(a.parentStyleSheet,t,r.styleMirror);return(s&&-1!==s||l&&-1!==l)&&e({id:s,styleId:l,removes:[{index:[...i$(a),i]}]}),n.apply(a,o)})})}),iP(()=>{n.CSSStyleSheet.prototype.insertRule=i,n.CSSStyleSheet.prototype.deleteRule=s,a&&(n.CSSStyleSheet.prototype.replace=a),o&&(n.CSSStyleSheet.prototype.replaceSync=o),Object.entries(l).forEach(([e,t])=>{t.prototype.insertRule=u[e].insertRule,t.prototype.deleteRule=u[e].deleteRule})})}(e,{win:n}),d=iH(e,e.doc),p=function({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:a}){let o=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:iP((a,i,s)=>{let[l,u,c]=s;
473if(r.has(l))return o.apply(i,[l,u,c]);let{id:d,styleId:p}=ij(i.parentRule?.parentStyleSheet,t,n.styleMirror);return(d&&-1!==d||p&&-1!==p)&&e({id:d,styleId:p,set:{property:l,value:u,priority:c},index:i$(i.parentRule)}),a.apply(i,s)})});let i=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:iP((a,o,s)=>{let[l]=s;if(r.has(l))return i.apply(o,[l]);let{id:u,styleId:c}=ij(o.parentRule?.parentStyleSheet,t,n.styleMirror);return(u&&-1!==u||c&&-1!==c)&&e({id:u,styleId:c,remove:{property:l},index:i$(o.parentRule)}),a.apply(o,s)})}),iP(()=>{a.CSSStyleDeclaration.prototype.setProperty=o,a.CSSStyleDeclaration.prototype.removeProperty=i})}(e,{win:n}),e.collectFonts&&(h=function({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],a=new WeakMap,o=r.FontFace;r.FontFace=function(e,t,r){let n=new o(e,t,r);return a.set(n,{family:e,buffer:"string"!=typeof t,descriptors:r,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),n};let i=ir(t.fonts,"add",function(t){return function(r){return iv(iP(()=>{let t=a.get(r);t&&(e(t),a.delete(r))}),0),t.apply(this,[r])}});return n.push(()=>{r.FontFace=o}),n.push(i),iP(()=>{n.forEach(e=>e())})}(e)));let f=function(e){let{doc:t,mirror:r,blockClass:n,blockSelector:a,unblockSelector:o,selectionCb:i}=e,s=!0,l=iP(()=>{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:i,startOffset:s,endContainer:u,endOffset:c}=e.getRangeAt(t);iu(i,n,a,o,!0)||iu(u,n,a,o,!0)||l.push({start:r.getId(i),startOffset:s,end:r.getId(u),endOffset:c})}i({ranges:l})});return l(),o8("selectionchange",l)}(e),g=function({doc:e,customElementCb:t}){let r=e.defaultView;return r&&r.customElements?ir(r.customElements,"define",function(e){return function(r,n,a){try{t({define:{name:r}})}catch(e){}return e.apply(this,[r,n,a])}}):()=>{}}(e),m=[];for(let t of e.plugins)m.push(t.observer(t.callback,n,t.options));return iP(()=>{iD.forEach(e=>e.reset()),r?.disconnect(),a(),o(),i(),s(),l(),u(),c(),d(),p(),h(),f(),g(),m.forEach(e=>e())})}function iz(e){return void 0!==window[e]}function iq(e){return!!(void 0!==window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class iY{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,r,n){let a=r||this.getIdToRemoteIdMap(e),o=n||this.getRemoteIdToIdMap(e),i=a.get(t);return i||(i=this.generateIdFn(),a.set(t,i),o.set(i,t)),i}getIds(e,t){let r=this.getIdToRemoteIdMap(e),n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,r,n))}getRemoteId(e,t,r){let n=r||this.getRemoteIdToIdMap(e);if("number"!=typeof t)return t;let a=n.get(t);return a||-1}getRemoteIds(e,t){let r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class iJ{constructor(){this.crossOriginIframeMirror=new iY(oG),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class iV{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new iY(oG),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new iY(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(e);let r=iR(e);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(e){if("rrweb"!==e.data.type||e.origin!==e.data.origin||!e.source)return;let t=this.crossOriginIframeMap.get(e.source);if(!t)return;let r=this.transformCrossOriginEvent(t,e.data.event);r&&this.wrappedEmit(r,e.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case iE.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:iE.IncrementalSnapshot,data:{source:iT.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case iE.Meta:case iE.Load:case iE.DomContentLoaded:break;case iE.Plugin:return t;case iE.Custom:return this.replaceIds(t.data.payload,e,["id","parentId","previousId","nextId"]),t;case iE.IncrementalSnapshot:switch(t.data.source){case iT.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(t.node,e);let r=this.crossOriginIframeRootIdMap.get(e);r&&this.patchRootIdOnNode(t.node,r)}
473),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 iT.Drag:case iT.TouchMove:case iT.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,["id"])}),t;case iT.ViewportResize:return!1;case iT.MediaInteraction:case iT.MouseInteraction:case iT.Scroll:case iT.CanvasMutation:case iT.Input:return this.replaceIds(t.data,e,["id"]),t;case iT.StyleSheetRule:case iT.StyleDeclaration:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleId"]),t;case iT.Font:return t;case iT.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,["start","end"])}),t;case iT.AdoptedStyleSheet:return this.replaceIds(t.data,e,["id"]),this.replaceStyleIds(t.data,e,["styleIds"]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,["styleId"])}),t}}return!1}replace(e,t,r,n){for(let a of n)(Array.isArray(t[a])||"number"==typeof t[a])&&(Array.isArray(t[a])?t[a]=e.getIds(r,t[a]):t[a]=e.getId(r,t[a]));return t}replaceIds(e,t,r){return this.replace(this.crossOriginIframeMirror,e,t,r)}replaceStyleIds(e,t,r){return this.replace(this.crossOriginIframeStyleMirror,e,t,r)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===oT.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class iK{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class iX{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!oI(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let r=iB({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(iU({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),iv(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(iH({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=iR(e),r=function(e){try{return e.contentWindow}catch(e){}}(e);t&&r&&this.patchAttachShadow(r.Element,t)}patchAttachShadow(e,t){let r=this;this.restoreHandlers.push(ir(e.prototype,"attachShadow",function(e){return function(n){let a=e.call(this,n);return this.shadowRoot&&iy(this)&&r.addShadowRoot(this.shadowRoot,t),a}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}for(var iQ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",iZ="u"<typeof Uint8Array?[]:new Uint8Array(256),i0=0;i0<iQ.length;i0++)iZ[iQ.charCodeAt(i0)]=i0;class i1{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class i2{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new im,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0===e.length)return;let r={id:t,styleIds:[]},n=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),n.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:oR(e),index:t}))})),r.styleIds.push(e)}n.length>0&&(r.styles=n),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class i3{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let r=this.nodeMap.get(e);return r&&Array.from(r).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,function(...e){iS("requestAnimationFrame")(...e)}
473(()=>{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 i5=new oC;function i6(e={}){let t,{emit:r,checkoutEveryNms:i,checkoutEveryNth:s,blockClass:l="rr-block",blockSelector:u=null,unblockSelector:c=null,ignoreClass:d="rr-ignore",ignoreSelector:p=null,maskAllText:h=!1,maskTextClass:f="rr-mask",unmaskTextClass:g=null,maskTextSelector:m=null,unmaskTextSelector:_=null,inlineStylesheet:y=!0,maskAllInputs:b,maskInputOptions:S,slimDOMOptions:v,maskAttributeFn:E,maskInputFn:T,maskTextFn:w,maxCanvasSize:I=null,packFn:k,sampling:R={},dataURLOptions:C={},mousemoveWait:A,recordDOM:x=!0,recordCanvas:N=!1,recordCrossOriginIframes:M=!1,recordAfter:O="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:P=!1,collectFonts:D=!1,inlineImages:L=!1,plugins:B,keepIframeSrcFn:U=()=>!1,ignoreCSSAttributes:F=new Set([]),errorHandler:W,onMutation:$,getCanvasManager:j}=e;n=W;let H=!M||window.parent===window,G=!1;if(!H)try{window.parent.document&&(G=!1)}catch(e){G=!0}if(H&&!r)throw Error("emit function is required");if(!H&&!G)return()=>{};void 0!==A&&void 0===R.mousemove&&(R.mousemove=A),i5.reset();let z=!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!==S?S:{},q=!0===v||"all"===v?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===v,headMetaDescKeywords:"all"===v}:v||{};!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,J=e=>{for(let t of B||[])t.eventProcessor&&(e=t.eventProcessor(e));return k&&!G&&(e=k(e)),e};a=(e,n)=>{if(e.timestamp=ia(),iD[0]?.isFrozen()&&e.type!==iE.FullSnapshot&&(e.type!==iE.IncrementalSnapshot||e.data.source!==iT.Mutation)&&iD.forEach(e=>e.unfreeze()),H)r?.(J(e),n);else if(G){let t={type:"rrweb",event:J(e),origin:window.location.origin,isCheckout:n};window.parent.postMessage(t,"*")}if(e.type===iE.FullSnapshot)t=e,Y=0;else if(e.type===iE.IncrementalSnapshot){if(e.data.source===iT.Mutation&&e.data.isAttachIframe)return;Y++;let r=s&&Y>=s,n=i&&t&&e.timestamp-t.timestamp>i;(r||n)&&en(!0)}};let V=e=>{a({type:iE.IncrementalSnapshot,data:{source:iT.Mutation,...e}})},K=e=>a({type:iE.IncrementalSnapshot,data:{source:iT.Scroll,...e}}),X=e=>a({type:iE.IncrementalSnapshot,data:{source:iT.CanvasMutation,...e}}),Q=new i2({mutationCb:V,adoptedStyleSheetCb:e=>a({type:iE.IncrementalSnapshot,data:{source:iT.AdoptedStyleSheet,...e}})}),Z="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new iJ:new iV({mirror:i5,mutationCb:V,stylesheetManager:Q,recordCrossOriginIframes:M,wrappedEmit:a});for(let e of B||[])e.getMirror&&e.getMirror({nodeMirror:i5,crossOriginIframeMirror:Z.crossOriginIframeMirror,crossOriginIframeStyleMirror:Z.crossOriginIframeStyleMirror});let ee=new i3,et=function(e,t){try{return e?e(t):new i1}catch{return console.warn("Unable to initialize CanvasManager"),new i1}}(j,{mirror:i5,win:window,mutationCb:e=>a({type:iE.IncrementalSnapshot,data:{source:iT.CanvasMutation,...e}}),recordCanvas:N,blockClass:l,blockSelector:u,unblockSelector:c,maxCanvasSize:I,sampling:R.canvas,dataURLOptions:C,errorHandler:W}),er="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new iK:new iX({mutationCb:V,scrollCb:K,bypassOptions:{onMutation:$,blockClass:l,blockSelector:u,unblockSelector:c,maskAllText:h,maskTextClass:f,unmaskTextClass:g,maskTextSelector:m,unmaskTextSelector:_,inlineStylesheet:y,maskInputOptions:z,dataURLOptions:C,maskAttributeFn:E,maskTextFn:w,maskInputFn:T,recordCanvas:N,inlineImages:L,sampling:R,slimDOMOptions:q,iframeManager:Z,stylesheetManager:Q,canvasManager:et,keepIframeSrcFn:U,processedNodeManager:ee,ignoreCSSAttributes:F},mirror:i5}),en=(e=!1)=>
473{if(!x)return;a({type:iE.Meta,data:{href:window.location.href,width:is(),height:ii()}},e),Q.reset(),er.init(),iD.forEach(e=>e.lock());let t=function(e,t){let{mirror:r=new oC,blockClass:n="rr-block",blockSelector:a=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:s="rr-mask",unmaskTextClass:l=null,maskTextSelector:u=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inlineImages:p=!1,recordCanvas:h=!1,maskAllInputs:f=!1,maskAttributeFn:g,maskTextFn:m,maskInputFn:_,slimDOM:y=!1,dataURLOptions:b,preserveWhiteSpace:S,onSerialize:v,onIframeLoad:E,iframeLoadTimeout:T,onBlockedImageLoad:w,onStylesheetLoad:I,stylesheetLoadTimeout:k,keepIframeSrcFn:R=()=>!1,ignoreCSSAttributes:C=new Set([])}=t||{};return o7(e,{doc:e,mirror:r,blockClass:n,blockSelector:a,unblockSelector:o,maskAllText:i,maskTextClass:s,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:!0===f?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===f?{}:f,maskAttributeFn:g,maskTextFn:m,maskInputFn:_,slimDOMOptions:!0===y||"all"===y?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===y,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===y?{}:y,dataURLOptions:b,inlineImages:p,recordCanvas:h,preserveWhiteSpace:S,onSerialize:v,onIframeLoad:E,iframeLoadTimeout:T,onBlockedImageLoad:w,onStylesheetLoad:I,stylesheetLoadTimeout:k,keepIframeSrcFn:R,newlyAddedElement:!1,ignoreCSSAttributes:C})}(document,{mirror:i5,blockClass:l,blockSelector:u,unblockSelector:c,maskAllText:h,maskTextClass:f,unmaskTextClass:g,maskTextSelector:m,unmaskTextSelector:_,inlineStylesheet:y,maskAllInputs:z,maskAttributeFn:E,maskInputFn:T,maskTextFn:w,slimDOM:q,dataURLOptions:C,recordCanvas:N,inlineImages:L,onSerialize:e=>{ip(e,i5)&&Z.addIframe(e),ih(e,i5)&&Q.trackLinkElement(e),ig(e)&&er.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Z.attachIframe(e,t),e.contentWindow&&et.addWindow(e.contentWindow),er.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Q.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:r,height:n})=>{V({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${r}px`,height:`${n}px`}}}]})},keepIframeSrcFn:U,ignoreCSSAttributes:F});if(!t)return console.warn("Failed to snapshot the document");a({type:iE.FullSnapshot,data:{node:t,initialOffset:io(window)}}),iD.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Q.adoptStyleSheets(document.adoptedStyleSheets,i5.getId(document))};o=en;try{let e=[],t=e=>iP(iG)({onMutation:$,mutationCb:V,mousemoveCb:(e,t)=>a({type:iE.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>a({type:iE.IncrementalSnapshot,data:{source:iT.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>a({type:iE.IncrementalSnapshot,data:{source:iT.ViewportResize,...e}}),inputCb:e=>a({type:iE.IncrementalSnapshot,data:{source:iT.Input,...e}}),mediaInteractionCb:e=>a({type:iE.IncrementalSnapshot,data:{source:iT.MediaInteraction,...e}}),styleSheetRuleCb:e=>a({type:iE.IncrementalSnapshot,data:{source:iT.StyleSheetRule,...e}}),styleDeclarationCb:e=>a({type:iE.IncrementalSnapshot,data:{source:iT.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>a({type:iE.IncrementalSnapshot,data:{source:iT.Font,...e}}),selectionCb:e=>{a({type:iE.IncrementalSnapshot,data:{source:iT.Selection,...e}})},customElementCb:e=>{a({type:iE.IncrementalSnapshot,data:{source:iT.CustomElement,...e}})},blockClass:l,ignoreClass:d,ignoreSelector:p,maskAllText:h,maskTextClass:f,unmaskTextClass:g,maskTextSelector:m,unmaskTextSelector:_,maskInputOptions:z,inlineStylesheet:y,sampling:R,recordDOM:x,recordCanvas:N,inlineImages:L,userTriggeredOnInput:P,collectFonts:D,doc:e,maskAttributeFn:E,maskInputFn:T,maskTextFn:w,keepIframeSrcFn:U,blockSelector:u,unblockSelector:c,slimDOMOptions:q,dataURLOptions:C,mirror:i5,iframeManager:Z,stylesheetManager:Q,shadowDomManager:er,processedNodeManager:ee,canvasManager:et,ignoreCSSAttributes:F,plugins:B?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>a({type:iE.Plugin,data:{plugin:e.name,payload:t}}
473)}))||[]},{});Z.addLoadListener(r=>{try{e.push(t(r.contentDocument))}catch(e){console.warn(e)}});let r=()=>{en(),e.push(t(document))};return"interactive"===document.readyState||"complete"===document.readyState?r():(e.push(o8("DOMContentLoaded",()=>{a({type:iE.DomContentLoaded,data:{}}),"DOMContentLoaded"===O&&r()})),e.push(o8("load",()=>{a({type:iE.Load,data:{}}),"load"===O&&r()},window))),()=>{e.forEach(e=>e()),ee.destroy(),o=void 0,n=void 0}}catch(e){console.warn(e)}}function i4(e){return e>0x2540be3ff?e:1e3*e}function i7(e){return e>0x2540be3ff?e/1e3:e}function i8(e,t){"sentry.transaction"!==t.category&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:iE.Custom,timestamp:1e3*(t.timestamp||0),data:{tag:"breadcrumb",payload:(0,rv.normalize)(t,10,1e3)}}),"console"===t.category)))}function i9(e){return e.closest("button,a")||e}function se(e){let t=st(e);return t&&t instanceof Element?i9(t):t}function st(e){var t;return"object"==typeof(t=e)&&t&&"target"in t?e.target:e}i6.mirror=i5,i6.takeFullSnapshot=function(e){if(!o)throw Error("please take full snapshot after start recording");o(e)},(I=A||(A={}))[I.NotStarted=0]="NotStarted",I[I.Running=1]="Running",I[I.Stopped=2]="Stopped";let sr=new Set([iT.Mutation,iT.StyleSheetRule,iT.StyleDeclaration,iT.AdoptedStyleSheet,iT.CanvasMutation,iT.Selection,iT.MediaInteraction]);class sn{constructor(e,t,r=i8){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){var e;let t=(e=()=>{this._lastMutation=so()},i||(i=[],(0,nA.fill)(oy,"open",function(e){return function(...t){if(i)try{i.forEach(e=>e())}catch{}return e.apply(oy,t)}})),i.push(e),()=>{let t=i?i.indexOf(e):-1;t>-1&&i.splice(t,1)});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){var r,n,a;if(r=t,n=this._ignoreSelector,!sa.includes(r.tagName)||"INPUT"===r.tagName&&!["submit","button"].includes(r.getAttribute("type")||"")||"A"===r.tagName&&(r.hasAttribute("download")||r.hasAttribute("target")&&"_self"!==r.getAttribute("target"))||n&&r.matches(n)||!((a=e).data&&"number"==typeof a.data.nodeId&&a.timestamp))return;let o={timestamp:i7(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===o.node&&1>Math.abs(e.timestamp-o.timestamp))||(this._clicks.push(o),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=i7(e)}registerScroll(e=Date.now()){this._lastScroll=i7(e)}registerClick(e){let t=i9(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=so();for(let r of(this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&e.push(r)}),e)){let e=this._clicks.indexOf(r);e>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,r=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,n=e.mutationAfter&&e.mutationAfter<=this._threshold,{clickCount:a,clickBreadcrumb:o}=e;if(!r&&!n){let r=1e3*Math.min(e.mutationAfter||this._timeout,this._timeout),n=r<1e3*this._timeout?"mutation":"timeout",i={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.slowClickDetected",data:{...o.data,url:oy.location.href,route:t.getCurrentRoute(),timeAfterClickMs:r,endReason:n,clickCount:a||1}};this._addBreadcrumbEvent(t,i);return}if(a>1){let e={type:"default",message:o.message,timestamp:o.timestamp,category:"ui.multiClick",data:{...o.data,url:oy.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=(0,of.setTimeout)(()=>this._checkClicks(),1e3)}}let sa=["A","BUTTON","INPUT"];function so(){return Date.now()/1e3}function si(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var ss=((k=ss||{})[k.Document=0]="Document",k[k.DocumentType=1]="DocumentType",k[k.Element=2]="Element",k[k.Text=3]="Text",k[k.CDATA=4]="CDATA",k[k.Comment=5]="Comment",k);let sl=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function su(e,t){let r=i6.mirror.getId(e),n=r&&i6.mirror.getNode(r),a=n&&i6.mirror.getMeta(n),o=a&&a.type===ss.Element?a:null;return{message:t,data:o?{nodeId:r,node:{id:r,tagName:o.tagName,textContent:Array.from(o.childNodes).map(e=>
473e.type===ss.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(""),attributes:function(e){let t={};for(let r in!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]),e)if(sl.has(r)){let n=r;("data-testid"===r||"data-test-id"===r)&&(n="testId"),t[n]=e[r]}return t}(o.attributes)}}:{}}}let sc={resource:function(e){let{entryType:t,initiatorType:r,name:n,responseEnd:a,startTime:o,decodedBodySize:i,encodedBodySize:s,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(r)?null:{type:`${t}.${r}`,start:sh(o),end:sh(a),name:n,data:{size:u,statusCode:l,decodedBodySize:i,encodedBodySize:s}}},paint:function(e){let{duration:t,entryType:r,name:n,startTime:a}=e,o=sh(a);return{type:r,name:n,start:o,end:o+t,data:void 0}},navigation:function(e){let{entryType:t,name:r,decodedBodySize:n,duration:a,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:p,startTime:h,transferSize:f,type:g}=e;return 0===a?null:{type:`${t}.${g}`,start:sh(h),end:sh(o),name:r,data:{size:f,decodedBodySize:n,encodedBodySize:i,duration:a,domInteractive:u,domContentLoadedEventStart:s,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:o,redirectCount:p}}}};function sd(e,t){return({metric:r})=>void t.replayPerformanceEntries.push(e(r))}function sp(e){let t=sc[e.entryType];return t?t(e):null}function sh(e){return(((0,q.browserPerformanceTimeOrigin)()||oy.performance.timeOrigin)+e)/1e3}function sf(e){let t=e.entries[e.entries.length-1];return s_(e,"largest-contentful-paint",t?.element?[t.element]:void 0)}function sg(e){let t=[],r=[];for(let n of e.entries)if(void 0!==n.sources){let e=[];for(let t of n.sources)if(t.node){r.push(t.node);let n=i6.mirror.getId(t.node);n&&e.push(n)}t.push({value:n.value,nodeIds:e.length?e:void 0})}return s_(e,"cumulative-layout-shift",r,t)}function sm(e){let t=e.entries[e.entries.length-1];return s_(e,"interaction-to-next-paint",t?.target?[t.target]:void 0)}function s_(e,t,r,n){let a=e.value,o=e.rating,i=sh(a);return{type:"web-vital",name:t,start:i,end:i,data:{value:a,size:a,rating:o,nodeIds:r?r.map(e=>i6.mirror.getId(e)):void 0,attributions:n}}}let sy="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,sb=["log","warn","error"],sS="[Replay] ";function sv(e,t="info"){(0,rh.addBreadcrumb)({category:"console",data:{logger:"replay"},level:t,message:`${sS}${e}`},{level:t})}let sE=(m=!1,_=!1,y={exception:()=>void 0,infoTick:()=>void 0,setConfig:e=>{m=!!e.captureExceptions,_=!!e.traceInternals}},sy?(sb.forEach(e=>{y[e]=(...t)=>{M.debug[e](sS,...t),_&&sv(t.join(""),(0,rm.severityLevelFromString)(e))}}),y.exception=(e,...t)=>{t.length&&y.error&&y.error(...t),M.debug.error(sS,e),m?(0,D.captureException)(e,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):_&&sv(e,"error")},y.infoTick=(...e)=>{M.debug.log(sS,...e),_&&setTimeout(()=>sv(e[0]),0)}):sb.forEach(e=>{y[e]=()=>void 0}),y);class sT extends Error{constructor(){super("Event buffer exceeded maximum size of 20000000.")}}class sw{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 sT;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=this.events.map(e=>e.timestamp).sort()[0];return e?i4(e):null}}class sI{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((e,t)=>{this._worker.addEventListener("message",({data:r})=>{r.success?e():t()},{once:!0}),this._worker.addEventListener("error",e=>{t(e)},{once:!0})})),this._ensureReadyPromise}destroy(){sy&&sE.log("Destroying compression worker"),this._worker.terminate()}postMessage(e,t){let r=this._getAndIncrementId();return new Promise((n,a)=>{let o=({data:t})=>{if(t.method===e&&t.id===r){if(this._worker.removeEventListener("message",o),!t.success){sy&&sE.error("Error in compression worker: ",t.response),a(Error("Error in compression worker"));return}n(t.response)}};this._worker.addEventListener("message",o),this._worker.postMessage({id:r,method:e,arg:t})})}_getAndIncrementId(){return this._id++}}class sk{constructor(e){this._worker=new sI(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()}
473addEvent(e){let t=i4(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let r=JSON.stringify(e);return(this._totalSize+=r.length,this._totalSize>2e7)?Promise.reject(new sT):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,e=>{sy&&sE.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 sR{constructor(e){this._fallback=new sw,this._compression=new sk(e),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){sy&&sE.exception(e,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:r}=this._fallback,n=[];for(let t of e)n.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(n),this._fallback.clear()}catch(e){sy&&sE.exception(e,"Failed to add events when switching buffers.")}}}function sC(){try{return"sessionStorage"in oy&&!!oy.sessionStorage}catch{return!1}}function sA(e){return void 0!==e&&Math.random()<e}function sx(e){if(sC())try{oy.sessionStorage.setItem(ob,JSON.stringify(e))}catch{}}function sN(e){let t=Date.now(),r=e.id||(0,rg.uuid4)(),n=e.started||t,a=e.lastActivity||t,o=e.segmentId||0,i=e.sampled;return{id:r,started:n,lastActivity:a,segmentId:o,sampled:i,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function sM({sessionSampleRate:e,allowBuffering:t,stickySession:r=!1},{previousSessionId:n}={}){let a=sN({sampled:sA(e)?"session":!!t&&"buffer",previousSessionId:n});return r&&sx(a),a}function sO(e,t,r=+new Date){return null===e||void 0===t||t<0||0!==t&&e+t<=r}function sP(e,{maxReplayDuration:t,sessionIdleExpire:r,targetTime:n=Date.now()}){return sO(e.started,t,n)||sO(e.lastActivity,r,n)}function sD(e,{sessionIdleExpire:t,maxReplayDuration:r}){return!!sP(e,{sessionIdleExpire:t,maxReplayDuration:r})&&("buffer"!==e.sampled||0!==e.segmentId)}function sL({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:r},n){let a=n.stickySession&&function(){if(!sC())return null;try{let e=oy.sessionStorage.getItem(ob);if(!e)return null;let t=JSON.parse(e);return sy&&sE.infoTick("Loading existing session"),sN(t)}catch{return null}}();return a?sD(a,{sessionIdleExpire:e,maxReplayDuration:t})?(sy&&sE.infoTick("Session in sessionStorage is expired, creating new one..."),sM(n,{previousSessionId:a.id})):a:(sy&&sE.infoTick("Creating new session"),sM(n,{previousSessionId:r}))}function sB(e,t,r){return!!sF(e,t)&&(sU(e,t,r),!0)}async function sU(e,t,r){let{eventBuffer:n}=e;if(!n||n.waitForCheckout&&!r)return null;let a="buffer"===e.recordingMode;try{r&&a&&n.clear(),r&&(n.hasCheckout=!0,n.waitForCheckout=!1);let o=e.getOptions(),i=function(e,t){try{if("function"==typeof t&&e.type===iE.Custom)return t(e)}catch(e){return sy&&sE.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}(t,o.beforeAddRecordingEvent);if(!i)return;return await n.addEvent(i)}
473catch(o){let t=o&&o instanceof sT,r=(0,L.getClient)();if(r&&r.recordDroppedEvent(t?"buffer_overflow":"internal_sdk_error","replay"),t&&a)return n.clear(),n.waitForCheckout=!0,null;e.handleException(o),await e.stop({reason:t?"addEventSizeExceeded":"addEvent"})}}function sF(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let r=i4(t.timestamp);return!(r+e.timeouts.sessionIdlePause<Date.now())&&(!(r>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration)||(sy&&sE.infoTick(`Skipping event with timestamp ${r} because it is after maxReplayDuration`),!1))}function sW(e){return"transaction"===e.type}function s$(e){return"feedback"===e.type}function sj(e){return!!e.category}function sH(){let e=(0,L.getCurrentScope)().getPropagationContext().dsc;e&&delete e.replay_id;let t=(0,nN.getActiveSpan)();if(t){let e=(0,ax.getDynamicSamplingContextFromSpan)(t);delete e.replay_id}}function sG(e,t){return t.map(({type:t,start:r,end:n,name:a,data:o})=>{let i=e.throttledAddEvent({type:iE.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:a,startTimestamp:r,endTimestamp:n,data:o}}});return"string"==typeof i?Promise.resolve(null):i})}function sz(e,t){var r;e.isEnabled()&&null!==t&&(r=t.name,(!sy||!e.getOptions()._experiments.traceInternals)&&a2(r,(0,L.getClient)())||e.addUpdate(()=>(sG(e,[t]),!0)))}function sq(e){if(!e)return;let t=new TextEncoder;try{if("string"==typeof e)return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let r=(0,on.serializeFormData)(e);return t.encode(r).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function sY(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function sJ(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let r={...e._meta},n=r.warnings||[];return r.warnings=[...n,t],e._meta=r,e}function sV(e,t){if(!t)return null;let{startTimestamp:r,endTimestamp:n,url:a,method:o,statusCode:i,request:s,response:l}=t;return{type:e,start:r/1e3,end:n/1e3,name:a,data:{method:o,statusCode:i,request:s,response:l}}}function sK(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function sX(e,t,r){if(!t&&0===Object.keys(e).length)return;if(!t)return{headers:e};if(!r)return{headers:e,size:t};let n={headers:e,size:t},{body:a,warnings:o}=function(e){var t;let r,n;if(!e||"string"!=typeof e)return{body:e};let a=e.length>15e4,o=(r=(t=e)[0],n=t[t.length-1],"["===r&&"]"===n||"{"===r&&"}"===n);if(a){let t=e.slice(0,15e4);return o?{body:t,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${t}…`,warnings:["TEXT_TRUNCATED"]}}if(o)try{return{body:JSON.parse(e)}}catch{}return{body:e}}(r);return n.body=a,o?.length&&(n._meta={warnings:o}),n}function sQ(e,t){return Object.entries(e).reduce((r,[n,a])=>{let o=n.toLowerCase();return t.includes(o)&&e[n]&&(r[o]=a),r},{})}function sZ(e,t){let r=function(e,t=oy.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(oy.location.origin))return e;let r=new URL(e,t);if(r.origin!==new URL(t).origin)return e;let n=r.href;return!e.endsWith("/")&&n.endsWith("/")?n.slice(0,-1):n}(e);return(0,r_.stringMatchesSomePattern)(r,t)}async function s0(e,t,r){try{let n=await s1(e,t,r),a=sV("resource.fetch",n);sz(r.replay,a)}catch(e){sy&&sE.exception(e,"Failed to capture fetch breadcrumb")}}async function s1(e,t,r){let n=Date.now(),{startTimestamp:a=n,endTimestamp:o=n}=t,{url:i,method:s,status_code:l=0,request_body_size:u,response_body_size:c}=e.data,d=sZ(i,r.networkDetailAllowUrls)&&!sZ(i,r.networkDetailDenyUrls);return{startTimestamp:a,endTimestamp:o,url:i,method:s,statusCode:l,request:d?function({networkCaptureBodies:e,networkRequestHeaders:t},r,n){var a,o;let i=r?(a=r,o=t,1===a.length&&"string"!=typeof a[0]?s6(a[0],o):2===a.length?s6(a[1],o):{}):{};if(!e)return sX(i,n,void 0);let s=(0,on.getFetchRequestArgBody)(r),[l,u]=(0,on.getBodyString)(s,sE),c=sX(i,n,l);return u?sJ(c,u):c}(r,t.input,u):sK(u),response:await s2(d,r,t.response,c)}}async function s2(e,{networkCaptureBodies:t,networkResponseHeaders:r},n,a){if(!e&&void 0!==a)return sK(a);let o=n?s5(n.headers,r):{};if(!n||!t&&void 0!==a)return sX(o,a,void 0);let[i,s]=await s3(n),l=function(e,{networkCaptureBodies:t,responseBodySize:r,captureDetails:n,headers:a}){try{let o=e?.length&&void 0===r?sq(e):r;if(!n)return sK(o);if(t)return sX(a,o,e);return sX(a,o,void 0)}catch(e){return sy&&sE.exception(e,"Failed to serialize response body"),sX(a,r,void 0)}}(i,{networkCaptureBodies:t,responseBodySize:a,captureDetails:e,headers:o});return s?sJ(l,s):l}async function s3(e){let t=function(e){try{return e.clone()}catch(e){sy&&sE.exception(e,"Failed to clone response body")}}(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{var r;return[await (r=t,new Promise((e,t)=>
473{let n=(0,of.setTimeout)(()=>t(Error("Timeout while trying to read response body")),500);s4(r).then(t=>e(t),e=>t(e)).finally(()=>clearTimeout(n))}))]}catch(e){if(e instanceof Error&&e.message.indexOf("Timeout")>-1)return sy&&sE.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"];return sy&&sE.exception(e,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"]}}function s5(e,t){let r={};return t.forEach(t=>{e.get(t)&&(r[t]=e.get(t))}),r}function s6(e,t){if(!e)return{};let r=e.headers;return r?r instanceof Headers?s5(r,t):Array.isArray(r)?{}:sQ(r,t):{}}async function s4(e){return await e.text()}async function s7(e,t,r){try{let n=function(e,t,r){let n=Date.now(),{startTimestamp:a=n,endTimestamp:o=n,input:i,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||!sZ(l,r.networkDetailAllowUrls)||sZ(l,r.networkDetailDenyUrls)){let e=sK(d);return{startTimestamp:a,endTimestamp:o,url:l,method:u,statusCode:c,request:e,response:sK(p)}}let h=s[a5.SENTRY_XHR_DATA_KEY],f=h?sQ(h.request_headers,r.networkRequestHeaders):{},g=sQ((0,on.parseXhrResponseHeaders)(s),r.networkResponseHeaders),[m,_]=r.networkCaptureBodies?(0,on.getBodyString)(i,sE):[void 0],[y,b]=r.networkCaptureBodies?function(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{var r=e.response,n=e.responseType;try{if("string"==typeof r)return[r];if(r instanceof Document)return[r.body.outerHTML];if("json"===n&&r&&"object"==typeof r)return[JSON.stringify(r)];if(!r)return[void 0]}catch(e){return sy&&sE.exception(e,"Failed to serialize body",r),[void 0,"BODY_PARSE_ERROR"]}return sy&&sE.log("Skipping network body because of body type",r),[void 0,"UNPARSEABLE_BODY_TYPE"]}catch(e){t.push(e)}return sy&&sE.warn("Failed to get xhr response body",...t),[void 0]}(s):[void 0],S=sX(f,d,m),v=sX(g,p,y);return{startTimestamp:a,endTimestamp:o,url:l,method:u,statusCode:c,request:_?sJ(S,_):S,response:b?sJ(v,b):v}}(e,t,r),a=sV("resource.xhr",n);sz(r.replay,a)}catch(e){sy&&sE.exception(e,"Failed to capture xhr breadcrumb")}}async function s8(e){try{return Promise.all(sG(e,[function(e){let{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}=e,a=Date.now()/1e3;return{type:"memory",name:"memory",start:a,end:a,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:r,usedJSHeapSize:n}}}}(oy.performance.memory)]))}catch{return[]}}let s9=O.GLOBAL_OBJ.navigator;async function le({client:e,scope:t,replayId:r,event:n}){let a={event_id:r,integrations:"object"!=typeof e._integrations||null===e._integrations||Array.isArray(e._integrations)?void 0:Object.keys(e._integrations)};e.emit("preprocessEvent",n,a);let o=await (0,od.prepareEvent)(e.getOptions(),n,a,t,e,(0,L.getIsolationScope)());if(!o)return null;e.emit("postprocessEvent",o,a),o.platform=o.platform||"javascript";let i=e.getSdkMetadata(),{name:s,version:l,settings:u}=i?.sdk||{};return o.sdk={...o.sdk,name:s||"sentry.javascript.unknown",version:l||"0.0.0",settings:u},o}async function lt({recordingData:e,replayId:t,segmentId:r,eventContext:n,timestamp:a,session:o}){var i;let s,l=function({recordingData:e,headers:t}){let r,n=`${JSON.stringify(t)} 474`;if("string"==typeof e)r=`${n}${e}`;else{let t=new TextEncoder().encode(n);(r=new Uint8Array(t.length+e.length)).set(t),r.set(e,t.length)}return r}({recordingData:e,headers:{segment_id:r}}),{urls:u,errorIds:c,traceIds:d,initialTimestamp:p}=n,h=(0,L.getClient)(),f=(0,L.getCurrentScope)(),g=h?.getTransport(),m=h?.getDsn();if(!h||!g||!m||!o.sampled)return Promise.resolve({});let _={type:"replay_event",replay_start_timestamp:p/1e3,timestamp:a/1e3,error_ids:c,trace_ids:d,urls:u,replay_id:t,segment_id:r,replay_type:o.sampled},y=await le({scope:f,client:h,replayId:t,event:_});if(!y)return h.recordDroppedEvent("event_processor","replay"),sy&&sE.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete y.sdkProcessingMetadata;let b=(i=h.getOptions().tunnel,(0,rl.createEnvelope)((0,rl.createEventEnvelopeHeaders)(y,(0,rl.getSdkMetadataForEnvelopeHeader)(y),i,m),[[{type:"replay_event"},y],[{type:"replay_recording",length:"string"==typeof l?new TextEncoder().encode(l).length:l.length},l]]));try{s=await g.send(b)}catch(t){let e=Error(oS);try{e.cause=t}catch{}throw e}let S=(0,op.updateRateLimits)({},s);if((0,op.isRateLimited)(S,"replay"))throw new ln(S);if("number"==typeof s.statusCode&&(s.statusCode<200||s.statusCode>=300))throw new lr(s.statusCode);return s}
474class lr extends Error{constructor(e){super(`Transport returned status code ${e}`)}}class ln extends Error{constructor(e){super("Rate limit hit"),this.rateLimits=e}}class la extends Error{constructor(){super("Session is too long, not sending replay")}}async function lo(e,t={count:0,interval:5e3}){let{recordingData:r,onError:n}=e;if(r.length)try{return await lt(e),!0}catch(r){if(r instanceof lr||r instanceof ln)throw r;if((0,D.setContext)("Replays",{_retryCount:t.count}),n&&n(r),t.count>=3){let e=Error(`${oS} - max retries exceeded`);try{e.cause=r}catch{}throw e}return t.interval*=++t.count,new Promise((r,n)=>{(0,of.setTimeout)(async()=>{try{await lo(e,t),r(!0)}catch(e){n(e)}},t.interval)})}}let li="__THROTTLED";class ls{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=e,this._debouncedFlush=function(e,t,r){return function(e,t,r){let n,a,o,i=r?.maxWait?Math.max(r.maxWait,t):0,s=r?.setTimeoutImpl||setTimeout;function l(){return u(),n=e()}function u(){void 0!==a&&clearTimeout(a),void 0!==o&&clearTimeout(o),a=o=void 0}function c(){return a&&clearTimeout(a),a=s(l,t),i&&void 0===o&&(o=s(l,i)),n}return c.cancel=u,c.flush=function(){return void 0!==a||void 0!==o?l():n},c}(e,t,{...r,setTimeoutImpl:of.setTimeout})}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function(e){let t=new Map,r=!1;return(...n)=>{let a,o=Math.floor(Date.now()/1e3);if(a=o-5,t.forEach((e,r)=>{r<a&&t.delete(r)}),[...t.values()].reduce((e,t)=>e+t,0)>=300){let e=r;return r=!0,e?"__SKIPPED":li}r=!1;let i=t.get(o)||0;return t.set(o,i+1),e(...n)}}((e,t)=>sF(this,e)?sU(this,e,t):Promise.resolve(null));const{slowClickTimeout:r,slowClickIgnoreSelectors:n}=this.getOptions(),a=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:n?n.join(","):""}:void 0;if(a&&(this.clickDetector=new sn(this,a)),sy){const t=e._experiments;sE.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{"visible"===oy.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=si({category:"ui.blur"});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=si({category:"ui.focus"});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{!function(e,t){if(!e.isEnabled())return;e.updateUserActivity();let r=function(e){var t;let{metaKey:r,shiftKey:n,ctrlKey:a,altKey:o,key:i,target:s}=e;if(!s||"INPUT"===(t=s).tagName||"TEXTAREA"===t.tagName||t.isContentEditable||!i)return null;let l=r||a||o,u=1===i.length;if(!l&&u)return null;let c=(0,ew.htmlTreeAsString)(s,{maxStringLength:200})||"<unknown>",d=su(s,c);return si({category:"ui.keyDown",message:c,data:{...d.data,metaKey:r,shiftKey:n,ctrlKey:a,altKey:o,key:i}})}(t);r&&i8(e,r)}(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){sy&&sE.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:r}=this._options,n=t<=0&&r<=0;if(this._requiresManualStart=n,!n){if(this._initializeSessionForSampling(e),!this.session){sy&&sE.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",sy&&sE.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode){sy&&sE.log("Recording is already in progress");return}if(this._isEnabled&&"buffer"===this.recordingMode){sy&&sE.log("Buffering is in progress, call `flush()` to save the replay");return}sy&&sE.infoTick("Starting replay in session mode"),this._updateUserActivity();let e=sL({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode="session",this._initializeRecording()}
474startBuffering(){if(this._isEnabled){sy&&sE.log("Buffering is in progress, call `flush()` to save the replay");return}sy&&sE.infoTick("Starting replay in buffer mode");let e=sL({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{var e;let t,r=this._canvas;this._stopRecording=i6({...this._recordingOptions,..."buffer"===this.recordingMode?{checkoutEveryNms:6e4}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:(e=this,t=!1,(r,n)=>{if(!e.checkAndHandleExpiredSession()){sy&&sE.warn("Received replay event after session expired.");return}let a=n||!t;t=!0,e.clickDetector&&function(e,t){try{var r;if(r=t,3!==r.type)return;let{source:n}=t.data;if(sr.has(n)&&e.registerMutation(t.timestamp),n===iT.Scroll&&e.registerScroll(t.timestamp),t.data.source===iT.MouseInteraction){let{type:r,id:n}=t.data,a=i6.mirror.getNode(n);a instanceof HTMLElement&&r===iw.Click&&e.registerClick(a)}}catch{}}(e.clickDetector,r),e.addUpdate(()=>{if("buffer"===e.recordingMode&&a&&e.setInitialState(),!sB(e,r,a))return!0;if(!a)return!1;let t=e.session;if(function(e,t){if(t&&e.session&&0===e.session.segmentId){let t;sB(e,(t=e.getOptions(),{type:iE.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:!!e.eventBuffer&&"worker"===e.eventBuffer.type,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}),!1)}}(e,a),"buffer"===e.recordingMode&&t&&e.eventBuffer&&!t.dirty){let r=e.eventBuffer.getEarliestTimestamp();r&&(sy&&sE.log(`Updating session start time to earliest event in buffer to ${new Date(r)}`),t.started=r,e.getOptions().stickySession&&sx(t))}return!!t?.previousSessionId||("session"===e.recordingMode&&e.flush(),!0)})}),.../iPhone|iPad|iPod/i.test(s9?.userAgent??"")||/Macintosh/i.test(s9?.userAgent??"")&&s9?.maxTouchPoints&&s9?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{},onMutation:this._onMutationHandler.bind(this),...r?{recordCanvas:r.recordCanvas,getCanvasManager:r.getCanvasManager,sampling:r.sampling,dataURLOptions:r.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(this._isEnabled){this._isEnabled=!1,this.recordingMode="buffer";try{sy&&sE.log(`Stopping Replay${t?` triggered by ${t}`:""}`),sH(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,function(){if(sC())try{oy.sessionStorage.removeItem(ob)}catch{}}(),this.session=void 0}catch(e){this.handleException(e)}}}pause(){!this._isPaused&&(this._isPaused=!0,this.stopRecording(),sy&&sE.log("Pausing replay"))}resume(){this._isPaused&&this._checkSession()&&(this._isPaused=!1,this.startRecording(),sy&&sE.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if("session"===this.recordingMode)return this.flushImmediate();let t=Date.now();sy&&sE.log("Converting buffer to session"),await this.flushImmediate();let r=this.stopRecording();e&&r&&"session"!==this.recordingMode&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),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}
474checkAndHandleExpiredSession(){return this._lastActivity&&sO(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled?void this.pause():!!this._checkSession()}setInitialState(){let e=`${oy.location.pathname}${oy.location.hash}${oy.location.search}`,t=`${oy.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let r=this._throttledAddEvent(e,t);if(r===li){let e=si({category:"replay.throttled"});this.addUpdate(()=>!sB(this,{type:5,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e,metric:!0}}))}return r}getCurrentRoute(){let e=this.lastActiveSpan||(0,nN.getActiveSpan)(),t=e&&(0,nN.getRootSpan)(e),r=(t&&(0,nN.spanToJSON)(t).data||{})[z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if(t&&r&&["route","custom"].includes(r))return(0,nN.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 474
474var 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});
474']),URL.createObjectURL(e)}return""}();if(!t)return;sy&&sE.log(`Using compression worker${e?` from ${e}`:""}`);let r=new Worker(t);return new sR(r)}catch(e){sy&&sE.exception(e,"Failed to create compression worker")}}(t);if(e)return e}return sy&&sE.log("Using simple buffer"),new sw}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,r=sL({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=r}_checkSession(){if(!this.session)return!1;let e=this.session;return!sD(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(e),!1)}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(e.id))}_addListeners(){try{oy.document.addEventListener("visibilitychange",this._handleVisibilityChange),oy.addEventListener("blur",this._handleWindowBlur),oy.addEventListener("focus",this._handleWindowFocus),oy.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(!function(e){let t,r=(0,L.getClient)();(0,om.addClickKeypressInstrumentationHandler)(t=>{var r,n;if(!e.isEnabled())return;let a=function(e){let{target:t,message:r}=function(e){let t,r="click"===e.name,n=null;try{n=r?se(e.event):st(e.event),t=(0,ew.htmlTreeAsString)(n,{maxStringLength:200})||"<unknown>"}catch{t="<unknown>"}return{target:n,message:t}}(e);return si({category:`ui.${e.name}`,...su(t,r)})}(t);if(!a)return;let o="click"===t.name,i=o?t.event:void 0;o&&e.clickDetector&&i?.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&(r=e.clickDetector,n=se(t.event),r.handleClick(a,n)),i8(e,a)}),(0,o_.addHistoryInstrumentationHandler)(t=>{if(!e.isEnabled())return;let r=function(e){let{from:t,to:r}=e,n=Date.now()/1e3;return{type:"navigation.push",start:n,end:n,name:r,data:{previous:t}}}(t);null!==r&&(e.getContext().urls.push(r.name),e.triggerUserActivity(),e.addUpdate(()=>(sG(e,[r]),!1)))}),(t=(0,L.getClient)())&&t.on("beforeAddBreadcrumb",t=>(function(e,t){var r;if(!e.isEnabled()||!sj(t))return;let n=(r=t,!sj(r)||["fetch","xhr","sentry.event","sentry.transaction"].includes(r.category)||r.category.startsWith("ui.")?null:"console"===r.category?function(e){let t=e.data?.arguments;if(!Array.isArray(t)||0===t.length)return si(e);let r=!1,n=t.map(e=>{if(!e)return e;if("string"==typeof e)return e.length>5e3?(r=!0,`${e.slice(0,5e3)}…`):e;if("object"==typeof e)try{let t=(0,rv.normalize)(e,7);if(JSON.stringify(t).length>5e3)return r=!0,`${JSON.stringify(t,null,2).slice(0,5e3)}…`;return t}catch{}return e});return si({...e,data:{...e.data,arguments:n,...r?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(r):si(r));n&&i8(e,n)})(e,t));let n=(0,L.getClient)();try{let{networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:o,networkResponseHeaders:i}=e.getOptions(),s={replay:e,networkDetailAllowUrls:t,networkDetailDenyUrls:r,networkCaptureBodies:a,networkRequestHeaders:o,networkResponseHeaders:i};n&&n.on("beforeAddBreadcrumb",(e,t)=>(function(e,t,r){if(t.data)try{var n,a,o,i;n=t,"xhr"===n.category&&(a=r,a?.xhr)&&(!function(e,t){let{xhr:r,input:n}=t;if(!r)return;let a=sq(n),o=r.getResponseHeader("content-length")?sY(r.getResponseHeader("content-length")):function(e,t){try{let r="json"===t&&e&&"object"==typeof e?JSON.stringify(e):e;return sq(r)}catch{return}}(r.response,r.responseType);void 0!==a&&(e.data.request_body_size=a),void 0!==o&&(e.data.response_body_size=o)}(t,r),s7(t,r,e)),o=t,"fetch"===o.category&&(i=r,i?.response)&&(!function(e,t){let{input:r,response:n}=t,a=sq(r?(0,on.getFetchRequestArgBody)(r):void 0),o=n?sY(n.headers.get("content-length")):void 0;
474void 0!==a&&(e.data.request_body_size=a),void 0!==o&&(e.data.response_body_size=o)}(t,r),s0(t,r,e))}catch(e){sy&&sE.exception(e,"Error when enriching network breadcrumb")}})(s,e,t))}catch{}let a=Object.assign((t,r)=>{if(!e.isEnabled()||e.isPaused())return t;if("replay_event"===t.type)return delete t.breadcrumbs,t;if(t.type&&!sW(t)&&!s$(t))return t;if(!e.checkAndHandleExpiredSession())return sH(),t;if(s$(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),e.triggerUserActivity(),e.addUpdate(()=>!t.timestamp||(e.throttledAddEvent({type:iE.Custom,timestamp:1e3*t.timestamp,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1)),t;if(!t.type&&t.exception?.values?.length&&r.originalException?.__rrweb__&&!e.getOptions()._experiments.captureExceptions)return sy&&sE.log("Ignoring error from rrweb internals",t),null;let n="buffer"===e.recordingMode&&t.message!==oS&&!!t.exception&&!t.type&&sA(e.getOptions().errorSampleRate);if((n||"session"===e.recordingMode)&&(t.tags={...t.tags,replayId:e.getSessionId()}),n&&"buffer"===e.recordingMode&&e.session?.sampled==="buffer"){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&sx(t)}return t},{id:"Replay"});(0,D.addEventProcessor)(a),r&&(r.on("beforeSendEvent",t=>{var r,n;let a;e.isEnabled()&&!t.type&&(r=e,n=t,a=n.exception?.values?.[0]?.value,"string"==typeof a&&(a.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||a.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&i8(r,si({category:"replay.hydrate-error",data:{url:(0,ew.getLocationHref)()}})))}),r.on("afterSendEvent",(t,r)=>{if(!e.isEnabled()||t.type&&!sW(t))return;let n=r.statusCode;if(n&&!(n<200)&&!(n>=300)){if(sW(t)){var a,o;let r;return void(a=e,o=t,r=a.getContext(),o.contexts?.trace?.trace_id&&r.traceIds.size<100&&r.traceIds.add(o.contexts.trace.trace_id))}!function(e,t){let r=e.getContext();if(t.event_id&&r.errorIds.size<100&&r.errorIds.add(t.event_id),"buffer"!==e.recordingMode||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:n}=e.getOptions();("function"!=typeof n||n(t))&&(0,of.setTimeout)(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}(e,t)}}),r.on("createDsc",t=>{let r=e.getSessionId();r&&e.isEnabled()&&"session"===e.recordingMode&&e.checkAndHandleExpiredSession()&&(t.replay_id=r)}),r.on("spanStart",t=>{e.lastActiveSpan=t}),r.on("spanEnd",t=>{e.lastActiveSpan=t}),r.on("beforeSendFeedback",async(t,r)=>{let n=e.getSessionId();r?.includeReplay&&e.isEnabled()&&n&&t.contexts?.feedback&&("api"===t.contexts.feedback.source&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=n)}),r.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}(this),this._hasInitializedCoreListeners=!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=function(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function r({entries:e}){e.forEach(t)}let n=[];return["navigation","paint","resource"].forEach(e=>{n.push((0,og.addPerformanceInstrumentationHandler)(e,r))}),n.push((0,og.addLcpInstrumentationHandler)(sd(sf,e)),(0,og.addClsInstrumentationHandler)(sd(sg,e)),(0,og.addInpInstrumentationHandler)(sd(sm,e))),()=>{n.forEach(e=>e())}}(this)}_removeListeners(){try{oy.document.removeEventListener("visibilitychange",this._handleVisibilityChange),oy.removeEventListener("blur",this._handleWindowBlur),oy.removeEventListener("focus",this._handleWindowFocus),oy.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){!this.session||sP(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush())}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){sy&&sE.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:iE.Custom,timestamp:e.timestamp||0,data:{tag:"breadcrumb",payload:e}})})}_addPerformanceEntries(){let e=this.performanceEntries.map(sp).filter(
474Boolean).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(sG(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){let e={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){sy&&sE.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents){if((await s8(this),this.eventBuffer)&&e===this.getSessionId())try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new la;let r=this._popEventContext(),n=this.session.segmentId++;this._maybeSaveSession();let a=await this.eventBuffer.finish();await lo({replayId:e,recordingData:a,segmentId:n,eventContext:r,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(t){this.handleException(t),this.stop({reason:"sendReplay"});let e=(0,L.getClient)();e&&e.recordDroppedEvent(t instanceof ln?"ratelimit_backoff":t instanceof la?"invalid":"send_error","replay")}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){sy&&sE.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;let t=this.session.started,r=Date.now()-t;this._debouncedFlush.cancel();let n=r<this._options.minReplayDuration,a=r>this._options.maxReplayDuration+5e3;if(n||a){sy&&sE.log(`Session duration (${Math.floor(r/1e3)}s) is too ${n?"short":"long"}, not sending replay.`),n&&this._debouncedFlush();return}let o=this.eventBuffer;o&&0===this.session.segmentId&&!o.hasCheckout&&sy&&sE.log("Flushing initial segment without checkout.");let i=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,i&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&sx(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let r=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}(e.target),n=t.join(",");return r?.matches(n)}))return!1;let r=e.length,n=this._options.mutationLimit,a=this._options.mutationBreadcrumbLimit,o=n&&r>n;if(r>a||o){let e=si({category:"replay.mutations",data:{count:r,limit:o}});this._createCustomBreadcrumb(e)}return!o||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}function ll(e,t){return[...e,...t].join(",")}let lu='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',lc=["content-length","content-type","accept"],ld=Symbol.for("sentry__originalRequestBody"),lp=!1,lh=!1,lf=e=>new lg(e);class lg{constructor({flushMinDelay:e=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:n=36e5,stickySession:a=!0,useCompression:o=!0,workerUrl:i,_experiments:s={},maskAllText:l=!0,maskAllInputs:u=!0,blockAllMedia:c=!0,mutationBreadcrumbLimit:d=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:f=[],networkDetailAllowUrls:g=[],networkDetailDenyUrls:m=[],networkCaptureBodies:_=!0,networkRequestHeaders:y=[],networkResponseHeaders:b=[],mask:S=[],maskAttributes:v=["title","placeholder","aria-label"],unmask:E=[],block:T=[],unblock:w=[],ignore:I=[],maskFn:k,beforeAddRecordingEvent:R,beforeErrorSampling:C,onError:A,attachRawBodyFromRequest:x=!1}={}){this.name="Replay";const N=function({mask:e,unmask:t,block:r,unblock:n,ignore:a}){return{maskTextSelector:ll(e,[".sentry-mask","[data-sentry-mask]"]),unmaskTextSelector:ll(t,[]),blockSelector:ll(r,[".sentry-block","[data-sentry-block]","base","iframe[srcdoc]:not
474([src])"]),unblockSelector:ll(n,[]),ignoreSelector:ll(a,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}({mask:S,unmask:E,block:T,unblock:w,ignore:I});if(this._recordingOptions={maskAllInputs:u,maskAllText:l,maskInputOptions:{password:!0},maskTextFn:k,maskInputFn:k,maskAttributeFn:(e,t,r)=>(function({el:e,key:t,maskAttributes:r,maskAllText:n,privacyOptions:a,value:o}){return!n||a.unmaskTextSelector&&e.matches(a.unmaskTextSelector)?o:r.includes(t)||"value"===t&&"INPUT"===e.tagName&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o})({maskAttributes:v,maskAllText:l,privacyOptions:N,key:e,value:t,el:r}),...N,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(r,5e4),maxReplayDuration:Math.min(n,36e5),stickySession:a,useCompression:o,workerUrl:i,blockAllMedia:c,maskAllInputs:u,maskAllText:l,mutationBreadcrumbLimit:d,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:f,networkDetailAllowUrls:g,networkDetailDenyUrls:m,networkCaptureBodies:_,networkRequestHeaders:lm(y),networkResponseHeaders:lm(b),beforeAddRecordingEvent:R,beforeErrorSampling:C,onError:A,attachRawBodyFromRequest:x,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${lu}`:lu,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&(0,eI.isBrowser)())throw Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return lp}set _isInitialized(e){lp=e}afterAllSetup(e){(0,eI.isBrowser)()&&!this._replay&&(this._initialOptions.attachRawBodyFromRequest&&function(){if("u"<typeof Request||lh)return;let e=Request;try{let t=function(t,r){let n=new e(t,r);return r?.body!=null&&(n[ld]=r.body),n};t.prototype=e.prototype,O.GLOBAL_OBJ.Request=t,lh=!0}catch{}}(),this._setup(e),this._initialize(e))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):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}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){var t;let r,n,a,o,i=(t=this._initialOptions,r=e.getOptions(),n={sessionSampleRate:0,errorSampleRate:0,...t},a=(0,oh.parseSampleRate)(r.replaysSessionSampleRate),o=(0,oh.parseSampleRate)(r.replaysOnErrorSampleRate),null==a&&null==o&&(0,M.consoleSandbox)(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),null!=a&&(n.sessionSampleRate=a),null!=o&&(n.errorSampleRate=o),n);this._replay=new ls({options:i,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function lm(e){return[...lc,...e.map(e=>e.toLowerCase())]}function l_(){let e=(0,L.getClient)();return e?.getIntegrationByName("Replay")}var ly=Object.defineProperty,lb=(e,t,r)=>{let n;return(n="symbol"!=typeof t?t+"":t)in e?ly(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r};function lS(e,t,r=1/0,n=0){return!e||e.nodeType!==e.ELEMENT_NODE||n>r?-1:t(e)?n:lS(e.parentNode,t,r,n+1)}function lv(e,t){return r=>{if(null===r)return!1;try{if(e){if("string"==typeof e){if(r.matches(`.${e}`))return!0}else if(function(e,t){for(let r=e.classList.length;r--;){let n=e.classList[r];if(t.test(n))return!0}return!1}(r,e))return!0}if(t&&r.matches(t))return!0;return!1}catch{return!1}}}let lE="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.",lT={map:{},getId:()=>(console.error(lE),-1),getNode:()=>(console.error(lE),null),removeNodeFromMap(){console.error(lE)},has:()=>(console.error(lE),!1),reset(){console.error(lE)}};function lw(e,t,r,n,a=window){let o=a.Object.getOwnPropertyDescriptor(e,t);return a.Object.defineProperty(e,t,n?r:{set(e){lx(()=>{r.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>lw(e,t,o||{},!0)}function lI(e,t,r){try{if(!(t in e))return()=>{};
474let n=e[t],a=r(n);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=a,()=>{e[t]=n}}catch{return()=>{}}}function lk(e,t,r,n,a){if(!e)return!1;let o=function(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch(e){return null}}(e);if(!o)return!1;let i=lv(t,r);if(!a){let e=n&&o.matches(n);return i(o)&&!e}let s=lS(o,i),l=-1;return!(s<0)&&(n&&(l=lS(o,lv(null,n))),s>-1&&l<0||s<l)}"u">typeof window&&window.Proxy&&window.Reflect&&(lT=new Proxy(lT,{get:(e,t,r)=>("map"===t&&console.error(lE),Reflect.get(e,t,r))})),Date.now().toString();let lR={};function lC(e){let t=lR[e];if(t)return t;let r=window.document,n=window[e];if(r&&"function"==typeof r.createElement)try{let t=r.createElement("iframe");t.hidden=!0,r.head.appendChild(t);let a=t.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(t)}catch(e){}return lR[e]=n.bind(window)}function lA(...e){return lC("requestAnimationFrame")(...e)}function lx(...e){return lC("setTimeout")(...e)}var lN=((R=lN||{})[R["2D"]=0]="2D",R[R.WebGL=1]="WebGL",R[R.WebGL2=2]="WebGL2",R);let lM=e=>s?(...t)=>{try{return e(...t)}catch(e){if(s&&!0===s(e))return()=>{};throw e}}:e;for(var lO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lP="u"<typeof Uint8Array?[]:new Uint8Array(256),lD=0;lD<lO.length;lD++)lP[lO.charCodeAt(lD)]=lD;var lL=function(e){var t,r=new Uint8Array(e),n=r.length,a="";for(t=0;t<n;t+=3)a+=lO[r[t]>>2],a+=lO[(3&r[t])<<4|r[t+1]>>4],a+=lO[(15&r[t+1])<<2|r[t+2]>>6],a+=lO[63&r[t+2]];return n%3==2?a=a.substring(0,a.length-1)+"=":n%3==1&&(a=a.substring(0,a.length-2)+"=="),a};let lB=new Map,lU=(e,t,r)=>{let n;if(!e||!(lW(e,t)||"object"==typeof e))return;let a=e.constructor.name,o=((n=lB.get(r))||(n=new Map,lB.set(r,n)),n.has(a)||n.set(a,[]),n.get(a)),i=o.indexOf(e);return -1===i&&(i=o.length,o.push(e)),i},lF=(e,t,r)=>e.map(e=>(function e(t,r,n){if(t instanceof Array)return t.map(t=>e(t,r,n));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:lL(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,r,n),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:r}=t;return{rr_type:e,src:r}}else if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,r,n),t.width,t.height]};else if(lW(t,r)||"object"==typeof t)return{rr_type:t.constructor.name,index:lU(t,r,n)};return t})(e,t,r)),lW=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(r=>e instanceof t[r]);function l$(e,t,r,n,a){let o=[];try{let i=lI(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(o,...i){if(!lk(this,t,r,n,!0)){let e="experimental-webgl"===o?"webgl":o;if("__context"in this||(this.__context=e),a&&["webgl","webgl2"].includes(e))if(i[0]&&"object"==typeof i[0]){let e=i[0];e.preserveDrawingBuffer||(e.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[o,...i])}});o.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(e=>e())}}function lj(e,t,r,n,a,o,i,s){let l=[];for(let i of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(i))try{if("function"!=typeof e[i])continue;let u=lI(e,i,function(e){return function(...l){let u=e.apply(this,l);if(lU(u,s,this),"tagName"in this.canvas&&!lk(this.canvas,n,a,o,!0)){let e=lF(l,s,this),n={type:t,property:i,args:e};r(this.canvas,n)}return u}});l.push(u)}catch{let n=lw(e,i,{set(e){r(this.canvas,{type:t,property:i,args:[e],setter:!0})}});l.push(n)}return l}class lH{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:r="all",win:n,recordCanvas:a,errorHandler:o}=e;if(e.sampling=r,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,o&&function(e){s=e}(o),(a&&"number"==typeof r||t)&&(this.worker=this.initFPSWorker()),this.addWindow(n),t)return;lM(()=>{a&&"all"===r&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),a&&"number"==typeof r&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEac
474h(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:r,blockSelector:n,unblockSelector:a,recordCanvas:o,enableManualSnapshot:i}=this.options;if(!this.windowsSet.has(e)){if(i){this.windowsSet.add(e),this.windows.push(new WeakRef(e));return}lM(()=>{if(o&&"all"===t&&this.initCanvasMutationObserver(e,r,n,a),o&&"number"==typeof t){let t=l$(e,r,n,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):lA(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:r}=t;if(this.snapshotInProgressMap.set(r,!1),!("base64"in t))return;let{base64:n,type:a,width:o,height:i}=t;this.mutationCb({id:r,type:lN["2D"],commands:[{property:"clearRect",args:[0,0,o,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:n}],type:a}]},0,0,o,i]}]})},t}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;let t=r=>{this.takeSnapshot(r,!1),e=lA(t)};e=lA(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,r,n){var a,o;let i,s=l$(e,t,r,n,!1),l=function(e,t,r,n,a){let o=[];for(let i of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[i])continue;let s=lI(t.CanvasRenderingContext2D.prototype,i,function(o){return function(...s){return lk(this.canvas,r,n,a,!0)||lx(()=>{let r=lF(s,t,this);e(this.canvas,{type:lN["2D"],property:i,args:r})},0),o.apply(this,s)}});o.push(s)}catch{let r=lw(t.CanvasRenderingContext2D.prototype,i,{set(t){e(this.canvas,{type:lN["2D"],property:i,args:[t],setter:!0})}});o.push(r)}return()=>{o.forEach(e=>e())}}(this.processMutation.bind(this),e,t,r,n),u=(a=this.processMutation.bind(this),o=this.mirror,(i=[]).push(...lj(e.WebGLRenderingContext.prototype,lN.WebGL,a,t,r,n,o,e)),void 0!==e.WebGL2RenderingContext&&i.push(...lj(e.WebGL2RenderingContext.prototype,lN.WebGL2,a,t,r,n,o,e)),()=>{i.forEach(e=>e())});this.restoreHandlers.push(()=>{s(),l(),u()})}getCanvasElements(e,t,r){let n=[],a=a=>{a.querySelectorAll("canvas").forEach(a=>{lk(a,e,t,r,!0)||n.push(a)})};for(let e of this.windows){let t,r=e.deref();try{t=r&&r.document}catch{}t&&a(t)}for(let e of this.shadowDoms){let t=e.deref();t&&a(t)}return n}takeSnapshot(e,t,r){let{sampling:n,blockClass:a,blockSelector:o,unblockSelector:i,dataURLOptions:s,maxCanvasSize:l}=this.options;return(!this.lastSnapshotTime||!(e-this.lastSnapshotTime<1e3/("all"===n?2:n||2)))&&(this.lastSnapshotTime=e,(r?[r]:this.getCanvasElements(a,o,i)).forEac
474h(e=>{let r=this.mirror.getId(e);if(!(!this.mirror.hasNode(e)||!e.width||!e.height||this.snapshotInProgressMap.get(r))){if(this.snapshotInProgressMap.set(r,!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:r,bitmap:t,width:e.width,height:e.height,dataURLOptions:s,maxCanvasSize:l},[t])}).catch(e=>{lM(()=>{throw this.snapshotInProgressMap.delete(r),e})()})}}),!0)}startPendingCanvasMutationFlusher(){lA(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,lA(e)};lA(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let r=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,r)}),lA(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let r=this.pendingCanvasMutations.get(e);if(!r||-1===t)return;let n=r.map(e=>{let{type:t,...r}=e;return r}),{type:a}=r[0];this.mutationCb({id:t,type:a,commands:n}),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(){lb(this,"idNodeMap",new Map),lb(this,"nodeMetaMap",new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let r=t.id;this.idNodeMap.set(r,e),this.nodeMetaMap.set(e,t)}replace(e,t){let r=this.getNode(e);if(r){let e=this.nodeMetaMap.get(r);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}},(C=x||(x={}))[C.NotStarted=0]="NotStarted",C[C.Running=1]="Running",C[C.Stopped=2]="Stopped";let lG={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}}},lz=(0,eg.defineIntegration)((e={})=>{let t,r,[n,a]=e.maxCanvasSize||[],o={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[n?Math.min(n,1280):1280,a?Math.min(a,1280):1280]},i=new Promise(e=>r=e);return{name:"ReplayCanvas",getOptions(){let{quality:e,enableManualSnapshot:n,maxCanvasSize:a}=o;return{enableManualSnapshot:n,recordCanvas:!0,getCanvasManager:e=>{let o=new lH({...e,enableManualSnapshot:n,maxCanvasSize:a,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return t=o,r(o),o},...lG[e]||lG.medium}},async snapshot(e,r){(t||await i).snapshot(e,r)}}});var lq=e.i(964595);function lY(e=(0,L.getClient)()){e?.emit("endPageloadSpan")}var lJ=e.i(940059),lJ=lJ;function lV(e){let t=(0,nN.getActiveSpan)();if(t===e)return;let r=(0,L.getCurrentScope)();e.end=new Proxy(e.end,{apply:(e,n,a)=>((0,lJ._setSpanForScope)(r,t),Reflect.apply(e,n,a))}),(0,lJ._setSpanForScope)(r,e)}function lK(e){return new Promise((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)})}function lX(e){return lK(e.getAllKeys())}function lQ(e){let t;function r(){var r,n;let a,o;return void 0==t&&(r=e.dbName||"sentry-offline",n=e.storeName||"queue",(a=indexedDB.open(r)).onupgradeneeded=()=>a.result.createObjectStore(n),o=lK(a),t=e=>o.then(t=>e(t.transaction(n,"readwrite").objectStore(n)))),t}return{push:async t=>{try{var n,a;let o=await (0,rl.serializeEnvelope)(t);await (n=r(),a=e.maxQueueSize||30,n(e=>lX(e).then(t=>{if(!(t.length>=a))return e.put(o,Math.max(...t,0)+1),lK(e.transaction)})))}catch{}},unshift:async t=>{try{var n,a;let o=await (0,rl.serializeEnvelope)(t);await (n=r(),a=e.maxQueueSize||30,n(e=>lX(e).then(t=>{if(!(t.length>=a))return e.put(o,Math.min(...t,0)-1),lK(e.transaction)})))}catch{}},shift:async()=>{try{let e=await r()(e=>lX(e).then(t=>{let r=t[0];if(null!=r)return lK(e.get(r)).then(t=>(e.delete(r),lK(e.transaction).then(()=>t)))}));if(e)return(0,rl.parseEnvelope)(e)}catch{}}}}function lZ(e=aF.makeFetchTransport){var t;return t=function(e){function t(...e){rb.DEBUG_BUILD&&M.debug.log("[Offline]:",...e)}return r=>{let n,a=e(r);if(!r.createStore)throw Error("No `createStore` function was provided");let o=r.createStore(r),i=5e3;function s(e){n&&clearTimeout(n),"number"!=typeof(n=setTimeout(async()=>{n=void 0;let e=await o.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=new Date().toISOString(),u(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e))&&n.unref&&n.unref()}function l(){n||(s(i),i=Math.min(2*i,36e5))}async function u(e,n=!1){if(!n&&(0,rl.envelopeContainsItemType)(e,["replay_event","replay_recording"]))return await o.push(e),s(100),{};
474try{if(r.shouldSend&&await r.shouldSend(e)===!1)throw Error("Envelope not sent because `shouldSend` callback returned false");let t=await a.send(e),n=100;if(t){if(t.headers?.["retry-after"])n=(0,op.parseRetryAfterHeader)(t.headers["retry-after"]);else if(t.headers?.["x-sentry-rate-limits"])n=6e4;else if((t.statusCode||0)>=400)return t}return s(n),i=5e3,t}catch(a){var c;if(await (c=i,!(0,rl.envelopeContainsItemType)(e,["client_report"])&&(!r.shouldStore||r.shouldStore(e,a,c))))return n?await o.unshift(e):await o.push(e),l(),t("Error sending. Event queued.",a),{};throw a}}return r.flushAtStartup&&l(),{send:u,flush:e=>(void 0===e&&(i=5e3,s(100)),a.flush(e))}}}(e),e=>{let r=t({...e,createStore:lQ});return G.WINDOW.addEventListener("online",async e=>{await r.flush()}),r}}var l0=e.i(572386),l1=e.i(865726),l2=e.i(496092);let l3="window"in O.GLOBAL_OBJ&&O.GLOBAL_OBJ.window===O.GLOBAL_OBJ&&"u"<typeof importScripts,l5=String(0),l6=l3?"main":"worker",l4=G.WINDOW.navigator,l7="",l8="",l9="",ue=l4?.userAgent||"",ut="",ur=l4?.language||l4?.languages?.[0]||"",un=l4?.userAgentData;function ua(e){return"pageload"===(0,nN.spanToJSON)(e).op}function uo(e){let t=(0,L.getClient)(),r=t?.getOptions(),n=r?.stackParser;return n?(0,l2.getDebugImagesForResources)(n,e):[]}function ui(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(aW.DEBUG_BUILD&&M.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)||(aW.DEBUG_BUILD&&M.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1)}"object"==typeof un&&null!==un&&"getHighEntropyValues"in un&&un.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(l7=e.platform||"",l9=e.architecture||"",ut=e.model||"",l8=e.platformVersion||"",e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];ue=`${t.brand} ${t.version}`}}).catch(e=>void 0);let us=!1;function ul(){let e=G.WINDOW.Profiler;if("function"!=typeof e){aW.DEBUG_BUILD&&M.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){aW.DEBUG_BUILD&&(M.debug.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),M.debug.log("[Profiling] Disabling profiling for current user session.")),us=!0}}function uu(e){if(us)return aW.DEBUG_BUILD&&M.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return aW.DEBUG_BUILD&&M.debug.log("[Profiling] Discarding profile because root span was not sampled."),!1;let t=(0,L.getClient)(),r=t?.getOptions();if(!r)return aW.DEBUG_BUILD&&M.debug.log("[Profiling] Profiling disabled, no options found."),!1;let n=r.profilesSampleRate;return ui(n)?n?!!(!0===n||Math.random()<n)||(aW.DEBUG_BUILD&&M.debug.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(n)})`),!1):(aW.DEBUG_BUILD&&M.debug.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(aW.DEBUG_BUILD&&M.debug.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function uc(e){return void 0!==e.profilesSampleRate}let ud=new Map;function up(e){let t;ua(e)&&(t=1e3*(0,q.timestampInSeconds)());let r=ul();if(!r)return;aW.DEBUG_BUILD&&M.debug.log(`[Profiling] started profiling span: ${(0,nN.spanToJSON)(e).description}`);let n=(0,rg.uuid4)(),a=null;async function o(){if(e&&r){if(a){aW.DEBUG_BUILD&&M.debug.log("[Profiling] profile for:",(0,nN.spanToJSON)(e).description,"already exists, returning early");return}return r.stop().then(t=>{if(i&&(G.WINDOW.clearTimeout(i),i=void 0),aW.DEBUG_BUILD&&M.debug.log(`[Profiling] stopped profiling of span: ${(0,nN.spanToJSON)(e).description}`),!t){aW.DEBUG_BUILD&&M.debug.log(`[Profiling] profiler returned null profile for: ${(0,nN.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(ud.set(n,t),ud.size>30){let e=ud.keys().next().value;void 0!==e&&ud.delete(e)}}).catch(e=>{aW.DEBUG_BUILD&&M.debug.log("[Profiling] error while stopping profiler:",e)})}}(0,L.getCurrentScope)().setContext("profile",{profile_id:n,start_timestamp:t});let i=G.WINDOW.setTimeout(()=>{aW.DEBUG_BUILD&&M.debug.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,nN.spanToJSON)(e).description),o()},3e4),s=e.end.bind(e);e.end=function(){return e?(o().then(()=>{s()},()=>{s()}),e):s()}}class uh{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,r=function(e){if(us)return aW.DEBUG_BUILD&&M.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 aW.DEBUG_BUILD&&M.debug.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;let t=e.profileSessionSampleRate;return ui(t)?t?Math.random()<=t:(aW.DEBUG_BUILD&&M.debug.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(aW.DEBUG_BUILD&&M.debug.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}(e.getOptions());aW.DEBUG_BUILD&&M.debug.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),!r&&aW.DEBUG_BUILD&&M.debug.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=(0,rg.uuid4)(),this._client=e,this._sessionSampled=r,this._lifecycleMode=t,"trace"===t&&this._setupTraceLifecycleListeners(e)}
474start(){if("trace"===this._lifecycleMode){aW.DEBUG_BUILD&&M.debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){aW.DEBUG_BUILD&&M.debug.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){aW.DEBUG_BUILD&&M.debug.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if("trace"===this._lifecycleMode){aW.DEBUG_BUILD&&M.debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){aW.DEBUG_BUILD&&M.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 r=this._activeRootSpanIds.size;1===r&&(aW.DEBUG_BUILD&&M.debug.log("[Profiling] Detected already active root span during setup. Active root spans now:",r),this._beginProfiling())}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,aW.DEBUG_BUILD&&M.debug.log("[Profiling] Started profiling with profiler ID:",this._profilerId),(0,L.getGlobalScope)().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){aW.DEBUG_BUILD&&M.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=>{aW.DEBUG_BUILD&&M.debug.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}),"manual"===this._lifecycleMode&&(0,L.getGlobalScope)().setContext("profile",{}))}_setupTraceLifecycleListeners(e){e.on("spanStart",e=>{if(!this._sessionSampled){aW.DEBUG_BUILD&&M.debug.log("[Profiling] Span not profiled because of negative sampling decision for user session.");return}if(e!==(0,nN.getRootSpan)(e))return;if(!e.isRecording()){aW.DEBUG_BUILD&&M.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 r=this._activeRootSpanIds.size;1===r&&(aW.DEBUG_BUILD&&M.debug.log(`[Profiling] Root span ${t} started. Profiling active while there are active root spans (count=${r}).`),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 r=this._activeRootSpanIds.size;aW.DEBUG_BUILD&&M.debug.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${r}).`),0===r&&(this._collectCurrentChunk().catch(e=>{aW.DEBUG_BUILD&&M.debug.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,(0,L.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=ul();if(!e){aW.DEBUG_BUILD&&M.debug.log("[Profiling] Failed to start JS Profiler.");return}this._profiler=e}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{aW.DEBUG_BUILD&&M.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)&&(aW.DEBUG_BUILD&&M.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(),r=function(e,t,r){if(null==e)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);let n=function(e){let t=[];for(let r=0;r<e.frames.length;r++){let n=e.frames[r];n&&(t[r]={function:n.name,abs_path:"number"==typeof n.resourceId?e.resources[n.resourceId]:void 0,lineno:n.line,colno:n.column})}let r=[];for(let t=0;t<e.stacks.length;t++){let n=e.stacks[t];if(!n)continue;let a=[],o=n;for(;o;)a.push(o.frameId),o=void 0===o.parentId?void 0:e.stacks[o.parentId];r[t]=a}let n=(0,q.browserPerformanceTimeOrigin)(),a="number"==typeof performance.timeOrigin?performance.timeOrigin:n||0,o=a-(n||a),i=[];for(let t=0;t<e.samples.length;t++){let r=e.samples[t];if(!r)continue;let n=(a+(r.timestamp-o))/1e3;i[t]={stack_id:r.stackId??0,thread_id:l5,timestamp:n}}return{frames:t,stacks:r,samples:i,thread_metadata:{[l5]:{name:l6}}}}(e),a=t.getOptions(),o=t.getSdkMetadata?.()?.sdk;return{chunk_id:(0,rg.uuid4)(),client_sdk:{name:o?.name??"sentry.javascript.browser",version:o?.version??"0.0.0"},profiler_id:r||(0,rg.uuid4)(),platform:"javascript",version:"2",release:a.release??"",environment:a.environment??"production",debug_meta:{images:uo(e.resources)},profile:n}}(t,this._client,this._profilerId),n=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);
474if(!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 r=e.profile;if(!r)return{reason:"missing profile data"};if(!Array.isArray(r.frames)||!r.frames.length)return{reason:"profile has no frames"};if(!Array.isArray(r.stacks)||!r.stacks.length)return{reason:"profile has no stacks"};if(!Array.isArray(r.samples)||!r.samples.length)return{reason:"profile has no samples"};return{valid:!0}}catch(e){return{reason:`unknown validation error: ${e}`}}}(r);if("reason"in n){aW.DEBUG_BUILD&&M.debug.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",n.reason);return}this._sendProfileChunk(r),aW.DEBUG_BUILD&&M.debug.log("[Profiling] Collected browser profile chunk.")}catch(e){aW.DEBUG_BUILD&&M.debug.log("[Profiling] Error while stopping JS Profiler for chunk:",e)}}_sendProfileChunk(e){let t=this._client,r=(0,rl.getSdkMetadataForEnvelopeHeader)(t.getSdkMetadata?.()),n=t.getDsn(),a=t.getOptions().tunnel,o=(0,rl.createEnvelope)({event_id:(0,rg.uuid4)(),sent_at:new Date().toISOString(),...r&&{sdk:r},...!!a&&n&&{dsn:(0,eb.dsnToString)(n)}},[[{type:"profile_chunk",platform:"javascript"},e]]);t.sendEnvelope(o).then(null,e=>{aW.DEBUG_BUILD&&M.debug.error("Error while sending profile chunk envelope:",e)})}}let uf=(0,eg.defineIntegration)(()=>({name:"BrowserProfiling",setup(e){let t=e.getOptions(),r=new uh;if(uc(t)||t.profileLifecycle||(t.profileLifecycle="manual"),uc(t)&&!t.profilesSampleRate){aW.DEBUG_BUILD&&M.debug.log("[Profiling] Profiling disabled, no profiling options found.");return}let n=(0,nN.getActiveSpan)(),a=n&&(0,nN.getRootSpan)(n);if(uc(t)&&void 0!==t.profileSessionSampleRate&&aW.DEBUG_BUILD&&M.debug.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),uc(t))a&&ua(a)&&uu(a)&&up(a),e.on("spanStart",e=>{e===(0,nN.getRootSpan)(e)&&uu(e)&&up(e)}),e.on("beforeEnvelope",e=>{let t;if(!ud.size)return;let r=(t=[],(0,rl.forEachEnvelopeItem)(e,(e,r)=>{if("transaction"===r)for(let r=1;r<e.length;r++){let n=e[r];n?.contexts?.profile?.profile_id&&t.push(e[r])}}),t);if(!r.length)return;let n=[];for(let e of r){let t=e?.contexts,r=t?.profile?.profile_id,a=t?.profile?.start_timestamp;if("string"!=typeof r||!r){aW.DEBUG_BUILD&&M.debug.log("[Profiling] cannot find profile for a span without a profile context");continue}t?.profile&&delete t.profile;let o=function(e){let t=ud.get(e);return t&&ud.delete(e),t}(r);if(!o){aW.DEBUG_BUILD&&M.debug.log(`[Profiling] Could not retrieve profile for span: ${r}`);continue}let i=function(e,t,r,n){return(r.samples.length<2?(aW.DEBUG_BUILD&&M.debug.log("[Profiling] Discarding profile because it contains less than 2 samples"),1):!r.frames.length&&(aW.DEBUG_BUILD&&M.debug.log("[Profiling] Discarding profile because it contains no frames"),1))?null:function(e,t,r,n){var a;let o;if("transaction"!==n.type)throw TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==r)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${r} instead.`);let i=("string"==typeof(o=n.contexts?.trace?.trace_id)&&32!==o.length&&aW.DEBUG_BUILD&&M.debug.log(`[Profiling] Invalid traceId: ${o} on profiled event`),"string"!=typeof o)?"":o,s="thread_metadata"in(a=r)?a:function(e){let t,r=0,n={samples:[],stacks:[],frames:[],thread_metadata:{[l5]:{name:l6}}},a=e.samples[0];if(!a)return n;let o=a.timestamp,i=(0,q.browserPerformanceTimeOrigin)(),s="number"==typeof performance.timeOrigin?performance.timeOrigin:i||0,l=s-(i||s);return e.samples.forEach((a,i)=>{if(void 0===a.stackId){void 0===t&&(t=r,n.stacks[t]=[],r++),n.samples[i]={elapsed_since_start_ns:((a.timestamp+l-o)*1e6).toFixed(0),stack_id:t,thread_id:l5};return}let s=e.stacks[a.stackId],u=[];for(;s;){u.push(s.frameId);let t=e.frames[s.frameId];t&&void 0===n.frames[s.frameId]&&(n.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-o)*1e6).toFixed(0),stack_id:r,thread_id:l5};n.stacks[r]=u,n.samples[i]=c,r++}),n}(a),l=t||("number"==typeof n.start_timestamp?1e3*n.start_timestamp:1e3*(0,q.timestampInSeconds)()),u="number"==typeof n.timestamp?1e3*n.timestamp:1e3*(0,q.timestampInSeconds)();return{event_id:e,timestamp:new Date(l).toISOString(),platform:"javascript",version:"1",release:n.release||"",environment:n.environment||l1.DEFAULT_ENVIRONMENT,runtime:{name:"javascript",version:G.WINDOW.navigator.userAgent},os:{name:l7,version:l8,build_number:ue},device:{locale:ur,model:ut,manufacturer:ue,architecture:l9,is_emulator:!1},debug_meta:{images:uo(r.resources)},profile:s,transactions:[{name:n.transaction||"",id:n.event_id||
474(0,rg.uuid4)(),trace_id:i,active_thread_id:l5,relative_start_ns:"0",relative_end_ns:((u-l)*1e6).toFixed(0)}]}}(e,t,r,n)}(r,a,o,e);i&&n.push(i)}!function(e,t){if(t.length)for(let r of t)e[1].push([{type:"profile"},r])}(e,n)});else{let n=t.profileLifecycle;if(e.on("startUIProfiler",()=>r.start()),e.on("stopUIProfiler",()=>r.stop()),"manual"===n)r.initialize(e);else if("trace"===n){if(!(0,l0.hasSpansEnabled)(t)){aW.DEBUG_BUILD&&M.debug.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}r.initialize(e),a&&r.notifyRootSpanActive(a),G.WINDOW.setTimeout(()=>{let e=(0,nN.getActiveSpan)(),t=e&&(0,nN.getRootSpan)(e);t&&r.notifyRootSpanActive(t)},0)}}},processEvent:e=>(e?.contexts?.profile&&e.contexts&&(e.contexts.trace={...e.contexts?.trace??{},data:{...e.contexts?.trace?.data??{},"thread.id":l5,"thread.name":l6}},e.spans?.forEach(e=>{e.data={...e.data||{},"thread.id":l5,"thread.name":l6}})),e)})),ug=(0,eg.defineIntegration)((e={})=>{let t=e.sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{aW.DEBUG_BUILD&&M.debug.log("Using Sidecar URL",t)},processEvent:e=>{var t;return"transaction"===(t=e).type&&t.spans&&t.contexts?.trace&&"ui.action.click"===t.contexts.trace.op&&t.spans.some(({description:e})=>e?.includes("#sentry-spotlight"))?null:e},afterAllSetup:e=>{var r,n;let a,o;r=e,n=t,a=(0,of.getNativeImplementation)("fetch"),o=0,r.on("beforeEnvelope",e=>{o>3?M.debug.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",o):a(n,{method:"POST",body:(0,rl.serializeEnvelope)(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(o=0)},e=>{o++,M.debug.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}}});var um=e.i(813033);let u_=(0,eg.defineIntegration)(()=>({name:"LaunchDarkly",processEvent:(e,t,r)=>nO(e)}));function uy(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,r)=>{nP(e,t.value),nD(e,t.value)}}}let ub=(0,eg.defineIntegration)(()=>({name:"OpenFeature",processEvent:(e,t,r)=>nO(e)}));class uS{after(e,t){nP(t.flagKey,t.value),nD(t.flagKey,t.value)}error(e,t,r){nP(e.flagKey,e.defaultValue),nD(e.flagKey,e.defaultValue)}}let uv=(0,eg.defineIntegration)(({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){let t=e.prototype;(0,nA.fill)(t,"isEnabled",uE)},processEvent:(e,t,r)=>nO(e)}));function uE(e){return function(...t){let r=t[0],n=e.apply(this,t);return"string"==typeof r&&"boolean"==typeof n?(nP(r,n),nD(r,n)):aW.DEBUG_BUILD&&M.debug.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${r} (${typeof r}), result: ${n} (${typeof n})`),n}}let uT=(0,eg.defineIntegration)(({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){let t=e.prototype;"function"==typeof t.isOn&&(0,nA.fill)(t,"isOn",uw),"function"==typeof t.getFeatureValue&&(0,nA.fill)(t,"getFeatureValue",uw)},processEvent:(e,t,r)=>nO(e)}));function uw(e){return function(...t){let r=t[0],n=e.apply(this,t);return"string"==typeof r&&"boolean"==typeof n&&(nP(r,n),nD(r,n)),n}}let uI=({growthbookClass:e})=>uT({growthbookClass:e}),uk=(0,eg.defineIntegration)(({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",e=>{nP(e.gate.name,e.gate.value),nD(e.gate.name,e.gate.value)})},processEvent:(e,t,r)=>nO(e)}));async function uR(){let e=(0,L.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 (0,rI.suppressTracing)(()=>fetch(t,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}let uC=(0,eg.defineIntegration)(({worker:e})=>({name:"WebWorker",setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>uA(e))},addWorker:e=>uA(e)}));function uA(e){e.addEventListener("message",e=>
474{if(function(e){if(!(0,W.isPlainObject)(e)||!0!==e._sentryMessage)return!1;let t="_sentryDebugIds"in e,r="_sentryModuleMetadata"in e,n="_sentryWorkerError"in e,a="_sentryWasmImages"in e;return(!!t||!!r||!!n||!!a)&&(!t||!!((0,W.isPlainObject)(e._sentryDebugIds)||void 0===e._sentryDebugIds))&&(!r||!!((0,W.isPlainObject)(e._sentryModuleMetadata)||void 0===e._sentryModuleMetadata))&&(!n||!!(0,W.isPlainObject)(e._sentryWorkerError))&&(!a||!!Array.isArray(e._sentryWasmImages)&&!!e._sentryWasmImages.every(e=>(0,W.isPlainObject)(e)&&"string"==typeof e.code_file))&&!0}(e.data)){if(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(aW.DEBUG_BUILD&&M.debug.log("Sentry debugId web worker message received",e.data),G.WINDOW._sentryDebugIds={...e.data._sentryDebugIds,...G.WINDOW._sentryDebugIds}),e.data._sentryModuleMetadata&&(aW.DEBUG_BUILD&&M.debug.log("Sentry module metadata web worker message received",e.data),G.WINDOW._sentryModuleMetadata={...e.data._sentryModuleMetadata,...G.WINDOW._sentryModuleMetadata}),e.data._sentryWasmImages){aW.DEBUG_BUILD&&M.debug.log("Sentry WASM images web worker message received",e.data);let t=G.WINDOW._sentryWasmImages||[],r=e.data._sentryWasmImages.filter(e=>(0,W.isPlainObject)(e)&&"string"==typeof e.code_file&&!t.some(t=>t.code_file===e.code_file));G.WINDOW._sentryWasmImages=[...t,...r]}e.data._sentryWorkerError&&(aW.DEBUG_BUILD&&M.debug.log("Sentry worker rejection message received",e.data._sentryWorkerError),function(e){let t=(0,L.getClient)();if(!t)return;let r=t.getOptions().stackParser,n=t.getOptions().attachStacktrace,a=e.reason,o=(0,W.isPrimitive)(a)?(0,aY._eventFromRejectionWithPrimitive)(a):(0,aH.eventFromUnknownInput)(r,a,void 0,n,!0);o.level="error",e.filename&&(o.contexts={...o.contexts,worker:{filename:e.filename}}),(0,D.captureEvent)(o,{originalException:a,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),aW.DEBUG_BUILD&&M.debug.log("Captured worker unhandled rejection",a)}(e.data._sentryWorkerError))}})}function ux({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{let r={reason:(0,aY._getUnhandledRejectionError)(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:r}),aW.DEBUG_BUILD&&M.debug.log("[Sentry Worker] Forwarding unhandled rejection to parent",r)}),aW.DEBUG_BUILD&&M.debug.log("[Sentry Worker] Registered worker with unhandled rejection handling")}e.s(["BrowserClient",()=>aU.BrowserClient,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",0,ru,"OpenFeatureIntegrationHook",0,uS,"SDK_VERSION",()=>rt.SDK_VERSION,"SEMANTIC_ATTRIBUTE_SENTRY_OP",()=>z.SEMANTIC_ATTRIBUTE_SENTRY_OP,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",()=>z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",()=>z.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",()=>z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"Scope",()=>rp.Scope,"WINDOW",()=>G.WINDOW,"addBreadcrumb",()=>rh.addBreadcrumb,"addEventProcessor",()=>D.addEventProcessor,"addIntegration",()=>eg.addIntegration,"breadcrumbsIntegration",()=>aq.breadcrumbsIntegration,"browserApiErrorsIntegration",()=>aK.browserApiErrorsIntegration,"browserProfilingIntegration",0,uf,"browserSessionIntegration",()=>um.browserSessionIntegration,"browserTracingIntegration",()=>H.browserTracingIntegration,"buildLaunchDarklyFlagUsedHandler",0,uy,"captureConsoleIntegration",0,ry,"captureEvent",()=>D.captureEvent,"captureException",()=>D.captureException,"captureFeedback",0,eT,"captureMessage",()=>D.captureMessage,"captureSession",()=>D.captureSession,"chromeStackLineParser",()=>aj.chromeStackLineParser,"close",()=>D.close,"consoleLoggingIntegration",0,rw,"contextLinesIntegration",0,or,"continueTrace",()=>rI.continueTrace,"createConsolaReporter",0,rR,"createLangChainCallbackHandler",0,nI,"createTransport",()=>nk.createTransport,"createUserFeedbackEnvelope",0,aG,"dedupeIntegration",()=>nR.dedupeIntegration,"defaultRequestInstrumentationOptions",()=>lq.defaultRequestInstrumentationOptions,"defaultStackLineParsers",()=>aj.defaultStackLineParsers,"defaultStackParser",()=>aj.defaultStackParser,"diagnoseSdkConnectivity",0,uR,"endSession",()=>D.endSession,"eventFiltersIntegration",()=>nC.eventFiltersIntegration,"eventFromException",()=>aH.eventFromException,"eventFromMessage",()=>aH.eventFromMessage,"exceptionFromError",()=>
474aH.exceptionFromError,"extraErrorDataIntegration",0,nx,"featureFlagsIntegration",0,nL,"feedbackAsyncIntegration",0,ro,"feedbackIntegration",0,ri,"feedbackSyncIntegration",0,ri,"flush",()=>D.flush,"forceLoad",()=>U.forceLoad,"functionToStringIntegration",()=>nB.functionToStringIntegration,"geckoStackLineParser",()=>aj.geckoStackLineParser,"getActiveSpan",()=>nN.getActiveSpan,"getClient",()=>L.getClient,"getCurrentScope",()=>L.getCurrentScope,"getDefaultIntegrations",()=>U.getDefaultIntegrations,"getFeedback",0,e2,"getGlobalScope",()=>L.getGlobalScope,"getIsolationScope",()=>L.getIsolationScope,"getReplay",0,l_,"getRootSpan",()=>nN.getRootSpan,"getSpanDescendants",()=>nN.getSpanDescendants,"getSpanStatusFromHttpCode",()=>rx.getSpanStatusFromHttpCode,"getTraceData",()=>nU.getTraceData,"globalHandlersIntegration",()=>aY.globalHandlersIntegration,"graphqlClientIntegration",0,oc,"growthbookIntegration",0,uI,"httpClientIntegration",0,a6,"httpContextIntegration",()=>aJ.httpContextIntegration,"inboundFiltersIntegration",()=>nC.inboundFiltersIntegration,"init",()=>U.init,"instrumentAnthropicAiClient",0,nz,"instrumentGoogleGenAIClient",0,nZ,"instrumentLangGraph",0,n1,"instrumentOpenAiClient",0,ae,"instrumentOutgoingRequests",()=>lq.instrumentOutgoingRequests,"instrumentSupabaseClient",0,al,"isEnabled",()=>D.isEnabled,"isInitialized",()=>D.isInitialized,"lastEventId",()=>D.lastEventId,"launchDarklyIntegration",0,u_,"lazyLoadIntegration",0,ra,"linkedErrorsIntegration",()=>aV.linkedErrorsIntegration,"logger",()=>ay,"makeBrowserOfflineTransport",0,lZ,"makeFetchTransport",()=>aF.makeFetchTransport,"makeMultiplexedTransport",0,rd,"metrics",()=>av,"moduleMetadataIntegration",0,ak,"onLoad",()=>U.onLoad,"openFeatureIntegration",0,ub,"opera10StackLineParser",()=>aj.opera10StackLineParser,"opera11StackLineParser",()=>aj.opera11StackLineParser,"parameterize",0,a_,"registerSpanErrorInstrumentation",()=>aR.registerSpanErrorInstrumentation,"registerWebWorker",0,ux,"replayCanvasIntegration",0,lz,"replayIntegration",0,lf,"reportPageLoaded",0,lY,"reportingObserverIntegration",0,a0,"rewriteFramesIntegration",()=>em.rewriteFramesIntegration,"sendFeedback",0,eY,"setActiveSpanInBrowser",0,lV,"setContext",()=>D.setContext,"setCurrentClient",()=>aC.setCurrentClient,"setExtra",()=>D.setExtra,"setExtras",()=>D.setExtras,"setHttpStatus",()=>rx.setHttpStatus,"setMeasurement",()=>aA.setMeasurement,"setTag",()=>D.setTag,"setTags",()=>D.setTags,"setUser",()=>D.setUser,"showReportDialog",0,az,"spanToBaggageHeader",()=>ax.spanToBaggageHeader,"spanToJSON",()=>nN.spanToJSON,"spanToTraceHeader",()=>nN.spanToTraceHeader,"spotlightBrowserIntegration",0,ug,"startBrowserTracingNavigationSpan",()=>H.startBrowserTracingNavigationSpan,"startBrowserTracingPageLoadSpan",()=>H.startBrowserTracingPageLoadSpan,"startInactiveSpan",()=>rI.startInactiveSpan,"startNewTrace",()=>rI.startNewTrace,"startSession",()=>D.startSession,"startSpan",()=>rI.startSpan,"startSpanManual",()=>rI.startSpanManual,"statsigIntegration",0,uk,"supabaseIntegration",0,au,"suppressTracing",()=>rI.suppressTracing,"thirdPartyErrorFilterIntegration",0,aM,"uiProfiler",0,a$,"unleashIntegration",0,uv,"updateSpanName",()=>nN.updateSpanName,"webWorkerIntegration",0,uC,"winjsStackLineParser",()=>aj.winjsStackLineParser,"withActiveSpan",()=>rI.withActiveSpan,"withIsolationScope",()=>L.withIsolationScope,"withScope",()=>L.withScope,"zodErrorsIntegration",0,aB],839869),e.i(839869);var uN=e.i(389959);function uM(e,{componentStack:t},r){let n;if(null!==(n=uN.version.match(/^([^.]+)/))&&parseInt(n[0])>=17&&(0,W.isError)(e)&&t){let r,n=Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,r=new WeakSet,function e(t,n){if(!r.has(t)){if(t.cause)return r.add(t),e(t.cause,n);t.cause=n}}(e,n)}return(0,L.withScope)(n=>(n.setContext("react",{componentStack:t}),(0,D.captureException)(e,r)))}function uO(e){return(t,r)=>{let n=!!e,a=uM(t,r,{mechanism:{handled:n,type:"auto.function.react.error_handler"}});n&&e(t,r,a)}}var uP=uN;let uD="ui.react.render",uL="ui.react.mount",uB={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0}
474,uU={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},uF={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},uW=Symbol.for("react.forward_ref"),u$=Symbol.for("react.memo"),uj={};function uH(e){if("object"==typeof e&&null!==e&&e.$$typeof===u$)return uF;let t=e.$$typeof;return t&&uj[t]||uB}uj[uW]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},uj[u$]=uF;let uG=Object.defineProperty.bind(Object),uz=Object.getOwnPropertyNames.bind(Object),uq=Object.getOwnPropertySymbols?.bind(Object),uY=Object.getOwnPropertyDescriptor.bind(Object),uJ=Object.getPrototypeOf.bind(Object),uV=Object.prototype;function uK(e,t,r){if("string"!=typeof t){if(uV){let r=uJ(t);r&&r!==uV&&uK(e,r)}let r=uz(t);uq&&(r=r.concat(uq(t)));let n=uH(e),a=uH(t);for(let o of r)if(!uU[o]&&!a?.[o]&&!n?.[o]&&!uY(e,o)){let r=uY(t,o);if(r)try{uG(e,o,r)}catch(e){}}}return e}class uX extends uP.Component{constructor(e){super(e);const{name:t,disabled:r=!1}=this.props;if(r)return;this._mountSpan=(0,rI.startInactiveSpan)({name:`<${t}>`,onlyIfParent:!0,op:uL,attributes:{[z.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,q.timestampInSeconds)();this._updateSpan=(0,rI.withActiveSpan)(this._mountSpan,()=>(0,rI.startInactiveSpan)({name:`<${this.props.name}>`,onlyIfParent:!0,op:"ui.react.update",startTime:e,attributes:{[z.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,q.timestampInSeconds)(),{name:t,includeRender:r=!0}=this.props;if(this._mountSpan&&r){let r=(0,nN.spanToJSON)(this._mountSpan).timestamp;(0,rI.withActiveSpan)(this._mountSpan,()=>{let n=(0,rI.startInactiveSpan)({onlyIfParent:!0,name:`<${t}>`,op:uD,startTime:r,attributes:{[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":t}});n&&n.end(e)})}}render(){return this.props.children}}function uQ(e,t){let r=t?.name||e.displayName||e.name||"unknown",n=n=>uP.createElement(uX,{...t,name:r,updateProps:n},uP.createElement(e,{...n}));return n.displayName=`profiler(${r})`,uK(n,e),n}function uZ(e,t={disabled:!1,hasRenderSpan:!0}){let[r]=uP.useState(()=>{if(!t?.disabled)return(0,rI.startInactiveSpan)({name:`<${e}>`,onlyIfParent:!0,op:uL,attributes:{[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":e}})});uP.useEffect(()=>(r&&r.end(),()=>{if(r&&t.hasRenderSpan){let t=(0,nN.spanToJSON)(r).timestamp,n=(0,q.timestampInSeconds)(),a=(0,rI.startInactiveSpan)({name:`<${e}>`,onlyIfParent:!0,op:uD,startTime:t,attributes:{[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":e}});a&&a.end(n)}}),[])}Object.assign(uX,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}});var u0=uN;let u1="u"<typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,u2={componentStack:null,error:null,eventId:null};class u3 extends u0.Component{constructor(e){super(e),this.state=u2,this._openFallbackReportDialog=!0;const t=(0,L.getClient)();t&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=t.on("afterSendEvent",t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&az({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,t){let{componentStack:r}=t,{beforeCapture:n,onError:a,showDialog:o,dialogOptions:i}=this.props;(0,L.withScope)(s=>{n&&n(s,e,r);let l=uM(e,t,{mechanism:{handled:null!=this.props.handled?this.props.handled:!!this.props.fallback,type:"auto.function.react.error_boundary"}});a&&a(e,r,l),o&&(this._lastEventId=l,this._openFallbackReportDialog&&az({...i,eventId:l})),this.setState({error:e,componentStack:r,eventId:l})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t,eventId:r}=this.state,{onUnmount:n}=this.props;n&&(this.state===u2?n(null,null,null):n(e,t,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){let{onReset:e}=this.props,{error:t,componentStack:r,eventId:n}=this.state;e&&e(t,r,n),this.setState(u2)}render(){let{fallback:e,children:t}=this.props,r=this.state;if(null===r.componentStack)return"function"==typeof t?t():t;let n="function"==typeof e?u0.createElement(e,{error:r.error,componentStack:r.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:r.eventId}):e;return u0.isValidElement(n)?n:(e&&u1&&M.debug.warn("fallback did not produce a valid ReactElement"),null)}}function u5(e,t){let r=e.displayName||e.name||"unknown",n=u0.memo(r=>u0.createElement(u3,{...t},u0.createElement(e,{...r})));return n.displayName=`errorBoundary(${r})`,uK(n,e),n}let u6={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function u4(e){let t={...u6,...e};return e=>(r,n)=>{function a(e){return(r,n)=>{let a=e(r,n),o=(0,L.getCurrentScope)(),i=t.actionTransformer(n);null!=i&&(0,rh.addBreadcrumb)({category:"redux.action",data:i,type:"info"});let s=t.stateTransformer(a);if(null!=s){let e=(0,L.getClient)(),t=e?.getOptions(),r=t?.normalizeDepth||3,n={state:{type:"redux",value:s}};(0,nA.addNonEnumerableProperty)(n,"__sentry_override_normalization_depth__",3+r),o.setContext("state",n)}else o.setContext("state",null);let{configureScopeWithState:l}=t;return"function"==typeof l&&l(o,a),a}}t.attachReduxState&&(0,L.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 o=e(a(r),n);return o.replaceReducer=new Proxy(o.replaceReducer,{apply:function(e,t,r){e.apply(t,[a(r[0])])}}),o}}function u7(e){let t=(0,H.browserTracingIntegration)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:r,routes:n,match:a,instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),o&&G.WINDOW.location&&u8(n,G.WINDOW.location,a,(t,r="url")=>{(0,H.startBrowserTracingPageLoadSpan)(e,{name:t,attributes:{[z.
474SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.reactrouter_v3",[z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r}})}),i&&r.listen&&r.listen(t=>{("PUSH"===t.action||"POP"===t.action)&&u8(n,t,a,(t,r="url")=>{(0,H.startBrowserTracingNavigationSpan)(e,{name:t,attributes:{[z.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.react.reactrouter_v3",[z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r}})})})}}}function u8(e,t,r,n){let a=t.pathname;r({location:t,routes:e},(e,t,r)=>{if(e||!r)return n(a);let o=function(e){if(!Array.isArray(e)||0===e.length)return"";let t=e.filter(e=>!!e.path),r=-1;for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.path?.startsWith("/")){r=e;break}}return t.slice(r).reduce((e,{path:t})=>{let r="/"===e||""===e?t:`/${t}`;return`${e}${r}`},"")}(r.routes||[]);return 0===o.length||"/*"===o?n(a):n(a=o,"route")})}function u9(e,t={}){let r=(0,H.browserTracingIntegration)({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:n=!0,instrumentNavigation:a=!0}=t;return{...r,afterAllSetup(t){r.afterAllSetup(t);let o=G.WINDOW.location;if(n&&o){let r=e.matchRoutes(o.pathname,e.options.parseSearch(o.search),{preload:!1,throwOnError:!1}),n=r[r.length-1],a=n?.routeId!=="__root__"?n:void 0;(0,H.startBrowserTracingPageLoadSpan)(t,{name:a?a.routeId:o.pathname,attributes:{[z.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.tanstack_router",[z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:a?"route":"url",...ce(a)}})}a&&e.subscribe("onBeforeNavigate",r=>{if(!r.fromLocation||r.toLocation.state===r.fromLocation.state)return;let n=e.matchRoutes(r.toLocation.pathname,r.toLocation.search,{preload:!1,throwOnError:!1}),a=n[n.length-1],o=a?.routeId!=="__root__"?a:void 0,i=G.WINDOW.location,s=(0,H.startBrowserTracingNavigationSpan)(t,{name:o?o.routeId:i.pathname,attributes:{[z.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.react.tanstack_router",[z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:o?"route":"url"}}),l=e.subscribe("onResolved",t=>{if(l(),s){let r=e.matchRoutes(t.toLocation.pathname,t.toLocation.search,{preload:!1,throwOnError:!1}),n=r[r.length-1],a=n?.routeId!=="__root__"?n:void 0;a&&(s.updateName(a.routeId),s.setAttribute(z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"route"),s.setAttributes(ce(a)))}})})}}}function ce(e){if(!e)return{};let t={};return Object.entries(e.params).forEach(([e,r])=>{t[`url.path.params.${e}`]=r,t[`url.path.parameter.${e}`]=r,t[`params.${e}`]=r}),t}function ct(e){let t=(0,H.browserTracingIntegration)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:r,routes:n,matchPath:a,instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),cn(e,o,i,r,"reactrouter_v4",n,a)}}}function cr(e){let t=(0,H.browserTracingIntegration)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:r,routes:n,matchPath:a,instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),cn(e,o,i,r,"reactrouter_v5",n,a)}}}function cn(e,t,r,n,a,o=[],i){function s(e){if(0===o.length||!i)return[e,"url"];for(let t of function e(t,r,n,a=[]){return t.some(t=>{let o=t.path?n(r,t):a.length?a[a.length-1].match:{path:"/",url:"/",params:{},isExact:"/"===r};return o&&(a.push({route:t,match:o}),t.routes&&e(t.routes,r,n,a)),!!o}),a}(o,e,i))if(t.match.isExact)return[t.match.path,"route"];return[e,"url"]}if(t){let t=n.location?n.location.pathname:G.WINDOW.location?G.WINDOW.location.pathname:void 0;if(t){let[r,n]=s(t);(0,H.startBrowserTracingPageLoadSpan)(e,{name:r,attributes:{[z.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.pageload.react.${a}`,[z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n}})}}r&&n.listen&&n.listen((t,r)=>{if(r&&("PUSH"===r||"POP"===r)){let[r,n]=s(t.pathname);(0,H.startBrowserTracingNavigationSpan)(e,{name:r,attributes:{[z.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.navigation.react.${a}`,[z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n}})}})}
474function ca(e){let t=e.displayName||e.name,r=t=>{if(t?.computedMatch?.isExact){let e=t.computedMatch.path,r=function(){let e=(0,nN.getActiveSpan)(),t=e&&(0,nN.getRootSpan)(e);if(!t)return;let r=(0,nN.spanToJSON)(t).op;return"navigation"===r||"pageload"===r?t:void 0}();(0,L.getCurrentScope)().setTransactionName(e),r&&(r.updateName(e),r.setAttribute(z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"route"))}return uN.createElement(e,{...t})};return r.displayName=`sentryRoute(${t})`,uK(r,e),r}let co=!1,ci=[];function cs(){let e=ci.length;return e>0?ci[e-1]??null:null}function cl(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function cu(e){return e.endsWith("*")}function cc(e){return e.includes("/*")||e.endsWith("*")}function cd(e,t){return cu(e)&&!!t.route.children?.length||!1}function cp(e){return e.split(/\\?\//).filter(e=>e.length>0&&","!==e).length}function ch(e,t){if(!t||"/"===t||!e.toLowerCase().startsWith(t.toLowerCase()))return e;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?e:e.slice(r)||"/"}function cf(e){return"/"===e[0]?e:`/${e}`}function cg(e,t){return co?ch(e.pathname,t):e.pathname||""}function cm(e,t,r,n,a=""){let o,i="url",s=function(e,t){let r=l(t,e);if(r)for(let e of r){var n;if(!(n=e.route).children&&n.element&&n.path?.endsWith("/*")&&e.params["*"])return!0}return!1}(e,r);return s&&(o=cf(function e(t,r){let n=l(t,r);if(!n||0===n.length)return"";for(let o of n)if(o.route.path&&"*"!==o.route.path){var a;let n="*"===(a=o.route.path||"")[a.length-1]?a.slice(0,-1):a,i=ch(r.pathname,cf(o.pathnameBase));if(r.pathname===i)return cl(i);return cl(cl(n||"")+cf(e(t.filter(e=>e!==o.route),{pathname:i})))}return""}(r,e)),i="route"),s&&o||([o,i]=function(e,t,r,n=""){if(!e||0===e.length)return[co?ch(t.pathname,n):t.pathname,"url"];if(!r)return[cg(t,n),"url"];let a="";for(let e of r){let r=e.route;if(!r)continue;if(r.index)return function(e,t,r){let n=e&&e.length>0?e:co?ch(t,r):t,a="/*"===n.slice(-2)?n.slice(0,-2):n;return a.length>1&&"/"===a[a.length-1]&&(a=a.slice(0,-1)),[a,"route"]}(a,e.pathname,n);let o=r.path;if(!o||cd(o,e))continue;let i="/"===o[0]||"/"===a[a.length-1]?o:`/${o}`;if(a=cl(a)+cf(i),cl(t.pathname)===cl(n+e.pathname)){if(cp(a)!==cp(e.pathname)&&!cu(a))return[(co?"":n)+i,"route"];return cd(a,e)&&(a=a.slice(0,-1)),[(co?"":n)+a,"route"]}}return[cg(t,n),"url"]}(t,e,n,a)),[o||e.pathname,i]}function c_(){let e=(0,nN.getActiveSpan)(),t=e?(0,nN.getRootSpan)(e):void 0;if(!t)return;let r=(0,nN.spanToJSON)(t).op;return"navigation"===r||"pageload"===r?t:void 0}function cy(e,t){if(e.handle&&"object"==typeof e.handle)for(let r of Object.keys(e.handle)){let n=e.handle[r];"function"!=typeof n||n.__sentry_proxied__||(e.handle[r]=function(e,t,r,n){let a=new Proxy(e,{apply(e,a,o){let i,s=function(){let e=cs();if(e)return e.targetPath?{pathname:e.targetPath,search:"",hash:"",state:null,key:"default"}:null;if(void 0!==G.WINDOW)try{let e=G.WINDOW.location;if(e)return{pathname:e.pathname,search:e.search||"",hash:e.hash||"",state:null,key:"default"}}catch{u1&&M.debug.warn("[React Router] Could not access window.location")}return null}(),l=(i=cs())?i.span:c_(),u=e.apply(a,o);return function(e,t,r,n,a,o){(0,W.isThenable)(e)?e.then(e=>{Array.isArray(e)&&n(e,t,a??void 0,o)}).catch(e=>{u1&&M.debug.warn(`Error resolving async handler '${r}' for route`,t,e)}):Array.isArray(e)&&n(e,t,a??void 0,o)}(u,t,r,n,s,l),u}});return(0,nA.addNonEnumerableProperty)(a,"__sentry_proxied__",!0),a}(n,e,r,t))}if(Array.isArray(e.children))for(let r of e.children)cy(r,t)}globalThis._sentryNextJsVersion="16.3.0";let cb=!1,cS=3e3,cv=new WeakSet,cE=new WeakMap,cT=new Set,cw=new WeakMap,cI=new WeakMap;function ck(e){G.WINDOW?.cancelAnimationFrame?G.WINDOW.cancelAnimationFrame(e):clearTimeout(e)}function cR(e){return`${e.pathname}${e.search||""}${e.hash||""}`}function cC(e){return e.includes(":")||e.includes("*")}function cA(e,t){let r=t.children||[],n=e.filter(e=>!r.some(t=>t===e||e.path&&t.path===e.path||e.id&&t.id===e.id));n.length>0&&(t.children=[...r,...n])}function cx(e,t){let r=cw.get(e);r||(r=new Set,cw.set(e,r)),r.add(t),t.finally(()=>{let r=cw.get(e);r&&r.delete(t)})}function cN(e){let t=new Promise(t=>{cI.set(e,t)});cx(e,t)}
474function cM(e,t,r=null,n){e.forEach(e=>{cT.add(e),cb&&cy(e,cM)}),t&&cA(e,t);let a=n??c_();if(a){let e=(0,nN.spanToJSON)(a);if(e.timestamp){u1&&M.debug.warn("[React Router] Lazy handler resolved after span ended - skipping update");return}let t=e.op,o=r;if(!o&&!n&&void 0!==G.WINDOW){let e=G.WINDOW.location;e?.pathname&&(o={pathname:e.pathname})}o&&("pageload"===t?cj({activeRootSpan:a,location:{pathname:o.pathname},routes:Array.from(cT),allRoutes:Array.from(cT)}):"navigation"===t&&cO(a,o,Array.from(cT),!1,h))}}function cO(e,t,r,n=!1,a){let o=(0,nN.spanToJSON)(e),i=o.description,s=e?.__sentry_navigation_name_set__,l=i&&cc(i);if((!s||n||l)&&!o.timestamp){let n=a(r,t),[u,c]=cm(t,r,r,n||[],""),d=o.data?.[z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];u&&(!i||!s&&("route"!==d||"route"===c)||"route"!==d&&"route"===c||"route"===d&&"route"===c&&l)&&(e.updateName(u),e.setAttribute(z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,c),cc(u)||"route"!==c||(0,nA.addNonEnumerableProperty)(e,"__sentry_navigation_name_set__",!0))}}function cP(e,t,r,n,a){let o=!1,i=!!a&&"pageload"===(0,nN.spanToJSON)(a).op,s=!1,l=null,u=null;e.subscribe(e=>{if(!o){let t=c_();t&&"pageload"===(0,nN.spanToJSON)(t).op?i=!0:i&&("POP"!==e.historyAction||s?o=!0:s=!0)}if("PUSH"===e.historyAction||"POP"===e.historyAction&&o){let a=cR(e.location),o=()=>{u!==a&&(u=a,l=null,cW({location:e.location,routes:t,navigationType:e.historyAction,version:r,basename:n,allRoutes:Array.from(cT)}))};if("idle"!==e.navigation.state)u!==a&&(u=null),null!==l&&ck(l),l=G.WINDOW?.requestAnimationFrame?G.WINDOW.requestAnimationFrame(o):setTimeout(o,0);else null!==l&&(ck(l),l=null),o()}})}function cD(e,t){return u&&c&&d&&h?function(r,n){if(c$(r),cb)for(let e of r)cy(e,cM);let a=c_();n&&"patchRoutesOnNavigation"in n&&"function"==typeof n.patchRoutesOnNavigation&&a&&((0,nA.addNonEnumerableProperty)(a,"__sentry_may_have_lazy_routes__",!0),cN(a));let o=e(r,cF(n,!1,a)),i=n?.basename;return"POP"===o.state.historyAction&&a&&cj({activeRootSpan:a,location:o.state.location,routes:r,basename:i,allRoutes:Array.from(cT)}),cP(o,r,t,i,a),o}:(u1&&M.debug.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createRouter\` function because of one or more missing parameters.`),e)}function cL(e,t){return u&&c&&d&&h?function(r,n){let a;if(c$(r),cb)for(let e of r)cy(e,cM);let o=c_();n&&"patchRoutesOnNavigation"in n&&"function"==typeof n.patchRoutesOnNavigation&&o&&((0,nA.addNonEnumerableProperty)(o,"__sentry_may_have_lazy_routes__",!0),cN(o));let i=e(r,cF(n,!0,o)),s=n?.basename,l=n?.initialEntries,u=n?.initialIndex,c=l&&1===l.length,d=void 0!==u&&l&&l[u],p=(a=c?l[0]:d?l[u]:void 0)?"string"==typeof a?{pathname:a}:a:i.state.location,h=c_();return"POP"===i.state.historyAction&&h&&cj({activeRootSpan:h,location:p,routes:r,basename:s,allRoutes:Array.from(cT)}),cP(i,r,t,s,h),i}:(u1&&M.debug.warn(`reactRouterV${t}Instrumentation was unable to wrap the \`createMemoryRouter\` function because of one or more missing parameters.`),e)}function cB(e,t){let r=(0,H.browserTracingIntegration)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:n,useLocation:a,useNavigationType:o,createRoutesFromChildren:i,matchRoutes:s,stripBasename:f,enableAsyncRouteHandlers:g=!1,instrumentPageLoad:m=!0,instrumentNavigation:_=!0,lazyRouteTimeout:y}=e;return{...r,setup(t){r.setup(t);let m=e.finalTimeout??3e4,_=(e.idleTimeout??1e3)*3,b=y??_;b===1/0?(cS=m,u1&&M.debug.log("[React Router] lazyRouteTimeout set to Infinity, capping at finalTimeout:",m,"ms to prevent indefinite hangs")):Number.isNaN(b)?(u1&&M.debug.warn("[React Router] lazyRouteTimeout must be a number, falling back to default:",_),cS=_):b<0?(u1&&M.debug.warn("[React Router] lazyRouteTimeout must be non-negative or Infinity, got:",b,"falling back to:",_),cS=_):cS=b,u=n,c=a,d=o,h=s,p=i,cb=g,function(e,t=!1){l=e,co=t}(s,f||!1)},afterAllSetup(e){r.afterAllSetup(e);let n=G.WINDOW.location?.pathname;m&&n&&(0,H.startBrowserTracingPageLoadSpan)(e,{name:n,attributes:{[z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[z.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.pageload.react.reactrouter_v${t}`}}),_&&cv.add(e)}}}function cU(e,t){if(!u||!c||!d||!h)return u1&&M.debug.warn("reactRouterV6Instrumentation was unable to wrap `useRoutes` be
474cause of one or more missing parameters."),e;let r=r=>{let n=uN.useRef(!0),{routes:a,locationArg:o}=r,i=e(a,o),s=c(),l=d(),p="string"==typeof o||o?.pathname?o:s;return u(()=>{let e="string"==typeof p?{pathname:p}:p;n.current?(c$(a),cj({activeRootSpan:c_(),location:e,routes:a,allRoutes:Array.from(cT)}),n.current=!1):cW({location:e,routes:a,navigationType:l,version:t,allRoutes:Array.from(cT)})},[l,p]),i};return(e,t)=>uN.createElement(r,{routes:e,locationArg:t})}function cF(e,t=!1,r){if(!e||!("patchRoutesOnNavigation"in e)||"function"!=typeof e.patchRoutesOnNavigation)return e||{};let n=e.patchRoutesOnNavigation;return{...e,patchRoutesOnNavigation:async e=>{let a=e?.path,o=c_()??r;if(!t){let t=e?.patch,r=e?.matches;t&&(e.patch=(e,n)=>{if(c$(n),r&&r.length>0){let t=r[r.length-1],a=t?.route;if(a){let t=Array.from(cT).find(t=>{let r=void 0!==t.id&&t.id===e,n=t===a,o=void 0!==t.path&&void 0!==a.path&&t.path===a.path;return r||n||o});t&&cA(n,t)}}let i=o?(0,nN.spanToJSON)(o):void 0;return a&&o&&i&&!i.timestamp&&"navigation"===i.op&&cO(o,{pathname:a,search:"",hash:"",state:null,key:"default"},Array.from(cT),!0,h),t(e,n)})}let i=(async()=>{let t,r,i=(r={},ci.length>=10&&(u1&&M.debug.warn("[React Router] Navigation context stack overflow - removing oldest context"),ci.shift()),ci.push({token:r,targetPath:a,span:o}),r);try{t=await n(e)}finally{let e,t;e=ci[ci.length-1],e?.token===i&&ci.pop(),o&&(t=cI.get(o))&&(t(),cI.delete(o),o.__sentry_may_have_lazy_routes__&&(o.__sentry_may_have_lazy_routes__=!1))}let s=o?(0,nN.spanToJSON)(o):void 0;return o&&s&&!s.timestamp&&"navigation"===s.op&&a&&cO(o,{pathname:a,search:"",hash:"",state:null,key:"default"},Array.from(cT),!1,h),t})();return o&&cx(o,i),i}}}function cW(e){let{location:t,routes:r,navigationType:n,version:a,matches:o,basename:i,allRoutes:s}=e,l=Array.isArray(o)?o:h(s||r,t,i),u=(0,L.getClient)();if(!u||!cv.has(u))return;let c=c_();if((!c||"pageload"!==(0,nN.spanToJSON)(c).op||"POP"!==n)&&("PUSH"===n||"POP"===n)&&l){let e,[n,o]=cm(t,s||r,s||r,l,i),c=cR(t),d=cE.get(u),p=!!d&&!d.isPlaceholder&&!!(0,nN.spanToJSON)(d.span).timestamp,{skip:h,shouldUpdate:f}=function(e,t,r,n){if(!e)return{skip:!1,shouldUpdate:!1};if(e.locationKey===t&&(e.isPlaceholder||!n)){let t=!!e.routeName&&cc(e.routeName),n=cc(r),a=!!e.routeName&&cC(e.routeName),o=cC(r),i=r!==e.routeName&&r.length>(e.routeName?.length||0)&&!n;return{skip:!0,shouldUpdate:!!(e.routeName&&(t&&!n||!a&&o||i))}}return{skip:!1,shouldUpdate:!1}}(d,c,n,p);if(h){if(f&&d){let e=d.routeName;d.isPlaceholder?(d.routeName=n,u1&&M.debug.log(`[Tracing] Updated placeholder navigation name from "${e}" to "${n}" (will apply to real span)`)):(d.span.updateName(n),d.span.setAttribute(z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,o),(0,nA.addNonEnumerableProperty)(d.span,"__sentry_navigation_name_set__",!0),d.routeName=n,u1&&M.debug.log(`[Tracing] Updated navigation span name from "${e}" to "${n}"`))}else u1&&M.debug.log(`[Tracing] Skipping duplicate navigation for location: ${c}`);return}let g={span:{end:()=>{}},routeName:n,pathname:t.pathname,locationKey:c,isPlaceholder:!0};cE.set(u,g);try{e=(0,H.startBrowserTracingNavigationSpan)(u,{name:g.routeName,attributes:{[z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:o,[z.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.navigation.react.reactrouter_v${a}`}})}catch(e){throw cE.delete(u),e}e?(cE.set(u,{span:e,routeName:g.routeName,pathname:t.pathname,locationKey:c}),cG(e,t,r,i,"navigation")):cE.delete(u)}}function c$(e){e.forEach(e=>{(function e(t,r=new Set){return r.has(t)||(r.add(t),t.children&&!t.index&&t.children.forEach(t=>{e(t,r).forEach(e=>{r.add(e)})})),r})(e).forEach(e=>{cT.add(e)})})}function cj({activeRootSpan:e,location:t,routes:r,matches:n,basename:a,allRoutes:o}){let i=Array.isArray(n)?n:h(o||r,t,a);if(i){let[n,s]=cm(t,o||r,o||r,i,a);(0,L.getCurrentScope)().setTransactionName(n||"/"),e&&(e.updateName(n),e.setAttribute(z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,s),cG(e,t,r,a,"pageload"))}else e&&cG(e,t,r,a,"pageload")}function cH(e,t,r,n,a,o,i,s){try{let l=t.data?.[z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if("route"===l&&r&&!cc(r))return;let u=Array.from(s),c=u.length>0?u:a,d=h(c,n,o);if(!d)return;let[p,f]=cm(n,c,c,d,o),g=function(e,t,r,n,a=!1){return!!r&&(!!(!e&&a||e&&cc(e)&&"route"===n&&!cc(r))||"route"!==t&&"route"===n)}(r,l,p,f,!0),m="pageload"===i||!t.timestamp;g&&m&&(e.updateName(p),e.setAttribute(z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,f))}catch(e){u1&&M.debug.warn(`Error updating span details before ending: ${e}`)}}function cG(e,t,r,n,a){let o=`__sentry_${a}_end_patched__`;if(e?.[o]||!e.end)return;let i=e.end.bind(e),s=!1;e.end=function(...o){if(s)return;s=!0;let l=o.length>0?o[0]:Date.now()/1e3,u=(0,nN.spanToJSON)(e),c=u.description,d=u.data?.[z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],p=()=>{let t=(0,L.getClient)();if(t&&"navigation"===a){let r=cE.get(t);r&&r.span===e&&cE.delete(t)}},h=cw.get(e),f=e.__sentry_may_have_lazy_routes__;
474if((h&&h.size>0||f)&&c&&(cc(c)||"route"!==d)){let o;if(0===cS){cH(e,u,c,t,r,n,a,cT),p(),i(l);return}let s=new Promise(e=>setTimeout(e,cS));if(h&&h.size>0){let e=Promise.allSettled(h).then(()=>{});o=cS===1/0?e:Promise.race([e,s])}else o=s;o.then(()=>{let o=(0,nN.spanToJSON)(e);cH(e,o,o.description,t,r,n,a,cT),p(),i(l)}).catch(()=>{p(),i(l)});return}cH(e,u,c,t,r,n,a,cT),p(),i(l)},(0,nA.addNonEnumerableProperty)(e,o,!0)}function cz(e,t){if(!u||!c||!d||!p||!h)return u1&&M.debug.warn(`reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters. 475 useEffect: ${u}. useLocation: ${c}. useNavigationType: ${d}. 476 createRoutesFromChildren: ${p}. matchRoutes: ${h}.`),e;let r=r=>{let n=uN.useRef(!0),a=c(),o=d();return u(()=>{let e=p(r.children);n.current?(c$(e),cj({activeRootSpan:c_(),location:a,routes:e,allRoutes:Array.from(cT)}),n.current=!1):cW({location:a,routes:e,navigationType:o,version:t,allRoutes:Array.from(cT)})},[a,o]),uN.createElement(e,{...r})};return uK(r,e),r}function cq(e){return cB(e,"6")}function cY(e){return cU(e,"6")}function cJ(e){return cD(e,"6")}function cV(e){return cL(e,"6")}function cK(e){return cz(e,"6")}function cX(e){return cB(e,"7")}function cQ(e){return cz(e,"7")}function cZ(e){return cD(e,"7")}function c0(e){return cL(e,"7")}function c1(e){return cU(e,"7")}function c2(e){let t={};try{e.forEach((e,r)=>{"string"==typeof e&&(t[r]=e)})}catch{}return t}function c3(e){let t=Object.create(null);try{Object.entries(e).forEach(([e,r])=>{"string"==typeof r&&(t[e]=r)})}catch{}return t}function c5(e){let t=e.headers||{},r=("string"==typeof t["x-forwarded-host"]?t["x-forwarded-host"]:void 0)||("string"==typeof t.host?t.host:void 0),n=("string"==typeof t["x-forwarded-proto"]?t["x-forwarded-proto"]:void 0)||e.protocol||(e.socket?.encrypted?"https":"http"),a=e.url||"",o=function({url:e,protocol:t,host:r}){return e?.startsWith("http")?e:e&&r?`${t}://${r}${e}`:void 0}({url:a,host:r,protocol:n}),i=e.body||void 0,s=e.cookies;return{url:o,method:e.method,query_string:c6(a),headers:c3(t),cookies:s,data:i}}function c6(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 c4(){try{F&&M.debug.log("Flushing events..."),await (0,D.flush)(2e3),F&&M.debug.log("Done flushing events")}catch(e){F&&M.debug.log("Error while flushing events:\n",e)}}function c7(e){var t;"function"==typeof c8()?.waitUntil?(t=e,c8()?.waitUntil(t)):function(e){if("string"!=typeof EdgeRuntime)return;let t=O.GLOBAL_OBJ[Symbol.for("@vercel/request-context")],r=t?.get?.();r?.waitUntil&&r.waitUntil(e)}(e)}function c8(){let e=Symbol.for("__cloudflare-context__");return O.GLOBAL_OBJ[e]?.ctx}async function c9(e){let{req:t,res:r,err:n}=e,a=r?.statusCode||e.statusCode;if(a&&a<500||!e.pathname)return Promise.resolve();(0,L.withScope)(e=>{if(t){let r=c5(t);e.setSDKProcessingMetadata({normalizedRequest:r})}(0,D.captureException)(n||`_error.js called with falsy error (${n})`,{mechanism:{type:"auto.function.nextjs.underscore_error",handled:!1,data:{function:"_error.getInitialProps"}}})}),c7(c4())}e.s(["BrowserClient",()=>aU.BrowserClient,"ErrorBoundary",0,u3,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",0,ru,"OpenFeatureIntegrationHook",0,uS,"Profiler",0,uX,"SDK_VERSION",()=>rt.SDK_VERSION,"SEMANTIC_ATTRIBUTE_SENTRY_OP",()=>z.SEMANTIC_ATTRIBUTE_SENTRY_OP,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",()=>z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",()=>z.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",()=>z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"Scope",()=>rp.Scope,"WINDOW",()=>G.WINDOW,"addBreadcrumb",()=>rh.addBreadcrumb,"addEventProcessor",()=>D.addEventProcessor,"addIntegration",()=>eg.addIntegration,"breadcrumbsIntegration",()=>aq.breadcrumbsIntegration,"browserApiErrorsIntegration",()=>aK.browserApiErrorsIntegration,"browserProfilingIntegration",0,uf,"browserSessionIntegration",()=>um.browserSessionIntegration,"browserTracingIntegration",()=>H.browserTracingIntegration,"buildLaunchDarklyFlagUsedHandler",0,uy,"captureConsoleIntegration",0,ry,"captureEvent",()=>D.captureEvent,"captureException",()=>D.captureException,"captureFeedback",0,eT,"captureMessage",()=>D.captureMessage,"captureReactException",0,uM,"captureSession",()=>D.captureSession,"chromeStackLineParser",()=>aj.chromeStackLineParser,"close",()=>D.close,"consoleLoggingIntegration",0,rw,"contextLinesIntegration",0,or,"continueTrace",()=>rI.continueTrace,"createConsolaReporter",0,rR,"createLangChainCallbackHandler",0,nI,"createReduxEnhancer",0,u4,"createTransport",()=>nk.createTransport,"createUserFeedbackEnvelope",0,aG,"dedupeIntegration",()=>nR.dedupeIntegration,"defaultRequestInstrumentationOptions",()=>lq.defaultRequestInstrumentationOptions,"defaultStackLineParsers",()=>aj.defaultStackLineParsers,"defaultStackParser",()=>aj.defaultStackParser,"diagnoseSdkConnectivity",0,uR,"endSession",()=>D.endSession,"eventFiltersIntegration",()=>nC.eventFiltersIntegration,"eventFromException",()=>aH.eventFromException,"eventFromMessage",()=>aH.eventFromMessage,"exceptionFromError",()=>
476aH.exceptionFromError,"extraErrorDataIntegration",0,nx,"featureFlagsIntegration",0,nL,"feedbackAsyncIntegration",0,ro,"feedbackIntegration",0,ri,"feedbackSyncIntegration",0,ri,"flush",()=>D.flush,"forceLoad",()=>U.forceLoad,"functionToStringIntegration",()=>nB.functionToStringIntegration,"geckoStackLineParser",()=>aj.geckoStackLineParser,"getActiveSpan",()=>nN.getActiveSpan,"getClient",()=>L.getClient,"getCurrentScope",()=>L.getCurrentScope,"getDefaultIntegrations",()=>U.getDefaultIntegrations,"getFeedback",0,e2,"getGlobalScope",()=>L.getGlobalScope,"getIsolationScope",()=>L.getIsolationScope,"getReplay",0,l_,"getRootSpan",()=>nN.getRootSpan,"getSpanDescendants",()=>nN.getSpanDescendants,"getSpanStatusFromHttpCode",()=>rx.getSpanStatusFromHttpCode,"getTraceData",()=>nU.getTraceData,"globalHandlersIntegration",()=>aY.globalHandlersIntegration,"graphqlClientIntegration",0,oc,"growthbookIntegration",0,uI,"httpClientIntegration",0,a6,"httpContextIntegration",()=>aJ.httpContextIntegration,"inboundFiltersIntegration",()=>nC.inboundFiltersIntegration,"init",()=>B.init,"instrumentAnthropicAiClient",0,nz,"instrumentGoogleGenAIClient",0,nZ,"instrumentLangGraph",0,n1,"instrumentOpenAiClient",0,ae,"instrumentOutgoingRequests",()=>lq.instrumentOutgoingRequests,"instrumentSupabaseClient",0,al,"isEnabled",()=>D.isEnabled,"isInitialized",()=>D.isInitialized,"lastEventId",()=>D.lastEventId,"launchDarklyIntegration",0,u_,"lazyLoadIntegration",0,ra,"linkedErrorsIntegration",()=>aV.linkedErrorsIntegration,"logger",()=>ay,"makeBrowserOfflineTransport",0,lZ,"makeFetchTransport",()=>aF.makeFetchTransport,"makeMultiplexedTransport",0,rd,"metrics",()=>av,"moduleMetadataIntegration",0,ak,"onLoad",()=>U.onLoad,"openFeatureIntegration",0,ub,"opera10StackLineParser",()=>aj.opera10StackLineParser,"opera11StackLineParser",()=>aj.opera11StackLineParser,"parameterize",0,a_,"reactErrorHandler",0,uO,"reactRouterV3BrowserTracingIntegration",0,u7,"reactRouterV4BrowserTracingIntegration",0,ct,"reactRouterV5BrowserTracingIntegration",0,cr,"reactRouterV6BrowserTracingIntegration",0,cq,"reactRouterV7BrowserTracingIntegration",0,cX,"registerSpanErrorInstrumentation",()=>aR.registerSpanErrorInstrumentation,"registerWebWorker",0,ux,"replayCanvasIntegration",0,lz,"replayIntegration",0,lf,"reportPageLoaded",0,lY,"reportingObserverIntegration",0,a0,"rewriteFramesIntegration",()=>em.rewriteFramesIntegration,"sendFeedback",0,eY,"setActiveSpanInBrowser",0,lV,"setContext",()=>D.setContext,"setCurrentClient",()=>aC.setCurrentClient,"setExtra",()=>D.setExtra,"setExtras",()=>D.setExtras,"setHttpStatus",()=>rx.setHttpStatus,"setMeasurement",()=>aA.setMeasurement,"setTag",()=>D.setTag,"setTags",()=>D.setTags,"setUser",()=>D.setUser,"showReportDialog",0,az,"spanToBaggageHeader",()=>ax.spanToBaggageHeader,"spanToJSON",()=>nN.spanToJSON,"spanToTraceHeader",()=>nN.spanToTraceHeader,"spotlightBrowserIntegration",0,ug,"startBrowserTracingNavigationSpan",()=>H.startBrowserTracingNavigationSpan,"startBrowserTracingPageLoadSpan",()=>H.startBrowserTracingPageLoadSpan,"startInactiveSpan",()=>rI.startInactiveSpan,"startNewTrace",()=>rI.startNewTrace,"startSession",()=>D.startSession,"startSpan",()=>rI.startSpan,"startSpanManual",()=>rI.startSpanManual,"statsigIntegration",0,uk,"supabaseIntegration",0,au,"suppressTracing",()=>rI.suppressTracing,"tanstackRouterBrowserTracingIntegration",0,u9,"thirdPartyErrorFilterIntegration",0,aM,"uiProfiler",0,a$,"unleashIntegration",0,uv,"updateSpanName",()=>nN.updateSpanName,"useProfiler",0,uZ,"webWorkerIntegration",0,uC,"winjsStackLineParser",()=>aj.winjsStackLineParser,"withActiveSpan",()=>rI.withActiveSpan,"withErrorBoundary",0,u5,"withIsolationScope",()=>L.withIsolationScope,"withProfiler",0,uQ,"withScope",()=>L.withScope,"withSentryReactRouterV6Routing",0,cK,"withSentryReactRouterV7Routing",0,cQ,"withSentryRouting",0,ca,"wrapCreateBrowserRouterV6",0,cJ,"wrapCreateBrowserRouterV7",0,cZ,"wrapCreateMemoryRouterV6",0,cV,"wrapCreateMemoryRouterV7",0,c0,"wrapUseRoutesV6",0,cY,"wrapUseRoutesV7",0,c1,"zodErrorsIntegration",0,aB],111725),e.i(111725);var de=e.i(533241),dt=e.i(162774);function dr(){return N.default.env.NEXT_PHASE===dt.PHASE_PRODUCTION_BUILD}function dn(e){let t=dr(),r=!!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),r=t>>1&63,n=Array(6);for(let e=0;e<6;e++){let t=r>>5-e&1;n[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:n,hasRestArgs:1==(1&t)}}(e.$$id);return"use-cache"===t}(e);return r&&F&&M.debug.log("Skipping span creation in Cache Components context"),t||r}function da(){return new de.SentryNonRecordingSpan({traceId:"00000000000000000000000000000000",spanId:"0000000000000000"})}async function di(e,t,r){return(0,L.withIsolationScope)(async n=>{let a,o,i=(0,L.getClient)()?.getOptions().sendDefaultPii,s={};try{let e=await t.headers;a=e?.get("sentry-trace")??void 0,o=e?.get("baggage"),e?.forEach((e,t)=>{s[t]=e})}catch{F&&M.debug.warn("Sentry wasn't able to extract the tracing headers for a server action. Will not trace this request.")}return n.setTransactionName(`serverAction/${e}`),n.setSDKProcessingMetadata({normalizedRequest:{headers:s}}),((0,nN.getActiveSpan)()?(e,t)=>t():rI.continueTrace)({sentryTrace:a,baggage:o},async()=>{try{return await (0,rI.startSpan)({op:"function.server_action",name:`serverAction/${e}
476`,forceTransaction:!0,attributes:{[z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.function.nextjs.server_action"}},async e=>{let n=await (0,nF.handleCallbackErrors)(r,t=>{$(t)?e.setStatus({code:rx.SPAN_STATUS_ERROR,message:"not_found"}):j(t)||(e.setStatus({code:rx.SPAN_STATUS_ERROR,message:"internal_error"}),(0,D.captureException)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.server_action"}}))});return(void 0!==t.recordResponse?t.recordResponse:i)&&(0,L.getIsolationScope)().setExtra("server_action_result",n),t.formData&&t.formData.forEach((e,t)=>{(0,L.getIsolationScope)().setExtra(`server_action_form_data.${t}`,"string"==typeof e?e:"[non-string value]")}),n})}finally{c7(c4())}})})}var ds=e.i(137415),ds=ds;function dl(e){return async function(...t){try{return await e.apply(this,t)}catch(t){throw(0,D.captureException)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.wrapped",data:{function:e.name}}}),t}}}function du(e,t,r,n){return async function(...r){let a=c5(t);(0,L.getCurrentScope)().setTransactionName(`${n.dataFetchingMethodName} (${n.dataFetcherRouteName})`),(0,L.getIsolationScope)().setSDKProcessingMetadata({normalizedRequest:a});let o=(0,nN.getActiveSpan)();o&&"/_error"!==n.requestedRouteName&&(0,nN.getRootSpan)(o).setAttribute("sentry.route_backfill",n.requestedRouteName);let{"sentry-trace":i,baggage:s}=(0,nU.getTraceData)();return{sentryTrace:i,baggage:s,data:await e.apply(this,r)}}}async function dc(e,t){try{return await e(...t)}catch(e){throw(0,D.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.data_fetcher"}}),e}}var dd=e.i(548315),dp=e.i(266191);e.s(["BrowserClient",()=>aU.BrowserClient,"ErrorBoundary",0,u3,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",0,ru,"OpenFeatureIntegrationHook",0,uS,"Profiler",0,uX,"SDK_VERSION",()=>rt.SDK_VERSION,"SEMANTIC_ATTRIBUTE_SENTRY_OP",()=>z.SEMANTIC_ATTRIBUTE_SENTRY_OP,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",()=>z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",()=>z.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",()=>z.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"Scope",()=>rp.Scope,"WINDOW",()=>G.WINDOW,"addBreadcrumb",()=>rh.addBreadcrumb,"addEventProcessor",()=>D.addEventProcessor,"addIntegration",()=>eg.addIntegration,"breadcrumbsIntegration",()=>aq.breadcrumbsIntegration,"browserApiErrorsIntegration",()=>aK.browserApiErrorsIntegration,"browserProfilingIntegration",0,uf,"browserSessionIntegration",()=>um.browserSessionIntegration,"browserTracingIntegration",0,ef,"buildLaunchDarklyFlagUsedHandler",0,uy,"captureConsoleIntegration",0,ry,"captureEvent",()=>D.captureEvent,"captureException",()=>D.captureException,"captureFeedback",0,eT,"captureMessage",()=>D.captureMessage,"captureReactException",0,uM,"captureRequestError",0,function(e,t,r){(0,L.withScope)(n=>{n.setSDKProcessingMetadata({normalizedRequest:{headers:c3(t.headers),method:t.method}}),n.setContext("nextjs",{request_path:t.path,router_kind:r.routerKind,router_path:r.routePath,route_type:r.routeType}),n.setTransactionName(r.routePath),(0,D.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.on_request_error"}}),c7(c4())})},"captureRouterTransitionStart",0,function(e,t){g&&g(e,t)},"captureSession",()=>D.captureSession,"captureUnderscoreErrorException",0,c9,"chromeStackLineParser",()=>aj.chromeStackLineParser,"close",()=>D.close,"consoleLoggingIntegration",0,rw,"contextLinesIntegration",0,or,"continueTrace",()=>rI.continueTrace,"createConsolaReporter",0,rR,"createLangChainCallbackHandler",0,nI,"createReduxEnhancer",0,u4,"createTransport",()=>nk.createTransport,"createUserFeedbackEnvelope",0,aG,"dedupeIntegration",()=>nR.dedupeIntegration,"defaultRequestInstrumentationOptions",()=>lq.defaultRequestInstrumentationOptions,"defaultStackLineParsers",()=>aj.defaultStackLineParsers,"defaultStackParser",()=>aj.defaultStackParser,"diagnoseSdkConnectivity",0,uR,"endSession",()=>D.endSession,"eventFiltersIntegration",()=>nC.eventFiltersIntegration,"eventFromException",()=>aH.eventFromException,"eventFromMessage",()=>aH.eventFromMessage,"exceptionFromError",()=>
476aH.exceptionFromError,"extraErrorDataIntegration",0,nx,"featureFlagsIntegration",0,nL,"feedbackAsyncIntegration",0,ro,"feedbackIntegration",0,ri,"feedbackSyncIntegration",0,ri,"flush",()=>D.flush,"forceLoad",()=>U.forceLoad,"functionToStringIntegration",()=>nB.functionToStringIntegration,"geckoStackLineParser",()=>aj.geckoStackLineParser,"getActiveSpan",()=>nN.getActiveSpan,"getClient",()=>L.getClient,"getCurrentScope",()=>L.getCurrentScope,"getDefaultIntegrations",()=>U.getDefaultIntegrations,"getFeedback",0,e2,"getGlobalScope",()=>L.getGlobalScope,"getIsolationScope",()=>L.getIsolationScope,"getReplay",0,l_,"getRootSpan",()=>nN.getRootSpan,"getSpanDescendants",()=>nN.getSpanDescendants,"getSpanStatusFromHttpCode",()=>rx.getSpanStatusFromHttpCode,"getTraceData",()=>nU.getTraceData,"globalHandlersIntegration",()=>aY.globalHandlersIntegration,"graphqlClientIntegration",0,oc,"growthbookIntegration",0,uI,"httpClientIntegration",0,a6,"httpContextIntegration",()=>aJ.httpContextIntegration,"inboundFiltersIntegration",()=>nC.inboundFiltersIntegration,"init",0,function(e){var t;let r,n,a,o,i,s;ev&&(0,M.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`.")}),ev=!0,!F&&e.debug&&(0,M.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(){G.WINDOW.document&&function(e){let t=ee(e)||e,r=ey.get(t);if(void 0!==r)return r;let n=Z();if(!n?.isrRoutes||!Array.isArray(n.isrRoutes)||0===n.isrRoutes.length)return ey.set(t,!1),!1;let a=n.isrRoutes.includes(t);return ey.set(t,a),a}(G.WINDOW.location.pathname)&&(e("sentry-trace"),e("baggage"));function e(e){try{let t=G.WINDOW.document.querySelector(`meta[name="${e}"]`);t&&t.remove()}catch{}}}();let l={environment:((r=N.default.env.NEXT_PUBLIC_VERCEL_ENV)?`vercel-${r}`:void 0)||"production",defaultIntegrations:(t=e,n=(0,U.getDefaultIntegrations)(t),("u"<typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&n.push(ef()),a=eE._sentryRewriteFramesAssetPrefixPath||"",o=N.default.env._sentryAssetPrefix||eE._sentryAssetPrefix,i=N.default.env._sentryBasePath||eE._sentryBasePath,s="true"===N.default.env._experimentalThirdPartyOriginStackFrames||"true"===eE._experimentalThirdPartyOriginStackFrames,n.push(e_({assetPrefix:o,basePath:i,rewriteFramesAssetPrefixPath:a,experimentalThirdPartyOriginStackFrames:s})),n),release:N.default.env._sentryRelease||eE._sentryRelease,...e};!function(e){let t=N.default.env._sentryRewritesTunnelPath||eS._sentryRewritesTunnelPath;if(t&&e.dsn){let r=(0,eb.dsnFromString)(e.dsn);if(!r)return;let n=r.host.match(/^o(\d+)\.ingest(?:\.([a-z]{2}))?\.sentry\.io$/);if(n){let a=n[1],o=n[2],i=`${t}?o=${a}&p=${r.projectId}`;o&&(i+=`&r=${o}`),e.tunnel=i,F&&M.debug.log(`Tunneling events to "${i}"`)}else F&&M.debug.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(l),(0,P.applySdkMetadata)(l,"nextjs",["nextjs","react"]);let u=(0,B.init)(l),c=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;c.id="NextClient404Filter",(0,D.addEventProcessor)(c);let d=e=>"transaction"===e.type&&e.transaction===et?null:e;d.id="IncompleteTransactionFilter",(0,D.addEventProcessor)(d);let p=(e,t)=>j(t?.originalException)||e.exception?.values?.[0]?.value==="NEXT_REDIRECT"?null:e;p.id="NextRedirectErrorFilter",(0,D.addEventProcessor)(p);try{(0,L.getGlobalScope)().setTag("turbopack",!0)}catch{}return u},"instrumentAnthropicAiClient",0,nz,"instrumentGoogleGenAIClient",0,nZ,"instrumentLangGraph",0,n1,"instrumentOpenAiClient",0,ae,"instrumentOutgoingRequests",()=>lq.instrumentOutgoingRequests,"instrumentSupabaseClient",0,al,"isEnabled",()=>D.isEnabled,"isInitialized",()=>D.isInitialized,"lastEventId",()=>D.lastEventId,"launchDarklyIntegration",0,u_,"lazyLoadIntegration",0,ra,"linkedErrorsIntegration",()=>aV.linkedErrorsIntegration,"logger",()=>ay,"makeBrowserOfflineTransport",0,lZ,"makeFetchTransport",()=>aF.makeFetchTransport,"makeMultiplexedTransport",0,rd,"metrics",()=>av,"moduleMetadataIntegration",0,ak,"onLoad",()=>
476U.onLoad,"openFeatureIntegration",0,ub,"opera10StackLineParser",()=>aj.opera10StackLineParser,"opera11StackLineParser",()=>aj.opera11StackLineParser,"parameterize",0,a_,"reactErrorHandler",0,uO,"reactRouterV3BrowserTracingIntegration",0,u7,"reactRouterV4BrowserTracingIntegration",0,ct,"reactRouterV5BrowserTracingIntegration",0,cr,"reactRouterV6BrowserTracingIntegration",0,cq,"reactRouterV7BrowserTracingIntegration",0,cX,"registerSpanErrorInstrumentation",()=>aR.registerSpanErrorInstrumentation,"registerWebWorker",0,ux,"replayCanvasIntegration",0,lz,"replayIntegration",0,lf,"reportPageLoaded",0,lY,"reportingObserverIntegration",0,a0,"rewriteFramesIntegration",()=>em.rewriteFramesIntegration,"sendFeedback",0,eY,"setActiveSpanInBrowser",0,lV,"setContext",()=>D.setContext,"setCurrentClient",()=>aC.setCurrentClient,"setExtra",()=>D.setExtra,"setExtras",()=>D.setExtras,"setHttpStatus",()=>rx.setHttpStatus,"setMeasurement",()=>aA.setMeasurement,"setTag",()=>D.setTag,"setTags",()=>D.setTags,"setUser",()=>D.setUser,"showReportDialog",0,az,"spanToBaggageHeader",()=>ax.spanToBaggageHeader,"spanToJSON",()=>nN.spanToJSON,"spanToTraceHeader",()=>nN.spanToTraceHeader,"spotlightBrowserIntegration",0,ug,"startBrowserTracingNavigationSpan",()=>H.startBrowserTracingNavigationSpan,"startBrowserTracingPageLoadSpan",()=>H.startBrowserTracingPageLoadSpan,"startInactiveSpan",0,function(e){return dn()?da():(0,rI.startInactiveSpan)(e)},"startNewTrace",()=>rI.startNewTrace,"startSession",()=>D.startSession,"startSpan",0,function(e,t){return dn(t)?t(da()):(0,rI.startSpan)(e,t)},"startSpanManual",0,function(e,t){if(dn(t)){let e=da();return t(e,()=>e.end())}return(0,rI.startSpanManual)(e,t)},"statsigIntegration",0,uk,"supabaseIntegration",0,au,"suppressTracing",()=>rI.suppressTracing,"tanstackRouterBrowserTracingIntegration",0,u9,"thirdPartyErrorFilterIntegration",0,aM,"uiProfiler",0,a$,"unleashIntegration",0,uv,"updateSpanName",()=>nN.updateSpanName,"useProfiler",0,uZ,"webWorkerIntegration",0,uC,"winjsStackLineParser",()=>aj.winjsStackLineParser,"withActiveSpan",()=>rI.withActiveSpan,"withErrorBoundary",0,u5,"withIsolationScope",()=>L.withIsolationScope,"withProfiler",0,uQ,"withScope",()=>L.withScope,"withSentryConfig",0,function(e){return e},"withSentryReactRouterV6Routing",0,cK,"withSentryReactRouterV7Routing",0,cQ,"withSentryRouting",0,ca,"withServerActionInstrumentation",0,function(...e){if("function"==typeof e[1]){let[t,r]=e;return di(t,{},r)}{let[t,r,n]=e;return di(t,r,n)}},"wrapApiHandlerWithSentryVercelCrons",0,function(e,t){return new Proxy(e,{apply:(e,r,n)=>{let a;if(!n?.[0])return e.apply(r,n);let[o]=n,i="nextUrl"in o?o.nextUrl.pathname:o.url,s="nextUrl"in o?o.headers.get("user-agent"):o.headers["user-agent"];if(!t||!s?.includes("vercel-cron"))return e.apply(r,n);let l=t.find(e=>e.path===i);if(!l?.path||!l.schedule)return e.apply(r,n);let u=l.path,c=(0,D.captureCheckIn)({monitorSlug:u,status:"in_progress"},{maxRuntime:720,schedule:{type:"crontab",value:l.schedule}}),d=(0,ds.safeDateNow)()/1e3,p=()=>{(0,D.captureCheckIn)({checkInId:c,monitorSlug:u,status:"error",duration:(0,ds.safeDateNow)()/1e3-d})};try{a=e.apply(r,n)}catch(e){throw p(),e}return"object"==typeof a&&null!==a&&"then"in a?Promise.resolve(a).then(()=>{(0,D.captureCheckIn)({checkInId:c,monitorSlug:u,status:"ok",duration:(0,ds.safeDateNow)()/1e3-d})},()=>{p()}):(0,D.captureCheckIn)({checkInId:c,monitorSlug:u,status:"ok",duration:(0,ds.safeDateNow)()/1e3-d}),a}})},"wrapAppGetInitialPropsWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,r)=>{if(dr())return e.apply(t,r);let[n]=r,{req:a,res:o}=n.ctx,i=dl(e);if(!a||!o)return i.apply(t,r);{let e=du(i,a,o,{dataFetcherRouteName:"/_app",requestedRouteName:n.ctx.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,sentryTrace:l,baggage:u}=await e.apply(t,r);return"object"==typeof s&&null!==s&&(s.pageProps||(s.pageProps={}),l&&(s.pageProps._sentryTraceData=l),u&&(s.pageProps._sentryBaggage=u)),s}}})},"wrapCreateBrowserRouterV6",0,cJ,"wrapCreateBrowserRouterV7",0,cZ,"wrapCreateMemoryRouterV6",0,cV,"wrapCreateMemoryRouterV7",0,c0,"wrapDocumentGetInitialPropsWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,r)=>{if(dr())return e.apply(t,r);let[n]=r,{req:a,res:o}=n,i=dl(e);if(!a||!o)return i.apply(t,r);{let e=du(i,a,o,{dataFetcherRouteName:"/_document",requestedRouteName:n.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s}=await e.apply(t,r);return s}}})},"wrapErrorGetInitialPropsWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,r)=>{if(dr())return e.apply(t,r);let[n]=r,{req:a,res:o}=n,i=dl(e);if(!a||!o)return i.apply(t,r);{let e=du(i,a,o,{dataFetcherRouteName:"/_error",requestedRouteName:n.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,baggage:l,sentryTrace:u}=await e.apply(t,r);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,r,n)=>{let a,o=(0,L.getIsolationScope)();try{a=t.requestAsyncStorage?.getStore()?.headers}catch{}let i=a?c2(a):void 0;return o.setSDKProcessingMetadata({normalizedRequest:{headers:i}}),(0,nF.handleCallbackErrors)(()=>e.apply(r,n),e=>{let r=(0,nN.getActiveSpan)(),{componentRoute:n,componentType:a,generationFunctionIdentifier:i}=t,s=!0;o.setTransactionName(`${a}.${i} (${n})`),r&&($(e)?(s=!1,r.setStatus({code:rx.SPAN_STATUS_ERROR,message:"not_found"})):j(e)?(s=!1,r.setStatus({code:rx.SPAN_STATUS_OK})):r.setStatus({code:rx.SPAN_STATUS_ERROR,message:"internal_error"})),s&&(0,D.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.generation_function",data:{function:i}}})},()=>{c7(c4())})}})},"wrapGetInitialPropsWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,r)=>{if(dr())return e.apply(t,r);let[n]=r,{req:a,res:o}=n,i=dl(e);if(!a||!o)return i.apply(t,r);{let e=du(i,a,o,{dataFetcherRouteName:n.pathname,requestedRouteName:n.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,baggage:l,sentryTrace:u}=await e.apply(t,r)??{};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,r,n)=>{if(dr())return e.apply(r,n);let[a]=n,{req:o,res:i}=a,s=du(dl(e),o,i,{dataFetcherRouteName:t,requestedRouteName:t,dataFetchingMethodName:"getServerSideProps"}),{data:l,baggage:u,sentryTrace:c}=await s.apply(r,n);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,r)=>dr()?e.apply(t,r):dc(dl(e),r)})},"wrapMiddlewareWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,r)=>{let n="_sentryRewritesTunnelPath"in globalThis?globalThis._sentryRewritesTunnelPath:void 0;if(n&&"string"==typeof n){let e=r[0];if(e instanceof Request&&new URL(e.url).pathname.startsWith(n))return new Response(null,{status:200,headers:{"x-middleware-next":"1"}})}return(0,L.withIsolationScope)(n=>{let a,o,i=r[0],s=(0,L.getCurrentScope)();if(i instanceof Request){let e;n.setSDKProcessingMetadata({normalizedRequest:(e=c2(i.headers),{method:i.method,url:i.url,query_string:c6(i.url),headers:e})}),a=`middleware ${i.method}`,o="url"}else a="middleware",o="component";s.setTransactionName(a);let l=(0,nN.getActiveSpan)();if(l){a="middleware",o="component";let e=(0,nN.getRootSpan)(l);e&&(0,dd.setCapturedScopesOnSpan)(e,s,n)}return(0,rI.startSpan)({name:a,op:"http.server.middleware",attributes:{[z.
476SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:o,[z.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.function.nextjs.wrap_middleware"}},()=>(0,nF.handleCallbackErrors)(()=>e.apply(t,r),e=>{(0,D.captureException)(e,{mechanism:{type:"auto.function.nextjs.wrap_middleware",handled:!1}})},()=>{c7(c4())}))})}})},"wrapPageComponentWithSentry",0,function(e){return"function"==typeof e&&e?.prototype?.isReactComponent?class extends e{render(...e){return(0,L.withIsolationScope)(()=>{let t=(0,L.getCurrentScope)(),r="object"==typeof this.props&&null!==this.props&&"_sentryTraceData"in this.props&&"string"==typeof this.props._sentryTraceData?this.props._sentryTraceData:void 0;if(r){let e=(0,dp.extractTraceparentData)(r);t.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return super.render(...e)}catch(e){throw(0,D.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.page_class"}}),e}})}}:"function"==typeof e?new Proxy(e,{apply:(e,t,r)=>(0,L.withIsolationScope)(()=>{let n=(0,L.getCurrentScope)(),a=r?.[0]?._sentryTraceData;if(a){let e=(0,dp.extractTraceparentData)(a);n.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return e.apply(t,r)}catch(e){throw(0,D.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.page_function"}}),e}})}):e},"wrapRouteHandlerWithSentry",0,function(e,t){let{method:r,parameterizedRoute:n,headers:a}=t;return new Proxy(e,{apply:async(e,t,a)=>{let o=(0,nN.getActiveSpan)(),i=o?(0,nN.getRootSpan)(o):void 0;return(0,L.withIsolationScope)((0,L.getIsolationScope)(),()=>(0,L.withScope)(async s=>{s.setTransactionName(`${r} ${n}`);let l=await (0,nF.handleCallbackErrors)(()=>e.apply(t,a),e=>{j(e)||($(e)?(o&&(0,rx.setHttpStatus)(o,404),i&&(0,rx.setHttpStatus)(i,404)):(0,D.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.route_handler"}}))},()=>{c7(c4())});try{l.status&&(o&&(0,rx.setHttpStatus)(o,l.status),i&&(0,rx.setHttpStatus)(i,l.status))}catch{}return l}))}})},"wrapServerComponentWithSentry",0,function(e,t){return new Proxy(e,{apply:(e,r,n)=>{let a=(0,L.getIsolationScope)(),o=t.headers?c2(t.headers):void 0;return a.setSDKProcessingMetadata({normalizedRequest:{headers:o}}),(0,nF.handleCallbackErrors)(()=>e.apply(r,n),e=>{let r=(0,nN.getActiveSpan)(),{componentRoute:n,componentType:o}=t,i=!0;a.setTransactionName(`${o} Server Component (${n})`),r&&($(e)?(i=!1,r.setStatus({code:rx.SPAN_STATUS_ERROR,message:"not_found"})):j(e)?(i=!1,r.setStatus({code:rx.SPAN_STATUS_OK})):r.setStatus({code:rx.SPAN_STATUS_ERROR,message:"internal_error"})),i&&(0,D.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.server_component"}})},()=>{c7(c4())})}})},"wrapUseRoutesV6",0,cY,"wrapUseRoutesV7",0,c1,"zodErrorsIntegration",0,aB],160897);var dh=e.i(160897);let df=e=>{var t,r;return null!=(t=dh[e])?t:null==(r=dh.default)?void 0:r[e]};e.s(["captureException",0,(...e)=>df("captureException")(...e),"captureMessage",0,(...e)=>df("captureMessage")(...e)],293866)}]); 477 478//# debugId=53204bfb-c30b-c69f-d114-0fc50b236f0e 479//# sourceMappingURL=2t-k5k63hjt_1.js.map
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.