@powerhousedao/connect 3.2.0-dev.1 → 3.2.0-dev.3

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 (104) hide show
  1. package/README.md +26 -6
  2. package/dist/assets/AddDriveModal.S5JSMmVF.js +2 -0
  3. package/dist/assets/{AddDriveModal.BLTmseCa.js.map → AddDriveModal.S5JSMmVF.js.map} +1 -1
  4. package/dist/assets/{AddLocalDriveModal.BmWt-zqx.js → AddLocalDriveModal.n1mqr4Ur.js} +2 -2
  5. package/dist/assets/{AddLocalDriveModal.BmWt-zqx.js.map → AddLocalDriveModal.n1mqr4Ur.js.map} +1 -1
  6. package/dist/assets/{AddRemoteDriveModal.B2dLszvc.js → AddRemoteDriveModal.wFq1V4ak.js} +2 -2
  7. package/dist/assets/{AddRemoteDriveModal.B2dLszvc.js.map → AddRemoteDriveModal.wFq1V4ak.js.map} +1 -1
  8. package/dist/assets/{ConfirmationModal.BeBmQkT4.js → ConfirmationModal.C8RDHYs4.js} +2 -2
  9. package/dist/assets/{ConfirmationModal.BeBmQkT4.js.map → ConfirmationModal.C8RDHYs4.js.map} +1 -1
  10. package/dist/assets/{CookiesPolicyModal.Da5Eremm.js → CookiesPolicyModal.A--L98Lz.js} +2 -2
  11. package/dist/assets/{CookiesPolicyModal.Da5Eremm.js.map → CookiesPolicyModal.A--L98Lz.js.map} +1 -1
  12. package/dist/assets/{CreateDocumentModal.CoVOMt_0.js → CreateDocumentModal.CnSb_jQl.js} +2 -2
  13. package/dist/assets/{CreateDocumentModal.CoVOMt_0.js.map → CreateDocumentModal.CnSb_jQl.js.map} +1 -1
  14. package/dist/assets/{DebugSettingsModal.BcDdYXbp.js → DebugSettingsModal.G7uoivFk.js} +2 -2
  15. package/dist/assets/{DebugSettingsModal.BcDdYXbp.js.map → DebugSettingsModal.G7uoivFk.js.map} +1 -1
  16. package/dist/assets/{DeleteDriveModal.CTBCQ3Gm.js → DeleteDriveModal.ChVVlip-.js} +2 -2
  17. package/dist/assets/{DeleteDriveModal.CTBCQ3Gm.js.map → DeleteDriveModal.ChVVlip-.js.map} +1 -1
  18. package/dist/assets/{DeleteItemModal.iAY-B9YV.js → DeleteItemModal.DITFrzCI.js} +2 -2
  19. package/dist/assets/{DeleteItemModal.iAY-B9YV.js.map → DeleteItemModal.DITFrzCI.js.map} +1 -1
  20. package/dist/assets/{DisclaimerModal.5nyrmZzU.js → DisclaimerModal.COSJ5Mb3.js} +2 -2
  21. package/dist/assets/{DisclaimerModal.5nyrmZzU.js.map → DisclaimerModal.COSJ5Mb3.js.map} +1 -1
  22. package/dist/assets/{DriveSettingsModal.BswCtDqR.js → DriveSettingsModal._ieV-khA.js} +2 -2
  23. package/dist/assets/{DriveSettingsModal.BswCtDqR.js.map → DriveSettingsModal._ieV-khA.js.map} +1 -1
  24. package/dist/assets/{SettingsModal.HlCE_fW4.js → SettingsModal.CLz_Pwjg.js} +2 -2
  25. package/dist/assets/{SettingsModal.HlCE_fW4.js.map → SettingsModal.CLz_Pwjg.js.map} +1 -1
  26. package/dist/assets/{Trans.kFe2S0Wk.js → Trans.DPLArfzj.js} +2 -2
  27. package/dist/assets/{Trans.kFe2S0Wk.js.map → Trans.DPLArfzj.js.map} +1 -1
  28. package/dist/assets/{UpgradeDriveModal.B7mUnNcD.js → UpgradeDriveModal.BQJxekDN.js} +2 -2
  29. package/dist/assets/{UpgradeDriveModal.B7mUnNcD.js.map → UpgradeDriveModal.BQJxekDN.js.map} +1 -1
  30. package/dist/assets/app-skeleton.js +1 -1
  31. package/dist/assets/{app.DDM1o5sK.js → app.qUOoOKql.js} +6 -6
  32. package/dist/assets/{app.DDM1o5sK.js.map → app.qUOoOKql.js.map} +1 -1
  33. package/dist/assets/{atlas-import.CM7YAl-a.js → atlas-import.DFyx2ULx.js} +2 -2
  34. package/dist/assets/{atlas-import.CM7YAl-a.js.map → atlas-import.DFyx2ULx.js.map} +1 -1
  35. package/dist/assets/connect.config.BIAWWw4c.js +2 -0
  36. package/dist/assets/{connect.config.BX_VBjjD.js.map → connect.config.BIAWWw4c.js.map} +1 -1
  37. package/dist/assets/{content.DO7Rb1MC.js → content.D5x8bb-b.js} +3 -3
  38. package/dist/assets/{content.DO7Rb1MC.js.map → content.D5x8bb-b.js.map} +1 -1
  39. package/dist/assets/{cookie-banner.CjS0sCnO.js → cookie-banner.DY7qoG0W.js} +2 -2
  40. package/dist/assets/{cookie-banner.CjS0sCnO.js.map → cookie-banner.DY7qoG0W.js.map} +1 -1
  41. package/dist/assets/{home.DAJGzOQI.js → home.10bnjd9x.js} +2 -2
  42. package/dist/assets/{home.DAJGzOQI.js.map → home.10bnjd9x.js.map} +1 -1
  43. package/dist/assets/{index.CrEQYIWo.js → index.B1X7VkO2.js} +2 -2
  44. package/dist/assets/{index.CrEQYIWo.js.map → index.B1X7VkO2.js.map} +1 -1
  45. package/dist/assets/index.BpiSpZ8T.js +3 -0
  46. package/dist/assets/{index.CMuj8VGl.js.map → index.BpiSpZ8T.js.map} +1 -1
  47. package/dist/assets/{index.dUn3hcfa.js → index.BrOLYS47.js} +3 -3
  48. package/dist/assets/{index.dUn3hcfa.js.map → index.BrOLYS47.js.map} +1 -1
  49. package/dist/assets/{index.DlyZ17HN.js → index.CEQRMIAY.js} +2 -2
  50. package/dist/assets/{index.DlyZ17HN.js.map → index.CEQRMIAY.js.map} +1 -1
  51. package/dist/assets/{index.BjA7Jq2g.js → index.DK_8MvB2.js} +13 -13
  52. package/dist/assets/{index.BjA7Jq2g.js.map → index.DK_8MvB2.js.map} +1 -1
  53. package/dist/assets/{index.DxrAJM8l.js → index.Dc5HlSvp.js} +2 -2
  54. package/dist/assets/{index.DxrAJM8l.js.map → index.Dc5HlSvp.js.map} +1 -1
  55. package/dist/assets/{index.Dt5syCVo.js → index.Do5xnOI9.js} +2 -2
  56. package/dist/assets/{index.Dt5syCVo.js.map → index.Do5xnOI9.js.map} +1 -1
  57. package/dist/assets/{index.D_JmCUwW.js → index.tFj_U6SH.js} +2 -2
  58. package/dist/assets/{index.D_JmCUwW.js.map → index.tFj_U6SH.js.map} +1 -1
  59. package/dist/assets/{main.xXrCT4AZ.js → main.BDioUTOa.js} +3 -3
  60. package/dist/assets/{main.xXrCT4AZ.js.map → main.BDioUTOa.js.map} +1 -1
  61. package/dist/assets/modal.DMmzVWT5.js +3 -0
  62. package/dist/assets/{modal.DMO71brU.js.map → modal.DMmzVWT5.js.map} +1 -1
  63. package/dist/assets/{modals.CwNNDSU0.js → modals.Bvtd5okT.js} +2 -2
  64. package/dist/assets/{modals.CwNNDSU0.js.map → modals.Bvtd5okT.js.map} +1 -1
  65. package/dist/assets/nodefs.BOz_9Cu2.js +2 -0
  66. package/dist/assets/{nodefs.7zM7E9uX.js.map → nodefs.BOz_9Cu2.js.map} +1 -1
  67. package/dist/assets/{opfs-ahp.CrrBaIH9.js → opfs-ahp.EyJwDrf5.js} +2 -2
  68. package/dist/assets/{opfs-ahp.CrrBaIH9.js.map → opfs-ahp.EyJwDrf5.js.map} +1 -1
  69. package/dist/assets/{react-error-boundary.esm.DcWSXRDX.js → react-error-boundary.esm.uEuLAO53.js} +2 -2
  70. package/dist/assets/{react-error-boundary.esm.DcWSXRDX.js.map → react-error-boundary.esm.uEuLAO53.js.map} +1 -1
  71. package/dist/assets/{registerServiceWorker.Dxs_6knN.js → registerServiceWorker.D0bvv5hZ.js} +2 -2
  72. package/dist/assets/{registerServiceWorker.Dxs_6knN.js.map → registerServiceWorker.D0bvv5hZ.js.map} +1 -1
  73. package/dist/assets/{root.DBI5tO_9.js → root.C3hMJJ71.js} +3 -3
  74. package/dist/assets/{root.DBI5tO_9.js.map → root.C3hMJJ71.js.map} +1 -1
  75. package/dist/assets/{toast.Dw86T5dF.js → toast.Dz6iiaGE.js} +2 -2
  76. package/dist/assets/{toast.Dw86T5dF.js.map → toast.Dz6iiaGE.js.map} +1 -1
  77. package/dist/assets/{useAcceptedCookies.DduZlbUw.js → useAcceptedCookies.DCKq2Qw9.js} +2 -2
  78. package/dist/assets/{useAcceptedCookies.DduZlbUw.js.map → useAcceptedCookies.DCKq2Qw9.js.map} +1 -1
  79. package/dist/assets/useConnectConfig.DnsUzXBZ.js +2 -0
  80. package/dist/assets/{useConnectConfig.BWdUwe5N.js.map → useConnectConfig.DnsUzXBZ.js.map} +1 -1
  81. package/dist/assets/useDefaultDocumentModelEditor.Cxs9BMEu.js +2 -0
  82. package/dist/assets/{useDefaultDocumentModelEditor.BOE2b52Y.js.map → useDefaultDocumentModelEditor.Cxs9BMEu.js.map} +1 -1
  83. package/dist/assets/useDocumentDriveServer.ByAzntgK.js +2 -0
  84. package/dist/assets/{useDocumentDriveServer.CEjU49s1.js.map → useDocumentDriveServer.ByAzntgK.js.map} +1 -1
  85. package/dist/assets/{useFeatureFlags.B3BoOzef.js → useFeatureFlags.HTSEqgkg.js} +2 -2
  86. package/dist/assets/useFeatureFlags.HTSEqgkg.js.map +1 -0
  87. package/dist/assets/{user.BoRGXkj9.js → user.YHDZ_9fW.js} +5 -5
  88. package/dist/assets/user.YHDZ_9fW.js.map +1 -0
  89. package/dist/external-packages.js +1 -2
  90. package/dist/index.html +1 -1
  91. package/dist/vite-envs.sh +1 -1
  92. package/nginx.conf +22 -1
  93. package/package.json +12 -10
  94. package/dist/assets/AddDriveModal.BLTmseCa.js +0 -2
  95. package/dist/assets/connect.config.BX_VBjjD.js +0 -2
  96. package/dist/assets/index.CMuj8VGl.js +0 -3
  97. package/dist/assets/modal.DMO71brU.js +0 -3
  98. package/dist/assets/nodefs.7zM7E9uX.js +0 -2
  99. package/dist/assets/useConnectConfig.BWdUwe5N.js +0 -2
  100. package/dist/assets/useDefaultDocumentModelEditor.BOE2b52Y.js +0 -2
  101. package/dist/assets/useDocumentDriveServer.CEjU49s1.js +0 -2
  102. package/dist/assets/useFeatureFlags.B3BoOzef.js.map +0 -1
  103. package/dist/assets/user.BoRGXkj9.js.map +0 -1
  104. package/dist/external-packages.js.map +0 -1
