@wix/cli-app 1.1.17 → 1.1.19

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 (120) hide show
  1. package/build/CreateVersionCommand-3UL6NYDF.js +4 -0
  2. package/build/{CreateVersionCommand-F7A6HDJI.js.map → CreateVersionCommand-3UL6NYDF.js.map} +1 -1
  3. package/build/DevCommand-GD7XT72H.js +4 -0
  4. package/build/DevCommand-GD7XT72H.js.map +1 -0
  5. package/build/GenerateCommand-YW37BTUB.js +99 -0
  6. package/build/GenerateCommand-YW37BTUB.js.map +1 -0
  7. package/build/PreviewCommand-HDEZ6LT3.js +4 -0
  8. package/build/{ServeCommand-Z5NQEEE5.js → ServeCommand-YRMZVHZN.js} +2 -2
  9. package/build/ServeCommand-YRMZVHZN.js.map +1 -0
  10. package/build/build-FJMITZHU.js +4 -0
  11. package/build/build-FJMITZHU.js.map +1 -0
  12. package/build/chunk-4VOJ4MBF.js +4 -0
  13. package/build/chunk-4VOJ4MBF.js.map +1 -0
  14. package/build/{chunk-QW5H4VGJ.js → chunk-56GO226U.js} +2 -2
  15. package/build/chunk-56GO226U.js.map +1 -0
  16. package/build/chunk-6U7WFIFR.js +87 -0
  17. package/build/chunk-6U7WFIFR.js.map +1 -0
  18. package/build/chunk-CXTD4ANR.js +4 -0
  19. package/build/{chunk-S7NF452E.js → chunk-EL4LLNE3.js} +2 -2
  20. package/build/chunk-EVTSTCPY.js +4 -0
  21. package/build/chunk-EVTSTCPY.js.map +1 -0
  22. package/build/chunk-FMEEFVFZ.js +4 -0
  23. package/build/chunk-FMEEFVFZ.js.map +1 -0
  24. package/build/chunk-I4ARVL5S.js +6 -0
  25. package/build/chunk-I4ARVL5S.js.map +1 -0
  26. package/build/chunk-KF76KJSL.js +4 -0
  27. package/build/chunk-KF76KJSL.js.map +1 -0
  28. package/build/chunk-L47BPWKS.js +23 -0
  29. package/build/chunk-L47BPWKS.js.map +1 -0
  30. package/build/chunk-LINHFSVS.js +4 -0
  31. package/build/{chunk-G7NSXRI7.js.map → chunk-LINHFSVS.js.map} +1 -1
  32. package/build/chunk-LKXDY7ME.js +27 -0
  33. package/build/chunk-LKXDY7ME.js.map +1 -0
  34. package/build/chunk-MNS7PUKJ.js +11 -0
  35. package/build/chunk-MNS7PUKJ.js.map +1 -0
  36. package/build/{chunk-7TOOBLT6.js → chunk-POJEX3XJ.js} +12 -12
  37. package/build/chunk-POJEX3XJ.js.map +1 -0
  38. package/build/chunk-PWKG7UKK.js +4 -0
  39. package/build/{chunk-ZIVYB6TM.js.map → chunk-PWKG7UKK.js.map} +1 -1
  40. package/build/{chunk-RYS7G2PY.js → chunk-QLWXUOAT.js} +2 -2
  41. package/build/{chunk-3EQ4ZYU2.js → chunk-QOQRQIMF.js} +2 -2
  42. package/build/chunk-QZS4ARDD.js +4 -0
  43. package/build/chunk-QZS4ARDD.js.map +1 -0
  44. package/build/chunk-RJKCVYVO.js +73 -0
  45. package/build/chunk-RJKCVYVO.js.map +1 -0
  46. package/build/{chunk-JIUANWPO.js → chunk-TPV6MPZ4.js} +2 -2
  47. package/build/{chunk-PSXIV7FJ.js → chunk-V35F6N6Y.js} +2 -2
  48. package/build/{chunk-HFDLXX7R.js → chunk-V4TR6DCM.js} +1 -1
  49. package/build/{chunk-GHVN7KTY.js → chunk-YE7MFP76.js} +2 -2
  50. package/build/chunk-YE7MFP76.js.map +1 -0
  51. package/build/{devtools-WFBFD7GB.js → devtools-WDPQJNQZ.js} +2 -2
  52. package/build/{devtools-WFBFD7GB.js.map → devtools-WDPQJNQZ.js.map} +1 -1
  53. package/build/{esm-CECOC7V2.js → esm-MUZJUC5Q.js} +4 -4
  54. package/build/esm-MUZJUC5Q.js.map +1 -0
  55. package/build/index.js +14 -14
  56. package/build/index.js.map +1 -1
  57. package/build/preview-3ZAXKZ4E.js +4 -0
  58. package/build/preview-3ZAXKZ4E.js.map +1 -0
  59. package/build/{render-command-JEBHYUZV.js → render-command-SBXRR4MG.js} +2 -2
  60. package/build/{types.impl-HD4UTKFC.js → types.impl-V4PI7Z6L.js} +2 -2
  61. package/build/types.impl-V4PI7Z6L.js.map +1 -0
  62. package/package.json +8 -7
  63. package/schemas/custom-element.json +1 -1
  64. package/schemas/dashboard-menu-plugin.json +1 -1
  65. package/schemas/dashboard-modal.json +1 -1
  66. package/schemas/dashboard-page.json +1 -1
  67. package/schemas/dashboard-plugin.json +1 -1
  68. package/schemas/embedded-script.json +1 -1
  69. package/schemas/wix-config.json +1 -1
  70. package/templates/custom-element/element.tsx.ejs +27 -4
  71. package/templates/custom-element/panel.tsx.ejs +45 -6
  72. package/build/CreateVersionCommand-F7A6HDJI.js +0 -4
  73. package/build/DevCommand-KHV22E2S.js +0 -4
  74. package/build/DevCommand-KHV22E2S.js.map +0 -1
  75. package/build/GenerateCommand-46EMTVWN.js +0 -99
  76. package/build/GenerateCommand-46EMTVWN.js.map +0 -1
  77. package/build/PreviewCommand-XX7TWOJR.js +0 -4
  78. package/build/PreviewCommand-XX7TWOJR.js.map +0 -1
  79. package/build/ServeCommand-Z5NQEEE5.js.map +0 -1
  80. package/build/build-WOV3ZNZF.js +0 -4
  81. package/build/build-WOV3ZNZF.js.map +0 -1
  82. package/build/chunk-4NIGEF2O.js +0 -87
  83. package/build/chunk-4NIGEF2O.js.map +0 -1
  84. package/build/chunk-62RRZRN6.js +0 -6
  85. package/build/chunk-62RRZRN6.js.map +0 -1
  86. package/build/chunk-7IB3ZF3I.js +0 -4
  87. package/build/chunk-7IB3ZF3I.js.map +0 -1
  88. package/build/chunk-7TOOBLT6.js.map +0 -1
  89. package/build/chunk-CUWQRNQL.js +0 -4
  90. package/build/chunk-EH27FYQH.js +0 -4
  91. package/build/chunk-EH27FYQH.js.map +0 -1
  92. package/build/chunk-G7NSXRI7.js +0 -4
  93. package/build/chunk-GHVN7KTY.js.map +0 -1
  94. package/build/chunk-KK4X6NH5.js +0 -4
  95. package/build/chunk-KK4X6NH5.js.map +0 -1
  96. package/build/chunk-LT3WXWI5.js +0 -23
  97. package/build/chunk-LT3WXWI5.js.map +0 -1
  98. package/build/chunk-LW6PZKOJ.js +0 -27
  99. package/build/chunk-LW6PZKOJ.js.map +0 -1
  100. package/build/chunk-LZ4SXWLW.js +0 -11
  101. package/build/chunk-LZ4SXWLW.js.map +0 -1
  102. package/build/chunk-QW5H4VGJ.js.map +0 -1
  103. package/build/chunk-RWN7XXN6.js +0 -4
  104. package/build/chunk-RWN7XXN6.js.map +0 -1
  105. package/build/chunk-YWJFUO7I.js +0 -73
  106. package/build/chunk-YWJFUO7I.js.map +0 -1
  107. package/build/chunk-ZIVYB6TM.js +0 -4
  108. package/build/esm-CECOC7V2.js.map +0 -1
  109. package/build/preview-FV7ZP3YC.js +0 -4
  110. package/build/preview-FV7ZP3YC.js.map +0 -1
  111. package/schemas/dashboard-sidebar-category.json +0 -1
  112. /package/build/{types.impl-HD4UTKFC.js.map → PreviewCommand-HDEZ6LT3.js.map} +0 -0
  113. /package/build/{chunk-CUWQRNQL.js.map → chunk-CXTD4ANR.js.map} +0 -0
  114. /package/build/{chunk-S7NF452E.js.map → chunk-EL4LLNE3.js.map} +0 -0
  115. /package/build/{chunk-RYS7G2PY.js.map → chunk-QLWXUOAT.js.map} +0 -0
  116. /package/build/{chunk-3EQ4ZYU2.js.map → chunk-QOQRQIMF.js.map} +0 -0
  117. /package/build/{chunk-JIUANWPO.js.map → chunk-TPV6MPZ4.js.map} +0 -0
  118. /package/build/{chunk-PSXIV7FJ.js.map → chunk-V35F6N6Y.js.map} +0 -0
  119. /package/build/{chunk-HFDLXX7R.js.map → chunk-V4TR6DCM.js.map} +0 -0
  120. /package/build/{render-command-JEBHYUZV.js.map → render-command-SBXRR4MG.js.map} +0 -0
