@vellumai/web 0.11.3-dev.202608181609.6fec8f9 → 0.11.3-dev.202608181709.1f85a67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/dist/assets/{Trans-CitOp4QC.js → Trans-Cjflukh4.js} +1 -1
  2. package/dist/assets/{account-page-CJEJCQ6Y.js → account-page-DKZfEhpc.js} +1 -1
  3. package/dist/assets/{acp-run-detail-panel-COZ3Nwbe.js → acp-run-detail-panel-CHQcp6at.js} +1 -1
  4. package/dist/assets/{activity-steps-panel-BBzcM2xJ.js → activity-steps-panel-Y-khrUIh.js} +1 -1
  5. package/dist/assets/{ai-page-BHTs1ab6.js → ai-page-DU_kjH_s.js} +1 -1
  6. package/dist/assets/{api-key-screen-B20lJibP.js → api-key-screen-BvKdp-t9.js} +1 -1
  7. package/dist/assets/{background-task-detail-panel-CgqP2AJn.js → background-task-detail-panel-CH6PZWc-.js} +1 -1
  8. package/dist/assets/{billing-page-D7iMMn4X.js → billing-page-C9KE8hcY.js} +1 -1
  9. package/dist/assets/bookmarks-page-Dfe8bDcH.js +1 -0
  10. package/dist/assets/{channels-page-route-D7jrZuki.js → channels-page-route-CV1KYFZP.js} +1 -1
  11. package/dist/assets/{chat-avatar-D7ZBWcZy.js → chat-avatar-DvxwDikV.js} +1 -1
  12. package/dist/assets/{chat-markdown-message-Bocsyt9x.js → chat-markdown-message-BXJf0_QR.js} +1 -1
  13. package/dist/assets/{checkout-page-tx2qvFXy.js → checkout-page-D-hRf00C.js} +1 -1
  14. package/dist/assets/community-page-CEGpM417.js +1 -0
  15. package/dist/assets/{companion-surface-page-BZHSeP1U.js → companion-surface-page-CPVIM_YY.js} +1 -1
  16. package/dist/assets/{connect-page-BAfYUX5b.js → connect-page-BN5oRdA4.js} +1 -1
  17. package/dist/assets/{consent-controls-bWuJIzo5.js → consent-controls-DtPeeFwa.js} +1 -1
  18. package/dist/assets/{contacts-page-route-B9vpeo7l.js → contacts-page-route-DjEvifaN.js} +1 -1
  19. package/dist/assets/{conversation-navigation-DQEOhOXf.js → conversation-navigation-QdQDJsWW.js} +1 -1
  20. package/dist/assets/{credential-entry-page-DIVbLeGc.js → credential-entry-page-CPamuLmq.js} +1 -1
  21. package/dist/assets/{credentials-page-B_i4jlUe.js → credentials-page-CFW32WuW.js} +1 -1
  22. package/dist/assets/{debug-page-DazzMeFt.js → debug-page-BjuFJknb.js} +1 -1
  23. package/dist/assets/developer-page-BKeIlAhr.js +1 -0
  24. package/dist/assets/{document-viewer-page-DbHI1uh1.js → document-viewer-page-CshWr2tW.js} +1 -1
  25. package/dist/assets/{emails-page-DhcF6ywr.js → emails-page-CDo5Hm8w.js} +1 -1
  26. package/dist/assets/{first-run-scope-BW29gbOy.js → first-run-scope-C-EiuVmf.js} +1 -1
  27. package/dist/assets/{format-usd-2HgC_Tu5.js → format-usd-D6RSKlCb.js} +1 -1
  28. package/dist/assets/general-page-7GvIVegL.js +1 -0
  29. package/dist/assets/{hatching-screen-DfoGh35v.js → hatching-screen-BK2AP-yW.js} +1 -1
  30. package/dist/assets/{home-page-route-DChy-CMs.js → home-page-route-BICKF-V_.js} +1 -1
  31. package/dist/assets/{home-tool-permission-card-DYW-dd-1.js → home-tool-permission-card-BjKBLMiw.js} +1 -1
  32. package/dist/assets/{hosting-screen-BfsrXzOe.js → hosting-screen-B9f0pTOU.js} +1 -1
  33. package/dist/assets/{i18n-BB_lCaGv.js → i18n-WHkGP0v4.js} +1 -1
  34. package/dist/assets/{identity-page-route-CgPfkUk2.js → identity-page-route-wXgjTfIf.js} +1 -1
  35. package/dist/assets/{index-DznRSztF.js → index-DWHV0D_I.js} +1 -1
  36. package/dist/assets/{inspect-page-DU95TVZ7.js → inspect-page-B42WpFV6.js} +1 -1
  37. package/dist/assets/integrations-page-DuVkrLeG.js +1 -0
  38. package/dist/assets/{intelligence-layout-C3HlWK9p.js → intelligence-layout-DPwf5I5_.js} +1 -1
  39. package/dist/assets/{invalidate-memory-queries-DMiIzQLN.js → invalidate-memory-queries-CIErtFeT.js} +1 -1
  40. package/dist/assets/{library-detail-page-DFuGy-R7.js → library-detail-page-BfoeeBIn.js} +1 -1
  41. package/dist/assets/{library-page-CMiPe6Se.js → library-page-Bp4va37D.js} +1 -1
  42. package/dist/assets/{login-page-C9a413Dv.js → login-page-B4F-3yLv.js} +1 -1
  43. package/dist/assets/{logout-page-CYG4RLfD.js → logout-page-ReEHLfsa.js} +1 -1
  44. package/dist/assets/{logs-layout-ZWWtMHfQ.js → logs-layout-TZutPXCD.js} +1 -1
  45. package/dist/assets/{memory-page-route-BoGxh4dp.js → memory-page-route-tBinK8qR.js} +1 -1
  46. package/dist/assets/{memory-router-playground-page-DarT3rNN.js → memory-router-playground-page-CMICcZta.js} +1 -1
  47. package/dist/assets/{multi-activity-group-DxbHmWOt.js → multi-activity-group-mJeyn_8v.js} +1 -1
  48. package/dist/assets/{not-found-BqZTlSJM.js → not-found-DtC_EDFf.js} +1 -1
  49. package/dist/assets/notifications-page-D2jRRoLP.js +1 -0
  50. package/dist/assets/{oauth-complete-page-Cpbl_90Z.js → oauth-complete-page-DQJuVVtX.js} +1 -1
  51. package/dist/assets/{oauth-popup-complete-page-CtNDRHGH.js → oauth-popup-complete-page-eyeUww88.js} +1 -1
  52. package/dist/assets/{open-workspace-file-D_kBppVA.js → open-workspace-file-BxWvTr0R.js} +2 -2
  53. package/dist/assets/{pairing-page-D8Eu5Byk.js → pairing-page-C4L9xIsk.js} +1 -1
  54. package/dist/assets/{personality-page-C925SWrM.js → personality-page-ifV2Ly9v.js} +1 -1
  55. package/dist/assets/{plans-page-B76wlsCH.js → plans-page-C5LGpzw5.js} +1 -1
  56. package/dist/assets/{platform-login-notice-DmfrBcWK.js → platform-login-notice-C6p4PqvT.js} +1 -1
  57. package/dist/assets/{platform-loopback-page-CnK8HbOE.js → platform-loopback-page-DGXBiba8.js} +1 -1
  58. package/dist/assets/privacy-page-CjzNCeWl.js +1 -0
  59. package/dist/assets/{privacy-screen-aWrluefE.js → privacy-screen-BqElyCBC.js} +1 -1
  60. package/dist/assets/{provider-callback-page-CU7vo7rG.js → provider-callback-page-BtXjs3Nf.js} +1 -1
  61. package/dist/assets/{provider-signup-page-BqzJtVLQ.js → provider-signup-page-DEc2h5NX.js} +1 -1
  62. package/dist/assets/{research-onboarding-route-C9Bc78FU.js → research-onboarding-route-Chr89yg5.js} +1 -1
  63. package/dist/assets/{review-terms-screen-XlblV0DG.js → review-terms-screen-D-qvb1wH.js} +1 -1
  64. package/dist/assets/{routes-DSs-WTKS.js → routes-BLMWzYB3.js} +15 -15
  65. package/dist/assets/{schedules-page-sJ0pKUIP.js → schedules-page-CjFWw3_W.js} +1 -1
  66. package/dist/assets/{select-assistant-screen-CzgxGshl.js → select-assistant-screen-BsuwJYzY.js} +1 -1
  67. package/dist/assets/settings-aUfLdBRz.js +1 -0
  68. package/dist/assets/{settings-layout-lO_dbKyT.js → settings-layout-Dd5EZjfb.js} +1 -1
  69. package/dist/assets/{sidebar-tree-Cv-omUgE.js → sidebar-tree-BFNHw8U0.js} +1 -1
  70. package/dist/assets/{signup-page-wQMBIA6n.js → signup-page-Cb4hwsdS.js} +1 -1
  71. package/dist/assets/{skill-detail-page-yOweJ1nH.js → skill-detail-page-DbtCLCjS.js} +1 -1
  72. package/dist/assets/{skill-detail-panel-CCUeeL4o.js → skill-detail-panel-DpWCbORC.js} +1 -1
  73. package/dist/assets/sound-manager-C_OfGZpE.js +1 -0
  74. package/dist/assets/sounds-page-DS3dfn0E.js +1 -0
  75. package/dist/assets/{start-screen-CKJBaBzV.js → start-screen-DAAGQBRG.js} +1 -1
  76. package/dist/assets/{status-badge-pill-LsK2bQpS.js → status-badge-pill-CCaDOkgw.js} +1 -1
  77. package/dist/assets/{subagent-detail-panel-B1PVz22M.js → subagent-detail-panel-Bdx8mP2q.js} +1 -1
  78. package/dist/assets/{superpowers-page-koXclNfO.js → superpowers-page-Bf2gVqt_.js} +1 -1
  79. package/dist/assets/{system-events-page-C5Bhc2f0.js → system-events-page-BzHXfybi.js} +1 -1
  80. package/dist/assets/{tool-detail-panel-BF1Yzjib.js → tool-detail-panel-DbeXuW6-.js} +1 -1
  81. package/dist/assets/{upgrade-cancel-page-DY0E_vA4.js → upgrade-cancel-page-LBtCDPbE.js} +1 -1
  82. package/dist/assets/{upgrade-success-page-DKe05egi.js → upgrade-success-page-DLXxfvLv.js} +1 -1
  83. package/dist/assets/{use-checkout-dismiss-refresh-BIyqxq18.js → use-checkout-dismiss-refresh-CrQDcwu4.js} +1 -1
  84. package/dist/assets/{use-edge-swipe-back-DZ6X0ZJl.js → use-edge-swipe-back-BRaFRc9L.js} +2 -2
  85. package/dist/assets/{use-onboarding-login-B-oqZCd7.js → use-onboarding-login-B9TNB1cb.js} +1 -1
  86. package/dist/assets/{use-return-to-short-circuit-CMSdNp63.js → use-return-to-short-circuit-TyskDXwF.js} +1 -1
  87. package/dist/assets/{use-skill-actions-BqjgyuyZ.js → use-skill-actions-DzEYf_yj.js} +1 -1
  88. package/dist/assets/{use-sticky-profiles-D5Je7q9e.js → use-sticky-profiles-0khxS8vF.js} +1 -1
  89. package/dist/assets/{useTranslation-Dtlnp2d7.js → useTranslation-G7Ay-pzy.js} +1 -1
  90. package/dist/assets/voice-page-BiAEmFcW.js +1 -0
  91. package/dist/assets/{welcome-screen-BmZztyb1.js → welcome-screen-6T3FMS9l.js} +1 -1
  92. package/dist/assets/{workflow-detail-panel-DYTCucvX.js → workflow-detail-panel-Dwmkf-6A.js} +1 -1
  93. package/dist/assets/{workspace-page-BAekQ9HU.js → workspace-page-CqkWCj10.js} +1 -1
  94. package/dist/index.html +19 -19
  95. package/package.json +1 -1
  96. package/dist/assets/bookmarks-page-DIzvqlcG.js +0 -1
  97. package/dist/assets/community-page-DK1RRzQb.js +0 -1
  98. package/dist/assets/developer-page-vhmADxv0.js +0 -1
  99. package/dist/assets/general-page-BO6wnigi.js +0 -1
  100. package/dist/assets/integrations-page-ouFw8t1l.js +0 -1
  101. package/dist/assets/notifications-page-D7nqzDdY.js +0 -1
  102. package/dist/assets/privacy-page-DcmJDMC8.js +0 -1
  103. package/dist/assets/settings-pnM5iQYW.js +0 -1
  104. package/dist/assets/sound-manager-lHaiHTCh.js +0 -1
  105. package/dist/assets/sounds-page-Co2G6n-5.js +0 -1
  106. package/dist/assets/voice-page-DB4aWvha.js +0 -1
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/build.umd-Bnx74y6d.js","assets/chunk-jRWAZmH_.js","assets/esm-CfdMbmKl.js","assets/preload-helper-Cv2QeVDK.js","assets/dist-D7UWVopK.js"])))=>i.map(i=>d[i]);
2
- import{o as e,t}from"./chunk-jRWAZmH_.js";import{i as n,r,s as i}from"./device-settings-DZvv4pnY.js";import{$ as a,A as o,At as s,B as c,C as l,Ct as u,D as d,Dt as f,E as p,Et as m,F as h,Ft as g,G as _,H as v,I as y,It as b,J as x,K as ee,L as te,M as ne,Mt as re,N as ie,Nt as ae,O as oe,Ot as se,P as ce,Pt as le,Q as ue,R as S,S as C,St as de,T as fe,Tt as pe,U as me,V as he,X as w,Y as ge,Z as _e,_ as ve,_t as ye,a as be,at as xe,b as Se,bt as Ce,d as we,dt as Te,et as Ee,f as De,ft as Oe,g as ke,gt as Ae,h as je,ht as Me,i as Ne,it as Pe,j as Fe,jt as Ie,k as Le,kt as Re,l as ze,lt as Be,mt as Ve,nt as He,ot as Ue,p as We,pt as Ge,q as Ke,rt as qe,s as Je,st as Ye,t as Xe,tt as Ze,u as Qe,ut as $e,v as et,vt as tt,w as nt,wt as rt,x as it,xt as at,y as ot,yt as st,z as ct}from"./capture-error-DiNp24s6.js";import{a as lt,c as ut,d as dt,l as ft,o as pt,r as mt,s as T,u as ht}from"./document-viewer-container-Bb7omFZS.js";import{o as E}from"./doctor-handoff-store-CX39mMuw.js";import{t as gt}from"./react-BFJW0bSv.js";import{W as _t,r as vt}from"./button-VkxVX0DM.js";import{t as yt}from"./preload-helper-Cv2QeVDK.js";import{i as bt}from"./chunk-5KNZJZUH-BUqIilZr.js";import{A as xt,C as St,D as Ct,N as wt,S as Tt,_ as Et,b as Dt,c as Ot,g as kt,h as At,s as jt,t as Mt,u as Nt,x as Pt}from"./QueryClientProvider-EuRl-wrW.js";import{f as Ft}from"./useQuery-CTSuec5b.js";import{n as It}from"./useInfiniteQuery-C5Kg1-qX.js";import{n as Lt}from"./useMutation-D2YPyfEH.js";import{t as Rt}from"./jsx-runtime-BJ8jcmzB.js";import{a as zt,c as Bt,i as Vt,l as Ht,o as Ut,r as Wt,s as Gt,t as Kt}from"./routes-DSs-WTKS.js";import{w as qt}from"./composer-settings-CacCpRW8.js";import{n as Jt}from"./src-qDZBwoEm.js";import{t as Yt}from"./toast-DqqWkjsh.js";import{C as Xt,S as Zt,T as Qt,X as $t,at as en,et as tn,it as nn,ot as rn,p as an,v as on,x as sn}from"./local-mode-BNr2MrWI.js";import{t as cn}from"./is-electron-wgAC5Mzb.js";import{r as ln}from"./resolved-assistants-store-BNadgXqb.js";import{t as un}from"./i18n-BB_lCaGv.js";import{a as dn,t as fn}from"./api-errors-CASENJGT.js";import{$ as pn,C as mn,Y as hn,_ as gn,a as _n,at as vn,b as yn,c as bn,ct as xn,et as Sn,gt as Cn,ht as wn,it as Tn,n as D,nt as En,ot as Dn,t as On,tt as kn}from"./auth-store-DdlZ1ww5.js";import{t as An}from"./client.gen-CxTOBLiH.js";import{Qr as jn}from"./sdk.gen-CiE6cMi0.js";import{c as Mn}from"./api-CQ3nejmH.js";import{n as Nn}from"./event-bus-B-wwSVzo.js";import{o as Pn}from"./remote-gateway-session-CzPLaXuT.js";import{t as Fn}from"./client-feature-flag-store-D5JmN6Ek.js";import{A as In,I as Ln,O as Rn,d as zn,k as Bn,l as Vn}from"./native-biometric-BxYhgb-X.js";import{i as Hn,t as Un}from"./dist-D7UWVopK.js";import{d as Wn}from"./routes-B7wRw3UT.js";import{c as Gn,n as Kn,r as qn,s as Jn}from"./platform-detection-Dt0-jSAU.js";import{t as Yn}from"./onboarding-store-9CMrOvS2.js";import{n as Xn}from"./theme-preferences-CAlH0BJX.js";import{r as Zn}from"./prefs-BLTugIFN.js";import{r as Qn}from"./ingest-C3QOaKA5.js";import{t as $n}from"./client-perf-DHnnpVkx.js";import{o as er}from"./diagnostics-BrWbafo7.js";import{t as tr}from"./hard-navigate-CNxvVrtC.js";import{E as nr}from"./sdk.gen-CoXhzo__.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function rr(e,t,n){if(!(typeof window>`u`))try{localStorage.getItem(e)===t&&localStorage.setItem(e,n)}catch{}}function ir(e){if(!(typeof window>`u`))try{localStorage.removeItem(e)}catch{}}function O(e,t){if(!(typeof window>`u`))try{let n=localStorage.getItem(e);if(n===null)return;localStorage.getItem(t)===null&&localStorage.setItem(t,n),localStorage.getItem(t)!==null&&localStorage.removeItem(e)}catch{}}function ar(e,t){if(!(typeof window>`u`))try{let n=[];for(let r=0;r<localStorage.length;r++){let i=localStorage.key(r);if(i&&i.startsWith(e)){let r=i.slice(e.length);n.push([i,t+r])}}for(let[e,t]of n)O(e,t)}catch{}}function or(){if(!(typeof window>`u`))try{if(!(localStorage.getItem(`vellum:gw:tokenSource`)??localStorage.getItem(`gw:tokenSource`))?.includes(`/__gateway-paired/`))return;for(let e of[`vellum:gw:token`,`vellum:gw:expiresAt`,`vellum:gw:tokenSource`,`gw:token`,`gw:expiresAt`,`gw:tokenSource`])localStorage.removeItem(e)}catch{}}function sr(e){let t=[];for(let n=0;n<localStorage.length;n++){let r=localStorage.key(n);r&&r.startsWith(e)&&t.push(r)}for(let e of t)localStorage.removeItem(e)}function cr(){if(typeof window>`u`)return;let e=`vellum:selectedAssistantId`,t=`vellum:local:selectedAssistantId`,n=`vellum:currentAssistantId:`;try{if(localStorage.getItem(e)===null){let r=localStorage.getItem(t);if(r===null&&(r=lr(n)),r===null){let e=null;for(let t=0;t<localStorage.length;t++){let r=localStorage.key(t);r&&r.startsWith(n)&&(e===null||r<e)&&(e=r)}e!==null&&(r=localStorage.getItem(e))}r&&localStorage.setItem(e,r)}localStorage.removeItem(t),sr(n)}catch{}}function lr(e){let t=null;try{t=sessionStorage.getItem(`vellum_active_organization_id`)}catch{return null}return t?localStorage.getItem(`${e}${t}`):null}function ur(){if(!(typeof window>`u`)){O(`assistantSidebarCollapsed`,`vellum:sidebar:collapsed`),O(`assistantSidebarWidth`,`vellum:sidebar:width`),O(`voice:permissionPrimerSeen`,`vellum:voice:permissionPrimerSeen`),O(`voice:ttsProvider`,`vellum:voice:ttsProvider`),O(`voice:sttProvider`,`vellum:voice:sttProvider`),O(`voice:activationKey`,`vellum:voice:activationKey`),O(`integrations.bannerDismissed`,`vellum:integrations:bannerDismissed`),O(`onboarding.tosAccepted`,`vellum:onboarding:tosAccepted`),O(`onboarding.aiDataConsent`,`vellum:onboarding:aiDataConsent`),ir(`onboarding.completed`),ir(`vellum:onboarding:completed`),O(`onboarding.selectedVersion`,`vellum:onboarding:selectedVersion`),O(`vellum:skillsTabTipDismissed`,`vellum:skills:tipDismissed`),O(`vellum_image_gen_mode`,`vellum:ai:imageGenMode`),O(`vellum_image_gen_model`,`vellum:ai:imageGenModel`);try{if(localStorage.getItem(`vellum:ai:imageGenProvider`)===null){let e=localStorage.getItem(`vellum:ai:imageGenMode`);e===`managed`?localStorage.setItem(`vellum:ai:imageGenProvider`,`vellum`):e===`your-own`&&localStorage.setItem(`vellum:ai:imageGenProvider`,`gemini`)}}catch{}O(`vellum_web_search_mode`,`vellum:ai:webSearchMode`),O(`vellum_web_search_provider`,`vellum:ai:webSearchProvider`),O(`vellum_email_mode`,`vellum:ai:emailMode`),O(`vellum_email_byo_provider`,`vellum:ai:emailByoProvider`),O(`vellum_gemini_key`,`vellum:ai:geminiKey`),O(`vellum_perplexity_key`,`vellum:ai:perplexityKey`),O(`vellum_brave_key`,`vellum:ai:braveKey`),O(`vellum_tavily_key`,`vellum:ai:tavilyKey`),O(`vellumDebug.flags.impersonateAssistantVersion`,`vellum:debug:impersonateAssistantVersion`),O(`gw:token`,`vellum:gw:token`),O(`gw:expiresAt`,`vellum:gw:expiresAt`),O(`gw:tokenSource`,`vellum:gw:tokenSource`),or(),O(`local:lockfile`,`vellum:local:lockfile`),O(`local:selectedAssistantId`,`vellum:local:selectedAssistantId`),ar(`voice:ttsApiKey:`,`vellum:voice:ttsApiKey:`),ar(`voice:ttsVoiceId:`,`vellum:voice:ttsVoiceId:`),ar(`voice:sttApiKey:`,`vellum:voice:sttApiKey:`),ar(`ff:client:`,`vellum:ff:`),ar(`disk-pressure-warning-dismissed-`,`vellum:diskPressureDismissed:`),ar(`vellum_current_assistant_id__`,`vellum:currentAssistantId:`),cr(),rr(`vellum:skills:tipDismissed`,`1`,`true`),ir(`app.githubNudge.starred`),ir(`app.githubNudge.bannerDismissed`),ir(`app.githubNudge.bannerDismissedAt`),ir(`app.discordNudge.joined`),ir(`app.discordNudge.bannerDismissed`),ir(`app.discordNudge.firstSeenAt`),ir(`app.nudgeLegacy.cleaned`)}}n(),ur();var dr={},fr={};function pr(e,t){return dr[e]=dr[e]||[],dr[e].push(t),()=>{let n=dr[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function mr(e,t){if(!fr[e]){fr[e]=!0;try{t()}catch(t){b&&s.error(`Error while instrumenting ${e}`,t)}}}function hr(e,t){let n=e&&dr[e];if(n)for(let r of n)try{r(t)}catch(t){b&&s.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${m(r)}\nError:`,t)}}var gr=null;function _r(e){let t=`error`;pr(t,e),mr(t,vr)}function vr(){gr=g.onerror,g.onerror=function(e,t,n,r,i){return hr(`error`,{column:r,error:i,line:n,msg:e,url:t}),gr?gr.apply(this,arguments):!1},g.onerror.__SENTRY_INSTRUMENTED__=!0}var yr=null;function br(e){let t=`unhandledrejection`;pr(t,e),mr(t,xr)}function xr(){yr=g.onunhandledrejection,g.onunhandledrejection=function(e){return hr(`unhandledrejection`,e),yr?yr.apply(this,arguments):!0},g.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Sr(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Cr(e,t=!0){if(e.startsWith(`data:`)){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:`text/plain`,i=e.includes(`;base64,`),a=e.indexOf(`,`),o=``;if(t&&a!==-1){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?`,base64`:``}${o?`,${o}`:``}`}return e}function wr(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}var Tr=[];function Er(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function Dr(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return Er(r)}function Or(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&Ar(e,t,n)}),n}function kr(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Ar(e,t,n){if(n[t.name]){b&&s.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!Tr.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),Tr.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}[`processSpan`,`processSegmentSpan`].forEach(n=>{let r=t[n];typeof r==`function`&&e.on(n,n=>r.call(t,n,e))}),b&&s.log(`Integration installed: ${t.name}`)}function k(e){return e}function jr(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function Mr(){return`npm`}function Nr(){return!jr()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function Pr(){return typeof window<`u`&&(!Nr()||Fr())}function Fr(){return g.process?.type===`renderer`}function Ir(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...Pr()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Lr(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=ce(r)),ot(a,[Ir(e,i)])}function Rr(e,t){let n=t??zr(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Lr(n,r._metadata,r.tunnel,e.getDsn(),r.sendDefaultPii);Br().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function zr(e){return Br().get(e)}function Br(){return re(`clientToLogBufferMap`,()=>new WeakMap)}function Vr(e,t){let n=t?`auto`:`never`;return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{version:2,...Pr()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Hr(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=ce(r)),ot(a,[Vr(e,i)])}function Ur(e,t){let n=t??Wr(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Hr(n,r._metadata,r.tunnel,e.getDsn(),r.sendDefaultPii);Gr().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function Wr(e){return Gr().get(e)}function Gr(){return re(`clientToMetricBufferMap`,()=>new WeakMap)}function Kr(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}var qr=Symbol.for(`SentryBufferFullError`);function Jr(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return De(qr);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return We(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>Kr(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var Yr=60*1e3;function Xr(e,t=He()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Yr:r-t}function Zr(e,t){return e[t]||e.all||0}function Qr(e,t,n=He()){return Zr(e,t)>n}function $r(e,{statusCode:t,headers:n},r=He()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+Xr(o,r):t===429&&(i.all=r+60*1e3);return i}function ei(e,t,n=Jr(e.bufferSize||64)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(C(i,(t,n)=>{let i=it(n);Qr(r,i)?e.recordDroppedEvent(`ratelimit_backoff`,i):a.push(t)}),a.length===0)return Promise.resolve({});let o=ot(i[0],a),c=t=>{if(Se(o,[`client_report`])){b&&s.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}C(o,(n,r)=>{e.recordDroppedEvent(t,it(r))})};return n.add(()=>t({body:l(o)}).then(e=>e.statusCode===413?(b&&s.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),c(`send_error`),e):(b&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&s.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=$r(r,e),e),e=>{throw c(`network_error`),b&&s.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>{if(e===qr)return b&&s.error(`Skipped sending event because buffer is full.`),c(`queue_overflow`),Promise.resolve({});throw e})}return{send:a,flush:i}}function ti(e,t,n){let r=[{type:`client_report`},{timestamp:n||Ke(),discarded_events:e}];return ot(t?{dsn:t}:{},[r])}function ni(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function ri(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[S],exclusive_time:o?.[te],measurements:e.measurements,is_segment:!0}}function ii(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}var ai=`Not capturing exception because it's already been captured.`,oi=`Discarded session because of missing or non-string release`,si=Symbol.for(`SentryInternalError`),ci=Symbol.for(`SentryDoNotSendEventError`),li=5e3;function ui(e){return{message:e,[si]:!0}}function di(e){return{message:e,[ci]:!0}}function fi(e){return!!e&&typeof e==`object`&&si in e}function pi(e){return!!e&&typeof e==`object`&&ci in e}function mi(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{a+=r(t),a>=8e5?i(e):s||(s=!0,o=Kr(setTimeout(()=>{i(e)},li)))}),e.on(`flush`,()=>{i(e)})}var hi=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Jr(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=h(e.dsn):b&&s.warn(`No DSN provided, client will not send events.`),this._dsn){let t=dt(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&mi(this,`afterCaptureLog`,`flushLogs`,Si,Rr),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&mi(this,`afterCaptureMetric`,`flushMetrics`,xi,Ur)}captureException(e,t,n){let r=a();if(_e(e))return b&&s.log(ai),r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),`error`),i.event_id}captureMessage(e,t,n,r){let i={event_id:a(),...n},o=tt(e)?e:String(e),s=Ce(e),c=s?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(()=>c.then(e=>this._captureEvent(e,i,r)),s?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let r=a();if(t?.originalException&&_e(t.originalException))return b&&s.log(ai),r;let i={event_id:r,...t},o=e.sdkProcessingMetadata||{},c=o.capturedSpanScope,l=o.capturedSpanIsolationScope,u=gi(e.type);return this._process(()=>this._captureEvent(e,i,c||n,l),u),i.event_id}captureSession(e){this.sendSession(e),ee(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit(`flush`),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){Rr(this);let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),Ar(this,e,this._integrations),t||kr(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=je(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=ve(n,et(e));this.sendEnvelope(n).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=oe}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t){b&&s.warn(oi);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){b&&s.warn(oi);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=ke(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;b&&s.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:``}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return b&&s.error(`Error while sending envelope:`,e),{}}return b&&s.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=Or(this,e),kr(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(ee(e,{...n&&{status:`crashed`},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a?.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),we(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...me(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:d(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=c(),r=v()){return b&&yi(e)&&s.log(`Captured error event \`${ni(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{b&&(pi(e)?s.log(e.message):fi(e)?s.warn(e.message):s.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=bi(e),s=yi(e),c=`before send for type \`${e.type||`error`}\``,l=a===void 0?void 0:ie(a);if(s&&typeof l==`number`&&qe()>l)return this.recordDroppedEvent(`sample_rate`,`error`),De(di(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let u=gi(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,u),di("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:_i(vi(this,i,e,t),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(`before_send`,u),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw di(`${c} returned \`null\`, will not send event.`)}let a=n.getSession()||r.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let l=i.transaction_info;return o&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw pi(e)||fi(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),ui(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===qr&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){b&&s.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){b&&s.log(`No outcomes to send`);return}if(!this._dsn){b&&s.log(`No dsn provided, will not send outcomes`);return}b&&s.log(`Sending outcomes:`,e);let t=ti(e,this._options.tunnel&&ce(this._dsn));this.sendEnvelope(t)}};function gi(e){return e===`replay_event`?`replay`:e||`error`}function _i(e,t){let n=`${t} must return \`null\` or a valid event.`;if(u(e))return e.then(e=>{if(!st(e)&&e!==null)throw ui(n);return e},e=>{throw ui(`${t} rejected with ${e}`)});if(!st(e)&&e!==null)throw ui(n);return e}function vi(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,ignoreSpans:s}=t,c=!p(t.beforeSendSpan)&&t.beforeSendSpan,l=n;if(yi(l)&&i)return i(l,r);if(bi(l)){if(c||s){let t=ri(l);if(s?.length&&o({description:t.description,op:t.op,attributes:t.data},s))return null;if(c){let e=c(t);e?l=_(n,ii(e)):Fe()}if(l.spans){let t=[],n=l.spans;for(let e of n){if(s?.length&&o({description:e.description,op:e.op,attributes:e.data},s)){Le(n,e);continue}if(c){let n=c(e);n?t.push(n):(Fe(),t.push(e))}else t.push(e)}let r=l.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),l.spans=t}}if(a){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(l,r)}}return l}function yi(e){return e.type===void 0}function bi(e){return e.type===`transaction`}function xi(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+Ci(e.attributes)}function Si(e){let t=0;return e.message&&(t+=e.message.length*2),t+Ci(e.attributes)}function Ci(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*wi(e[0]):Ce(e)?t+=wi(e):t+=100}),t}function wi(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function Ti(e,t){return e(t.stack||``,1)}function Ei(e){return Ve(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function Di(e){return Ei(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function Oi(e,t){let n={type:t.name||t.constructor.name,value:Di(t)},r=Ti(e,t);return r.length&&(n.stacktrace={frames:r}),n}function ki(e,t){t.debug===!0&&(b?s.enable():Re(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),c().update(t.initialScope);let n=new e(t);return Ai(n),n.init(),n}function Ai(e){c().setClient(e)}function ji(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function Mi(e,t,n=[t],r=`npm`){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:le})),i.version=le)}var Ni,Pi=`FunctionToString`,Fi=new WeakMap,Ii=k((()=>({name:Pi,setupOnce(){Ni=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Ye(this),n=Fi.has(ct())&&t!==void 0?t:this;return Ni.apply(n,e)}}catch{}},setup(e){Fi.set(e,!0)}}))),Li=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],Ri=`EventFilters`,zi=k((e={})=>{let t;return{name:Ri,setup(n){t=Vi(e,n.getOptions())},processEvent(n,r,i){return t||=Vi(e,i.getOptions()),A(n,t)?null:n}}}),Bi=k(((e={})=>({...zi(e),name:`InboundFilters`})));function Vi(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Li],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function A(e,t){if(!e.type){if(j(e,t.ignoreErrors))return b&&s.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${ue(e)}`),!0;if(qi(e))return b&&s.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${ue(e)}`),!0;if(Ui(e,t.denyUrls))return b&&s.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${ue(e)}.\nUrl: ${Ki(e)}`),!0;if(!Wi(e,t.allowUrls))return b&&s.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${ue(e)}.\nUrl: ${Ki(e)}`),!0}else if(e.type===`transaction`&&Hi(e,t.ignoreTransactions))return b&&s.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${ue(e)}`),!0;return!1}function j(e,t){return t?.length?ni(e).some(e=>Ze(e,t)):!1}function Hi(e,t){if(!t?.length)return!1;let n=e.transaction;return n?Ze(n,t):!1}function Ui(e,t){if(!t?.length)return!1;let n=Ki(e);return n?Ze(n,t):!1}function Wi(e,t){if(!t?.length)return!0;let n=Ki(e);return n?Ze(n,t):!0}function Gi(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function Ki(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?Gi(t):null}catch{return b&&s.error(`Cannot extract url for event ${ue(e)}`),null}}function qi(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function Ji(e,t,n,r,i,a){if(!i.exception?.values||!a||!ye(a.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=Yi(e,t,r,a.originalException,n,i.exception.values,o,0))}function Yi(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(ye(r[i],Error)){Zi(o,s,r);let a=e(t,r[i]),l=c.length;Qi(a,i,l,s),c=Yi(e,t,n,r[i],i,[a,...c],a,l)}return Xi(r)&&r.errors.forEach((a,l)=>{if(ye(a,Error)){Zi(o,s,r);let u=e(t,a),d=c.length;Qi(u,`errors[${l}]`,d,s),c=Yi(e,t,n,a,i,[u,...c],u,d)}}),c}function Xi(e){return Array.isArray(e.errors)}function Zi(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...Xi(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Qi(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}var $i=`cause`,ea=5,ta=`LinkedErrors`,na=k(((e={})=>{let t=e.limit||ea,n=e.key||$i;return{name:ta,preprocessEvent(e,r,i){Ji(Oi,i.getOptions().stackParser,n,t,e,r)}}}));function ra(e){let t=`console`,n=pr(t,e);return mr(t,ia),n}function ia(){`console`in g&&se.forEach(function(e){e in g.console&&Ue(g.console,e,function(t){return Ie[e]=t,function(...t){hr(`console`,{args:t,level:e}),Ie[e]?.apply(g.console,t)}})})}function aa(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var oa=`Dedupe`,sa=k((()=>{let e;return{name:oa,processEvent(t){if(t.type)return t;try{if(ca(t,e))return b&&s.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function ca(e,t){return t?!!(la(e,t)||ua(e,t)):!1}function la(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!fa(e,t)||!da(e,t))}function ua(e,t){let n=pa(t),r=pa(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!fa(e,t)||!da(e,t))}function da(e,t){let n=pe(e),r=pe(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function fa(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join(``)===r.join(``)}catch{return!1}}function pa(e){return e.exception?.values?.[0]}function M(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];r===`.`?e.splice(t,1):r===`..`?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;)e.unshift(`..`);return e}var ma=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function ha(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=ma.exec(t);return n?n.slice(1):[]}function ga(...e){let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:`/`;i&&(t=`${i}/${t}`,n=i.charAt(0)===`/`)}return t=M(t.split(`/`).filter(e=>!!e),!n).join(`/`),(n?`/`:``)+t||`.`}function _a(e){let t=0;for(;t<e.length&&e[t]===``;t++);let n=e.length-1;for(;n>=0&&e[n]===``;n--);return t>n?[]:e.slice(t,n-t+1)}function va(e,t){e=ga(e).slice(1),t=ga(t).slice(1);let n=_a(e.split(`/`)),r=_a(t.split(`/`)),i=Math.min(n.length,r.length),a=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){a=e;break}let o=[];for(let e=a;e<n.length;e++)o.push(`..`);return o=o.concat(r.slice(a)),o.join(`/`)}function ya(e,t){let n=ha(e)[2]||``;return t&&n.slice(t.length*-1)===t&&(n=n.slice(0,n.length-t.length)),n}var ba=`RewriteFrames`,xa=k((e={})=>{let t=e.root,n=e.prefix||`app:///`,r=`window`in g&&!!g.window,i=e.iteratee||Sa({isBrowser:r,root:t,prefix:n});function a(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>({...e,...e.stacktrace&&{stacktrace:o(e.stacktrace)}}))}}}catch{return e}}function o(e){return{...e,frames:e?.frames?.map(e=>i(e))}}return{name:ba,processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=a(t)),t}}});function Sa({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes(`\\`)&&!r.filename.includes(`/`),a=/^\//.test(r.filename);if(e){if(t){let e=r.filename;e.indexOf(t)===0&&(r.filename=e.replace(t,n))}}else if(i||a){let e=i?r.filename.replace(/^[a-zA-Z]:/,``).replace(/\\/g,`/`):r.filename;r.filename=`${n}${t?va(t,e):ya(e)}`}return r}}var Ca=`ConversationId`,wa=k((()=>({name:Ca,setup(e){e.on(`spanStart`,e=>{let t=c().getScopeData(),n=v().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=ne(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(y,r)}})}})));function Ta(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var Ea=g;function Da(){return`history`in Ea&&!!Ea.history}function Oa(){if(!(`fetch`in Ea))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function ka(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Aa(){if(typeof EdgeRuntime==`string`)return!0;if(!Oa())return!1;if(ka(Ea.fetch))return!0;let e=!1,t=Ea.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=ka(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){b&&s.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function ja(e,t){let n=`fetch`,r=pr(n,e);return mr(n,()=>Ma(void 0,t)),r}function Ma(e,t=!1){t&&!Aa()||Ue(g,`fetch`,function(t){return function(...n){let r=Error(),{method:i,url:a}=Fa(n),o={args:n,fetchData:{method:i,url:a},startTimestamp:x()*1e3,virtualError:r,headers:Ia(n)};return e||hr(`fetch`,{...o}),t.apply(g,n).then(async t=>(e?e(t):hr(`fetch`,{...o,endTimestamp:x()*1e3,response:t}),t),e=>{hr(`fetch`,{...o,endTimestamp:x()*1e3,error:e}),Ve(e)&&e.stack===void 0&&(e.stack=r.stack,Pe(e,`framesToPop`,1));let t=ct()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&e instanceof TypeError&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(o.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:Pe(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})}function Na(e,t){return!!e&&typeof e==`object`&&!!e[t]}function Pa(e){return typeof e==`string`?e:e?Na(e,`url`)?e.url:e.toString?e.toString():``:``}function Fa(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:Pa(t),method:Na(n,`method`)?String(n.method).toUpperCase():at(t)&&Na(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:Pa(t),method:Na(t,`method`)?String(t.method).toUpperCase():`GET`}}function Ia(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(at(t))return new Headers(t.headers)}catch{}}function La(e,t){let n=Ba(e,t),r={type:Ga(t),value:Ka(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function Ra(e,t,n,r){let i=ct()?.getOptions().normalizeDepth,a=$a(t),o={__serialized__:fe(t,i)};if(a)return{exception:{values:[La(e,a)]},extra:o};let s={exception:{values:[{type:Ae(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:Za(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=Ba(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function za(e,t){return{exception:{values:[La(e,t)]}}}function Ba(e,t){let n=t.stacktrace||t.stack||``,r=Ha(t),i=Ua(t);try{return e(n,r,i)}catch{}return[]}var Va=/Minified React error #\d+;/i;function Ha(e){return e&&Va.test(e.message)?1:0}function Ua(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function Wa(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0?e instanceof WebAssembly.Exception:!1}function Ga(e){let t=e?.name;return!t&&Wa(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function Ka(e){let t=e?.message;return Wa(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?Di(t.error):Di(e):`No error message`}function qa(e,t,n,r){let i=Ya(e,t,n?.syntheticException||void 0,r);return ge(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),We(i)}function Ja(e,t,n=`info`,r,i){let a=Xa(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),We(a)}function Ya(e,t,n,r,i){let a;if(Me(t)&&t.error)return za(e,t.error);if(Oe(t)||Ge(t)){let i=t;if(`stack`in t)a=za(e,t);else{let t=i.name||(Oe(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=Xa(e,o,n,r),w(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return Ve(t)?za(e,t):st(t)||Ae(t)?(a=Ra(e,t,n,i),ge(a,{synthetic:!0}),a):(a=Xa(e,t,n,r),w(a,`${t}`,void 0),ge(a,{synthetic:!0}),a)}function Xa(e,t,n,r){let i={};if(r&&n){let r=Ba(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),ge(i,{synthetic:!0})}if(tt(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function Za(e,{isUnhandledRejection:t}){let n=xe(e),r=t?`promise rejection`:`exception`;return Me(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Ae(e)?`Event \`${Qa(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Qa(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function $a(e){return Object.values(e).find(e=>e instanceof Error)}var eo=class extends hi{constructor(e){let t=to(e);Mi(t,`browser`,[`browser`],T.SENTRY_SDK_SOURCE||Mr()),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?`auto`:`never`,...t._metadata.sdk.settings}),super(t);let{sendDefaultPii:n,sendClientReports:r,enableLogs:i,_experiments:a,enableMetrics:o}=this._options,s=o??a?.enableMetrics??!0;T.document&&(r||i||s)&&T.document.addEventListener(`visibilitychange`,()=>{T.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),i&&Rr(this),s&&Ur(this))}),n&&this.on(`beforeSendSession`,ji)}eventFromException(e,t){return qa(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return Ja(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function to(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:T.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var no=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,ro=g,io=1e3,ao,oo,so;function co(e){pr(`dom`,e),mr(`dom`,lo)}function lo(){if(!ro.document)return;let e=hr.bind(null,`dom`),t=po(e,!0);ro.document.addEventListener(`click`,t,!1),ro.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=ro[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(Ue(n,`addEventListener`,function(t){return function(n,r,i){if(n===`click`||n==`keypress`)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=po(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),Ue(n,`removeEventListener`,function(e){return function(t,n,r){if(t===`click`||t==`keypress`)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),Object.keys(n).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function uo(e){if(e.type!==oo)return!1;try{if(!e.target||e.target._sentryId!==so)return!1}catch{}return!0}function fo(e,t){return e===`keypress`?t?.tagName?!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!0:!1}function po(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=mo(n);if(fo(n.type,r))return;Pe(n,`_sentryCaptured`,!0),r&&!r._sentryId&&Pe(r,`_sentryId`,a());let i=n.type===`keypress`?`input`:n.type;uo(n)||(e({event:n,name:i,global:t}),oo=n.type,so=r?r._sentryId:void 0),clearTimeout(ao),ao=ro.setTimeout(()=>{so=void 0,oo=void 0},io)}}function mo(e){try{return e.target}catch{return null}}var ho;function go(e){let t=`history`;pr(t,e),mr(t,N)}function N(){if(ro.addEventListener(`popstate`,()=>{let e=ro.location.href,t=ho;ho=e,t!==e&&hr(`history`,{from:t,to:e})}),!Da())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=ho,i=_o(String(n));if(ho=i,r===i)return e.apply(this,t);hr(`history`,{from:r,to:i})}return e.apply(this,t)}}Ue(ro.history,`pushState`,e),Ue(ro.history,`replaceState`,e)}function _o(e){try{return new URL(e,ro.location.origin).toString()}catch{return e}}var vo={};function P(e){let t=vo[e];if(t)return t;let n=ro[e];if(ka(n))return vo[e]=n.bind(ro);let r=ro.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){no&&s.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(vo[e]=n.bind(ro))}function F(e){vo[e]=void 0}var I=`__sentry_xhr_v3__`;function yo(e){pr(`xhr`,e),mr(`xhr`,bo)}function bo(){if(!ro.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=x()*1e3,a=de(n[0])?n[0].toUpperCase():void 0,o=xo(n[1]);if(!a||!o)return e.apply(t,n);t[I]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[I];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}hr(`xhr`,{endTimestamp:x()*1e3,startTimestamp:i,xhr:t,virtualError:r})}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[I];return a&&de(r)&&de(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[I];return r?(n[0]!==void 0&&(r.body=n[0]),hr(`xhr`,{startTimestamp:x()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function xo(e){if(de(e))return e;try{return e.toString()}catch{}}var So=40;function Co(e,t=P(`fetch`)){let n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`X-Sentry-Rate-Limits`),"retry-after":n.headers.get(`Retry-After`)}}}catch(e){throw F(`fetch`),e}finally{n-=a,r--}}return ei(e,i,Jr(e.bufferSize||So))}var wo=30,To=50;function L(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var Eo=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Do=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Oo=/\((\S*)(?::(\d+))(?::(\d+))\)/,ko=/at (.+?) ?\(data:(.+?),/,Ao=[wo,e=>{let t=e.match(ko);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=Eo.exec(e);if(n){let[,e,t,r]=n;return L(e,`?`,+t,+r)}let r=Do.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=Oo.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=Po(r[1]||`?`,r[2]);return L(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],jo=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Mo=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,No=rt(Ao,[To,e=>{let t=jo.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=Mo.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=Po(n,e),L(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),Po=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},R=1024,Fo=`Breadcrumbs`,Io=k(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Fo,setup(e){t.console&&ra(zo(e)),t.dom&&co(Ro(e,t.dom)),t.xhr&&yo(Bo(e)),t.fetch&&ja(Vo(e)),t.history&&go(Ho(e)),t.sentry&&e.on(`beforeSendEvent`,Lo(e))}}}));function Lo(e){return function(t){ct()===e&&E({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:ue(t)},{event:t})}}function Ro(e,t){return function(n){if(ct()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>R&&(pt&&s.warn(`\`dom.maxStringLength\` cannot exceed ${R}, but a value of ${o} was configured. Sentry will use ${R} instead.`),o=R),typeof a==`string`&&(a=[a]);try{let e=n.event,t=Uo(e)?e.target:e;r=Te(t,{keyAttrs:a,maxStringLength:o}),i=Be(t)}catch{r=`<unknown>`}if(r.length===0)return;let c={category:`ui.${n.name}`,message:r};i&&(c.data={"ui.component_name":i}),E(c,{event:n.event,name:n.name,global:n.global})}}function zo(e){return function(t){if(ct()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:aa(t.level),message:Ee(t.args,` `)};if(t.level===`assert`)if(t.args[0]===!1)n.message=`Assertion failed: ${Ee(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return;E(n,{input:t.args,level:t.level})}}function Bo(e){return function(t){if(ct()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[I];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:`xhr`,data:l,type:`http`,level:Ta(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),E(d,u)}}function Vo(e){return function(t){if(ct()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`))if(t.error){let i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:`fetch`,data:t.fetchData,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,a,i),E(a,i)}else{let i=t.response,a={...t.fetchData,status_code:i?.status},o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:Ta(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),E(s,o)}}}function Ho(e){return function(t){if(ct()!==e)return;let n=t.from,r=t.to,i=Sr(T.location.href),a=n?Sr(n):void 0,o=Sr(r);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),E({category:`navigation`,data:{from:n,to:r}})}}function Uo(e){return!!e&&!!e.target}var Wo=`EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload`.split(`,`),Go=`BrowserApiErrors`,Ko=k(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:Go,setupOnce(){t.setTimeout&&Ue(T,`setTimeout`,qo),t.setInterval&&Ue(T,`setInterval`,qo),t.requestAnimationFrame&&Ue(T,`requestAnimationFrame`,Jo),t.XMLHttpRequest&&`XMLHttpRequest`in T&&Ue(XMLHttpRequest.prototype,`send`,Yo);let e=t.eventTarget;e&&(Array.isArray(e)?e:Wo).forEach(e=>Xo(e,t))}}}));function qo(e){return function(...t){let n=t[0];return t[0]=ht(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${m(e)}`}}),e.apply(this,t)}}function Jo(e){return function(t){return e.apply(this,[ht(t,{mechanism:{data:{handler:m(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function Yo(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&Ue(n,e,function(t){let n={mechanism:{data:{handler:m(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=Ye(t);return r&&(n.mechanism.data.handler=m(r)),ht(t,n)})}),e.apply(this,t)}}function Xo(e,t){let n=T[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(Ue(n,`addEventListener`,function(n){return function(r,i,a){try{Zo(i)&&(i.handleEvent=ht(i.handleEvent,{mechanism:{data:{handler:m(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&Qo(this,r,i),n.apply(this,[r,ht(i,{mechanism:{data:{handler:m(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),Ue(n,`removeEventListener`,function(e){return function(t,n,r){try{let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch{}return e.call(this,t,n,r)}}))}function Zo(e){return typeof e.handleEvent==`function`}function Qo(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var $o=k((e={})=>{let t=e.lifecycle??`route`;return{name:`BrowserSession`,setupOnce(){if(T.document===void 0){pt&&s.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Qe({ignoreDuration:!0}),Je();let e=v(),n=e.getUser();e.addScopeListener(e=>{let t=e.getUser();(n?.id!==t?.id||n?.ip_address!==t?.ip_address)&&(Je(),n=t)}),t===`route`&&go(({from:e,to:t})=>{e!==t&&(Qe({ignoreDuration:!0}),Je())})}}}),es=`CultureContext`,ts=k((()=>({name:es,preprocessEvent(e){let t=ns();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=ns();t&&wr(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function ns(){try{let e=T.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var rs=`GlobalHandlers`,is=k(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:rs,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(as(e),us(`onerror`)),t.onunhandledrejection&&(os(e),us(`onunhandledrejection`))}}}));function as(e){_r(t=>{let{stackParser:n,attachStacktrace:r}=ds();if(ct()!==e||ft())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=ls(Ya(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,Ne(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function os(e){br(t=>{let{stackParser:n,attachStacktrace:r}=ds();if(ct()!==e||ft())return;let i=ss(t),a=Ce(i)?cs(i):Ya(n,i,void 0,r,!0);a.level=`error`,Ne(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function ss(e){if(Ce(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function cs(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function ls(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:fs(t)??$e(),function:`?`,in_app:!0}),e}function us(e){pt&&s.log(`Global Handler attached: ${e}`)}function ds(){return ct()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function fs(e){if(!(!de(e)||e.length===0))return e.startsWith(`data:`)?`<${Cr(e,!1)}>`:e}var ps=k(()=>({name:`HttpContext`,preprocessEvent(e){if(!T.navigator&&!T.location&&!T.document)return;let t=ut(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){if(!T.navigator&&!T.location&&!T.document)return;let t=ut();wr(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers[`User-Agent`],"http.request.header.referer":t.headers.Referer})}})),ms=`cause`,hs=5,gs=`LinkedErrors`,_s=k(((e={})=>{let t=e.limit||hs,n=e.key||ms;return{name:gs,preprocessEvent(e,r,i){Ji(La,i.getOptions().stackParser,n,t,e,r)}}}));function vs(){return ys()?(pt&&Re(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}function ys(){if(T.window===void 0)return!1;let e=T;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=$e();return!(T===T.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function bs(e){return[Bi(),Ii(),wa(),Ko(),Io(),is(),_s(),sa(),ps(),ts(),$o()]}function xs(e={}){let t=!e.skipBrowserExtensionCheck&&vs(),n=e.defaultIntegrations==null?bs():e.defaultIntegrations;return ki(eo,{...e,enabled:t?!1:e.enabled,stackParser:f(e.stackParser||No),integrations:Dr({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||Co})}var Ss=e(gt());function Cs(e){let t={...e};return Mi(t,`react`),ze(`react`,{version:Ss.version}),xs(t)}var ws=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,ee||(ee=!0,oe());else{var t=n(l);t!==null&&le(x,t.startTime-e)}}var ee=!1,te=-1,ne=5,re=-1;function ie(){return g?!0:!(e.unstable_now()-re<ne)}function ae(){if(g=!1,ee){var t=e.unstable_now();re=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(te),te=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ie());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&le(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?oe():ee=!1}}}var oe;if(typeof y==`function`)oe=function(){y(ae)};else if(typeof MessageChannel<`u`){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=ae,oe=function(){ce.postMessage(null)}}else oe=function(){_(ae,0)};function le(t,n){te=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):ne=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(te),te=-1):h=!0,le(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,oe()))),r},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Ts=t(((e,t)=>{t.exports=ws()})),Es=t((e=>{var t=Ts(),n=gt(),r=_t();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),v=Symbol.for(`react.profiler`),y=Symbol.for(`react.consumer`),b=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),ee=Symbol.for(`react.suspense`),te=Symbol.for(`react.suspense_list`),ne=Symbol.for(`react.memo`),re=Symbol.for(`react.lazy`),ie=Symbol.for(`react.activity`),ae=Symbol.for(`react.memo_cache_sentinel`),oe=Symbol.iterator;function se(e){return typeof e!=`object`||!e?null:(e=oe&&e[oe]||e[`@@iterator`],typeof e==`function`?e:null)}var ce=Symbol.for(`react.client.reference`);function le(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case v:return`Profiler`;case _:return`StrictMode`;case ee:return`Suspense`;case te:return`SuspenseList`;case ie:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case b:return e.displayName||`Context`;case y:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ne:return t=e.displayName||null,t===null?le(e.type)||`Memo`:t;case re:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}var ue=Array.isArray,S=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de={pending:!1,data:null,method:null,action:null},fe=[],pe=-1;function me(e){return{current:e}}function he(e){0>pe||(e.current=fe[pe],fe[pe]=null,pe--)}function w(e,t){pe++,fe[pe]=e.current,e.current=t}var ge=me(null),_e=me(null),ve=me(null),ye=me(null);function be(e,t){switch(w(ve,t),w(_e,e),w(ge,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}he(ge),w(ge,e)}function xe(){he(ge),he(_e),he(ve)}function Se(e){e.memoizedState!==null&&w(ye,e);var t=ge.current,n=Hd(t,e.type);t!==n&&(w(_e,e),w(ge,n))}function Ce(e){_e.current===e&&(he(ge),he(_e)),ye.current===e&&(he(ye),Qf._currentValue=de)}var we,Te;function Ee(e){if(we===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);we=t&&t[1]||``,Te=-1<e.stack.indexOf(`
2
+ import{o as e,t}from"./chunk-jRWAZmH_.js";import{i as n,r,s as i}from"./device-settings-DZvv4pnY.js";import{$ as a,A as o,At as s,B as c,C as l,Ct as u,D as d,Dt as f,E as p,Et as m,F as h,Ft as g,G as _,H as v,I as y,It as b,J as x,K as ee,L as te,M as ne,Mt as re,N as ie,Nt as ae,O as oe,Ot as se,P as ce,Pt as le,Q as ue,R as S,S as C,St as de,T as fe,Tt as pe,U as me,V as he,X as w,Y as ge,Z as _e,_ as ve,_t as ye,a as be,at as xe,b as Se,bt as Ce,d as we,dt as Te,et as Ee,f as De,ft as Oe,g as ke,gt as Ae,h as je,ht as Me,i as Ne,it as Pe,j as Fe,jt as Ie,k as Le,kt as Re,l as ze,lt as Be,mt as Ve,nt as He,ot as Ue,p as We,pt as Ge,q as Ke,rt as qe,s as Je,st as Ye,t as Xe,tt as Ze,u as Qe,ut as $e,v as et,vt as tt,w as nt,wt as rt,x as it,xt as at,y as ot,yt as st,z as ct}from"./capture-error-DiNp24s6.js";import{a as lt,c as ut,d as dt,l as ft,o as pt,r as mt,s as T,u as ht}from"./document-viewer-container-Bb7omFZS.js";import{o as E}from"./doctor-handoff-store-CX39mMuw.js";import{t as gt}from"./react-BFJW0bSv.js";import{W as _t,r as vt}from"./button-VkxVX0DM.js";import{t as yt}from"./preload-helper-Cv2QeVDK.js";import{i as bt}from"./chunk-5KNZJZUH-BUqIilZr.js";import{A as xt,C as St,D as Ct,N as wt,S as Tt,_ as Et,b as Dt,c as Ot,g as kt,h as At,s as jt,t as Mt,u as Nt,x as Pt}from"./QueryClientProvider-EuRl-wrW.js";import{f as Ft}from"./useQuery-CTSuec5b.js";import{n as It}from"./useInfiniteQuery-C5Kg1-qX.js";import{n as Lt}from"./useMutation-D2YPyfEH.js";import{t as Rt}from"./jsx-runtime-BJ8jcmzB.js";import{a as zt,c as Bt,i as Vt,l as Ht,o as Ut,r as Wt,s as Gt,t as Kt}from"./routes-BLMWzYB3.js";import{w as qt}from"./composer-settings-CacCpRW8.js";import{n as Jt}from"./src-qDZBwoEm.js";import{t as Yt}from"./toast-DqqWkjsh.js";import{C as Xt,S as Zt,T as Qt,X as $t,at as en,et as tn,it as nn,ot as rn,p as an,v as on,x as sn}from"./local-mode-BNr2MrWI.js";import{t as cn}from"./is-electron-wgAC5Mzb.js";import{r as ln}from"./resolved-assistants-store-BNadgXqb.js";import{t as un}from"./i18n-WHkGP0v4.js";import{a as dn,t as fn}from"./api-errors-CASENJGT.js";import{$ as pn,C as mn,Y as hn,_ as gn,a as _n,at as vn,b as yn,c as bn,ct as xn,et as Sn,gt as Cn,ht as wn,it as Tn,n as D,nt as En,ot as Dn,t as On,tt as kn}from"./auth-store-DdlZ1ww5.js";import{t as An}from"./client.gen-CxTOBLiH.js";import{Qr as jn}from"./sdk.gen-CiE6cMi0.js";import{c as Mn}from"./api-CQ3nejmH.js";import{n as Nn}from"./event-bus-B-wwSVzo.js";import{o as Pn}from"./remote-gateway-session-CzPLaXuT.js";import{t as Fn}from"./client-feature-flag-store-D5JmN6Ek.js";import{A as In,I as Ln,O as Rn,d as zn,k as Bn,l as Vn}from"./native-biometric-BxYhgb-X.js";import{i as Hn,t as Un}from"./dist-D7UWVopK.js";import{d as Wn}from"./routes-B7wRw3UT.js";import{c as Gn,n as Kn,r as qn,s as Jn}from"./platform-detection-Dt0-jSAU.js";import{t as Yn}from"./onboarding-store-9CMrOvS2.js";import{n as Xn}from"./theme-preferences-CAlH0BJX.js";import{r as Zn}from"./prefs-BLTugIFN.js";import{r as Qn}from"./ingest-C3QOaKA5.js";import{t as $n}from"./client-perf-DHnnpVkx.js";import{o as er}from"./diagnostics-BrWbafo7.js";import{t as tr}from"./hard-navigate-CNxvVrtC.js";import{E as nr}from"./sdk.gen-CoXhzo__.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function rr(e,t,n){if(!(typeof window>`u`))try{localStorage.getItem(e)===t&&localStorage.setItem(e,n)}catch{}}function ir(e){if(!(typeof window>`u`))try{localStorage.removeItem(e)}catch{}}function O(e,t){if(!(typeof window>`u`))try{let n=localStorage.getItem(e);if(n===null)return;localStorage.getItem(t)===null&&localStorage.setItem(t,n),localStorage.getItem(t)!==null&&localStorage.removeItem(e)}catch{}}function ar(e,t){if(!(typeof window>`u`))try{let n=[];for(let r=0;r<localStorage.length;r++){let i=localStorage.key(r);if(i&&i.startsWith(e)){let r=i.slice(e.length);n.push([i,t+r])}}for(let[e,t]of n)O(e,t)}catch{}}function or(){if(!(typeof window>`u`))try{if(!(localStorage.getItem(`vellum:gw:tokenSource`)??localStorage.getItem(`gw:tokenSource`))?.includes(`/__gateway-paired/`))return;for(let e of[`vellum:gw:token`,`vellum:gw:expiresAt`,`vellum:gw:tokenSource`,`gw:token`,`gw:expiresAt`,`gw:tokenSource`])localStorage.removeItem(e)}catch{}}function sr(e){let t=[];for(let n=0;n<localStorage.length;n++){let r=localStorage.key(n);r&&r.startsWith(e)&&t.push(r)}for(let e of t)localStorage.removeItem(e)}function cr(){if(typeof window>`u`)return;let e=`vellum:selectedAssistantId`,t=`vellum:local:selectedAssistantId`,n=`vellum:currentAssistantId:`;try{if(localStorage.getItem(e)===null){let r=localStorage.getItem(t);if(r===null&&(r=lr(n)),r===null){let e=null;for(let t=0;t<localStorage.length;t++){let r=localStorage.key(t);r&&r.startsWith(n)&&(e===null||r<e)&&(e=r)}e!==null&&(r=localStorage.getItem(e))}r&&localStorage.setItem(e,r)}localStorage.removeItem(t),sr(n)}catch{}}function lr(e){let t=null;try{t=sessionStorage.getItem(`vellum_active_organization_id`)}catch{return null}return t?localStorage.getItem(`${e}${t}`):null}function ur(){if(!(typeof window>`u`)){O(`assistantSidebarCollapsed`,`vellum:sidebar:collapsed`),O(`assistantSidebarWidth`,`vellum:sidebar:width`),O(`voice:permissionPrimerSeen`,`vellum:voice:permissionPrimerSeen`),O(`voice:ttsProvider`,`vellum:voice:ttsProvider`),O(`voice:sttProvider`,`vellum:voice:sttProvider`),O(`voice:activationKey`,`vellum:voice:activationKey`),O(`integrations.bannerDismissed`,`vellum:integrations:bannerDismissed`),O(`onboarding.tosAccepted`,`vellum:onboarding:tosAccepted`),O(`onboarding.aiDataConsent`,`vellum:onboarding:aiDataConsent`),ir(`onboarding.completed`),ir(`vellum:onboarding:completed`),O(`onboarding.selectedVersion`,`vellum:onboarding:selectedVersion`),O(`vellum:skillsTabTipDismissed`,`vellum:skills:tipDismissed`),O(`vellum_image_gen_mode`,`vellum:ai:imageGenMode`),O(`vellum_image_gen_model`,`vellum:ai:imageGenModel`);try{if(localStorage.getItem(`vellum:ai:imageGenProvider`)===null){let e=localStorage.getItem(`vellum:ai:imageGenMode`);e===`managed`?localStorage.setItem(`vellum:ai:imageGenProvider`,`vellum`):e===`your-own`&&localStorage.setItem(`vellum:ai:imageGenProvider`,`gemini`)}}catch{}O(`vellum_web_search_mode`,`vellum:ai:webSearchMode`),O(`vellum_web_search_provider`,`vellum:ai:webSearchProvider`),O(`vellum_email_mode`,`vellum:ai:emailMode`),O(`vellum_email_byo_provider`,`vellum:ai:emailByoProvider`),O(`vellum_gemini_key`,`vellum:ai:geminiKey`),O(`vellum_perplexity_key`,`vellum:ai:perplexityKey`),O(`vellum_brave_key`,`vellum:ai:braveKey`),O(`vellum_tavily_key`,`vellum:ai:tavilyKey`),O(`vellumDebug.flags.impersonateAssistantVersion`,`vellum:debug:impersonateAssistantVersion`),O(`gw:token`,`vellum:gw:token`),O(`gw:expiresAt`,`vellum:gw:expiresAt`),O(`gw:tokenSource`,`vellum:gw:tokenSource`),or(),O(`local:lockfile`,`vellum:local:lockfile`),O(`local:selectedAssistantId`,`vellum:local:selectedAssistantId`),ar(`voice:ttsApiKey:`,`vellum:voice:ttsApiKey:`),ar(`voice:ttsVoiceId:`,`vellum:voice:ttsVoiceId:`),ar(`voice:sttApiKey:`,`vellum:voice:sttApiKey:`),ar(`ff:client:`,`vellum:ff:`),ar(`disk-pressure-warning-dismissed-`,`vellum:diskPressureDismissed:`),ar(`vellum_current_assistant_id__`,`vellum:currentAssistantId:`),cr(),rr(`vellum:skills:tipDismissed`,`1`,`true`),ir(`app.githubNudge.starred`),ir(`app.githubNudge.bannerDismissed`),ir(`app.githubNudge.bannerDismissedAt`),ir(`app.discordNudge.joined`),ir(`app.discordNudge.bannerDismissed`),ir(`app.discordNudge.firstSeenAt`),ir(`app.nudgeLegacy.cleaned`)}}n(),ur();var dr={},fr={};function pr(e,t){return dr[e]=dr[e]||[],dr[e].push(t),()=>{let n=dr[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function mr(e,t){if(!fr[e]){fr[e]=!0;try{t()}catch(t){b&&s.error(`Error while instrumenting ${e}`,t)}}}function hr(e,t){let n=e&&dr[e];if(n)for(let r of n)try{r(t)}catch(t){b&&s.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${m(r)}\nError:`,t)}}var gr=null;function _r(e){let t=`error`;pr(t,e),mr(t,vr)}function vr(){gr=g.onerror,g.onerror=function(e,t,n,r,i){return hr(`error`,{column:r,error:i,line:n,msg:e,url:t}),gr?gr.apply(this,arguments):!1},g.onerror.__SENTRY_INSTRUMENTED__=!0}var yr=null;function br(e){let t=`unhandledrejection`;pr(t,e),mr(t,xr)}function xr(){yr=g.onunhandledrejection,g.onunhandledrejection=function(e){return hr(`unhandledrejection`,e),yr?yr.apply(this,arguments):!0},g.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Sr(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Cr(e,t=!0){if(e.startsWith(`data:`)){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:`text/plain`,i=e.includes(`;base64,`),a=e.indexOf(`,`),o=``;if(t&&a!==-1){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?`,base64`:``}${o?`,${o}`:``}`}return e}function wr(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}var Tr=[];function Er(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function Dr(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return Er(r)}function Or(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&Ar(e,t,n)}),n}function kr(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function Ar(e,t,n){if(n[t.name]){b&&s.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!Tr.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),Tr.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}[`processSpan`,`processSegmentSpan`].forEach(n=>{let r=t[n];typeof r==`function`&&e.on(n,n=>r.call(t,n,e))}),b&&s.log(`Integration installed: ${t.name}`)}function k(e){return e}function jr(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function Mr(){return`npm`}function Nr(){return!jr()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function Pr(){return typeof window<`u`&&(!Nr()||Fr())}function Fr(){return g.process?.type===`renderer`}function Ir(e,t){let n=t?`auto`:`never`;return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{version:2,...Pr()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Lr(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=ce(r)),ot(a,[Ir(e,i)])}function Rr(e,t){let n=t??zr(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Lr(n,r._metadata,r.tunnel,e.getDsn(),r.sendDefaultPii);Br().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function zr(e){return Br().get(e)}function Br(){return re(`clientToLogBufferMap`,()=>new WeakMap)}function Vr(e,t){let n=t?`auto`:`never`;return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{version:2,...Pr()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Hr(e,t,n,r,i){let a={};return t?.sdk&&(a.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(a.dsn=ce(r)),ot(a,[Vr(e,i)])}function Ur(e,t){let n=t??Wr(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Hr(n,r._metadata,r.tunnel,e.getDsn(),r.sendDefaultPii);Gr().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function Wr(e){return Gr().get(e)}function Gr(){return re(`clientToMetricBufferMap`,()=>new WeakMap)}function Kr(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}var qr=Symbol.for(`SentryBufferFullError`);function Jr(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return De(qr);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return We(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>Kr(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var Yr=60*1e3;function Xr(e,t=He()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?Yr:r-t}function Zr(e,t){return e[t]||e.all||0}function Qr(e,t,n=He()){return Zr(e,t)>n}function $r(e,{statusCode:t,headers:n},r=He()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+Xr(o,r):t===429&&(i.all=r+60*1e3);return i}function ei(e,t,n=Jr(e.bufferSize||64)){let r={},i=e=>n.drain(e);function a(i){let a=[];if(C(i,(t,n)=>{let i=it(n);Qr(r,i)?e.recordDroppedEvent(`ratelimit_backoff`,i):a.push(t)}),a.length===0)return Promise.resolve({});let o=ot(i[0],a),c=t=>{if(Se(o,[`client_report`])){b&&s.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}C(o,(n,r)=>{e.recordDroppedEvent(t,it(r))})};return n.add(()=>t({body:l(o)}).then(e=>e.statusCode===413?(b&&s.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),c(`send_error`),e):(b&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&s.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=$r(r,e),e),e=>{throw c(`network_error`),b&&s.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>{if(e===qr)return b&&s.error(`Skipped sending event because buffer is full.`),c(`queue_overflow`),Promise.resolve({});throw e})}return{send:a,flush:i}}function ti(e,t,n){let r=[{type:`client_report`},{timestamp:n||Ke(),discarded_events:e}];return ot(t?{dsn:t}:{},[r])}function ni(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function ri(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[S],exclusive_time:o?.[te],measurements:e.measurements,is_segment:!0}}function ii(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}var ai=`Not capturing exception because it's already been captured.`,oi=`Discarded session because of missing or non-string release`,si=Symbol.for(`SentryInternalError`),ci=Symbol.for(`SentryDoNotSendEventError`),li=5e3;function ui(e){return{message:e,[si]:!0}}function di(e){return{message:e,[ci]:!0}}function fi(e){return!!e&&typeof e==`object`&&si in e}function pi(e){return!!e&&typeof e==`object`&&ci in e}function mi(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{a+=r(t),a>=8e5?i(e):s||(s=!0,o=Kr(setTimeout(()=>{i(e)},li)))}),e.on(`flush`,()=>{i(e)})}var hi=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Jr(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=h(e.dsn):b&&s.warn(`No DSN provided, client will not send events.`),this._dsn){let t=dt(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&mi(this,`afterCaptureLog`,`flushLogs`,Si,Rr),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&mi(this,`afterCaptureMetric`,`flushMetrics`,xi,Ur)}captureException(e,t,n){let r=a();if(_e(e))return b&&s.log(ai),r;let i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(e=>this._captureEvent(e,i,n)).then(e=>e),`error`),i.event_id}captureMessage(e,t,n,r){let i={event_id:a(),...n},o=tt(e)?e:String(e),s=Ce(e),c=s?this.eventFromMessage(o,t,i):this.eventFromException(e,i);return this._process(()=>c.then(e=>this._captureEvent(e,i,r)),s?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let r=a();if(t?.originalException&&_e(t.originalException))return b&&s.log(ai),r;let i={event_id:r,...t},o=e.sdkProcessingMetadata||{},c=o.capturedSpanScope,l=o.capturedSpanIsolationScope,u=gi(e.type);return this._process(()=>this._captureEvent(e,i,c||n,l),u),i.event_id}captureSession(e){this.sendSession(e),ee(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(this.emit(`flush`),!t)return!0;let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){Rr(this);let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),Ar(this,e,this._integrations),t||kr(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=je(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=ve(n,et(e));this.sendEnvelope(n).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=oe}=this._options;if(`aggregates`in e){let r=e.attrs||{};if(!r.release&&!t){b&&s.warn(oi);return}r.release=r.release||t,r.environment=r.environment||n,e.attrs=r}else{if(!e.release&&!t){b&&s.warn(oi);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let r=ke(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let r=`${e}:${t}`;b&&s.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:``}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return b&&s.error(`Error while sending envelope:`,e),{}}return b&&s.error(`Transport disabled`),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=Or(this,e),kr(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(ee(e,{...n&&{status:`crashed`},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a?.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),we(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...me(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:d(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=c(),r=v()){return b&&yi(e)&&s.log(`Captured error event \`${ni(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,r).then(e=>e.event_id,e=>{b&&(pi(e)?s.log(e.message):fi(e)?s.warn(e.message):s.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=bi(e),s=yi(e),c=`before send for type \`${e.type||`error`}\``,l=a===void 0?void 0:ie(a);if(s&&typeof l==`number`&&qe()>l)return this.recordDroppedEvent(`sample_rate`,`error`),De(di(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let u=gi(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,u),di("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:_i(vi(this,i,e,t),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(`before_send`,u),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw di(`${c} returned \`null\`, will not send event.`)}let a=n.getSession()||r.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let l=i.transaction_info;return o&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw pi(e)||fi(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),ui(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===qr&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){b&&s.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){b&&s.log(`No outcomes to send`);return}if(!this._dsn){b&&s.log(`No dsn provided, will not send outcomes`);return}b&&s.log(`Sending outcomes:`,e);let t=ti(e,this._options.tunnel&&ce(this._dsn));this.sendEnvelope(t)}};function gi(e){return e===`replay_event`?`replay`:e||`error`}function _i(e,t){let n=`${t} must return \`null\` or a valid event.`;if(u(e))return e.then(e=>{if(!st(e)&&e!==null)throw ui(n);return e},e=>{throw ui(`${t} rejected with ${e}`)});if(!st(e)&&e!==null)throw ui(n);return e}function vi(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,ignoreSpans:s}=t,c=!p(t.beforeSendSpan)&&t.beforeSendSpan,l=n;if(yi(l)&&i)return i(l,r);if(bi(l)){if(c||s){let t=ri(l);if(s?.length&&o({description:t.description,op:t.op,attributes:t.data},s))return null;if(c){let e=c(t);e?l=_(n,ii(e)):Fe()}if(l.spans){let t=[],n=l.spans;for(let e of n){if(s?.length&&o({description:e.description,op:e.op,attributes:e.data},s)){Le(n,e);continue}if(c){let n=c(e);n?t.push(n):(Fe(),t.push(e))}else t.push(e)}let r=l.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),l.spans=t}}if(a){if(l.spans){let e=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(l,r)}}return l}function yi(e){return e.type===void 0}function bi(e){return e.type===`transaction`}function xi(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+Ci(e.attributes)}function Si(e){let t=0;return e.message&&(t+=e.message.length*2),t+Ci(e.attributes)}function Ci(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*wi(e[0]):Ce(e)?t+=wi(e):t+=100}),t}function wi(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function Ti(e,t){return e(t.stack||``,1)}function Ei(e){return Ve(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function Di(e){return Ei(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function Oi(e,t){let n={type:t.name||t.constructor.name,value:Di(t)},r=Ti(e,t);return r.length&&(n.stacktrace={frames:r}),n}function ki(e,t){t.debug===!0&&(b?s.enable():Re(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),c().update(t.initialScope);let n=new e(t);return Ai(n),n.init(),n}function Ai(e){c().setClient(e)}function ji(e){`aggregates`in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:`{{auto}}`}):e.ipAddress===void 0&&(e.ipAddress=`{{auto}}`)}function Mi(e,t,n=[t],r=`npm`){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:le})),i.version=le)}var Ni,Pi=`FunctionToString`,Fi=new WeakMap,Ii=k((()=>({name:Pi,setupOnce(){Ni=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Ye(this),n=Fi.has(ct())&&t!==void 0?t:this;return Ni.apply(n,e)}}catch{}},setup(e){Fi.set(e,!0)}}))),Li=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],Ri=`EventFilters`,zi=k((e={})=>{let t;return{name:Ri,setup(n){t=Vi(e,n.getOptions())},processEvent(n,r,i){return t||=Vi(e,i.getOptions()),A(n,t)?null:n}}}),Bi=k(((e={})=>({...zi(e),name:`InboundFilters`})));function Vi(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Li],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function A(e,t){if(!e.type){if(j(e,t.ignoreErrors))return b&&s.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${ue(e)}`),!0;if(qi(e))return b&&s.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${ue(e)}`),!0;if(Ui(e,t.denyUrls))return b&&s.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${ue(e)}.\nUrl: ${Ki(e)}`),!0;if(!Wi(e,t.allowUrls))return b&&s.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${ue(e)}.\nUrl: ${Ki(e)}`),!0}else if(e.type===`transaction`&&Hi(e,t.ignoreTransactions))return b&&s.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${ue(e)}`),!0;return!1}function j(e,t){return t?.length?ni(e).some(e=>Ze(e,t)):!1}function Hi(e,t){if(!t?.length)return!1;let n=e.transaction;return n?Ze(n,t):!1}function Ui(e,t){if(!t?.length)return!1;let n=Ki(e);return n?Ze(n,t):!1}function Wi(e,t){if(!t?.length)return!0;let n=Ki(e);return n?Ze(n,t):!0}function Gi(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function Ki(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?Gi(t):null}catch{return b&&s.error(`Cannot extract url for event ${ue(e)}`),null}}function qi(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function Ji(e,t,n,r,i,a){if(!i.exception?.values||!a||!ye(a.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=Yi(e,t,r,a.originalException,n,i.exception.values,o,0))}function Yi(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(ye(r[i],Error)){Zi(o,s,r);let a=e(t,r[i]),l=c.length;Qi(a,i,l,s),c=Yi(e,t,n,r[i],i,[a,...c],a,l)}return Xi(r)&&r.errors.forEach((a,l)=>{if(ye(a,Error)){Zi(o,s,r);let u=e(t,a),d=c.length;Qi(u,`errors[${l}]`,d,s),c=Yi(e,t,n,a,i,[u,...c],u,d)}}),c}function Xi(e){return Array.isArray(e.errors)}function Zi(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...Xi(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function Qi(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}var $i=`cause`,ea=5,ta=`LinkedErrors`,na=k(((e={})=>{let t=e.limit||ea,n=e.key||$i;return{name:ta,preprocessEvent(e,r,i){Ji(Oi,i.getOptions().stackParser,n,t,e,r)}}}));function ra(e){let t=`console`,n=pr(t,e);return mr(t,ia),n}function ia(){`console`in g&&se.forEach(function(e){e in g.console&&Ue(g.console,e,function(t){return Ie[e]=t,function(...t){hr(`console`,{args:t,level:e}),Ie[e]?.apply(g.console,t)}})})}function aa(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var oa=`Dedupe`,sa=k((()=>{let e;return{name:oa,processEvent(t){if(t.type)return t;try{if(ca(t,e))return b&&s.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function ca(e,t){return t?!!(la(e,t)||ua(e,t)):!1}function la(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!fa(e,t)||!da(e,t))}function ua(e,t){let n=pa(t),r=pa(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!fa(e,t)||!da(e,t))}function da(e,t){let n=pe(e),r=pe(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function fa(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join(``)===r.join(``)}catch{return!1}}function pa(e){return e.exception?.values?.[0]}function M(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];r===`.`?e.splice(t,1):r===`..`?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;)e.unshift(`..`);return e}var ma=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function ha(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=ma.exec(t);return n?n.slice(1):[]}function ga(...e){let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:`/`;i&&(t=`${i}/${t}`,n=i.charAt(0)===`/`)}return t=M(t.split(`/`).filter(e=>!!e),!n).join(`/`),(n?`/`:``)+t||`.`}function _a(e){let t=0;for(;t<e.length&&e[t]===``;t++);let n=e.length-1;for(;n>=0&&e[n]===``;n--);return t>n?[]:e.slice(t,n-t+1)}function va(e,t){e=ga(e).slice(1),t=ga(t).slice(1);let n=_a(e.split(`/`)),r=_a(t.split(`/`)),i=Math.min(n.length,r.length),a=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){a=e;break}let o=[];for(let e=a;e<n.length;e++)o.push(`..`);return o=o.concat(r.slice(a)),o.join(`/`)}function ya(e,t){let n=ha(e)[2]||``;return t&&n.slice(t.length*-1)===t&&(n=n.slice(0,n.length-t.length)),n}var ba=`RewriteFrames`,xa=k((e={})=>{let t=e.root,n=e.prefix||`app:///`,r=`window`in g&&!!g.window,i=e.iteratee||Sa({isBrowser:r,root:t,prefix:n});function a(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>({...e,...e.stacktrace&&{stacktrace:o(e.stacktrace)}}))}}}catch{return e}}function o(e){return{...e,frames:e?.frames?.map(e=>i(e))}}return{name:ba,processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=a(t)),t}}});function Sa({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes(`\\`)&&!r.filename.includes(`/`),a=/^\//.test(r.filename);if(e){if(t){let e=r.filename;e.indexOf(t)===0&&(r.filename=e.replace(t,n))}}else if(i||a){let e=i?r.filename.replace(/^[a-zA-Z]:/,``).replace(/\\/g,`/`):r.filename;r.filename=`${n}${t?va(t,e):ya(e)}`}return r}}var Ca=`ConversationId`,wa=k((()=>({name:Ca,setup(e){e.on(`spanStart`,e=>{let t=c().getScopeData(),n=v().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=ne(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(y,r)}})}})));function Ta(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var Ea=g;function Da(){return`history`in Ea&&!!Ea.history}function Oa(){if(!(`fetch`in Ea))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function ka(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Aa(){if(typeof EdgeRuntime==`string`)return!0;if(!Oa())return!1;if(ka(Ea.fetch))return!0;let e=!1,t=Ea.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=ka(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){b&&s.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function ja(e,t){let n=`fetch`,r=pr(n,e);return mr(n,()=>Ma(void 0,t)),r}function Ma(e,t=!1){t&&!Aa()||Ue(g,`fetch`,function(t){return function(...n){let r=Error(),{method:i,url:a}=Fa(n),o={args:n,fetchData:{method:i,url:a},startTimestamp:x()*1e3,virtualError:r,headers:Ia(n)};return e||hr(`fetch`,{...o}),t.apply(g,n).then(async t=>(e?e(t):hr(`fetch`,{...o,endTimestamp:x()*1e3,response:t}),t),e=>{hr(`fetch`,{...o,endTimestamp:x()*1e3,error:e}),Ve(e)&&e.stack===void 0&&(e.stack=r.stack,Pe(e,`framesToPop`,1));let t=ct()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&e instanceof TypeError&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(o.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:Pe(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})}function Na(e,t){return!!e&&typeof e==`object`&&!!e[t]}function Pa(e){return typeof e==`string`?e:e?Na(e,`url`)?e.url:e.toString?e.toString():``:``}function Fa(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:Pa(t),method:Na(n,`method`)?String(n.method).toUpperCase():at(t)&&Na(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:Pa(t),method:Na(t,`method`)?String(t.method).toUpperCase():`GET`}}function Ia(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(at(t))return new Headers(t.headers)}catch{}}function La(e,t){let n=Ba(e,t),r={type:Ga(t),value:Ka(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function Ra(e,t,n,r){let i=ct()?.getOptions().normalizeDepth,a=$a(t),o={__serialized__:fe(t,i)};if(a)return{exception:{values:[La(e,a)]},extra:o};let s={exception:{values:[{type:Ae(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:Za(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=Ba(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function za(e,t){return{exception:{values:[La(e,t)]}}}function Ba(e,t){let n=t.stacktrace||t.stack||``,r=Ha(t),i=Ua(t);try{return e(n,r,i)}catch{}return[]}var Va=/Minified React error #\d+;/i;function Ha(e){return e&&Va.test(e.message)?1:0}function Ua(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function Wa(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0?e instanceof WebAssembly.Exception:!1}function Ga(e){let t=e?.name;return!t&&Wa(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function Ka(e){let t=e?.message;return Wa(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?Di(t.error):Di(e):`No error message`}function qa(e,t,n,r){let i=Ya(e,t,n?.syntheticException||void 0,r);return ge(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),We(i)}function Ja(e,t,n=`info`,r,i){let a=Xa(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),We(a)}function Ya(e,t,n,r,i){let a;if(Me(t)&&t.error)return za(e,t.error);if(Oe(t)||Ge(t)){let i=t;if(`stack`in t)a=za(e,t);else{let t=i.name||(Oe(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=Xa(e,o,n,r),w(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return Ve(t)?za(e,t):st(t)||Ae(t)?(a=Ra(e,t,n,i),ge(a,{synthetic:!0}),a):(a=Xa(e,t,n,r),w(a,`${t}`,void 0),ge(a,{synthetic:!0}),a)}function Xa(e,t,n,r){let i={};if(r&&n){let r=Ba(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),ge(i,{synthetic:!0})}if(tt(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function Za(e,{isUnhandledRejection:t}){let n=xe(e),r=t?`promise rejection`:`exception`;return Me(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Ae(e)?`Event \`${Qa(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Qa(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function $a(e){return Object.values(e).find(e=>e instanceof Error)}var eo=class extends hi{constructor(e){let t=to(e);Mi(t,`browser`,[`browser`],T.SENTRY_SDK_SOURCE||Mr()),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?`auto`:`never`,...t._metadata.sdk.settings}),super(t);let{sendDefaultPii:n,sendClientReports:r,enableLogs:i,_experiments:a,enableMetrics:o}=this._options,s=o??a?.enableMetrics??!0;T.document&&(r||i||s)&&T.document.addEventListener(`visibilitychange`,()=>{T.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),i&&Rr(this),s&&Ur(this))}),n&&this.on(`beforeSendSession`,ji)}eventFromException(e,t){return qa(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return Ja(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function to(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:T.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var no=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,ro=g,io=1e3,ao,oo,so;function co(e){pr(`dom`,e),mr(`dom`,lo)}function lo(){if(!ro.document)return;let e=hr.bind(null,`dom`),t=po(e,!0);ro.document.addEventListener(`click`,t,!1),ro.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=ro[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(Ue(n,`addEventListener`,function(t){return function(n,r,i){if(n===`click`||n==`keypress`)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=po(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),Ue(n,`removeEventListener`,function(e){return function(t,n,r){if(t===`click`||t==`keypress`)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),Object.keys(n).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function uo(e){if(e.type!==oo)return!1;try{if(!e.target||e.target._sentryId!==so)return!1}catch{}return!0}function fo(e,t){return e===`keypress`?t?.tagName?!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!0:!1}function po(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=mo(n);if(fo(n.type,r))return;Pe(n,`_sentryCaptured`,!0),r&&!r._sentryId&&Pe(r,`_sentryId`,a());let i=n.type===`keypress`?`input`:n.type;uo(n)||(e({event:n,name:i,global:t}),oo=n.type,so=r?r._sentryId:void 0),clearTimeout(ao),ao=ro.setTimeout(()=>{so=void 0,oo=void 0},io)}}function mo(e){try{return e.target}catch{return null}}var ho;function go(e){let t=`history`;pr(t,e),mr(t,N)}function N(){if(ro.addEventListener(`popstate`,()=>{let e=ro.location.href,t=ho;ho=e,t!==e&&hr(`history`,{from:t,to:e})}),!Da())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=ho,i=_o(String(n));if(ho=i,r===i)return e.apply(this,t);hr(`history`,{from:r,to:i})}return e.apply(this,t)}}Ue(ro.history,`pushState`,e),Ue(ro.history,`replaceState`,e)}function _o(e){try{return new URL(e,ro.location.origin).toString()}catch{return e}}var vo={};function P(e){let t=vo[e];if(t)return t;let n=ro[e];if(ka(n))return vo[e]=n.bind(ro);let r=ro.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){no&&s.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(vo[e]=n.bind(ro))}function F(e){vo[e]=void 0}var I=`__sentry_xhr_v3__`;function yo(e){pr(`xhr`,e),mr(`xhr`,bo)}function bo(){if(!ro.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=x()*1e3,a=de(n[0])?n[0].toUpperCase():void 0,o=xo(n[1]);if(!a||!o)return e.apply(t,n);t[I]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[I];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}hr(`xhr`,{endTimestamp:x()*1e3,startTimestamp:i,xhr:t,virtualError:r})}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[I];return a&&de(r)&&de(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[I];return r?(n[0]!==void 0&&(r.body=n[0]),hr(`xhr`,{startTimestamp:x()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function xo(e){if(de(e))return e;try{return e.toString()}catch{}}var So=40;function Co(e,t=P(`fetch`)){let n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`X-Sentry-Rate-Limits`),"retry-after":n.headers.get(`Retry-After`)}}}catch(e){throw F(`fetch`),e}finally{n-=a,r--}}return ei(e,i,Jr(e.bufferSize||So))}var wo=30,To=50;function L(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var Eo=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Do=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Oo=/\((\S*)(?::(\d+))(?::(\d+))\)/,ko=/at (.+?) ?\(data:(.+?),/,Ao=[wo,e=>{let t=e.match(ko);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=Eo.exec(e);if(n){let[,e,t,r]=n;return L(e,`?`,+t,+r)}let r=Do.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=Oo.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=Po(r[1]||`?`,r[2]);return L(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],jo=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Mo=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,No=rt(Ao,[To,e=>{let t=jo.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=Mo.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=Po(n,e),L(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]),Po=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},R=1024,Fo=`Breadcrumbs`,Io=k(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Fo,setup(e){t.console&&ra(zo(e)),t.dom&&co(Ro(e,t.dom)),t.xhr&&yo(Bo(e)),t.fetch&&ja(Vo(e)),t.history&&go(Ho(e)),t.sentry&&e.on(`beforeSendEvent`,Lo(e))}}}));function Lo(e){return function(t){ct()===e&&E({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:ue(t)},{event:t})}}function Ro(e,t){return function(n){if(ct()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>R&&(pt&&s.warn(`\`dom.maxStringLength\` cannot exceed ${R}, but a value of ${o} was configured. Sentry will use ${R} instead.`),o=R),typeof a==`string`&&(a=[a]);try{let e=n.event,t=Uo(e)?e.target:e;r=Te(t,{keyAttrs:a,maxStringLength:o}),i=Be(t)}catch{r=`<unknown>`}if(r.length===0)return;let c={category:`ui.${n.name}`,message:r};i&&(c.data={"ui.component_name":i}),E(c,{event:n.event,name:n.name,global:n.global})}}function zo(e){return function(t){if(ct()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:aa(t.level),message:Ee(t.args,` `)};if(t.level===`assert`)if(t.args[0]===!1)n.message=`Assertion failed: ${Ee(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return;E(n,{input:t.args,level:t.level})}}function Bo(e){return function(t){if(ct()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[I];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:`xhr`,data:l,type:`http`,level:Ta(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),E(d,u)}}function Vo(e){return function(t){if(ct()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`))if(t.error){let i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:`fetch`,data:t.fetchData,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,a,i),E(a,i)}else{let i=t.response,a={...t.fetchData,status_code:i?.status},o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:Ta(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),E(s,o)}}}function Ho(e){return function(t){if(ct()!==e)return;let n=t.from,r=t.to,i=Sr(T.location.href),a=n?Sr(n):void 0,o=Sr(r);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),E({category:`navigation`,data:{from:n,to:r}})}}function Uo(e){return!!e&&!!e.target}var Wo=`EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload`.split(`,`),Go=`BrowserApiErrors`,Ko=k(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:Go,setupOnce(){t.setTimeout&&Ue(T,`setTimeout`,qo),t.setInterval&&Ue(T,`setInterval`,qo),t.requestAnimationFrame&&Ue(T,`requestAnimationFrame`,Jo),t.XMLHttpRequest&&`XMLHttpRequest`in T&&Ue(XMLHttpRequest.prototype,`send`,Yo);let e=t.eventTarget;e&&(Array.isArray(e)?e:Wo).forEach(e=>Xo(e,t))}}}));function qo(e){return function(...t){let n=t[0];return t[0]=ht(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${m(e)}`}}),e.apply(this,t)}}function Jo(e){return function(t){return e.apply(this,[ht(t,{mechanism:{data:{handler:m(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function Yo(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&Ue(n,e,function(t){let n={mechanism:{data:{handler:m(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=Ye(t);return r&&(n.mechanism.data.handler=m(r)),ht(t,n)})}),e.apply(this,t)}}function Xo(e,t){let n=T[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(Ue(n,`addEventListener`,function(n){return function(r,i,a){try{Zo(i)&&(i.handleEvent=ht(i.handleEvent,{mechanism:{data:{handler:m(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&Qo(this,r,i),n.apply(this,[r,ht(i,{mechanism:{data:{handler:m(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),Ue(n,`removeEventListener`,function(e){return function(t,n,r){try{let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch{}return e.call(this,t,n,r)}}))}function Zo(e){return typeof e.handleEvent==`function`}function Qo(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var $o=k((e={})=>{let t=e.lifecycle??`route`;return{name:`BrowserSession`,setupOnce(){if(T.document===void 0){pt&&s.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Qe({ignoreDuration:!0}),Je();let e=v(),n=e.getUser();e.addScopeListener(e=>{let t=e.getUser();(n?.id!==t?.id||n?.ip_address!==t?.ip_address)&&(Je(),n=t)}),t===`route`&&go(({from:e,to:t})=>{e!==t&&(Qe({ignoreDuration:!0}),Je())})}}}),es=`CultureContext`,ts=k((()=>({name:es,preprocessEvent(e){let t=ns();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=ns();t&&wr(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}})));function ns(){try{let e=T.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var rs=`GlobalHandlers`,is=k(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:rs,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(as(e),us(`onerror`)),t.onunhandledrejection&&(os(e),us(`onunhandledrejection`))}}}));function as(e){_r(t=>{let{stackParser:n,attachStacktrace:r}=ds();if(ct()!==e||ft())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=ls(Ya(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,Ne(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function os(e){br(t=>{let{stackParser:n,attachStacktrace:r}=ds();if(ct()!==e||ft())return;let i=ss(t),a=Ce(i)?cs(i):Ya(n,i,void 0,r,!0);a.level=`error`,Ne(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function ss(e){if(Ce(e))return e;try{if(`reason`in e)return e.reason;if(`detail`in e&&`reason`in e.detail)return e.detail.reason}catch{}return e}function cs(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function ls(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:fs(t)??$e(),function:`?`,in_app:!0}),e}function us(e){pt&&s.log(`Global Handler attached: ${e}`)}function ds(){return ct()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function fs(e){if(!(!de(e)||e.length===0))return e.startsWith(`data:`)?`<${Cr(e,!1)}>`:e}var ps=k(()=>({name:`HttpContext`,preprocessEvent(e){if(!T.navigator&&!T.location&&!T.document)return;let t=ut(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){if(!T.navigator&&!T.location&&!T.document)return;let t=ut();wr(e,{"url.full":t.url||void 0,"http.request.header.user_agent":t.headers[`User-Agent`],"http.request.header.referer":t.headers.Referer})}})),ms=`cause`,hs=5,gs=`LinkedErrors`,_s=k(((e={})=>{let t=e.limit||hs,n=e.key||ms;return{name:gs,preprocessEvent(e,r,i){Ji(La,i.getOptions().stackParser,n,t,e,r)}}}));function vs(){return ys()?(pt&&Re(()=>{console.error(`[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/`)}),!0):!1}function ys(){if(T.window===void 0)return!1;let e=T;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=$e();return!(T===T.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function bs(e){return[Bi(),Ii(),wa(),Ko(),Io(),is(),_s(),sa(),ps(),ts(),$o()]}function xs(e={}){let t=!e.skipBrowserExtensionCheck&&vs(),n=e.defaultIntegrations==null?bs():e.defaultIntegrations;return ki(eo,{...e,enabled:t?!1:e.enabled,stackParser:f(e.stackParser||No),integrations:Dr({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||Co})}var Ss=e(gt());function Cs(e){let t={...e};return Mi(t,`react`),ze(`react`,{version:Ss.version}),xs(t)}var ws=t((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,ee||(ee=!0,oe());else{var t=n(l);t!==null&&le(x,t.startTime-e)}}var ee=!1,te=-1,ne=5,re=-1;function ie(){return g?!0:!(e.unstable_now()-re<ne)}function ae(){if(g=!1,ee){var t=e.unstable_now();re=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(te),te=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ie());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&le(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?oe():ee=!1}}}var oe;if(typeof y==`function`)oe=function(){y(ae)};else if(typeof MessageChannel<`u`){var se=new MessageChannel,ce=se.port2;se.port1.onmessage=ae,oe=function(){ce.postMessage(null)}}else oe=function(){_(ae,0)};function le(t,n){te=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):ne=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(te),te=-1):h=!0,le(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ee||(ee=!0,oe()))),r},e.unstable_shouldYield=ie,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Ts=t(((e,t)=>{t.exports=ws()})),Es=t((e=>{var t=Ts(),n=gt(),r=_t();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),v=Symbol.for(`react.profiler`),y=Symbol.for(`react.consumer`),b=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),ee=Symbol.for(`react.suspense`),te=Symbol.for(`react.suspense_list`),ne=Symbol.for(`react.memo`),re=Symbol.for(`react.lazy`),ie=Symbol.for(`react.activity`),ae=Symbol.for(`react.memo_cache_sentinel`),oe=Symbol.iterator;function se(e){return typeof e!=`object`||!e?null:(e=oe&&e[oe]||e[`@@iterator`],typeof e==`function`?e:null)}var ce=Symbol.for(`react.client.reference`);function le(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case v:return`Profiler`;case _:return`StrictMode`;case ee:return`Suspense`;case te:return`SuspenseList`;case ie:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case b:return e.displayName||`Context`;case y:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ne:return t=e.displayName||null,t===null?le(e.type)||`Memo`:t;case re:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}var ue=Array.isArray,S=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,C=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de={pending:!1,data:null,method:null,action:null},fe=[],pe=-1;function me(e){return{current:e}}function he(e){0>pe||(e.current=fe[pe],fe[pe]=null,pe--)}function w(e,t){pe++,fe[pe]=e.current,e.current=t}var ge=me(null),_e=me(null),ve=me(null),ye=me(null);function be(e,t){switch(w(ve,t),w(_e,e),w(ge,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}he(ge),w(ge,e)}function xe(){he(ge),he(_e),he(ve)}function Se(e){e.memoizedState!==null&&w(ye,e);var t=ge.current,n=Hd(t,e.type);t!==n&&(w(_e,e),w(ge,n))}function Ce(e){_e.current===e&&(he(ge),he(_e)),ye.current===e&&(he(ye),Qf._currentValue=de)}var we,Te;function Ee(e){if(we===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);we=t&&t[1]||``,Te=-1<e.stack.indexOf(`
3
3
  at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
4
  `+we+e+Te}var De=!1;function Oe(e,t){if(!e||De)return``;De=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
5
5
  `),l=s.split(`