PageSourceSearch

https://codepress.dev/_next/static/immutable/chunks/3ygfagnbo7sy3.js

js codepress.dev collected 2026-09-24 14:59:37 UTC 225,959 bytes, 475 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="9e94de33-8941-beab-da0c-a84f84f08f9f")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,476445,e=>{"use strict";let t,n,r,a,o,i,s,l,u;e.s([],677177),e.i(677177);var c,p,d,f=e.i(934611);e.s([],446877),e.i(446877),e.s([],592707),e.i(592707);var g=e.i(351811),h=e.i(477835);function _(e,t={},n=(0,h.getCurrentScope)()){let{message:r,name:a,email:o,url:i,source:s,associatedEventId:l,tags:u}=e,c={contexts:{feedback:{contact_email:o,name:a,message:r,url:i,source:s,associated_event_id:l}},type:"feedback",level:"info",tags:u},p=n?.getClient()||(0,h.getClient)();return p&&p.emit("beforeSendFeedback",c,t),n.captureEvent(c,t)}var m=e.i(166168),y=e.i(628078),b=e.i(607554),S=e.i(295940);let v=g.GLOBAL_OBJ,T=v.document,E=v.navigator,I="Report a Bug",w="Cancel",R="Send Bug Report",A="Confirm",k="Report a Bug",C="[email protected]",N="Email",x="What's the bug? What did you expect?",O="Description",P="Your Name",B="Name",U="Thank you for your report!",D="(required)",L="Add a screenshot",M="Remove screenshot",F="Highlight",W="Hide",j="Remove",$="Unable to submit feedback with empty message",G="No client setup, cannot send feedback.",H="Unable to determine if Feedback was correctly sent.",q="Unable to send feedback. This could be because this domain is not in your list of allowed domains.",z="Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.",Y={ERROR_EMPTY_MESSAGE:$,E
2RROR_NO_CLIENT:G,ERROR_TIMEOUT:H,ERROR_FORBIDDEN:q,ERROR_GENERIC:z};function V(e,t){return t?.[e]??Y[e]}let J=(e,t={includeReplay:!0})=>{let n=t.errorMessages;if(!e.message)throw Error(V("ERROR_EMPTY_MESSAGE",n));let r=(0,h.getClient)();if(!r)throw Error(V("ERROR_NO_CLIENT",n));e.tags&&Object.keys(e.tags).length&&(0,h.getCurrentScope)().setTags(e.tags);let a=_({source:"api",url:(0,m.getLocationHref)(),...e},t);return new Promise((e,t)=>{let o=setTimeout(()=>{i(),t(V("ERROR_TIMEOUT",n))},3e4),i=r.on("afterSendEvent",(r,s)=>{if(r.event_id===a)return(clearTimeout(o),i(),s?.statusCode&&s.statusCode>=200&&s.statusCode<300)?e(a):s?.statusCode===403?t(V("ERROR_FORBIDDEN",n)):t(V("ERROR_GENERIC",n))})})};function K(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function Q(e,t){return Object.entries(t).forEach(([t,n])=>{e.setAttributeNS(null,t,n)}),e}let X="rgba(88, 74, 192, 1)",Z={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:X,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%)"},ee={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:X,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 et(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  `}function en({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){let a=T.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  ${et("dark"===e?{...ee,...t}:{...Z,...n})}
29}
30
31${"system"===e?`
32@media (prefers-color-scheme: dark) {
33  :host {
34    color-scheme: only dark;
35
36    ${et({...ee,...t})}
37  }
38}`:""}
39`,r&&a.setAttribute("nonce",r),a}let er=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:r="sentry-feedback",autoInject:a=!0,showBranding:o=!0,isEmailRequired:i=!1,isNameRequired:s=!1,showEmail:l=!0,showName:u=!0,enableScreenshot:c=!0,useSentryUser:p={email:"email",name:"username"},tags:d,styleNonce:f,scriptNonce:g,colorScheme:h="system",themeLight:_={},themeDark:m={},addScreenshotButtonLabel:b=L,cancelButtonLabel:Y=w,confirmButtonLabel:V=A,emailLabel:X=N,emailPlaceholder:Z=C,formTitle:ee=k,isRequiredLabel:et=D,messageLabel:er=O,messagePlaceholder:ea=x,nameLabel:eo=B,namePlaceholder:ei=P,removeScreenshotButtonLabel:es=M,submitButtonLabel:el=R,successMessageText:eu=U,triggerLabel:ec=I,triggerAriaLabel:ep="",highlightToolText:ed=F,hideToolText:ef=W,removeHighlightText:eg=j,errorEmptyMessageText:eh=$,errorNoClientText:e_=G,errorTimeoutText:em=H,errorForbiddenText:ey=q,errorGenericText:eb=z,onFormOpen:eS,onFormClose:ev,onSubmitSuccess:eT,onSubmitError:eE,onFormSubmitted:eI}={})=>{let ew={id:r,autoInject:a,showBranding:o,isEmailRequired:i,isNameRequired:s,showEmail:l,showName:u,enableScreenshot:c,useSentryUser:p,tags:d,styleNonce:f,scriptNonce:g,colorScheme:h,themeDark:m,themeLight:_,triggerLabel:ec,triggerAriaLabel:ep,cancelButtonLabel:Y,submitButtonLabel:el,confirmButtonLabel:V,formTitle:ee,emailLabel:X,emailPlaceholder:Z,messageLabel:er,messagePlaceholder:ea,nameLabel:eo,namePlaceholder:ei,successMessageText:eu,isRequiredLabel:et,addScreenshotButtonLabel:b,removeScreenshotButtonLabel:es,highlightToolText:ed,hideToolText:ef,removeHighlightText:eg,errorEmptyMessageText:eh,errorNoClientText:e_,errorTimeoutText:em,errorForbiddenText:ey,errorGenericText:eb,onFormClose:ev,onFormOpen:eS,onSubmitError:eE,onSubmitSuccess:eT,onFormSubmitted:eI},eR=null,eA=null,ek=[],eC=e=>{if(!eR){let t=T.createElement("div");t.id=String(e.id),T.body.appendChild(t),eR=t.attachShadow({mode:"open"}),eA=en(e),eR.appendChild(eA)}return eR},eN=async r=>{let a,o,i=r.enableScreenshot&&!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(E.userAgent)||/Macintosh/i.test(E.userAgent)&&E.maxTouchPoints&&E.maxTouchPoints>1)&&!!isSecureContext;try{a=(t?t():await e("feedbackModalIntegration",g))(),(0,S.addIntegration)(a)}catch{throw Error("[Feedback] Missing feedback modal integration!")}try{let t=i?n?n():await e("feedbackScreenshotIntegration",g):void 0;
39t&&(o=t(),(0,S.addIntegration)(o))}catch{}let s={ERROR_EMPTY_MESSAGE:r.errorEmptyMessageText,ERROR_NO_CLIENT:r.errorNoClientText,ERROR_TIMEOUT:r.errorTimeoutText,ERROR_FORBIDDEN:r.errorForbiddenText,ERROR_GENERIC:r.errorGenericText},l=a.createDialog({options:{...r,onFormClose:()=>{l?.close(),r.onFormClose?.()},onFormSubmitted:()=>{l?.close(),r.onFormSubmitted?.()}},screenshotIntegration:o,sendFeedback:(e,t)=>J(e,{includeReplay:!0,...t,errorMessages:s}),shadow:eC(r)});return l},ex=(e,t={})=>{let n=K(ew,t),r="string"==typeof e?T.querySelector(e):"function"==typeof e.addEventListener?e:null;if(!r)throw Error("Unable to attach to target element");let a=null,o=async()=>{a||(a=await eN({...n,onFormSubmitted:()=>{a?.removeFromDom(),n.onFormSubmitted?.()}})),a.appendToDom(),a.open()};r.addEventListener("click",o);let i=()=>{ek=ek.filter(e=>e!==i),a?.removeFromDom(),a=null,r.removeEventListener("click",o)};return ek.push(i),i},eO=(e={})=>{let t=K(ew,e),n=eC(t),r=function({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){let a,o,i,s,l,u,c,p,d=T.createElement("button");if(d.type="button",d.className="widget__actor",d.ariaHidden="false",d.ariaLabel=t||e||I,d.appendChild((o=Q((a=e=>v.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=Q(a("g"),{clipPath:"url(#clip0_57_80)"}),s=Q(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=Q(a("clipPath"),{id:"clip0_57_80"}),c=Q(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=T.createElement("span");t.appendChild(T.createTextNode(e)),d.appendChild(t)}let f=((p=T.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`,r&&p.setAttribute("nonce",r),p);return{el:d,appendToDom(){n.appendChild(f),n.appendChild(d)},removeFromDom(){d.remove(),f.remove()},show(){d.ariaHidden="false"},hide(){d.ariaHidden="true"}}}({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:f});return ex(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:"Feedback",setupOnce(){(0,y.isBrowser)()&&ew.autoInject&&("loading"===T.readyState?T.addEventListener("DOMContentLoaded",()=>eO().appendToDom()):eO().appendToDom())},attachTo:ex,createWidget(e={}){let t=eO(K(ew,e));return t.appendToDom(),t},createForm:async(e={})=>eN(K(ew,e)),setTheme(e){if(ew.colorScheme=e,eR){let e=en(ew);eA?eR.replaceChild(e,eA):eR.prepend(e),eA=e}},remove(){eR&&(eR.parentElement?.remove(),eR=null,eA=null),ek.forEach(e=>e()),ek=[]}}};function ea(){let e=(0,h.getClient)();return e?.getIntegrationByName("Feedback")}var eo,ei,es,el,eu,ec,ep,ed={},ef=[],eg=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,eh=Array.isArray;function e_(e,t){for(var n in t)e[n]=t[n];return e}function em(e){var t=e.parentNode;t&&t.removeChild(e)}function ey(e,t,n){var r,a,o,i={};for(o in t)"key"==o?r=t[o]:"ref"==o?a=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?eo.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===i[o]&&(i[o]=e.defaultProps[o]);return eb(e,i,r,a,null)}function eb(e,t,n,r,a){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++es:a,__i:-1,__u:0};return null==a&&null!=ei.vnode&&ei.vnode(o),o}function eS(e){return e.children}function ev(e,t){this.props=e,this.context=t}function eT(e,t){if(null==t)return e.__?eT(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?eT(e):null}function eE(e){(!e.__d&&(e.__d=!0)&&el.push(e)&&!eI.__r++||eu!==ei.debounceRendering)&&((eu=ei.debounceRendering)||ec)(eI)}function eI(){var e,t,n,r=[],a=[];for(el.sort(ep);e=el.shift();)e.__d&&(n=el.length,t=function(e,t,n){var r,a=e.__v,o=a.__e,i=e.__P;if(i)return(r=e_({},a)).__v=a.__v+1,ei.vnode&&ei.vnode(r),eN(i,r,a,e.__n,void 0!==i.ownerSVGElement,32&a.__u?[o]:null,t,null==o?eT(a):o,!!(32&a.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=o&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(r),r}(e,r,a)||t,0===n||el.length>n?(ex(r,t,a),a.length=r.length=0,t=void 0,el.sort(ep)):t&&ei.__c&&ei.__c(t,ef));t&&ex(r,t,a),eI.__r=0}function ew(e,t,n,r,a,o,i,s,l,u,c){var p,d,f,g,h,_=r&&r.__k||ef,m=t.length;for(n.__d=l,function(e,t,n){var r,a,o,i,s,l=t.length,u=n.length,c=u,p=0;for(e.__k=[],r=0;r<l;r++)null!=(a=e.__k[r]=null==(a=t[r])||"boolean"==typeof a||"function"==typeof a?null:"string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?eb(null,a,null,null,a):eh(a)?eb(eS,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?eb(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a)?(a.__=e,a.__b=e.__b+1,s=function(e,t,n,r){var a=e.key,o=e.type,i=n-1,s=n+1,l=t[n];if(null===l||l&&a==l.key&&o===l.type)return n;if(r>+(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--}
vendor: 2,923 bytes, line 90
90if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&a==l.key&&o===l.type)return s;s++}}return -1}(a,n,i=r+p,c),a.__i=s,o=null,-1!==s&&(c--,(o=n[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&p--,"function"!=typeof a.type&&(a.__u|=65536)):s!==i&&(s===i+1?p++:s>i?c>l-i?p+=s-i:p--:p=s<i&&s==i-1?s-i:0,s!==r+p&&(a.__u|=65536))):(o=n[r])&&null==o.key&&o.__e&&(o.__e==e.__d&&(e.__d=eT(o)),eP(o,o,!1),n[r]=null,c--);if(c)for(r=0;r<u;r++)null!=(o=n[r])&&0==(131072&o.__u)&&(o.__e==e.__d&&(e.__d=eT(o)),eP(o,o))}(n,t,_),l=n.__d,p=0;p<m;p++)null!=(f=n.__k[p])&&"boolean"!=typeof f&&"function"!=typeof f&&(d=-1===f.__i?ed:_[f.__i]||ed,f.__i=p,eN(e,f,d,a,o,i,s,l,u,c),g=f.__e,f.ref&&d.ref!=f.ref&&(d.ref&&eO(d.ref,null,f),c.push(f.ref,f.__c||g,f)),null==h&&null!=g&&(h=g),65536&f.__u||d.__k===f.__k?l=function e(t,n,r){var a,o;if("function"==typeof t.type){for(a=t.__k,o=0;a&&o<a.length;o++)a[o]&&(a[o].__=t,n=e(a[o],n,r));return n}t.__e!=n&&(r.insertBefore(t.__e,n||null),n=t.__e);do n=n&&n.nextSibling;while(null!=n&&8===n.nodeType)return n}(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:g&&(l=g.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=h}function eR(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||eg.test(t)?n:n+"px"}function eA(e,t,n,r,a){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||eR(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||eR(e.style,t,n[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]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,o?eC:ek,o)):e.removeEventListener(t,o?eC:ek,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==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function ek(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(ei.event?ei.event(e):e)}}function eC(e){if(this.l)return this.l[e.type+!0](ei.event?ei.event(e):e)}function eN(e,t,n,r,a,o,i,s,l,u){var c,p,d,f,g,h,_,m,y,b,S,v,T,E,I,w=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),o=[s=t.__e=n.__e]),(c=ei.__b)&&c(t);e:if("function"==typeof w)try{if(m=t.props,y=(c=w.contextType)&&r[c.__c],b=c?y?y.props.value:c.__:r,n.__c?_=(p=t.__c=n.__c).__=p.__E:("prototype"in w&&w.prototype.render?t.__c=p=new w(m,b):(t.__c=p=new ev(m,b),p.constructor=w,p.render=eB),y&&y.sub(p),p.props=m,p.state||(p.state={}),p.context=b,p.__n=r,d=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=w.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=e_({}
90,p.__s)),e_(p.__s,w.getDerivedStateFromProps(m,p.__s))),f=p.props,g=p.state,p.__v=t,d)null==w.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==w.getDerivedStateFromProps&&m!==f&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(m,b),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(m,p.__s,b)||t.__v===n.__v)){for(t.__v!==n.__v&&(p.props=m,p.state=p.__s,p.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),S=0;S<p._sb.length;S++)p.__h.push(p._sb[S]);p._sb=[],p.__h.length&&i.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(m,p.__s,b),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(f,g,h)})}if(p.context=b,p.props=m,p.__P=e,p.__e=!1,v=ei.__r,T=0,"prototype"in w&&w.prototype.render){for(p.state=p.__s,p.__d=!1,v&&v(t),c=p.render(p.props,p.state,p.context),E=0;E<p._sb.length;E++)p.__h.push(p._sb[E]);p._sb=[]}else do p.__d=!1,v&&v(t),c=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++T<25)p.state=p.__s,null!=p.getChildContext&&(r=e_(e_({},r),p.getChildContext())),d||null==p.getSnapshotBeforeUpdate||(h=p.getSnapshotBeforeUpdate(f,g)),ew(e,eh(I=null!=c&&c.type===eS&&null==c.key?c.props.children:c)?I:[I],t,n,r,a,o,i,s,l,u),p.base=t.__e,t.__u&=-161,p.__h.length&&i.push(p),_&&(p.__E=p.__=null)}catch(e){t.__v=null,l||null!=o?(t.__e=s,t.__u|=l?160:32,o[o.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),ei.__e(e,t,n)}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,a,o,i,s,l){var u,c,p,d,f,g,h,_=n.props,m=t.props,y=t.type;if("svg"===y&&(a=!0),null!=o){for(u=0;u<o.length;u++)if((f=o[u])&&"setAttribute"in f==!!y&&(y?f.localName===y:3===f.nodeType)){e=f,o[u]=null;break}}if(null==e){if(null===y)return document.createTextNode(m);e=a?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,m.is&&m),o=null,s=!1}if(null===y)_===m||s&&e.data===m||(e.data=m);else{if(o=o&&eo.call(e.childNodes),_=n.props||ed,!s&&null!=o)for(_={},u=0;u<e.attributes.length;u++)_[(f=e.attributes[u]).name]=f.value;for(u in _)f=_[u],"children"==u||("dangerouslySetInnerHTML"==u?p=f:"key"===u||u in m||eA(e,u,null,f,a));for(u in m)f=m[u],"children"==u?d=f:"dangerouslySetInnerHTML"==u?c=f:"value"==u?g=f:"checked"==u?h=f:"key"===u||s&&"function"!=typeof f||_[u]===f||eA(e,u,f,_[u],a);if(c)s||p&&(c.__html===p.__html||c.__html===e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(p&&(e.innerHTML=""),ew(e,eh(d)?d:[d],t,n,r,a&&"foreignObject"!==y,o,i,o?o[0]:n.__k&&eT(n,0),s,l),null!=o)for(u=o.length;u--;)null!=o[u]&&em(o[u]);s||(u="value",void 0===g||g===e[u]&&("progress"!==y||g)&&("option"!==y||g===_[u])||eA(e,u,g,_[u],!1),u="checked",void 0!==h&&h!==e[u]&&eA(e,u,h,_[u],!1))}return e}(n.__e,t,n,r,a,o,i,l,u);(c=ei.diffed)&&c(t)}function ex(e,t,n){for(var r=0;r<n.length;r++)eO(n[r],n[++r],n[++r]);ei.__c&&ei.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){ei.__e(e,t.__v)}})}function eO(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){ei.__e(e,n)}}function eP(e,t,n){var r,a;if(ei.unmount&&ei.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||eO(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){ei.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(a=0;a<r.length;a++)r[a]&&eP(r[a],t,n||"function"!=typeof e.type);n||null==e.__e||em(e.__e),e.__=e.__e=e.__d=void 0}function eB(e,t,n){return this.constructor(e,n)}eo=ef.slice,ei={__e:function(e,t,n,r){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,r||{}),i=a.__d),i)return a.__E=a}catch(t){e=t}throw e}},es=0,ev.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=e_({},this.state),"function"==typeof e&&(e=e(e_({},n),this.props)),e&&e_(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),eE(this))},ev.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),eE(this))},ev.prototype.render=eS,el=[],ec="function"==typeof Promise?Promise.prototype.then.bind(Prom
90ise.resolve()):setTimeout,ep=function(e,t){return e.__v.__b-t.__v.__b},eI.__r=0;var eU,eD,eL,eM,eF=0,eW=[],ej=[],e$=ei,eG=e$.__b,eH=e$.__r,eq=e$.diffed,ez=e$.__c,eY=e$.unmount,eV=e$.__;function eJ(e,t){e$.__h&&e$.__h(eD,e,eF||t),eF=0;var n=eD.__H||(eD.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:ej}),n.__[e]}function eK(e){return eF=1,eQ(e3,e)}function eQ(e,t,n){var r=eJ(eU++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):e3(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=eD,!eD.u)){var a=function(e,t,n){if(!r.__c.__H)return!0;var a=r.__c.__H.__.filter(function(e){return!!e.__c});if(a.every(function(e){return!e.__N}))return!o||o.call(this,e,t,n);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&&r.__c.props===e)&&(!o||o.call(this,e,t,n))};eD.u=!0;var o=eD.shouldComponentUpdate,i=eD.componentWillUpdate;eD.componentWillUpdate=function(e,t,n){if(this.__e){var r=o;o=void 0,a(e,t,n),o=r}i&&i.call(this,e,t,n)},eD.shouldComponentUpdate=a}return r.__N||r.__}function eX(e,t){var n=eJ(eU++,4);!e$.__s&&e4(n.__H,t)&&(n.__=e,n.i=t,eD.__h.push(n))}function eZ(e,t){var n=eJ(eU++,7);return e4(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function e0(e,t){return eF=8,eZ(function(){return e},t)}function e1(){for(var e;e=eW.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(e6),e.__H.__h.forEach(e5),e.__H.__h=[]}catch(t){e.__H.__h=[],e$.__e(t,e.__v)}}e$.__b=function(e){eD=null,eG&&eG(e)},e$.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),eV&&eV(e,t)},e$.__r=function(e){eH&&eH(e),eU=0;var t=(eD=e.__c).__H;t&&(eL===eD?(t.__h=[],eD.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=ej,e.__N=e.i=void 0})):(t.__h.forEach(e6),t.__h.forEach(e5),t.__h=[],eU=0)),eL=eD},e$.diffed=function(e){eq&&eq(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==eW.push(t)&&eM===e$.requestAnimationFrame||((eM=e$.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),e2&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);e2&&(t=requestAnimationFrame(n))})(e1)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==ej&&(e.__=e.__V),e.i=void 0,e.__V=ej})),eL=eD=null},e$.__c=function(e,t){t.some(function(e){try{e.__h.forEach(e6),e.__h=e.__h.filter(function(e){return!e.__||e5(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],e$.__e(n,e.__v)}}),ez&&ez(e,t)},e$.unmount=function(e){eY&&eY(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{e6(e)}catch(e){t=e}}),n.__H=void 0,t&&e$.__e(t,n.__v))};var e2="function"==typeof requestAnimationFrame;function e6(e){var t=eD,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),eD=t}function e5(e){var t=eD;e.__c=e.__(),eD=t}function e4(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function e3(e,t){return"function"==typeof t?t(e):t}let e7=Object.defineProperty({__proto__:null,useCallback:e0,useContext:function(e){var t=eD.context[e.__c],n=eJ(eU++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(eD)),t.props.value):e.__},useDebugValue:function(e,t){e$.useDebugValue&&e$.useDebugValue(t?t(e):e)},useEffect:function(e,t){var n=eJ(eU++,3);!e$.__s&&e4(n.__H,t)&&(n.__=e,n.i=t,eD.__H.__h.push(n))},useErrorBoundary:function(e){var t=eJ(eU++,10),n=eK();return t.__=e,eD.componentDidCatch||(eD.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:function(){var e=eJ(eU++,11);if(!e.__){for(var t=eD.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__},useImperativeHandle:function(e,t,n){eF=6,eX(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))},useLayoutEffect:eX,useMemo:eZ,useReducer:eQ,useRef:function(e){return eF=5,eZ(function(){return{current:e}},[])},useState:eK},Symbol.toStringTag,{value:"Module"});function e9({options:e}){let t=eZ(()=>{let e,t;return{__html:(e=Q(T.createElementNS("http://www.w3.org/2000/svg","svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),t=Q(T.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 ey("h2",{class:"dialog__header"},ey("span",{class:"dialog__title"},e.formTitle),e.showBranding?ey("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function e8(e,t){let n=e.get(t);return"string"==typeof n?n.trim():""}function te({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:a,onSubmitSuccess:o,onSubmitError:i,showEmail
90:s,showName:l,screenshotInput:u}){let{tags:c,addScreenshotButtonLabel:p,removeScreenshotButtonLabel:d,cancelButtonLabel:f,emailLabel:g,emailPlaceholder:h,isEmailRequired:_,isNameRequired:m,messageLabel:y,messagePlaceholder:b,nameLabel:S,namePlaceholder:v,submitButtonLabel:T,isRequiredLabel:E}=e,[I,w]=eK(!1),[R,A]=eK(null),[k,C]=eK(!1),N=u?.input,[x,O]=eK(null),P=e0(e=>{O(e),C(!1)},[]),B=e0(e=>{var t;let n,r=(n=[],(t={emailLabel:g,isEmailRequired:_,isNameRequired:m,messageLabel:y,nameLabel:S}).isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n);return r.length>0?A(`Please enter in the following required fields: ${r.join(", ")}`):A(null),0===r.length},[g,_,m,y,S]);return ey("form",{class:"form",onSubmit:e0(async e=>{w(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target),n=await (u&&k?u.value():void 0),r={name:e8(t,"name"),email:e8(t,"email"),message:e8(t,"message"),attachments:n?[n]:void 0};if(!B(r))return;try{let e=await a({name:r.name,email:r.email,message:r.message,source:"widget",tags:c},{attachments:r.attachments});o(r,e)}catch(t){let e=t instanceof Error?t:Error(String(t));A(e.message),i(e)}}finally{w(!1)}},[u&&k,o,i])},N&&k?ey(N,{onError:P}):null,ey("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:I},ey("div",{class:"form__top"},R?ey("div",{class:"form__error-container"},R):null,l?ey("label",{for:"name",class:"form__label"},ey(tt,{label:S,isRequiredLabel:E,isRequired:m}),ey("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:v,required:m,type:"text"})):ey("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),s?ey("label",{for:"email",class:"form__label"},ey(tt,{label:g,isRequiredLabel:E,isRequired:_}),ey("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:h,required:_,type:"email"})):ey("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),ey("label",{for:"message",class:"form__label"},ey(tt,{label:y,isRequiredLabel:E,isRequired:!0}),ey("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:b,required:!0,rows:5})),N?ey("label",{for:"screenshot",class:"form__label"},ey("button",{class:"btn btn--default",disabled:I,type:"button",onClick:()=>{O(null),C(e=>!e)}},k?d:p),x?ey("div",{class:"form__error-container"},x.message):null):null),ey("div",{class:"btn-group"},ey("button",{class:"btn btn--primary",disabled:I,type:"submit"},T),ey("button",{class:"btn btn--default",disabled:I,type:"button",onClick:r},f))))}function tt({label:e,isRequired:t,isRequiredLabel:n}){return ey("span",{class:"form__label__text"},e,t&&ey("span",{class:"form__label__text--required"},n))}function tn({open:e,onFormSubmitted:t,...n}){let r=n.options,a=eZ(()=>{let e,t,n,r,a,o,i,s;return{__html:(t=Q((e=e=>v.document.createElementNS("http://www.w3.org/2000/svg",e))("svg"),{width:"16",height:"17",viewBox:"0 0 16 17",fill:"inherit"}),n=Q(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Q(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=Q(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(n).append(a,r),o=e("defs"),i=Q(e("clipPath"),{id:"clip0_57_156"}),s=Q(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]=eK(null),s=e0(()=>{o&&(clearTimeout(o),i(null)),t()},[o]),l=e0((e,r)=>{n.onSubmitSuccess(e,r),i(setTimeout(()=>{t(),i(null)},5e3))},[t]);return ey(eS,null,o?ey("div",{class:"success__position",onClick:s},ey("div",{class:"success__content"},r.successMessageText,ey("span",{class:"success__icon",dangerouslySetInnerHTML:a}))):ey("dialog",{class:"dialog",onClick:r.onFormClose,open:e},ey("div",{class:"dialog__position"},ey("div",{class:"dialog__content",onClick:e=>{e.stopPropagation()}},ey(e9,{options:r}),ey(te,{...n,onSubmitSuccess:l})))))}let tr=`
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`,ta=`
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`,to=`
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`,ti=`
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`,ts=`
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`,tl=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{var a;let o,i,s,l,u=e.useSentryUser,c=(o=(0,h.getCurrentScope)().getUser(),i=(0,h.getIsolationScope)().getUser(),s=(0,h.getGlobalScope)().getUser(),o&&Object.keys(o).length?o:i&&Object.keys(i).length?i:s),p=T.createElement("div"),d=(a=e.styleNonce,(l=T.createElement("style")).textContent=`
371:host {
372  --dialog-inset: var(--inset);
373}
374
375${tr}
376${ta}
377${to}
378${ti}
379${ts}
380`,a&&l.setAttribute("nonce",a),l),f="",g={get el(){return p},appendToDom(){r.contains(d)||r.contains(p)||(r.appendChild(d),r.appendChild(p))},removeFromDom(){p.remove(),d.remove(),T.body.style.overflow=f},open(){m(!0),e.onFormOpen?.(),(0,h.getClient)()?.emit("openFeedbackWidget"),f=T.body.style.overflow,T.body.style.overflow="hidden"},close(){m(!1),T.body.style.overflow=f}},_=t?.createInput({h:ey,hooks:e7,dialog:g,options:e}),m=t=>{var r,a,o,i;r=ey(tn,{options:e,screenshotInput:_,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:n,onSubmitSuccess:(t,n)=>{m(!1),e.onSubmitSuccess?.(t,n)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),ei.__&&ei.__(r,p),a=p.__k,o=[],i=[],eN(p,r=p.__k=ey(eS,null,[r]),a||ed,ed,void 0!==p.ownerSVGElement,a?null:p.firstChild?eo.call(p.childNodes):null,o,a?a.__e:p.firstChild,!1,i),r.__d=void 0,ex(o,r,i)};return g}});function tu(e,t,n){if(!e)return;let r=e.getContext("2d",t);r&&n(e,r)}function tc(e,t){tu(e,{alpha:!0},(e,n)=>{n.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function tp(e,t,n){tu(e,{alpha:!0},(e,r)=>{n.length&&(r.fillStyle="rgba(0, 0, 0, 0.25)",r.fillRect(0,0,e.width,e.height)),n.forEach(e=>{switch(e.type){case"highlight":r.shadowColor="rgba(0, 0, 0, 0.7)",r.shadowBlur=50,r.fillStyle=t,r.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),r.clearRect(e.x,e.y,e.w,e.h);break;case"hide":r.fillStyle="rgb(0, 0, 0)",r.fillRect(e.x,e.y,e.w,e.h)}})})}let td=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{let a=T.createElement("canvas");return{input:function({h:e,hooks:t,outputBuffer:n,dialog:r,options:a}){var o;let i,s,l,u=function({hooks:e}){return function({onBeforeScreenshot:t,onScreenshot:n,onAfterScreenshot:r,onError:a}){let o=function(){let[t,n]=e.useState(v.devicePixelRatio??1);return e.useEffect(()=>{let e=()=>{n(v.devicePixelRatio)},t=matchMedia(`(resolution: ${v.devicePixelRatio}dppx)`);return t.addEventListener("change",e),()=>{t.removeEventListener("change",e)}},[]),t}();e.useEffect(()=>{(async()=>{t();let e=await E.mediaDevices.getDisplayMedia({video:{width:v.innerWidth*o,height:v.innerHeight*o},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),a=T.createElement("video");await new Promise((t,r)=>{a.srcObject=e,a.onloadedmetadata=()=>{n(a,o),e.getTracks().forEach(e=>e.stop()),t()},a.play().catch(r)}),r()})().catch(a)},[])}}({hooks:t}),c=function({h:e}){return function({action:t,setAction:n,options:r}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${"highlight"===t?"editor__tool--active":""}`,onClick:()=>{n("highlight"===t?"":"highlight")}},r.highlightToolText),e("button",{type:"button",class:`editor__tool ${"hide"===t?"editor__tool--active":""}`,onClick:()=>{n("hide"===t?"":"hide")}},r.hideToolText)))}}({h:e}),p=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}),d={__html:(o=a.styleNonce,i=T.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},f=r.el.style,g=({screenshot:r})=>{let[o,i]=t.useState("highlight"),[s,l]=t.useState([]),u=t.useRef(null),f=t.useRef(null),g=t.useRef(null),h=t.useRef(null),[_,m]=t.useState(1),y=t.useMemo(()=>{let e=T.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&&(tu(r.canvas,{alpha:!1},e=>
472{m(Math.min(t.clientWidth/e.width,t.clientHeight/e.height))}),(0===t.clientHeight||0===t.clientWidth)&&setTimeout(e,0))};return e(),v.addEventListener("resize",e),()=>{v.removeEventListener("resize",e)}},[r]);let b=t.useCallback((e,t)=>{tu(e,{alpha:!0},(e,n)=>{n.scale(t,t),e.width=r.canvas.width,e.height=r.canvas.height})},[r]);t.useEffect(()=>{b(f.current,r.dpi),tc(f.current,r.canvas)},[r]),t.useEffect(()=>{b(g.current,r.dpi),tu(g.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),tp(g.current,y,s)},[s,y]),t.useEffect(()=>{b(n,r.dpi),tc(n,r.canvas),tu(T.createElement("canvas"),{alpha:!0},(e,t)=>{t.scale(r.dpi,r.dpi),e.width=r.canvas.width,e.height=r.canvas.height,tp(e,y,s),tc(n,e)})},[s,r,y]);let S=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),l(t=>{let n=[...t];return n.splice(e,1),n})},[]),E={width:`${r.canvas.width*_}px`,height:`${r.canvas.height*_}px`},I=e=>{e.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:a.styleNonce,dangerouslySetInnerHTML:d}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:u},e("canvas",{ref:f,id:"background",style:E}),e("canvas",{ref:g,id:"foreground",style:E}),e("div",{ref:h,onMouseDown:e=>{if(!o||!h.current)return;let t=h.current.getBoundingClientRect(),n={type:o,x:e.offsetX/_,y:e.offsetY/_},r=(e,n)=>{let r=(n.clientX-t.x)/_,a=(n.clientY-t.y)/_;return{type:e.type,x:Math.min(e.x,r),y:Math.min(e.y,a),w:Math.abs(r-e.x),h:Math.abs(a-e.y)}},a=e=>{tu(g.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),tp(g.current,y,[...s,r(n,e)])},i=e=>{let t=r(n,e);t.w*_>=1&&t.h*_>=1&&l(e=>[...e,t]),T.removeEventListener("mousemove",a),T.removeEventListener("mouseup",i)};T.addEventListener("mousemove",a),T.addEventListener("mouseup",i)},style:E},s.map((t,n)=>e("div",{key:n,class:"editor__rect",style:{top:`${t.y*_}px`,left:`${t.x*_}px`,width:`${t.w*_}px`,height:`${t.h*_}px`}},e("button",{"aria-label":a.removeHighlightText,onClick:S(n),onMouseDown:I,onMouseUp:I,type:"button"},e(p,null))))))),e(c,{options:a,action:o,setAction:i}))};return function({onError:r}){let[a,o]=t.useState();return(u({onBeforeScreenshot:t.useCallback(()=>{f.display="none"},[]),onScreenshot:t.useCallback((e,t)=>{tu(T.createElement("canvas"),{alpha:!1},(n,r)=>{r.scale(t,t),n.width=e.videoWidth,n.height=e.videoHeight,r.drawImage(e,0,0,n.width,n.height),o({canvas:n,dpi:t})}),n.width=e.videoWidth,n.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{f.display="block"},[]),onError:t.useCallback(e=>{f.display="block",r(e)},[])}),a)?e(g,{screenshot:a}):e("div",null)}}({h:e,hooks:t,outputBuffer:a,dialog:n,options:r}),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 tf=e.i(408469),tg=e.i(691790);let th=["replayIntegration","replayCanvasIntegration","feedbackIntegration","feedbackModalIntegration","feedbackScreenshotIntegration","captureConsoleIntegration","contextLinesIntegration","linkedErrorsIntegration","dedupeIntegration","extraErrorDataIntegration","graphqlClientIntegration","httpClientIntegration","reportingObserverIntegration","rewriteFramesIntegration","browserProfilingIntegration","moduleMetadataIntegration","instrumentAnthropicAiClient","instrumentOpenAiClient","instrumentGoogleGenAIClient","instrumentStateGraph","instrumentLangGraph","createLangChainCallbackHandler","instrumentLangChainEmbeddings"],t_={replayCanvasIntegration:"replay-canvas",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot"},tm=tg.WINDOW;async function ty(e,t){var n;let r,a,o=th.includes(e)?t_[e]||e.replace("Integration","").toLowerCase():void 0,i=tm.Sentry=tm.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=(n=o,r=(0,h.getClient)(),a=r?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com",new URL(`/${tf.SDK_VERSION}/${n}.min.js`,a).toString()),u=tg.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)}),p=tg.WINDOW.document.currentScript,d=tg.WINDOW.document.body||tg.WINDOW.document.head||p?.parentElement;if(d)d.appendChild(u);else throw Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await c}catch{throw Error(`Error when loading integration: ${e}`)}let f=i[e];if("function"!=typeof f)throw Error(`Could not load integration: ${e}`);return f}let tb=er({lazyLoadIntegration:ty}),tS=er({getModalIntegration:()=>tl,getScreenshotIntegration:()=>td});var tv=e.i(317551),tT=e.i(215869),tE=e.i(885287);let tI="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function tw(e,t){let n;return(0,tE.forEachEnvelopeItem)(e,(e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}function tR(e,t){return n=>{let r=e(n),a=new Map,o=t||(e=>{let t=e.getEvent();return t?.extra?.[tI]&&Array.isArray(t.extra[tI])?t.extra[tI]:[]});function i(t,r){let o=r?`${t}:${r}`:t,i=a.get(o);if(!i){let s=(0,tT.dsnFromString)(t);if(!s)return;let l=(0,tv.getEnvelopeEndpointWithUrlEncodedAuth)(s,n.tunnel);i=r?(t=>{let n=e(t);return{...n,send:async e=>{let t=tw(e,["event","transaction","profile","replay_event"]);return t&&(t.release=r),n.send(e)}}})({...n,url:l}):e({...n,url:l}),a.set(o,i)}return[t,i]}return{send:async function(e){let t=o({envelope:e,getEvent:function(t){return tw(e,t?.length?t:["event"])}}).map(e=>"string"==typeof e?i(e,void 0):i(e.dsn,e.release)).filter(e=>!!e),n=t.length?t:[["",r]];return(await Promise.all(n.map(([t,n])=>n.send((0,tE.createEnvelope)(t?{...e[0],dsn:t}:e[0],e[1])))))[0]},flush:async function(e){let t=[...a.values(),r];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}}}}var tA=e.i(363691),tk=e.i(129346),tC=e.i(193733),tN=e.i(579078);let tx=["addListener","on","once","prependListener","prependOnceListener","addEventListener"],tO=["removeListener","off","removeEventListener"],tP=Symbol("SentryScopeBoundListeners");function tB(e,n=(0,h.getCurrentScope)()){var r,a;if(e[tP])return e;for(let r of(tD(e),tx))"function"==typeof e[r]&&(e[r]=function(e,n,r){return function(...a){let o=a[0],i=a[1],s=a.slice(2);if(!tU(i)||void 0!==t&&(i===t||i.listener===t))return n.apply(this,a);let l=function(e){return e[tP]}(e)||tD(e),u=l.get(o);u||(u=new WeakMap,l.set(o,u));let c=u.get(i);c||(c=function(...e){return(0,h.withScope)(r,()=>i.apply(this,e))},u.set(i,c));let p=t;t=c;try{return n.call(this,o,c,...s)}finally{t=p}}}(e,e[r],n));for(let t of tO)"function"==typeof e[t]&&(e[t]=function(e,t){return function(...n){let r=n[0],a=n[1],o=n.slice(2),i=tU(a)?(function(e){return e[tP]})(e)?.get(r)?.get(a):void 0;return i?t.call(this,r,i,...o):t.apply(this,n)}}(e,e[t]));return"function"==typeof e.removeAllListeners&&(r=e,a=e.removeAllListeners,e.removeAllListeners=function(...e){let t=function(e){return e[tP]}(r);if(t)if(0===e.length)tD(r);else{let n=e[0];t.delete(n)}return a.apply(this,e)}),e}function tU(e){return"function"==typeof e}function tD(e){let t=new Map;return e[tP]=t,t}var tL=e.i(899890),tM=e.i(293327),tF=e.i(989288),tW=e.i(972014);let tj=(0,S.defineIntegration)((e={})=>{let t=e.levels||b.CONSOLE_LEVELS,n=e.handled??!0;return{name:"CaptureConsole",setup(e){"console"in g.GLOBAL_OBJ&&(0,tL.addConsoleInstrumentationHandler)(({args:r,level:a})=>{var o,i,s;let l,u,c;(0,h.getClient)()===e&&t.includes(a)&&(o=r,i=a,s=n,l=(0,tF.severityLevelFromString)(i),u=Error(),c={level:(0,tF.severityLevelFromString)(i),extra:{arguments:o}},(0,h.withScope)(e=>{if(e.addEventProcessor(e=>(e.logger="console",(0,tM.addExceptionMechanism)(e,{handled:s,type:"auto.core.capture_console"}),e)),"assert"===i){if(!o[0]){let t=`Assertion failed: ${(0,tW.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);
472if(t)return void(0,tN.captureException)(t,c);let n=(0,tW.safeJoin)(o," ");e.captureMessage(n,l,{captureContext:c,syntheticException:u})}))})}}});var t$=e.i(710269),tG=e.i(943595),tH=e.i(802881),tq=e.i(667365);function tz(e,t,n){var r,a,o;return"util"in g.GLOBAL_OBJ&&"function"==typeof g.GLOBAL_OBJ.util.format?g.GLOBAL_OBJ.util.format(...e):(r=e,a=t,o=n,r.map(e=>(0,tG.isPrimitive)(e)?String(e):JSON.stringify((0,tH.normalize)(e,a,o))).join(" "))}function tY(e){return/%[sdifocO]/.test(e)}function tV(e,t){let n={},r=Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${r}`,t.forEach((e,t)=>{n[`sentry.message.parameter.${t}`]=e}),n}let tJ={[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.log.console"},tK=(0,S.defineIntegration)((e={})=>{let t=e.levels||b.CONSOLE_LEVELS;return{name:"ConsoleLogs",setup(e){let{enableLogs:n,normalizeDepth:r=3,normalizeMaxBreadth:a=1e3}=e.getOptions();if(!n){t$.DEBUG_BUILD&&b.debug.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}let o=(0,tL.addConsoleInstrumentationHandler)(({args:n,level:o})=>{if((0,h.getClient)()!==e||!t.includes(o))return;let i=n[0],s=n.slice(1);if("assert"===o){if(!i){let e=s.length>0?`Assertion failed: ${tz(s,r,a)}`:"Assertion failed";(0,tq._INTERNAL_captureLog)({level:"error",message:e,attributes:tJ})}return}let l="log"===o,u={...tJ};if((0,tG.isPlainObject)(i)){Object.assign(u,(0,tH.normalize)(i,r,a));let e="string"==typeof n[1]?2:1;n.slice(e).forEach((e,t)=>{u[`sentry.message.parameter.${t}`]=(0,tH.normalize)(e,r,a)})}else if(s.length>0&&"string"==typeof i&&!tY(i))for(let[e,t]of Object.entries(tV(i,s)))u[e]=e.startsWith("sentry.message.parameter.")?(0,tH.normalize)(t,r,a):t;(0,tq._INTERNAL_captureLog)({level:l?"info":o,message:tz(n,r,a),severityNumber:l?10:void 0,attributes:u})});e.registerCleanup(o)}}});var tQ=e.i(96486);let tX=["trace","debug","info","warn","error","fatal"];function tZ(e={}){let t=new Set(e.levels??tX),n=e.client;return{log(e){let{type:r,level:a,message:o,args:i,tag:s,date:l,...u}=e,c=n||(0,h.getClient)();if(!c)return;let p=function(e,t){if("verbose"===e)return"debug";if("silent"===e)return"trace";if(e){let t=t0[e];if(t)return t}if("number"==typeof t){let e=t1[t];if(e)return e}return"info"}(r,a);if(!t.has(p))return;let{normalizeDepth:d=3,normalizeMaxBreadth:f=1e3}=c.getOptions(),g={};for(let[e,t]of Object.entries(u))g[e]=(0,tH.normalize)(t,d,f);g["sentry.origin"]="auto.log.consola",s&&(g["consola.tag"]=s),r&&(g["consola.type"]=r),null!=a&&"number"==typeof a&&(g["consola.level"]=a);let _=function(e,t,n){let{message:r,attributes:a,messageTemplate:o,messageParameters:i}=e,s={};if(o&&i)for(let[e,r]of Object.entries(tV(o,i)))s[e]=e.startsWith("sentry.message.parameter.")?(0,tH.normalize)(r,t,n):r;else i&&i.length>0&&i.forEach((e,r)=>{s[`sentry.message.parameter.${r}`]=(0,tH.normalize)(e,t,n)});return{message:r,attributes:{...(0,tH.normalize)(a,t,n),...s}}}(function(e,t,n){if(!e?.length)return{message:""};let r=tz(e,t,n),a=e[0];if((0,tG.isPlainObject)(a)){let t="string"==typeof e[1]?2:1;return{message:r,attributes:a,messageParameters:e.slice(t)}}{let t=e.slice(1),n=t.length>0&&"string"==typeof a&&!tY(a);return{message:r,messageTemplate:n?a:void 0,messageParameters:n?t:void 0}}}(i,d,f),d,f);_?.attributes&&Object.assign(g,_.attributes),(0,tq._INTERNAL_captureLog)({level:p,message:_?.message||o||i&&tz(i,d,f)||"",attributes:g})}}}let t0={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"},t1={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};var t2=e.i(351473);let t6="gen_ai.system",t5="gen_ai.request.model",t4="gen_ai.request.stream",t3="gen_ai.request.temperature",t7="gen_ai.request.max_tokens",t9="gen_ai.request.frequency_penalty",t8="gen_ai.request.presence_penalty",ne="gen_ai.request.top_p",nt="gen_ai.request.top_k",nn="gen_ai.request.encoding_format",nr="gen_ai.request.dimensions",na="gen_ai.response.finish_reasons",no="gen_ai.response.model",ni="gen_ai.response.id",ns="gen_ai.usage.input_tokens",nl="gen_ai.usage.output_tokens",nu="gen_ai.usage.total_tokens",nc="gen_ai.operation.name",np="sentry.sdk_meta.gen_ai.input.messages.original_length",nd="gen_ai.input.messages",nf="gen_ai.system_instructions",ng="gen_ai.response.text",nh="gen_ai.request.available_tools",n_="gen_ai.response.tool_calls",nm="gen_ai.agent.name",ny="gen_ai.conversation.id",nb="gen_ai.embeddings.input",nS="gen_ai.embeddings",nv="gen_ai.execute_tool",nT="gen_ai.tool.name",nE="gen_ai.tool.input",nI="gen_ai.tool.output";var nw=e.i(631257);function nR(e){var t,n,r,a,o,i,s,l;return!!e&&"object"==typeof e&&("type"in(t=e)&&"string"==typeof t.type&&"source"in t&&nR(t.source)||nk(e)||"image_url"in(n=e)&&("string"==typeof n.image_url?n.image_url.startsWith("data:"):nA(n))||nC(e)||nN(e)||"media_type"in(r=e)&&"string"==typeof r.media_type&&"data"in r||"type"in(a=e)&&"file"===a.type&&"mediaType"in a&&"string"==typeof a.mediaType&&"data"in a&&"string"==typeof a.data&&!a.data.startsWith("http://")&&!a.data.startsWith("https://")||"type"in(o=e)&&"image"===o.type&&"image"in o&&"string"==typeof o.image&&!o.image.startsWith("http://")&&!o.image.startsWith("https://")||"type"in(i=e)&&("blob"===i.type||"base64"===i.type)||"b64_json"in e||"type"in(s=e)&&"result"in s&&"image_generation"===s.type||"uri"in(l=e)&&"string"==typeof l.uri&&l.uri.startsWith("data:"))}function nA(e){return"image_url"in e&&!!e.image_url&&"object"==typeof e.image_url&&"url"in e.image_url&&"string"==typeof e.image_url.url&&e.
472image_url.url.startsWith("data:")}function nk(e){return"inlineData"in e&&!!e.inlineData&&"object"==typeof e.inlineData&&"data"in e.inlineData&&"string"==typeof e.inlineData.data}function nC(e){return"type"in e&&"input_audio"===e.type&&"input_audio"in e&&!!e.input_audio&&"object"==typeof e.input_audio&&"data"in e.input_audio&&"string"==typeof e.input_audio.data}function nN(e){return"type"in e&&"file"===e.type&&"file"in e&&!!e.file&&"object"==typeof e.file&&"file_data"in e.file&&"string"==typeof e.file.file_data}let nx="[Blob substitute]",nO=["image_url","data","content","b64_json","result","uri","image"];function nP(e){let t={...e};for(let n of(nR(t.source)&&(t.source=nP(t.source)),nk(e)&&(t.inlineData={...e.inlineData,data:nx}),nA(e)&&(t.image_url={...e.image_url,url:nx}),nC(e)&&(t.input_audio={...e.input_audio,data:nx}),nN(e)&&(t.file={...e.file,file_data:nx}),nO))"string"==typeof t[n]&&(t[n]=nx);return t}let nB=e=>new TextEncoder().encode(e).length,nU=e=>nB(JSON.stringify(e));function nD(e,t){if(nB(e)<=t)return e;let n=0,r=e.length,a="";for(;n<=r;){let o=Math.floor((n+r)/2),i=e.slice(0,o);nB(i)<=t?(a=i,n=o+1):r=o-1}return a}function nL(e,t){return"string"==typeof e?t:{...e,text:t}}function nM(e){return null!==e&&"object"==typeof e&&"content"in e&&Array.isArray(e.content)}function nF(e){return null!==e&&"object"==typeof e&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function nW(e){let t=(0,h.getClient)()?.getDataCollectionOptions().genAI;return{...e,recordInputs:e?.recordInputs??t?.inputs??!1,recordOutputs:e?.recordOutputs??t?.outputs??!1}}function nj(e){if(void 0!==e)return e;let t=(0,h.getClient)();return!t||!(0,nw.hasSpanStreamingEnabled)(t)&&!1===t.getOptions().streamGenAiSpans}function n$(e,t){return e?`${e}.${t}`:t}function nG(e,t,n){if(!e.isRecording())return;let r={"gen_ai.response.streaming":!0};t.responseId&&(r[ni]=t.responseId),t.responseModel&&(r[no]=t.responseModel),void 0!==t.promptTokens&&(r[ns]=t.promptTokens),void 0!==t.completionTokens&&(r[nl]=t.completionTokens),void 0!==t.totalTokens?r[nu]=t.totalTokens:(void 0!==t.promptTokens||void 0!==t.completionTokens||void 0!==t.cacheCreationInputTokens||void 0!==t.cacheReadInputTokens)&&(r[nu]=(t.promptTokens??0)+(t.completionTokens??0)+(t.cacheCreationInputTokens??0)+(t.cacheReadInputTokens??0)),t.finishReasons.length&&(r[na]=JSON.stringify(t.finishReasons)),n&&t.responseTexts.length&&(r[ng]=t.responseTexts.join("")),n&&t.toolCalls.length&&(r[n_]=JSON.stringify(t.toolCalls)),e.setAttributes(r),e.end()}function nH(e){if("string"==typeof e)return nD(e,2e4);try{return JSON.stringify(Array.isArray(e)?function(e){if(!Array.isArray(e)||0===e.length)return e;let t=function e(t){return t.map(t=>{let n;return t&&"object"==typeof t&&(nM(t)?n={...t,content:e(t.content)}:"content"in t&&nR(t.content)&&(n={...t,content:nP(t.content)}),nF(t)&&(n={...n??t,parts:e(t.parts)}),nR(n)?n=nP(n):nR(t)&&(n=nP(t))),n??t})}([e[e.length-1]]),n=t[0];return 19998>=nU(n)?t:function(e){if(!e)return[];if("string"==typeof e){let t=nD(e,19998);return t?[t]:[]}if("object"!=typeof e)return[];if(null!==e&&"object"==typeof e&&"content"in e&&"string"==typeof e.content){let t=19998-nU({...e,content:""});if(t<=0)return[];let n=nD(e.content,t);return[{...e,content:n}]}return nM(e)||nF(e)?function(e,t){let{key:n,items:r}="parts"in e&&Array.isArray(e.parts)?{key:"parts",items:e.parts}:"content"in e&&Array.isArray(e.content)?{key:"content",items:e.content}:{key:null,items:[]};if(null===n||0===r.length)return[];let a=r.map(e=>nL(e,"")),o=t-nU({...e,[n]:a});if(o<=0)return[];let i=[];for(let e of r){let t="string"==typeof e?e:"text"in e&&"string"==typeof e.text?e.text:"",n=nB(t);if(n<=o)i.push(e),o-=n;else if(0===i.length){let n=nD(t,o);n&&i.push(nL(e,n));break}else break}return i.length<=0?[]:[{...e,[n]:i}]}(e,19998):[]}(n)}(e):e)}catch{return"[unserializable]"}}function nq(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};let t=e.findIndex(e=>e&&"object"==typeof e&&"role"in e&&"system"===e.role);if(-1===t)return{systemInstructions:void 0,filteredMessages:e};let n=e[t],r="string"==typeof n.content?n.content:void 0!==n.content?JSON.stringify(n.content):void 0;return r?{systemInstructions:JSON.stringify([{type:"text",content:r}]),filteredMessages:[...e.slice(0,t),...e.slice(t+1)]}:{systemInstructions:void 0,filteredMessages:e}}async function nz(e,t,n){let r=e.catch(e=>{throw(0,tN.captureException)(e,{mechanism:{handled:!1,type:n}}),e}),a=await t,o=await r;return o&&"object"==typeof o&&"data"in o?{...o,data:a}:a}function nY(e,t,n){return(0,tG.isThenable)(e)?new Proxy(e,{get(e,r){let a=r in Promise.prototype||r===Symbol.toStringTag?t:e,o=Reflect.get(a,r);return"withResponse"===r&&"function"==typeof o?function(){return nz(o.call(e),t,n)}:"function"==typeof o?o.bind(a):o}}):t}let nV="auto.ai.langchain",nJ={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"},nK=(e,t,n)=>{null!=n&&(e[t]=n)},nQ=(e,t,n)=>{let r=Number(n);Number.isNaN(r)||(e[t]=r)};function nX(e){if(Array.isArray(e))try{let t=e.map(e=>e&&"object"==typeof e&&nR(e)?nP(e):e);return JSON.stringify(t)}catch{return String(e)}return(0,tW.stringify)(e,String)}function nZ(e){let t=e.toLowerCase();return nJ[t]??t}function n0(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 n1(e){if(!(!e||Array.isArray(e)))return e.invocation_params}function n2(e){return e.map(e=>{let t=e._getType;if("function"==typeof t)return{role:nZ(t.call(e)),content:nX(e.content)};if(1===e.lc&&e.kwargs){let t=e.id,n=Array.isArray(t)&&t.length>0?t[t.length-1]:"";
472return{role:nZ("string"==typeof n?n0(n):"user"),content:nX(e.kwargs?.content)}}if(e.type)return{role:nZ(String(e.type).toLowerCase()),content:nX(e.content)};if(e.role)return{role:nZ(String(e.role)),content:nX(e.content)};let n=e.constructor?.name;return n&&"Object"!==n?{role:nZ(n0(n)),content:nX(e.content)}:{role:"user",content:nX(e.content)}})}function n6(e,t,n,r,a){let o,i;return{[t6]:(0,tW.stringify)(e??"langchain",String),[nc]:"chat",[t5]:(0,tW.stringify)(t,String),[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:nV,...(o={},i="kwargs"in n?n.kwargs:void 0,nQ(o,t3,r?.temperature??a?.ls_temperature??i?.temperature),nQ(o,t7,r?.max_tokens??a?.ls_max_tokens??i?.max_tokens),nQ(o,ne,r?.top_p??i?.top_p),nQ(o,t9,r?.frequency_penalty),nQ(o,t8,r?.presence_penalty),r&&"stream"in r&&nK(o,t4,!!r.stream),o)}}function n5(e){let t={},n=e?.lc_agent_name;return"string"==typeof n&&(t[nm]=n),t}function n4(e){return"object"==typeof e&&e?.name==="SentryCallbackHandler"}function n3(e={}){let{recordInputs:t,recordOutputs:n}=nW(e),r=nj(e.enableTruncation),a=new Map,o=e=>{let t=a.get(e);t?.isRecording()&&(t.end(),a.delete(e))},i={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(e,n,o,i,s,l,u,c){let p=function(e,t,n,r,a,o){let i=n6(o?.ls_provider,a?.model??o?.ls_model_name??"unknown",e,a,o);if(n&&Array.isArray(t)&&t.length>0){nK(i,np,t.length);let e=t.map(e=>({role:"user",content:e}));nK(i,nd,r?nH(e):(0,tW.stringify)(e))}return i}(e,n,t,r,n1(l),u),d=p[t5],f=p[nc];(0,tQ.startSpanManual)({name:`${f} ${d}`,op:"gen_ai.chat",attributes:{...n5(u),...p,[tA.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},e=>(a.set(o,e),e))},handleChatModelStart(e,n,o,i,s,l,u,c){let p=function(e,t,n,r,a,o){let i=n6(o?.ls_provider??e.id?.[2],a?.model??o?.ls_model_name??"unknown",e,a,o);if(n&&Array.isArray(t)&&t.length>0){let{systemInstructions:e,filteredMessages:n}=nq(n2(t.flat()));e&&nK(i,nf,e),nK(i,np,Array.isArray(n)?n.length:0),nK(i,nd,r?nH(n):(0,tW.stringify)(n))}return i}(e,n,t,r,n1(l),u),d=function(e){let t=e?.invocation_params?.tools??e?.options?.tools;if(Array.isArray(t)&&0!==t.length)return JSON.stringify(t.map(e=>{let t=e.function;return{type:"function",name:e.name??t?.name??"",description:e.description??t?.description}}))}(s);d&&(p[nh]=d);let f=p[t5],g=p[nc];(0,tQ.startSpanManual)({name:`${g} ${f}`,op:"gen_ai.chat",attributes:{...n5(u),...p,[tA.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.chat"}},e=>(a.set(o,e),e))},handleLLMEnd(e,t,r,i,s){let l=a.get(t);if(l?.isRecording()){let r=function(e,t){if(!e)return;let n={};if(Array.isArray(e.generations)){let r=e.generations.flat().map(e=>e.generationInfo?.finish_reason?e.generationInfo.finish_reason:e.generation_info?.finish_reason?e.generation_info.finish_reason:null).filter(e=>"string"==typeof e);if(r.length>0&&nK(n,na,(0,tW.stringify)(r,String)),!function(e,t){let n=[];for(let t of e.flat()){let e=t.message,r=e?.tool_calls;if(Array.isArray(r)&&r.length>0)n.push(...r);else{let e=t.message?.content;if(Array.isArray(e))for(let t of e)"tool_use"===t.type&&n.push(t)}}n.length>0&&nK(t,n_,(0,tW.stringify)(n,String))}(e.generations,n),t){let t=e.generations.flat().map(e=>e.text??e.message?.content).filter(e=>"string"==typeof e);t.length>0&&nK(n,ng,(0,tW.stringify)(t,String))}}!function(e,t){if(!e)return;let n=e.tokenUsage,r=e.usage;if(n)nQ(t,ns,n.promptTokens),nQ(t,nl,n.completionTokens),nQ(t,nu,n.totalTokens);else if(r){nQ(t,ns,r.input_tokens),nQ(t,nl,r.output_tokens);let e=Number(r.input_tokens),n=Number(r.output_tokens),a=(Number.isNaN(e)?0:e)+(Number.isNaN(n)?0:n);a>0&&nQ(t,nu,a),void 0!==r.cache_creation_input_tokens&&nQ(t,"gen_ai.usage.cache_creation_input_tokens",r.cache_creation_input_tokens),void 0!==r.cache_read_input_tokens&&nQ(t,"gen_ai.usage.cache_read_input_tokens",r.cache_read_input_tokens)}}(e.llmOutput,n);let r=e.llmOutput,a=e.generations?.[0]?.[0],o=a?.message,i=r?.model_name??r?.model??o?.response_metadata?.model_name;i&&nK(n,no,i);let s=r?.id??o?.id;s&&nK(n,ni,s);let l=r?.stop_reason??o?.response_metadata?.finish_reason;return l&&nK(n,"gen_ai.response.stop_reason",(0,tW.stringify)(l,String)),n}(e,n);r&&l.setAttributes(r),o(t)}},handleLLMError(e,t){let n=a.get(t);n?.isRecording()&&(n.setStatus({code:t2.SPAN_STATUS_ERROR,message:"internal_error"}),o(t)),(0,tN.captureException)(e,{mechanism:{handled:!1,type:`${nV}.llm_error_handler`}})},handleChainStart(e,n,r,o,i,s,l,u){if(s?.__sentry_langgraph__)return;let c=u||e.name||"unknown_chain",p={[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.langchain","langchain.chain.name":c};t&&(p["langchain.chain.inputs"]=JSON.stringify(n)),(0,tQ.startSpanManual)({name:`chain ${c}`,op:"gen_ai.invoke_agent",attributes:{...p,[tA.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.invoke_agent"}},e=>(a.set(r,e),e))},handleChainEnd(e,t){let r=a.get(t);r?.isRecording()&&(n&&r.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),o(t))},handleChainError(e,t){let n=a.get(t);n?.isRecording()&&(n.setStatus({code:t2.SPAN_STATUS_ERROR,message:"internal_error"}),o(t)),(0,tN.captureException)(e,{mechanism:{handled:!1,type:`${nV}.chain_error_handler`}})},handleToolStart(e,n,r,o,i,s,l){if(s?.__sentry_langgraph__)return;let u=l||e.name||"unknown_tool",c={...n5(s),[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:nV,[nc]:"execute_tool",[nT]:u};t&&(c[nE]=n),(0,tQ.startSpanManual)({name:`execute_tool ${u}`,op:"gen_ai.execute_tool",attributes:{...c,[tA.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.execute_tool"}},e=>(a.set(r,e),e))},handleToolEnd(e,t){let r=a.get(t);if(r?.isRecording()){if(n){let t=e&&"object"==typeof e&&"content"in e?e.content:e;r.setAttributes({[nI]:"string"==typeof t?t:JSON.stringify(t)})}o(t)}},handleToolError(e,t){let n=a.get(t);n?.isRecording()&&(n.setStatus({code:t2.SPAN_STATUS_ERROR,message:"internal_error"}),o(t)),(0,tN.captureException)(e,{mechanism:{handled:!1,type:`${nV}.tool_error_handler`}})},copy:()=>i,toJSON:()=>
472({lc:1,type:"not_implemented",id:i.lc_id}),toJSONNotImplemented:()=>({lc:1,type:"not_implemented",id:i.lc_id})};return i}var n7=e.i(191730),n9=e.i(580737),n8=e.i(1340),re=e.i(100279);let rt=(0,S.defineIntegration)((e={})=>{let{depth:t=3,captureErrorCause:n=!0}=e;return{name:"ExtraErrorData",processEvent(e,r,a){let{maxValueLength:o}=a.getOptions();return function(e,t={},n,r,a){if(!t.originalException||!(0,tG.isError)(t.originalException))return e;let o=t.originalException.name||t.originalException.constructor.name,i=function e(t,n,r){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 n=t[e];o[e]=(0,tG.isError)(n)||"string"==typeof n?r?(0,tW.truncate)(`${n}`,r):`${n}`:n}if(n&&void 0!==t.cause&&((0,tG.isError)(t.cause)?o.cause={[t.cause.name||t.cause.constructor.name]:e(t.cause,!1,r)}:o.cause=t.cause),"function"==typeof t.toJSON){let e=t.toJSON();for(let t of Object.keys(e)){let n=e[t];o[t]=(0,tG.isError)(n)?n.toString():n}}return o}catch(e){t$.DEBUG_BUILD&&b.debug.error("Unable to extract extra data from the Error object:",e)}return null}(t.originalException,r,a);if(i){let t={...e.contexts},r=(0,tH.normalize)(i,n);return(0,tG.isPlainObject)(r)&&((0,re.setSkipNormalizationHint)(r),t[o]=r),{...e,contexts:t}}return e}(e,r,t,n,o)}}});var rn=e.i(832205);let rr="flag.evaluation.";function ra(e){if(e.type)return e;let t=(0,h.getCurrentScope)().getScopeData().contexts.flags,n=t?t.values:[];return n.length&&(void 0===e.contexts&&(e.contexts={}),e.contexts.flags={values:[...n]}),e}function ro(e,t,n=100){let r=(0,h.getCurrentScope)().getScopeData().contexts;r.flags||(r.flags={values:[]}),function(e,t,n,r){if("boolean"!=typeof n)return;if(e.length>r){t$.DEBUG_BUILD&&b.debug.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);return}let a=e.findIndex(e=>e.flag===t);-1!==a&&e.splice(a,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}(r.flags.values,e,t,n)}function ri(e,t,n=10){if("boolean"!=typeof t)return;let r=(0,rn.getActiveSpan)();if(!r)return;let a=(0,rn.spanToJSON)(r).data;`${rr}${e}`in a?r.setAttribute(`${rr}${e}`,t):Object.keys(a).filter(e=>e.startsWith(rr)).length<n&&r.setAttribute(`${rr}${e}`,t)}let rs=(0,S.defineIntegration)(()=>
472({name:"FeatureFlags",processEvent:(e,t,n)=>ra(e),addFeatureFlag(e,t){ro(e,t),ri(e,t)}}));var rl=e.i(947918),ru=e.i(487117);let rc={"messages.create":{operation:"chat"},"messages.stream":{operation:"chat",streaming:!0},"messages.countTokens":{operation:"chat"},"models.get":{operation:"models"},"completions.create":{operation:"chat"},"models.retrieve":{operation:"models"},"beta.messages.create":{operation:"chat"}},rp={invalid_request_error:"invalid_argument",authentication_error:"unauthenticated",permission_error:"permission_denied",not_found_error:"not_found",request_too_large:"failed_precondition",rate_limit_error:"resource_exhausted",api_error:"internal_error",overloaded_error:"unavailable"};function rd(e){return e&&rp[e]||"internal_error"}function rf(e,t,n,r){if(e&&"object"==typeof e&&(!("type"in e)||"string"!=typeof e.type||"error"!==e.type||(r.setStatus({code:t2.SPAN_STATUS_ERROR,message:rd(e.error?.type)}),(0,tN.captureException)(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),0))){if("message_delta"===e.type&&(e.usage&&"number"==typeof e.usage.output_tokens&&(t.completionTokens=e.usage.output_tokens),e.delta?.stop_reason&&t.finishReasons.push(e.delta.stop_reason)),e.message){let n=e.message;n.id&&(t.responseId=n.id),n.model&&(t.responseModel=n.model),n.usage&&("number"==typeof n.usage.input_tokens&&(t.promptTokens=n.usage.input_tokens),"number"==typeof n.usage.cache_creation_input_tokens&&(t.cacheCreationInputTokens=n.usage.cache_creation_input_tokens),"number"==typeof n.usage.cache_read_input_tokens&&(t.cacheReadInputTokens=n.usage.cache_read_input_tokens))}"content_block_start"===e.type&&"number"==typeof e.index&&e.content_block&&("tool_use"===e.content_block.type||"server_tool_use"===e.content_block.type)&&(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]});if("content_block_delta"===e.type&&e.delta){if("number"==typeof e.index&&"partial_json"in e.delta&&"string"==typeof e.delta.partial_json){let n=t.activeToolBlocks[e.index];n&&n.inputJsonParts.push(e.delta.partial_json)}n&&"string"==typeof e.delta.text&&t.responseTexts.push(e.delta.text)}!function(e,t){let n;if("content_block_stop"!==e.type||"number"!=typeof e.index)return;let r=t.activeToolBlocks[e.index];if(!r)return;let a=r.inputJsonParts.join("");try{n=a?JSON.parse(a):{}}catch{n={__unparsed:a}}t.toolCalls.push({type:"tool_use",id:r.id,name:r.name,input:n}),delete t.activeToolBlocks[e.index]}(e,t)}}async function*rg(e,t,n){let r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(let a of e)rf(a,r,n,t),yield a}finally{nG(t,r,n)}}let rh=!1,r_=new WeakSet;function rm(e,t,n){!function(e,t,n){if(Array.isArray(t)&&0===t.length)return;let{systemInstructions:r,filteredMessages:a}=nq(t);r&&e.setAttributes({[nf]:r});let o=Array.isArray(a)?a.length:1;e.setAttributes({[nd]:n?nH(a):(0,tW.stringify)(a),[np]:o})}(e,function(e){let{system:t,messages:n,input:r}=e,a="string"==typeof t?[{role:"system",content:e.system}]:[],o=Array.isArray(r)?r:null!=r?[r]:void 0,i=Array.isArray(n)?n:null!=n?[n]:[];return[...a,...o??i]}(t),n),"prompt"in t&&e.setAttributes({"gen_ai.prompt":JSON.stringify(t.prompt)})}function ry(e,t,n){throw(0,tN.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:n}}}),t.isRecording()&&(t.setStatus({code:t2.SPAN_STATUS_ERROR,message:"internal_error"}),t.end()),e}function rb(e,t){return function(e,t){for(let n of Object.keys(rc)){let r=n.split("."),a=r.pop(),o=e;for(let e of r)o=o?.[e];if(!o||"function"!=typeof o[a])continue;let i=o[a];if(r_.has(i))continue;let s=function(e,t,n,r,a){return new Proxy(e,{apply(e,o,i){let s,l=void 0!==o?o:r,u=!0===n.streaming;if(!u&&rh)return e.apply(l,i);let c=n.operation||"unknown",p=function(e,t,n){let r={[t6]:"anthropic",[nc]:n,[tA.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[nh]=JSON.stringify(t.tools)),r[t5]=t.model??"unknown","temperature"in t&&(r[t3]=t.temperature),"top_p"in t&&(r[ne]=t.top_p),"stream"in t&&(r[t4]=t.stream),"top_k"in t&&(r[nt]=t.top_k),"frequency_penalty"in t&&(r[t9]=t.frequency_penalty),"max_tokens"in t&&(r[t7]=t.max_tokens)}else"models.retrieve"===t||"models.get"===t?r[t5]=e[0]:r[t5]="unknown";return r}(i,t,c),d=p[t5]??"unknown",f="object"==typeof i[0]?i[0]:void 0,g=!!f?.stream;if(g||u){let n=p[t5]??"unknown",r={name:`${c} ${n}`,op:`gen_ai.${c}`,attributes:p};if(!g||u)return(0,tQ.startSpanManual)(r,n=>{try{var r;let t;a.recordInputs&&f&&rm(n,f,nj(a.enableTruncation)),rh=!0;let o=e.apply(l,i);return rh=!1,r=a.recordOutputs??!1,t={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}},o.on("streamEvent",e=>{rf(e,t,r,n)}),o.on("message",()=>{nG(n,t,r)}),o.on("error",e=>{(0,tN.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),n.isRecording()&&(n.setStatus({code:t2.SPAN_STATUS_ERROR,message:"internal_error"}),n.end())}),o}catch(e){return rh=!1,ry(e,n,t)}});{let n,o=(0,tQ.startSpanManual)(r,r=>(n=e.apply(l,i),a.recordInputs&&f&&rm(r,f,nj(a.enableTruncation)),(async()=>{try{let e=await n;return rg(e,r,a.recordOutputs??!1)}catch(e){return ry(e,r,t)}})()));return nY(n,o,"auto.ai.anthropic")}}let h=(0,tQ.startSpan)({name:`${c} ${d}`,op:`gen_ai.${c}`,attributes:p},n=>(s=e.apply(l,i),a.recordInputs&&f&&rm(n,f,nj(a.enableTruncation)),s.then(e=>(!function(e,t,n){if(t&&"object"==typeof t){if("type"in t&&"error"===t.type)return t.error&&(e.setStatus({code:t2.SPAN_STATUS_ERROR,message:rd(t.error.type)}),(0,tN.captureException)(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}));n&&function(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[ng]:t.content.map(e=>e.text).filter(e=>!!e).join("")});let n=[];for(let e of t.content)("tool_use"===e.type||"server_tool_use"===e.type)&&n.push(e);n.length>0&&e.setAttributes({[n_]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[ng]:t.completion}),"input_tokens"in t&&e.setAttributes({[ng]:JSON.stringify(t.input_tokens)})}(e,t),function(e,t){if("id"in t&&"model"in t){var n,r,a,o;e.setAttributes({[ni]:t.id,[no]:t.model}),"usage"in t&&t.usage&&(n=t.usage.input_tokens,r=t.usage.output_tokens,a=t.usage.cache_creation_input_tokens,o=t.usage.cache_read_input_tokens,void 0!==n&&e.setAttributes({[ns]:n}),void 0!==r&&e.setAttributes({[nl]:r}),(void 0!==n||void 0!==r||void 0!==a||void 0!==o)&&e.setAttributes({[nu]:(n??0)+(r??0)+(a??0)+(o??0)}))}}(e,t)}}(n,e,a.recordOutputs),e),e=>{throw(0,tN.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:t}}}),e}
472)));return nY(s,h,"auto.ai.anthropic")}})}(i,n,rc[n],o,t);r_.add(s),o[a]=s}return e}(e,nW(t))}let rS="auto.ai.langgraph",rv=!1,rT="__sentry_patched__";function rE(e,t,n,r,a,o){return new Proxy(e,{apply(e,i,s){let l=a?.modelName??a?.model;return(0,tQ.startSpan)({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:rS,[tA.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.invoke_agent",[nc]:"invoke_agent"}},async a=>{try{let u=n?.name;u&&"string"==typeof u&&(a.setAttribute("gen_ai.pipeline.name",u),a.setAttribute(nm,u),a.updateName(`invoke_agent ${u}`)),l&&a.setAttribute(t5,l);let c=s.length>1?s[1]:void 0,p=c?.configurable,d=p?.thread_id;if(d&&"string"==typeof d&&a.setAttribute(ny,d),o){let e=s[1]??{};s[1]=e;let t=e.metadata??{};e.metadata={...t,__sentry_langgraph__:!0,..."string"==typeof u?{lc_agent_name:u}:{}},e.callbacks=function(e,t){if(!e)return[t];if(e&&"object"==typeof e&&"function"==typeof e.addHandler&&"function"==typeof e.copy){if((e.handlers??[]).some(n4))return e;let n=e.copy();return n.addHandler(t,!0),n}let n=Array.isArray(e)?e:[e];return n.some(n4)?e:[...n,t]}(e.callbacks,o)}let f=function(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;let t=e.builder?.nodes?.tools?.runnable?.tools;return t&&Array.isArray(t)&&0!==t.length?t.map(e=>({name:e.lc_kwargs?.name,description:e.lc_kwargs?.description,schema:e.lc_kwargs?.schema})):null}(t);f&&a.setAttribute(nh,JSON.stringify(f));let g=r.recordInputs,h=r.recordOutputs,_=s.length>0?s[0]?.messages??[]:[];if(_&&g){let e=n2(_),{systemInstructions:t,filteredMessages:n}=nq(e);t&&a.setAttribute(nf,t);let o=nj(r.enableTruncation),i=Array.isArray(n)?n.length:0;a.setAttributes({[nd]:o?nH(n):(0,tW.stringify)(n),[np]:i})}let m=await Reflect.apply(e,i,s);return h&&function(e,t,n){let r=n?.messages;if(!r||!Array.isArray(r))return;let a=t?.length??0,o=r.length>a?r.slice(a):[];if(0===o.length)return;let i=function(e){if(!e||0===e.length)return null;let t=[];for(let n of e)if(n&&"object"==typeof n){let e=n.tool_calls;e&&Array.isArray(e)&&t.push(...e)}return t.length>0?t:null}(o);i&&e.setAttribute(n_,JSON.stringify(i));let s=n2(o);e.setAttribute(ng,JSON.stringify(s));let l=0,u=0,c=0;for(let t of o){let n=function(e){let t=0,n=0,r=0;if(e.usage_metadata&&"object"==typeof e.usage_metadata){let a=e.usage_metadata;return"number"==typeof a.input_tokens&&(t=a.input_tokens),"number"==typeof a.output_tokens&&(n=a.output_tokens),"number"==typeof a.total_tokens&&(r=a.total_tokens),{inputTokens:t,outputTokens:n,totalTokens:r}}if(e.response_metadata&&"object"==typeof e.response_metadata){let a=e.response_metadata;if(a.tokenUsage&&"object"==typeof a.tokenUsage){let e=a.tokenUsage;"number"==typeof e.promptTokens&&(t=e.promptTokens),"number"==typeof e.completionTokens&&(n=e.completionTokens),"number"==typeof e.totalTokens&&(r=e.totalTokens)}}return{inputTokens:t,outputTokens:n,totalTokens:r}}(t);l+=n.inputTokens,u+=n.outputTokens,c+=n.totalTokens,function(e,t){if(t.response_metadata&&"object"==typeof t.response_metadata){let n=t.response_metadata;n.model_name&&"string"==typeof n.model_name&&e.setAttribute(no,n.model_name),n.finish_reason&&"string"==typeof n.finish_reason&&e.setAttribute(na,[n.finish_reason])}}(e,t)}l>0&&e.setAttribute(ns,l),u>0&&e.setAttribute(nl,u),c>0&&e.setAttribute(nu,c)}(a,_??null,m),m}catch(e){throw a.setStatus({code:t2.SPAN_STATUS_ERROR,message:"internal_error"}),(0,tN.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}})}function rI(e,t){if(Object.prototype.hasOwnProperty.call(e,rT))return e;let n=nW(t),r=n3(n),a=new Proxy(e,{apply(e,t,a){let o,i,s=function(e){let t=e[0];if("object"!=typeof t||!t||!("llm"in t)||!t.llm||"object"!=typeof t.llm)return null;let n=t.llm;return"string"!=typeof n.modelName&&"string"!=typeof n.model?null:n}(a),l="object"==typeof(i=a[0])&&i&&"name"in i&&"string"==typeof i.name?i.name:null,u=a[0];u&&Array.isArray(u.tools)&&u.tools.length>0&&function(e,t,n){let r="__sentry_tool_wrapped__";for(let a of e){if(!a||"object"!=typeof a)continue;let e=a.invoke;if("function"!=typeof e||Object.prototype.hasOwnProperty.call(a,r))continue;let o="string"==typeof a.name?a.name:"unknown_tool",i="string"==typeof a.description?a.description:void 0;a.invoke=new Proxy(e,{apply(e,r,a){let s={[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:rS,[tA.SEMANTIC_ATTRIBUTE_SENTRY_OP]:nv,[nc]:"execute_tool",[nT]:o,"gen_ai.tool.type":"function"},l=a[1],u=l?.metadata?.lc_agent_name??n;"string"==typeof u&&(s[nm]=u),i&&(s["gen_ai.tool.description"]=i);let c=a[0];if("object"==typeof c&&c&&("id"in c&&"string"==typeof c.id&&(s["gen_ai.tool.call.id"]=c.id),t.recordInputs)){let e="args"in c&&"object"==typeof c.args?c.args:c;
472try{s[nE]=JSON.stringify(e)}catch{}}return(0,tQ.startSpan)({op:nv,name:`execute_tool ${o}`,attributes:s},async n=>{try{let o=await Reflect.apply(e,r,a);if(t.recordOutputs)try{let e=o&&"object"==typeof o&&"content"in o?o.content:o;n.setAttribute(nI,"string"==typeof e?e:JSON.stringify(e))}catch{}return o}catch(e){throw n.setStatus({code:t2.SPAN_STATUS_ERROR,message:"internal_error"}),(0,tN.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})}}),Object.defineProperty(a,r,{value:!0,enumerable:!1})}}(u.tools,n,l??void 0),rv=!0;try{o=Reflect.apply(e,t,a)}finally{rv=!1}let c=o.invoke;if(c&&"function"==typeof c){let e={};l&&(e.name=l),o.invoke=rE(c.bind(o),o,e,n,s,r)}return o}});return Object.defineProperty(a,rT,{value:!0,enumerable:!1}),a}function rw(e,t){return e.compile=function(e,t){if(Object.prototype.hasOwnProperty.call(e,rT))return e;let n=n3(t),r=new Proxy(e,{apply:(e,r,a)=>rv?Reflect.apply(e,r,a):(0,tQ.startSpan)({op:"gen_ai.create_agent",name:"create_agent",attributes:{[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:rS,[tA.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"gen_ai.create_agent",[nc]:"create_agent"}},o=>{try{let i=Reflect.apply(e,r,a),s=a.length>0?a[0]:{};s?.name&&"string"==typeof s.name&&(o.setAttribute(nm,s.name),o.updateName(`create_agent ${s.name}`));let l=i.invoke;return l&&"function"==typeof l&&(i.invoke=rE(l.bind(i),i,s,t,void 0,n)),i}catch(e){throw o.setStatus({code:t2.SPAN_STATUS_ERROR,message:"internal_error"}),(0,tN.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),e}})});return Object.defineProperty(r,rT,{value:!0,enumerable:!1}),r}(e.compile,nW(t)),e}var rR=e.i(58684);let rA={"models.generateContent":{operation:"generate_content"},"models.generateContentStream":{operation:"generate_content",streaming:!0},"models.embedContent":{operation:"embeddings"},"chats.create":{proxyResultPath:"chat"},"chat.sendMessage":{operation:"chat"},"chat.sendMessageStream":{operation:"chat",streaming:!0}};async function*rk(e,t,n){let r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(let a of e)!function(e,t,n,r){if(!(!e||function(e,t){let n=e?.promptFeedback;if(n?.blockReason){let e=n.blockReasonMessage??n.blockReason;return t.setStatus({code:t2.SPAN_STATUS_ERROR,message:"internal_error"}),(0,tN.captureException)(`Content blocked: ${e}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}(e,r))){let r;for(let a of("string"==typeof e.responseId&&(t.responseId=e.responseId),"string"==typeof e.modelVersion&&(t.responseModel=e.modelVersion),(r=e.usageMetadata)&&("number"==typeof r.promptTokenCount&&(t.promptTokens=r.promptTokenCount),"number"==typeof r.candidatesTokenCount&&(t.completionTokens=r.candidatesTokenCount),"number"==typeof r.totalTokenCount&&(t.totalTokens=r.totalTokenCount)),Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls),e.candidates??[]))for(let e of(a?.finishReason&&!t.finishReasons.includes(a.finishReason)&&t.finishReasons.push(a.finishReason),a?.content?.parts??[]))n&&e.text&&t.responseTexts.push(e.text),e.functionCall&&t.toolCalls.push({type:"function",id:e.functionCall.id,name:e.functionCall.name,arguments:e.functionCall.args})}}(a,r,n,t),yield a}finally{nG(t,r,n)}}function rC(e,t="user"){return"string"==typeof e?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(e=>rC(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 rN(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 rx(e,t,n,r){if("embeddings"===n){let n=t.contents;null!=n&&e.setAttribute(nb,"string"==typeof n?n:JSON.stringify(n));return}let a=[];if("config"in t&&t.config&&"object"==typeof t.config&&"systemInstruction"in t.config&&t.config.systemInstruction&&a.push(...rC(t.config.systemInstruction,"system")),"history"in t&&a.push(...rC(t.history,"user")),"contents"in t&&a.push(...rC(t.contents,"user")),"message"in t&&a.push(...rC(t.message,"user")),Array.isArray(a)&&a.length){let{systemInstructions:t,filteredMessages:n}=nq(a);t&&e.setAttribute(nf,t);let o=Array.isArray(n)?n.length:0;e.setAttributes({[np]:o,[nd]:r?nH(n):(0,tW.stringify)(n)})}}function rO(e,t){return function e(t,n="",r){return new Proxy(t,{get:(t,a,o)=>{let i=Reflect.get(t,a,o),s=n$(n,String(a)),l=rA[s];if("function"==typeof i&&l){let n,a=l.operation?(n="embeddings"===l.operation,new Proxy(i,{apply(e,a,o){let i=l.operation||"unknown",u=o[0],c=function(e,t,n){let r={[t6]:"google_genai",[nc]:e,[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.google_genai"};if(t){if(r[t5]=rN(t,n),"config"in t&&"object"==typeof t.config&&t.config){let e,n=t.config;if(Object.assign(r,(e={},"temperature"in n&&"number"==typeof n.temperature&&(e[t3]=n.temperature),"topP"in n&&"number"==typeof n.topP&&(e[
472ne]=n.topP),"topK"in n&&"number"==typeof n.topK&&(e[nt]=n.topK),"maxOutputTokens"in n&&"number"==typeof n.maxOutputTokens&&(e[t7]=n.maxOutputTokens),"frequencyPenalty"in n&&"number"==typeof n.frequencyPenalty&&(e[t9]=n.frequencyPenalty),"presencePenalty"in n&&"number"==typeof n.presencePenalty&&(e[t8]=n.presencePenalty),e)),"tools"in n&&Array.isArray(n.tools)){let e=n.tools.flatMap(e=>e.functionDeclarations);r[nh]=JSON.stringify(e)}}}else r[t5]=rN({},n);return r}(i,u,t),p=c[t5]??"unknown";return l.streaming?(0,tQ.startSpanManual)({name:`${i} ${p}`,op:`gen_ai.${i}`,attributes:c},async n=>{try{r.recordInputs&&u&&rx(n,u,i,nj(r.enableTruncation));let a=await e.apply(t,o);return rk(a,n,!!r.recordOutputs)}catch(e){throw n.setStatus({code:t2.SPAN_STATUS_ERROR,message:"internal_error"}),(0,tN.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:s}}}),n.end(),e}}):(0,tQ.startSpan)({name:`${i} ${p}`,op:`gen_ai.${i}`,attributes:c},a=>(r.recordInputs&&u&&rx(a,u,i,nj(r.enableTruncation)),(0,rR.handleCallbackErrors)(()=>e.apply(t,o),e=>{(0,tN.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:s}}})},()=>{},e=>{n||function(e,t,n){if(t&&"object"==typeof t){if(t.modelVersion&&e.setAttribute(no,t.modelVersion),t.usageMetadata&&"object"==typeof t.usageMetadata){let n=t.usageMetadata;"number"==typeof n.promptTokenCount&&e.setAttributes({[ns]:n.promptTokenCount}),"number"==typeof n.candidatesTokenCount&&e.setAttributes({[nl]:n.candidatesTokenCount}),"number"==typeof n.totalTokenCount&&e.setAttributes({[nu]:n.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){let n=t.candidates.map(e=>e.content?.parts&&Array.isArray(e.content.parts)?e.content.parts.map(e=>"string"==typeof e.text?e.text:"").filter(e=>e.length>0).join(""):"").filter(e=>e.length>0);n.length>0&&e.setAttributes({[ng]:n.join("")})}if(n&&t.functionCalls){let n=t.functionCalls;Array.isArray(n)&&n.length>0&&e.setAttributes({[n_]:JSON.stringify(n)})}}}(a,e,r.recordOutputs)})))}})):i.bind(t);return l.proxyResultPath?function(...t){let n=a(...t);return n&&"object"==typeof n?e(n,l.proxyResultPath,r):n}:a}return"function"==typeof i?i.bind(t):i&&"object"==typeof i?e(i,s,r):i}})}(e,"",nW(t))}function rP(e,t={}){return new Proxy(e,{apply:(e,n,r)=>(0,tQ.startSpan)(function(e,t,n={}){let r,a,o,{recordInputs:i}=nW(n),s=(r=e??{},(a={[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:nV,[tA.SEMANTIC_ATTRIBUTE_SENTRY_OP]:nS,[nc]:"embeddings",[t5]:r.model??"unknown"})[t6]=(o=r.constructor?.name??"").includes("OpenAI")?"openai":o.includes("Google")?"google_genai":o.includes("Mistral")?"mistralai":o.includes("Vertex")?"google_vertexai":o.includes("Bedrock")?"aws_bedrock":o.includes("Ollama")?"ollama":o.includes("Cloudflare")?"cloudflare":o.includes("Cohere")?"cohere":"langchain","dimensions"in r&&(a[nr]=r.dimensions),"encodingFormat"in r&&(a[nn]=r.encodingFormat),a),l=s[t5]||"unknown";return i&&null!=t&&(s[nb]="string"==typeof t?t:JSON.stringify(t)),{name:`embeddings ${l}`,op:nS,attributes:s}}(n,r[0],t),()=>Reflect.apply(e,n,r).then(void 0,e=>{throw(0,tN.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.langchain"}}),e}))})}function rB(e,t){return"function"==typeof e.embedQuery&&(e.embedQuery=rP(e.embedQuery,t)),"function"==typeof e.embedDocuments&&(e.embedDocuments=rP(e.embedDocuments,t)),e}let rU={"responses.create":{operation:"chat"},"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},rD=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta","response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"];async function*rL(e,t,n){let r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(let a of e){if(null!==a&&"object"==typeof a&&"object"in a&&"chat.completion.chunk"===a.object){for(let e of(r.responseId=a.id??r.responseId,r.responseModel=a.model??r.responseModel,a.usage&&(r.promptTokens=a.usage.prompt_tokens,r.completionTokens=a.usage.completion_tokens,r.totalTokens=a.usage.total_tokens),a.choices??[]))n&&(e.delta?.content&&r.responseTexts.push(e.delta.content),e.delta?.tool_calls&&function(e,t){for(let n of e){let e=n.index;if(void 0!==e&&n.function)if(e in t.chatCompletionToolCalls){let r=t.chatCompletionToolCalls[e];n.function.arguments&&r?.function&&(r.function.arguments+=n.function.arguments)}else t.chatCompletionToolCalls[e]={...n,function:{name:n.function.name,arguments:n.function.arguments||""}}}}(e.delta.tool_calls,r)),e.finish_reason&&r.finishReasons.push(e.finish_reason)}else null!==a&&"object"==typeof a&&"type"in a&&"string"==typeof a.type&&a.type.startsWith("response.")&&function(e,t,n,r){if(!(e&&"object"==typeof e))return t.eventTypes.push("unknown:non-object");
472if(e instanceof Error){r.setStatus({code:t2.SPAN_STATUS_ERROR,message:"internal_error"}),(0,tN.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if("type"in e){if(!rD.includes(e.type))return t.eventTypes.push(e.type);if(n&&("response.output_item.done"===e.type&&"item"in e&&t.responsesApiToolCalls.push(e.item),"response.output_text.delta"===e.type&&"delta"in e&&e.delta))return t.responseTexts.push(e.delta);if("response"in e){let{response:r}=e;t.responseId=r.id??t.responseId,t.responseModel=r.model??t.responseModel,r.usage&&(t.promptTokens=r.usage.input_tokens,t.completionTokens=r.usage.output_tokens,t.totalTokens=r.usage.total_tokens),r.status&&t.finishReasons.push(r.status),n&&r.output_text&&t.responseTexts.push(r.output_text)}}}(a,r,n,t);yield a}}finally{let e=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];nG(t,{...r,toolCalls:e},n)}}function rM(e,t,n,r){if("embeddings"===n&&"input"in t){let n=t.input;if(null==n||"string"==typeof n&&0===n.length||Array.isArray(n)&&0===n.length)return;e.setAttribute(nb,"string"==typeof n?n:JSON.stringify(n));return}let a="input"in t?t.input:"messages"in t?t.messages:void 0;if(!a||Array.isArray(a)&&0===a.length)return;let{systemInstructions:o,filteredMessages:i}=nq(a);o&&e.setAttribute(nf,o),e.setAttribute(nd,r?nH(i):(0,tW.stringify)(i)),Array.isArray(i)?e.setAttribute(np,i.length):e.setAttribute(np,1)}function rF(e,t){return function e(t,n="",r){return new Proxy(t,{get(t,a){let o=t[a],i=n$(n,String(a)),s=rU[i];if("function"==typeof o&&s)return function(...e){let n,a=s.operation||"unknown",l=function(e,t){let n={[t6]:"open
472ai",[nc]:t,[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ai.openai"};if(e.length>0&&"object"==typeof e[0]&&null!==e[0]){let t,r,a=e[0],o=function(e){let t=[...Array.isArray(e.tools)?e.tools:[],...e.web_search_options&&"object"==typeof e.web_search_options?[{type:"web_search_options",...e.web_search_options}]:[]];if(0!==t.length)try{return JSON.stringify(t)}catch(e){t$.DEBUG_BUILD&&b.debug.error("Failed to serialize OpenAI tools:",e);return}}(a);o&&(n[nh]=o),Object.assign(n,(t={[t5]:a.model??"unknown"},"temperature"in a&&(t[t3]=a.temperature),"top_p"in a&&(t[ne]=a.top_p),"frequency_penalty"in a&&(t[t9]=a.frequency_penalty),"presence_penalty"in a&&(t[t8]=a.presence_penalty),"stream"in a&&(t[t4]=a.stream),"encoding_format"in a&&(t[nn]=a.encoding_format),"dimensions"in a&&(t[nr]=a.dimensions),(r="conversation"in a&&"string"==typeof a.conversation?a.conversation:"previous_response_id"in a&&"string"==typeof a.previous_response_id?a.previous_response_id:void 0)&&(t[ny]=r),t))}else n[t5]="unknown";return n}(e,a),u=l[t5]||"unknown",c=e[0],p=c&&"object"==typeof c&&!0===c.stream,d={name:`${a} ${u}`,op:`gen_ai.${a}`,attributes:l};if(p){let n,s=(0,tQ.startSpanManual)(d,s=>(n=o.apply(t,e),r.recordInputs&&c&&rM(s,c,a,nj(r.enableTruncation)),(async()=>{try{let e=await n;return rL(e,s,r.recordOutputs??!1)}catch(e){throw s.setStatus({code:t2.SPAN_STATUS_ERROR,message:"internal_error"}),(0,tN.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:i}}}),s.end(),e}})()));return nY(n,s,"auto.ai.openai")}let f=(0,tQ.startSpan)(d,s=>(n=o.apply(t,e),r.recordInputs&&c&&rM(s,c,a,nj(r.enableTruncation)),n.then(e=>(!function(e,t,n){if(!t||"object"!=typeof t)return;let r={};if("string"==typeof t.id&&(r[ni]=t.id),"string"==typeof t.model&&(r[no]=t.model),"conversation"===t.object&&"string"==typeof t.id&&(r[ny]=t.id),t.usage&&"object"==typeof t.usage){let e=t.usage,n=e.prompt_tokens??e.input_tokens;"number"==typeof n&&(r[ns]=n);let a=e.completion_tokens??e.output_tokens;"number"==typeof a&&(r[nl]=a),"number"==typeof e.total_tokens&&(r[nu]=e.total_tokens)}if(Array.isArray(t.choices)){let e=t.choices,a=e.map(e=>e.finish_reason).filter(e=>"string"==typeof e);if(a.length>0&&(r[na]=JSON.stringify(a)),n){let t=e.map(e=>{let t=e.message;return t?.content||""});r[ng]=JSON.stringify(t);let n=e.map(e=>{let t=e.message;return t?.tool_calls}).filter(e=>Array.isArray(e)&&e.length>0).flat();n.length>0&&(r[n_]=JSON.stringify(n))}}if("string"!=typeof t.status||r[na]||(r[na]=JSON.stringify([t.status])),n&&("string"!=typeof t.output_text||r[ng]||(r[ng]=t.output_text),Array.isArray(t.output)&&t.output.length>0&&!r[n_])){let e=t.output.filter(e=>e?.type==="function_call");e.length>0&&(r[n_]=JSON.stringify(e))}e.setAttributes(r)}(s,e,r.recordOutputs),e),e=>{throw(0,tN.captureException)(e,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:i}}}),e}
472)));return nY(n,f,"auto.ai.openai")};return"function"==typeof o?o.bind(t):o&&"object"==typeof o?e(o,i,r):o}})}(e,"",nW(t))}let rW=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],rj=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],r$={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"},rG=["select","insert","upsert","update","delete"];function rH(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function rq(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function rz(e,t){return Object.keys(t).length>0?t:Array.isArray(e)&&e.length>0?e:void 0}function rY(e,t){if(!e)return;if("function"==typeof e.get)return e.get(t)??void 0;let n=t.toLowerCase(),r=Object.keys(e).find(e=>e.toLowerCase()===n);return void 0!==r?e[r]:void 0}function rV(e,t=!1){return new Proxy(e,{apply:(n,r,a)=>(0,tQ.startSpan)({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[tA.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},e=>Reflect.apply(n,r,a).then(t=>((0,tG.isObjectLike)(t)&&"error"in t&&t.error?(e.setStatus({code:t2.SPAN_STATUS_ERROR}),(0,tN.captureException)(t.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):e.setStatus({code:t2.SPAN_STATUS_OK}),e.end(),t)).catch(t=>{throw e.setStatus({code:t2.SPAN_STATUS_ERROR}),e.end(),(0,tN.captureException)(t,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),t}).then(...a))})}let rJ=(e,t={})=>{var n;if(!e){t$.DEBUG_BUILD&&b.debug.warn("Supabase integration was not installed because no Supabase client was provided.");return}n=e.constructor===Function?e:e.constructor,rq(n.prototype.from)||(n.prototype.from=new Proxy(n.prototype.from,{apply(e,n,r){let a=Reflect.apply(e,n,r);return function(e,t){for(let n of rG)rq(e.prototype[n])||(e.prototype[n]=new Proxy(e.prototype[n],{apply(e,r,a){let o=Reflect.apply(e,r,a),i=o.constructor;return t$.DEBUG_BUILD&&b.debug.log(`Instrumenting ${n} operation's PostgRESTFilterBuilder`),!function(e,t){rq(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(e,n,r){let a=function(e,t={}){switch(e){case"GET":return"select";case"POST":if(rY(t,"Prefer")?.includes("resolution="))return"upsert";return"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}(n.method,n.headers);if(!rG.includes(a)||!n?.url?.pathname||"string"!=typeof n.url.pathname)return Reflect.apply(e,n,r);let o=n.url.pathname.split("/"),i=o.length>0?o[o.length-1]:"",s=[];for(let[e,t]of n.url.searchParams.entries())s.push(function(e,t){let n;if(""===t||"*"===t)return"select(*)";if("select"===e)return`select(${t})`;if("or"===e||e.endsWith(".or"))return`${e}${t}`;let[r,...a]=t.split(".");return n=r?.startsWith("fts")?"textSearch":r?.startsWith("plfts")?"textSearch[plain]":r?.startsWith("phfts")?"textSearch[phrase]":r?.startsWith("wfts")?"textSearch[websearch]":r&&r$[r]||"filter",`${n}(${e}, ${a.join(".")})`}(e,t));let l=Object.create(null);if((0,tG.isPlainObject)(n.body))for(let[e,t]of Object.entries(n.body))l[e]=t;let u=(0,h.getClient)(),c=t.sendOperationData??u?.getDataCollectionOptions().databaseQueryData===!0,p=rz(n.body,l),d="select"===a?"":`${a}${void 0!==rz(n.body,l)?"(...) ":""}`,f=c?s.join(" "):s.length>0?"[redacted]":"",g=[d.trimEnd(),f].filter(Boolean).join(" "),_=g?`${g} from(${i})`:`from(${i})`,m={"db.table":i,"db.schema":n.schema,"db.url":n.url.origin,"db.sdk":rY(n.headers,"X-Client-Info"),"db.system":"postgresql","db.operation":a,[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.db.supabase",[tA.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"db"};
472return s.length&&c&&(m["db.query"]=s),void 0!==p&&c&&(m["db.body"]=p),(0,tQ.startSpan)({name:_,attributes:m},t=>Reflect.apply(e,n,[]).then(e=>{if(t&&(e&&"object"==typeof e&&"status"in e&&(0,t2.setHttpStatus)(t,e.status||500),t.end()),e?.error){let t=Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);let n={};s.length&&c&&(n.query=s),void 0!==p&&c&&(n.body=p),(0,tN.captureException)(t,e=>(e.addEventProcessor(e=>((0,tM.addExceptionMechanism)(e,{handled:!1,type:"auto.db.supabase.postgres"}),e)),e.setContext("supabase",n),e))}let n={type:"supabase",category:`db.${a}`,message:_},r={};return s.length&&c&&(r.query=s),void 0!==p&&c&&(r.body=p),Object.keys(r).length&&(n.data=r),(0,tC.addBreadcrumb)(n),e},e=>{throw t&&((0,t2.setHttpStatus)(t,500),t.end()),e}).then(...r))}}),rH(e.prototype.then))}(i,t),o}}),rH(e.prototype[n]))}(a.constructor,t),a}}),rH(n.prototype.from));let r=e.auth;if(!(!r||rq(e.auth))){for(let t of rW){let n=r[t];n&&"function"==typeof e.auth[t]&&(e.auth[t]=rV(n))}for(let t of rj){let n=r.admin[t];n&&"function"==typeof e.auth.admin[t]&&(e.auth.admin[t]=rV(n,!0))}rH(e.auth)}},rK=(0,S.defineIntegration)(e=>{let t,n;return t=e.supabaseClient,n={sendOperationData:e.sendOperationData},{setupOnce(){rJ(t,n)},name:"Supabase"}});function rQ(e,t,n,r,a){(0,tq._INTERNAL_captureLog)({level:e,message:t,attributes:n,severityNumber:a},r)}function rX(e,t,{scope:n}={}){rQ("trace",e,t,n)}function rZ(e,t,{scope:n}={}){rQ("debug",e,t,n)}function r0(e,t,{scope:n}={}){rQ("info",e,t,n)}function r1(e,t,{scope:n}={}){rQ("warn",e,t,n)}function r2(e,t,{scope:n}={}){rQ("error",e,t,n)}function r6(e,t,{scope:n}={}){rQ("fatal",e,t,n)}function r5(e,...t){let n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}e.s(["debug",0,rZ,"error",0,r2,"fatal",0,r6,"info",0,r0,"trace",0,rX,"warn",0,r1],801068),e.i(801068),e.s(["debug",0,rZ,"error",0,r2,"fatal",0,r6,"fmt",0,r5,"info",0,r0,"trace",0,rX,"warn",0,r1],718252);var r4=e.i(718252),r4=r4,r3=e.i(268948);function r7(e,t,n,r){(0,r3._INTERNAL_captureMetric)({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}e.s(["count",0,function(e,t=1,n){r7("counter",e,t,n)},"distribution",0,function(e,t,n){r7("distribution",e,t,n)},"gauge",0,function(e,t,n){r7("gauge",e,t,n)}],92756);var r9=e.i(92756),r9=r9;let r8=new Map,ae=new Set;function at(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;let n=function(e,t){if(g.GLOBAL_OBJ._sentryModuleMetadata)for(let t of Object.keys(g.GLOBAL_OBJ._sentryModuleMetadata)){let n=g.GLOBAL_OBJ._sentryModuleMetadata[t];if(!ae.has(t)){for(let r of(ae.add(t),e(t).reverse()))if(r.filename){r8.set(r.filename,n);break}}}return r8.get(t)}(e,t.filename);n&&(t.module_metadata=n)})})}function an(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}let ar=(0,S.defineIntegration)(()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",e=>{(0,tE.forEachEnvelopeItem)(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(an(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||at(e.getOptions().stackParser,t)})}}));var aa=e.i(424702),ao=e.i(763494),ai=e.i(84643),as=e.i(833020),al=e.i(848474),au=e.i(626440);let ac=(0,S.defineIntegration)(e=>({name:"ThirdPartyErrorsFilter",setup(e){e.on("beforeEnvelope",e=>{(0,tE.forEachEnvelopeItem)(e,(e,t)=>{if("event"===t){let t=Array.isArray(e)?e[1]:void 0;t&&(an(t),e[1]=t)}})}),e.on("applyFrameMetadata",t=>{t.type||at(e.getOptions().stackParser,t)})},preprocessEvent(t){e.ignoreSentryInternalFrames&&(g.GLOBAL_OBJ._sentryWrappedDepth??0)>0&&(t.sdkProcessingMetadata={...t.sdkProcessingMetadata,insideSentryWrapped:!0})},processEvent(t){let n=!!e.ignoreSentryInternalFrames&&t.sdkProcessingMetadata?.insideSentryWrapped===!0&&t.exception?.values?.length===1,r=function(e,t,n){let r=(0,au.getFramesFromEvent)(e);if(r)return r.filter((e,r)=>!!e.filename&&(null!=e.lineno||null!=e.colno||null!=e.instruction_addr)&&(!t||!function(e,t,n){var r;if(0!==t)return!1;if(n&&!(r=e).context_line&&!r.pre_context&&r.function&&r.function.length<=2||"sentryWrapped"===e.function)return!0;
472if(!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(af))return!1;if(e.pre_context){let t=e.pre_context.length;for(let n=0;n<t;n++)if(e.pre_context[n]?.includes(ad))return!0}return!1}(e,r,!!n))).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(ap)).map(e=>e.slice(ap.length)):[])}(t,e.ignoreSentryInternalFrames,n);if(r&&r["drop-error-if-contains-third-party-frames"===e.behaviour||"apply-tag-if-contains-third-party-frames"===e.behaviour?"some":"every"](t=>!t.some(t=>e.filterKeys.includes(t)))){if("drop-error-if-contains-third-party-frames"===e.behaviour||"drop-error-if-exclusively-contains-third-party-frames"===e.behaviour)return null;t.tags={...t.tags,third_party_code:!0}}return t}})),ap="_sentryBundlerPluginAppKey:",ad="Attempt to invoke user-land function",af="fn.apply(this, wrappedArguments)";var ag=e.i(224619);function ah(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 a_=(0,S.defineIntegration)((e={})=>{let t=e.limit??10;return{name:"ZodErrors",processEvent:(n,r)=>(function(e,t=!1,n,r){var a;if(!n.exception?.values||!r.originalException||(a=r.originalException,!((0,tG.isError)(a)&&"ZodError"===a.name&&Array.isArray(a.issues)))||0===r.originalException.issues.length)return n;try{let a=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(ah);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:a})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:function(e){let t=new Set;for(let n of e.issues){let e=n.path.map(e=>"number"==typeof e?"<array>":e).join(".");e.length>0&&t.add(e)}let n=Array.from(t);if(0===n.length){let t="variable";if(e.issues.length>0){let n=e.issues[0];void 0!==n&&"expected"in n&&"string"==typeof n.expected&&(t=n.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${(0,tW.truncate)(n.join(", "),100)}`}(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":a.slice(0,e)}}}catch(e){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:e instanceof Error?`${e.name}: ${e.message}
473${e.stack}`:"unknown"}}}}})(t,e.saveZodIssuesAsAttachment,n,r)}});var am=e.i(338891),ay=e.i(513855),ab=e.i(601762);let aS={startProfiler:function(){let e=(0,h.getClient)();if(!e){ab.DEBUG_BUILD&&b.debug.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){ab.DEBUG_BUILD&&b.debug.warn("BrowserProfiling integration is not available");return}e.emit("startUIProfiler")},stopProfiler:function(){let e=(0,h.getClient)();if(!e){ab.DEBUG_BUILD&&b.debug.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){ab.DEBUG_BUILD&&b.debug.warn("ProfilingIntegration is not available");return}e.emit("stopUIProfiler")}};var av=e.i(87704),aT=e.i(740885);function aE(e,{metadata:t,tunnel:n,dsn:r}){let a={event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:(0,tT.dsnToString)(r)}},o=[{type:"user_report"},e];return(0,tE.createEnvelope)(a,[o])}var aI=e.i(222714);function aw(e={}){let t=tg.WINDOW.document,n=t?.head||t?.body;if(!n){ab.DEBUG_BUILD&&b.debug.error("[showReportDialog] Global document not defined");return}let r=(0,h.getCurrentScope)(),a=(0,h.getClient)(),o=a?.getDsn();if(!o){ab.DEBUG_BUILD&&b.debug.error("[showReportDialog] DSN not configured");return}let i={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||(0,tN.lastEventId)()},s=tg.WINDOW.document.createElement("script");s.async=!0,s.crossOrigin="anonymous",s.src=(0,tv.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{tg.WINDOW.removeEventListener("message",e)}};tg.WINDOW.addEventListener("message",e)}n.appendChild(s)}var aR=e.i(154244),aA=e.i(630196),ak=e.i(21972),aC=e.i(974515),aN=e.i(30009),ax=e.i(839276),aO=e.i(457209);let aP=g.GLOBAL_OBJ,aB=new WeakMap,aU=(0,S.defineIntegration)((e={})=>{let t=e.types||["crash","deprecation","intervention"];function n(e){if(aB.has((0,h.getClient)()))for(let t of e)(0,h.withScope)(e=>{e.setExtra("url",t.url);let n=`ReportingObserver [${t.type}]`,r="No details available";if(t.body){let n={};for(let e in t.body)n[e]=t.body[e];if(e.setExtra("body",n),"crash"===t.type){let e=t.body;r=[e.crashId||"",e.reason||""].join(" ").trim()||r}else r=t.body.message||r}(0,tN.captureMessage)(`${n}: ${r}`)})}
473return{name:"ReportingObserver",setupOnce(){(0,aO.supportsReportingObserver)()&&new aP.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){aB.set(e,!0)}}});var aD=e.i(438231),aL=e.i(836850),aL=aL,aM=e.i(850048),aF=aL;function aW(e,t){if(!1===t)return{};try{let n=function(e){let t={},n=0;for(;n<e.length;){let r=e.indexOf("=",n);if(-1===r)break;let a=e.indexOf(";",n);if(-1===a)a=e.length;else if(a<r){n=e.lastIndexOf(";",r-1)+1;continue}let o=e.slice(n,r).trim();if(void 0===t[o]){let n=e.slice(r+1,a).trim();34===n.charCodeAt(0)&&(n=n.slice(1,-1));try{t[o]=-1!==n.indexOf("%")?decodeURIComponent(n):n}catch{t[o]=n}}n=a+1}return t}(e);if(0===Object.keys(n).length)return{};return(0,aF.filterKeyValueData)(n,t,aM.SENSITIVE_COOKIE_NAME_SNIPPETS)}catch{return aM.FILTERED_VALUE}}var aj=e.i(132852),a$=e.i(15989);let aG=(0,S.defineIntegration)((e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:"HttpClient",setup(e){var n,r,a,o;n=e,r=t,(0,aO.supportsNativeFetch)()&&(0,aD.addFetchInstrumentationHandler)(e=>{if((0,h.getClient)()!==n)return;let{response:t,args:a,error:o,virtualError:i}=e,[s,l]=a;t&&function(e,t,n,r,a){if(aq(e,n.status,n.url)){var o,i;let e,s,l,u,c=(o=t,!(i=r)&&o instanceof Request||o instanceof Request&&o.bodyUsed?o:new Request(o,i)),p=aY();if(!1!==p.requestHeaders&&(e=(0,aL.filterKeyValueData)(aH(c.headers),p.requestHeaders)),!1!==p.responseHeaders&&(s=(0,aL.filterKeyValueData)(aH(n.headers),p.responseHeaders)),!1!==p.cookies){let e=c.headers.get("Cookie")||void 0;if(e){let t=aW(e,p.cookies);"object"==typeof t&&(l=t)}let t=n.headers.get("Set-Cookie")||void 0;if(t){let e=aW(t,p.cookies);"object"==typeof e&&(u=e)}}let d=az({url:c.url,method:c.method,status:n.status,requestHeaders:e,responseHeaders:s,requestCookies:l,responseCookies:u,error:a,type:"fetch"});(0,tN.captureEvent)(d)}}(r,s,t,l,o||i)},!1),a=e,o=t,"XMLHttpRequest"in g.GLOBAL_OBJ&&(0,a$.addXhrInstrumentationHandler)(e=>{if((0,h.getClient)()!==a)return;let{error:t,virtualError:n}=e,r=e.xhr,i=r[a$.SENTRY_XHR_DATA_KEY];if(!i)return;let{method:s,request_headers:l}=i;try{!function(e,t,n,r,a){if(aq(e,t.status,t.responseURL)){let e,o,i,s=aY();if(!1!==s.cookies)try{let e=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;if(e){let t=aW(e,s.cookies);"object"==typeof t&&(o=t)}}catch{}if(!1!==s.responseHeaders)try{let e;i=(0,aL.filterKeyValueData)((e=t.getAllResponseHeaders())?e.split("\r\n").reduce((e,t)=>{let[n,r]=t.split(": ");return n&&r&&(e[n]=r),e},{}):{},s.responseHeaders)}catch{}!1!==s.requestHeaders&&(e=(0,aL.filterKeyValueData)(r,s.requestHeaders));let l=az({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:i,responseCookies:o,error:a,type:"xhr"});(0,tN.captureEvent)(l)}}(o,r,s,l,t||n)}catch(e){ab.DEBUG_BUILD&&b.debug.warn("Error while extracting response event form XHR response",e)}})}}});function aH(e){let t={};return e.forEach((e,n)=>{t[n]=e}),t}function aq(e,t,n){var r,a;return r=e.failedRequestStatusCodes,r.some(e=>"number"==typeof e?e===t:t>=e[0]&&t<=e[1])&&(a=e.failedRequestTargets,a.some(e=>"string"==typeof e?n.includes(e):e.test(n)))&&!(0,aj.isSentryRequestUrl)(n,(0,h.getClient)())}function az(e){let t=(0,h.getClient)(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,a=`HTTP Client Error with status code: ${e.status}`,o={message:a,exception:{values:[{type:"Error",value:a,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:function(e){if(e){let t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}(e.responseHeaders)}}};return(0,tM.addExceptionMechanism)(o,{type:`auto.http.client.${e.type}`,handled:!1}),o}function aY(){let e=(0,h.getClient)();if(!e)return{cookies:!1,requestHeaders:!1,responseHeaders:!1};let t=e.getOptions();if(null==t.dataCollection){let e=!!t.sendDefaultPii;return{cookies:e,requestHeaders:e,responseHeaders:e}}let{cookies:n,httpHeaders:r}=e.getDataCollectionOptions();return{cookies:n,requestHeaders:r.request,responseHeaders:r.response}}var aV=e.i(65249);let aJ=g.GLOBAL_OBJ,aK=(0,S.defineIntegration)((e={})=>({name:"ContextLines",processEvent:(t,n,r)=>(function(e,t){let n=aJ.document,r=aJ.location&&(0,aV.stripUrlQueryAndFragment)(aJ.location.href);if(!n||!r)return e;let a=e.exception?.values;if(!a?.length)return e;let o=n.documentElement.innerHTML;if(!o)return e;let i=["<!DOCTYPE html>","<html>",...o.split("\n"),"</html>"];
473return a.forEach(e=>{let n=e.stacktrace;n?.frames&&(n.frames=n.frames.map(e=>{var n,a,o,s;return n=e,a=i,o=r,s=t,n.filename===o&&n.lineno&&a.length&&(0,tM.addContextToFrame)(a,n,s),n}))}),e})(t,e.frameContextLines??r?.getDataCollectionOptions().frameContextLines??7)}));var aQ=e.i(562426),aX=e.i(205249);function aZ(e){if(a2(e))return`persisted ${e.operationName}`;if(a1(e)){let{query:t,operationName:n}=e,{operationName:r=n,operationType:a}=function(e){let t=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/);if(t)return{operationType:t[1],operationName:t[2]};let n=e.match(/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/);return n?{operationType:n[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}(t);return r?`${a} ${r}`:`${a}`}return"unknown"}function a0(e){let t;if("xhr"in e){let n=e.xhr[a$.SENTRY_XHR_DATA_KEY];t=n&&(0,aQ.getBodyString)(n.body)[0]}else{let n=(0,aQ.getFetchRequestArgBody)(e.input);t=(0,aQ.getBodyString)(n)[0]}return t}function a1(e){return(0,tG.isObjectLike)(e)&&"string"==typeof e.query}function a2(e){return(0,tG.isObjectLike)(e)&&"string"==typeof e.operationName&&(0,tG.isObjectLike)(e.extensions)&&(0,tG.isObjectLike)(e.extensions.persistedQuery)&&"string"==typeof e.extensions.persistedQuery.sha256Hash&&"number"==typeof e.extensions.persistedQuery.version}function a6(e){try{let t=JSON.parse(e);if(a1(t)||a2(t))return t;return}catch{return}}let a5=(0,S.defineIntegration)(e=>({name:"GraphQLClient",setup(t){var n,r,a,o;n=t,r=e,n.on("beforeOutgoingRequestSpan",(e,t)=>{let a=(0,rn.spanToJSON)(e).data||{};if("http.client"!==a[tA.SEMANTIC_ATTRIBUTE_SENTRY_OP])return;let o=a[aX.URL_FULL]||a["http.url"]||a.url,i=a[tA.SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD]||a["http.method"];if(!(0,tG.isString)(o)||!(0,tG.isString)(i))return;let{endpoints:s}=r,l=(0,tW.stringMatchesSomePattern)(o,s),u=a0(t);if(l&&u){let t=a6(u);if(t){let r=aZ(t);e.updateName(`${i} ${o} (${r})`),a1(t)&&!0===n.getDataCollectionOptions().graphQL.document&&e.setAttribute(aX.GRAPHQL_DOCUMENT,t.query),a2(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:n,type:r,data:i}=e;if("http"===r&&("fetch"===n||"xhr"===n)){let e=i?.url,{endpoints:n}=o,r=(0,tW.stringMatchesSomePattern)(e,n),s=a0(t);if(r&&i&&s){let e=a6(s);if(!i.graphql&&e){let t=aZ(e);i["graphql.operation"]=t,a1(e)&&!0===a.getDataCollectionOptions().graphQL.document&&(i[aX.GRAPHQL_DOCUMENT]=e.query),a2(e)&&(i["graphql.persisted_query.hash.sha256"]=e.extensions.persistedQuery.sha256Hash,i["graphql.persisted_query.version"]=e.extensions.persistedQuery.version)}}}})}})),a4=(0,S.defineIntegration)((e={})=>{let t=["script"];return{name:"ViewHierarchy",processEvent:(n,r)=>{if(void 0!==n.type||e.shouldAttach?.(n,r)===!1)return n;let a={rendering_system:"DOM",positioning:"absolute",windows:[]};!function n(r,a,o=0){if(r)for(let i of"shadowRoot"in r&&r.shadowRoot?r.shadowRoot.children:r.children){if(!(i instanceof HTMLElement))continue;let r=(0,m.getComponentName)(i,1)||void 0,s=i.tagName.toLowerCase();if(t.includes(s))continue;
473let l=e.onElement?.({element:i,componentName:r,tagName:s,depth:o})||{};if("skip"===l)continue;if("children"===l){n(i,a,o+1);continue}let{x:u,y:c,width:p,height:d}=i.getBoundingClientRect(),f={identifier:i.id||void 0,type:r||s,visible:!0,alpha:1,height:d,width:p,x:u,y:c,...l};f.children=[],n(i,f.children,o+1),a.push(f)}}(e.rootElement?.()||tg.WINDOW.document.body,a.windows);let o={filename:"view-hierarchy.json",attachmentType:"event.view_hierarchy",contentType:"application/json",data:JSON.stringify(a)};return r.attachments=r.attachments||[],r.attachments.push(o),n}}});var a3=e.i(34603),a7=Object.defineProperty,a9=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?a7(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n};function a8(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:a8(e.parentNode,t,n,r+1)}function oe(e,t){return n=>{if(null===n)return!1;try{if(e){if("string"==typeof e){if(n.matches(`.${e}`))return!0}else if(function(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}(n,e))return!0}if(t&&n.matches(t))return!0;return!1}catch{return!1}}}let ot="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.",on={map:{},getId:()=>(console.error(ot),-1),getNode:()=>(console.error(ot),null),removeNodeFromMap(){console.error(ot)},has:()=>(console.error(ot),!1),reset(){console.error(ot)}};function or(e,t,n,r,a=window){let o=a.Object.getOwnPropertyDescriptor(e,t);return a.Object.defineProperty(e,t,r?n:{set(e){ou(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>or(e,t,o||{},!0)}function oa(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],a=n(r);return"function"==typeof a&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=a,()=>{e[t]=r}}catch{return()=>{}}}function oo(e,t,n,r,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=oe(t,n);if(!a){let e=r&&o.matches(r);return i(o)&&!e}let s=a8(o,i),l=-1;return!(s<0)&&(r&&(l=a8(o,oe(null,r))),s>-1&&l<0||s<l)}"u">typeof window&&window.Proxy&&window.Reflect&&(on=new Proxy(on,{get:(e,t,n)=>("map"===t&&console.error(ot),Reflect.get(e,t,n))})),Date.now().toString();let oi={};function os(e){let t=oi[e];if(t)return t;let n=window.document,r=window[e];if(n&&"function"==typeof n.createElement)try{let t=n.createElement("iframe");t.hidden=!0,n.head.appendChild(t);let a=t.contentWindow;a&&a[e]&&(r=a[e]),n.head.removeChild(t)}catch(e){}return oi[e]=r.bind(window)}function ol(...e){return os("requestAnimationFrame")(...e)}function ou(...e){return os("setTimeout")(...e)}var oc=((c=oc||{})[c["2D"]=0]="2D",c[c.WebGL=1]="WebGL",c[c.WebGL2=2]="WebGL2",c);let op=e=>n?(...t)=>{try{return e(...t)}catch(e){if(n&&!0===n(e))return()=>{};throw e}}:e;for(var od="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",of="u"<typeof Uint8Array?[]:new Uint8Array(256),og=0;og<od.length;og++)of[od.charCodeAt(og)]=og;var oh=function(e){var t,n=new Uint8Array(e),r=n.length,a="";for(t=0;t<r;t+=3)a+=od[n[t]>>2],a+=od[(3&n[t])<<4|n[t+1]>>4],a+=od[(15&n[t+1])<<2|n[t+2]>>6],a+=od[63&n[t+2]];return r%3==2?a=a.substring(0,a.length-1)+"=":r%3==1&&(a=a.substring(0,a.length-2)+"=="),a};let o_=new Map,om=(e,t,n)=>{let r;if(!e||!(ob(e,t)||"object"==typeof e))return;let a=e.constructor.name,o=((r=o_.get(n))||(r=new Map,o_.set(n,r)),r.has(a)||r.set(a,[]),r.get(a)),i=o.indexOf(e);return -1===i&&(i=o.length,o.push(e)),i},oy=(e,t,n)=>e.map(e=>(function e(t,n,r){if(t instanceof Array)return t.map(t=>e(t,n,r));if(null===t);else if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};else if(t instanceof ArrayBuffer)return{rr_type:t.constructor.name,base64:oh(t)};else if(t instanceof DataView)return{rr_type:t.constructor.name,args:[e(t.buffer,n,r),t.byteOffset,t.byteLength]};else if(t instanceof HTMLImageElement){let e=t.constructor.name,{src:n}=t;return{rr_type:e,src:n}}else if(t instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:t.toDataURL()};else if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[e(t.data,n,r),t.width,t.height]};else if(ob(t,n)||"object"==typeof t)return{rr_type:t.constructor.name,index:om(t,n,r)};return t}
473)(e,t,n)),ob=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof t[e]).find(n=>e instanceof t[n]);function oS(e,t,n,r,a){let o=[];try{let i=oa(e.HTMLCanvasElement.prototype,"getContext",function(e){return function(o,...i){if(!oo(this,t,n,r,!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 ov(e,t,n,r,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=oa(e,i,function(e){return function(...l){let u=e.apply(this,l);if(om(u,s,this),"tagName"in this.canvas&&!oo(this.canvas,r,a,o,!0)){let e=oy(l,s,this),r={type:t,property:i,args:e};n(this.canvas,r)}return u}});l.push(u)}catch{let r=or(e,i,{set(e){n(this.canvas,{type:t,property:i,args:[e],setter:!0})}});l.push(r)}return l}class oT{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:a,recordCanvas:o,errorHandler:i}=e;if(e.sampling=r,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,i&&function(e){n=e}(i),(o&&"number"==typeof r||t)&&(this.worker=this.initFPSWorker()),this.addWindow(a),t)return;op(()=>{o&&"all"===r&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),o&&"number"==typeof r&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}catch(e){}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(e){let{sampling:t="all",blockClass:n,blockSelector:r,unblockSelector:a,recordCanvas:o,enableManualSnapshot:i}=this.options;if(!this.windowsSet.has(e)){if(i){this.windowsSet.add(e),this.windows.push(new WeakRef(e));return}op(()=>{if(o&&"all"===t&&this.initCanvasMutationObserver(e,n,r,a),o&&"number"==typeof t){let t=oS(e,n,r,a,!0);this.restoreHandlers.push(()=>{t()})}})(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(e,t){t?.skipRequestAnimationFrame?this.takeSnapshot(performance.now(),!0,e):ol(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;
473if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};']),URL.createObjectURL(e)));return t.onmessage=e=>{let t=e.data,{id:n}=t;if(this.snapshotInProgressMap.set(n,!1),!("base64"in t))return;let{base64:r,type:a,width:o,height:i}=t;this.mutationCb({id:n,type:oc["2D"],commands:[{property:"clearRect",args:[0,0,o,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:r}],type:a}]},0,0,o,i]}]})},t}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;let t=n=>{this.takeSnapshot(n,!1),e=ol(t)};e=ol(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,n,r){var a,o;let i,s=oS(e,t,n,r,!1),l=function(e,t,n,r,a){let o=[];for(let i of Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype))try{if("function"!=typeof t.CanvasRenderingContext2D.prototype[i])continue;let s=oa(t.CanvasRenderingContext2D.prototype,i,function(o){return function(...s){return oo(this.canvas,n,r,a,!0)||ou(()=>{let n=oy(s,t,this);e(this.canvas,{type:oc["2D"],property:i,args:n})},0),o.apply(this,s)}});o.push(s)}catch{let n=or(t.CanvasRenderingContext2D.prototype,i,{set(t){e(this.canvas,{type:oc["2D"],property:i,args:[t],setter:!0})}});o.push(n)}return()=>{o.forEach(e=>e())}}(this.processMutation.bind(this),e,t,n,r),u=(a=this.processMutation.bind(this),o=this.mirror,(i=[]).push(...ov(e.WebGLRenderingContext.prototype,oc.WebGL,a,t,n,r,o,e)),void 0!==e.WebGL2RenderingContext&&i.push(...ov(e.WebGL2RenderingContext.prototype,oc.WebGL2,a,t,n,r,o,e)),()=>{i.forEach(e=>e())});this.restoreHandlers.push(()=>{s(),l(),u()})}getCanvasElements(e,t,n){let r=[],a=a=>{a.querySelectorAll("canvas").forEach(a=>{oo(a,e,t,n,!0)||r.push(a)})};for(let e of this.windows){let t,n=e.deref();try{t=n&&n.document}catch{}t&&a(t)}for(let e of this.shadowDoms){let t=e.deref();t&&a(t)}return r}takeSnapshot(e,t,n){let{sampling:r,blockClass:a,blockSelector:o,unblockSelector:i,dataURLOptions:s,maxCanvasSize:l}=this.options;return(!this.lastSnapshotTime||!(e-this.lastSnapshotTime<1e3/("all"===r?2:r||2)))&&(this.lastSnapshotTime=e,(n?[n]:this.getCanvasElements(a,o,i)).forEach(e=>{let n=this.mirror.getId(e);if(!(!this.mirror.hasNode(e)||!e.width||!e.height||this.snapshotInProgressMap.get(n))){if(this.snapshotInProgressMap.set(n,!0),!t&&["webgl","webgl2"].includes(e.__context)){let t=e.getContext(e.__context);t?.getContextAttributes()?.preserveDrawingBuffer===!1&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then(t=>{this.worker?.postMessage({id:n,bitmap:t,width:e.width,height:e.height,dataURLOptions:s,maxCanvasSize:l},[t])}).catch(e=>{op(()=>{throw this.snapshotInProgressMap.delete(n),e})()})}}),!0)}startPendingCanvasMutationFlusher(){ol(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,ol(e)};ol(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),ol(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||-1===t)return;let r=n.map(e=>{let{type:t,...n}=e;return n}),{type:a}=n[0];this.mutationCb({id:t,type:a,commands:r}),this.pendingCanvasMutations.delete(e)}}try{if(2!==Array.from([1],e=>2*e)[0]){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}new class e{constructor(){a9(this,"idNodeMap",new Map),a9(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);
473this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}},(p=d||(d={}))[p.NotStarted=0]="NotStarted",p[p.Running=1]="Running",p[p.Stopped=2]="Stopped";let oE={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}}},oI=(0,S.defineIntegration)((e={})=>{let t,n,[r,a]=e.maxCanvasSize||[],o={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[r?Math.min(r,1280):1280,a?Math.min(a,1280):1280]},i=new Promise(e=>n=e);return{name:"ReplayCanvas",getOptions(){let{quality:e,enableManualSnapshot:r,maxCanvasSize:a}=o;return{enableManualSnapshot:r,recordCanvas:!0,getCanvasManager:e=>{let o=new oT({...e,enableManualSnapshot:r,maxCanvasSize:a,errorHandler:e=>{try{"object"==typeof e&&(e.__rrweb__=!0)}catch{}}});return t=o,n(o),o},...oE[e]||oE.medium}},async snapshot(e,n){(t||await i).snapshot(e,n)}}});var ow=e.i(194269),oR=e.i(536814),oA=e.i(733915),r9=r9,ok=e.i(462003),oC=e.i(521981);let oN=(0,S.defineIntegration)(()=>({name:"ElementTiming",setup(){(0,oC.getBrowserPerformanceAPI)()&&(0,oA.browserPerformanceTimeOrigin)()&&(0,ok.addPerformanceInstrumentationHandler)("element",({entries:e})=>{for(let t of e){if(!t.identifier)continue;let e=t.identifier,n=t.name,r=t.renderTime,a=t.loadTime,o={"sentry.origin":"auto.ui.browser.element_timing","ui.element.identifier":e};n&&(o["ui.element.paint_type"]=n),t.id&&(o["ui.element.id"]=t.id),t.element&&(o["ui.element.type"]=t.element.tagName.toLowerCase()),t.url&&(o["ui.element.url"]=t.url),t.naturalWidth&&(o["ui.element.width"]=t.naturalWidth),t.naturalHeight&&(o["ui.element.height"]=t.naturalHeight),r>0&&r9.distribution("ui.element.render_time",r,{unit:"millisecond",attributes:o}),a>0&&r9.distribution("ui.element.load_time",a,{unit:"millisecond",attributes:o})}})}}));var ox=e.i(699173),oO=e.i(301725);function oP(e=(0,h.getClient)()){e?.emit("endPageloadSpan")}var oB=e.i(409712),oB=oB;function oU(e){let t=(0,rn.getActiveSpan)();if(t===e)return;let n=(0,h.getCurrentScope)();e.end=new Proxy(e.end,{apply:(e,r,a)=>((0,oB._setSpanForScope)(n,t),Reflect.apply(e,r,a))}),(0,oB._setSpanForScope)(n,e)}var oD=e.i(973792),oL=e.i(152386),oM=e.i(461558);class oF{constructor(e,t){this._traceBuckets=new Map,this._client=e;const{maxSpanLimit:n,flushInterval:r,maxTraceWeightInBytes:a}=t??{};this._maxSpanLimit=n&&n>0&&n<=1e3?n:1e3,this._flushInterval=r&&r>0?r:5e3,this._maxTraceWeight=a&&a>0?a:5e6,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>{this._traceBuckets.forEach(e=>{clearTimeout(e.timeout)}),this._traceBuckets.clear()})}add(e){let t=e.trace_id,n=this._traceBuckets.get(t);n||(n={spans:new Set,size:0,timeout:(0,oD.safeUnref)(setTimeout(()=>{this.flush(t)},this._flushInterval))},this._traceBuckets.set(t,n)),n.spans.add(e),n.size+=function(e){let t;if(t=156+2*e.name.length+(0,oM.estimateTypedAttributesSizeInBytes)(e.attributes),e.links&&e.links.length>0){let n=e.links[0],r=n?.attributes;t+=(100+(r?(0,oM.estimateTypedAttributesSizeInBytes)(r):0))*e.links.length}return t}(e),(n.spans.size>=this._maxSpanLimit||n.size>=this._maxTraceWeight)&&this.flush(t)}drain(){this._traceBuckets.size&&(t$.DEBUG_BUILD&&b.debug.log(`Flushing span tree map with ${this._traceBuckets.size} traces`),this._traceBuckets.forEach((e,t)=>{this.flush(t)}))}flush(e){var t,n;let r,a,o,i,s,l,u,c=this._traceBuckets.get(e);if(!c)return;if(!c.spans.size)return void this._removeTrace(e);let p=Array.from(c.spans),d=p[0]?._segmentSpan;if(!d){t$.DEBUG_BUILD&&b.debug.warn("No segment span reference found on span JSON, cannot compute DSC"),this._removeTrace(e);return}let f=(0,al.getDynamicSamplingContextFromSpan)(d),g=p.map(e=>{let{_segmentSpan:t,...n}=e;return n}),h=(r=(t=this._client).getOptions(),a=t.getDsn(),o=r.tunnel,i=(0,tE.getSdkMetadataForEnvelopeHeader)(r._metadata),s={sent_at:new Date((0,oL.safeDateNow)()).toISOString(),...!!(n=f).trace_id&&!!n.public_key&&{trace:f},...i&&{sdk:i},...!!o&&a&&{dsn:(0,tT.dsnToString)(a)}},l=t.getDataCollectionOptions().userInfo?"auto":"never",u=[{type:"span",item_count:g.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...(0,y.isBrowser)()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:g}],(0,tE.createEnvelope)(s,[u]));t$.DEBUG_BUILD&&b.debug.log(`Sending span envelope for trace ${e} with ${g.length} spans`),this._client.sendEnvelope(h).then(null,e=>{t$.DEBUG_BUILD&&b.debug.error("Error while sending streamed span envelope:",e)}),this._removeTrace(e)}_removeTrace(e){let t=this._traceBuckets.get(e);t&&clearTimeout(t.timeout),this._traceBuckets.delete(e)}}var oW=e.i(318517);let oj=(0,S.defineIntegration)(()=>({name:"SpanStreaming",beforeSetup(e){let t=e.getOptions();t.traceLifecycle||(ab.DEBUG_BUILD&&b.debug.log('[SpanStreaming] setting `traceLifecycle` to "stream"'),t.traceLifecycle="stream")},setup(e){let t="SpanStreaming integration requires",n="Falling back to static trace lifecycle.",r=e.getOptions();if(!(0,nw.hasSpanStreamingEnabled)(e)){r.traceLifecycle="static",ab.DEBUG_BUILD&&b.debug.warn(`${t} \`traceLifecycle\` to be set to "stream"! ${n}`);return}let a=r.beforeSendSpan;if(a&&!(0,ag.isStreamedBeforeSendSpanCallback)(a)){r.traceLifecycle="static",ab.DEBUG_BUILD&&b.debug.warn(`${t} a beforeSendSpan callback using \`withStreamedSpan\`! ${n}`);return}let o=new oF(e);e.on("afterSpanEnd",t=>{(0,rn.spanIsSampled)(t)&&o.add((0,oW.captureSpan)(t,e))}),e.on("afterSegmentSpanEnd",e=>{let t=e.spanContext().traceId;setTimeout(()=>{o.flush(t)},500)})}}));var o$=e.i(967721),oG=e.i(864943),oH=e.i(774743);function oq(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function oz(e){return oq(e.getAllKeys())}function oY(e){let t;function n(){var n,r;let a,o;return void 0==t&&(n=e.dbName||"sentry-offline",r=e.storeName||"queue",(a=indexedDB.open(n)).onupgradeneeded=()=>a.result.createObjectStore(r),o=oq(a),t=e=>o.then(t=>e(t.transaction(r,"readwrite").objectStore(r)))),t}return{push:async t=>{try{var r,a;let o=(0,tE.serializeEnvelope)(t);await (r=n(),a=e.maxQueueSize||30,r(e=>oz(e).then(t=>{if(!(t.length>=a))return e.put(o,Math.max(...t,0)+1),oq(e.transaction)})))}catch{}},unshift:async t=>{try{var r,a;let o=(0,tE.serializeEnvelope)(t);await (r=n(),a=e.maxQueueSize||30,r(e=>oz(e).then(t=>{if(!(t.length>=a))return e.put(o,Math.min(...t,0)-1),oq(e.transaction)})))}catch{}},shift:async()=>{try{let e=await n()(e=>oz(e).then(t=>{let n=t[0];if(null!=n)return oq(e.get(n)).then(t=>(e.delete(n),oq(e.transaction).then(()=>t)))}));if(e)return(0,tE.parseEnvelope)(e)}catch{}}}}function oV(e=ay.makeFetchTransport){var t;return t=function(e){function t(...e){t$.DEBUG_BUILD&&b.debug.log("[Offline]:",...e)}return n=>{let r,a=e(n);if(!n.createStore)throw Error("No `createStore` function was provided");let o=n.createStore(n),i=5e3;function s(e){r&&clearTimeout(r),r=(0,oD.safeUnref)(setTimeout(async()=>{r=void 0;let e=await o.shift();e&&(t("Attempting to send previously queued event"),e[0].sent_at=new Date((0,oL.safeDateNow)()).toISOString(),u(e,!0).catch(e=>{t("Failed to retry sending",e)}))},e))}function l(){r||(s(i),i=Math.min(2*i,36e5))}async function u(e,r=!1){if(!r&&(0,tE.envelopeContainsItemType)(e,["replay_event","replay_recording"]))return await o.push(e),s(100),{};
473try{if(n.shouldSend&&await n.shouldSend(e)===!1)throw Error("Envelope not sent because `shouldSend` callback returned false");let t=await a.send(e),r=100;if(t){if(t.headers?.["retry-after"])r=(0,oH.parseRetryAfterHeader)(t.headers["retry-after"]);else if(t.headers?.["x-sentry-rate-limits"])r=6e4;else if((t.statusCode||0)>=400)return t}return s(r),i=5e3,t}catch(a){var c;if(await (c=i,!(0,tE.envelopeContainsItemType)(e,["client_report"])&&(!n.shouldStore||n.shouldStore(e,a,c))))return r?await o.unshift(e):await o.push(e),l(),t("Error sending. Event queued.",a),{};throw a}}return n.flushAtStartup&&l(),{send:u,flush:e=>(void 0===e&&(i=5e3,s(100)),a.flush(e))}}}(e),e=>{let n=t({...e,createStore:oY});return tg.WINDOW.addEventListener("online",async e=>{await n.flush()}),n}}var oJ=e.i(210799),oK=e.i(698695),oQ=e.i(262595);let oX="window"in g.GLOBAL_OBJ&&g.GLOBAL_OBJ.window===g.GLOBAL_OBJ&&"u"<typeof importScripts,oZ=String(0),o0=oX?"main":"worker",o1=tg.WINDOW.navigator,o2="",o6="",o5="",o4=o1?.userAgent||"",o3="",o7=o1?.language||o1?.languages?.[0]||"",o9=o1?.userAgentData;function o8(e){return"pageload"===(0,rn.spanToJSON)(e).op}function ie(e){let t=(0,h.getClient)(),n=t?.getOptions(),r=n?.stackParser;return r?(0,oQ.getDebugImagesForResources)(r,e):[]}function it(e){return"number"!=typeof e&&"boolean"!=typeof e||"number"==typeof e&&isNaN(e)?(ab.DEBUG_BUILD&&b.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)||(ab.DEBUG_BUILD&&b.debug.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1)}"object"==typeof o9&&null!==o9&&"getHighEntropyValues"in o9&&o9.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(o2=e.platform||"",o5=e.architecture||"",o3=e.model||"",o6=e.platformVersion||"",e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];o4=`${t.brand} ${t.version}`}}).catch(e=>void 0);let ir=!1;function ia(){let e=tg.WINDOW.Profiler;if("function"!=typeof e){ab.DEBUG_BUILD&&b.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){ab.DEBUG_BUILD&&(b.debug.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),b.debug.log("[Profiling] Disabling profiling for current user session.")),ir=!0}}function io(e){if(ir)return ab.DEBUG_BUILD&&b.debug.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return ab.DEBUG_BUILD&&b.debug.log("[Profiling] Discarding profile because root span was not sampled."),!1;let t=(0,h.getClient)(),n=t?.getOptions();if(!n)return ab.DEBUG_BUILD&&b.debug.log("[Profiling] Profiling disabled, no options found."),!1;let r=n.profilesSampleRate;return it(r)?r?!!(!0===r||Math.random()<r)||(ab.DEBUG_BUILD&&b.debug.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(ab.DEBUG_BUILD&&b.debug.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(ab.DEBUG_BUILD&&b.debug.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function ii(e){return void 0!==e.profilesSampleRate}let is=new Map,il=new WeakSet;function iu(e){e.setAttribute("thread.id",oZ),e.setAttribute("thread.name",o0)}function ic(e){let t;o8(e)&&(t=1e3*(0,oA.timestampInSeconds)());let n=ia();if(!n)return;ab.DEBUG_BUILD&&b.debug.log(`[Profiling] started profiling span: ${(0,rn.spanToJSON)(e).description}`);let r=(0,tM.uuid4)(),a=null;async function o(){if(e&&n){if(a){ab.DEBUG_BUILD&&b.debug.log("[Profiling] profile for:",(0,rn.spanToJSON)(e).description,"already exists, returning early");return}return n.stop().then(t=>{if(i&&(tg.WINDOW.clearTimeout(i),i=void 0),ab.DEBUG_BUILD&&b.debug.log(`[Profiling] stopped profiling of span: ${(0,rn.spanToJSON)(e).description}`),!t){ab.DEBUG_BUILD&&b.debug.log(`[Profiling] profiler returned null profile for: ${(0,rn.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(is.set(r,t),is.size>30){let e=is.keys().next().value;void 0!==e&&is.delete(e)}}).catch(e=>{ab.DEBUG_BUILD&&b.debug.log("[Profiling] error while stopping profiler:",e)})}}(0,h.getCurrentScope)().setContext("profile",{profile_id:r,start_timestamp:t}),il.add(e),iu(e);let i=tg.WINDOW.setTimeout(()=>{ab.DEBUG_BUILD&&b.debug.log("[Profiling] max profile duration elapsed, stopping profiling for:",(0,rn.spanToJSON)(e).description),o()},3e4),s=e.end.bind(e);e.end=function(){return e?(o().then(()=>{s()},()=>{s()}),e):s()}}class ip{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(e){let t=e.getOptions().profileLifecycle,n=function(e){if(ir)return ab.DEBUG_BUILD&&b.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 ab.DEBUG_BUILD&&b.debug.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;let t=e.profileSessionSampleRate;return it(t)?t?Math.random()<=t:(ab.DEBUG_BUILD&&b.debug.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(ab.DEBUG_BUILD&&b.debug.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}(e.getOptions());ab.DEBUG_BUILD&&b.debug.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),!n&&ab.DEBUG_BUILD&&b.debug.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=(0,tM.uuid4)(),this._client=e,this._sessionSampled=n,this._lifecycleMode=t,"trace"===t&&this._setupTraceLifecycleListeners(e),e.on("spanStart",e=>{this._isRunning&&iu(e)})}
473start(){if("trace"===this._lifecycleMode){ab.DEBUG_BUILD&&b.debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){ab.DEBUG_BUILD&&b.debug.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){ab.DEBUG_BUILD&&b.debug.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if("trace"===this._lifecycleMode){ab.DEBUG_BUILD&&b.debug.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){ab.DEBUG_BUILD&&b.debug.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(e){if("trace"!==this._lifecycleMode||!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;1===n&&(ab.DEBUG_BUILD&&b.debug.log("[Profiling] Detected already active root span during setup. Active root spans now:",n),this._beginProfiling()),this._isRunning&&iu(e)}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,ab.DEBUG_BUILD&&b.debug.log("[Profiling] Started profiling with profiler ID:",this._profilerId),(0,h.getGlobalScope)().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){ab.DEBUG_BUILD&&b.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=>{ab.DEBUG_BUILD&&b.debug.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}),"manual"===this._lifecycleMode&&(0,h.getGlobalScope)().setContext("profile",{}))}_setupTraceLifecycleListeners(e){e.on("spanStart",e=>{if(!this._sessionSampled){ab.DEBUG_BUILD&&b.debug.log("[Profiling] Span not profiled because of negative sampling decision for user session.");return}if(e!==(0,rn.getRootSpan)(e))return;if(!e.isRecording()){ab.DEBUG_BUILD&&b.debug.log("[Profiling] Discarding profile because root span was not sampled.");return}let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;1===n&&(ab.DEBUG_BUILD&&b.debug.log(`[Profiling] Root span ${t} started. Profiling active while there are active root spans (count=${n}).`),this._beginProfiling())}),e.on("spanEnd",e=>{if(!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||!this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.delete(t);let n=this._activeRootSpanIds.size;ab.DEBUG_BUILD&&b.debug.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${n}).`),0===n&&(this._collectCurrentChunk().catch(e=>{ab.DEBUG_BUILD&&b.debug.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,(0,h.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=ia();if(!e){ab.DEBUG_BUILD&&b.debug.log("[Profiling] Failed to start JS Profiler.");return}this._profiler=e}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{ab.DEBUG_BUILD&&b.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)&&(ab.DEBUG_BUILD&&b.debug.log(`[Profiling] Reached 5-minute timeout for root span ${e}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(e),0===this._activeRootSpanIds.size&&this._endProfiling()))}async _collectCurrentChunk(){let e=this._profiler;if(this._profiler=void 0,e)try{let t=await e.stop(),n=function(e,t,n){if(null==e)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);let r=function(e){let t=[];for(let n=0;n<e.frames.length;n++){let r=e.frames[n];r&&(t[n]={function:r.name,abs_path:"number"==typeof r.resourceId?e.resources[r.resourceId]:void 0,lineno:r.line,colno:r.column})}let n=[];for(let t=0;t<e.stacks.length;t++){let r=e.stacks[t];if(!r)continue;let a=[],o=r;for(;o;)a.push(o.frameId),o=void 0===o.parentId?void 0:e.stacks[o.parentId];n[t]=a}let r=(0,oA.browserPerformanceTimeOrigin)(),a="number"==typeof performance.timeOrigin?performance.timeOrigin:r||0,o=a-(r||a),i=[];for(let t=0;t<e.samples.length;t++){let n=e.samples[t];if(!n)continue;let r=(a+(n.timestamp-o))/1e3;i[t]={stack_id:n.stackId??0,thread_id:oZ,timestamp:r}}return{frames:t,stacks:n,samples:i,thread_metadata:{[oZ]:{name:o0}}}}(e),a=t.getOptions(),o=t.getSdkMetadata?.()?.sdk;return{chunk_id:(0,tM.uuid4)(),client_sdk:{name:o?.name??"sentry.javascript.browser",version:o?.version??"0.0.0"},profiler_id:n||(0,tM.uuid4)(),platform:"javascript",version:"2",release:a.release??"",environment:a.environment??"production",debug_meta:{images:ie(e.resources)},profile:r}}(t,this._client,this._profilerId),r=function(e){try{if(!e||"object"!=typeof e)return{reason:"chunk is not an object"};let t=e=>"string"==typeof e&&/^[a-f0-9]{32}$/.test(e);
473if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};let n=e.profile;if(!n)return{reason:"missing profile data"};if(!Array.isArray(n.frames)||!n.frames.length)return{reason:"profile has no frames"};if(!Array.isArray(n.stacks)||!n.stacks.length)return{reason:"profile has no stacks"};if(!Array.isArray(n.samples)||!n.samples.length)return{reason:"profile has no samples"};return{valid:!0}}catch(e){return{reason:`unknown validation error: ${e}`}}}(n);if("reason"in r){ab.DEBUG_BUILD&&b.debug.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",r.reason);return}this._sendProfileChunk(n),ab.DEBUG_BUILD&&b.debug.log("[Profiling] Collected browser profile chunk.")}catch(e){ab.DEBUG_BUILD&&b.debug.log("[Profiling] Error while stopping JS Profiler for chunk:",e)}}_sendProfileChunk(e){let t=this._client,n=(0,tE.getSdkMetadataForEnvelopeHeader)(t.getSdkMetadata?.()),r=t.getDsn(),a=t.getOptions().tunnel,o=(0,tE.createEnvelope)({event_id:(0,tM.uuid4)(),sent_at:new Date().toISOString(),...n&&{sdk:n},...!!a&&r&&{dsn:(0,tT.dsnToString)(r)}},[[{type:"profile_chunk",platform:"javascript"},e]]);t.sendEnvelope(o).then(null,e=>{ab.DEBUG_BUILD&&b.debug.error("Error while sending profile chunk envelope:",e)})}}let id=(0,S.defineIntegration)(()=>({name:"BrowserProfiling",setup(e){let t=e.getOptions(),n=new ip;if(ii(t)||t.profileLifecycle||(t.profileLifecycle="manual"),ii(t)&&!t.profilesSampleRate){ab.DEBUG_BUILD&&b.debug.log("[Profiling] Profiling disabled, no profiling options found.");return}let r=(0,rn.getActiveSpan)(),a=r&&(0,rn.getRootSpan)(r);if(ii(t)&&void 0!==t.profileSessionSampleRate&&ab.DEBUG_BUILD&&b.debug.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),ii(t))a&&o8(a)&&io(a)&&ic(a),e.on("spanStart",e=>{let t=(0,rn.getRootSpan)(e);e===t?io(e)&&ic(e):il.has(t)&&iu(e)}),e.on("beforeEnvelope",e=>{let t;if(!is.size)return;let n=(t=[],(0,tE.forEachEnvelopeItem)(e,(e,n)=>{if("transaction"===n)for(let n=1;n<e.length;n++){let r=e[n];r?.contexts?.profile?.profile_id&&t.push(e[n])}}),t);if(!n.length)return;let r=[];for(let e of n){let t=e?.contexts,n=t?.profile?.profile_id,a=t?.profile?.start_timestamp;if("string"!=typeof n||!n){ab.DEBUG_BUILD&&b.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=is.get(e);return t&&is.delete(e),t}(n);if(!o){ab.DEBUG_BUILD&&b.debug.log(`[Profiling] Could not retrieve profile for span: ${n}`);continue}let i=function(e,t,n,r){return(n.samples.length<2?(ab.DEBUG_BUILD&&b.debug.log("[Profiling] Discarding profile because it contains less than 2 samples"),1):!n.frames.length&&(ab.DEBUG_BUILD&&b.debug.log("[Profiling] Discarding profile because it contains no frames"),1))?null:function(e,t,n,r){var a;let o;if("transaction"!==r.type)throw TypeError("Profiling events may only be attached to transactions, this should never occur.");if(null==n)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);let i=("string"==typeof(o=r.contexts?.trace?.trace_id)&&32!==o.length&&ab.DEBUG_BUILD&&b.debug.log(`[Profiling] Invalid traceId: ${o} on profiled event`),"string"!=typeof o)?"":o,s="thread_metadata"in(a=n)?a:function(e){let t,n=0,r={samples:[],stacks:[],frames:[],thread_metadata:{[oZ]:{name:o0}}},a=e.samples[0];if(!a)return r;let o=a.timestamp,i=(0,oA.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=n,r.stacks[t]=[],n++),r.samples[i]={elapsed_since_start_ns:((a.timestamp+l-o)*1e6).toFixed(0),stack_id:t,thread_id:oZ};return}let s=e.stacks[a.stackId],u=[];for(;s;){u.push(s.frameId);let t=e.frames[s.frameId];t&&void 0===r.frames[s.frameId]&&(r.frames[s.frameId]={function:t.name,abs_path:"number"==typeof t.resourceId?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),s=void 0===s.parentId?void 0:e.stacks[s.parentId]}let c={elapsed_since_start_ns:((a.timestamp+l-o)*1e6).toFixed(0),stack_id:n,thread_id:oZ};r.stacks[n]=u,r.samples[i]=c,n++}),r}(a),l=t||("number"==typeof r.start_timestamp?1e3*r.start_timestamp:1e3*(0,oA.timestampInSeconds)()),u="number"==typeof r.timestamp?1e3*r.timestamp:1e3*(0,oA.timestampInSeconds)();return{event_id:e,timestamp:new Date(l).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||oK.DEFAULT_ENVIRONMENT,runtime:{name:"javascript",version:tg.WINDOW.navigator.userAgent},os:{name:o2,version:o6,build_number:o4},device:{locale:o7,model:o3,manufacturer:o4,architecture:o5,is_emulator:!1},debug_meta:{images:ie(n.resources)},profile:s,transactions:[{name:r.transaction||"",id:r.event_id||
473(0,tM.uuid4)(),trace_id:i,active_thread_id:oZ,relative_start_ns:"0",relative_end_ns:((u-l)*1e6).toFixed(0)}]}}(e,t,n,r)}(n,a,o,e);i&&r.push(i)}!function(e,t){if(t.length)for(let n of t)e[1].push([{type:"profile"},n])}(e,r)});else{let r=t.profileLifecycle;if(e.on("startUIProfiler",()=>n.start()),e.on("stopUIProfiler",()=>n.stop()),"manual"===r)n.initialize(e);else if("trace"===r){if(!(0,oJ.hasSpansEnabled)(t)){ab.DEBUG_BUILD&&b.debug.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}n.initialize(e),a&&n.notifyRootSpanActive(a),tg.WINDOW.setTimeout(()=>{let e=(0,rn.getActiveSpan)(),t=e&&(0,rn.getRootSpan)(e);t&&n.notifyRootSpanActive(t)},0)}}}}));var ig=e.i(874792);let ih=[{op:"ui.interaction.click",name:"#sentry-spotlight"}],i_=(0,S.defineIntegration)((e={})=>{let t=e.sidecarUrl||"http://localhost:8969/stream";return{name:"SpotlightBrowser",setup:()=>{ab.DEBUG_BUILD&&b.debug.log("Using Sidecar URL",t)},beforeSetup(e){let t=e.getOptions();t.ignoreSpans=[...t.ignoreSpans||[],...ih]},afterAllSetup:e=>{var n,r;let a,o;n=e,r=t,a=(0,ig.getNativeImplementation)("fetch"),o=0,n.on("beforeEnvelope",e=>{o>3?b.debug.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",o):a(r,{method:"POST",body:(0,tE.serializeEnvelope)(e),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(e=>{e.status>=200&&e.status<400&&(o=0)},e=>{o++,b.debug.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",e)})})}}});var im=e.i(297685);let iy=(0,S.defineIntegration)(()=>
473({name:"LaunchDarkly",processEvent:(e,t,n)=>ra(e)}));function ib(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{ro(e,t.value),ri(e,t.value)}}}let iS=(0,S.defineIntegration)(()=>({name:"OpenFeature",processEvent:(e,t,n)=>ra(e)}));class iv{after(e,t){ro(t.flagKey,t.value),ri(t.flagKey,t.value)}error(e,t,n){ro(e.flagKey,e.defaultValue),ri(e.flagKey,e.defaultValue)}}var iT=e.i(105661);let iE=(0,S.defineIntegration)(({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){let t=e.prototype;(0,iT.fill)(t,"isEnabled",iI)},processEvent:(e,t,n)=>ra(e)}));function iI(e){return function(...t){let n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r?(ro(n,r),ri(n,r)):ab.DEBUG_BUILD&&b.debug.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}let iw=(0,S.defineIntegration)(({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){let t=e.prototype;"function"==typeof t.isOn&&(0,iT.fill)(t,"isOn",iR),"function"==typeof t.getFeatureValue&&(0,iT.fill)(t,"getFeatureValue",iR)}
473,processEvent:(e,t,n)=>ra(e)}));function iR(e){return function(...t){let n=t[0],r=e.apply(this,t);return"string"==typeof n&&"boolean"==typeof r&&(ro(n,r),ri(n,r)),r}}let iA=({growthbookClass:e})=>iw({growthbookClass:e}),ik=(0,S.defineIntegration)(({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",e=>{ro(e.gate.name,e.gate.value),ri(e.gate.name,e.gate.value)})},processEvent:(e,t,n)=>ra(e)}));async function iC(){let e=(0,h.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,tQ.suppressTracing)(()=>fetch(t,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}let iN=(0,S.defineIntegration)(({worker:e})=>({name:"WebWorker",setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>ix(e))},addWorker:e=>ix(e)}));function ix(e){e.addEventListener("message",e=>{if(function(e){if(!(0,tG.isPlainObject)(e)||!0!==e._sentryMessage)return!1;let t="_sentryDebugIds"in e,n="_sentryModuleMetadata"in e,r="_sentryWorkerError"in e,a="_sentryWasmImages"in e;return(!!t||!!n||!!r||!!a)&&(!t||!!((0,tG.isPlainObject)(e._sentryDebugIds)||void 0===e._sentryDebugIds))&&(!n||!!((0,tG.isPlainObject)(e._sentryModuleMetadata)||void 0===e._sentryModuleMetadata))&&(!r||!!(0,tG.isPlainObject)(e._sentryWorkerError))&&(!a||!!Array.isArray(e._sentryWasmImages)&&!!e._sentryWasmImages.every(e=>(0,tG.isPlainObject)(e)&&"string"==typeof e.code_file))&&!0}(e.data)){if(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(ab.DEBUG_BUILD&&b.debug.log("Sentry debugId web worker message received",e.data),tg.WINDOW._sentryDebugIds={...e.data._sentryDebugIds,...tg.WINDOW._sentryDebugIds}),e.data._sentryModuleMetadata&&(ab.DEBUG_BUILD&&b.debug.log("Sentry module metadata web worker message received",e.data),tg.WINDOW._sentryModuleMetadata={...e.data._sentryModuleMetadata,...tg.WINDOW._sentryModuleMetadata}),e.data._sentryWasmImages){ab.DEBUG_BUILD&&b.debug.log("Sentry WASM images web worker message received",e.data);let t=tg.WINDOW._sentryWasmImages||[],n=e.data._sentryWasmImages.filter(e=>(0,tG.isPlainObject)(e)&&"string"==typeof e.code_file&&!t.some(t=>t.code_file===e.code_file));tg.WINDOW._sentryWasmImages=[...t,...n]}e.data._sentryWorkerError&&(ab.DEBUG_BUILD&&b.debug.log("Sentry worker rejection message received",e.data._sentryWorkerError),function(e){let t=(0,h.getClient)();if(!t)return;let n=t.getOptions().stackParser,r=t.getOptions().attachStacktrace,a=e.reason,o=(0,tG.isPrimitive)(a)?(0,aA._eventFromRejectionWithPrimitive)(a):(0,aT.eventFromUnknownInput)(n,a,void 0,r,!0);o.level="error",e.filename&&(o.contexts={...o.contexts,worker:{filename:e.filename}}),(0,tN.captureEvent)(o,{originalException:a,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),ab.DEBUG_BUILD&&b.debug.log("Captured worker unhandled rejection",a)}(e.data._sentryWorkerError))}})}function iO({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{let n={reason:(0,aA._getUnhandledRejectionError)(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:n}),ab.DEBUG_BUILD&&b.debug.log("[Sentry Worker] Forwarding unhandled rejection to parent",n)}),ab.DEBUG_BUILD&&b.debug.log("[Sentry Worker] Registered worker with unhandled rejection handling")}e.s(["BrowserClient",()=>am.BrowserClient,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",0,tI,"OpenFeatureIntegrationHook",0,iv,"SDK_VERSION",()=>tf.SDK_VERSION,"SEMANTIC_ATTRIBUTE_SENTRY_OP",()=>tA.SEMANTIC_ATTRIBUTE_SENTRY_OP,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",()=>tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",()=>tA.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",()=>tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"Scope",()=>tk.Scope,"WINDOW",()=>tg.WINDOW,"addBreadcrumb",()=>tC.addBreadcrumb,"addEventProcessor",()=>tN.addEventProcessor,"addIntegration",()=>S.addIntegration,"bindScopeToEmitter",0,tB,"breadcrumbsIntegration",()=>aR.breadcrumbsIntegration,"browserApiErrorsIntegration",()=>aN.browserApiErrorsIntegration,"browserProfilingIntegration",0,id,"browserSessionIntegration",()=>ax.browserSessionIntegration,"browserTracingIntegration",()=>oR.browserTracingIntegration,"buildLaunchDarklyFlagUsedHandler",0,ib,"captureConsoleIntegration",0,tj,"captureEvent",()=>tN.captureEvent,"captureException",()=>tN.captureException,"captureFeedback",0,_,"captureMessage",()=>tN.captureMessage,"captureSession",()=>tN.captureSession,"chromeStackLineParser",()=>av.chromeStackLineParser,"close",()=>tN.close,"consoleLoggingIntegration",0,tK,"contextLinesIntegration",0,aK,"continueTrace",()=>tQ.continueTrace,"createConsolaReporter",0,tZ,"createLangChainCallbackHandler",0,n3,"createTransport",()=>n7.createTransport,"createUserFeedbackEnvelope",0,aE,"cultureContextIntegration",()=>im.cultureContextIntegration,"dedupeIntegration",()=>n9.dedupeIntegration,"defaultRequestInstrumentationOptions",()=>ow.defaultRequestInstrumentationOptions,"defaultStackLineParsers",()=>av.defaultStackLineParsers,"defaultStackParser",()=>av.defaultStackParser,"diagnoseSdkConnectivity",0,iC,"elementTimingIntegration",0,oN,"endSession",()=>tN.endSession,"eventFiltersIntegration",()=>n8.eventFiltersIntegration,"eventFromException",()=>aT.eventFromException,"eventFromMessage",()=>aT.eventFromMessage,"exceptionFromError",()=>
473aT.exceptionFromError,"extraErrorDataIntegration",0,rt,"featureFlagsIntegration",0,rs,"feedbackAsyncIntegration",0,tb,"feedbackIntegration",0,tS,"feedbackSyncIntegration",0,tS,"fetchStreamPerformanceIntegration",()=>o$.fetchStreamPerformanceIntegration,"flush",()=>tN.flush,"forceLoad",()=>aI.forceLoad,"functionToStringIntegration",()=>rl.functionToStringIntegration,"geckoStackLineParser",()=>av.geckoStackLineParser,"getAbsoluteUrl",()=>ox.getAbsoluteUrl,"getActiveSpan",()=>rn.getActiveSpan,"getClient",()=>h.getClient,"getCurrentScope",()=>h.getCurrentScope,"getDefaultIntegrations",()=>aI.getDefaultIntegrations,"getFeedback",0,ea,"getGlobalScope",()=>h.getGlobalScope,"getIsolationScope",()=>h.getIsolationScope,"getReplay",()=>a3.getReplay,"getRootSpan",()=>rn.getRootSpan,"getSpanDescendants",()=>rn.getSpanDescendants,"getSpanStatusFromHttpCode",()=>t2.getSpanStatusFromHttpCode,"getTraceData",()=>ru.getTraceData,"globalHandlersIntegration",()=>aA.globalHandlersIntegration,"graphqlClientIntegration",0,a5,"growthbookIntegration",0,iA,"httpClientIntegration",0,aG,"httpContextIntegration",()=>ak.httpContextIntegration,"inboundFiltersIntegration",()=>n8.inboundFiltersIntegration,"init",()=>aI.init,"instrumentAnthropicAiClient",0,rb,"instrumentCreateReactAgent",0,rI,"instrumentGoogleGenAIClient",0,rO,"instrumentLangChainEmbeddings",0,rB,"instrumentLangGraph",0,rw,"instrumentOpenAiClient",0,rF,"instrumentOutgoingRequests",()=>ow.instrumentOutgoingRequests,"instrumentStateGraph",0,rw,"instrumentSupabaseClient",0,rJ,"isBotUserAgent",()=>oR.isBotUserAgent,"isEnabled",()=>tN.isEnabled,"isInitialized",()=>tN.isInitialized,"lastEventId",()=>tN.lastEventId,"launchDarklyIntegration",0,iy,"lazyLoadIntegration",0,ty,"linkedErrorsIntegration",()=>aC.linkedErrorsIntegration,"logger",()=>r4,"makeBrowserOfflineTransport",0,oV,"makeFetchTransport",()=>ay.makeFetchTransport,"makeMultiplexedTransport",0,tR,"metrics",()=>r9,"moduleMetadataIntegration",0,ar,"normalizeStringifyValue",()=>oO.normalizeStringifyValue,"onLoad",()=>aI.onLoad,"openFeatureIntegration",0,iS,"opera10StackLineParser",()=>av.opera10StackLineParser,"opera11StackLineParser",()=>av.opera11StackLineParser,"parameterize",0,r5,"registerSpanErrorInstrumentation",()=>aa.registerSpanErrorInstrumentation,"registerWebWorker",0,iO,"replayCanvasIntegration",0,oI,"replayIntegration",()=>a3.replayIntegration,"reportPageLoaded",0,oP,"reportingObserverIntegration",0,aU,"rewriteFramesIntegration",()=>ao.rewriteFramesIntegration,"sendFeedback",0,J,"setActiveSpanInBrowser",0,oU,"setAttribute",()=>tN.setAttribute,"setAttributes",()=>tN.setAttributes,"setContext",()=>tN.setContext,"setConversationId",()=>tN.setConversationId,"setCurrentClient",()=>ai.setCurrentClient,"setExtra",()=>tN.setExtra,"setExtras",()=>tN.setExtras,"setHttpStatus",()=>t2.setHttpStatus,"setMeasurement",()=>as.setMeasurement,"setTag",()=>tN.setTag,"setTags",()=>tN.setTags,"setUser",()=>tN.setUser,"showReportDialog",0,aw,"spanStreamingIntegration",0,oj,"spanToBaggageHeader",()=>al.spanToBaggageHeader,"spanToJSON",()=>rn.spanToJSON,"spanToTraceHeader",()=>rn.spanToTraceHeader,"spotlightBrowserIntegration",0,i_,"startBrowserTracingNavigationSpan",()=>oR.startBrowserTracingNavigationSpan,"startBrowserTracingPageLoadSpan",()=>oR.startBrowserTracingPageLoadSpan,"startInactiveSpan",()=>tQ.startInactiveSpan,"startNewTrace",()=>tQ.startNewTrace,"startSession",()=>tN.startSession,"startSpan",()=>tQ.startSpan,"startSpanManual",()=>tQ.startSpanManual,"statsigIntegration",0,ik,"supabaseIntegration",0,rK,"suppressTracing",()=>tQ.suppressTracing,"thirdPartyErrorFilterIntegration",0,ac,"uiProfiler",0,aS,"unleashIntegration",0,iE,"updateSpanName",()=>rn.updateSpanName,"viewHierarchyIntegration",0,a4,"webVitalsIntegration",()=>oG.webVitalsIntegration,"webWorkerIntegration",0,iN,"winjsStackLineParser",()=>av.winjsStackLineParser,"withActiveSpan",()=>tQ.withActiveSpan,"withIsolationScope",()=>h.withIsolationScope,"withScope",()=>h.withScope,"withStreamedSpan",()=>ag.withStreamedSpan,"zodErrorsIntegration",0,a_],828476),e.i(828476);var iP=e.i(96998),iB=e.i(687652);function iU(e,{componentStack:t},n){let r;if(null!==(r=iB.version.match(/^([^.]+)/))&&parseInt(r[0])>=17&&(0,tG.isError)(e)&&t){let n,r=Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,n=new WeakSet,function e(t,r){if(!n.has(t)){if(t.cause)return n.add(t),e(t.cause,r);t.cause=r}}(e,r)}
473return(0,tN.captureException)(e,n)}function iD(e){return(t,n)=>{let r=!!e,a=iU(t,n,{mechanism:{handled:r,type:"auto.function.react.error_handler"}});r&&e(t,n,a)}}var iL=iB;let iM="ui.react.render",iF="ui.react.mount",iW={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ij={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i$={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},iG=Symbol.for("react.forward_ref"),iH=Symbol.for("react.memo"),iq={};function iz(e){if("object"==typeof e&&null!==e&&e.$$typeof===iH)return i$;let t=e.$$typeof;return t&&iq[t]||iW}iq[iG]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},iq[iH]=i$;let iY=Object.defineProperty.bind(Object),iV=Object.getOwnPropertyNames.bind(Object),iJ=Object.getOwnPropertySymbols?.bind(Object),iK=Object.getOwnPropertyDescriptor.bind(Object),iQ=Object.getPrototypeOf.bind(Object),iX=Object.prototype;function iZ(e,t,n){if("string"!=typeof t){if(iX){let n=iQ(t);n&&n!==iX&&iZ(e,n)}let n=iV(t);iJ&&(n=n.concat(iJ(t)));let r=iz(e),a=iz(t);for(let o of n)if(!ij[o]&&!a?.[o]&&!r?.[o]&&!iK(e,o)){let n=iK(t,o);if(n)try{iY(e,o,n)}catch(e){}}}return e}class i0 extends iL.Component{constructor(e){super(e);const{name:t,disabled:n=!1}=this.props;if(n)return;this._mountSpan=(0,tQ.startInactiveSpan)({name:`<${t}>`,onlyIfParent:!0,op:iF,attributes:{[tA.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,oA.timestampInSeconds)();this._updateSpan=(0,tQ.withActiveSpan)(this._mountSpan,()=>(0,tQ.startInactiveSpan)({name:`<${this.props.name}>`,onlyIfParent:!0,op:"ui.react.update",startTime:e,attributes:{[tA.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,oA.timestampInSeconds)(),{name:t,includeRender:n=!0}=this.props;if(this._mountSpan&&n){let n=(0,rn.spanToJSON)(this._mountSpan).timestamp;(0,tQ.withActiveSpan)(this._mountSpan,()=>{let r=(0,tQ.startInactiveSpan)({onlyIfParent:!0,name:`<${t}>`,op:iM,startTime:n,attributes:{[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":t}});r&&r.end(e)})}}render(){return this.props.children}}function i1(e,t){let n=t?.name||e.displayName||e.name||"unknown",r=r=>iL.createElement(i0,{...t,name:n,updateProps:r},iL.createElement(e,{...r}));return r.displayName=`profiler(${n})`,iZ(r,e),r}function i2(e,t={disabled:!1,hasRenderSpan:!0}){let[n]=iL.useState(()=>{if(!t?.disabled)return(0,tQ.startInactiveSpan)({name:`<${e}>`,onlyIfParent:!0,op:iF,attributes:{[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":e}})});iL.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){let t=(0,rn.spanToJSON)(n).timestamp,r=(0,oA.timestampInSeconds)(),a=(0,tQ.startInactiveSpan)({name:`<${e}>`,onlyIfParent:!0,op:iM,startTime:t,attributes:{[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.ui.react.profiler","ui.component_name":e}});a&&a.end(r)}}),[])}Object.assign(i0,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}});var i6=iB;let i5={componentStack:null,error:null,eventId:null};class i4 extends i6.Component{constructor(e){super(e),this.state=i5,this._openFallbackReportDialog=!0;const t=(0,h.getClient)();t&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=t.on("afterSendEvent",t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&aw({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,t){let{componentStack:n}=t,{beforeCapture:r,onError:a,showDialog:o,dialogOptions:i}=this.props;(0,h.withScope)(s=>{r&&r(s,e,n);let l=iU(e,t,{mechanism:{handled:null!=this.props.handled?this.props.handled:!!this.props.fallback,type:"auto.function.react.error_boundary"}});a&&a(e,n,l),o&&(this._lastEventId=l,this._openFallbackReportDialog&&aw({...i,eventId:l})),this.setState({error:e,componentStack:n,eventId:l})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&(this.state===i5?r(null,null,null):r(e,t,n)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){let{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(i5)}render(){let{fallback:e,children:t}=this.props,n=this.state;if(null===n.componentStack)return"function"==typeof t?t():t;let r="function"==typeof e?i6.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:n.eventId}):e;return i6.isValidElement(r)?r:null}}function i3(e,t){let n=e.displayName||e.name||"unknown",r=i6.memo(n=>i6.createElement(i4,{...t},i6.createElement(e,{...n})));return r.displayName=`errorBoundary(${n})`,iZ(r,e),r}let i7={attachReduxState:!0,actionTransformer:e=>e,stateTransformer:e=>e||null};function i9(e){let t={...i7,...e};return e=>(n,r)=>{function a(e){return(n,r)=>{let a=e(n,r),o=(0,h.getCurrentScope)(),i=t.actionTransformer(r);null!=i&&(0,tC.addBreadcrumb)({category:"redux.action",data:i,type:"info"});let s=t.stateTransformer(a);if(null!=s){let e=(0,h.getClient)(),t=e?.getOptions(),n=t?.normalizeDepth||3,r={state:{type:"redux",value:s}};(0,re.setNormalizationDepthOverrideHint)(r,3+n),o.setContext("state",r)}else o.setContext("state",null);let{configureScopeWithState:l}=t;return"function"==typeof l&&l(o,a),a}}t.attachReduxState&&(0,h.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(n),r);return o.replaceReducer=new Proxy(o.replaceReducer,{apply:function(e,t,n){e.apply(t,[a(n[0])])}}),o}}function i8(e){let t=(0,oR.browserTracingIntegration)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,match:a,instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),o&&tg.WINDOW.location&&se(r,tg.WINDOW.location,a,(t,n="url")=>{(0,oR.startBrowserTracingPageLoadSpan)(e,{name:t,attributes:{[tA.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.reactrouter_v3",[tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n,..."route"===n&&{[aX.URL_TEMPLATE]:t}}})}),i&&n.listen&&n.listen(t=>{("PUSH"===t.action||"POP"===t.action)&&se(r,t,a,(t,n="url")=>{(0,oR.startBrowserTracingNavigationSpan)(e,{name:t,attributes:{[tA.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.react.reactrouter_v3",[tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:n,..."route"===n&&{[aX.URL_TEMPLATE]:t}}})})})}}}function se(e,t,n,r){let a=t.pathname;n({location:t,routes:e},(e,t,n)=>{if(e||!n)return r(a);let o=function(e){if(!Array.isArray(e)||0===e.length)return"";let t=e.filter(e=>!!e.path),n=-1;for(let e=t.length-1;e>=0;e--){let r=t[e];if(r.path?.startsWith("/")){n=e;break}}return t.slice(n).reduce((e,{path:t})=>{let n="/"===e||""===e?t:`/${t}`;return`${e}${n}`},"")}(n.routes||[]);return 0===o.length||"/*"===o?r(a):r(a=o,"route")})}function st(e,t={}){let n=(0,oR.browserTracingIntegration)({...t,instrumentNavigation:!1,instrumentPageLoad:!1}),{instrumentPageLoad:r=!0,instrumentNavigation:a=!0}=t;return{...n,afterAllSetup(t){n.afterAllSetup(t);let o=(t,n)=>{let r=e.matchRoutes(t,n,{preload:!1,throwOnError:!1}),a=r[r.length-1];return a?.routeId!=="__root__"?a:void 0},i=(t,n,r,a)=>{var o;let i;t.updateName(n?n.routeId:a),t.setAttribute(tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,n?"route":"url"),t.setAttributes({...n&&{[aX.URL_TEMPLATE]:n.routeId},...(i=sn(e,o=r),{[aX.URL_PATH]:o.pathname,[aX.URL_FULL]:i}),...sr(n)})},s=tg.WINDOW.location;if(r&&s){let n=e.state?.location,r=n?o(n.pathname,n.search):o(s.pathname,e.options.parseSearch(s.search)),a=(0,oR.startBrowserTracingPageLoadSpan)(t,{name:r?r.routeId:s.pathname,attributes:{[tA.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.pageload.react.tanstack_router",[tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r?"route":"url",...r&&{[aX.URL_TEMPLATE]:r.routeId},...sr(r)}}),l=e.subscribe("onResolved",e=>{if(l(),!a)return;let{toLocation:t}=e;i(a,o(t.pathname,t.search),t,t.pathname)})}if(a){let n;e.subscribe("onBeforeLoad",r=>{let{toLocation:a,fromLocation:s}=r;if(!s||a.state===s.state)return;let l=o(a.pathname,a.search),u=tg.WINDOW.location?.pathname||a.pathname;n?i(n,l,a,u):n=(0,oR.startBrowserTracingNavigationSpan)(t,{name:l?l.routeId:u,attributes:{[tA.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.navigation.react.tanstack_router",[tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:l?"route":"url",...l&&{[aX.URL_TEMPLATE]:l.routeId},...sr(l)}},{url:sn(e,a)})}),e.subscribe("onResolved",e=>{let t=n;if(n=void 0,!t)return;let{toLocation:r}=e,a=o(r.pathname,r.search);a&&i(t,a,r,tg.WINDOW.location?.pathname||r.pathname)})}}}}function sn(e,t){let n=e.options.stringifySearch?.(t.search)??"",r=`${t.pathname}${n&&"?"!==n?n:""}`;return(0,ox.getAbsoluteUrl)(r)}function sr(e){if(!e)return{};let t={};
473return Object.entries(e.params).forEach(([e,n])=>{t[`url.path.params.${e}`]=n,t[`${aX.URL_PATH_PARAMETER_KEY_BASE}.${e}`]=n,t[`${aX.PARAMS_KEY_BASE}.${e}`]=n}),t}function sa(e){let t=(0,oR.browserTracingIntegration)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:a,instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),si(e,o,i,n,"reactrouter_v4",r,a)}}}function so(e){let t=(0,oR.browserTracingIntegration)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{history:n,routes:r,matchPath:a,instrumentPageLoad:o=!0,instrumentNavigation:i=!0}=e;return{...t,afterAllSetup(e){t.afterAllSetup(e),si(e,o,i,n,"reactrouter_v5",r,a)}}}function si(e,t,n,r,a,o=[],i){function s(e){if(0===o.length||!i)return[e,"url"];for(let t of function e(t,n,r,a=[]){return t.some(t=>{let o=t.path?r(n,t):a.length?a[a.length-1].match:{path:"/",url:"/",params:{},isExact:"/"===n};return o&&(a.push({route:t,match:o}),t.routes&&e(t.routes,n,r,a)),!!o}),a}(o,e,i))if(t.match.isExact)return[t.match.path,"route"];return[e,"url"]}if(t){let t=r.location?r.location.pathname:tg.WINDOW.location?tg.WINDOW.location.pathname:void 0;if(t){let[n,r]=s(t);(0,oR.startBrowserTracingPageLoadSpan)(e,{name:n,attributes:{[tA.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.pageload.react.${a}`,[tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r,..."route"===r&&{[aX.URL_TEMPLATE]:n}}})}}n&&r.listen&&r.listen((t,n)=>{if(n&&("PUSH"===n||"POP"===n)){let[n,r]=s(t.pathname);(0,oR.startBrowserTracingNavigationSpan)(e,{name:n,attributes:{[tA.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.navigation.react.${a}`,[tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:r,..."route"===r&&{[aX.URL_TEMPLATE]:n}}})}})}function ss(e){let t=e.displayName||e.name,n=t=>{if(t?.computedMatch?.isExact){let e=t.computedMatch.path,n=function(){let e=(0,rn.getActiveSpan)(),t=e&&(0,rn.getRootSpan)(e);if(!t)return;let n=(0,rn.spanToJSON)(t).op;return"navigation"===n||"pageload"===n?t:void 0}();(0,h.getCurrentScope)().setTransactionName(e),n&&(n.updateName(e),n.setAttributes({[tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[aX.URL_TEMPLATE]:e}))}return iB.createElement(e,{...t})};return n.displayName=`sentryRoute(${t})`,iZ(n,e),n}function sl(e,t){if(!t||"/"===t||!e.toLowerCase().startsWith(t.toLowerCase()))return e;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?e:e.slice(n)||"/"}let su=new WeakMap;function sc(e,t){return void 0!==e&&void 0!==t&&(!!sd.test(t)||e===t)}function sp(e){return e.split("/").filter(Boolean)}let sd=/^:[\w-]+$/;function sf(e){let t=e.split("/"),n=t.length;for(let e of(t.includes("*")&&(n+=-2),t))if("*"===e)continue;else sd.test(e)?n+=3:""===e?n+=1:n+=10;return n}let sg=!1,sh=[];function s_(){let e=sh.length;return e>0?sh[e-1]??null:null}function sm(e){return e.params["*"]||""}function sy(e){return"*"===e[e.length-1]?e.slice(0,-1):e}function sb(e){return"/"===e[e.length-1]?e.slice(0,-1):e}function sS(e){return e.endsWith("*")}function sv(e){return e.includes("/*")||e.endsWith("*")}function sT(e,t){return sS(e)&&!!t.route.children?.length||!1}function sE(e){return!!(!e.children&&e.element&&e.path?.endsWith("/*"))}function sI(e){return e.split(/\\?\//).filter(e=>e.length>0&&","!==e).length}function sw(e){return"/"===e[0]?e:`/${e}`}function sR(e,t){let n=r(e,t);if(!n||0===n.length)return"";for(let r of n)if(r.route.path&&"*"!==r.route.path){let n=sy(r.route.path||""),a=sl(t.pathname,sw(r.pathnameBase));if(t.pathname===a)return sb(a);return sb(sb(n||"")+sw(sR(e.filter(e=>e!==r.route),{pathname:a})))}return""}function sA(e,t){return sg?sl(e.pathname,t):e.pathname||""}function sk(e,t,n,a,o="",i,s){let l;if(s&&i&&i.length>0){let t=function(e,t,n){if(!e||!t?.length)return null;let r=n?sl(e,n):e,a=su.get(t);for(let e of(a||(a=[...t].sort((e,t)=>{let n=sf(e);return sf(t)-n}),su.set(t,a)),a))if(function(e,t){if("/"===t)return"/"===e||""===e;let n=sp(e),r=sp(t);if(r.length>0&&"*"===r[r.length-1]){let e=r.slice(0,-1);if(n.length<e.length)return!1;for(let[t,r]of e.entries())if(!sc(n[t],r))return!1;return!0}if(n.length!==r.length)return!1;for(let[e,t]of r.entries())if(!sc(n[e],t))return!1;return!0}(r,e))return e;return null}(e.pathname,i,o);if(t)return[(sg?"":o)+t,"route"]}let u="url",c=function(e,t){let n=r(t,e);if(n){for(let e of n)if(sE(e.route)&&sm(e))return!0}return!1}(e,n);c&&(l=sw(sR(n,e)),u="route"),c&&l||([l,u]=function(e,t,n,r=""){if(!e||0===e.length)return[sg?sl(t.pathname,r):t.pathname,"url"];if(!n)return[sA(t,r),"url"];let a="";for(let e of n){let n=e.route;if(!n)continue;if(n.index)return function(e,t,n){let r=e&&e.length>0?e:sg?sl(t,n):t,a="/*"===r.slice(-2)?r.slice(0,-2):r;return a.length>1&&"/"===a[a.length-1]&&(a=a.slice(0,-1)),[a,"route"]}(a,e.pathname,r);let o=n.path;if(!o||sT(o,e))continue;let i="/"===o[0]||"/"===a[a.length-1]?o:`/${o}`;if(a=sb(a)+sw(i),sb(t.pathname)===sb(r+e.pathname)){if(sI(a)!==sI(e.pathname)&&!sS(a))return[(sg?"":r)+i,"route"];return sT(a,e)&&(a=a.slice(0,-1)),[(sg?"":r)+a,"route"]}}return[sA(t,r),"url"]}(t,e,a,o));let p=function(e,t,n){let a=t.filter(sE);if(!a.length)return;
473let o=r(a,e),i=o?.[o.length-1];if(!i||!sm(i))return;let s=sb(sy(i.route.path||""));if(!s)return;let l=sw(s),u=s.split("/")[0],c=u?.startsWith(":")&&n?.split("/").includes(u);if(n===l||n?.startsWith(`${l}/`)||c)return;let p=sl(e.pathname,sw(i.pathnameBase))||"/",d=sR(t.filter(e=>e!==i.route),{pathname:p});return d?sw(`${s}${sw(d)}`):void 0}(e,n,l);return p?[p,"route"]:[l||e.pathname,u]}function sC(){let e=(0,rn.getActiveSpan)(),t=e?(0,rn.getRootSpan)(e):void 0;if(!t)return;let n=(0,rn.spanToJSON)(t).op;return"navigation"===n||"pageload"===n?t:void 0}function sN(e,t){if(e.handle&&"object"==typeof e.handle)for(let n of Object.keys(e.handle)){let r=e.handle[n];"function"!=typeof r||r.__sentry_proxied__||(e.handle[n]=function(e,t,n,r){let a=new Proxy(e,{apply(e,n,a){let o,i=function(){let e=s_();if(e)return e.targetPath?{pathname:e.targetPath,search:"",hash:"",state:null,key:"default"}:null;if(void 0!==tg.WINDOW)try{let e=tg.WINDOW.location;if(e)return{pathname:e.pathname,search:e.search||"",hash:e.hash||"",state:null,key:"default"}}catch{}return null}(),s=(o=s_())?o.span:sC(),l=e.apply(n,a);return function(e,t,n,r,a){(0,tG.isThenable)(e)?e.then(e=>{Array.isArray(e)&&n(e,t,r??void 0,a)}).catch(e=>{}):Array.isArray(e)&&n(e,t,r??void 0,a)}(l,t,r,i,s),l}});return(0,iT.addNonEnumerableProperty)(a,"__sentry_proxied__",!0),a}(r,e,n,t))}if(Array.isArray(e.children))for(let n of e.children)sN(n,t)}let sx=!1,sO=3e3,sP="",sB=new WeakSet,sU=tg.WINDOW?.document?iB.useLayoutEffect:iB.useEffect,sD=new WeakMap,sL=new Set,sM=new WeakMap,sF=new WeakMap;function sW(e){tg.WINDOW?.cancelAnimationFrame?tg.WINDOW.cancelAnimationFrame(e):clearTimeout(e)}function sj(e){return`${e.pathname}${e.search||""}${e.hash||""}`}function s$(e){return e.includes(":")||e.includes("*")}function sG(e,t){let n=t.children||[],r=e.filter(e=>!n.some(t=>t===e||e.path&&t.path===e.path||e.id&&t.id===e.id));r.length>0&&(t.children=[...n,...r])}function sH(e,t){let n=sM.get(e);n||(n=new Set,sM.set(e,n)),n.add(t),t.finally(()=>{let n=sM.get(e);n&&n.delete(t)})}function sq(e){let t=new Promise(t=>{sF.set(e,t)});sH(e,t)}function sz(e,t,n=null,r){e.forEach(e=>{sL.add(e),sx&&sN(e,sz)}),t&&sG(e,t);let a=r??sC();if(a){let e=(0,rn.spanToJSON)(a);if(e.timestamp)return;let t=e.op,o=n;if(!o&&!r&&void 0!==tg.WINDOW){let e=tg.WINDOW.location;e?.pathname&&(o={pathname:e.pathname})}o&&("pageload"===t?s6({activeRootSpan:a,location:{pathname:o.pathname},routes:Array.from(sL),allRoutes:Array.from(sL)}):"navigation"===t&&sY(a,o,Array.from(sL),!1,l))}}function sY(e,t,n,r=!1,a){let o=(0,rn.spanToJSON)(e),i=o.description,s=e?.__sentry_navigation_name_set__,l=i&&sv(i);if((!s||r||l)&&!o.timestamp){let r=a(n,t),[c,p]=sk(t,n,n,r||[],sP,u,sx),d=o.data?.[tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];c&&(!i||!s&&("route"!==d||"route"===p)||"route"!==d&&"route"===p||"route"===d&&"route"===p&&l)&&(e.updateName(c),e.setAttribute(tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,p),"route"===p&&e.setAttribute(aX.URL_TEMPLATE,c),sv(c)||"route"!==p||(0,iT.addNonEnumerableProperty)(e,"__sentry_navigation_name_set__",!0))}}function sV(e,t,n,r,a){let o=!1,i=!!a&&"pageload"===(0,rn.spanToJSON)(a).op,s=!1,l=null,u=null;e.subscribe(e=>{if(!o){let t=sC();t&&"pageload"===(0,rn.spanToJSON)(t).op?i=!0:i&&("POP"!==e.historyAction||s?o=!0:s=!0)}if("PUSH"===e.historyAction||"POP"===e.historyAction&&o){let a=sj(e.location),o=()=>{u!==a&&(u=a,l=null,s0({location:e.location,routes:t,navigationType:e.historyAction,version:n,basename:r,allRoutes:Array.from(sL)}))};if("idle"!==e.navigation.state)u!==a&&(u=null),null!==l&&sW(l),l=tg.WINDOW?.requestAnimationFrame?tg.WINDOW.requestAnimationFrame(o):setTimeout(o,0);else null!==l&&(sW(l),l=null),o()}})}function sJ(e,t){return a&&o&&i&&l?function(n,r){if(s1(n),sx)for(let e of n)sN(e,sz);let a=sC();r&&"patchRoutesOnNavigation"in r&&"function"==typeof r.patchRoutesOnNavigation&&a&&((0,iT.addNonEnumerableProperty)(a,"__sentry_may_have_lazy_routes__",!0),sq(a));let o=e(n,sZ(r,!1,a)),i=r?.basename;return"POP"===o.state.historyAction&&a&&s6({activeRootSpan:a,location:o.state.location,routes:n,basename:i,allRoutes:Array.from(sL)}),sP=i||"",sV(o,n,t,i,a),o}:e}function sK(e,t){return a&&o&&i&&l?function(n,r){let a;if(s1(n),sx)for(let e of n)sN(e,sz);let o=sC();r&&"patchRoutesOnNavigation"in r&&"function"==typeof r.patchRoutesOnNavigation&&o&&((0,iT.addNonEnumerableProperty)(o,"__sentry_may_have_lazy_routes__",!0),sq(o));let i=e(n,sZ(r,!0,o)),s=r?.basename,l=r?.initialEntries,u=r?.initialIndex,c=l?.length===1,p=void 0!==u&&l?.[u],d=(a=c?l[0]:p?l[u]:void 0)?"string"==typeof a?{pathname:a}:a:i.state.location,f=sC();return"POP"===i.state.historyAction&&f&&s6({activeRootSpan:f,location:d,routes:n,basename:s,allRoutes:Array.from(sL)}),sP=s||"",sV(i,n,t,s,f),i}:e}function sQ(e,t){let n=(0,oR.browserTracingIntegration)({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:c,useLocation:p,useNavigationType:d,createRoutesFromChildren:f,matchRoutes:g,stripBasename:h,enableAsyncRouteHandlers:_=!1,instrumentPageLoad:m=!0,instrumentNavigation:y=!0,lazyRouteTimeout:b,lazyRouteManifest:S}=e;return{...n,setup(t){n.setup(t);let m=e.finalTimeout??3e4,y=(e.idleTimeout??1e3)*3,v=b??y;sO=v===1/0?m:Number.isNaN(v)?y:v<0?y:v,a=c,o=p,i=d,l=g,s=f,sx=_,u=S,function(e,t=!1){r=e,sg=t}(g,h||!1)},afterAllSetup(e){n.afterAllSetup(e);let r=tg.WINDOW.location?.pathname;m&&r&&(0,oR.startBrowserTracingPageLoadSpan)(e,{name:r,attributes:{[tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"url",[tA.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"pageload",[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.pageload.react.reactrouter${t?`_v${t}`:""}`}}),y&&sB.add(e)}}}function sX(e,t){if(!a||!o||!i||!l)return e;let n=n=>{let r=iB.useRef(!0),{routes:a,locationArg:s}
473=n,l=e(a,s),u=o(),c=i(),p="string"==typeof s||s?.pathname?s:u;return sU(()=>{let e=s1(a);return()=>s2(e)}),sU(()=>{let e="string"==typeof p?{pathname:p}:p;r.current?(s6({activeRootSpan:sC(),location:e,routes:a,allRoutes:Array.from(sL)}),r.current=!1):s0({location:e,routes:a,navigationType:c,version:t,allRoutes:Array.from(sL)})},[c,p]),l};return(e,t)=>iB.createElement(n,{routes:e,locationArg:t})}function sZ(e,t=!1,n){if(!e||!("patchRoutesOnNavigation"in e)||"function"!=typeof e.patchRoutesOnNavigation)return e||{};let r=e.patchRoutesOnNavigation;return{...e,patchRoutesOnNavigation:async e=>{let a=e?.path,o=sC()??n;if(!t){let t=e?.patch,n=e?.matches;t&&(e.patch=(e,r)=>{if(s1(r),n&&n.length>0){let t=n[n.length-1],a=t?.route;if(a){let t=Array.from(sL).find(t=>{let n=void 0!==t.id&&t.id===e,r=t===a,o=void 0!==t.path&&void 0!==a.path&&t.path===a.path;return n||r||o});t&&sG(r,t)}}let i=o?(0,rn.spanToJSON)(o):void 0;return a&&o&&i&&!i.timestamp&&"navigation"===i.op&&sY(o,{pathname:a,search:"",hash:"",state:null,key:"default"},Array.from(sL),!0,l),t(e,r)})}let i=(async()=>{let t,n,i=(n={},sh.length>=10&&sh.shift(),sh.push({token:n,targetPath:a,span:o}),n);try{t=await r(e)}finally{let e,t;e=sh[sh.length-1],e?.token===i&&sh.pop(),o&&(t=sF.get(o))&&(t(),sF.delete(o),o.__sentry_may_have_lazy_routes__&&(o.__sentry_may_have_lazy_routes__=!1))}let s=o?(0,rn.spanToJSON)(o):void 0;return o&&s&&!s.timestamp&&"navigation"===s.op&&a&&sY(o,{pathname:a,search:"",hash:"",state:null,key:"default"},Array.from(sL),!1,l),t})();return o&&sH(o,i),i}}}function s0(e){let{location:t,routes:n,navigationType:r,version:a,matches:o,basename:i,allRoutes:s}=e,c=Array.isArray(o)?o:l(s||n,t,i),p=(0,h.getClient)();if(!p||!sB.has(p))return;let d=sC();if((!d||"pageload"!==(0,rn.spanToJSON)(d).op||"POP"!==r)&&("PUSH"===r||"POP"===r)&&c){let e,[r,o]=sk(t,s||n,s||n,c,i,u,sx),l=sj(t),d=sD.get(p),f=!!d&&!d.isPlaceholder&&!!(0,rn.spanToJSON)(d.span).timestamp,{skip:g,shouldUpdate:h}=function(e,t,n,r){if(!e)return{skip:!1,shouldUpdate:!1};if(e.locationKey===t&&(e.isPlaceholder||!r)){let t=!!e.routeName&&sv(e.routeName),r=sv(n),a=!!e.routeName&&s$(e.routeName),o=s$(n),i=n!==e.routeName&&n.length>(e.routeName?.length||0)&&!r;return{skip:!0,shouldUpdate:!!(e.routeName&&(t&&!r||!a&&o||i))}}return{skip:!1,shouldUpdate:!1}}(d,l,r,f);if(g){h&&d&&(d.routeName,d.isPlaceholder||(d.span.updateName(r),d.span.setAttribute(tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,o),"route"===o&&d.span.setAttribute(aX.URL_TEMPLATE,r),(0,iT.addNonEnumerableProperty)(d.span,"__sentry_navigation_name_set__",!0)),d.routeName=r);return}let _={span:{end:()=>{}},routeName:r,pathname:t.pathname,locationKey:l,isPlaceholder:!0};sD.set(p,_);try{e=(0,oR.startBrowserTracingNavigationSpan)(p,{name:_.routeName,attributes:{[tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:o,[tA.SEMANTIC_ATTRIBUTE_SENTRY_OP]:"navigation",[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:`auto.navigation.react.reactrouter${a?`_v${a}`:""}`,..."route"===o&&{[aX.URL_TEMPLATE]:_.routeName}}})}catch(e){throw sD.delete(p),e}e?(sD.set(p,{span:e,routeName:_.routeName,pathname:t.pathname,locationKey:l}),s4(e,t,n,i,"navigation")):sD.delete(p)}}function s1(e){let t=[];return e.forEach(e=>{(function e(t,n=new Set){return n.has(t)||(n.add(t),t.children&&!t.index&&t.children.forEach(t=>{e(t,n).forEach(e=>{n.add(e)})})),n})(e).forEach(e=>{sL.add(e),t.push(e)})}),t}function s2(e){e.forEach(e=>{sL.delete(e)})}function s6({activeRootSpan:e,location:t,routes:n,matches:r,basename:a,allRoutes:o}){let i=Array.isArray(r)?r:l(o||n,t,a);if(i){let[r,s]=sk(t,o||n,o||n,i,a,u,sx);(0,h.getCurrentScope)().setTransactionName(r||"/"),e&&(e.updateName(r),e.setAttribute(tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,s),"route"===s&&e.setAttribute(aX.URL_TEMPLATE,r),s4(e,t,n,a,"pageload"))}else e&&s4(e,t,n,a,"pageload")}function s5(e,t,n,r,a,o,i,s){try{let c=t.data?.[tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];if("route"===c&&n&&!sv(n))return;let p=Array.from(s),d=p.length>0?p:a,f=l(d,r,o);if(!f)return;let[g,h]=sk(r,d,d,f,o,u,sx),_=function(e,t,n,r,a=!1){return!!n&&(!!(!e&&a||e&&sv(e)&&"route"===r&&!sv(n))||"route"!==t&&"route"===r)}(n,c,g,h,!0),m="pageload"===i||!t.timestamp;_&&m&&(e.updateName(g),e.setAttribute(tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,h),"route"===h&&e.setAttribute(aX.URL_TEMPLATE,g))}catch(e){}}function s4(e,t,n,r,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,rn.spanToJSON)(e),c=u.description,p=u.data?.[tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE],d=()=>{let t=(0,h.getClient)();if(t&&"navigation"===a){let n=sD.get(t);n&&n.span===e&&sD.delete(t)}},f=sM.get(e),g=e.__sentry_may_have_lazy_routes__;if((f&&f.size>0||g)&&c&&(sv(c)||"route"!==p)){let o;if(0===sO){s5(e,u,c,t,n,r,a,sL),d(),i(l);return}let s=new Promise(e=>setTimeout(e,sO));if(f&&f.size>0){let e=Promise.allSettled(f).then(()=>{});o=sO===1/0?e:Promise.race([e,s])}else o=s;o.then(()=>{let o=(0,rn.spanToJSON)(e);
473s5(e,o,o.description,t,n,r,a,sL),d(),i(l)}).catch(()=>{d(),i(l)});return}s5(e,u,c,t,n,r,a,sL),d(),i(l)},(0,iT.addNonEnumerableProperty)(e,o,!0)}function s3(e,t){if(!a||!o||!i||!s||!l)return e;let n=n=>{let r=iB.useRef(!0),a=o(),l=i(),u=s(n.children);return sU(()=>{let e=s1(u);return()=>s2(e)}),sU(()=>{r.current?(s6({activeRootSpan:sC(),location:a,routes:u,allRoutes:Array.from(sL)}),r.current=!1):s0({location:a,routes:u,navigationType:l,version:t,allRoutes:Array.from(sL)})},[a,l]),iB.createElement(e,{...n})};return iZ(n,e),n}function s7(e){return sQ(e,"6")}function s9(e){return sX(e,"6")}function s8(e){return sJ(e,"6")}function le(e){return sK(e,"6")}function lt(e){return s3(e,"6")}function ln(e){return sQ(e,"7")}function lr(e){return s3(e,"7")}function la(e){return sJ(e,"7")}function lo(e){return sK(e,"7")}function li(e){return sX(e,"7")}function ls(e){return sQ(e,"")}function ll(e){return s3(e,"")}function lu(e){return sJ(e,"")}function lc(e){return sK(e,"")}function lp(e){return sX(e,"")}e.s(["BrowserClient",()=>am.BrowserClient,"ErrorBoundary",0,i4,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",0,tI,"OpenFeatureIntegrationHook",0,iv,"Profiler",0,i0,"SDK_VERSION",()=>tf.SDK_VERSION,"SEMANTIC_ATTRIBUTE_SENTRY_OP",()=>tA.SEMANTIC_ATTRIBUTE_SENTRY_OP,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",()=>tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",()=>tA.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",()=>tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"Scope",()=>tk.Scope,"WINDOW",()=>tg.WINDOW,"addBreadcrumb",()=>tC.addBreadcrumb,"addEventProcessor",()=>tN.addEventProcessor,"addIntegration",()=>S.addIntegration,"bindScopeToEmitter",0,tB,"breadcrumbsIntegration",()=>aR.breadcrumbsIntegration,"browserApiErrorsIntegration",()=>aN.browserApiErrorsIntegration,"browserProfilingIntegration",0,id,"browserSessionIntegration",()=>ax.browserSessionIntegration,"browserTracingIntegration",()=>oR.browserTracingIntegration,"buildLaunchDarklyFlagUsedHandler",0,ib,"captureConsoleIntegration",0,tj,"captureEvent",()=>tN.captureEvent,"captureException",()=>tN.captureException,"captureFeedback",0,_,"captureMessage",()=>tN.captureMessage,"captureReactException",0,iU,"captureSession",()=>tN.captureSession,"chromeStackLineParser",()=>av.chromeStackLineParser,"close",()=>tN.close,"consoleLoggingIntegration",0,tK,"contextLinesIntegration",0,aK,"continueTrace",()=>tQ.continueTrace,"createConsolaReporter",0,tZ,"createLangChainCallbackHandler",0,n3,"createReduxEnhancer",0,i9,"createTransport",()=>n7.createTransport,"createUserFeedbackEnvelope",0,aE,"cultureContextIntegration",()=>im.cultureContextIntegration,"dedupeIntegration",()=>n9.dedupeIntegration,"defaultRequestInstrumentationOptions",()=>ow.defaultRequestInstrumentationOptions,"defaultStackLineParsers",()=>av.defaultStackLineParsers,"defaultStackParser",()=>av.defaultStackParser,"diagnoseSdkConnectivity",0,iC,"elementTimingIntegration",0,oN,"endSession",()=>tN.endSession,"eventFiltersIntegration",()=>n8.eventFiltersIntegration,"eventFromException",()=>aT.eventFromException,"eventFromMessage",()=>aT.eventFromMessage,"exceptionFromError",()=>aT.exceptionFromError,"extraErrorDataIntegration",0,rt,"featureFlagsIntegration",0,rs,"feedbackAsyncIntegration",0,tb,"feedbackIntegration",0,tS,"feedbackSyncIntegration",0,tS,"fetchStreamPerformanceIntegration",()=>o$.fetchStreamPerformanceIntegration,"flush",()=>tN.flush,"forceLoad",()=>aI.forceLoad,"functionToStringIntegration",()=>rl.functionToStringIntegration,"geckoStackLineParser",()=>av.geckoStackLineParser,"getAbsoluteUrl",()=>ox.getAbsoluteUrl,"getActiveSpan",()=>rn.getActiveSpan,"getClient",()=>h.getClient,"getCurrentScope",()=>h.getCurrentScope,"getDefaultIntegrations",()=>aI.getDefaultIntegrations,"getFeedback",0,ea,"getGlobalScope",()=>h.getGlobalScope,"getIsolationScope",()=>h.getIsolationScope,"getReplay",()=>a3.getReplay,"getRootSpan",()=>rn.getRootSpan,"getSpanDescendants",()=>rn.getSpanDescendants,"getSpanStatusFromHttpCode",()=>t2.getSpanStatusFromHttpCode,"getTraceData",()=>ru.getTraceData,"globalHandlersIntegration",()=>aA.globalHandlersIntegration,"graphqlClientIntegration",0,a5,"growthbookIntegration",0,iA,"httpClientIntegration",0,aG,"httpContextIntegration",()=>ak.httpContextIntegration,"inboundFiltersIntegration",()=>n8.inboundFiltersIntegration,"init",()=>iP.init,"instrumentAnthropicAiClient",0,rb,"instrumentCreateReactAgent",0,rI,"instrumentGoogleGenAIClient",0,rO,"instrumentLangChainEmbeddings",0,rB,"instrumentLangGraph",0,rw,"instrumentOpenAiClient",0,rF,"instrumentOutgoingRequests",()=>ow.instrumentOutgoingRequests,"instrumentStateGraph",0,rw,"instrumentSupabaseClient",0,rJ,"isBotUserAgent",()=>oR.isBotUserAgent,"isEnabled",()=>tN.isEnabled,"isInitialized",()=>tN.isInitialized,"lastEventId",()=>tN.lastEventId,"launchDarklyIntegration",0,iy,"lazyLoadIntegration",0,ty,"linkedErrorsIntegration",()=>aC.linkedErrorsIntegration,"logger",()=>r4,"makeBrowserOfflineTransport",0,oV,"makeFetchTransport",()=>ay.makeFetchTransport,"makeMultiplexedTransport",0,tR,"metrics",()=>r9,"moduleMetadataIntegration",0,ar,"normalizeStringifyValue",()=>oO.normalizeStringifyValue,"onLoad",()=>aI.onLoad,"openFeatureIntegration",0,iS,"opera10StackLineParser",()=>av.opera10StackLineParser,"opera11StackLineParser",()=>av.opera11StackLineParser,"parameterize",0,r5,"reactErrorHandler",0,iD,"reactRouterBrowserTracingIntegration",0,ls,"reactRouterV3BrowserTracingIntegration",0,i8,"reactRouterV4BrowserTracingIntegration",0,sa,"reactRouterV5BrowserTracingIntegration",0,so,"reactRouterV6BrowserTracingIntegration",0,s7,"reactRouterV7BrowserTracingIntegration",0,ln,"registerSpanErrorInstrumentation",()=>aa.registerSpanErrorInstrumentation,"registerWebWorker",0,iO,"replayCanvasIntegration",0,oI,"replayIntegration",()=>a3.replayIntegration,"reportPageLoaded",0,oP,"reportingObserverIntegration",0,aU,"rewriteFramesIntegration",()=>ao.rewriteFramesIntegration,"sendFeedback",0,J,"setActiveSpanInBrowser",0,oU,"setAttribute",()=>tN.setAttribute,"setAttributes",()=>tN.setAttributes,"setContext",()=>tN.setContext,"setConversationId",()=>tN.setConversationId,"setCurrentClient",()=>
473ai.setCurrentClient,"setExtra",()=>tN.setExtra,"setExtras",()=>tN.setExtras,"setHttpStatus",()=>t2.setHttpStatus,"setMeasurement",()=>as.setMeasurement,"setTag",()=>tN.setTag,"setTags",()=>tN.setTags,"setUser",()=>tN.setUser,"showReportDialog",0,aw,"spanStreamingIntegration",0,oj,"spanToBaggageHeader",()=>al.spanToBaggageHeader,"spanToJSON",()=>rn.spanToJSON,"spanToTraceHeader",()=>rn.spanToTraceHeader,"spotlightBrowserIntegration",0,i_,"startBrowserTracingNavigationSpan",()=>oR.startBrowserTracingNavigationSpan,"startBrowserTracingPageLoadSpan",()=>oR.startBrowserTracingPageLoadSpan,"startInactiveSpan",()=>tQ.startInactiveSpan,"startNewTrace",()=>tQ.startNewTrace,"startSession",()=>tN.startSession,"startSpan",()=>tQ.startSpan,"startSpanManual",()=>tQ.startSpanManual,"statsigIntegration",0,ik,"supabaseIntegration",0,rK,"suppressTracing",()=>tQ.suppressTracing,"tanstackRouterBrowserTracingIntegration",0,st,"thirdPartyErrorFilterIntegration",0,ac,"uiProfiler",0,aS,"unleashIntegration",0,iE,"updateSpanName",()=>rn.updateSpanName,"useProfiler",0,i2,"viewHierarchyIntegration",0,a4,"webVitalsIntegration",()=>oG.webVitalsIntegration,"webWorkerIntegration",0,iN,"winjsStackLineParser",()=>av.winjsStackLineParser,"withActiveSpan",()=>tQ.withActiveSpan,"withErrorBoundary",0,i3,"withIsolationScope",()=>h.withIsolationScope,"withProfiler",0,i1,"withScope",()=>h.withScope,"withSentryReactRouterV6Routing",0,lt,"withSentryReactRouterV7Routing",0,lr,"withSentryRouting",0,ss,"withStreamedSpan",()=>ag.withStreamedSpan,"wrapCreateBrowserRouter",0,lu,"wrapCreateBrowserRouterV6",0,s8,"wrapCreateBrowserRouterV7",0,la,"wrapCreateMemoryRouter",0,lc,"wrapCreateMemoryRouterV6",0,le,"wrapCreateMemoryRouterV7",0,lo,"wrapReactRouterRouting",0,ll,"wrapUseRoutes",0,lp,"wrapUseRoutesV6",0,s9,"wrapUseRoutesV7",0,li,"zodErrorsIntegration",0,a_],467625),e.i(467625);var ld=e.i(868717),lf=e.i(929010),lg=e.i(572144),lh=e.i(72820),l_=e.i(374724),lm=e.i(258129),ly=e.i(702059),lb=e.i(234777),lS=e.i(652035);function lv(){return lb.default.env.NEXT_PHASE===lS.PHASE_PRODUCTION_BUILD}function lT(e){let t=lv(),n=!!e&&function(e){if(e.$$typeof!==Symbol.for("react.server.reference"))return!1;let{type:t}=function(e){let t=parseInt(e.slice(0,2),16),n=t>>1&63,r=Array(6);for(let e=0;e<6;e++){let t=n>>5-e&1;r[e]=1===t}return{type:1==(t>>7&1)?"use-cache":"server-action",usedArgs:r,hasRestArgs:1==(1&t)}}(e.$$id);return"use-cache"===t}(e);return n&&ly.DEBUG_BUILD&&b.debug.log("Skipping span creation in Cache Components context"),t||n}function lE(){return new lm.SentryNonRecordingSpan({traceId:"00000000000000000000000000000000",spanId:"0000000000000000"})}var lI=e.i(139756);async function lw(e,t,n){return(0,h.withIsolationScope)(async r=>{let a,o,i=(0,h.getClient)()?.getDataCollectionOptions().httpBodies.includes("outgoingResponse"),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{ly.DEBUG_BUILD&&b.debug.warn("Sentry wasn't able to extract the tracing headers for a server action. Will not trace this request.")}return r.setTransactionName(`serverAction/${e}`),r.setSDKProcessingMetadata({normalizedRequest:{headers:s}}),((0,rn.getActiveSpan)()?(e,t)=>t():tQ.continueTrace)({sentryTrace:a,baggage:o},async()=>{try{return await (0,tQ.startSpan)({op:"function.server_action",name:`serverAction/${e}`,forceTransaction:!0,attributes:{[tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:"route",[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.function.nextjs.server_action"}},async e=>{let r=await (0,rR.handleCallbackErrors)(n,t=>{(0,lI.isNotFoundNavigationError)(t)?e.setStatus({code:t2.SPAN_STATUS_ERROR,message:"not_found"}):(0,lI.isRedirectNavigationError)(t)?(e.setStatus({code:t2.SPAN_STATUS_OK}),e.end()):(e.setStatus({code:t2.SPAN_STATUS_ERROR,message:"internal_error"}),(0,tN.captureException)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.server_action"}}))});return(void 0!==t.recordResponse?t.recordResponse:i)&&(0,h.getIsolationScope)().setExtra("server_action_result",r),t.formData&&t.formData.forEach((e,t)=>{(0,h.getIsolationScope)().setExtra(`server_action_form_data.${t}`,"string"==typeof e?e:"[non-string value]")}),r})}finally{(0,lg.waitUntil)((0,lg.flushSafelyWithTimeout)())}})})}function lR(e){return async function(...t){try{return await e.apply(this,t)}catch(t){throw(0,tN.captureException)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.wrapped",data:{function:e.name}}}),t}}}function lA(e,t,n,r){return async function(...n){let a=(0,lf.httpRequestToRequestData)(t);(0,h.getCurrentScope)().setTransactionName(`${r.dataFetchingMethodName} (${r.dataFetcherRouteName})`),(0,h.getIsolationScope)().setSDKProcessingMetadata({normalizedRequest:a});let o=(0,rn.getActiveSpan)();o&&"/_error"!==r.requestedRouteName&&(0,rn.getRootSpan)(o).setAttribute("sentry.route_backfill",r.requestedRouteName);let{"sentry-trace":i,baggage:s}=(0,ru.getTraceData)();return{sentryTrace:i,baggage:s,data:await e.apply(this,n)}}}async function lk(e,t){try{return await e(...t)}catch(e){throw(0,tN.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.data_fetcher"}}),e}}var lC=e.i(136935),lN=e.i(2613);function lx(e,t){(0,tG.isObjectLike)(e)&&(0,iT.addNonEnumerableProperty)(e,"__sentry_event_id__",t)}e.s(["BrowserClient",()=>
473am.BrowserClient,"ErrorBoundary",0,i4,"MULTIPLEXED_TRANSPORT_EXTRA_KEY",0,tI,"OpenFeatureIntegrationHook",0,iv,"Profiler",0,i0,"SDK_VERSION",()=>tf.SDK_VERSION,"SEMANTIC_ATTRIBUTE_SENTRY_OP",()=>tA.SEMANTIC_ATTRIBUTE_SENTRY_OP,"SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN",()=>tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,"SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE",()=>tA.SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,"SEMANTIC_ATTRIBUTE_SENTRY_SOURCE",()=>tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,"Scope",()=>tk.Scope,"WINDOW",()=>tg.WINDOW,"addBreadcrumb",()=>tC.addBreadcrumb,"addEventProcessor",()=>tN.addEventProcessor,"addIntegration",()=>S.addIntegration,"bindScopeToEmitter",0,tB,"breadcrumbsIntegration",()=>aR.breadcrumbsIntegration,"browserApiErrorsIntegration",()=>aN.browserApiErrorsIntegration,"browserProfilingIntegration",0,id,"browserSessionIntegration",()=>ax.browserSessionIntegration,"browserTracingIntegration",()=>ld.browserTracingIntegration,"buildLaunchDarklyFlagUsedHandler",0,ib,"captureConsoleIntegration",0,tj,"captureEvent",()=>tN.captureEvent,"captureException",()=>tN.captureException,"captureFeedback",0,_,"captureMessage",()=>tN.captureMessage,"captureReactException",0,iU,"captureRequestError",0,function(e,t,n){(0,h.withScope)(r=>{r.setSDKProcessingMetadata({normalizedRequest:{headers:(0,lf.headersToDict)(t.headers),method:t.method}}),r.setContext("nextjs",{request_path:t.path,router_kind:n.routerKind,router_path:n.routePath,route_type:n.routeType}),r.setTransactionName(`${t.method} ${n.routePath}`),(0,tN.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.on_request_error"}}),(0,lg.waitUntil)((0,lg.flushSafelyWithTimeout)())})},"captureRouterTransitionStart",()=>lh.captureRouterTransitionStart,"captureSession",()=>tN.captureSession,"captureUnderscoreErrorException",()=>l_.captureUnderscoreErrorException,"chromeStackLineParser",()=>av.chromeStackLineParser,"close",()=>tN.close,"consoleLoggingIntegration",0,tK,"contextLinesIntegration",0,aK,"continueTrace",()=>tQ.continueTrace,"createConsolaReporter",0,tZ,"createLangChainCallbackHandler",0,n3,"createReduxEnhancer",0,i9,"createTransport",()=>n7.createTransport,"createUserFeedbackEnvelope",0,aE,"cultureContextIntegration",()=>im.cultureContextIntegration,"dedupeIntegration",()=>n9.dedupeIntegration,"defaultRequestInstrumentationOptions",()=>ow.defaultRequestInstrumentationOptions,"defaultStackLineParsers",()=>av.defaultStackLineParsers,"defaultStackParser",()=>av.defaultStackParser,"diagnoseSdkConnectivity",0,iC,"elementTimingIntegration",0,oN,"endSession",()=>tN.endSession,"eventFiltersIntegration",()=>n8.eventFiltersIntegration,"eventFromException",()=>aT.eventFromException,"eventFromMessage",()=>aT.eventFromMessage,"exceptionFromError",()=>aT.exceptionFromError,"extraErrorDataIntegration",0,rt,"featureFlagsIntegration",0,rs,"feedbackAsyncIntegration",0,tb,"feedbackIntegration",0,tS,"feedbackSyncIntegration",0,tS,"fetchStreamPerformanceIntegration",()=>o$.fetchStreamPerformanceIntegration,"flush",()=>tN.flush,"forceLoad",()=>aI.forceLoad,"functionToStringIntegration",()=>rl.functionToStringIntegration,"geckoStackLineParser",()=>av.geckoStackLineParser,"getAbsoluteUrl",()=>ox.getAbsoluteUrl,"getActiveSpan",()=>rn.getActiveSpan,"getClient",()=>h.getClient,"getCurrentScope",()=>h.getCurrentScope,"getDefaultIntegrations",()=>aI.getDefaultIntegrations,"getFeedback",0,ea,"getGlobalScope",()=>h.getGlobalScope,"getIsolationScope",()=>h.getIsolationScope,"getReplay",()=>a3.getReplay,"getRootSpan",()=>rn.getRootSpan,"getSpanDescendants",()=>rn.getSpanDescendants,"getSpanStatusFromHttpCode",()=>t2.getSpanStatusFromHttpCode,"getTraceData",()=>ru.getTraceData,"globalHandlersIntegration",()=>aA.globalHandlersIntegration,"graphqlClientIntegration",0,a5,"growthbookIntegration",0,iA,"httpClientIntegration",0,aG,"httpContextIntegration",()=>ak.httpContextIntegration,"inboundFiltersIntegration",()=>n8.inboundFiltersIntegration,"init",()=>f.init,"instrumentAnthropicAiClient",0,rb,"instrumentCreateReactAgent",0,rI,"instrumentGoogleGenAIClient",0,rO,"instrumentLangChainEmbeddings",0,rB,"instrumentLangGraph",0,rw,"instrumentOpenAiClient",0,rF,"instrumentOutgoingRequests",()=>ow.instrumentOutgoingRequests,"instrumentStateGraph",0,rw,"instrumentSupabaseClient",0,rJ,"isBotUserAgent",()=>oR.isBotUserAgent,"isEnabled",()=>tN.isEnabled,"isInitialized",()=>tN.isInitialized,"lastEventId",()=>tN.lastEventId,"launchDarklyIntegration",0,iy,"lazyLoadIntegration",0,ty,"linkedErrorsIntegration",()=>aC.linkedErrorsIntegration,"logger",()=>r4,"makeBrowserOfflineTransport",0,oV,"makeFetchTransport",()=>ay.makeFetchTransport,"makeMultiplexedTransport",0,tR,"metrics",()=>r9,"moduleMetadataIntegration",0,ar,"normalizeStringifyValue",()=>oO.normalizeStringifyValue,"onLoad",()=>aI.onLoad,"openFeatureIntegration",0,iS,"opera10StackLineParser",()=>av.opera10StackLineParser,"opera11StackLineParser",()=>av.opera11StackLineParser,"parameterize",0,r5,"reactErrorHandler",0,iD,"reactRouterBrowserTracingIntegration",0,ls,"reactRouterV3BrowserTracingIntegration",0,i8,"reactRouterV4BrowserTracingIntegration",0,sa,"reactRouterV5BrowserTracingIntegration",0,so,"reactRouterV6BrowserTracingIntegration",0,s7,"reactRouterV7BrowserTracingIntegration",0,ln,"registerSpanErrorInstrumentation",()=>aa.registerSpanErrorInstrumentation,"registerWebWorker",0,iO,"replayCanvasIntegration",0,oI,"replayIntegration",()=>a3.replayIntegration,"reportPageLoaded",0,oP,"reportingObserverIntegration",0,aU,"rewriteFramesIntegration",()=>ao.rewriteFramesIntegration,"sendFeedback",0,J,"setActiveSpanInBrowser",0,oU,"setAttribute",()=>tN.setAttribute,"setAttributes",()=>tN.setAttributes,"setContext",()=>tN.setContext,"setConversationId",()=>tN.setConversationId,"setCurrentClient",()=>
473ai.setCurrentClient,"setExtra",()=>tN.setExtra,"setExtras",()=>tN.setExtras,"setHttpStatus",()=>t2.setHttpStatus,"setMeasurement",()=>as.setMeasurement,"setTag",()=>tN.setTag,"setTags",()=>tN.setTags,"setUser",()=>tN.setUser,"showReportDialog",0,aw,"spanStreamingIntegration",0,oj,"spanToBaggageHeader",()=>al.spanToBaggageHeader,"spanToJSON",()=>rn.spanToJSON,"spanToTraceHeader",()=>rn.spanToTraceHeader,"spotlightBrowserIntegration",0,i_,"startBrowserTracingNavigationSpan",()=>oR.startBrowserTracingNavigationSpan,"startBrowserTracingPageLoadSpan",()=>oR.startBrowserTracingPageLoadSpan,"startInactiveSpan",0,function(e){return lT()?lE():(0,tQ.startInactiveSpan)(e)},"startNewTrace",()=>tQ.startNewTrace,"startSession",()=>tN.startSession,"startSpan",0,function(e,t){return lT(t)?t(lE()):(0,tQ.startSpan)(e,t)},"startSpanManual",0,function(e,t){if(lT(t)){let e=lE();return t(e,()=>e.end())}return(0,tQ.startSpanManual)(e,t)},"statsigIntegration",0,ik,"supabaseIntegration",0,rK,"suppressTracing",()=>tQ.suppressTracing,"tanstackRouterBrowserTracingIntegration",0,st,"thirdPartyErrorFilterIntegration",0,ac,"uiProfiler",0,aS,"unleashIntegration",0,iE,"updateSpanName",()=>rn.updateSpanName,"useProfiler",0,i2,"viewHierarchyIntegration",0,a4,"webVitalsIntegration",()=>oG.webVitalsIntegration,"webWorkerIntegration",0,iN,"winjsStackLineParser",()=>av.winjsStackLineParser,"withActiveSpan",()=>tQ.withActiveSpan,"withErrorBoundary",0,i3,"withIsolationScope",()=>h.withIsolationScope,"withProfiler",0,i1,"withScope",()=>h.withScope,"withSentryConfig",()=>f.withSentryConfig,"withSentryReactRouterV6Routing",0,lt,"withSentryReactRouterV7Routing",0,lr,"withSentryRouting",0,ss,"withServerActionInstrumentation",0,function(...e){if("function"==typeof e[1]){let[t,n]=e;return lw(t,{},n)}{let[t,n,r]=e;return lw(t,n,r)}},"withStreamedSpan",()=>ag.withStreamedSpan,"wrapApiHandlerWithSentryVercelCrons",0,function(e,t){return new Proxy(e,{apply:(e,n,r)=>{let a;if(!r?.[0])return e.apply(n,r);let[o]=r,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(n,r);let l=t.find(e=>e.path===i);if(!l?.path||!l.schedule)return e.apply(n,r);let u=l.path,c=(0,tN.captureCheckIn)({monitorSlug:u,status:"in_progress"},{maxRuntime:720,schedule:{type:"crontab",value:l.schedule}}),p=(0,oL.safeDateNow)()/1e3,d=()=>{(0,tN.captureCheckIn)({checkInId:c,monitorSlug:u,status:"error",duration:(0,oL.safeDateNow)()/1e3-p})};try{a=e.apply(n,r)}catch(e){throw d(),e}return(0,tG.isObjectLike)(a)&&"then"in a?Promise.resolve(a).then(()=>{(0,tN.captureCheckIn)({checkInId:c,monitorSlug:u,status:"ok",duration:(0,oL.safeDateNow)()/1e3-p})},()=>{d()}):(0,tN.captureCheckIn)({checkInId:c,monitorSlug:u,status:"ok",duration:(0,oL.safeDateNow)()/1e3-p}),a}})},"wrapAppGetInitialPropsWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(lv())return e.apply(t,n);let[r]=n,{req:a,res:o}=r.ctx,i=lR(e);if(!a||!o)return i.apply(t,n);{let e=lA(i,a,o,{dataFetcherRouteName:"/_app",requestedRouteName:r.ctx.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,sentryTrace:l,baggage:u}=await e.apply(t,n);return"object"==typeof s&&null!==s&&(s.pageProps||(s.pageProps={}),l&&(s.pageProps._sentryTraceData=l),u&&(s.pageProps._sentryBaggage=u)),s}}})},"wrapCreateBrowserRouter",0,lu,"wrapCreateBrowserRouterV6",0,s8,"wrapCreateBrowserRouterV7",0,la,"wrapCreateMemoryRouter",0,lc,"wrapCreateMemoryRouterV6",0,le,"wrapCreateMemoryRouterV7",0,lo,"wrapDocumentGetInitialPropsWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(lv())return e.apply(t,n);let[r]=n,{req:a,res:o}=r,i=lR(e);if(!a||!o)return i.apply(t,n);{let e=lA(i,a,o,{dataFetcherRouteName:"/_document",requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s}=await e.apply(t,n);return s}}})},"wrapErrorGetInitialPropsWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(lv())return e.apply(t,n);let[r]=n,{req:a,res:o}=r,i=lR(e);if(!a||!o)return i.apply(t,n);{let e=lA(i,a,o,{dataFetcherRouteName:"/_error",requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,baggage:l,sentryTrace:u}=await e.apply(t,n);return"object"==typeof s&&null!==s&&(u&&(s._sentryTraceData=u),l&&(s._sentryBaggage=l)),s}}})},"wrapGenerationFunctionWithSentry",0,function(e,t){return new Proxy(e,{apply:(e,n,r)=>{let a,o=(0,h.getIsolationScope)();try{a=t.requestAsyncStorage?.getStore()?.headers}catch{}let i=a?(0,lf.winterCGHeadersToDict)(a):void 0;return o.setSDKProcessingMetadata({normalizedRequest:{headers:i}}),(0,rR.handleCallbackErrors)(()=>e.apply(n,r),e=>{let n=(0,rn.getActiveSpan)(),{componentRoute:r,componentType:a,generationFunctionIdentifier:i}=t,s=!0;o.setTransactionName(`${a}.${i} (${r})`),n&&((0,lI.isNotFoundNavigationError)(e)?(s=!1,n.setStatus({code:t2.SPAN_STATUS_ERROR,message:"not_found"})):(0,lI.isRedirectNavigationError)(e)?(s=!1,n.setStatus({code:t2.SPAN_STATUS_OK})):n.setStatus({code:t2.SPAN_STATUS_ERROR,message:"internal_error"})),s&&(0,tN.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.generation_function",data:{function:i}}})},()=>{(0,lg.waitUntil)((0,lg.flushSafelyWithTimeout)())})}})},"wrapGetInitialPropsWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,n)=>{if(lv())return e.apply(t,n);let[r]=n,{req:a,res:o}=r,i=lR(e);if(!a||!o)return i.apply(t,n);{let e=lA(i,a,o,{dataFetcherRouteName:r.pathname,requestedRouteName:r.pathname,dataFetchingMethodName:"getInitialProps"}),{data:s,baggage:l,sentryTrace:u}=await e.apply(t,n)??{};return"object"==typeof s&&null!==s&&(u&&(s._sentryTraceData=u),l&&(s._sentryBaggage=l)),s}}})},"wrapGetServerSidePropsWithSentry",0,function(e,t){return new Proxy(e,{apply:async(e,n,r)=>{if(lv())return e.apply(n,r);let[a]=r,{req:o,res:i}=a,s=lA(lR(e),o,i,{dataFetcherRouteName:t,requestedRouteName:t,dataFetchingMethodName:"getServerSideProps"}),{data:l,baggage:u,sentryTrace:c}=await s.apply(n,r);return"object"==typeof l&&null!==l&&"props"in l&&(c&&(l.props._sentryTraceData=c),u&&(l.props._sentryBaggage=u)),l}})},"wrapGetStaticPropsWithSentry",0,function(e,t){return new Proxy(e,{apply:async(e,t,n)=>lv()?e.apply(t,n):lk(lR(e),n)})},"wrapMiddlewareWithSentry",0,function(e){return new Proxy(e,{apply:async(e,t,n)=>{let r="_sentryRewritesTunnelPath"in globalThis?globalThis._sentryRewritesTunnelPath:void 0;if(r&&"string"==typeof r){let e=n[0];if(e instanceof Request){var a;if((a=new URL(e.url).pathname)===r||a.startsWith(`${r}/`))return new Response(null,{status:200,headers:{"x-middleware-next":"1"}})}}return(0,h.withIsolationScope)(r=>{let a,o,i=n[0],s=(0,h.getCurrentScope)();i instanceof Request?(r.setSDKProcessingMetadata({normalizedRequest:(0,lf.winterCGRequestToRequestData)(i)}),a=`middleware ${i.method}`,o="url"):(a="middleware",o="component"),s.setTransactionName(a);let l=()=>(0,rR.handleCallbackErrors)(()=>e.apply(t,n),e=>{(0,tN.captureException)(e,{mechanism:{type:"auto.function.nextjs.wrap_middleware",handled:!1}})},()=>{(0,lg.waitUntil)((0,lg.flushSafelyWithTimeout)())}),u=(0,rn.getActiveSpan)();if(u){let e=(0,rn.getRootSpan)(u);return e&&(0,lC.setCapturedScopesOnSpan)(e,s,r),l()}return(0,tQ.startSpan)({name:a,op:"http.server.middleware",attributes:{[tA.SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]:o,[tA.SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]:"auto.function.nextjs.wrap_middleware"}},l)})}})},"wrapPageComponentWithSentry",0,function(e){return"function"==typeof e&&e?.prototype?.isReactComponent?class extends e{render(...e){return(0,h.withIsolationScope)(()=>{let t=(0,h.getCurrentScope)(),n=(0,tG.isObjectLike)(this.props)&&"_sentryTraceData"in this.props&&"string"==typeof this.props._sentryTraceData?this.props._sentryTraceData:void 0;if(n){let e=(0,lN.extractTraceparentData)(n);t.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return super.render(...e)}
473catch(t){let e=(0,tN.captureException)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.page_class"}});throw lx(t,e),t}})}}:"function"==typeof e?new Proxy(e,{apply:(e,t,n)=>(0,h.withIsolationScope)(()=>{let r=(0,h.getCurrentScope)(),a=n?.[0]?._sentryTraceData;if(a){let e=(0,lN.extractTraceparentData)(a);r.setContext("trace",{span_id:e?.parentSpanId,trace_id:e?.traceId})}try{return e.apply(t,n)}catch(t){let e=(0,tN.captureException)(t,{mechanism:{handled:!1,type:"auto.function.nextjs.page_function"}});throw lx(t,e),t}})}):e},"wrapReactRouterRouting",0,ll,"wrapRouteHandlerWithSentry",0,function(e,t){let{method:n,parameterizedRoute:r,headers:a}=t;return new Proxy(e,{apply:async(e,t,a)=>{let o=(0,rn.getActiveSpan)(),i=o?(0,rn.getRootSpan)(o):void 0;return(0,h.withIsolationScope)((0,h.getIsolationScope)(),()=>(0,h.withScope)(async s=>{s.setTransactionName(`${n} ${r}`);let l=await (0,rR.handleCallbackErrors)(()=>e.apply(t,a),e=>{(0,lI.isRedirectNavigationError)(e)||((0,lI.isNotFoundNavigationError)(e)?(o&&(0,t2.setHttpStatus)(o,404),i&&(0,t2.setHttpStatus)(i,404)):(0,tN.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.route_handler"}}))},()=>{(0,lg.waitUntil)((0,lg.flushSafelyWithTimeout)())});try{l.status&&(o&&(0,t2.setHttpStatus)(o,l.status),i&&(0,t2.setHttpStatus)(i,l.status))}catch{}return l}))}})},"wrapServerComponentWithSentry",0,function(e,t){return new Proxy(e,{apply:(e,n,r)=>{let a=(0,h.getIsolationScope)(),o=t.headers?(0,lf.winterCGHeadersToDict)(t.headers):void 0;return a.setSDKProcessingMetadata({normalizedRequest:{headers:o}}),(0,rR.handleCallbackErrors)(()=>e.apply(n,r),e=>{let n=(0,rn.getActiveSpan)(),{componentRoute:r,componentType:o}=t,i=!0;a.setTransactionName(`${o} Server Component (${r})`),n&&((0,lI.isNotFoundNavigationError)(e)?(i=!1,n.setStatus({code:t2.SPAN_STATUS_ERROR,message:"not_found"})):(0,lI.isRedirectNavigationError)(e)?(i=!1,n.setStatus({code:t2.SPAN_STATUS_OK})):n.setStatus({code:t2.SPAN_STATUS_ERROR,message:"internal_error"})),i&&(0,tN.captureException)(e,{mechanism:{handled:!1,type:"auto.function.nextjs.server_component"}})},()=>{(0,lg.waitUntil)((0,lg.flushSafelyWithTimeout)())})}})},"wrapUseRoutes",0,lp,"wrapUseRoutesV6",0,s9,"wrapUseRoutesV7",0,li,"zodErrorsIntegration",0,a_],476445)},652035,(e,t,n)=>{t.exports=e.r(648212)}]);
474
475//# debugId=9e94de33-8941-beab-da0c-a84f84f08f9f

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.