@@ -1,7 +1,7 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index.dUn3hcfa.js","./index.DxrAJM8l.js","./index.Dt5syCVo.js","./useFeatureFlags.B3BoOzef.js","./connect.config.BX_VBjjD.js","./browser.BkwNmV2Z.js"])))=>i.map(i=>d[i]);
2
- import{_ as I,h as nt,v as R,i as zt,t as U,l as Vt}from"./index.DxrAJM8l.js";import{useCallback as qt,useMemo as xt,useEffect as Q}from"react";async function H(){if(import.meta.hot)return import.meta.hot;try{return(await I(()=>import("../hmr.js"),[],import.meta.url)).hmr}catch{return}}async function bn(e){const t=await H();if(!t)throw new Error("HMR not available.");return new Promise(n=>{function r(s){e===s.name&&(n(),t==null||t.off("studio:external-package-added",r))}t.on("studio:external-package-added",r),t.send("studio:add-external-package",{name:e})})}async function xn(e){const t=await H();if(!t)throw new Error("HMR not available.");return new Promise(n=>{function r(s){e===s.name&&(n(),t==null||t.off("studio:external-package-removed",r))}t.on("studio:external-package-removed",r),t.send("studio:remove-external-package",{name:e})})}async function Jt(e){const t=await H(),n=r=>{const s=I(()=>import(`${r.url}?t=${r.timestamp}`),[],import.meta.url);e(s.then(i=>i.default))};return t==null||t.on("studio:external-packages-updated",n),()=>{t==null||t.off("studio:external-packages-updated",n)}}const Tt=Object.prototype.toString;function Kt(e){switch(Tt.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Y(e,Error)}}function k(e,t){return Tt.call(e)===`[object ${t}]`}function Tn(e){return k(e,"ErrorEvent")}function Cn(e){return k(e,"DOMError")}function wn(e){return k(e,"DOMException")}function B(e){return k(e,"String")}function Wt(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function On(e){return e===null||Wt(e)||typeof e!="object"&&typeof e!="function"}function rt(e){return k(e,"Object")}function Xt(e){return typeof Event<"u"&&Y(e,Event)}function Qt(e){return typeof Element<"u"&&Y(e,Element)}function Zt(e){return k(e,"RegExp")}function st(e){return!!(e&&e.then&&typeof e.then=="function")}function te(e){return rt(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function ee(e){return typeof e=="number"&&e!==e}function Y(e,t){try{return e instanceof t}catch{return!1}}function Ct(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function N(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function K(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let s=Math.max(t-60,0);s<5&&(s=0);let i=Math.min(s+140,r);return i>r-5&&(i=r),i===r&&(s=Math.max(i-140,0)),n=n.slice(s,i),s>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n}function Dn(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{Ct(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function ne(e,t,n=!1){return B(e)?Zt(t)?t.test(e):B(t)?n?e===t:e.includes(t):!1:!1}function In(e,t=[],n=!1){return t.some(r=>ne(e,r,n))}function j(e){return e&&e.Math==Math?e:void 0}const h=typeof globalThis=="object"&&j(globalThis)||typeof window=="object"&&j(window)||typeof self=="object"&&j(self)||typeof global=="object"&&j(global)||function(){return this}()||{};function re(){return h}function wt(e,t,n){const r=n||h,s=r.__SENTRY__=r.__SENTRY__||{};return s[e]||(s[e]=t())}const O=re(),se=80;function ie(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let i=0,o=0;const a=" > ",c=a.length;let u;const l=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||se;for(;n&&i++<r&&(u=oe(n,l),!(u==="html"||i>1&&o+s.length*c+u.length>=f));)s.push(u),o+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function oe(e,t){const n=e,r=[];let s,i,o,a,c;if(!n||!n.tagName)return"";if(O.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(u&&u.length)u.forEach(f=>{r.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),s=n.className,s&&B(s))for(i=s.split(/\s+/),c=0;c<i.length;c++)r.push(`.${i[c]}`);const l=["aria-label","type","name","title","alt"];for(c=0;c<l.length;c++)o=l[c],a=n.getAttribute(o),a&&r.push(`[${o}="${a}"]`);return r.join("")}function Rn(){try{return O.document.location.href}catch{return""}}function kn(e){return O.document&&O.document.querySelector?O.document.querySelector(e):null}function An(e){if(!O.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const it=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ae="Sentry Logger ",ut=["debug","info","warn","error","log","assert","trace"],ft={};function Ot(e){if(!("console"in h))return e();const t=h.console,n={},r=Object.keys(ft);r.forEach(s=>{const i=ft[s];n[s]=t[s],t[s]=i});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function ce(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return it?ut.forEach(n=>{t[n]=(...r)=>{e&&Ot(()=>{h.console[n](`${ae}[${n}]:`,...r)})}}):ut.forEach(n=>{t[n]=()=>{}}),t}const m=ce();function Pn(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);typeof s=="function"&&ue(s,r),e[t]=s}function Dt(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{it&&m.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function ue(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Dt(e,"__sentry_original__",t)}catch{}}function Nn(e){return e.__sentry_original__}function Mn(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function It(e){if(Kt(e))return{message:e.message,name:e.name,stack:e.stack,...dt(e)};if(Xt(e)){const t={type:e.type,target:lt(e.target),currentTarget:lt(e.currentTarget),...dt(e)};return typeof CustomEvent<"u"&&Y(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function lt(e){try{return Qt(e)?ie(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function dt(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function vn(e,t=40){const n=Object.keys(It(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return N(n[0],t);for(let r=n.length;r>0;r--){const s=n.slice(0,r).join(", ");if(!(s.length>t))return r===n.length?s:N(s,t)}return""}function T(e){return Z(e,new Map)}function Z(e,t){if(fe(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const s of Object.keys(e))typeof e[s]<"u"&&(r[s]=Z(e[s],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(s=>{r.push(Z(s,t))}),r}return e}function fe(e){if(!rt(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const Rt=50,pt=/\(error: (.*)\)/,gt=/captureMessage|captureException/;function le(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const s=[],i=n.split(`
3
- `);for(let o=r;o<i.length;o++){const a=i[o];if(a.length>1024)continue;const c=pt.test(a)?a.replace(pt,"$1"):a;if(!c.match(/\S*Error: /)){for(const u of t){const l=u(c);if(l){s.push(l);break}}if(s.length>=Rt)break}}return de(s)}}function Ln(e){return Array.isArray(e)?le(...e):e}function de(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),gt.test(t[t.length-1].function||"")&&(t.pop(),gt.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,Rt).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const W="<anonymous>";function pe(e){try{return!e||typeof e!="function"?W:e.name||W}catch{return W}}function d(){const e=h,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function kt(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function jn(e){const{message:t,event_id:n}=e;if(t)return t;const r=kt(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function $n(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function ge(e,t){const n=kt(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const i={...s&&s.data,...t.data};n.mechanism.data=i}}function Gn(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,s=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map(i=>K(i,0)),t.context_line=K(e[Math.min(r-1,s)],t.colno||0),t.post_context=e.slice(Math.min(s+1,r),s+1+n).map(i=>K(i,0))}function Un(e){if(e&&e.__sentry_captured__)return!0;try{Dt(e,"__sentry_captured__",!0)}catch{}return!1}function _e(e){return Array.isArray(e)?e:[e]}function he(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(s){if(e)return t.has(s)?!0:(t.add(s),!1);for(let i=0;i<t.length;i++)if(t[i]===s)return!0;return t.push(s),!1}function r(s){if(e)t.delete(s);else for(let i=0;i<t.length;i++)if(t[i]===s){t.splice(i,1);break}}return[n,r]}function x(e,t=100,n=1/0){try{return tt("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function me(e,t=3,n=100*1024){const r=x(e,t);return be(r)>n?me(e,t-1,n):r}function tt(e,t,n=1/0,r=1/0,s=he()){const[i,o]=s;if(t==null||["number","boolean","string"].includes(typeof t)&&!ee(t))return t;const a=Se(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const g=u.toJSON();return tt("",g,c-1,r,s)}catch{}const l=Array.isArray(t)?[]:{};let f=0;const _=It(t);for(const g in _){if(!Object.prototype.hasOwnProperty.call(_,g))continue;if(f>=r){l[g]="[MaxProperties ~]";break}const C=_[g];l[g]=tt(g,C,c-1,r,s),f++}return o(t),l}function Se(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Ct(t))return"[VueViewModel]";if(te(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${pe(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=ye(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function ye(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Ee(e){return~-encodeURI(e).split(/%..|./).length}function be(e){return Ee(JSON.stringify(e))}var E;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(E||(E={}));function Bn(e){return new y(t=>{t(e)})}function Fn(e){return new y((t,n)=>{n(e)})}class y{constructor(t){y.prototype.__init.call(this),y.prototype.__init2.call(this),y.prototype.__init3.call(this),y.prototype.__init4.call(this),this._state=E.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new y((r,s)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new y((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,t&&t()},o=>{i=!0,s=o,t&&t()}).then(()=>{if(i){r(s);return}n(s)})})}__init(){this._resolve=t=>{this._setResult(E.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(E.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===E.PENDING){if(st(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===E.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===E.RESOLVED&&n[1](this._value),this._state===E.REJECTED&&n[2](this._value),n[0]=!0)})}}}const At=1e3;function z(){return Date.now()/At}function xe(){const{performance:e}=h;if(!e||!e.now)return z;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/At}const ot=xe(),Hn=(()=>{const{performance:e}=h;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=s<t,o=e.timing&&e.timing.navigationStart,c=typeof o=="number"?Math.abs(o+n-r):t,u=c<t;return i||u?s<=c?e.timeOrigin:o:r})(),Yn="baggage",Pt="sentry-",Te=/^sentry-/,Ce=8192;function Nt(e){if(!B(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((r,s)=>{const i=_t(s);for(const o of Object.keys(i))r[o]=i[o];return r},{});else{if(!e)return;t=_t(e)}const n=Object.entries(t).reduce((r,[s,i])=>{if(s.match(Te)){const o=s.slice(Pt.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function zn(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${Pt}${r}`]=s),n),{});return we(t)}function _t(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function we(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=s===0?i:`${t},${i}`;return o.length>Ce?(it&&m.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):o},"")}const Oe=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Mt(e){if(!e)return;const t=e.match(Oe);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Vn(e,t){const n=Mt(e),r=Nt(t),{traceId:s,parentSpanId:i,parentSampled:o}=n||{};return n?{traceparentData:n,dynamicSamplingContext:r||{},propagationContext:{traceId:s||d(),parentSpanId:i||d().substring(16),spanId:d().substring(16),sampled:o,dsc:r||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:s||d(),spanId:d().substring(16)}}}function qn(e,t){const n=Mt(e),r=Nt(t),{traceId:s,parentSpanId:i,parentSampled:o}=n||{};return n?{traceId:s||d(),parentSpanId:i||d().substring(16),spanId:d().substring(16),sampled:o,dsc:r||{}}:{traceId:s||d(),spanId:d().substring(16)}}function De(e=d(),t=d().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}const D=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,V="production";function at(){return wt("globalEventProcessors",()=>[])}function Jn(e){at().push(e)}function F(e,t,n,r=0){return new y((s,i)=>{const o=e[r];if(t===null||typeof o!="function")s(t);else{const a=o({...t},n);D&&o.id&&a===null&&m.log(`Event processor "${o.id}" dropped event`),st(a)?a.then(c=>F(e,c,n,r+1).then(s)).then(null,i):F(e,a,n,r+1).then(s).then(null,i)}})}function vt(e){const t=ot(),n={sid:d(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Ie(n)};return e&&v(n,e),n}function v(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||ot(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:d()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Lt(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),v(e,n)}function Ie(e){return T({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const Kn=0,Re=1;function ke(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:i,status:o,tags:a,origin:c}=M(e);return T({data:r,op:s,parent_span_id:i,span_id:t,status:o,tags:a,trace_id:n,origin:c})}function Wn(e){const{traceId:t,spanId:n}=e.spanContext(),r=jt(e);return De(t,n,r)}function Xn(e){return typeof e=="number"?ht(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?ht(e.getTime()):ot()}function ht(e){return e>9999999999?e/1e3:e}function M(e){return Ae(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function Ae(e){return typeof e.getSpanJSON=="function"}function jt(e){const{traceFlags:t}=e.spanContext();return!!(t&Re)}function Qn(e,t,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||d(),timestamp:t.timestamp||z()},u=n.integrations||e.integrations.map(S=>S.name);Pe(c,e),ve(c,u),t.type===void 0&&Ne(c,e.stackParser);const l=je(r,n.captureContext);n.mechanism&&ge(c,n.mechanism);const f=s&&s.getEventProcessors?s.getEventProcessors():[],_=Qe().getScopeData();if(i){const S=i.getScopeData();St(_,S)}if(l){const S=l.getScopeData();St(_,S)}const g=[...n.attachments||[],..._.attachments];g.length&&(n.attachments=g),Bt(c,_);const C=[...f,...at(),..._.eventProcessors];return F(C,c,n).then(S=>(S&&Me(S),typeof o=="number"&&o>0?Le(S,o,a):S))}function Pe(e,t){const{environment:n,release:r,dist:s,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:V),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&s!==void 0&&(e.dist=s),e.message&&(e.message=N(e.message,i));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=N(o.value,i));const a=e.request;a&&a.url&&(a.url=N(a.url,i))}const mt=new WeakMap;function Ne(e,t){const n=h._sentryDebugIds;if(!n)return;let r;const s=mt.get(t);s?r=s:(r=new Map,mt.set(t,r));const i=Object.keys(n).reduce((o,a)=>{let c;const u=r.get(a);u?c=u:(c=t(a),r.set(a,c));for(let l=c.length-1;l>=0;l--){const f=c[l];if(f.filename){o[f.filename]=n[a];break}}return o},{});try{e.exception.values.forEach(o=>{o.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=i[a.filename])})})}catch{}}function Me(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function ve(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Le(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:x(s.data,t,n)}}))},...e.user&&{user:x(e.user,t,n)},...e.contexts&&{contexts:x(e.contexts,t,n)},...e.extra&&{extra:x(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=x(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>{const i=M(s).data;return i&&(s.data=x(i,t,n)),s})),r}function je(e,t){if(!t)return e;const n=e?e.clone():new b;return n.update(t),n}function $e(e){if(e)return Ge(e)?{captureContext:e}:Be(e)?{captureContext:e}:e}function Ge(e){return e instanceof b||typeof e=="function"}const Ue=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Be(e){return Object.keys(e).some(t=>Ue.includes(t))}function Zn(e,t){return p().captureException(e,$e(t))}function tr(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return p().captureMessage(e,n,r)}function er(e,t){return p().captureEvent(e,t)}function nr(e){p().configureScope(e)}function rr(e,t){p().addBreadcrumb(e,t)}function sr(e,t){p().setContext(e,t)}function ir(e){p().setExtras(e)}function or(e,t){p().setExtra(e,t)}function ar(e){p().setTags(e)}function cr(e,t){p().setTag(e,t)}function Fe(e){p().setUser(e)}function He(...e){const t=p();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function ur(e){return nn(()=>e(J()))}function fr(e,t){return He(n=>(n.setSpan(e),t(n)))}function lr(e,t){return p().startTransaction({...e},t)}async function dr(e){const t=A();return t?t.flush(e):(D&&m.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function pr(e){const t=A();return t?t.close(e):(D&&m.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function gr(){return p().lastEventId()}function A(){return p().getClient()}function _r(){return!!A()}function q(){return p().getScope()}function hr(e){const t=A(),n=J(),r=q(),{release:s,environment:i=V}=t&&t.getOptions()||{},{userAgent:o}=h.navigator||{},a=vt({release:s,environment:i,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...e}),c=n.getSession();return c&&c.status==="ok"&&v(c,{status:"exited"}),$t(),n.setSession(a),r.setSession(a),a}function $t(){const e=J(),t=q(),n=t.getSession()||e.getSession();n&&Lt(n),Gt(),e.setSession(),t.setSession()}function Gt(){const e=J(),t=q(),n=A(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function mr(e=!1){if(e){$t();return}Gt()}function Ut(e){return e.transaction}function Ye(e,t,n){const r=t.getOptions(),{publicKey:s}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},o=T({environment:r.environment||V,release:r.release,user_segment:i,public_key:s,trace_id:e});return t.emit&&t.emit("createDsc",o),o}function ze(e){const t=A();if(!t)return{};const n=Ye(M(e).trace_id||"",t,q()),r=Ut(e);if(!r)return n;const s=r&&r._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:i,source:o}=r.metadata;i!=null&&(n.sample_rate=`${i}`);const a=M(r);return o&&o!=="url"&&(n.transaction=a.description),n.sampled=String(jt(r)),t.emit&&t.emit("createDsc",n),n}function Bt(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=t;Ve(e,t),r&&Ke(e,r),We(e,n),qe(e,s),Je(e,i)}function St(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:f,propagationContext:_,transactionName:g,span:C}=t;P(e,"extra",n),P(e,"tags",r),P(e,"user",s),P(e,"contexts",i),P(e,"sdkProcessingMetadata",a),o&&(e.level=o),g&&(e.transactionName=g),C&&(e.span=C),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,..._}}function P(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function Ve(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=t,c=T(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const u=T(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const l=T(s);l&&Object.keys(l).length&&(e.user={...l,...e.user});const f=T(i);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),o&&(e.level=o),a&&(e.transaction=a)}function qe(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Je(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Ke(e,t){e.contexts={trace:ke(t),...e.contexts};const n=Ut(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:ze(t),...e.sdkProcessingMetadata};const r=M(n).description;r&&(e.tags={transaction:r,...e.tags})}}function We(e,t){e.fingerprint=e.fingerprint?_e(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const Xe=100;let X;class b{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=yt()}static clone(t){return t?t.clone():new b}clone(){const t=new b;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&v(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof b){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(rt(n)){const r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=yt(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Xe;if(r<=0)return this;const s={timestamp:z(),...t},i=this._breadcrumbs;return i.push(s),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:s,_extra:i,_user:o,_level:a,_fingerprint:c,_eventProcessors:u,_propagationContext:l,_sdkProcessingMetadata:f,_transactionName:_,_span:g}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:s,extra:i,user:o,level:a,fingerprint:c||[],eventProcessors:u,propagationContext:l,sdkProcessingMetadata:f,transactionName:_,span:g}}applyToEvent(t,n={},r=[]){Bt(t,this.getScopeData());const s=[...r,...at(),...this._eventProcessors];return F(s,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:d();if(!this._client)return m.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r&&r.event_id?r.event_id:d();if(!this._client)return m.warn("No client configured on scope - will not capture message!"),s;const i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:s},this),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:d();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(m.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function Qe(){return X||(X=new b),X}function yt(){return{traceId:d(),spanId:d().substring(16)}}const Ze="7.120.3",Ft=parseFloat(Ze),tn=100;class Ht{constructor(t,n,r,s=Ft){this._version=s;let i;n?i=n:(i=new b,i.setClient(t));let o;r?o=r:(o=new b,o.setClient(t)),this._stack=[{scope:i}],t&&this.bindClient(t),this._isolationScope=o}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();let r;try{r=t(n)}catch(s){throw this.popScope(),s}return st(r)?r.then(s=>(this.popScope(),s),s=>{throw this.popScope(),s}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:d(),s=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:s,...n,event_id:r}),r}captureMessage(t,n,r){const s=this._lastEventId=r&&r.event_id?r.event_id:d(),i=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:s}),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:d();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:s}=this.getStackTop();if(!s)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=tn}=s.getOptions&&s.getOptions()||{};if(o<=0)return;const c={timestamp:z(),...t},u=i?Ot(()=>i(c,n)):c;u!==null&&(s.emit&&s.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,o))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Et(this);try{t(this)}finally{Et(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return D&&m.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return D&&!r&&(this.getClient()?m.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index.BrOLYS47.js","./index.Dc5HlSvp.js","./index.Do5xnOI9.js","./useFeatureFlags.HTSEqgkg.js","./connect.config.BIAWWw4c.js","./browser.BkwNmV2Z.js"])))=>i.map(i=>d[i]);
2
+ import{c as zt}from"./connect.config.BIAWWw4c.js";import{useCallback as Vt,useMemo as xt,useEffect as Q}from"react";import{_ as N,h as nt,v as I,i as qt,t as U,l as Jt}from"./index.Dc5HlSvp.js";async function H(){if(import.meta.hot)return import.meta.hot;try{return(await N(()=>import("../hmr.js"),[],import.meta.url)).hmr}catch{return}}async function wn(e){const t=await H();if(!t)throw new Error("HMR not available.");return new Promise(n=>{function r(s){e===s.name&&(n(),t==null||t.off("studio:external-package-added",r))}t.on("studio:external-package-added",r),t.send("studio:add-external-package",{name:e})})}async function On(e){const t=await H();if(!t)throw new Error("HMR not available.");return new Promise(n=>{function r(s){e===s.name&&(n(),t==null||t.off("studio:external-package-removed",r))}t.on("studio:external-package-removed",r),t.send("studio:remove-external-package",{name:e})})}async function Kt(e){const t=await H(),n=r=>{const s=N(()=>import(`${r.url}?t=${r.timestamp}`),[],import.meta.url);e(s.then(i=>i.default))};return t==null||t.on("studio:external-packages-updated",n),()=>{t==null||t.off("studio:external-packages-updated",n)}}const Tt=Object.prototype.toString;function Wt(e){switch(Tt.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Y(e,Error)}}function k(e,t){return Tt.call(e)===`[object ${t}]`}function Dn(e){return k(e,"ErrorEvent")}function In(e){return k(e,"DOMError")}function kn(e){return k(e,"DOMException")}function B(e){return k(e,"String")}function Xt(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Rn(e){return e===null||Xt(e)||typeof e!="object"&&typeof e!="function"}function rt(e){return k(e,"Object")}function Qt(e){return typeof Event<"u"&&Y(e,Event)}function Zt(e){return typeof Element<"u"&&Y(e,Element)}function te(e){return k(e,"RegExp")}function st(e){return!!(e&&e.then&&typeof e.then=="function")}function ee(e){return rt(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function ne(e){return typeof e=="number"&&e!==e}function Y(e,t){try{return e instanceof t}catch{return!1}}function Ct(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function A(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function K(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let s=Math.max(t-60,0);s<5&&(s=0);let i=Math.min(s+140,r);return i>r-5&&(i=r),i===r&&(s=Math.max(i-140,0)),n=n.slice(s,i),s>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n}function Pn(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{Ct(s)?n.push("[VueViewModel]"):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function re(e,t,n=!1){return B(e)?te(t)?t.test(e):B(t)?n?e===t:e.includes(t):!1:!1}function An(e,t=[],n=!1){return t.some(r=>re(e,r,n))}function j(e){return e&&e.Math==Math?e:void 0}const h=typeof globalThis=="object"&&j(globalThis)||typeof window=="object"&&j(window)||typeof self=="object"&&j(self)||typeof global=="object"&&j(global)||function(){return this}()||{};function se(){return h}function wt(e,t,n){const r=n||h,s=r.__SENTRY__=r.__SENTRY__||{};return s[e]||(s[e]=t())}const O=se(),ie=80;function oe(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let i=0,o=0;const a=" > ",c=a.length;let u;const l=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||ie;for(;n&&i++<r&&(u=ae(n,l),!(u==="html"||i>1&&o+s.length*c+u.length>=f));)s.push(u),o+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function ae(e,t){const n=e,r=[];let s,i,o,a,c;if(!n||!n.tagName)return"";if(O.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(u&&u.length)u.forEach(f=>{r.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),s=n.className,s&&B(s))for(i=s.split(/\s+/),c=0;c<i.length;c++)r.push(`.${i[c]}`);const l=["aria-label","type","name","title","alt"];for(c=0;c<l.length;c++)o=l[c],a=n.getAttribute(o),a&&r.push(`[${o}="${a}"]`);return r.join("")}function Nn(){try{return O.document.location.href}catch{return""}}function Mn(e){return O.document&&O.document.querySelector?O.document.querySelector(e):null}function vn(e){if(!O.HTMLElement)return null;let t=e;const n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}const it=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ce="Sentry Logger ",ut=["debug","info","warn","error","log","assert","trace"],ft={};function Ot(e){if(!("console"in h))return e();const t=h.console,n={},r=Object.keys(ft);r.forEach(s=>{const i=ft[s];n[s]=t[s],t[s]=i});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function ue(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return it?ut.forEach(n=>{t[n]=(...r)=>{e&&Ot(()=>{h.console[n](`${ce}[${n}]:`,...r)})}}):ut.forEach(n=>{t[n]=()=>{}}),t}const m=ue();function Ln(e,t,n){if(!(t in e))return;const r=e[t],s=n(r);typeof s=="function"&&fe(s,r),e[t]=s}function Dt(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{it&&m.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function fe(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Dt(e,"__sentry_original__",t)}catch{}}function jn(e){return e.__sentry_original__}function $n(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function It(e){if(Wt(e))return{message:e.message,name:e.name,stack:e.stack,...dt(e)};if(Qt(e)){const t={type:e.type,target:lt(e.target),currentTarget:lt(e.currentTarget),...dt(e)};return typeof CustomEvent<"u"&&Y(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function lt(e){try{return Zt(e)?oe(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function dt(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function Gn(e,t=40){const n=Object.keys(It(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return A(n[0],t);for(let r=n.length;r>0;r--){const s=n.slice(0,r).join(", ");if(!(s.length>t))return r===n.length?s:A(s,t)}return""}function T(e){return Z(e,new Map)}function Z(e,t){if(le(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const s of Object.keys(e))typeof e[s]<"u"&&(r[s]=Z(e[s],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(s=>{r.push(Z(s,t))}),r}return e}function le(e){if(!rt(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const kt=50,pt=/\(error: (.*)\)/,gt=/captureMessage|captureException/;function de(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const s=[],i=n.split(`
3
+ `);for(let o=r;o<i.length;o++){const a=i[o];if(a.length>1024)continue;const c=pt.test(a)?a.replace(pt,"$1"):a;if(!c.match(/\S*Error: /)){for(const u of t){const l=u(c);if(l){s.push(l);break}}if(s.length>=kt)break}}return pe(s)}}function Un(e){return Array.isArray(e)?de(...e):e}function pe(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),gt.test(t[t.length-1].function||"")&&(t.pop(),gt.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,kt).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const W="<anonymous>";function ge(e){try{return!e||typeof e!="function"?W:e.name||W}catch{return W}}function d(){const e=h,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Rt(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Bn(e){const{message:t,event_id:n}=e;if(t)return t;const r=Rt(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Fn(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],i=s[0]=s[0]||{};i.value||(i.value=t||""),i.type||(i.type="Error")}function _e(e,t){const n=Rt(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const i={...s&&s.data,...t.data};n.mechanism.data=i}}function Hn(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,s=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map(i=>K(i,0)),t.context_line=K(e[Math.min(r-1,s)],t.colno||0),t.post_context=e.slice(Math.min(s+1,r),s+1+n).map(i=>K(i,0))}function Yn(e){if(e&&e.__sentry_captured__)return!0;try{Dt(e,"__sentry_captured__",!0)}catch{}return!1}function he(e){return Array.isArray(e)?e:[e]}function me(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(s){if(e)return t.has(s)?!0:(t.add(s),!1);for(let i=0;i<t.length;i++)if(t[i]===s)return!0;return t.push(s),!1}function r(s){if(e)t.delete(s);else for(let i=0;i<t.length;i++)if(t[i]===s){t.splice(i,1);break}}return[n,r]}function x(e,t=100,n=1/0){try{return tt("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function ye(e,t=3,n=100*1024){const r=x(e,t);return xe(r)>n?ye(e,t-1,n):r}function tt(e,t,n=1/0,r=1/0,s=me()){const[i,o]=s;if(t==null||["number","boolean","string"].includes(typeof t)&&!ne(t))return t;const a=Se(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const g=u.toJSON();return tt("",g,c-1,r,s)}catch{}const l=Array.isArray(t)?[]:{};let f=0;const _=It(t);for(const g in _){if(!Object.prototype.hasOwnProperty.call(_,g))continue;if(f>=r){l[g]="[MaxProperties ~]";break}const C=_[g];l[g]=tt(g,C,c-1,r,s),f++}return o(t),l}function Se(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Ct(t))return"[VueViewModel]";if(ee(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${ge(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Ee(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Ee(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function be(e){return~-encodeURI(e).split(/%..|./).length}function xe(e){return be(JSON.stringify(e))}var E;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(E||(E={}));function zn(e){return new S(t=>{t(e)})}function Vn(e){return new S((t,n)=>{n(e)})}class S{constructor(t){S.prototype.__init.call(this),S.prototype.__init2.call(this),S.prototype.__init3.call(this),S.prototype.__init4.call(this),this._state=E.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new S((r,s)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(o){s(o)}},i=>{if(!n)s(i);else try{r(n(i))}catch(o){s(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new S((n,r)=>{let s,i;return this.then(o=>{i=!1,s=o,t&&t()},o=>{i=!0,s=o,t&&t()}).then(()=>{if(i){r(s);return}n(s)})})}__init(){this._resolve=t=>{this._setResult(E.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(E.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===E.PENDING){if(st(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===E.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===E.RESOLVED&&n[1](this._value),this._state===E.REJECTED&&n[2](this._value),n[0]=!0)})}}}const Pt=1e3;function z(){return Date.now()/Pt}function Te(){const{performance:e}=h;if(!e||!e.now)return z;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Pt}const ot=Te(),qn=(()=>{const{performance:e}=h;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),s=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=s<t,o=e.timing&&e.timing.navigationStart,c=typeof o=="number"?Math.abs(o+n-r):t,u=c<t;return i||u?s<=c?e.timeOrigin:o:r})(),Jn="baggage",At="sentry-",Ce=/^sentry-/,we=8192;function Nt(e){if(!B(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((r,s)=>{const i=_t(s);for(const o of Object.keys(i))r[o]=i[o];return r},{});else{if(!e)return;t=_t(e)}const n=Object.entries(t).reduce((r,[s,i])=>{if(s.match(Ce)){const o=s.slice(At.length);r[o]=i}return r},{});if(Object.keys(n).length>0)return n}function Kn(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${At}${r}`]=s),n),{});return Oe(t)}function _t(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function Oe(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,o=s===0?i:`${t},${i}`;return o.length>we?(it&&m.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):o},"")}const De=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Mt(e){if(!e)return;const t=e.match(De);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Wn(e,t){const n=Mt(e),r=Nt(t),{traceId:s,parentSpanId:i,parentSampled:o}=n||{};return n?{traceparentData:n,dynamicSamplingContext:r||{},propagationContext:{traceId:s||d(),parentSpanId:i||d().substring(16),spanId:d().substring(16),sampled:o,dsc:r||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:s||d(),spanId:d().substring(16)}}}function Xn(e,t){const n=Mt(e),r=Nt(t),{traceId:s,parentSpanId:i,parentSampled:o}=n||{};return n?{traceId:s||d(),parentSpanId:i||d().substring(16),spanId:d().substring(16),sampled:o,dsc:r||{}}:{traceId:s||d(),spanId:d().substring(16)}}function Ie(e=d(),t=d().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}const D=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,V="production";function at(){return wt("globalEventProcessors",()=>[])}function Qn(e){at().push(e)}function F(e,t,n,r=0){return new S((s,i)=>{const o=e[r];if(t===null||typeof o!="function")s(t);else{const a=o({...t},n);D&&o.id&&a===null&&m.log(`Event processor "${o.id}" dropped event`),st(a)?a.then(c=>F(e,c,n,r+1).then(s)).then(null,i):F(e,a,n,r+1).then(s).then(null,i)}})}function vt(e){const t=ot(),n={sid:d(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>ke(n)};return e&&v(n,e),n}function v(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||ot(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:d()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Lt(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),v(e,n)}function ke(e){return T({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const Zn=0,Re=1;function Pe(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:i,status:o,tags:a,origin:c}=M(e);return T({data:r,op:s,parent_span_id:i,span_id:t,status:o,tags:a,trace_id:n,origin:c})}function tr(e){const{traceId:t,spanId:n}=e.spanContext(),r=jt(e);return Ie(t,n,r)}function er(e){return typeof e=="number"?ht(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?ht(e.getTime()):ot()}function ht(e){return e>9999999999?e/1e3:e}function M(e){return Ae(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function Ae(e){return typeof e.getSpanJSON=="function"}function jt(e){const{traceFlags:t}=e.spanContext();return!!(t&Re)}function nr(e,t,n,r,s,i){const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||d(),timestamp:t.timestamp||z()},u=n.integrations||e.integrations.map(y=>y.name);Ne(c,e),Le(c,u),t.type===void 0&&Me(c,e.stackParser);const l=$e(r,n.captureContext);n.mechanism&&_e(c,n.mechanism);const f=s&&s.getEventProcessors?s.getEventProcessors():[],_=Ze().getScopeData();if(i){const y=i.getScopeData();yt(_,y)}if(l){const y=l.getScopeData();yt(_,y)}const g=[...n.attachments||[],..._.attachments];g.length&&(n.attachments=g),Bt(c,_);const C=[...f,...at(),..._.eventProcessors];return F(C,c,n).then(y=>(y&&ve(y),typeof o=="number"&&o>0?je(y,o,a):y))}function Ne(e,t){const{environment:n,release:r,dist:s,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:V),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&s!==void 0&&(e.dist=s),e.message&&(e.message=A(e.message,i));const o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=A(o.value,i));const a=e.request;a&&a.url&&(a.url=A(a.url,i))}const mt=new WeakMap;function Me(e,t){const n=h._sentryDebugIds;if(!n)return;let r;const s=mt.get(t);s?r=s:(r=new Map,mt.set(t,r));const i=Object.keys(n).reduce((o,a)=>{let c;const u=r.get(a);u?c=u:(c=t(a),r.set(a,c));for(let l=c.length-1;l>=0;l--){const f=c[l];if(f.filename){o[f.filename]=n[a];break}}return o},{});try{e.exception.values.forEach(o=>{o.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=i[a.filename])})})}catch{}}function ve(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function Le(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function je(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:x(s.data,t,n)}}))},...e.user&&{user:x(e.user,t,n)},...e.contexts&&{contexts:x(e.contexts,t,n)},...e.extra&&{extra:x(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=x(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>{const i=M(s).data;return i&&(s.data=x(i,t,n)),s})),r}function $e(e,t){if(!t)return e;const n=e?e.clone():new b;return n.update(t),n}function Ge(e){if(e)return Ue(e)?{captureContext:e}:Fe(e)?{captureContext:e}:e}function Ue(e){return e instanceof b||typeof e=="function"}const Be=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Fe(e){return Object.keys(e).some(t=>Be.includes(t))}function rr(e,t){return p().captureException(e,Ge(t))}function sr(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return p().captureMessage(e,n,r)}function ir(e,t){return p().captureEvent(e,t)}function or(e){p().configureScope(e)}function ar(e,t){p().addBreadcrumb(e,t)}function cr(e,t){p().setContext(e,t)}function ur(e){p().setExtras(e)}function fr(e,t){p().setExtra(e,t)}function lr(e){p().setTags(e)}function dr(e,t){p().setTag(e,t)}function He(e){p().setUser(e)}function Ye(...e){const t=p();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function pr(e){return rn(()=>e(J()))}function gr(e,t){return Ye(n=>(n.setSpan(e),t(n)))}function _r(e,t){return p().startTransaction({...e},t)}async function hr(e){const t=R();return t?t.flush(e):(D&&m.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function mr(e){const t=R();return t?t.close(e):(D&&m.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function yr(){return p().lastEventId()}function R(){return p().getClient()}function Sr(){return!!R()}function q(){return p().getScope()}function Er(e){const t=R(),n=J(),r=q(),{release:s,environment:i=V}=t&&t.getOptions()||{},{userAgent:o}=h.navigator||{},a=vt({release:s,environment:i,user:r.getUser()||n.getUser(),...o&&{userAgent:o},...e}),c=n.getSession();return c&&c.status==="ok"&&v(c,{status:"exited"}),$t(),n.setSession(a),r.setSession(a),a}function $t(){const e=J(),t=q(),n=t.getSession()||e.getSession();n&&Lt(n),Gt(),e.setSession(),t.setSession()}function Gt(){const e=J(),t=q(),n=R(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function br(e=!1){if(e){$t();return}Gt()}function Ut(e){return e.transaction}function ze(e,t,n){const r=t.getOptions(),{publicKey:s}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},o=T({environment:r.environment||V,release:r.release,user_segment:i,public_key:s,trace_id:e});return t.emit&&t.emit("createDsc",o),o}function Ve(e){const t=R();if(!t)return{};const n=ze(M(e).trace_id||"",t,q()),r=Ut(e);if(!r)return n;const s=r&&r._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:i,source:o}=r.metadata;i!=null&&(n.sample_rate=`${i}`);const a=M(r);return o&&o!=="url"&&(n.transaction=a.description),n.sampled=String(jt(r)),t.emit&&t.emit("createDsc",n),n}function Bt(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:i}=t;qe(e,t),r&&We(e,r),Xe(e,n),Je(e,s),Ke(e,i)}function yt(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:f,propagationContext:_,transactionName:g,span:C}=t;P(e,"extra",n),P(e,"tags",r),P(e,"user",s),P(e,"contexts",i),P(e,"sdkProcessingMetadata",a),o&&(e.level=o),g&&(e.transactionName=g),C&&(e.span=C),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,..._}}function P(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function qe(e,t){const{extra:n,tags:r,user:s,contexts:i,level:o,transactionName:a}=t,c=T(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});const u=T(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const l=T(s);l&&Object.keys(l).length&&(e.user={...l,...e.user});const f=T(i);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),o&&(e.level=o),a&&(e.transaction=a)}function Je(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Ke(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function We(e,t){e.contexts={trace:Pe(t),...e.contexts};const n=Ut(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Ve(t),...e.sdkProcessingMetadata};const r=M(n).description;r&&(e.tags={transaction:r,...e.tags})}}function Xe(e,t){e.fingerprint=e.fingerprint?he(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const Qe=100;let X;class b{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=St()}static clone(t){return t?t.clone():new b}clone(){const t=new b;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&v(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof b){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(rt(n)){const r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=St(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Qe;if(r<=0)return this;const s={timestamp:z(),...t},i=this._breadcrumbs;return i.push(s),this._breadcrumbs=i.length>r?i.slice(-r):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:s,_extra:i,_user:o,_level:a,_fingerprint:c,_eventProcessors:u,_propagationContext:l,_sdkProcessingMetadata:f,_transactionName:_,_span:g}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:s,extra:i,user:o,level:a,fingerprint:c||[],eventProcessors:u,propagationContext:l,sdkProcessingMetadata:f,transactionName:_,span:g}}applyToEvent(t,n={},r=[]){Bt(t,this.getScopeData());const s=[...r,...at(),...this._eventProcessors];return F(s,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:d();if(!this._client)return m.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r&&r.event_id?r.event_id:d();if(!this._client)return m.warn("No client configured on scope - will not capture message!"),s;const i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:s},this),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:d();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(m.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function Ze(){return X||(X=new b),X}function St(){return{traceId:d(),spanId:d().substring(16)}}const tn="7.120.3",Ft=parseFloat(tn),en=100;class Ht{constructor(t,n,r,s=Ft){this._version=s;let i;n?i=n:(i=new b,i.setClient(t));let o;r?o=r:(o=new b,o.setClient(t)),this._stack=[{scope:i}],t&&this.bindClient(t),this._isolationScope=o}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();let r;try{r=t(n)}catch(s){throw this.popScope(),s}return st(r)?r.then(s=>(this.popScope(),s),s=>{throw this.popScope(),s}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:d(),s=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:s,...n,event_id:r}),r}captureMessage(t,n,r){const s=this._lastEventId=r&&r.event_id?r.event_id:d(),i=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:s}),s}captureEvent(t,n){const r=n&&n.event_id?n.event_id:d();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:s}=this.getStackTop();if(!s)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=en}=s.getOptions&&s.getOptions()||{};if(o<=0)return;const c={timestamp:z(),...t},u=i?Ot(()=>i(c,n)):c;u!==null&&(s.emit&&s.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,o))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Et(this);try{t(this)}finally{Et(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return D&&m.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return D&&!r&&(this.getClient()?m.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
4
4
  Sentry.addTracingExtensions();
5
5
  Sentry.init({...});
6
- `):m.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&Lt(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:s,environment:i=V}=r&&r.getOptions()||{},{userAgent:o}=h.navigator||{},a=vt({release:s,environment:i,user:n.getUser(),...o&&{userAgent:o},...t}),c=n.getSession&&n.getSession();return c&&c.status==="ok"&&v(c,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const s=L().__SENTRY__;if(s&&s.extensions&&typeof s.extensions[t]=="function")return s.extensions[t].apply(this,n);D&&m.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function L(){return h.__SENTRY__=h.__SENTRY__||{extensions:{},hub:void 0},h}function Et(e){const t=L(),n=et(t);return Yt(t,e),n}function p(){const e=L();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return en(e)}function J(){return p().getIsolationScope()}function en(e=L()){return(!rn(e)||et(e).isOlderThan(Ft))&&Yt(e,new Ht),et(e)}function nn(e,t={}){const n=L();return n.__SENTRY__&&n.__SENTRY__.acs?n.__SENTRY__.acs.runWithAsyncContext(e,t):e()}function rn(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function et(e){return wt("hub",()=>new Ht,e)}function Yt(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function sn(){return I(()=>import("../external-packages.js"),[],import.meta.url).catch(e=>console.error(e)).then(e=>(e==null?void 0:e.default)??[])}const on=R(async()=>typeof await H()<"u"),Sr=()=>nt(on),ct=zt(sn);let bt;ct.onMount=e=>{bt||(bt=Jt(t=>{e(t)}))};const an=()=>nt(ct),cn={id:"powerhouse/common",name:"Generic Drive Explorer",driveEditor:"GenericDriveExplorer"},un=R(async e=>{const t=await e(ct);return[cn,...t.map(n=>n.manifest.apps).filter(n=>n!==void 0).flat()]}),fn=()=>nt(un),yr=()=>{const e=fn();return qt(t=>{if(!t)return;const n=e.find(r=>r.driveEditor===t);return n==null?void 0:n.name},[e])},Er=e=>{const t=an();return xt(()=>{if(!e)return;const n=t.find(r=>{var s;return(s=r.manifest.apps)==null?void 0:s.find(i=>i.driveEditor===e)});return n==null?void 0:n.editors.find(r=>r.config.id===e)},[t,e])};let $;async function ln(){const{ConnectCrypto:e}=await I(async()=>{const{ConnectCrypto:r}=await import("./index.dUn3hcfa.js");return{ConnectCrypto:r}},__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),{BrowserKeyStorage:t}=await I(async()=>{const{BrowserKeyStorage:r}=await import("./index.dUn3hcfa.js");return{BrowserKeyStorage:r}},__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),n=new e(new t);return await n.did(),n}function w(){return window.connectCrypto?Promise.resolve(window.connectCrypto):$||($=ln(),$)}function dn(){return xt(()=>({async regenerateDid(){return(await w()).regenerateDid()},async did(){return(await w()).did()},sign:async e=>await(await w()).sign(e),async getIssuer(){return(await w()).getIssuer()},async getBearerToken(e,t,n=!1){return(await w()).getBearerToken(e,t,n)}}),[])}const pn=R(void 0);function br(){const[e,t]=U(pn);return Q(()=>{e||w().then(n=>n.did()).then(n=>t(n)).catch(Vt.error)}),e}const gn=R("idle"),_n=R(window.renown?Promise.resolve(window.renown):void 0);function hn(){const[e,t]=U(_n),[n,r]=U(gn),{did:s}=dn();async function i(o){r("loading");try{const a=await o();if(!a){r("error");return}const{initRenownBrowser:c}=await I(async()=>{const{initRenownBrowser:f}=await import("./index.Dt5syCVo.js").then(_=>_.b);return{initRenownBrowser:f}},__vite__mapDeps([2,1,3,4,5]),import.meta.url),u=c(a),l={user:function(){return Promise.resolve(u.user)},login:function(f){return u.login(f)},logout(){return Promise.resolve(u.logout())},on:{user(f){return u.on("user",f)}}};return r("finished"),l}catch(a){console.error("Error initializing renown:",a instanceof Error?a.message:"Unknown error"),r("error");return}}return!e&&n==="idle"&&t(i(s)),e}let G=!1;const mn=R(void 0),xr=()=>{const[e,t]=U(mn),n=hn();return Q(()=>{var s;let r=null;if(e){const{credential:i,...o}=e;r={id:o.did,username:(s=o.ens)==null?void 0:s.name,...o}}Fe(r)},[e]),Q(()=>{if(G)return;G=!0,n==null||n.user().then(s=>{t(s||null)}).catch(()=>{t(null)});const r=n==null?void 0:n.on.user(s=>{t(s||null)});return()=>{r==null||r(),G=!1}},[n,G]),e};export{L as $,x as A,z as B,ut as C,it as D,Mt as E,p as F,h as G,D as H,st as I,A as J,q as K,Vn as L,nn as M,Xn as N,J as O,ze as P,jt as Q,He as R,y as S,M as T,ot as U,Re as V,Kn as W,Ut as X,Wn as Y,ke as Z,ee as _,yr as a,ur as a$,Mn as a0,_e as a1,Jn as a2,Un as a3,On as a4,v as a5,Qn as a6,Ye as a7,Wt as a8,rt as a9,er as aA,Rn as aB,Ln as aC,hr as aD,mr as aE,sr as aF,tr as aG,Gn as aH,V as aI,fr as aJ,Qe as aK,Ht as aL,b as aM,pr as aN,nr as aO,$t as aP,dr as aQ,et as aR,_r as aS,gr as aT,Et as aU,or as aV,ir as aW,cr as aX,ar as aY,Fe as aZ,lr as a_,Ze as aa,jn as ab,In as ac,Nn as ad,Hn as ae,ie as af,An as ag,De as ah,zn as ai,Yn as aj,qn as ak,kn as al,ue as am,$n as an,ge as ao,Zn as ap,Tn as aq,Cn as ar,wn as as,Kt as at,Xt as au,me as av,vn as aw,le as ax,rr as ay,Dn as az,xr as b,an as b0,Sr as b1,_n as b2,w as b3,gn as b4,br as c,dn as d,ct as e,Er as f,fn as g,H as h,bn as i,Y as j,Ot as k,m as l,pe as m,Pn as n,ft as o,Dt as p,d as q,xn as r,Jt as s,N as t,hn as u,re as v,B as w,Bn as x,Fn as y,T as z};
7
- //# sourceMappingURL=user.BoRGXkj9.js.map
6
+ `):m.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&Lt(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:s,environment:i=V}=r&&r.getOptions()||{},{userAgent:o}=h.navigator||{},a=vt({release:s,environment:i,user:n.getUser(),...o&&{userAgent:o},...t}),c=n.getSession&&n.getSession();return c&&c.status==="ok"&&v(c,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const s=L().__SENTRY__;if(s&&s.extensions&&typeof s.extensions[t]=="function")return s.extensions[t].apply(this,n);D&&m.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function L(){return h.__SENTRY__=h.__SENTRY__||{extensions:{},hub:void 0},h}function Et(e){const t=L(),n=et(t);return Yt(t,e),n}function p(){const e=L();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return nn(e)}function J(){return p().getIsolationScope()}function nn(e=L()){return(!sn(e)||et(e).isOlderThan(Ft))&&Yt(e,new Ht),et(e)}function rn(e,t={}){const n=L();return n.__SENTRY__&&n.__SENTRY__.acs?n.__SENTRY__.acs.runWithAsyncContext(e,t):e()}function sn(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function et(e){return wt("hub",()=>new Ht,e)}function Yt(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}const on=zt.routerBasename+"external-packages.js",an=window.__VITE_ENVS.PROD;async function cn(){try{return an?(await import(on)).default??[]:[]}catch(e){return console.error(e),[]}}const un=I(async()=>typeof await H()<"u"),xr=()=>nt(un),ct=qt(cn);let bt;ct.onMount=e=>{bt||(bt=Kt(t=>{e(t)}))};const fn=()=>nt(ct),ln={id:"powerhouse/common",name:"Generic Drive Explorer",driveEditor:"GenericDriveExplorer"},dn=I(async e=>{const t=await e(ct);return[ln,...t.map(n=>n.manifest.apps).filter(n=>n!==void 0).flat()]}),pn=()=>nt(dn),Tr=()=>{const e=pn();return Vt(t=>{if(!t)return;const n=e.find(r=>r.driveEditor===t);return n==null?void 0:n.name},[e])},Cr=e=>{const t=fn();return xt(()=>{if(!e)return;const n=t.find(r=>{var s;return(s=r.manifest.apps)==null?void 0:s.find(i=>i.driveEditor===e)});return n==null?void 0:n.editors.find(r=>r.config.id===e)},[t,e])};let $;async function gn(){const{ConnectCrypto:e}=await N(async()=>{const{ConnectCrypto:r}=await import("./index.BrOLYS47.js");return{ConnectCrypto:r}},__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),{BrowserKeyStorage:t}=await N(async()=>{const{BrowserKeyStorage:r}=await import("./index.BrOLYS47.js");return{BrowserKeyStorage:r}},__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),n=new e(new t);return await n.did(),n}function w(){return window.connectCrypto?Promise.resolve(window.connectCrypto):$||($=gn(),$)}function _n(){return xt(()=>({async regenerateDid(){return(await w()).regenerateDid()},async did(){return(await w()).did()},sign:async e=>await(await w()).sign(e),async getIssuer(){return(await w()).getIssuer()},async getBearerToken(e,t,n=!1){return(await w()).getBearerToken(e,t,n)}}),[])}const hn=I(void 0);function wr(){const[e,t]=U(hn);return Q(()=>{e||w().then(n=>n.did()).then(n=>t(n)).catch(Jt.error)}),e}const mn=I("idle"),yn=I(window.renown?Promise.resolve(window.renown):void 0);function Sn(){const[e,t]=U(yn),[n,r]=U(mn),{did:s}=_n();async function i(o){r("loading");try{const a=await o();if(!a){r("error");return}const{initRenownBrowser:c}=await N(async()=>{const{initRenownBrowser:f}=await import("./index.Do5xnOI9.js").then(_=>_.b);return{initRenownBrowser:f}},__vite__mapDeps([2,1,3,4,5]),import.meta.url),u=c(a),l={user:function(){return Promise.resolve(u.user)},login:function(f){return u.login(f)},logout(){return Promise.resolve(u.logout())},on:{user(f){return u.on("user",f)}}};return r("finished"),l}catch(a){console.error("Error initializing renown:",a instanceof Error?a.message:"Unknown error"),r("error");return}}return!e&&n==="idle"&&t(i(s)),e}let G=!1;const En=I(void 0),Or=()=>{const[e,t]=U(En),n=Sn();return Q(()=>{var s;let r=null;if(e){const{credential:i,...o}=e;r={id:o.did,username:(s=o.ens)==null?void 0:s.name,...o}}He(r)},[e]),Q(()=>{if(G)return;G=!0,n==null||n.user().then(s=>{t(s||null)}).catch(()=>{t(null)});const r=n==null?void 0:n.on.user(s=>{t(s||null)});return()=>{r==null||r(),G=!1}},[n,G]),e};export{L as $,x as A,z as B,ut as C,it as D,Mt as E,p as F,h as G,D as H,st as I,R as J,q as K,Wn as L,rn as M,er as N,J as O,Ve as P,jt as Q,Ye as R,S,M as T,ot as U,Re as V,Zn as W,Ut as X,tr as Y,Pe as Z,ne as _,Tr as a,pr as a$,$n as a0,he as a1,Qn as a2,Yn as a3,Rn as a4,v as a5,nr as a6,ze as a7,Xt as a8,rt as a9,ir as aA,Nn as aB,Un as aC,Er as aD,br as aE,cr as aF,sr as aG,Hn as aH,V as aI,gr as aJ,Ze as aK,Ht as aL,b as aM,mr as aN,or as aO,$t as aP,hr as aQ,et as aR,Sr as aS,yr as aT,Et as aU,fr as aV,ur as aW,dr as aX,lr as aY,He as aZ,_r as a_,tn as aa,Bn as ab,An as ac,jn as ad,qn as ae,oe as af,vn as ag,Ie as ah,Kn as ai,Jn as aj,Xn as ak,Mn as al,fe as am,Fn as an,_e as ao,rr as ap,Dn as aq,In as ar,kn as as,Wt as at,Qt as au,ye as av,Gn as aw,de as ax,ar as ay,Pn as az,Or as b,fn as b0,xr as b1,yn as b2,w as b3,mn as b4,wr as c,_n as d,ct as e,Cr as f,pn as g,H as h,wn as i,Y as j,Ot as k,m as l,ge as m,Ln as n,ft as o,Dt as p,d as q,On as r,Kt as s,A as t,Sn as u,se as v,B as w,zn as x,Vn as y,T as z};
7
+ //# sourceMappingURL=user.YHDZ_9fW.js.map