@@ -1,12 +1,12 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- import{d as Xc,h as f}from"./chunk-HFDLXX7R.js";f();f();f();f();f();f();var Zc=Object.prototype.toString;function ut(e){switch(Zc.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Be(e,Error)}}function Tn(e,t){return Zc.call(e)===`[object ${t}]`}function In(e){return Tn(e,"ErrorEvent")}function So(e){return Tn(e,"DOMError")}function ls(e){return Tn(e,"DOMException")}function Se(e){return Tn(e,"String")}function vn(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Vt(e){return e===null||vn(e)||typeof e!="object"&&typeof e!="function"}function Fe(e){return Tn(e,"Object")}function Kt(e){return typeof Event<"u"&&Be(e,Event)}function ds(e){return typeof Element<"u"&&Be(e,Element)}function fs(e){return Tn(e,"RegExp")}function ze(e){return!!(e&&e.then&&typeof e.then=="function")}function ps(e){return Fe(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function ar(e){return typeof e=="number"&&e!==e}function Be(e,t){try{return e instanceof t}catch{return!1}}function cr(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}f();function lt(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function ur(e,t){let n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);let o=Math.max(t-60,0);o<5&&(o=0);let i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n}function Jt(e,t){if(!Array.isArray(e))return"";let n=[];for(let r=0;r<e.length;r++){let o=e[r];try{cr(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Qc(e,t,n=!1){return Se(e)?fs(t)?t.test(e):Se(t)?n?e===t:e.includes(t):!1:!1}function dt(e,t=[],n=!1){return t.some(r=>Qc(e,r,n))}function lr(e,t,n=250,r,o,i,s){if(!i.exception||!i.exception.values||!s||!Be(s.originalException,Error))return;let a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=dm(ms(e,t,o,s.originalException,r,i.exception.values,a,0),n))}function ms(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(Be(r[o],Error)){eu(s,a);let u=e(t,r[o]),l=c.length;tu(u,o,l,a),c=ms(e,t,n,r[o],o,[u,...c],u,l)}return Array.isArray(r.errors)&&r.errors.forEach((u,l)=>{if(Be(u,Error)){eu(s,a);let d=e(t,u),p=c.length;tu(d,`errors[${l}]`,p,a),c=ms(e,t,n,u,o,[d,...c],d,p)}}),c}function eu(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function tu(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function dm(e,t){return e.map(n=>(n.value&&(n.value=lt(n.value,t)),n))}f();f();function Eo(e){return e&&e.Math==Math?e:void 0}var C=typeof globalThis=="object"&&Eo(globalThis)||typeof window=="object"&&Eo(window)||typeof self=="object"&&Eo(self)||typeof global=="object"&&Eo(global)||function(){return this}()||{};function Xt(){return C}function dr(e,t,n){let r=n||C,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}var xn=Xt(),fm=80;function He(e,t={}){if(!e)return"<unknown>";try{let n=e,r=5,o=[],i=0,s=0,a=" > ",c=a.length,u,l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||fm;for(;n&&i++<r&&(u=pm(n,l),!(u==="html"||i>1&&s+o.length*c+u.length>=d));)o.push(u),s+=u.length,n=n.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function pm(e,t){let n=e,r=[],o,i,s,a,c;if(!n||!n.tagName)return"";if(xn.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());let u=t&&t.length?t.filter(d=>n.getAttribute(d)).map(d=>[d,n.getAttribute(d)]):null;if(u&&u.length)u.forEach(d=>{r.push(`[${d[0]}="${d[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&Se(o))for(i=o.split(/\s+/),c=0;c<i.length;c++)r.push(`.${i[c]}`);let l=["aria-label","type","name","title","alt"];for(c=0;c<l.length;c++)s=l[c],a=n.getAttribute(s),a&&r.push(`[${s}="${a}"]`);return r.join("")}function fr(){try{return xn.document.location.href}catch{return""}}function pr(e){return xn.document&&xn.document.querySelector?xn.document.querySelector(e):null}function mr(e){if(!xn.HTMLElement)return null;let t=e,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}f();f();var je=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;f();var mm="Sentry Logger ",Zt=["debug","info","warn","error","log","assert","trace"],wn={};function Re(e){if(!("console"in C))return e();let t=C.console,n={},r=Object.keys(wn);r.forEach(o=>{let i=wn[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function hm(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return je?Zt.forEach(n=>{t[n]=(...r)=>{e&&Re(()=>{C.console[n](`${mm}[${n}]:`,...r)})}}):Zt.forEach(n=>{t[n]=()=>{}}),t}var h=hm();var gm=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function _m(e){return e==="http"||e==="https"}function Te(e,t=!1){let{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function bo(e){let t=gm.exec(e);if(!t){Re(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,o="",i,s="",a]=t.slice(1),c="",u=a,l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){let d=u.match(/^\d+/);d&&(u=d[0])}return nu({host:i,pass:o,path:c,projectId:u,port:s,protocol:n,publicKey:r})}function nu(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function ym(e){if(!je)return!0;let{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(h.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?_m(r)?t&&isNaN(parseInt(t,10))?(h.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(h.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(h.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function hr(e){let t=typeof e=="string"?bo(e):nu(e);if(!(!t||!ym(t)))return t}f();var Ee=class extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}};f();f();function Q(e,t,n){if(!(t in e))return;let r=e[t],o=n(r);typeof o=="function"&&To(o,r),e[t]=o}function ke(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{je&&h.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function To(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,ke(e,"__sentry_original__",t)}catch{}}function Qt(e){return e.__sentry_original__}function gs(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Io(e){if(ut(e))return{message:e.message,name:e.name,stack:e.stack,...ou(e)};if(Kt(e)){let t={type:e.type,target:ru(e.target),currentTarget:ru(e.currentTarget),...ou(e)};return typeof CustomEvent<"u"&&Be(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function ru(e){try{return ds(e)?He(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function ou(e){if(typeof e=="object"&&e!==null){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function _s(e,t=40){let n=Object.keys(Io(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return lt(n[0],t);for(let r=n.length;r>0;r--){let o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:lt(o,t)}return""}function J(e){return hs(e,new Map)}function hs(e,t){if(Sm(e)){let n=t.get(e);if(n!==void 0)return n;let r={};t.set(e,r);for(let o of Object.keys(e))typeof e[o]<"u"&&(r[o]=hs(e[o],t));return r}if(Array.isArray(e)){let n=t.get(e);if(n!==void 0)return n;let r=[];return t.set(e,r),e.forEach(o=>{r.push(hs(o,t))}),r}return e}function Sm(e){if(!Fe(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}f();f();var au=50,iu=/\(error: (.*)\)/,su=/captureMessage|captureException/;function vo(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{let o=[],i=n.split(`
3
+ import{d as Xc,h as f}from"./chunk-V4TR6DCM.js";f();f();f();f();f();f();var Zc=Object.prototype.toString;function ut(e){switch(Zc.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Be(e,Error)}}function Tn(e,t){return Zc.call(e)===`[object ${t}]`}function In(e){return Tn(e,"ErrorEvent")}function So(e){return Tn(e,"DOMError")}function ls(e){return Tn(e,"DOMException")}function Se(e){return Tn(e,"String")}function vn(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Vt(e){return e===null||vn(e)||typeof e!="object"&&typeof e!="function"}function Fe(e){return Tn(e,"Object")}function Kt(e){return typeof Event<"u"&&Be(e,Event)}function ds(e){return typeof Element<"u"&&Be(e,Element)}function fs(e){return Tn(e,"RegExp")}function ze(e){return!!(e&&e.then&&typeof e.then=="function")}function ps(e){return Fe(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function ar(e){return typeof e=="number"&&e!==e}function Be(e,t){try{return e instanceof t}catch{return!1}}function cr(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}f();function lt(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function ur(e,t){let n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);let o=Math.max(t-60,0);o<5&&(o=0);let i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n=`'{snip} ${n}`),i<r&&(n+=" {snip}"),n}function Jt(e,t){if(!Array.isArray(e))return"";let n=[];for(let r=0;r<e.length;r++){let o=e[r];try{cr(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Qc(e,t,n=!1){return Se(e)?fs(t)?t.test(e):Se(t)?n?e===t:e.includes(t):!1:!1}function dt(e,t=[],n=!1){return t.some(r=>Qc(e,r,n))}function lr(e,t,n=250,r,o,i,s){if(!i.exception||!i.exception.values||!s||!Be(s.originalException,Error))return;let a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=dm(ms(e,t,o,s.originalException,r,i.exception.values,a,0),n))}function ms(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(Be(r[o],Error)){eu(s,a);let u=e(t,r[o]),l=c.length;tu(u,o,l,a),c=ms(e,t,n,r[o],o,[u,...c],u,l)}return Array.isArray(r.errors)&&r.errors.forEach((u,l)=>{if(Be(u,Error)){eu(s,a);let d=e(t,u),p=c.length;tu(d,`errors[${l}]`,p,a),c=ms(e,t,n,u,o,[d,...c],d,p)}}),c}function eu(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function tu(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function dm(e,t){return e.map(n=>(n.value&&(n.value=lt(n.value,t)),n))}f();f();function Eo(e){return e&&e.Math==Math?e:void 0}var C=typeof globalThis=="object"&&Eo(globalThis)||typeof window=="object"&&Eo(window)||typeof self=="object"&&Eo(self)||typeof global=="object"&&Eo(global)||function(){return this}()||{};function Xt(){return C}function dr(e,t,n){let r=n||C,o=r.__SENTRY__=r.__SENTRY__||{};return o[e]||(o[e]=t())}var xn=Xt(),fm=80;function He(e,t={}){if(!e)return"<unknown>";try{let n=e,r=5,o=[],i=0,s=0,a=" > ",c=a.length,u,l=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||fm;for(;n&&i++<r&&(u=pm(n,l),!(u==="html"||i>1&&s+o.length*c+u.length>=d));)o.push(u),s+=u.length,n=n.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function pm(e,t){let n=e,r=[],o,i,s,a,c;if(!n||!n.tagName)return"";if(xn.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());let u=t&&t.length?t.filter(d=>n.getAttribute(d)).map(d=>[d,n.getAttribute(d)]):null;if(u&&u.length)u.forEach(d=>{r.push(`[${d[0]}="${d[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),o=n.className,o&&Se(o))for(i=o.split(/\s+/),c=0;c<i.length;c++)r.push(`.${i[c]}`);let l=["aria-label","type","name","title","alt"];for(c=0;c<l.length;c++)s=l[c],a=n.getAttribute(s),a&&r.push(`[${s}="${a}"]`);return r.join("")}function fr(){try{return xn.document.location.href}catch{return""}}function pr(e){return xn.document&&xn.document.querySelector?xn.document.querySelector(e):null}function mr(e){if(!xn.HTMLElement)return null;let t=e,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}f();f();var je=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;f();var mm="Sentry Logger ",Zt=["debug","info","warn","error","log","assert","trace"],wn={};function Re(e){if(!("console"in C))return e();let t=C.console,n={},r=Object.keys(wn);r.forEach(o=>{let i=wn[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function hm(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return je?Zt.forEach(n=>{t[n]=(...r)=>{e&&Re(()=>{C.console[n](`${mm}[${n}]:`,...r)})}}):Zt.forEach(n=>{t[n]=()=>{}}),t}var h=hm();var gm=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function _m(e){return e==="http"||e==="https"}function Te(e,t=!1){let{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function bo(e){let t=gm.exec(e);if(!t){Re(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,o="",i,s="",a]=t.slice(1),c="",u=a,l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){let d=u.match(/^\d+/);d&&(u=d[0])}return nu({host:i,pass:o,path:c,projectId:u,port:s,protocol:n,publicKey:r})}function nu(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function ym(e){if(!je)return!0;let{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(h.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?_m(r)?t&&isNaN(parseInt(t,10))?(h.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(h.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(h.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function hr(e){let t=typeof e=="string"?bo(e):nu(e);if(!(!t||!ym(t)))return t}f();var Ee=class extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}};f();f();function Q(e,t,n){if(!(t in e))return;let r=e[t],o=n(r);typeof o=="function"&&To(o,r),e[t]=o}function ke(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{je&&h.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function To(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,ke(e,"__sentry_original__",t)}catch{}}function Qt(e){return e.__sentry_original__}function gs(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Io(e){if(ut(e))return{message:e.message,name:e.name,stack:e.stack,...ou(e)};if(Kt(e)){let t={type:e.type,target:ru(e.target),currentTarget:ru(e.currentTarget),...ou(e)};return typeof CustomEvent<"u"&&Be(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function ru(e){try{return ds(e)?He(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function ou(e){if(typeof e=="object"&&e!==null){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function _s(e,t=40){let n=Object.keys(Io(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return lt(n[0],t);for(let r=n.length;r>0;r--){let o=n.slice(0,r).join(", ");if(!(o.length>t))return r===n.length?o:lt(o,t)}return""}function J(e){return hs(e,new Map)}function hs(e,t){if(Sm(e)){let n=t.get(e);if(n!==void 0)return n;let r={};t.set(e,r);for(let o of Object.keys(e))typeof e[o]<"u"&&(r[o]=hs(e[o],t));return r}if(Array.isArray(e)){let n=t.get(e);if(n!==void 0)return n;let r=[];return t.set(e,r),e.forEach(o=>{r.push(hs(o,t))}),r}return e}function Sm(e){if(!Fe(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}f();f();var au=50,iu=/\(error: (.*)\)/,su=/captureMessage|captureException/;function vo(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{let o=[],i=n.split(`
4
4
  `);for(let s=r;s<i.length;s++){let a=i[s];if(a.length>1024)continue;let c=iu.test(a)?a.replace(iu,"$1"):a;if(!c.match(/\S*Error: /)){for(let u of t){let l=u(c);if(l){o.push(l);break}}if(o.length>=au)break}}return cu(o)}}function Ss(e){return Array.isArray(e)?vo(...e):e}function cu(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),su.test(t[t.length-1].function||"")&&(t.pop(),su.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,au).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}var ys="<anonymous>";function Ae(e){try{return!e||typeof e!="function"?ys:e.name||ys}catch{return ys}}var xo={},uu={};function Oe(e,t){xo[e]=xo[e]||[],xo[e].push(t)}function Me(e,t){uu[e]||(t(),uu[e]=!0)}function me(e,t){let n=e&&xo[e];if(n)for(let r of n)try{r(t)}catch(o){je&&h.error(`Error while triggering instrumentation handler.
5
5
  Type: ${e}
6
6
  Name: ${Ae(r)}
7
7
  Error:`,o)}}function gr(e){let t="console";Oe(t,e),Me(t,Em)}function Em(){"console"in C&&Zt.forEach(function(e){e in C.console&&Q(C.console,e,function(t){return wn[e]=t,function(...n){me("console",{args:n,level:e});let o=wn[e];o&&o.apply(C.console,n)}})})}f();f();function B(){let e=C,t=e.crypto||e.msCrypto,n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{let 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 lu(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Qe(e){let{message:t,event_id:n}=e;if(t)return t;let r=lu(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Cn(e,t,n){let r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function Ue(e,t){let n=lu(e);if(!n)return;let r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){let i={...o&&o.data,...t.data};n.mechanism.data=i}}function Es(e,t,n=5){if(t.lineno===void 0)return;let r=e.length,o=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,o-n),o).map(i=>ur(i,0)),t.context_line=ur(e[Math.min(r-1,o)],t.colno||0),t.post_context=e.slice(Math.min(o+1,r),o+1+n).map(i=>ur(i,0))}function wo(e){if(e&&e.__sentry_captured__)return!0;try{ke(e,"__sentry_captured__",!0)}catch{}return!1}function _r(e){return Array.isArray(e)?e:[e]}var Rn=C,bm=1e3,du,bs,Ts;function yr(e){let t="dom";Oe(t,e),Me(t,Tm)}function Tm(){if(!Rn.document)return;let e=me.bind(null,"dom"),t=fu(e,!0);Rn.document.addEventListener("click",t,!1),Rn.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{let r=Rn[n]&&Rn[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Q(r,"addEventListener",function(o){return function(i,s,a){if(i==="click"||i=="keypress")try{let c=this,u=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},l=u[i]=u[i]||{refCount:0};if(!l.handler){let d=fu(e);l.handler=d,o.call(this,i,d,a)}l.refCount++}catch{}return o.call(this,i,s,a)}}),Q(r,"removeEventListener",function(o){return function(i,s,a){if(i==="click"||i=="keypress")try{let c=this,u=c.__sentry_instrumentation_handlers__||{},l=u[i];l&&(l.refCount--,l.refCount<=0&&(o.call(this,i,l.handler,a),l.handler=void 0,delete u[i]),Object.keys(u).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,s,a)}}))})}function Im(e){if(e.type!==bs)return!1;try{if(!e.target||e.target._sentryId!==Ts)return!1}catch{}return!0}function vm(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function fu(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=xm(n);if(vm(n.type,r))return;ke(n,"_sentryCaptured",!0),r&&!r._sentryId&&ke(r,"_sentryId",B());let o=n.type==="keypress"?"input":n.type;Im(n)||(e({event:n,name:o,global:t}),bs=n.type,Ts=r?r._sentryId:void 0),clearTimeout(du),du=Rn.setTimeout(()=>{Ts=void 0,bs=void 0},bm)}}function xm(e){try{return e.target}catch{return null}}f();f();var Co=Xt();function Ro(){if(!("fetch"in Co))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Sr(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Er(){if(typeof EdgeRuntime=="string")return!0;if(!Ro())return!1;if(Sr(Co.fetch))return!0;let e=!1,t=Co.document;if(t&&typeof t.createElement=="function")try{let n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=Sr(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){je&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Is(){return"ReportingObserver"in Co}function bt(e){let t="fetch";Oe(t,e),Me(t,wm)}function wm(){Er()&&Q(C,"fetch",function(e){return function(...t){let{method:n,url:r}=Cm(t),o={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return me("fetch",{...o}),e.apply(C,t).then(i=>{let s={...o,endTimestamp:Date.now(),response:i};return me("fetch",s),i},i=>{let s={...o,endTimestamp:Date.now(),error:i};throw me("fetch",s),i})}})}function vs(e,t){return!!e&&typeof e=="object"&&!!e[t]}function pu(e){return typeof e=="string"?e:e?vs(e,"url")?e.url:e.toString?e.toString():"":""}function Cm(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){let[n,r]=e;return{url:pu(n),method:vs(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:pu(t),method:vs(t,"method")?String(t.method).toUpperCase():"GET"}}f();var ko=null;function br(e){let t="error";Oe(t,e),Me(t,Rm)}function Rm(){ko=C.onerror,C.onerror=function(e,t,n,r,o){return me("error",{column:r,error:o,line:n,msg:e,url:t}),ko&&!ko.__SENTRY_LOADER__?ko.apply(this,arguments):!1},C.onerror.__SENTRY_INSTRUMENTED__=!0}f();var Ao=null;function Tr(e){let t="unhandledrejection";Oe(t,e),Me(t,km)}function km(){Ao=C.onunhandledrejection,C.onunhandledrejection=function(e){return me("unhandledrejection",e),Ao&&!Ao.__SENTRY_LOADER__?Ao.apply(this,arguments):!0},C.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}f();f();var Oo=Xt();function mu(){let e=Oo.chrome,t=e&&e.app&&e.app.runtime,n="history"in Oo&&!!Oo.history.pushState&&!!Oo.history.replaceState;return!t&&n}var Ir=C,Mo;function et(e){let t="history";Oe(t,e),Me(t,Am)}function Am(){if(!mu())return;let e=Ir.onpopstate;Ir.onpopstate=function(...n){let r=Ir.location.href,o=Mo;if(Mo=r,me("history",{from:o,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){let o=r.length>2?r[2]:void 0;if(o){let i=Mo,s=String(o);Mo=s,me("history",{from:i,to:s})}return n.apply(this,r)}}Q(Ir.history,"pushState",t),Q(Ir.history,"replaceState",t)}f();var Om=C,Ne="__sentry_xhr_v3__";function Tt(e){let t="xhr";Oe(t,e),Me(t,Mm)}function Mm(){if(!Om.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;Q(e,"open",function(t){return function(...n){let r=Date.now(),o=Se(n[0])?n[0].toUpperCase():void 0,i=Nm(n[1]);if(!o||!i)return t.apply(this,n);this[Ne]={method:o,url:i,request_headers:{}},o==="POST"&&i.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let s=()=>{let a=this[Ne];if(a&&this.readyState===4){try{a.status_code=this.status}catch{}let c={args:[o,i],endTimestamp:Date.now(),startTimestamp:r,xhr:this};me("xhr",c)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Q(this,"onreadystatechange",function(a){return function(...c){return s(),a.apply(this,c)}}):this.addEventListener("readystatechange",s),Q(this,"setRequestHeader",function(a){return function(...c){let[u,l]=c,d=this[Ne];return d&&Se(u)&&Se(l)&&(d.request_headers[u.toLowerCase()]=l),a.apply(this,c)}}),t.apply(this,n)}}),Q(e,"send",function(t){return function(...n){let r=this[Ne];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);let o={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return me("xhr",o),t.apply(this,n)}})}function Nm(e){if(Se(e))return e;try{return e.toString()}catch{}}f();f();f();function xs(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function ws(){return"npm"}function hu(){return!xs()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function kn(){return typeof window<"u"&&(!hu()||Dm())}function Dm(){return C.process!==void 0&&C.process.type==="renderer"}f();function gu(){let e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(o){if(e)return t.has(o)?!0:(t.add(o),!1);for(let i=0;i<t.length;i++)if(t[i]===o)return!0;return t.push(o),!1}function r(o){if(e)t.delete(o);else for(let i=0;i<t.length;i++)if(t[i]===o){t.splice(i,1);break}}return[n,r]}f();function be(e,t=100,n=1/0){try{return No("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Do(e,t=3,n=100*1024){let r=be(e,t);return Bm(r)>n?Do(e,t-1,n):r}function No(e,t,n=1/0,r=1/0,o=gu()){let[i,s]=o;if(t==null||["number","boolean","string"].includes(typeof t)&&!ar(t))return t;let a=Lm(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;let 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 ~]";let u=t;if(u&&typeof u.toJSON=="function")try{let m=u.toJSON();return No("",m,c-1,r,o)}catch{}let l=Array.isArray(t)?[]:{},d=0,p=Io(t);for(let m in p){if(!Object.prototype.hasOwnProperty.call(p,m))continue;if(d>=r){l[m]="[MaxProperties ~]";break}let g=p[m];l[m]=No(m,g,c-1,r,o),d++}return s(t),l}function Lm(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(cr(t))return"[VueViewModel]";if(ps(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${Ae(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;let n=Pm(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Pm(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Fm(e){return~-encodeURI(e).split(/%..|./).length}function Bm(e){return Fm(JSON.stringify(e))}f();function Hm(e,t){let n=0;for(let r=e.length-1;r>=0;r--){let o=e[r];o==="."?e.splice(r,1):o===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var Um=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function $m(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=Um.exec(t);return n?n.slice(1):[]}function Cs(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let o=r>=0?e[r]:"/";o&&(t=`${o}/${t}`,n=o.charAt(0)==="/")}return t=Hm(t.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+t||"."}function _u(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 Rs(e,t){e=Cs(e).slice(1),t=Cs(t).slice(1);let n=_u(e.split("/")),r=_u(t.split("/")),o=Math.min(n.length,r.length),i=o;for(let a=0;a<o;a++)if(n[a]!==r[a]){i=a;break}let s=[];for(let a=i;a<n.length;a++)s.push("..");return s=s.concat(r.slice(i)),s.join("/")}function ks(e,t){let n=$m(e)[2];return t&&n.slice(t.length*-1)===t&&(n=n.slice(0,n.length-t.length)),n}f();f();var It;(function(e){e[e.PENDING=0]="PENDING";let n=1;e[e.RESOLVED=n]="RESOLVED";let r=2;e[e.REJECTED=r]="REJECTED"})(It||(It={}));function tt(e){return new $e(t=>{t(e)})}function en(e){return new $e((t,n)=>{n(e)})}var $e=class e{constructor(t){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=It.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new e((r,o)=>{this._handlers.push([!1,i=>{if(!t)r(i);else try{r(t(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{r(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new e((n,r)=>{let o,i;return this.then(s=>{i=!1,o=s,t&&t()},s=>{i=!0,o=s,t&&t()}).then(()=>{if(i){r(o);return}n(o)})})}__init(){this._resolve=t=>{this._setResult(It.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(It.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===It.PENDING){if(ze(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===It.PENDING)return;let t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===It.RESOLVED&&n[1](this._value),this._state===It.REJECTED&&n[2](this._value),n[0]=!0)})}}};function As(e){let t=[];function n(){return e===void 0||t.length<e}function r(s){return t.splice(t.indexOf(s),1)[0]}function o(s){if(!n())return en(new Ee("Not adding Promise because buffer limit was reached."));let a=s();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function i(s){return new $e((a,c)=>{let u=t.length;if(!u)return a(!0);let l=setTimeout(()=>{s&&s>0&&a(!1)},s);t.forEach(d=>{tt(d).then(()=>{--u||(clearTimeout(l),a(!0))},c)})})}return{$:t,add:o,drain:i}}f();function qe(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 Os(e){return e.split(/[\?#]/,1)[0]}f();var yu=["fatal","error","warning","log","info","debug"];function vr(e){return e==="warn"?"warning":yu.includes(e)?e:"log"}f();var Su=1e3;function ft(){return Date.now()/Su}function Gm(){let{performance:e}=C;if(!e||!e.now)return ft;let t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Su}var Ie=Gm();var xr,re=(()=>{let{performance:e}=C;if(!e||!e.now){xr="none";return}let t=3600*1e3,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,s=e.timing&&e.timing.navigationStart,c=typeof s=="number"?Math.abs(s+n-r):t,u=c<t;return i||u?o<=c?(xr="timeOrigin",e.timeOrigin):(xr="navigationStart",s):(xr="dateNow",r)})();f();f();var An="baggage",Ms="sentry-",bu=/^sentry-/,Tu=8192;function Lo(e){if(!Se(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((r,o)=>{let i=Eu(o);for(let s of Object.keys(i))r[s]=i[s];return r},{});else{if(!e)return;t=Eu(e)}let n=Object.entries(t).reduce((r,[o,i])=>{if(o.match(bu)){let s=o.slice(Ms.length);r[s]=i}return r},{});if(Object.keys(n).length>0)return n}function wr(e){if(!e)return;let t=Object.entries(e).reduce((n,[r,o])=>(o&&(n[`${Ms}${r}`]=o),n),{});return Wm(t)}function Eu(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function Wm(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],o)=>{let i=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=o===0?i:`${t},${i}`;return s.length>Tu?(je&&h.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}var Iu=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Cr(e){if(!e)return;let t=e.match(Iu);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 Ns(e,t){let n=Cr(e),r=Lo(t),{traceId:o,parentSpanId:i,parentSampled:s}=n||{};return n?{traceparentData:n,dynamicSamplingContext:r||{},propagationContext:{traceId:o||B(),parentSpanId:i||B().substring(16),spanId:B().substring(16),sampled:s,dsc:r||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:o||B(),spanId:B().substring(16)}}}function Rr(e,t){let n=Cr(e),r=Lo(t),{traceId:o,parentSpanId:i,parentSampled:s}=n||{};return n?{traceId:o||B(),parentSpanId:i||B().substring(16),spanId:B().substring(16),sampled:s,dsc:r||{}}:{traceId:o||B(),spanId:B().substring(16)}}function tn(e=B(),t=B().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}f();function he(e,t=[]){return[e,t]}function Ls(e,t){let[n,r]=e;return[n,[...r,t]]}function nt(e,t){let n=e[1];for(let r of n){let o=r[0].type;if(t(r,o))return!0}return!1}function Ps(e,t){return nt(e,(n,r)=>t.includes(r))}function Ds(e,t){return(t||new TextEncoder).encode(e)}function kr(e,t){let[n,r]=e,o=JSON.stringify(n);function i(s){typeof o=="string"?o=typeof s=="string"?o+s:[Ds(o,t),s]:o.push(typeof s=="string"?Ds(s,t):s)}for(let s of r){let[a,c]=s;if(i(`
8
8
  ${JSON.stringify(a)}
9
- `),typeof c=="string"||c instanceof Uint8Array)i(c);else{let u;try{u=JSON.stringify(c)}catch{u=JSON.stringify(be(c))}i(u)}}return typeof o=="string"?o:zm(o)}function zm(e){let t=e.reduce((o,i)=>o+i.length,0),n=new Uint8Array(t),r=0;for(let o of e)n.set(o,r),r+=o.length;return n}function Fs(e,t,n){let r=typeof e=="string"?t.encode(e):e;function o(c){let u=r.subarray(0,c);return r=r.subarray(c+1),u}function i(){let c=r.indexOf(10);return c<0&&(c=r.length),JSON.parse(n.decode(o(c)))}let s=i(),a=[];for(;r.length;){let c=i(),u=typeof c.length=="number"?c.length:void 0;a.push([c,u?o(u):i()])}return[s,a]}function Bs(e,t){let n=typeof e.data=="string"?Ds(e.data,t):e.data;return[J({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var jm={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Po(e){return jm[e]}function On(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function Ar(e,t,n,r){let o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Te(r)},...o&&{trace:J({...o})}}}f();function Hs(e,t,n){let r=[{type:"client_report"},{timestamp:n||ft(),discarded_events:e}];return he(t?{dsn:t}:{},[r])}f();function Fo(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function vu(e,t){return e[t]||e.all||0}function Or(e,t,n=Date.now()){return vu(e,t)>n}function Mr(e,{statusCode:t,headers:n},r=Date.now()){let o={...e},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(let a of i.trim().split(",")){let[c,u,,,l]=a.split(":",5),d=parseInt(c,10),p=(isNaN(d)?60:d)*1e3;if(!u)o.all=r+p;else for(let m of u.split(";"))m==="metric_bucket"?(!l||l.split(";").includes("custom"))&&(o[m]=r+p):o[m]=r+p}else s?o.all=r+Fo(s,r):t===429&&(o.all=r+60*1e3);return o}f();function xu(e,t){return e(t.stack||"",1)}function Us(e,t){let n={type:t.name||t.constructor.name,value:t.message},r=xu(e,t);return r.length&&(n.stacktrace={frames:r}),n}f();function $s(e,t){return e??t()}f();function nn(e){let t,n=e[0],r=1;for(;r<e.length;){let o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}f();var I=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;f();f();var rt="production";f();f();function Nr(){return dr("globalEventProcessors",()=>[])}function Bo(e){Nr().push(e)}function rn(e,t,n,r=0){return new $e((o,i)=>{let s=e[r];if(t===null||typeof s!="function")o(t);else{let a=s({...t},n);I&&s.id&&a===null&&h.log(`Event processor "${s.id}" dropped event`),ze(a)?a.then(c=>rn(e,c,n,r+1).then(o)).then(null,i):rn(e,a,n,r+1).then(o).then(null,i)}})}f();function Ho(e){let t=Ie(),n={sid:B(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>qm(n)};return e&&ot(n,e),n}function ot(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||Ie(),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:B()),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{let 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 Uo(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),ot(e,n)}function qm(e){return J({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}})}f();f();f();f();f();var Cu=0,Gs=1;function on(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,tags:a,origin:c}=P(e);return J({data:r,op:o,parent_span_id:i,span_id:t,status:s,tags:a,trace_id:n,origin:c})}function vt(e){let{traceId:t,spanId:n}=e.spanContext(),r=Mn(e);return tn(t,n,r)}function Ot(e){return typeof e=="number"?wu(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?wu(e.getTime()):Ie()}function wu(e){return e>9999999999?e/1e3:e}function P(e){return Ym(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function Ym(e){return typeof e.getSpanJSON=="function"}function Mn(e){let{traceFlags:t}=e.spanContext();return!!(t&Gs)}function sn(e,t,n,r,o,i){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||B(),timestamp:t.timestamp||ft()},u=n.integrations||e.integrations.map(T=>T.name);Vm(c,e),Xm(c,u),t.type===void 0&&Km(c,e.stackParser);let l=Qm(r,n.captureContext);n.mechanism&&Ue(c,n.mechanism);let d=o&&o.getEventProcessors?o.getEventProcessors():[],p=zs().getScopeData();if(i){let T=i.getScopeData();Ws(p,T)}if(l){let T=l.getScopeData();Ws(p,T)}let m=[...n.attachments||[],...p.attachments];m.length&&(n.attachments=m),$o(c,p);let g=[...d,...Nr(),...p.eventProcessors];return rn(g,c,n).then(T=>(T&&Jm(T),typeof s=="number"&&s>0?Zm(T,s,a):T))}function Vm(e,t){let{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:rt),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&o!==void 0&&(e.dist=o),e.message&&(e.message=lt(e.message,i));let s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=lt(s.value,i));let a=e.request;a&&a.url&&(a.url=lt(a.url,i))}var Ru=new WeakMap;function Km(e,t){let n=C._sentryDebugIds;if(!n)return;let r,o=Ru.get(t);o?r=o:(r=new Map,Ru.set(t,r));let i=Object.keys(n).reduce((s,a)=>{let c,u=r.get(a);u?c=u:(c=t(a),r.set(a,c));for(let l=c.length-1;l>=0;l--){let d=c[l];if(d.filename){s[d.filename]=n[a];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=i[a.filename])})})}catch{}}function Jm(e){let t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function Xm(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Zm(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:be(o.data,t,n)}}))},...e.user&&{user:be(e.user,t,n)},...e.contexts&&{contexts:be(e.contexts,t,n)},...e.extra&&{extra:be(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=be(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>{let i=P(o).data;return i&&(o.data=be(i,t,n)),o})),r}function Qm(e,t){if(!t)return e;let n=e?e.clone():new it;return n.update(t),n}function ku(e){if(e)return eh(e)?{captureContext:e}:nh(e)?{captureContext:e}:e}function eh(e){return e instanceof it||typeof e=="function"}var th=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function nh(e){return Object.keys(e).some(t=>th.includes(t))}function xt(e,t){return W().captureException(e,ku(t))}function an(e,t){let n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return W().captureMessage(e,n,r)}function Mt(e,t){return W().captureEvent(e,t)}function Au(e){W().configureScope(e)}function Ye(e,t){W().addBreadcrumb(e,t)}function Go(e,t){W().setContext(e,t)}function Ou(e){W().setExtras(e)}function Mu(e,t){W().setExtra(e,t)}function Nu(e){W().setTags(e)}function Du(e,t){W().setTag(e,t)}function Lu(e){W().setUser(e)}function De(...e){let t=W();if(e.length===2){let[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function Pu(e){return cn(()=>e(ge()))}function Fu(e,t){return De(n=>(n.setSpan(e),t(n)))}function Bu(e,t){return W().startTransaction({...e},t)}async function Hu(e){let t=x();return t?t.flush(e):(I&&h.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function Uu(e){let t=x();return t?t.close(e):(I&&h.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function $u(){return W().lastEventId()}function x(){return W().getClient()}function Gu(){return!!x()}function q(){return W().getScope()}function Dr(e){let t=x(),n=ge(),r=q(),{release:o,environment:i=rt}=t&&t.getOptions()||{},{userAgent:s}=C.navigator||{},a=Ho({release:o,environment:i,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),c=n.getSession();return c&&c.status==="ok"&&ot(c,{status:"exited"}),Wo(),n.setSession(a),r.setSession(a),a}function Wo(){let e=ge(),t=q(),n=t.getSession()||e.getSession();n&&Uo(n),Wu(),e.setSession(),t.setSession()}function Wu(){let e=ge(),t=q(),n=x(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function Lr(e=!1){if(e){Wo();return}Wu()}f();function un(e){return e.transaction}function Nt(e,t,n){let r=t.getOptions(),{publicKey:o}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},s=J({environment:r.environment||rt,release:r.release,user_segment:i,public_key:o,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function Ve(e){let t=x();if(!t)return{};let n=Nt(P(e).trace_id||"",t,q()),r=un(e);if(!r)return n;let o=r&&r._frozenDynamicSamplingContext;if(o)return o;let{sampleRate:i,source:s}=r.metadata;i!=null&&(n.sample_rate=`${i}`);let a=P(r);return s&&s!=="url"&&(n.transaction=a.description),n.sampled=String(Mn(r)),t.emit&&t.emit("createDsc",n),n}function $o(e,t){let{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;rh(e,t),r&&sh(e,r),ah(e,n),oh(e,o),ih(e,i)}function Ws(e,t){let{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:d,propagationContext:p,transactionName:m,span:g}=t;Pr(e,"extra",n),Pr(e,"tags",r),Pr(e,"user",o),Pr(e,"contexts",i),Pr(e,"sdkProcessingMetadata",a),s&&(e.level=s),m&&(e.transactionName=m),g&&(e.span=g),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function Pr(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(let r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function rh(e,t){let{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t,c=J(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});let u=J(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});let l=J(o);l&&Object.keys(l).length&&(e.user={...l,...e.user});let d=J(i);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),s&&(e.level=s),a&&(e.transaction=a)}function oh(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function ih(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function sh(e,t){e.contexts={trace:on(t),...e.contexts};let n=un(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Ve(t),...e.sdkProcessingMetadata};let r=P(n).description;r&&(e.tags={transaction:r,...e.tags})}}function ah(e,t){e.fingerprint=e.fingerprint?_r(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}var ch=100,js,it=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=zu()}static clone(t){return t?t.clone():new e}clone(){let t=new e;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&&ot(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(){let 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;let n=typeof t=="function"?t(this):t;if(n instanceof e){let 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(Fe(n)){let 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=zu(),this}addBreadcrumb(t,n){let r=typeof n=="number"?n:ch;if(r<=0)return this;let o={timestamp:ft(),...t},i=this._breadcrumbs;return i.push(o),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(){let{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:o,_extra:i,_user:s,_level:a,_fingerprint:c,_eventProcessors:u,_propagationContext:l,_sdkProcessingMetadata:d,_transactionName:p,_span:m}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:o,extra:i,user:s,level:a,fingerprint:c||[],eventProcessors:u,propagationContext:l,sdkProcessingMetadata:d,transactionName:p,span:m}}applyToEvent(t,n={},r=[]){$o(t,this.getScopeData());let o=[...r,...Nr(),...this._eventProcessors];return rn(o,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){let r=n&&n.event_id?n.event_id:B();if(!this._client)return h.warn("No client configured on scope - will not capture exception!"),r;let o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){let o=r&&r.event_id?r.event_id:B();if(!this._client)return h.warn("No client configured on scope - will not capture message!"),o;let i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o},this),o}captureEvent(t,n){let r=n&&n.event_id?n.event_id:B();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(h.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 zs(){return js||(js=new it),js}function zu(){return{traceId:B(),spanId:B().substring(16)}}f();var ln="7.114.0";var ju=parseFloat(ln),uh=100,Nn=class{constructor(t,n,r,o=ju){this._version=o;let i;n?i=n:(i=new it,i.setClient(t));let s;r?s=r:(s=new it,s.setClient(t)),this._stack=[{scope:i}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version<t}bindClient(t){let n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){let 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){let n=this.pushScope(),r;try{r=t(n)}catch(o){throw this.popScope(),o}return ze(r)?r.then(o=>(this.popScope(),o),o=>{throw this.popScope(),o}):(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){let r=this._lastEventId=n&&n.event_id?n.event_id:B(),o=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:o,...n,event_id:r}),r}captureMessage(t,n,r){let o=this._lastEventId=r&&r.event_id?r.event_id:B(),i=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o}),o}captureEvent(t,n){let r=n&&n.event_id?n.event_id:B();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){let{scope:r,client:o}=this.getStackTop();if(!o)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=uh}=o.getOptions&&o.getOptions()||{};if(s<=0)return;let c={timestamp:ft(),...t},u=i?Re(()=>i(c,n)):c;u!==null&&(o.emit&&o.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,s))}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){let{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){let n=zo(this);try{t(this)}finally{zo(n)}}getIntegration(t){let n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return I&&h.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){let r=this._callExtensionMethod("startTransaction",t,n);return I&&!r&&(this.getClient()?h.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
9
+ `),typeof c=="string"||c instanceof Uint8Array)i(c);else{let u;try{u=JSON.stringify(c)}catch{u=JSON.stringify(be(c))}i(u)}}return typeof o=="string"?o:zm(o)}function zm(e){let t=e.reduce((o,i)=>o+i.length,0),n=new Uint8Array(t),r=0;for(let o of e)n.set(o,r),r+=o.length;return n}function Fs(e,t,n){let r=typeof e=="string"?t.encode(e):e;function o(c){let u=r.subarray(0,c);return r=r.subarray(c+1),u}function i(){let c=r.indexOf(10);return c<0&&(c=r.length),JSON.parse(n.decode(o(c)))}let s=i(),a=[];for(;r.length;){let c=i(),u=typeof c.length=="number"?c.length:void 0;a.push([c,u?o(u):i()])}return[s,a]}function Bs(e,t){let n=typeof e.data=="string"?Ds(e.data,t):e.data;return[J({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}var jm={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Po(e){return jm[e]}function On(e){if(!e||!e.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function Ar(e,t,n,r){let o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Te(r)},...o&&{trace:J({...o})}}}f();function Hs(e,t,n){let r=[{type:"client_report"},{timestamp:n||ft(),discarded_events:e}];return he(t?{dsn:t}:{},[r])}f();function Fo(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function vu(e,t){return e[t]||e.all||0}function Or(e,t,n=Date.now()){return vu(e,t)>n}function Mr(e,{statusCode:t,headers:n},r=Date.now()){let o={...e},i=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(i)for(let a of i.trim().split(",")){let[c,u,,,l]=a.split(":",5),d=parseInt(c,10),p=(isNaN(d)?60:d)*1e3;if(!u)o.all=r+p;else for(let m of u.split(";"))m==="metric_bucket"?(!l||l.split(";").includes("custom"))&&(o[m]=r+p):o[m]=r+p}else s?o.all=r+Fo(s,r):t===429&&(o.all=r+60*1e3);return o}f();function xu(e,t){return e(t.stack||"",1)}function Us(e,t){let n={type:t.name||t.constructor.name,value:t.message},r=xu(e,t);return r.length&&(n.stacktrace={frames:r}),n}f();function $s(e,t){return e??t()}f();function nn(e){let t,n=e[0],r=1;for(;r<e.length;){let o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}f();var I=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;f();f();var rt="production";f();f();function Nr(){return dr("globalEventProcessors",()=>[])}function Bo(e){Nr().push(e)}function rn(e,t,n,r=0){return new $e((o,i)=>{let s=e[r];if(t===null||typeof s!="function")o(t);else{let a=s({...t},n);I&&s.id&&a===null&&h.log(`Event processor "${s.id}" dropped event`),ze(a)?a.then(c=>rn(e,c,n,r+1).then(o)).then(null,i):rn(e,a,n,r+1).then(o).then(null,i)}})}f();function Ho(e){let t=Ie(),n={sid:B(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>qm(n)};return e&&ot(n,e),n}function ot(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||Ie(),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:B()),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{let 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 Uo(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),ot(e,n)}function qm(e){return J({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}})}f();f();f();f();f();var Cu=0,Gs=1;function on(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:o,parent_span_id:i,status:s,tags:a,origin:c}=P(e);return J({data:r,op:o,parent_span_id:i,span_id:t,status:s,tags:a,trace_id:n,origin:c})}function vt(e){let{traceId:t,spanId:n}=e.spanContext(),r=Mn(e);return tn(t,n,r)}function Ot(e){return typeof e=="number"?wu(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?wu(e.getTime()):Ie()}function wu(e){return e>9999999999?e/1e3:e}function P(e){return Ym(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function Ym(e){return typeof e.getSpanJSON=="function"}function Mn(e){let{traceFlags:t}=e.spanContext();return!!(t&Gs)}function sn(e,t,n,r,o,i){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||B(),timestamp:t.timestamp||ft()},u=n.integrations||e.integrations.map(T=>T.name);Vm(c,e),Xm(c,u),t.type===void 0&&Km(c,e.stackParser);let l=Qm(r,n.captureContext);n.mechanism&&Ue(c,n.mechanism);let d=o&&o.getEventProcessors?o.getEventProcessors():[],p=zs().getScopeData();if(i){let T=i.getScopeData();Ws(p,T)}if(l){let T=l.getScopeData();Ws(p,T)}let m=[...n.attachments||[],...p.attachments];m.length&&(n.attachments=m),$o(c,p);let g=[...d,...Nr(),...p.eventProcessors];return rn(g,c,n).then(T=>(T&&Jm(T),typeof s=="number"&&s>0?Zm(T,s,a):T))}function Vm(e,t){let{environment:n,release:r,dist:o,maxValueLength:i=250}=t;"environment"in e||(e.environment="environment"in t?n:rt),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&o!==void 0&&(e.dist=o),e.message&&(e.message=lt(e.message,i));let s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=lt(s.value,i));let a=e.request;a&&a.url&&(a.url=lt(a.url,i))}var Ru=new WeakMap;function Km(e,t){let n=C._sentryDebugIds;if(!n)return;let r,o=Ru.get(t);o?r=o:(r=new Map,Ru.set(t,r));let i=Object.keys(n).reduce((s,a)=>{let c,u=r.get(a);u?c=u:(c=t(a),r.set(a,c));for(let l=c.length-1;l>=0;l--){let d=c[l];if(d.filename){s[d.filename]=n[a];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(a=>{a.filename&&(a.debug_id=i[a.filename])})})}catch{}}function Jm(e){let t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(o=>{o.debug_id&&(o.abs_path?t[o.abs_path]=o.debug_id:o.filename&&(t[o.filename]=o.debug_id),delete o.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function Xm(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Zm(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:be(o.data,t,n)}}))},...e.user&&{user:be(e.user,t,n)},...e.contexts&&{contexts:be(e.contexts,t,n)},...e.extra&&{extra:be(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=be(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>{let i=P(o).data;return i&&(o.data=be(i,t,n)),o})),r}function Qm(e,t){if(!t)return e;let n=e?e.clone():new it;return n.update(t),n}function ku(e){if(e)return eh(e)?{captureContext:e}:nh(e)?{captureContext:e}:e}function eh(e){return e instanceof it||typeof e=="function"}var th=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function nh(e){return Object.keys(e).some(t=>th.includes(t))}function xt(e,t){return W().captureException(e,ku(t))}function an(e,t){let n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return W().captureMessage(e,n,r)}function Mt(e,t){return W().captureEvent(e,t)}function Au(e){W().configureScope(e)}function Ye(e,t){W().addBreadcrumb(e,t)}function Go(e,t){W().setContext(e,t)}function Ou(e){W().setExtras(e)}function Mu(e,t){W().setExtra(e,t)}function Nu(e){W().setTags(e)}function Du(e,t){W().setTag(e,t)}function Lu(e){W().setUser(e)}function De(...e){let t=W();if(e.length===2){let[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function Pu(e){return cn(()=>e(ge()))}function Fu(e,t){return De(n=>(n.setSpan(e),t(n)))}function Bu(e,t){return W().startTransaction({...e},t)}async function Hu(e){let t=x();return t?t.flush(e):(I&&h.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function Uu(e){let t=x();return t?t.close(e):(I&&h.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function $u(){return W().lastEventId()}function x(){return W().getClient()}function Gu(){return!!x()}function q(){return W().getScope()}function Dr(e){let t=x(),n=ge(),r=q(),{release:o,environment:i=rt}=t&&t.getOptions()||{},{userAgent:s}=C.navigator||{},a=Ho({release:o,environment:i,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),c=n.getSession();return c&&c.status==="ok"&&ot(c,{status:"exited"}),Wo(),n.setSession(a),r.setSession(a),a}function Wo(){let e=ge(),t=q(),n=t.getSession()||e.getSession();n&&Uo(n),Wu(),e.setSession(),t.setSession()}function Wu(){let e=ge(),t=q(),n=x(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function Lr(e=!1){if(e){Wo();return}Wu()}f();function un(e){return e.transaction}function Nt(e,t,n){let r=t.getOptions(),{publicKey:o}=t.getDsn()||{},{segment:i}=n&&n.getUser()||{},s=J({environment:r.environment||rt,release:r.release,user_segment:i,public_key:o,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function Ve(e){let t=x();if(!t)return{};let n=Nt(P(e).trace_id||"",t,q()),r=un(e);if(!r)return n;let o=r&&r._frozenDynamicSamplingContext;if(o)return o;let{sampleRate:i,source:s}=r.metadata;i!=null&&(n.sample_rate=`${i}`);let a=P(r);return s&&s!=="url"&&(n.transaction=a.description),n.sampled=String(Mn(r)),t.emit&&t.emit("createDsc",n),n}function $o(e,t){let{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;rh(e,t),r&&sh(e,r),ah(e,n),oh(e,o),ih(e,i)}function Ws(e,t){let{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:d,propagationContext:p,transactionName:m,span:g}=t;Pr(e,"extra",n),Pr(e,"tags",r),Pr(e,"user",o),Pr(e,"contexts",i),Pr(e,"sdkProcessingMetadata",a),s&&(e.level=s),m&&(e.transactionName=m),g&&(e.span=g),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function Pr(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(let r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function rh(e,t){let{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t,c=J(n);c&&Object.keys(c).length&&(e.extra={...c,...e.extra});let u=J(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});let l=J(o);l&&Object.keys(l).length&&(e.user={...l,...e.user});let d=J(i);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts}),s&&(e.level=s),a&&(e.transaction=a)}function oh(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function ih(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function sh(e,t){e.contexts={trace:on(t),...e.contexts};let n=un(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Ve(t),...e.sdkProcessingMetadata};let r=P(n).description;r&&(e.tags={transaction:r,...e.tags})}}function ah(e,t){e.fingerprint=e.fingerprint?_r(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}var ch=100,js,it=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=zu()}static clone(t){return t?t.clone():new e}clone(){let t=new e;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&&ot(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(){let 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;let n=typeof t=="function"?t(this):t;if(n instanceof e){let 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(Fe(n)){let 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=zu(),this}addBreadcrumb(t,n){let r=typeof n=="number"?n:ch;if(r<=0)return this;let o={timestamp:ft(),...t},i=this._breadcrumbs;return i.push(o),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(){let{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:o,_extra:i,_user:s,_level:a,_fingerprint:c,_eventProcessors:u,_propagationContext:l,_sdkProcessingMetadata:d,_transactionName:p,_span:m}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:o,extra:i,user:s,level:a,fingerprint:c||[],eventProcessors:u,propagationContext:l,sdkProcessingMetadata:d,transactionName:p,span:m}}applyToEvent(t,n={},r=[]){$o(t,this.getScopeData());let o=[...r,...Nr(),...this._eventProcessors];return rn(o,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){let r=n&&n.event_id?n.event_id:B();if(!this._client)return h.warn("No client configured on scope - will not capture exception!"),r;let o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){let o=r&&r.event_id?r.event_id:B();if(!this._client)return h.warn("No client configured on scope - will not capture message!"),o;let i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o},this),o}captureEvent(t,n){let r=n&&n.event_id?n.event_id:B();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(h.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 zs(){return js||(js=new it),js}function zu(){return{traceId:B(),spanId:B().substring(16)}}f();var ln="7.116.0";var ju=parseFloat(ln),uh=100,Nn=class{constructor(t,n,r,o=ju){this._version=o;let i;n?i=n:(i=new it,i.setClient(t));let s;r?s=r:(s=new it,s.setClient(t)),this._stack=[{scope:i}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version<t}bindClient(t){let n=this.getStackTop();n.client=t,n.scope.setClient(t),t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){let 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){let n=this.pushScope(),r;try{r=t(n)}catch(o){throw this.popScope(),o}return ze(r)?r.then(o=>(this.popScope(),o),o=>{throw this.popScope(),o}):(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){let r=this._lastEventId=n&&n.event_id?n.event_id:B(),o=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:o,...n,event_id:r}),r}captureMessage(t,n,r){let o=this._lastEventId=r&&r.event_id?r.event_id:B(),i=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o}),o}captureEvent(t,n){let r=n&&n.event_id?n.event_id:B();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){let{scope:r,client:o}=this.getStackTop();if(!o)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:s=uh}=o.getOptions&&o.getOptions()||{};if(s<=0)return;let c={timestamp:ft(),...t},u=i?Re(()=>i(c,n)):c;u!==null&&(o.emit&&o.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,s))}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){let{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){let n=zo(this);try{t(this)}finally{zo(n)}}getIntegration(t){let n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return I&&h.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){let r=this._callExtensionMethod("startTransaction",t,n);return I&&!r&&(this.getClient()?h.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
10
10
  Sentry.addTracingExtensions();
11
11
  Sentry.init({...});
12
12
  `):h.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(){let n=this.getStackTop().scope,r=n.getSession();r&&Uo(r),this._sendSessionUpdate(),n.setSession()}startSession(t){let{scope:n,client:r}=this.getStackTop(),{release:o,environment:i=rt}=r&&r.getOptions()||{},{userAgent:s}=C.navigator||{},a=Ho({release:o,environment:i,user:n.getUser(),...s&&{userAgent:s},...t}),c=n.getSession&&n.getSession();return c&&c.status==="ok"&&ot(c,{status:"exited"}),this.endSession(),n.setSession(a),a}shouldSendDefaultPii(){let t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){let{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){let o=Dt().__SENTRY__;if(o&&o.extensions&&typeof o.extensions[t]=="function")return o.extensions[t].apply(this,n);I&&h.warn(`Extension method ${t} couldn't be found, doing nothing.`)}};function Dt(){return C.__SENTRY__=C.__SENTRY__||{extensions:{},hub:void 0},C}function zo(e){let t=Dt(),n=Fr(t);return qs(t,e),n}function W(){let e=Dt();if(e.__SENTRY__&&e.__SENTRY__.acs){let t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return lh(e)}function ge(){return W().getIsolationScope()}function lh(e=Dt()){return(!dh(e)||Fr(e).isOlderThan(ju))&&qs(e,new Nn),Fr(e)}function cn(e,t={}){let n=Dt();return n.__SENTRY__&&n.__SENTRY__.acs?n.__SENTRY__.acs.runWithAsyncContext(e,t):e()}function dh(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Fr(e){return dr("hub",()=>new Nn,e)}function qs(e,t){if(!e)return!1;let n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}f();f();function ye(e){return(e||W()).getScope().getTransaction()}var qu=Cr;var Yu=!1;function Vu(){Yu||(Yu=!0,br(Ys),Tr(Ys))}function Ys(){let e=ye();if(e){let t="internal_error";I&&h.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}Ys.tag="sentry_tracingErrorCallback";f();f();f();f();var Vs;(function(e){let t="ok";e.Ok=t;let n="deadline_exceeded";e.DeadlineExceeded=n;let r="unauthenticated";e.Unauthenticated=r;let o="permission_denied";e.PermissionDenied=o;let i="not_found";e.NotFound=i;let s="resource_exhausted";e.ResourceExhausted=s;let a="invalid_argument";e.InvalidArgument=a;let c="unimplemented";e.Unimplemented=c;let u="unavailable";e.Unavailable=u;let l="internal_error";e.InternalError=l;let d="unknown_error";e.UnknownError=d;let p="cancelled";e.Cancelled=p;let m="already_exists";e.AlreadyExists=m;let g="failed_precondition";e.FailedPrecondition=g;let E="aborted";e.Aborted=E;let T="out_of_range";e.OutOfRange=T;let S="data_loss";e.DataLoss=S})(Vs||(Vs={}));function jo(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}var Ku=jo;function Lt(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);let n=jo(t);n!=="unknown_error"&&e.setStatus(n)}f();f();function qo(e,t,n=()=>{}){let r;try{r=e()}catch(o){throw t(o),n(),o}return fh(r,t,n)}function fh(e,t,n){return ze(e)?e.then(r=>(n(),r),r=>{throw t(r),n(),r}):(n(),e)}f();function Ke(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let t=x(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function Ju(e,t,n=()=>{},r=()=>{}){let o=W(),i=q(),s=i.getSpan(),a=Vo(e),c=Yo(o,{parentSpan:s,spanContext:a,forceTransaction:!1,scope:i});return i.setSpan(c),qo(()=>t(c),u=>{c&&c.setStatus("internal_error"),n(u,c)},()=>{c&&c.end(),i.setSpan(s),r()})}function Xu(e,t){let n=Vo(e);return cn(()=>De(e.scope,r=>{let o=W(),i=r.getSpan(),a=e.onlyIfParent&&!i?void 0:Yo(o,{parentSpan:i,spanContext:n,forceTransaction:e.forceTransaction,scope:r});return qo(()=>t(a),()=>{if(a){let{status:c}=P(a);(!c||c==="ok")&&a.setStatus("internal_error")}},()=>a&&a.end())}))}function Zu(e,t){let n=Vo(e);return cn(()=>De(e.scope,r=>{let o=W(),i=r.getSpan(),a=e.onlyIfParent&&!i?void 0:Yo(o,{parentSpan:i,spanContext:n,forceTransaction:e.forceTransaction,scope:r});function c(){a&&a.end()}return qo(()=>t(a,c),()=>{if(a&&a.isRecording()){let{status:u}=P(a);(!u||u==="ok")&&a.setStatus("internal_error")}})}))}function Dn(e){if(!Ke())return;let t=Vo(e),n=W(),r=e.scope?e.scope.getSpan():Pt();if(e.onlyIfParent&&!r)return;let s=(e.scope||q()).clone();return Yo(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:s})}function Pt(){return q().getSpan()}var Qu=({sentryTrace:e,baggage:t},n)=>{let r=q(),{traceparentData:o,dynamicSamplingContext:i,propagationContext:s}=Ns(e,t);r.setPropagationContext(s),I&&o&&h.log(`[Tracing] Continuing trace ${o.traceId}.`);let a={...o,metadata:J({dynamicSamplingContext:i})};return n?cn(()=>n(a)):a};function Yo(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:o}){if(!Ke())return;let i=ge(),s;if(t&&!r)s=t.startChild(n);else if(t){let a=Ve(t),{traceId:c,spanId:u}=t.spanContext(),l=Mn(t);s=e.startTransaction({traceId:c,parentSpanId:u,parentSampled:l,...n,metadata:{dynamicSamplingContext:a,...n.metadata}})}else{let{traceId:a,dsc:c,parentSpanId:u,sampled:l}={...i.getPropagationContext(),...o.getPropagationContext()};s=e.startTransaction({traceId:a,parentSpanId:u,parentSampled:l,...n,metadata:{dynamicSamplingContext:c,...n.metadata}})}return o.setSpan(s),ph(s,o,i),s}function Vo(e){if(e.startTime){let t={...e};return t.startTimestamp=Ot(e.startTime),delete t.startTime,t}return e}var el="_sentryScope",tl="_sentryIsolationScope";function ph(e,t,n){e&&(ke(e,tl,n),ke(e,el,t))}function nl(e){return{scope:e[el],isolationScope:e[tl]}}var Br;function rl(e){return Br?Br.get(e):void 0}function Ko(e){let t=rl(e);if(!t)return;let n={};for(let[,[r,o]]of t)n[r]||(n[r]=[]),n[r].push(J(o));return n}function ol(e,t,n,r,o,i){let s=Pt();if(s){let a=rl(s)||new Map,c=`${e}:${t}@${r}`,u=a.get(i);if(u){let[,l]=u;a.set(i,[c,{min:Math.min(l.min,n),max:Math.max(l.max,n),count:l.count+=1,sum:l.sum+=n,tags:l.tags}])}else a.set(i,[c,{min:n,max:n,count:1,sum:n,tags:o}]);Br||(Br=new WeakMap),Br.set(s,a)}}f();var _e="sentry.source",pt="sentry.sample_rate",dn="sentry.op",st="sentry.origin",Ks="profile_id";var Ln=class{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}},fn=class e{constructor(t={}){this._traceId=t.traceId||B(),this._spanId=t.spanId||B().substring(16),this._startTime=t.startTimestamp||Ie(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[st]:t.origin||"manual",[dn]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),t.exclusiveTime!==void 0&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[dn]}set op(t){this.setAttribute(dn,t)}get origin(){return this._attributes[st]}set origin(t){this.setAttribute(st,t)}spanContext(){let{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Gs:Cu}}startChild(t){let n=new e({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);let r=un(this);if(n.transaction=r,I&&r){let o=t&&t.op||"< unknown op >",i=P(n).description||"< unknown name >",s=r.spanContext().spanId,a=`[Tracing] Starting '${o}' span on transaction '${i}' (${s}).`;h.log(a),this._logMessage=a}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return Lt(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;let n=un(this);if(I&&n&&n.spanContext().spanId!==this._spanId){let r=this._logMessage;r&&h.log(r.replace("Starting","Finishing"))}this._endTime=Ot(t)}toTraceparent(){return vt(this)}toContext(){return J({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return on(this)}getSpanJSON(){return J({data:this._getData(),description:this._name,op:this._attributes[dn],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[st],_metrics_summary:Ko(this),profile_id:this._attributes[Ks],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){let{data:t,_attributes:n}=this,r=Object.keys(t).length>0,o=Object.keys(n).length>0;if(!(!r&&!o))return r&&o?{...t,...n}:r?t:n}};f();var Pn=class extends fn{constructor(t,n){super(t),this._contexts={},this._hub=n||W(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;let r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[_e]&&{source:this._attributes[_e]},...this._attributes[pt]&&{sampleRate:this._attributes[pt]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(_e,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new Ln(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){let n=Ot(t),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){let t=super.toContext();return J({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return Ve(this)}setHub(t){this._hub=t}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(I&&h.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(t);let n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){I&&h.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}let r=this.spanRecorder?this.spanRecorder.spans.filter(l=>l!==this&&P(l).timestamp):[];if(this._trimEnd&&r.length>0){let l=r.map(d=>P(d).timestamp).filter(Boolean);this._endTime=l.reduce((d,p)=>d>p?d:p)}let{scope:o,isolationScope:i}=nl(this),{metadata:s}=this,{source:a}=s,c={contexts:{...this._contexts,trace:on(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...s,capturedSpanScope:o,capturedSpanIsolationScope:i,...J({dynamicSamplingContext:Ve(this)})},_metrics_summary:Ko(this),...a&&{transaction_info:{source:a}}};return Object.keys(this._measurements).length>0&&(I&&h.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),c.measurements=this._measurements),I&&h.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),c}};var Ft={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},mh="finishReason",Fn=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"],Js=class extends Ln{constructor(t,n,r,o){super(o),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){if(t.spanContext().spanId!==this.transactionSpanId){let n=t.end;t.end=(...r)=>(this._popActivity(t.spanContext().spanId),n.apply(t,r)),P(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}},Hr=class extends Pn{constructor(t,n,r=Ft.idleTimeout,o=Ft.finalTimeout,i=Ft.heartbeatInterval,s=!1,a=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=o,this._heartbeatInterval=i,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=Fn[4],this._autoFinishAllowed=!a,s&&(I&&h.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),a||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=Fn[3],this.end())},this._finalTimeout)}end(t){let n=Ot(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(mh,this._finishReason),this.spanRecorder){I&&h.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(let r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;P(r).timestamp||(r.setStatus("cancelled"),r.end(n),I&&h.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));let{start_timestamp:o,timestamp:i}=P(r),s=o&&o<n,a=(this._finalTimeout+this._idleTimeout)/1e3,c=i&&o&&i-o<a;if(I){let u=JSON.stringify(r,void 0,2);s?c||h.log("[Tracing] discarding Span since it finished after Transaction final timeout",u):h.log("[Tracing] discarding Span since it happened after Transaction was finished",u)}return s&&c}),I&&h.log("[Tracing] flushing IdleTransaction")}else I&&h.log("[Tracing] No active IdleTransaction");if(this._onScope){let r=this._idleHub.getScope();r.getTransaction()===this&&r.setSpan(void 0)}return super.end(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){let n=o=>{this._finished||this._pushActivity(o)},r=o=>{this._finished||this._popActivity(o)};this.spanRecorder=new Js(n,r,this.spanContext().spanId,t),I&&h.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=Fn[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(I&&h.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=Fn[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),I&&h.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,I&&h.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(I&&h.log(`[Tracing] popActivity ${t}`),delete this.activities[t],I&&h.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){let n=Ie();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=Fn[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;let t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(I&&h.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=Fn[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){I&&h.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}};f();function Xs(e,t,n){if(!Ke(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(pt,Number(e.sampled)),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setAttribute(pt,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setAttribute(pt,Number(r))):(r=1,e.setAttribute(pt,r)),Jo(r)?r?(e.sampled=Math.random()<r,e.sampled?(I&&h.log(`[Tracing] starting ${e.op} transaction - ${P(e).description}`),e):(I&&h.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):(I&&h.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1,e):(I&&h.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function Jo(e){return ar(e)||!(typeof e=="number"||typeof e=="boolean")?(I&&h.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>1?(I&&h.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function hh(){let t=this.getScope().getSpan();return t?{"sentry-trace":vt(t)}:{}}function gh(e,t){let n=this.getClient(),r=n&&n.getOptions()||{},o=r.instrumenter||"sentry",i=e.instrumenter||"sentry";o!==i&&(I&&h.error(`A transaction was started with instrumenter=\`${i}\`, but the SDK is configured with the \`${o}\` instrumenter.
@@ -27,7 +27,7 @@ Error:`,o)}}function _g(){return Wl(e=>{Wn("cls",{metric:e}),td=e},{reportAllCha
27
27
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
28
28
  or you can use record.mirror to access the mirror instance during recording.`,Kd={map:{},getId(){return console.error(Yn),-1},getNode(){return console.error(Yn),null},removeNodeFromMap(){console.error(Yn)},has(){return console.error(Yn),!1},reset(){console.error(Yn)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Kd=new Proxy(Kd,{get(e,t,n){return t==="map"&&console.error(Yn),Reflect.get(e,t,n)}}));function io(e,t,n={}){let r=null,o=0;return function(...i){let s=Date.now();!o&&n.leading===!1&&(o=s);let a=t-(s-o),c=this;a<=0||a>t?(r&&(rS(r),r=null),o=s,e.apply(c,i)):!r&&n.trailing!==!1&&(r=qi(()=>{o=n.leading===!1?0:Date.now(),r=null,e.apply(c,i)},a))}}function _f(e,t,n,r,o=window){let i=o.Object.getOwnPropertyDescriptor(e,t);return o.Object.defineProperty(e,t,r?n:{set(s){qi(()=>{n.set.call(this,s)},0),i&&i.set&&i.set.call(this,s)}}),()=>_f(e,t,i||{},!0)}function Tc(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],o=n(r);return typeof o=="function"&&(o.prototype=o.prototype||{},Object.defineProperties(o,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=o,()=>{e[t]=r}}catch{return()=>{}}}var Li=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Li=()=>new Date().getTime());function yf(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:Ut([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollLeft])||Ut([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollLeft])||Ut([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollLeft])||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:Ut([t,"optionalAccess",n=>n.documentElement,"access",n=>n.scrollTop])||Ut([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.parentElement,"optionalAccess",n=>n.scrollTop])||Ut([t,"optionalAccess",n=>n.body,"optionalAccess",n=>n.scrollTop])||0}}function Sf(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ef(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function bf(e){return e?e.nodeType===e.ELEMENT_NODE?e:e.parentElement:null}function ct(e,t,n,r,o){if(!e)return!1;let i=bf(e);if(!i)return!1;let s=Kn(t,n);if(!o){let u=r&&i.matches(r);return s(i)&&!u}let a=hn(i,s),c=-1;return a<0?!1:(r&&(c=hn(i,Kn(null,r))),a>-1&&c<0?!0:a<c)}function Zy(e,t){return t.getId(e)!==-1}function qa(e,t){return t.getId(e)===oo}function Tf(e,t){if(eo(e))return!1;let n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Tf(e.parentNode,t):!0:!0}function Ja(e){return!!e.changedTouches}function Qy(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function If(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function vf(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Xa(e){return!!Ut([e,"optionalAccess",t=>t.shadowRoot])}var Za=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return $s(this.styleIDMap.get(t),()=>-1)}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function xf(e){let t=null;return Ut([e,"access",n=>n.getRootNode,"optionalCall",n=>n(),"optionalAccess",n=>n.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function eS(e){let t=e,n;for(;n=xf(t);)t=n;return t}function tS(e){let t=e.ownerDocument;if(!t)return!1;let n=eS(e);return t.contains(n)}function wf(e){let t=e.ownerDocument;return t?t.contains(e)||tS(e):!1}var Jd={};function Ic(e){let t=Jd[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement=="function")try{let o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o);let i=o.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(o)}catch{}return Jd[e]=r.bind(window)}function nS(...e){return Ic("requestAnimationFrame")(...e)}function qi(...e){return Ic("setTimeout")(...e)}function rS(...e){return Ic("clearTimeout")(...e)}var $=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))($||{}),G=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(G||{}),ve=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ve||{}),Rt=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Rt||{});function oS(e){let t,n=e[0],r=1;for(;r<e.length;){let o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}function Xd(e){return"__ln"in e}var Qa=class{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=oS([n,"optionalAccess",o=>o.next])||null;return n}addNode(t){let n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&Xd(t.previousSibling)){let r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&Xd(t.nextSibling)&&t.nextSibling.__ln.previous){let r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){let n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}},Zd=(e,t)=>`${e}@${t}`,ec=class{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let t=[],n=new Set,r=new Qa,o=c=>{let u=c,l=oo;for(;l===oo;)u=u&&u.nextSibling,l=u&&this.mirror.getId(u);return l},i=c=>{if(!c.parentNode||!wf(c))return;let u=eo(c.parentNode)?this.mirror.getId(xf(c)):this.mirror.getId(c.parentNode),l=o(c);if(u===-1||l===-1)return r.addNode(c);let d=Jn(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:p=>{If(p,this.mirror)&&this.iframeManager.addIframe(p),vf(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),Xa(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(p,m)=>{this.iframeManager.attachIframe(p,m),this.shadowDomManager.observeAttachShadow(p)},onStylesheetLoad:(p,m)=>{this.stylesheetManager.attachLinkElement(p,m)}});d&&(t.push({parentId:u,nextId:l,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let c of this.movedSet)Qd(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||i(c);for(let c of this.addedSet)!ef(this.droppedSet,c)&&!Qd(this.removes,c,this.mirror)||ef(this.movedSet,c)?i(c):this.droppedSet.add(c);let s=null;for(;r.length;){let c=null;if(s){let u=this.mirror.getId(s.value.parentNode),l=o(s.value);u!==-1&&l!==-1&&(c=s)}if(!c){let u=r.tail;for(;u;){let l=u;if(u=u.previous,l){let d=this.mirror.getId(l.value.parentNode);if(o(l.value)===-1)continue;if(d!==-1){c=l;break}else{let m=l.value;if(m.parentNode&&m.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let g=m.parentNode.host;if(this.mirror.getId(g)!==-1){c=l;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}s=c.previous,r.removeNode(c.value),i(c.value)}let a={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{let{attributes:u}=c;if(typeof u.style=="string"){let l=JSON.stringify(c.styleDiff),d=JSON.stringify(c._unchangedStyles);l.length<u.style.length&&(l+d).split("var(").length===u.style.split("var(").length&&(u.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:u}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=t=>{if(!qa(t.target,this.mirror))switch(t.type){case"characterData":{let n=t.target.textContent;!ct(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:er(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,bf(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{let n=t.target,r=t.attributeName,o=t.target.getAttribute(r);if(r==="value"){let s=Sc(n),a=n.tagName;o=Ni(n,a,s);let c=ji({maskInputOptions:this.maskInputOptions,tagName:a,type:s}),u=er(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);o=ro({isMasked:u,element:n,value:o,maskInputFn:this.maskInputFn})}if(ct(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||o===t.oldValue)return;let i=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(o))if(!n.contentDocument)r="rr_src";else return;if(i||(i={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(t.target,i)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!gf(n.tagName,r)&&(i.attributes[r]=hf(this.doc,Qn(n.tagName),Qn(r),o,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let s=this.unattachedDoc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue);for(let a of Array.from(n.style)){let c=n.style.getPropertyValue(a),u=n.style.getPropertyPriority(a);c!==s.style.getPropertyValue(a)||u!==s.style.getPropertyPriority(a)?u===""?i.styleDiff[a]=c:i.styleDiff[a]=[c,u]:i._unchangedStyles[a]=[c,u]}for(let a of Array.from(s.style))n.style.getPropertyValue(a)===""&&(i.styleDiff[a]=!1)}break}case"childList":{if(ct(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{let r=this.mirror.getId(n),o=eo(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);ct(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||qa(n,this.mirror)||!Zy(n,this.mirror)||(this.addedSet.has(n)?(tc(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||Tf(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[Zd(r,o)]?tc(this.movedSet,n):this.removes.push({parentId:o,id:r,isShadow:eo(t.target)&&to(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(qa(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[Zd(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);ct(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes.forEach(r=>this.genAdds(r)),Xa(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function tc(e,t){e.delete(t),t.childNodes.forEach(n=>tc(e,n))}function Qd(e,t,n){return e.length===0?!1:Cf(e,t,n)}function Cf(e,t,n){let{parentNode:r}=t;if(!r)return!1;let o=n.getId(r);return e.some(i=>i.id===o)?!0:Cf(e,r,n)}function ef(e,t){return e.size===0?!1:Rf(e,t)}function Rf(e,t){let{parentNode:n}=t;return n?e.has(n)?!0:Rf(e,n):!1}var no;function iS(e){no=e}function sS(){no=void 0}var z=e=>no?(...n)=>{try{return e(...n)}catch(r){if(no&&no(r)===!0)return()=>{};throw r}}:e;function St(e){let t,n=e[0],r=1;for(;r<e.length;){let o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}var Xn=[];function lo(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function kf(e,t){let n=new ec;Xn.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,o=St([window,"optionalAccess",s=>s.Zone,"optionalAccess",s=>s.__symbol__,"optionalCall",s=>s("MutationObserver")]);o&&window[o]&&(r=window[o]);let i=new r(z(s=>{e.onMutation&&e.onMutation(s)===!1||n.processMutations.bind(n)(s)}));return i.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),i}function aS({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};let o=typeof t.mousemove=="number"?t.mousemove:50,i=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,s=[],a,c=io(z(d=>{let p=Date.now()-a;e(s.map(m=>(m.timeOffset-=p,m)),d),s=[],a=null}),i),u=z(io(z(d=>{let p=lo(d),{clientX:m,clientY:g}=Ja(d)?d.changedTouches[0]:d;a||(a=Li()),s.push({x:m,y:g,id:r.getId(p),timeOffset:Li()-a}),c(typeof DragEvent<"u"&&d instanceof DragEvent?G.Drag:d instanceof MouseEvent?G.MouseMove:G.TouchMove)}),o,{trailing:!1})),l=[we("mousemove",u,n),we("touchmove",u,n),we("drag",u,n)];return z(()=>{l.forEach(d=>d())})}function cS({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){if(s.mouseInteraction===!1)return()=>{};let a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,c=[],u=null,l=d=>p=>{let m=lo(p);if(ct(m,r,o,i,!0))return;let g=null,E=d;if("pointerType"in p){switch(p.pointerType){case"mouse":g=Rt.Mouse;break;case"touch":g=Rt.Touch;break;case"pen":g=Rt.Pen;break}g===Rt.Touch?ve[d]===ve.MouseDown?E="TouchStart":ve[d]===ve.MouseUp&&(E="TouchEnd"):Rt.Pen}else Ja(p)&&(g=Rt.Touch);g!==null?(u=g,(E.startsWith("Touch")&&g===Rt.Touch||E.startsWith("Mouse")&&g===Rt.Mouse)&&(g=null)):ve[d]===ve.Click&&(g=u,u=null);let T=Ja(p)?p.changedTouches[0]:p;if(!T)return;let S=n.getId(m),{clientX:b,clientY:v}=T;z(e)({type:ve[E],id:S,x:b,y:v,...g!==null&&{pointerType:g}})};return Object.keys(ve).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&a[d]!==!1).forEach(d=>{let p=Qn(d),m=l(d);if(window.PointerEvent)switch(ve[d]){case ve.MouseDown:case ve.MouseUp:p=p.replace("mouse","pointer");break;case ve.TouchStart:case ve.TouchEnd:return}c.push(we(p,m,t))}),z(()=>{c.forEach(d=>d())})}function Af({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,sampling:s}){let a=z(io(z(c=>{let u=lo(c);if(!u||ct(u,r,o,i,!0))return;let l=n.getId(u);if(u===t&&t.defaultView){let d=yf(t.defaultView);e({id:l,x:d.left,y:d.top})}else e({id:l,x:u.scrollLeft,y:u.scrollTop})}),s.scroll||100));return we("scroll",a,t)}function uS({viewportResizeCb:e},{win:t}){let n=-1,r=-1,o=z(io(z(()=>{let i=Sf(),s=Ef();(n!==i||r!==s)&&(e({width:Number(s),height:Number(i)}),n=i,r=s)}),200));return we("resize",o,t)}var lS=["INPUT","TEXTAREA","SELECT"],tf=new WeakMap;function dS({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,ignoreClass:s,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:l,userTriggeredOnInput:d,maskTextClass:p,unmaskTextClass:m,maskTextSelector:g,unmaskTextSelector:E}){function T(w){let U=lo(w),ne=w.isTrusted,k=U&&Ka(U.tagName);if(k==="OPTION"&&(U=U.parentElement),!U||!k||lS.indexOf(k)<0||ct(U,r,o,i,!0))return;let N=U;if(N.classList.contains(s)||a&&N.matches(a))return;let K=Sc(U),se=Ni(N,k,K),de=!1,Pe=ji({maskInputOptions:c,tagName:k,type:K}),X=er(U,p,g,m,E,Pe);(K==="radio"||K==="checkbox")&&(de=U.checked),se=ro({isMasked:X,element:U,value:se,maskInputFn:u}),S(U,d?{text:se,isChecked:de,userTriggered:ne}:{text:se,isChecked:de});let We=U.name;K==="radio"&&We&&de&&t.querySelectorAll(`input[type="radio"][name="${We}"]`).forEach(le=>{if(le!==U){let Ce=ro({isMasked:X,element:le,value:Ni(le,k,K),maskInputFn:u});S(le,d?{text:Ce,isChecked:!de,userTriggered:!1}:{text:Ce,isChecked:!de})}})}function S(w,U){let ne=tf.get(w);if(!ne||ne.text!==U.text||ne.isChecked!==U.isChecked){tf.set(w,U);let k=n.getId(w);z(e)({...U,id:k})}}let v=(l.input==="last"?["change"]:["input","change"]).map(w=>we(w,z(T),t)),O=t.defaultView;if(!O)return()=>{v.forEach(w=>w())};let L=O.Object.getOwnPropertyDescriptor(O.HTMLInputElement.prototype,"value"),M=[[O.HTMLInputElement.prototype,"value"],[O.HTMLInputElement.prototype,"checked"],[O.HTMLSelectElement.prototype,"value"],[O.HTMLTextAreaElement.prototype,"value"],[O.HTMLSelectElement.prototype,"selectedIndex"],[O.HTMLOptionElement.prototype,"selected"]];return L&&L.set&&v.push(...M.map(w=>_f(w[0],w[1],{set(){z(T)({target:this,isTrusted:!1})}},!1,O))),z(()=>{v.forEach(w=>w())})}function Pi(e){let t=[];function n(r,o){if(Ri("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Ri("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Ri("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Ri("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){let s=Array.from(r.parentRule.cssRules).indexOf(r);o.unshift(s)}else if(r.parentStyleSheet){let s=Array.from(r.parentStyleSheet.cssRules).indexOf(r);o.unshift(s)}return o}return n(e,t)}function $t(e,t,n){let r,o;return e?(e.ownerNode?r=t.getId(e.ownerNode):o=n.getId(e),{styleId:o,id:r}):{}}function fS({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let o=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(o,{apply:z((l,d,p)=>{let[m,g]=p,{id:E,styleId:T}=$t(d,t,n.styleMirror);return(E&&E!==-1||T&&T!==-1)&&e({id:E,styleId:T,adds:[{rule:m,index:g}]}),l.apply(d,p)})});let i=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(i,{apply:z((l,d,p)=>{let[m]=p,{id:g,styleId:E}=$t(d,t,n.styleMirror);return(g&&g!==-1||E&&E!==-1)&&e({id:g,styleId:E,removes:[{index:m}]}),l.apply(d,p)})});let s;r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:z((l,d,p)=>{let[m]=p,{id:g,styleId:E}=$t(d,t,n.styleMirror);return(g&&g!==-1||E&&E!==-1)&&e({id:g,styleId:E,replace:m}),l.apply(d,p)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:z((l,d,p)=>{let[m]=p,{id:g,styleId:E}=$t(d,t,n.styleMirror);return(g&&g!==-1||E&&E!==-1)&&e({id:g,styleId:E,replaceSync:m}),l.apply(d,p)})}));let c={};ki("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(ki("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),ki("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),ki("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));let u={};return Object.entries(c).forEach(([l,d])=>{u[l]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(u[l].insertRule,{apply:z((p,m,g)=>{let[E,T]=g,{id:S,styleId:b}=$t(m.parentStyleSheet,t,n.styleMirror);return(S&&S!==-1||b&&b!==-1)&&e({id:S,styleId:b,adds:[{rule:E,index:[...Pi(m),T||0]}]}),p.apply(m,g)})}),d.prototype.deleteRule=new Proxy(u[l].deleteRule,{apply:z((p,m,g)=>{let[E]=g,{id:T,styleId:S}=$t(m.parentStyleSheet,t,n.styleMirror);return(T&&T!==-1||S&&S!==-1)&&e({id:T,styleId:S,removes:[{index:[...Pi(m),E]}]}),p.apply(m,g)})})}),z(()=>{r.CSSStyleSheet.prototype.insertRule=o,r.CSSStyleSheet.prototype.deleteRule=i,s&&(r.CSSStyleSheet.prototype.replace=s),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([l,d])=>{d.prototype.insertRule=u[l].insertRule,d.prototype.deleteRule=u[l].deleteRule})})}function Of({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);let o=n.nodeName==="#document"?St([n,"access",s=>s.defaultView,"optionalAccess",s=>s.Document]):St([n,"access",s=>s.ownerDocument,"optionalAccess",s=>s.defaultView,"optionalAccess",s=>s.ShadowRoot]),i=St([o,"optionalAccess",s=>s.prototype])?Object.getOwnPropertyDescriptor(St([o,"optionalAccess",s=>s.prototype]),"adoptedStyleSheets"):void 0;return r===null||r===-1||!o||!i?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){return St([i,"access",s=>s.get,"optionalAccess",s=>s.call,"call",s=>s(this)])},set(s){let a=St([i,"access",c=>c.set,"optionalAccess",c=>c.call,"call",c=>c(this,s)]);if(r!==null&&r!==-1)try{t.adoptStyleSheets(s,r)}catch{}return a}}),z(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function pS({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:o}){let i=o.CSSStyleDeclaration.prototype.setProperty;o.CSSStyleDeclaration.prototype.setProperty=new Proxy(i,{apply:z((a,c,u)=>{let[l,d,p]=u;if(n.has(l))return i.apply(c,[l,d,p]);let{id:m,styleId:g}=$t(St([c,"access",E=>E.parentRule,"optionalAccess",E=>E.parentStyleSheet]),t,r.styleMirror);return(m&&m!==-1||g&&g!==-1)&&e({id:m,styleId:g,set:{property:l,value:d,priority:p},index:Pi(c.parentRule)}),a.apply(c,u)})});let s=o.CSSStyleDeclaration.prototype.removeProperty;return o.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:z((a,c,u)=>{let[l]=u;if(n.has(l))return s.apply(c,[l]);let{id:d,styleId:p}=$t(St([c,"access",m=>m.parentRule,"optionalAccess",m=>m.parentStyleSheet]),t,r.styleMirror);return(d&&d!==-1||p&&p!==-1)&&e({id:d,styleId:p,remove:{property:l},index:Pi(c.parentRule)}),a.apply(c,u)})}),z(()=>{o.CSSStyleDeclaration.prototype.setProperty=i,o.CSSStyleDeclaration.prototype.removeProperty=s})}function mS({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:o,sampling:i,doc:s}){let a=z(u=>io(z(l=>{let d=lo(l);if(!d||ct(d,t,n,r,!0))return;let{currentTime:p,volume:m,muted:g,playbackRate:E}=d;e({type:u,id:o.getId(d),currentTime:p,volume:m,muted:g,playbackRate:E})}),i.media||500)),c=[we("play",a(0),s),we("pause",a(1),s),we("seeked",a(2),s),we("volumechange",a(3),s),we("ratechange",a(4),s)];return z(()=>{c.forEach(u=>u())})}function hS({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],o=new WeakMap,i=n.FontFace;n.FontFace=function(c,u,l){let d=new i(c,u,l);return o.set(d,{family:c,buffer:typeof u!="string",descriptors:l,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),d};let s=Tc(t.fonts,"add",function(a){return function(c){return qi(z(()=>{let u=o.get(c);u&&(e(u),o.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=i}),r.push(s),z(()=>{r.forEach(a=>a())})}function gS(e){let{doc:t,mirror:n,blockClass:r,blockSelector:o,unblockSelector:i,selectionCb:s}=e,a=!0,c=z(()=>{let u=t.getSelection();if(!u||a&&St([u,"optionalAccess",p=>p.isCollapsed]))return;a=u.isCollapsed||!1;let l=[],d=u.rangeCount||0;for(let p=0;p<d;p++){let m=u.getRangeAt(p),{startContainer:g,startOffset:E,endContainer:T,endOffset:S}=m;ct(g,r,o,i,!0)||ct(T,r,o,i,!0)||l.push({start:n.getId(g),startOffset:E,end:n.getId(T),endOffset:S})}s({ranges:l})});return c(),we("selectionchange",c)}function _S({doc:e,customElementCb:t}){let n=e.defaultView;return!n||!n.customElements?()=>{}:Tc(n.customElements,"define",function(o){return function(i,s,a){try{t({define:{name:i}})}catch{}return o.apply(this,[i,s,a])}})}function yS(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};let r=kf(e,e.doc),o=aS(e),i=cS(e),s=Af(e),a=uS(e,{win:n}),c=dS(e),u=mS(e),l=fS(e,{win:n}),d=Of(e,e.doc),p=pS(e,{win:n}),m=e.collectFonts?hS(e):()=>{},g=gS(e),E=_S(e),T=[];for(let S of e.plugins)T.push(S.observer(S.callback,n,S.options));return z(()=>{Xn.forEach(S=>S.reset()),r.disconnect(),o(),i(),s(),a(),c(),u(),l(),d(),p(),m(),g(),E(),T.forEach(S=>S())})}function Ri(e){return typeof window[e]<"u"}function ki(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var so=class{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,o){let i=r||this.getIdToRemoteIdMap(t),s=o||this.getRemoteIdToIdMap(t),a=i.get(n);return a||(a=this.generateIdFn(),i.set(n,a),s.set(a,n)),a}getIds(t,n){let r=this.getIdToRemoteIdMap(t),o=this.getRemoteIdToIdMap(t);return n.map(i=>this.getId(t,i,r,o))}getRemoteId(t,n,r){let o=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;let i=o.get(n);return i||-1}getRemoteIds(t,n){let r=this.getRemoteIdToIdMap(t);return n.map(o=>this.getRemoteId(t,o,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}};function nf(e){let t,n=e[0],r=1;for(;r<e.length;){let o=e[r],i=e[r+1];if(r+=2,(o==="optionalAccess"||o==="optionalCall")&&n==null)return;o==="access"||o==="optionalAccess"?(t=n,n=i(n)):(o==="call"||o==="optionalCall")&&(n=i((...s)=>n.call(t,...s)),t=void 0)}return n}var nc=class{constructor(){this.crossOriginIframeMirror=new so(Ec),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},rc=class{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new so(Ec),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new so(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),nf([this,"access",r=>r.loadListener,"optionalCall",r=>r(t)]),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){let n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;let o=this.crossOriginIframeMap.get(t.source);if(!o)return;let i=this.transformCrossOriginEvent(o,n.data.event);i&&this.wrappedEmit(i,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case $.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);let r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:$.IncrementalSnapshot,data:{source:G.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case $.Meta:case $.Load:case $.DomContentLoaded:return!1;case $.Plugin:return n;case $.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case $.IncrementalSnapshot:switch(n.data.source){case G.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);let o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(r.node,o)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case G.Drag:case G.TouchMove:case G.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case G.ViewportResize:return!1;case G.MediaInteraction:case G.MouseInteraction:case G.Scroll:case G.CanvasMutation:case G.Input:return this.replaceIds(n.data,t,["id"]),n;case G.StyleSheetRule:case G.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case G.Font:return n;case G.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case G.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),nf([n,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(o=>{this.replaceStyleIds(o,t,["styleId"])})]),n}}return!1}replace(t,n,r,o){for(let i of o)!Array.isArray(n[i])&&typeof n[i]!="number"||(Array.isArray(n[i])?n[i]=t.getIds(r,n[i]):n[i]=t.getId(r,n[i]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==pe.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}},oc=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},ic=class{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!to(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let r=kf({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Af({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),qi(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(Of({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,n){let r=this;this.restoreHandlers.push(Tc(t.prototype,"attachShadow",function(o){return function(i){let s=o.call(this,i);return this.shadowRoot&&wf(this)&&r.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},Fi=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}},sc=class{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new Za,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;let r={id:n,styleIds:[]},o=[];for(let i of t){let s;this.styleMirror.has(i)?s=this.styleMirror.getId(i):(s=this.styleMirror.add(i),o.push({styleId:s,rules:Array.from(i.rules||CSSRule,(a,c)=>({rule:mf(a),index:c}))})),r.styleIds.push(s)}o.length>0&&(r.styles=o),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},ac=class{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){nS(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(t,n){let r=this.nodeMap.get(t);return r&&Array.from(r).some(o=>o!==n)}add(t,n){this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}},ue,Bi,at=Ry();function Wt(e={}){let{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:o="rr-block",blockSelector:i=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:l="rr-mask",unmaskTextClass:d=null,maskTextSelector:p=null,unmaskTextSelector:m=null,inlineStylesheet:g=!0,maskAllInputs:E,maskInputOptions:T,slimDOMOptions:S,maskAttributeFn:b,maskInputFn:v,maskTextFn:O,maxCanvasSize:L=null,packFn:M,sampling:w={},dataURLOptions:U={},mousemoveWait:ne,recordCanvas:k=!1,recordCrossOriginIframes:N=!1,recordAfter:K=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:se=!1,collectFonts:de=!1,inlineImages:Pe=!1,plugins:X,keepIframeSrcFn:We=()=>!1,ignoreCSSAttributes:le=new Set([]),errorHandler:Ce,onMutation:Xe,getCanvasManager:is}=e;iS(Ce);let En=N?window.parent===window:!0,At=!1;if(!En)try{window.parent.document&&(At=!1)}catch{At=!0}if(En&&!t)throw new Error("emit function is required");ne!==void 0&&w.mousemove===void 0&&(w.mousemove=ne),at.reset();let bn=E===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:T!==void 0?T:{},sr=S===!0||S==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:S==="all",headMetaDescKeywords:S==="all"}:S||{};Qy();let ss,as=0,Vc=Y=>{for(let Ze of X||[])Ze.eventProcessor&&(Y=Ze.eventProcessor(Y));return M&&!At&&(Y=M(Y)),Y};ue=(Y,Ze)=>{let j=Y;if(j.timestamp=Li(),nn([Xn,"access",ie=>ie[0],"optionalAccess",ie=>ie.isFrozen,"call",ie=>ie()])&&j.type!==$.FullSnapshot&&!(j.type===$.IncrementalSnapshot&&j.data.source===G.Mutation)&&Xn.forEach(ie=>ie.unfreeze()),En)nn([t,"optionalCall",ie=>ie(Vc(j),Ze)]);else if(At){let ie={type:"rrweb",event:Vc(j),origin:window.location.origin,isCheckout:Ze};window.parent.postMessage(ie,"*")}if(j.type===$.FullSnapshot)ss=j,as=0;else if(j.type===$.IncrementalSnapshot){if(j.data.source===G.Mutation&&j.data.isAttachIframe)return;as++;let ie=r&&as>=r,V=n&&ss&&j.timestamp-ss.timestamp>n;(ie||V)&&us(!0)}};let _o=Y=>{ue({type:$.IncrementalSnapshot,data:{source:G.Mutation,...Y}})},Kc=Y=>ue({type:$.IncrementalSnapshot,data:{source:G.Scroll,...Y}}),cm=Y=>ue({type:$.IncrementalSnapshot,data:{source:G.CanvasMutation,...Y}}),um=Y=>ue({type:$.IncrementalSnapshot,data:{source:G.AdoptedStyleSheet,...Y}}),jt=new sc({mutationCb:_o,adoptedStyleSheetCb:um}),qt=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new nc:new rc({mirror:at,mutationCb:_o,stylesheetManager:jt,recordCrossOriginIframes:N,wrappedEmit:ue});for(let Y of X||[])Y.getMirror&&Y.getMirror({nodeMirror:at,crossOriginIframeMirror:qt.crossOriginIframeMirror,crossOriginIframeStyleMirror:qt.crossOriginIframeStyleMirror});let cs=new ac,Jc=ES(is,{mirror:at,win:window,mutationCb:Y=>ue({type:$.IncrementalSnapshot,data:{source:G.CanvasMutation,...Y}}),recordCanvas:k,blockClass:o,blockSelector:i,unblockSelector:s,maxCanvasSize:L,sampling:w.canvas,dataURLOptions:U,errorHandler:Ce}),yo=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new oc:new ic({mutationCb:_o,scrollCb:Kc,bypassOptions:{onMutation:Xe,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:g,maskInputOptions:bn,dataURLOptions:U,maskAttributeFn:b,maskTextFn:O,maskInputFn:v,recordCanvas:k,inlineImages:Pe,sampling:w,slimDOMOptions:sr,iframeManager:qt,stylesheetManager:jt,canvasManager:Jc,keepIframeSrcFn:We,processedNodeManager:cs},mirror:at}),us=(Y=!1)=>{ue({type:$.Meta,data:{href:window.location.href,width:Ef(),height:Sf()}},Y),jt.reset(),yo.init(),Xn.forEach(j=>j.lock());let Ze=Xy(document,{mirror:at,blockClass:o,blockSelector:i,unblockSelector:s,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:m,inlineStylesheet:g,maskAllInputs:bn,maskAttributeFn:b,maskInputFn:v,maskTextFn:O,slimDOM:sr,dataURLOptions:U,recordCanvas:k,inlineImages:Pe,onSerialize:j=>{If(j,at)&&qt.addIframe(j),vf(j,at)&&jt.trackLinkElement(j),Xa(j)&&yo.addShadowRoot(j.shadowRoot,document)},onIframeLoad:(j,ie)=>{qt.attachIframe(j,ie),yo.observeAttachShadow(j)},onStylesheetLoad:(j,ie)=>{jt.attachLinkElement(j,ie)},keepIframeSrcFn:We});if(!Ze)return console.warn("Failed to snapshot the document");ue({type:$.FullSnapshot,data:{node:Ze,initialOffset:yf(window)}}),Xn.forEach(j=>j.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&jt.adoptStyleSheets(document.adoptedStyleSheets,at.getId(document))};Bi=us;try{let Y=[],Ze=ie=>z(yS)({onMutation:Xe,mutationCb:_o,mousemoveCb:(V,Yt)=>ue({type:$.IncrementalSnapshot,data:{source:Yt,positions:V}}),mouseInteractionCb:V=>ue({type:$.IncrementalSnapshot,data:{source:G.MouseInteraction,...V}}),scrollCb:Kc,viewportResizeCb:V=>ue({type:$.IncrementalSnapshot,data:{source:G.ViewportResize,...V}}),inputCb:V=>ue({type:$.IncrementalSnapshot,data:{source:G.Input,...V}}),mediaInteractionCb:V=>ue({type:$.IncrementalSnapshot,data:{source:G.MediaInteraction,...V}}),styleSheetRuleCb:V=>ue({type:$.IncrementalSnapshot,data:{source:G.StyleSheetRule,...V}}),styleDeclarationCb:V=>ue({type:$.IncrementalSnapshot,data:{source:G.StyleDeclaration,...V}}),canvasMutationCb:cm,fontCb:V=>ue({type:$.IncrementalSnapshot,data:{source:G.Font,...V}}),selectionCb:V=>{ue({type:$.IncrementalSnapshot,data:{source:G.Selection,...V}})},customElementCb:V=>{ue({type:$.IncrementalSnapshot,data:{source:G.CustomElement,...V}})},blockClass:o,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:l,unmaskTextClass:d,maskTextSelector:p,unmaskTextSelector:m,maskInputOptions:bn,inlineStylesheet:g,sampling:w,recordCanvas:k,inlineImages:Pe,userTriggeredOnInput:se,collectFonts:de,doc:ie,maskAttributeFn:b,maskInputFn:v,maskTextFn:O,keepIframeSrcFn:We,blockSelector:i,unblockSelector:s,slimDOMOptions:sr,dataURLOptions:U,mirror:at,iframeManager:qt,stylesheetManager:jt,shadowDomManager:yo,processedNodeManager:cs,canvasManager:Jc,ignoreCSSAttributes:le,plugins:nn([X,"optionalAccess",V=>V.filter,"call",V=>V(Yt=>Yt.observer),"optionalAccess",V=>V.map,"call",V=>V(Yt=>({observer:Yt.observer,options:Yt.options,callback:lm=>ue({type:$.Plugin,data:{plugin:Yt.name,payload:lm}})}))])||[]},{});qt.addLoadListener(ie=>{try{Y.push(Ze(ie.contentDocument))}catch(V){console.warn(V)}});let j=()=>{us(),Y.push(Ze(document))};return document.readyState==="interactive"||document.readyState==="complete"?j():(Y.push(we("DOMContentLoaded",()=>{ue({type:$.DomContentLoaded,data:{}}),K==="DOMContentLoaded"&&j()})),Y.push(we("load",()=>{ue({type:$.Load,data:{}}),K==="load"&&j()},window))),()=>{Y.forEach(ie=>ie()),cs.destroy(),Bi=void 0,sS()}}catch(Y){console.warn(Y)}}function SS(e){if(!Bi)throw new Error("please take full snapshot after start recording");Bi(e)}Wt.mirror=at;Wt.takeFullSnapshot=SS;function ES(e,t){try{return e?e(t):new Fi}catch{return console.warn("Unable to initialize CanvasManager"),new Fi}}var bS=3,TS=5;function vc(e){return e>9999999999?e:e*1e3}function Ya(e){return e>9999999999?e/1e3:e}function fo(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:$.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:be(t,10,1e3)}}),t.category==="console")))}var IS="button,a";function Mf(e){return e.closest(IS)||e}function Nf(e){let t=Df(e);return!t||!(t instanceof Element)?t:Mf(t)}function Df(e){return vS(e)?e.target:e}function vS(e){return typeof e=="object"&&!!e&&"target"in e}var Gt;function xS(e){return Gt||(Gt=[],wS()),Gt.push(e),()=>{let t=Gt?Gt.indexOf(e):-1;t>-1&&Gt.splice(t,1)}}function wS(){Q(te,"open",function(e){return function(...t){if(Gt)try{Gt.forEach(n=>n())}catch{}return e.apply(te,t)}})}function CS(e,t,n){e.handleClick(t,n)}var cc=class{constructor(t,n,r=fo){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){let t=xS(()=>{this._lastMutation=rf()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(kS(n,this._ignoreSelector)||!AS(t))return;let r={timestamp:Ya(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(o=>o.node===r.node&&Math.abs(o.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Ya(t)}registerScroll(t=Date.now()){this._lastScroll=Ya(t)}registerClick(t){let n=Mf(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){let t=[],n=rf();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(let r of t){let o=this._clicks.indexOf(r);o>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(o,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){let n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scollTimeout,o=t.mutationAfter&&t.mutationAfter<=this._threshold,i=!r&&!o,{clickCount:s,clickBreadcrumb:a}=t;if(i){let c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=c<this._timeout*1e3?"mutation":"timeout",l={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:te.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:u,clickCount:s||1}};this._addBreadcrumbEvent(n,l);return}if(s>1){let c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:te.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}},RS=["A","BUTTON","INPUT"];function kS(e,t){return!!(!RS.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function AS(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function rf(){return Date.now()/1e3}function OS(e,t){try{if(!MS(t))return;let{source:n}=t.data;if(n===G.Mutation&&e.registerMutation(t.timestamp),n===G.Scroll&&e.registerScroll(t.timestamp),NS(t)){let{type:r,id:o}=t.data,i=Wt.mirror.getNode(o);i instanceof HTMLElement&&r===ve.Click&&e.registerClick(i)}}catch{}}function MS(e){return e.type===bS}function NS(e){return e.data.source===G.MouseInteraction}function Et(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Hi;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Hi||(Hi={}));var DS=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function LS(e){let t={};for(let n in e)if(DS.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}var PS=e=>t=>{if(!e.isEnabled())return;let n=FS(t);if(!n)return;let r=t.name==="click",o=r?t.event:void 0;r&&e.clickDetector&&o&&o.target&&!o.altKey&&!o.metaKey&&!o.ctrlKey&&!o.shiftKey&&CS(e.clickDetector,n,Nf(t.event)),fo(e,n)};function Lf(e,t){let n=Wt.mirror.getId(e),r=n&&Wt.mirror.getNode(n),o=r&&Wt.mirror.getMeta(r),i=o&&HS(o)?o:null;return{message:t,data:i?{nodeId:n,node:{id:n,tagName:i.tagName,textContent:Array.from(i.childNodes).map(s=>s.type===Hi.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:LS(i.attributes)}}:{}}}function FS(e){let{target:t,message:n}=BS(e);return Et({category:`ui.${e.name}`,...Lf(t,n)})}function BS(e){let t=e.name==="click",n,r=null;try{r=t?Nf(e.event):Df(e.event),n=He(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function HS(e){return e.type===Hi.Element}function US(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=$S(t);n&&fo(e,n)}function $S(e){let{metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i,target:s}=e;if(!s||GS(s)||!i)return null;let a=t||r||o,c=i.length===1;if(!a&&c)return null;let u=He(s,{maxStringLength:200})||"<unknown>",l=Lf(s,u);return Et({category:"ui.keyDown",message:u,data:{...l.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:o,key:i}})}function GS(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}var of={resource:YS,paint:jS,navigation:qS};function WS(e){return e.map(zS).filter(Boolean)}function zS(e){return of[e.entryType]?of[e.entryType](e):null}function tr(e){return((re||te.performance.timeOrigin)+e)/1e3}function jS(e){let{duration:t,entryType:n,name:r,startTime:o}=e,i=tr(o);return{type:n,name:r,start:i,end:i+t,data:void 0}}function qS(e){let{entryType:t,name:n,decodedBodySize:r,duration:o,domComplete:i,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:l,loadEventEnd:d,redirectCount:p,startTime:m,transferSize:g,type:E}=e;return o===0?null:{type:`${t}.${E}`,start:tr(m),end:tr(i),name:n,data:{size:g,decodedBodySize:r,encodedBodySize:s,duration:o,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:l,loadEventEnd:d,domComplete:i,redirectCount:p}}}function YS(e){let{entryType:t,initiatorType:n,name:r,responseEnd:o,startTime:i,decodedBodySize:s,encodedBodySize:a,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:tr(i),end:tr(o),name:r,data:{size:u,statusCode:c,decodedBodySize:s,encodedBodySize:a}}}function VS(e){let t=e.entries,n=t[t.length-1],r=n?n.element:void 0,o=e.value,i=tr(o);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:i,end:i,data:{value:o,size:o,nodeId:r?Wt.mirror.getId(r):void 0}}}function KS(e){function t(o){e.performanceEntries.includes(o)||e.performanceEntries.push(o)}function n({entries:o}){o.forEach(t)}let r=[];return["navigation","paint","resource"].forEach(o=>{r.push(Le(o,n))}),r.push(Yr(({metric:o})=>{e.replayPerformanceEntries.push(VS(o))})),()=>{r.forEach(o=>o())}}var Z=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,JS='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function XS(){let e=new Blob([JS]);return URL.createObjectURL(e)}function xe(e,t){Z&&(h.info(e),t&&Pf(e))}function Zn(e,t){Z&&(h.info(e),t&&setTimeout(()=>{Pf(e)},0))}function Pf(e){Ye({category:"console",data:{logger:"replay"},level:"info",message:e},{level:"info"})}var ao=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${yc}.`)}},Ui=class{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){let n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>yc)throw new ao;this.events.push(t)}finish(){return new Promise(t=>{let n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let t=this.events.map(n=>n.timestamp).sort()[0];return t?vc(t):null}},uc=class{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})}),this._ensureReadyPromise)}destroy(){xe("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(t,n){let r=this._getAndIncrementId();return new Promise((o,i)=>{let s=({data:a})=>{let c=a;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",s),!c.success){Z&&h.error("[Replay]",c.response),i(new Error("Error in compression worker"));return}o(c.response)}};this._worker.addEventListener("message",s),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}},lc=class{constructor(t){this._worker=new uc(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){let n=vc(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);let r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>yc?Promise.reject(new ao):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{Z&&h.warn('[Replay] Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){let t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}},dc=class{constructor(t){this._fallback=new Ui,this._compression=new lc(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch{xe("[Replay] Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:t,hasCheckout:n}=this._fallback,r=[];for(let o of t)r.push(this._compression.addEvent(o));this._compression.hasCheckout=n,this._used=this._compression;try{await Promise.all(r)}catch(o){Z&&h.warn("[Replay] Failed to add events when switching buffers.",o)}}};function ZS({useCompression:e,workerUrl:t}){if(e&&window.Worker){let n=QS(t);if(n)return n}return xe("[Replay] Using simple buffer"),new Ui}function QS(e){try{let t=e||eE();if(!t)return;xe(`[Replay] Using compression worker${e?` from ${e}`:""}`);let n=new Worker(t);return new dc(n)}catch{xe("[Replay] Failed to create compression worker")}}function eE(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?XS():""}function xc(){try{return"sessionStorage"in te&&!!te.sessionStorage}catch{return!1}}function tE(e){nE(),e.session=void 0}function nE(){if(xc())try{te.sessionStorage.removeItem(gc)}catch{}}function Ff(e){return e===void 0?!1:Math.random()<e}function Bf(e){let t=Date.now(),n=e.id||B(),r=e.started||t,o=e.lastActivity||t,i=e.segmentId||0,s=e.sampled,a=e.previousSessionId;return{id:n,started:r,lastActivity:o,segmentId:i,sampled:s,previousSessionId:a}}function wc(e){if(xc())try{te.sessionStorage.setItem(gc,JSON.stringify(e))}catch{}}function rE(e,t){return Ff(e)?"session":t?"buffer":!1}function sf({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let o=rE(e,t),i=Bf({sampled:o,previousSessionId:r});return n&&wc(i),i}function oE(e){if(!xc())return null;try{let t=te.sessionStorage.getItem(gc);if(!t)return null;let n=JSON.parse(t);return Zn("[Replay] Loading existing session",e),Bf(n)}catch{return null}}function fc(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Hf(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return fc(e.started,t,r)||fc(e.lastActivity,n,r)}function Uf(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Hf(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function Va({traceInternals:e,sessionIdleExpire:t,maxReplayDuration:n,previousSessionId:r},o){let i=o.stickySession&&oE(e);return i?Uf(i,{sessionIdleExpire:t,maxReplayDuration:n})?(Zn("[Replay] Session in sessionStorage is expired, creating new one..."),sf(o,{previousSessionId:i.id})):i:(Zn("[Replay] Creating new session",e),sf(o,{previousSessionId:r}))}function iE(e){return e.type===$.Custom}function Cc(e,t,n){return Gf(e,t)?($f(e,t,n),!0):!1}function sE(e,t,n){return Gf(e,t)?$f(e,t,n):Promise.resolve(null)}async function $f(e,t,n){if(!e.eventBuffer)return null;try{n&&e.recordingMode==="buffer"&&e.eventBuffer.clear(),n&&(e.eventBuffer.hasCheckout=!0);let r=e.getOptions(),o=aE(t,r.beforeAddRecordingEvent);return o?await e.eventBuffer.addEvent(o):void 0}catch(r){let o=r&&r instanceof ao?"addEventSizeExceeded":"addEvent";Z&&h.error(r),await e.stop({reason:o});let i=x();i&&i.recordDroppedEvent("internal_sdk_error","replay")}}function Gf(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=vc(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(xe(`[Replay] Skipping event with timestamp ${n} because it is after maxReplayDuration`,e.getOptions()._experiments.traceInternals),!1):!0}function aE(e,t){try{if(typeof t=="function"&&iE(e))return t(e)}catch(n){return Z&&h.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",n),null}return e}function Rc(e){return!e.type}function pc(e){return e.type==="transaction"}function cE(e){return e.type==="replay_event"}function af(e){return e.type==="feedback"}function Wf(e){let t=dE();return(n,r)=>{if(!e.isEnabled()||!Rc(n)&&!pc(n))return;let o=r&&r.statusCode;if(!(t&&(!o||o<200||o>=300))){if(pc(n)){uE(e,n);return}lE(e,n)}}}function uE(e,t){let n=e.getContext();t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function lE(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags||!t.tags.replayId)return;let{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||setTimeout(()=>{e.sendBufferedReplayOrFlush()})}function dE(){let e=x();if(!e)return!1;let t=e.getTransport();return t&&t.send.__sentry__baseTransport__||!1}function fE(e){return t=>{!e.isEnabled()||!Rc(t)||pE(e,t)}}function pE(e,t){let n=t.exception&&t.exception.values&&t.exception.values[0].value;if(typeof n=="string"&&(n.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){let r=Et({category:"replay.hydrate-error"});fo(e,r)}}function mE(e,t){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:!!(t.originalException&&t.originalException.__rrweb__)}function hE(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:$.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function gE(e,t){return e.recordingMode!=="buffer"||t.message===_c||!t.exception||t.type?!1:Ff(e.getOptions().errorSampleRate)}function _E(e,t=!1){let n=t?Wf(e):void 0;return Object.assign((r,o)=>e.isEnabled()?cE(r)?(delete r.breadcrumbs,r):!Rc(r)&&!pc(r)&&!af(r)||!e.checkAndHandleExpiredSession()?r:af(r)?(e.flush(),r.contexts.feedback.replay_id=e.getSessionId(),hE(e,r),r):mE(r,o)&&!e.getOptions()._experiments.captureExceptions?(Z&&h.log("[Replay] Ignoring error from rrweb internals",r),null):((gE(e,r)||e.recordingMode==="session")&&(r.tags={...r.tags,replayId:e.getSessionId()}),n&&n(r,{statusCode:200}),r):r,{id:"Replay"})}function Yi(e,t){return t.map(({type:n,start:r,end:o,name:i,data:s})=>{let a=e.throttledAddEvent({type:$.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:i,startTimestamp:r,endTimestamp:o,data:s}}});return typeof a=="string"?Promise.resolve(null):a})}function yE(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function SE(e){return t=>{if(!e.isEnabled())return;let n=yE(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Yi(e,[n]),!1)))}}function EE(e,t){return Z&&e.getOptions()._experiments.traceInternals?!1:Wr(t,x())}function Vi(e,t){e.isEnabled()&&t!==null&&(EE(e,t.name)||e.addUpdate(()=>(Yi(e,[t]),!0)))}function bE(e){let{startTimestamp:t,endTimestamp:n,fetchData:r,response:o}=e;if(!n)return null;let{method:i,url:s}=r;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:s,data:{method:i,statusCode:o?o.status:void 0}}}function TE(e){return t=>{if(!e.isEnabled())return;let n=bE(t);Vi(e,n)}}function IE(e){let{startTimestamp:t,endTimestamp:n,xhr:r}=e,o=r[Ne];if(!t||!n||!o)return null;let{method:i,url:s,status_code:a}=o;return s===void 0?null:{type:"resource.xhr",name:s,start:t/1e3,end:n/1e3,data:{method:i,statusCode:a}}}function vE(e){return t=>{if(!e.isEnabled())return;let n=IE(t);Vi(e,n)}}function Ki(e,t){if(e)try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){let n=Yf(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function zf(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function jf(e){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[Yf(e)];if(!e)return[void 0]}catch{return Z&&h.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Z&&h.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function $i(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function qf(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:o,method:i,statusCode:s,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:o,data:J({method:i,statusCode:s,request:a,response:c})}}function co(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function zt(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:o,warnings:i}=xE(n);return r.body=o,i&&i.length>0&&(r._meta={warnings:i}),r}function mc(e,t){return Object.keys(e).reduce((n,r)=>{let o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=e[r]),n},{})}function Yf(e){return new URLSearchParams(e).toString()}function xE(e){if(!e||typeof e!="string")return{body:e};let t=e.length>jd,n=wE(e);if(t){let r=e.slice(0,jd);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function wE(e){let t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Gi(e,t){let n=CE(e);return dt(n,t)}function CE(e,t=te.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(te.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function RE(e,t,n){try{let r=await AE(e,t,n),o=qf("resource.fetch",r);Vi(n.replay,o)}catch(r){Z&&h.error("[Replay] Failed to capture fetch breadcrumb",r)}}function kE(e,t,n){let{input:r,response:o}=t,i=r?Vf(r):void 0,s=Ki(i,n.textEncoder),a=o?zf(o.headers.get("content-length")):void 0;s!==void 0&&(e.data.request_body_size=s),a!==void 0&&(e.data.response_body_size=a)}async function AE(e,t,n){let r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r}=t,{url:s,method:a,status_code:c=0,request_body_size:u,response_body_size:l}=e.data,d=Gi(s,n.networkDetailAllowUrls)&&!Gi(s,n.networkDetailDenyUrls),p=d?OE(n,t.input,u):co(u),m=await ME(d,n,t.response,l);return{startTimestamp:o,endTimestamp:i,url:s,method:a,statusCode:c,request:p,response:m}}function OE({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let o=n?LE(n,t):{};if(!e)return zt(o,r,void 0);let i=Vf(n),[s,a]=jf(i),c=zt(o,r,s);return a?$i(c,a):c}async function ME(e,{networkCaptureBodies:t,textEncoder:n,networkResponseHeaders:r},o,i){if(!e&&i!==void 0)return co(i);let s=o?Kf(o.headers,r):{};if(!o||!t&&i!==void 0)return zt(s,i,void 0);let[a,c]=await DE(o),u=NE(a,{networkCaptureBodies:t,textEncoder:n,responseBodySize:i,captureDetails:e,headers:s});return c?$i(u,c):u}function NE(e,{networkCaptureBodies:t,textEncoder:n,responseBodySize:r,captureDetails:o,headers:i}){try{let s=e&&e.length&&r===void 0?Ki(e,n):r;return o?t?zt(i,s,e):zt(i,s,void 0):co(s)}catch(s){return Z&&h.warn("[Replay] Failed to serialize response body",s),zt(i,r,void 0)}}async function DE(e){let t=PE(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await FE(t)]}catch(n){return Z&&h.warn("[Replay] Failed to get text body from response",n),[void 0,"BODY_PARSE_ERROR"]}}function Vf(e=[]){if(!(e.length!==2||typeof e[1]!="object"))return e[1].body}function Kf(e,t){let n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function LE(e,t){return e.length===1&&typeof e[0]!="string"?cf(e[0],t):e.length===2?cf(e[1],t):{}}function cf(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?Kf(n,t):Array.isArray(n)?{}:mc(n,t):{}}function PE(e){try{return e.clone()}catch(t){Z&&h.warn("[Replay] Failed to clone response body",t)}}function FE(e){return new Promise((t,n)=>{let r=setTimeout(()=>n(new Error("Timeout while trying to read response body")),500);BE(e).then(o=>t(o),o=>n(o)).finally(()=>clearTimeout(r))})}async function BE(e){return await e.text()}async function HE(e,t,n){try{let r=$E(e,t,n),o=qf("resource.xhr",r);Vi(n.replay,o)}catch(r){Z&&h.error("[Replay] Failed to capture xhr breadcrumb",r)}}function UE(e,t,n){let{xhr:r,input:o}=t;if(!r)return;let i=Ki(o,n.textEncoder),s=r.getResponseHeader("content-length")?zf(r.getResponseHeader("content-length")):jE(r.response,r.responseType,n.textEncoder);i!==void 0&&(e.data.request_body_size=i),s!==void 0&&(e.data.response_body_size=s)}function $E(e,t,n){let r=Date.now(),{startTimestamp:o=r,endTimestamp:i=r,input:s,xhr:a}=t,{url:c,method:u,status_code:l=0,request_body_size:d,response_body_size:p}=e.data;if(!c)return null;if(!a||!Gi(c,n.networkDetailAllowUrls)||Gi(c,n.networkDetailDenyUrls)){let M=co(d),w=co(p);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:l,request:M,response:w}}let m=a[Ne],g=m?mc(m.request_headers,n.networkRequestHeaders):{},E=mc(GE(a),n.networkResponseHeaders),[T,S]=n.networkCaptureBodies?jf(s):[void 0],[b,v]=n.networkCaptureBodies?WE(a):[void 0],O=zt(g,d,T),L=zt(E,p,b);return{startTimestamp:o,endTimestamp:i,url:c,method:u,statusCode:l,request:S?$i(O,S):O,response:v?$i(L,v):L}}function GE(e){let t=e.getAllResponseHeaders();return t?t.split(`\r
29
29
  `).reduce((n,r)=>{let[o,i]=r.split(": ");return n[o.toLowerCase()]=i,n},{}):{}}function WE(e){let t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return zE(e.response,e.responseType)}catch(n){t.push(n)}return Z&&h.warn("[Replay] Failed to get xhr response body",...t),[void 0]}function zE(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch{return Z&&h.warn("[Replay] Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return Z&&h.info("[Replay] Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function jE(e,t,n){try{let r=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Ki(r,n)}catch{return}}function qE(e){let t=x();try{let n=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:o,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:a}=e.getOptions(),c={replay:e,textEncoder:n,networkDetailAllowUrls:r,networkDetailDenyUrls:o,networkCaptureBodies:i,networkRequestHeaders:s,networkResponseHeaders:a};t&&t.on?t.on("beforeAddBreadcrumb",(u,l)=>YE(c,u,l)):(bt(TE(e)),Tt(vE(e)))}catch{}}function YE(e,t,n){if(t.data)try{VE(t)&&JE(n)&&(UE(t,n,e),HE(t,n,e)),KE(t)&&XE(n)&&(kE(t,n,e),RE(t,n,e))}catch{Z&&h.warn("Error when enriching network breadcrumb")}}function VE(e){return e.category==="xhr"}function KE(e){return e.category==="fetch"}function JE(e){return e&&e.xhr}function XE(e){return e&&e.response}var uf=null;function ZE(e){return!!e.category}var QE=e=>t=>{if(!e.isEnabled())return;let n=eb(t);n&&fo(e,n)};function eb(e){let t=e.getLastBreadcrumb&&e.getLastBreadcrumb();return uf===t||!t||(uf=t,!ZE(t)||["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui."))?null:t.category==="console"?tb(t):Et(t)}function tb(e){let t=e.data&&e.data.arguments;if(!Array.isArray(t)||t.length===0)return Et(e);let n=!1,r=t.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>Ci?(n=!0,`${o.slice(0,Ci)}\u2026`):o;if(typeof o=="object")try{let i=be(o,7);return JSON.stringify(i).length>Ci?(n=!0,`${JSON.stringify(i,null,2).slice(0,Ci)}\u2026`):i}catch{}return o});return Et({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function nb(e){let t=q(),n=x();t.addScopeListener(QE(e)),yr(PS(e)),et(SE(e)),qE(e);let r=_E(e,!lf(n));n&&n.addEventProcessor?n.addEventProcessor(r):Zo(r),lf(n)&&(n.on("beforeSendEvent",fE(e)),n.on("afterSendEvent",Wf(e)),n.on("createDsc",o=>{let i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(o.replay_id=i)}),n.on("startTransaction",o=>{e.lastTransaction=o}),n.on("finishTransaction",o=>{e.lastTransaction=o}),n.on("beforeSendFeedback",(o,i)=>{let s=e.getSessionId();i&&i.includeReplay&&e.isEnabled()&&s&&o.contexts&&o.contexts.feedback&&(o.contexts.feedback.replay_id=s)}))}function lf(e){return!!(e&&e.on)}async function rb(e){try{return Promise.all(Yi(e,[ob(te.performance.memory)]))}catch{return[]}}function ob(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,o=Date.now()/1e3;return{type:"memory",name:"memory",start:o,end:o,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function ib(e,t,n){let r,o,i,s=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return c(),r=e(),r}function c(){o!==void 0&&clearTimeout(o),i!==void 0&&clearTimeout(i),o=i=void 0}function u(){return o!==void 0||i!==void 0?a():r}function l(){return o&&clearTimeout(o),o=setTimeout(a,t),s&&i===void 0&&(i=setTimeout(a,s)),r}return l.cancel=c,l.flush=u,l}function sb(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){Z&&h.warn("[Replay] Received replay event after session expired.");return}let o=r||!t;t=!0,e.clickDetector&&OS(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&o&&e.setInitialState(),!Cc(e,n,o))return!0;if(!o)return!1;if(cb(e,o),e.session&&e.session.previousSessionId)return!0;if(e.recordingMode==="buffer"&&e.session&&e.eventBuffer){let i=e.eventBuffer.getEarliestTimestamp();i&&(xe(`[Replay] Updating session start time to earliest event in buffer to ${new Date(i)}`,e.getOptions()._experiments.traceInternals),e.session.started=i,e.getOptions().stickySession&&wc(e.session))}return e.recordingMode==="session"&&e.flush(),!0})}}function ab(e){let t=e.getOptions();return{type:$.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function cb(e,t){!t||!e.session||e.session.segmentId!==0||Cc(e,ab(e),!1)}function ub(e,t,n,r){return he(Ar(e,On(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function lb({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)}
30
- `;if(typeof e=="string")n=`${r}${e}`;else{let i=new TextEncoder().encode(r);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}async function db({client:e,scope:t,replayId:n,event:r}){let o=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:n,integrations:o};e.emit&&e.emit("preprocessEvent",r,i);let s=await sn(e.getOptions(),r,i,t,e,ge());if(!s)return null;s.platform=s.platform||"javascript";let a=e.getSdkMetadata&&e.getSdkMetadata(),{name:c,version:u}=a&&a.sdk||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},s}async function fb({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){let s=lb({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:l}=r,d=x(),p=q(),m=d&&d.getTransport(),g=d&&d.getDsn();if(!d||!m||!g||!i.sampled)return;let E={type:uy,replay_start_timestamp:l/1e3,timestamp:o/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:i.sampled},T=await db({scope:p,client:d,replayId:t,event:E});if(!T){d.recordDroppedEvent("event_processor","replay",E),xe("An event processor returned `null`, will not send event.");return}delete T.sdkProcessingMetadata;let S=ub(T,s,g,d.getOptions().tunnel),b;try{b=await m.send(S)}catch(O){let L=new Error(_c);try{L.cause=O}catch{}throw L}if(!b)return b;if(typeof b.statusCode=="number"&&(b.statusCode<200||b.statusCode>=300))throw new Wi(b.statusCode);let v=Mr({},b);if(Or(v,"replay"))throw new zi(v);return b}var Wi=class extends Error{constructor(t){super(`Transport returned status code ${t}`)}},zi=class extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}};async function Jf(e,t={count:0,interval:hy}){let{recordingData:n,options:r}=e;if(n.length)try{return await fb(e),!0}catch(o){if(o instanceof Wi||o instanceof zi)throw o;if(Go("Replays",{_retryCount:t.count}),Z&&r._experiments&&r._experiments.captureExceptions&&xt(o),t.count>=gy){let i=new Error(`${_c} - max retries exceeded`);try{i.cause=o}catch{}throw i}return t.interval*=++t.count,new Promise((i,s)=>{setTimeout(async()=>{try{await Jf(e,t),i(!0)}catch(a){s(a)}},t.interval)})}}var Xf="__THROTTLED",pb="__SKIPPED";function mb(e,t,n){let r=new Map,o=a=>{let c=a-n;r.forEach((u,l)=>{l<c&&r.delete(l)})},i=()=>[...r.values()].reduce((a,c)=>a+c,0),s=!1;return(...a)=>{let c=Math.floor(Date.now()/1e3);if(o(c),i()>=t){let l=s;return s=!0,l?pb:Xf}s=!1;let u=r.get(c)||0;return r.set(c,u+1),e(...a)}}var hc=class e{constructor({options:t,recordingOptions:n}){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),e.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:ly,sessionIdleExpire:dy},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=ib(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=mb((s,a)=>sE(this,s,a),300,5);let{slowClickTimeout:r,slowClickIgnoreSelectors:o}=this.getOptions(),i=r?{threshold:Math.min(_y,r),timeout:r,scrollTimeout:yy,ignoreSelector:o?o.join(","):""}:void 0;i&&(this.clickDetector=new cc(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}initializeSampling(t){let{errorSampleRate:n,sessionSampleRate:r}=this._options;if(!(n<=0&&r<=0)){if(this._initializeSessionForSampling(t),!this.session){this._handleException(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",Zn(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session")throw new Error("Replay recording is already in progress");if(this._isEnabled&&this.recordingMode==="buffer")throw new Error("Replay buffering is in progress, call `flush()` to save the replay");Zn("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);let t=Va({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");Zn("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);let t=Va({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{let t=this._canvas;this._stopRecording=Wt({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:my},emit:sb(this),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{xe(`[Replay] Stopping Replay${n?` triggered by ${n}`:""}`,this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,tE(this)}catch(r){this._handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),xe("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),xe("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();let n=Date.now();xe("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();let r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){let n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&fc(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){let t=`${te.location.pathname}${te.location.hash}${te.location.search}`,n=`${te.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){let r=this._throttledAddEvent(t,n);if(r===Xf){let o=Et({category:"replay.throttled"});this.addUpdate(()=>!Cc(this,{type:TS,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return r}getCurrentRoute(){let t=this.lastTransaction||q().getTransaction(),r=(t&&P(t).data||{})[_e];if(!(!t||!r||!["route","custom"].includes(r)))return P(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=ZS({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(t){Z&&h.error("[Replay]",t),Z&&this._options._experiments&&this._options._experiments.captureExceptions&&xt(t)}_initializeSessionForSampling(t){let n=this._options.errorSampleRate>0,r=Va({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;let t=this.session;return Uf(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{te.document.addEventListener("visibilitychange",this._handleVisibilityChange),te.addEventListener("blur",this._handleWindowBlur),te.addEventListener("focus",this._handleWindowFocus),te.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(nb(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}this._performanceCleanupCallback=KS(this)}_removeListeners(){try{te.document.removeEventListener("visibilitychange",this._handleVisibilityChange),te.removeEventListener("blur",this._handleWindowBlur),te.removeEventListener("focus",this._handleWindowFocus),te.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this._handleException(t)}}__init(){this._handleVisibilityChange=()=>{te.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{let t=Et({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{let t=Et({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{US(this,t)}}_doChangeToBackgroundTasks(t){!this.session||Hf(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){xe("[Replay] Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:$.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=WS(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Yi(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:t,eventBuffer:n}=this;if(!t||!n||t.segmentId)return;let r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){let t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){let t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){Z&&h.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await rb(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");let r=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await Jf({replayId:t,recordingData:i,segmentId:o,eventContext:r,session:this.session,options:this.getOptions(),timestamp:n})}catch(n){this._handleException(n),this.stop({reason:"sendReplay"});let r=x();r&&r.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){Z&&h.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session)return;let n=this.session.started,o=Date.now()-n;this._debouncedFlush.cancel();let i=o<this._options.minReplayDuration,s=o>this._options.maxReplayDuration+5e3;if(i||s){xe(`[Replay] Session duration (${Math.floor(o/1e3)}s) is too ${i?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),i&&this._debouncedFlush();return}let a=this.eventBuffer;if(a&&this.session.segmentId===0&&!a.hasCheckout&&xe("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(c){Z&&h.error(c)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&wc(this.session)}__init6(){this._onMutationHandler=t=>{let n=t.length,r=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,i=r&&n>r;if(n>o||i){let s=Et({category:"replay.mutations",data:{count:n,limit:i}});this._createCustomBreadcrumb(s)}return i?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}};function Qr(e,t,n,r){let o=typeof r=="string"?r.split(","):[],i=[...e,...o,...t];return typeof n<"u"&&(typeof n=="string"&&i.push(`.${n}`),Re(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),i.join(",")}function hb({mask:e,unmask:t,block:n,unblock:r,ignore:o,blockClass:i,blockSelector:s,maskTextClass:a,maskTextSelector:c,ignoreClass:u}){let l=['base[href="/"]'],d=Qr(e,[".sentry-mask","[data-sentry-mask]"],a,c),p=Qr(t,[".sentry-unmask","[data-sentry-unmask]"]),m={maskTextSelector:d,unmaskTextSelector:p,blockSelector:Qr(n,[".sentry-block","[data-sentry-block]",...l],i,s),unblockSelector:Qr(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Qr(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],u)};return i instanceof RegExp&&(m.blockClass=i),a instanceof RegExp&&(m.maskTextClass=a),m}function gb({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){return!r||o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}var df='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',_b=["content-length","content-type","accept"],ff=!1,yb=e=>new uo(e),uo=class e{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=fy,flushMaxDelay:n=py,minReplayDuration:r=Sy,maxReplayDuration:o=qd,stickySession:i=!0,useCompression:s=!0,workerUrl:a,_experiments:c={},sessionSampleRate:u,errorSampleRate:l,maskAllText:d=!0,maskAllInputs:p=!0,blockAllMedia:m=!0,mutationBreadcrumbLimit:g=750,mutationLimit:E=1e4,slowClickTimeout:T=7e3,slowClickIgnoreSelectors:S=[],networkDetailAllowUrls:b=[],networkDetailDenyUrls:v=[],networkCaptureBodies:O=!0,networkRequestHeaders:L=[],networkResponseHeaders:M=[],mask:w=[],maskAttributes:U=["title","placeholder"],unmask:ne=[],block:k=[],unblock:N=[],ignore:K=[],maskFn:se,beforeAddRecordingEvent:de,beforeErrorSampling:Pe,blockClass:X,blockSelector:We,maskInputOptions:le,maskTextClass:Ce,maskTextSelector:Xe,ignoreClass:is}={}){this.name=e.id;let En=hb({mask:w,unmask:ne,block:k,unblock:N,ignore:K,blockClass:X,blockSelector:We,maskTextClass:Ce,maskTextSelector:Xe,ignoreClass:is});if(this._recordingOptions={maskAllInputs:p,maskAllText:d,maskInputOptions:{...le||{},password:!0},maskTextFn:se,maskInputFn:se,maskAttributeFn:(At,bn,sr)=>gb({maskAttributes:U,maskAllText:d,privacyOptions:En,key:At,value:bn,el:sr}),...En,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:At=>{try{At.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,Ey),maxReplayDuration:Math.min(o,qd),stickySession:i,sessionSampleRate:u,errorSampleRate:l,useCompression:s,workerUrl:a,blockAllMedia:m,maskAllInputs:p,maskAllText:d,mutationBreadcrumbLimit:g,mutationLimit:E,slowClickTimeout:T,slowClickIgnoreSelectors:S,networkDetailAllowUrls:b,networkDetailDenyUrls:v,networkCaptureBodies:O,networkRequestHeaders:pf(L),networkResponseHeaders:pf(M),beforeAddRecordingEvent:de,beforeErrorSampling:Pe,_experiments:c},typeof u=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.
30
+ `;if(typeof e=="string")n=`${r}${e}`;else{let i=new TextEncoder().encode(r);n=new Uint8Array(i.length+e.length),n.set(i),n.set(e,i.length)}return n}async function db({client:e,scope:t,replayId:n,event:r}){let o=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,i={event_id:n,integrations:o};e.emit&&e.emit("preprocessEvent",r,i);let s=await sn(e.getOptions(),r,i,t,e,ge());if(!s)return null;s.platform=s.platform||"javascript";let a=e.getSdkMetadata&&e.getSdkMetadata(),{name:c,version:u}=a&&a.sdk||{};return s.sdk={...s.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0"},s}async function fb({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:o,session:i}){let s=lb({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:l}=r,d=x(),p=q(),m=d&&d.getTransport(),g=d&&d.getDsn();if(!d||!m||!g||!i.sampled)return;let E={type:uy,replay_start_timestamp:l/1e3,timestamp:o/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:i.sampled},T=await db({scope:p,client:d,replayId:t,event:E});if(!T){d.recordDroppedEvent("event_processor","replay",E),xe("An event processor returned `null`, will not send event.");return}delete T.sdkProcessingMetadata;let S=ub(T,s,g,d.getOptions().tunnel),b;try{b=await m.send(S)}catch(O){let L=new Error(_c);try{L.cause=O}catch{}throw L}if(!b)return b;if(typeof b.statusCode=="number"&&(b.statusCode<200||b.statusCode>=300))throw new Wi(b.statusCode);let v=Mr({},b);if(Or(v,"replay"))throw new zi(v);return b}var Wi=class extends Error{constructor(t){super(`Transport returned status code ${t}`)}},zi=class extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}};async function Jf(e,t={count:0,interval:hy}){let{recordingData:n,options:r}=e;if(n.length)try{return await fb(e),!0}catch(o){if(o instanceof Wi||o instanceof zi)throw o;if(Go("Replays",{_retryCount:t.count}),Z&&r._experiments&&r._experiments.captureExceptions&&xt(o),t.count>=gy){let i=new Error(`${_c} - max retries exceeded`);try{i.cause=o}catch{}throw i}return t.interval*=++t.count,new Promise((i,s)=>{setTimeout(async()=>{try{await Jf(e,t),i(!0)}catch(a){s(a)}},t.interval)})}}var Xf="__THROTTLED",pb="__SKIPPED";function mb(e,t,n){let r=new Map,o=a=>{let c=a-n;r.forEach((u,l)=>{l<c&&r.delete(l)})},i=()=>[...r.values()].reduce((a,c)=>a+c,0),s=!1;return(...a)=>{let c=Math.floor(Date.now()/1e3);if(o(c),i()>=t){let l=s;return s=!0,l?pb:Xf}s=!1;let u=r.get(c)||0;return r.set(c,u+1),e(...a)}}var hc=class e{constructor({options:t,recordingOptions:n}){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),e.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:ly,sessionIdleExpire:dy},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=ib(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=mb((s,a)=>sE(this,s,a),300,5);let{slowClickTimeout:r,slowClickIgnoreSelectors:o}=this.getOptions(),i=r?{threshold:Math.min(_y,r),timeout:r,scrollTimeout:yy,ignoreSelector:o?o.join(","):""}:void 0;i&&(this.clickDetector=new cc(this,i))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}initializeSampling(t){let{errorSampleRate:n,sessionSampleRate:r}=this._options;if(!(n<=0&&r<=0)){if(this._initializeSessionForSampling(t),!this.session){this._handleException(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",Zn(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session")throw new Error("Replay recording is already in progress");if(this._isEnabled&&this.recordingMode==="buffer")throw new Error("Replay buffering is in progress, call `flush()` to save the replay");Zn("[Replay] Starting replay in session mode",this._options._experiments.traceInternals),this._updateUserActivity();let t=Va({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");Zn("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);let t=Va({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{let t=this._canvas;this._stopRecording=Wt({...this._recordingOptions,...this.recordingMode==="buffer"&&{checkoutEveryNms:my},emit:sb(this),onMutation:this._onMutationHandler,...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this._handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(this._isEnabled){this._isEnabled=!1;try{xe(`[Replay] Stopping Replay${n?` triggered by ${n}`:""}`,this._options._experiments.traceInternals),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,tE(this)}catch(r){this._handleException(r)}}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),xe("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),xe("[Replay] Resuming replay",this._options._experiments.traceInternals))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();let n=Date.now();xe("[Replay] Converting buffer to session",this._options._experiments.traceInternals),await this.flushImmediate();let r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){let n=t();this.recordingMode!=="buffer"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(this._lastActivity&&fc(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&this.session.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){let t=`${te.location.pathname}${te.location.hash}${te.location.search}`,n=`${te.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){let r=this._throttledAddEvent(t,n);if(r===Xf){let o=Et({category:"replay.throttled"});this.addUpdate(()=>!Cc(this,{type:TS,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o,metric:!0}}))}return r}getCurrentRoute(){let t=this.lastTransaction||q().getTransaction(),r=(t&&P(t).data||{})[_e];if(!(!t||!r||!["route","custom"].includes(r)))return P(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=ZS({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(t){Z&&h.error("[Replay]",t),Z&&this._options._experiments&&this._options._experiments.captureExceptions&&xt(t)}_initializeSessionForSampling(t){let n=this._options.errorSampleRate>0,r=Va({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;let t=this.session;return Uf(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"refresh session"}),this.initializeSampling(t.id))}_addListeners(){try{te.document.addEventListener("visibilitychange",this._handleVisibilityChange),te.addEventListener("blur",this._handleWindowBlur),te.addEventListener("focus",this._handleWindowFocus),te.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(nb(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}this._performanceCleanupCallback=KS(this)}_removeListeners(){try{te.document.removeEventListener("visibilitychange",this._handleVisibilityChange),te.removeEventListener("blur",this._handleWindowBlur),te.removeEventListener("focus",this._handleWindowFocus),te.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this._handleException(t)}}__init(){this._handleVisibilityChange=()=>{te.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{let t=Et({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init3(){this._handleWindowFocus=()=>{let t=Et({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}__init4(){this._handleKeyboardEvent=t=>{US(this,t)}}_doChangeToBackgroundTasks(t){!this.session||Hf(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){xe("[Replay] Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:$.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=WS(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(Yi(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:t,eventBuffer:n}=this;if(!t||!n||t.segmentId)return;let r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){let t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){let t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){Z&&h.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.hasEvents)&&(await rb(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");let r=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();let i=await this.eventBuffer.finish();await Jf({replayId:t,recordingData:i,segmentId:o,eventContext:r,session:this.session,options:this.getOptions(),timestamp:n})}catch(n){this._handleException(n),this.stop({reason:"sendReplay"});let r=x();r&&r.recordDroppedEvent("send_error","replay")}}__init5(){this._flush=async({force:t=!1}={})=>{if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){Z&&h.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session)return;let n=this.session.started,o=Date.now()-n;this._debouncedFlush.cancel();let i=o<this._options.minReplayDuration,s=o>this._options.maxReplayDuration+5e3;if(i||s){xe(`[Replay] Session duration (${Math.floor(o/1e3)}s) is too ${i?"short":"long"}, not sending replay.`,this._options._experiments.traceInternals),i&&this._debouncedFlush();return}let a=this.eventBuffer;if(a&&this.session.segmentId===0&&!a.hasCheckout&&xe("[Replay] Flushing initial segment without checkout.",this._options._experiments.traceInternals),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=void 0;return}try{await this._flushLock}catch(c){Z&&h.error(c)}finally{this._debouncedFlush()}}}_maybeSaveSession(){this.session&&this._options.stickySession&&wc(this.session)}__init6(){this._onMutationHandler=t=>{let n=t.length,r=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,i=r&&n>r;if(n>o||i){let s=Et({category:"replay.mutations",data:{count:n,limit:i}});this._createCustomBreadcrumb(s)}return i?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}};function Qr(e,t,n,r){let o=typeof r=="string"?r.split(","):[],i=[...e,...o,...t];return typeof n<"u"&&(typeof n=="string"&&i.push(`.${n}`),Re(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),i.join(",")}function hb({mask:e,unmask:t,block:n,unblock:r,ignore:o,blockClass:i,blockSelector:s,maskTextClass:a,maskTextSelector:c,ignoreClass:u}){let l=['base[href="/"]'],d=Qr(e,[".sentry-mask","[data-sentry-mask]"],a,c),p=Qr(t,[".sentry-unmask","[data-sentry-unmask]"]),m={maskTextSelector:d,unmaskTextSelector:p,blockSelector:Qr(n,[".sentry-block","[data-sentry-block]",...l],i,s),unblockSelector:Qr(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:Qr(o,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],u)};return i instanceof RegExp&&(m.blockClass=i),a instanceof RegExp&&(m.maskTextClass=a),m}function gb({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:o,value:i}){return!r||o.unmaskTextSelector&&e.matches(o.unmaskTextSelector)?i:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?i.replace(/[\S]/g,"*"):i}var df='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',_b=["content-length","content-type","accept"],ff=!1,yb=e=>new uo(e),uo=class e{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:t=fy,flushMaxDelay:n=py,minReplayDuration:r=Sy,maxReplayDuration:o=qd,stickySession:i=!0,useCompression:s=!0,workerUrl:a,_experiments:c={},sessionSampleRate:u,errorSampleRate:l,maskAllText:d=!0,maskAllInputs:p=!0,blockAllMedia:m=!0,mutationBreadcrumbLimit:g=750,mutationLimit:E=1e4,slowClickTimeout:T=7e3,slowClickIgnoreSelectors:S=[],networkDetailAllowUrls:b=[],networkDetailDenyUrls:v=[],networkCaptureBodies:O=!0,networkRequestHeaders:L=[],networkResponseHeaders:M=[],mask:w=[],maskAttributes:U=["title","placeholder"],unmask:ne=[],block:k=[],unblock:N=[],ignore:K=[],maskFn:se,beforeAddRecordingEvent:de,beforeErrorSampling:Pe,blockClass:X,blockSelector:We,maskInputOptions:le,maskTextClass:Ce,maskTextSelector:Xe,ignoreClass:is}={}){this.name=e.id;let En=hb({mask:w,unmask:ne,block:k,unblock:N,ignore:K,blockClass:X,blockSelector:We,maskTextClass:Ce,maskTextSelector:Xe,ignoreClass:is});if(this._recordingOptions={maskAllInputs:p,maskAllText:d,maskInputOptions:{...le||{},password:!0},maskTextFn:se,maskInputFn:se,maskAttributeFn:(At,bn,sr)=>gb({maskAttributes:U,maskAllText:d,privacyOptions:En,key:At,value:bn,el:sr}),...En,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:At=>{try{At.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,Ey),maxReplayDuration:Math.min(o,qd),stickySession:i,sessionSampleRate:u,errorSampleRate:l,useCompression:s,workerUrl:a,blockAllMedia:m,maskAllInputs:p,maskAllText:d,mutationBreadcrumbLimit:g,mutationLimit:E,slowClickTimeout:T,slowClickIgnoreSelectors:S,networkDetailAllowUrls:b,networkDetailDenyUrls:v,networkCaptureBodies:O,networkRequestHeaders:pf(L),networkResponseHeaders:pf(M),beforeAddRecordingEvent:de,beforeErrorSampling:Pe,_experiments:c},typeof u=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.
31
31
  This option is deprecated and will be removed soon.
32
32
  Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:
33
33
  Sentry.init({ replaysSessionSampleRate: ${u} })`),this._initialOptions.sessionSampleRate=u),typeof l=="number"&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.
@@ -362,4 +362,4 @@ ${t==="system"?`
362
362
  `),o.append(i),n.append(o),{get el(){return n}}}function sT({formTitle:e,showBranding:t,showName:n,showEmail:r,isNameRequired:o,isEmailRequired:i,colorScheme:s,defaultName:a,defaultEmail:c,onClosed:u,onCancel:l,onSubmit:d,...p}){let m=null;function g(){E(),u&&u()}function E(){m&&(m.open=!1)}function T(){m&&(m.open=!0)}function S(){return m&&m.open===!0||!1}let{el:b,showError:v,hideError:O}=rT({showEmail:r,showName:n,isEmailRequired:i,isNameRequired:o,defaultName:a,defaultEmail:c,onSubmit:d,onCancel:l,...p});return m=oe("dialog",{className:"dialog",open:!0,onClick:g},oe("div",{className:"dialog__content",onClick:L=>{L.stopPropagation()}},oe("h2",{className:"dialog__header"},e,t&&oe("a",{className:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer"},iT({colorScheme:s}).el)),b)),{get el(){return m},showError:v,hideError:O,open:T,close:E,checkIsOpen:S}}var es=16,Sp=17,aT="http://www.w3.org/2000/svg";function cT(){let e=c=>yn.document.createElementNS(aT,c),t=Ge(e("svg"),{class:"success-icon",width:`${es}`,height:`${Sp}`,viewBox:`0 0 ${es} ${Sp}`,fill:"none"}),n=Ge(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Ge(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),o=Ge(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(o,r);let i=e("defs"),s=Ge(e("clipPath"),{id:"clip0_57_156"}),a=Ge(e("rect"),{width:`${es}`,height:`${es}`,fill:"white",transform:"translate(0 0.5)"});return s.appendChild(a),i.appendChild(s),t.appendChild(i).appendChild(s).appendChild(a),{get el(){return t}}}function uT({message:e,onRemove:t}){function n(){r&&(r.remove(),t&&t())}let r=oe("div",{className:"success-message",onClick:n},cT().el,e);return{el:r,remove:n}}function Ep({shadow:e,options:{shouldCreateActor:t=!0,...n},attachTo:r}){let o,i,s=!1;function a(){if(e)try{let S=uT({message:n.successMessageText,onRemove:()=>{b&&clearTimeout(b),l()}});if(!S.el)throw new Error("Unable to show success message");e.appendChild(S.el);let b=setTimeout(()=>{S&&S.remove()},5e3)}catch(S){h.error(S)}}async function c(S){if(!i)return;let b=[];if(n.isNameRequired&&!S.name&&b.push(n.nameLabel),n.isEmailRequired&&!S.email&&b.push(n.emailLabel),S.message||b.push(n.messageLabel),b.length>0){i.showError(`Please enter in the following required fields: ${b.join(", ")}`);return}if(!await Zb(i,S)){n.onSubmitError&&n.onSubmitError();return}E(),a(),n.onSubmitSuccess&&n.onSubmitSuccess()}function u(){let S=x(),b=S&&S.getIntegrationByName&&S.getIntegrationByName("Replay");b&&b.flush().catch(v=>{_n&&h.error(v)})}function l(){o&&o.show()}function d(){o&&o.hide()}function p(){o&&o.el&&o.el.remove()}function m(){try{if(i){i.open(),s=!0,n.onFormOpen&&n.onFormOpen(),u();return}let S=n.useSentryUser,b=q(),v=b&&b.getUser();if(i=sT({colorScheme:n.colorScheme,showBranding:n.showBranding,showName:n.showName||n.isNameRequired,showEmail:n.showEmail||n.isEmailRequired,isNameRequired:n.isNameRequired,isEmailRequired:n.isEmailRequired,formTitle:n.formTitle,cancelButtonLabel:n.cancelButtonLabel,submitButtonLabel:n.submitButtonLabel,emailLabel:n.emailLabel,emailPlaceholder:n.emailPlaceholder,messageLabel:n.messageLabel,messagePlaceholder:n.messagePlaceholder,nameLabel:n.nameLabel,namePlaceholder:n.namePlaceholder,isRequiredLabel:n.isRequiredLabel,defaultName:S&&v&&v[S.name]||"",defaultEmail:S&&v&&v[S.email]||"",onClosed:()=>{l(),s=!1,n.onFormClose&&n.onFormClose()},onCancel:()=>{g(),l()},onSubmit:c}),!i.el)throw new Error("Unable to open Feedback dialog");e.appendChild(i.el),d(),n.onFormOpen&&n.onFormOpen(),u()}catch(S){h.error(S)}}function g(){i&&(i.close(),s=!1,n.onFormClose&&n.onFormClose())}function E(){if(i){g();let S=i.el;S&&S.remove(),i=void 0}}function T(){s||m(),d()}return r?r.addEventListener("click",T):t&&(o=tT({buttonLabel:n.buttonLabel,onClick:T}),o.el&&e.appendChild(o.el)),{get actor(){return o},get dialog(){return i},showActor:l,hideActor:d,removeActor:p,openDialog:m,closeDialog:g,removeDialog:E}}var ts=yn.document,lT=e=>new mo(e),mo=class e{static __initStatic(){this.id="Feedback"}constructor({autoInject:t=!0,id:n="sentry-feedback",isEmailRequired:r=!1,isNameRequired:o=!1,showBranding:i=!0,showEmail:s=!0,showName:a=!0,useSentryUser:c={email:"email",name:"username"},themeDark:u,themeLight:l,colorScheme:d="system",buttonLabel:p=Db,cancelButtonLabel:m=Lb,submitButtonLabel:g=Pb,formTitle:E=Fb,emailPlaceholder:T=Bb,emailLabel:S=Hb,messagePlaceholder:b=Ub,messageLabel:v=$b,namePlaceholder:O=Gb,nameLabel:L=Wb,isRequiredLabel:M=zb,successMessageText:w=jb,onFormClose:U,onFormOpen:ne,onSubmitError:k,onSubmitSuccess:N}={}){this.name=e.id,this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1,this.options={autoInject:t,showBranding:i,id:n,isEmailRequired:r,isNameRequired:o,showEmail:s,showName:a,useSentryUser:c,colorScheme:d,themeDark:{...gp.dark,...u},themeLight:{...gp.light,...l},buttonLabel:p,cancelButtonLabel:m,submitButtonLabel:g,formTitle:E,emailLabel:S,emailPlaceholder:T,messageLabel:v,messagePlaceholder:b,nameLabel:L,namePlaceholder:O,isRequiredLabel:M,successMessageText:w,onFormClose:U,onFormOpen:ne,onSubmitError:k,onSubmitSuccess:N}}setupOnce(){if(kn())try{this._cleanupWidgetIfExists();let{autoInject:t}=this.options;if(!t)return;this._createWidget(this.options)}catch(t){_n&&h.error(t)}}openDialog(){this._widget||this._createWidget({...this.options,shouldCreateActor:!1}),this._widget&&this._widget.openDialog()}closeDialog(){this._widget&&this._widget.closeDialog()}attachTo(t,n){try{let r=_p(this.options,n||{});return this._ensureShadowHost(r,({shadow:o})=>{let i=typeof t=="string"?ts.querySelector(t):typeof t.addEventListener=="function"?t:null;if(!i)return _n&&h.error("[Feedback] Unable to attach to target element"),null;let s=Ep({shadow:o,options:r,attachTo:i});return this._widgets.add(s),this._widget||(this._widget=s),s})}catch(r){return _n&&h.error(r),null}}createWidget(t){try{return this._createWidget(_p(this.options,t||{}))}catch(n){return _n&&h.error(n),null}}removeWidget(t){if(!t)return!1;try{if(this._widgets.has(t))return t.removeActor(),t.removeDialog(),this._widgets.delete(t),this._widget===t&&(this._widget=null),!0}catch(n){_n&&h.error(n)}return!1}getWidget(){return this._widget}remove(){this._host&&this._host.remove(),this._initialize()}_initialize(){this._host=null,this._shadow=null,this._widget=null,this._widgets=new Set,this._hasInsertedActorStyles=!1}_cleanupWidgetIfExists(){this._host&&this.remove();let t=ts.querySelector(`#${this.options.id}`);t&&t.remove()}_createWidget(t){return this._ensureShadowHost(t,({shadow:n})=>{let r=Ep({shadow:n,options:t});return!this._hasInsertedActorStyles&&r.actor&&(n.appendChild(Vb(ts)),this._hasInsertedActorStyles=!0),this._widgets.add(r),this._widget||(this._widget=r),r})}_ensureShadowHost(t,n){let r=!1;if(!this._shadow||!this._host){let{id:i,colorScheme:s,themeLight:a,themeDark:c}=t,{shadow:u,host:l}=Xb({id:i,colorScheme:s,themeLight:a,themeDark:c});this._shadow=u,this._host=l,r=!0}this._host.dataset.sentryFeedbackColorscheme=t.colorScheme;let o=n({shadow:this._shadow,host:this._host});return r&&ts.body.appendChild(this._host),o}};mo.__initStatic();f();f();var xp="CaptureConsole",dT=(e={})=>{let t=e.levels||Zt;return{name:xp,setupOnce(){},setup(n){"console"in C&&gr(({args:r,level:o})=>{x()!==n||!t.includes(o)||pT(r,o)})}}},Pc=dT,fT=D(xp,Pc);function pT(e,t){let n={level:vr(t),extra:{arguments:e}};De(r=>{if(r.addEventProcessor(s=>(s.logger="console",Ue(s,{handled:!1,type:"console"}),s)),t==="assert"&&e[0]===!1){let s=`Assertion failed: ${Jt(e.slice(1)," ")||"console.assert"}`;r.setExtra("arguments",e.slice(1)),an(s,n);return}let o=e.find(s=>s instanceof Error);if(t==="error"&&o){xt(o,n);return}let i=Jt(e," ");an(i,n)})}f();var wp="Debug",mT=(e={})=>{let t={debugger:!1,stringify:!1,...e};return{name:wp,setupOnce(){},setup(n){n.on&&n.on("beforeSendEvent",(r,o)=>{if(t.debugger)debugger;Re(()=>{t.stringify?(console.log(JSON.stringify(r,null,2)),o&&Object.keys(o).length&&console.log(JSON.stringify(o,null,2))):(console.log(r),o&&Object.keys(o).length&&console.log(o))})})}}},Fc=mT,hT=D(wp,Fc);f();f();var kt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var kp="Dedupe",gT=()=>{let e;return{name:kp,setupOnce(){},processEvent(t){if(t.type)return t;try{if(yT(t,e))return kt&&h.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},Bc=gT,_T=D(kp,Bc);function yT(e,t){return t?!!(ST(e,t)||ET(e,t)):!1}function ST(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Op(e,t)||!Ap(e,t))}function ET(e,t){let n=Cp(t),r=Cp(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Op(e,t)||!Ap(e,t))}function Ap(e,t){let n=Rp(e),r=Rp(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){let i=r[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function Op(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 Cp(e){return e.exception&&e.exception.values&&e.exception.values[0]}function Rp(e){let t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch{return}}f();var Mp="ExtraErrorData",bT=(e={})=>{let t=e.depth||3,n=e.captureErrorCause||!1;return{name:Mp,setupOnce(){},processEvent(r,o){return IT(r,o,t,n)}}},Hc=bT,TT=D(Mp,Hc);function IT(e,t={},n,r){if(!t.originalException||!ut(t.originalException))return e;let o=t.originalException.name||t.originalException.constructor.name,i=vT(t.originalException,r);if(i){let s={...e.contexts},a=be(i,n);return Fe(a)&&(ke(a,"__sentry_skip_normalization__",!0),s[o]=a),{...e,contexts:s}}return e}function vT(e,t){try{let n=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],r={};for(let o of Object.keys(e)){if(n.indexOf(o)!==-1)continue;let i=e[o];r[o]=ut(i)?i.toString():i}if(t&&e.cause!==void 0&&(r.cause=ut(e.cause)?e.cause.toString():e.cause),typeof e.toJSON=="function"){let o=e.toJSON();for(let i of Object.keys(o)){let s=o[i];r[i]=ut(s)?s.toString():s}}return r}catch(n){kt&&h.error("Unable to extract extra data from the Error object:",n)}return null}f();var xT=C,Dp="ReportingObserver",Np=new WeakMap,wT=(e={})=>{let t=e.types||["crash","deprecation","intervention"];function n(r){if(Np.has(x()))for(let o of r)De(i=>{i.setExtra("url",o.url);let s=`ReportingObserver [${o.type}]`,a="No details available";if(o.body){let c={};for(let u in o.body)c[u]=o.body[u];if(i.setExtra("body",c),o.type==="crash"){let u=o.body;a=[u.crashId||"",u.reason||""].join(" ").trim()||a}else a=o.body.message||a}an(`${s}: ${a}`)})}return{name:Dp,setupOnce(){if(!Is())return;new xT.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(r){Np.set(r,!0)}}},Uc=wT,CT=D(Dp,Uc);f();var Lp="RewriteFrames",RT=(e={})=>{let t=e.root,n=e.prefix||"app:///",r=e.iteratee||(s=>{if(!s.filename)return s;let a=/^[a-zA-Z]:\\/.test(s.filename)||s.filename.includes("\\")&&!s.filename.includes("/"),c=/^\//.test(s.filename);if(a||c){let u=a?s.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):s.filename,l=t?Rs(t,u):ks(u);s.filename=`${n}${l}`}return s});function o(s){try{return{...s,exception:{...s.exception,values:s.exception.values.map(a=>({...a,...a.stacktrace&&{stacktrace:i(a.stacktrace)}}))}}}catch{return s}}function i(s){return{...s,frames:s&&s.frames&&s.frames.map(a=>r(a))}}return{name:Lp,setupOnce(){},processEvent(s){let a=s;return s.exception&&Array.isArray(s.exception.values)&&(a=o(a)),a}}},$c=RT,kT=D(Lp,$c);f();var Pp="SessionTiming",AT=()=>{let e=Date.now();return{name:Pp,setupOnce(){},processEvent(t){let n=Date.now();return{...t,extra:{...t.extra,"session:start":e,"session:duration":n-e,"session:end":n}}}}},Gc=AT,OT=D(Pp,Gc);f();var Fp="HttpClient",MT=(e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:Fp,setupOnce(){},setup(n){$T(n,t),GT(n,t)}}},Wc=MT,NT=D(Fp,Wc);function DT(e,t,n,r){if(Hp(e,n.status,n.url)){let o=WT(t,r),i,s,a,c;$p()&&([{headers:i,cookies:a},{headers:s,cookies:c}]=[{cookieHeader:"Cookie",obj:o},{cookieHeader:"Set-Cookie",obj:n}].map(({cookieHeader:l,obj:d})=>{let p=FT(d.headers),m;try{let g=p[l]||p[l.toLowerCase()]||void 0;g&&(m=Bp(g))}catch{kt&&h.log(`Could not extract cookies from header ${l}`)}return{headers:p,cookies:m}}));let u=Up({url:o.url,method:o.method,status:n.status,requestHeaders:i,responseHeaders:s,requestCookies:a,responseCookies:c});Mt(u)}}function LT(e,t,n,r){if(Hp(e,t.status,t.responseURL)){let o,i,s;if($p()){try{let c=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;c&&(i=Bp(c))}catch{kt&&h.log("Could not extract cookies from response headers")}try{s=BT(t)}catch{kt&&h.log("Could not extract headers from response")}o=r}let a=Up({url:t.responseURL,method:n,status:t.status,requestHeaders:o,responseHeaders:s,responseCookies:i});Mt(a)}}function PT(e){if(e){let t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function Bp(e){return e.split("; ").reduce((t,n)=>{let[r,o]=n.split("=");return t[r]=o,t},{})}function FT(e){let t={};return e.forEach((n,r)=>{t[r]=n}),t}function BT(e){let t=e.getAllResponseHeaders();return t?t.split(`\r
363
363
  `).reduce((n,r)=>{let[o,i]=r.split(": ");return n[o]=i,n},{}):{}}function HT(e,t){return e.some(n=>typeof n=="string"?t.includes(n):n.test(t))}function UT(e,t){return e.some(n=>typeof n=="number"?n===t:t>=n[0]&&t<=n[1])}function $T(e,t){Er()&&bt(n=>{if(x()!==e)return;let{response:r,args:o}=n,[i,s]=o;r&&DT(t,i,r,s)})}function GT(e,t){"XMLHttpRequest"in C&&Tt(n=>{if(x()!==e)return;let r=n.xhr,o=r[Ne];if(!o)return;let{method:i,request_headers:s}=o;try{LT(t,r,i,s)}catch(a){kt&&h.warn("Error while extracting response event form XHR response",a)}})}function Hp(e,t,n){return UT(e.failedRequestStatusCodes,t)&&HT(e.failedRequestTargets,n)&&!Wr(n,x())}function Up(e){let t=`HTTP Client Error with status code: ${e.status}`,n={message:t,exception:{values:[{type:"Error",value:t}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:PT(e.responseHeaders)}}};return Ue(n,{type:"http.client",handled:!1}),n}function WT(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function $p(){let e=x();return e?!!e.getOptions().sendDefaultPii:!1}f();var zc=C,zT=7,Gp="ContextLines",jT=(e={})=>{let t=e.frameContextLines!=null?e.frameContextLines:zT;return{name:Gp,setupOnce(){},processEvent(n){return YT(n,t)}}},jc=jT,qT=D(Gp,jc);function YT(e,t){let n=zc.document,r=zc.location&&Os(zc.location.href);if(!n||!r)return e;let o=e.exception&&e.exception.values;if(!o||!o.length)return e;let i=n.documentElement.innerHTML;if(!i)return e;let s=["<!DOCTYPE html>","<html>",...i.split(`
364
364
  `),"</html>"];return o.forEach(a=>{let c=a.stacktrace;c&&c.frames&&(c.frames=c.frames.map(u=>VT(u,s,r,t)))}),e}function VT(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||Es(t,e,r),e}f();function ho(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function KT(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=ho(n);return o=>r.then(i=>o(i.transaction(t,"readwrite").objectStore(t)))}function Wp(e){return ho(e.getAllKeys())}function JT(e,t,n){return e(r=>Wp(r).then(o=>{if(!(o.length>=n))return r.put(t,Math.max(...o,0)+1),ho(r.transaction)}))}function XT(e){return e(t=>Wp(t).then(n=>{if(n.length!==0)return ho(t.get(n[0])).then(r=>(t.delete(n[0]),ho(t.transaction).then(()=>r)))}))}function ZT(e){let t;function n(){return t==null&&(t=KT(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{insert:async r=>{try{let o=await kr(r,e.textEncoder);await JT(n(),o,e.maxQueueSize||30)}catch{}},pop:async()=>{try{let r=await XT(n());if(r)return Fs(r,e.textEncoder||new TextEncoder,e.textDecoder||new TextDecoder)}catch{}}}}function QT(e){return t=>e({...t,createStore:ZT})}function eI(e){return QT(la(e))}f();f();var zp=1e6,ns=String(0),tI="main",Yp="",Vp="",Kp="",qc=A.navigator&&A.navigator.userAgent||"",Jp="",nI=A.navigator&&A.navigator.language||A.navigator&&A.navigator.languages&&A.navigator.languages[0]||"";function rI(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}var jp=A.navigator&&A.navigator.userAgentData;rI(jp)&&jp.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(Yp=e.platform||"",Kp=e.architecture||"",Jp=e.model||"",Vp=e.platformVersion||"",e.fullVersionList&&e.fullVersionList.length>0){let t=e.fullVersionList[e.fullVersionList.length-1];qc=`${t.brand} ${t.version}`}}).catch(e=>{});function oI(e){return!("thread_metadata"in e)}function iI(e){return oI(e)?cI(e):e}function sI(e){let t=e&&e.contexts&&e.contexts.trace&&e.contexts.trace.trace_id;return typeof t=="string"&&t.length!==32&&F&&h.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function aI(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);let o=sI(r),i=iI(n),s=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:Date.now()),a=typeof r.timestamp=="number"?r.timestamp*1e3:Date.now();return{event_id:e,timestamp:new Date(s).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||rt,runtime:{name:"javascript",version:A.navigator.userAgent},os:{name:Yp,version:Vp,build_number:qc},device:{locale:nI,model:Jp,manufacturer:qc,architecture:Kp,is_emulator:!1},debug_meta:{images:uI(n.resources)},profile:i,transactions:[{name:r.transaction||"",id:r.event_id||B(),trace_id:o,active_thread_id:ns,relative_start_ns:"0",relative_end_ns:((a-s)*1e6).toFixed(0)}]}}function rs(e){return e.op==="pageload"}function cI(e){let t,n=0,r={samples:[],stacks:[],frames:[],thread_metadata:{[ns]:{name:tI}}};if(!e.samples.length)return r;let o=e.samples[0].timestamp,i=typeof performance.timeOrigin=="number"?performance.timeOrigin:re||0,s=i-(re||i);for(let a=0;a<e.samples.length;a++){let c=e.samples[a];if(c.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[a]={elapsed_since_start_ns:((c.timestamp+s-o)*zp).toFixed(0),stack_id:t,thread_id:ns};continue}let u=e.stacks[c.stackId],l=[];for(;u;){l.push(u.frameId);let p=e.frames[u.frameId];r.frames[u.frameId]===void 0&&(r.frames[u.frameId]={function:p.name,abs_path:typeof p.resourceId=="number"?e.resources[p.resourceId]:void 0,lineno:p.line,colno:p.column}),u=u.parentId===void 0?void 0:e.stacks[u.parentId]}let d={elapsed_since_start_ns:((c.timestamp+s-o)*zp).toFixed(0),stack_id:n,thread_id:ns};r.stacks[n]=l,r.samples[a]=d,n++}return r}function Xp(e,t){if(!t.length)return e;for(let n of t)e[1].push([{type:"profile"},n]);return e}function Zp(e){let t=[];return nt(e,(n,r)=>{if(r==="transaction")for(let o=1;o<n.length;o++){let i=n[o];i&&i.contexts&&i.contexts.profile&&i.contexts.profile.profile_id&&t.push(n[o])}}),t}var qp=new WeakMap;function uI(e){let t=C._sentryDebugIds;if(!t)return[];let n=x(),r=n&&n.getOptions(),o=r&&r.stackParser;if(!o)return[];let i,s=qp.get(o);s?i=s:(i=new Map,qp.set(o,i));let a=Object.keys(t).reduce((u,l)=>{let d,p=i.get(l);p?d=p:(d=o(l),i.set(l,d));for(let m=d.length-1;m>=0;m--){let g=d[m],E=g&&g.filename;if(g&&E){u[E]=t[l];break}}return u},{}),c=[];for(let u of e)u&&a[u]&&c.push({type:"sourcemap",code_file:u,debug_id:a[u]});return c}function lI(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(F&&h.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(F&&h.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function dI(e){return e.samples.length<2?(F&&h.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(F&&h.log("[Profiling] Discarding profile because it contains no frames"),!1)}var Qp=!1,Yc=3e4;function fI(e){return typeof e=="function"}function em(){let e=A.Profiler;if(!fI(e)){F&&h.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}let t=10,n=Math.floor(Yc/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{F&&(h.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),h.log("[Profiling] Disabling profiling for current user session.")),Qp=!0}}function go(e){if(Qp)return F&&h.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return F&&h.log("[Profiling] Discarding profile because transaction was not sampled."),!1;let t=x(),n=t&&t.getOptions();if(!n)return F&&h.log("[Profiling] Profiling disabled, no options found."),!1;let r=n.profilesSampleRate;return lI(r)?r?(r===!0?!0:Math.random()<r)?!0:(F&&h.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(F&&h.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(F&&h.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function tm(e,t,n,r){return dI(n)?aI(e,t,n,r):null}var Sn=new Map;function nm(){return Sn.size}function rm(e){let t=Sn.get(e);return t&&Sn.delete(e),t}function om(e,t){if(Sn.set(e,t),Sn.size>30){let n=Sn.keys().next().value;Sn.delete(n)}}function pI(e){return e?go(e)?os(e):e:(F&&h.log("[Profiling] Transaction is undefined, skipping profiling"),e)}function os(e){let t;rs(e)&&(t=Ie()*1e3);let n=em();if(!n)return e;F&&h.log(`[Profiling] started profiling transaction: ${P(e).description}`);let r=B();async function o(){return!e||!n?null:n.stop().then(c=>(i&&(A.clearTimeout(i),i=void 0),F&&h.log(`[Profiling] stopped profiling of transaction: ${P(e).description}`),c?(om(r,c),null):(F&&h.log(`[Profiling] profiler returned null profile for: ${P(e).description}`,"this may indicate an overlapping transaction or a call to stopProfiling with a profile title that was never started"),null))).catch(c=>(F&&h.log("[Profiling] error while stopping profiler:",c),null))}let i=A.setTimeout(()=>{F&&h.log("[Profiling] max profile duration elapsed, stopping profiling for:",P(e).description),o()},Yc),s=e.end.bind(e);function a(){return e?(o().then(()=>{e.setContext("profile",{profile_id:r,start_timestamp:t}),s()},()=>{s()}),e):s()}return e.end=a,e}f();var im="BrowserProfiling",mI=()=>({name:im,setupOnce(){},setup(e){let n=q().getTransaction();if(n&&rs(n)&&go(n)&&os(n),typeof e.on!="function"){h.warn("[Profiling] Client does not support hooks, profiling will be disabled");return}e.on("startTransaction",r=>{go(r)&&os(r)}),e.on("beforeEnvelope",r=>{if(!nm())return;let o=Zp(r);if(!o.length)return;let i=[];for(let s of o){let a=s&&s.contexts,c=a&&a.profile&&a.profile.profile_id,u=a&&a.profile&&a.profile.start_timestamp;if(typeof c!="string"){F&&h.log("[Profiling] cannot find profile for a transaction without a profile context");continue}if(!c){F&&h.log("[Profiling] cannot find profile for a transaction without a profile context");continue}a&&a.profile&&delete a.profile;let l=rm(c);if(!l){F&&h.log(`[Profiling] Could not retrieve profile for transaction: ${c}`);continue}let d=tm(c,u,l,s);d&&i.push(d)}Xp(r,i)})}}),sm=mI,hI=D(im,sm);var am={};A.Sentry&&A.Sentry.Integrations&&(am=A.Sentry.Integrations);var DP={...am,...$l,...ja};export{Ba as Breadcrumbs,Jr as BrowserClient,hI as BrowserProfilingIntegration,yi as BrowserTracing,Ua as Dedupe,mo as Feedback,oi as FunctionToString,$a as GlobalHandlers,Ga as HttpContext,Nn as Hub,ri as InboundFilters,DP as Integrations,Wa as LinkedErrors,Ol as ModuleMetadata,uo as Replay,Nb as ReplayCanvas,ln as SDK_VERSION,dn as SEMANTIC_ATTRIBUTE_SENTRY_OP,st as SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,pt as SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,_e as SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,it as Scope,za as TryCatch,A as WINDOW,Ye as addBreadcrumb,Zo as addEventProcessor,Bo as addGlobalEventProcessor,cl as addIntegration,Bn as addTracingExtensions,Ti as breadcrumbsIntegration,wi as browserApiErrorsIntegration,sm as browserProfilingIntegration,bd as browserTracingIntegration,Pc as captureConsoleIntegration,Mt as captureEvent,xt as captureException,an as captureMessage,Lr as captureSession,cy as captureUserFeedback,vd as chromeStackLineParser,Uu as close,Au as configureScope,jc as contextLinesIntegration,Qu as continueTrace,Un as createTransport,Da as createUserFeedbackEnvelope,Fc as debugIntegration,Bc as dedupeIntegration,Wd as defaultIntegrations,Ht as defaultRequestInstrumentationOptions,Cd as defaultStackLineParsers,Fa as defaultStackParser,Wo as endSession,Ma as eventFromException,Na as eventFromMessage,Si as exceptionFromError,Hc as extraErrorDataIntegration,qu as extractTraceparentData,lT as feedbackIntegration,Hu as flush,oy as forceLoad,jr as functionToStringIntegration,xd as geckoStackLineParser,Pt as getActiveSpan,ye as getActiveTransaction,x as getClient,W as getCurrentHub,q as getCurrentScope,zd as getDefaultIntegrations,Fr as getHubFromCarrier,Eb as getReplay,jo as getSpanStatusFromHttpCode,Ii as globalHandlersIntegration,Wc as httpClientIntegration,vi as httpContextIntegration,zr as inboundFiltersIntegration,ny as init,zn as instrumentOutgoingRequests,Gu as isInitialized,$u as lastEventId,xi as linkedErrorsIntegration,eI as makeBrowserOfflineTransport,La as makeFetchTransport,zo as makeMain,Il as makeMultiplexedTransport,Pa as makeXHRTransport,Ul as metrics,pa as moduleMetadataIntegration,iy as onLoad,pI as onProfilingStartRouteTransaction,x_ as opera10StackLineParser,R_ as opera11StackLineParser,xl as parameterize,pp as replayCanvasIntegration,yb as replayIntegration,Uc as reportingObserverIntegration,$c as rewriteFramesIntegration,Ip as sendFeedback,Gc as sessionTimingIntegration,Go as setContext,ca as setCurrentClient,Mu as setExtra,Ou as setExtras,Lt as setHttpStatus,Xo as setMeasurement,Du as setTag,Nu as setTags,Lu as setUser,ry as showReportDialog,Ku as spanStatusfromHttpCode,wa as startBrowserTracingNavigationSpan,xa as startBrowserTracingPageLoadSpan,Dn as startInactiveSpan,Dr as startSession,Xu as startSpan,Zu as startSpanManual,Bu as startTransaction,Ju as trace,wd as winjsStackLineParser,Fu as withActiveSpan,Pu as withIsolationScope,De as withScope,sy as wrap};
365
- //# sourceMappingURL=esm-CECOC7V2.js.map
365
+ //# sourceMappingURL=esm-MUZJUC5Q.js.map