@nylas/web-elements 1.4.2 → 1.4.4

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 (147) hide show
  1. package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +56 -27
  2. package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +4842 -4822
  3. package/dist/cjs/checkmark-icon_15.cjs.entry.js +3 -3
  4. package/dist/cjs/checkmark-icon_15.cjs.entry.js.map +1 -1
  5. package/dist/cjs/google-logo-icon_6.cjs.entry.js +4 -4
  6. package/dist/cjs/input-component.cjs.entry.js +13 -2
  7. package/dist/cjs/input-component.cjs.entry.js.map +1 -1
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/nylas-booked-event-card_12.cjs.entry.js +40 -11
  10. package/dist/cjs/nylas-booked-event-card_12.cjs.entry.js.map +1 -1
  11. package/dist/cjs/nylas-event-calendar_3.cjs.entry.js +53 -24
  12. package/dist/cjs/nylas-event-calendar_3.cjs.entry.js.map +1 -1
  13. package/dist/cjs/nylas-provider.cjs.entry.js +1 -1
  14. package/dist/cjs/nylas-scheduling.cjs.entry.js +3 -3
  15. package/dist/cjs/nylas-web-elements.cjs.js +1 -1
  16. package/dist/cjs/{scheduler-store-d6f5cff3.js → scheduler-store-5dcefe7e.js} +2 -2
  17. package/dist/cjs/{scheduler-store-d6f5cff3.js.map → scheduler-store-5dcefe7e.js.map} +1 -1
  18. package/dist/collection/components/design-system/input-component/input-component.js +13 -2
  19. package/dist/collection/components/design-system/input-component/input-component.js.map +1 -1
  20. package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js +40 -6
  21. package/dist/collection/components/scheduler/nylas-date-picker/nylas-date-picker.js.map +1 -1
  22. package/dist/collection/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.js +8 -5
  23. package/dist/collection/components/scheduler/nylas-timeslot-picker/nylas-timeslot-picker.js.map +1 -1
  24. package/dist/collection/components/scheduler-editor/nylas-event-calendar/nylas-event-calendar.js +28 -17
  25. package/dist/collection/components/scheduler-editor/nylas-event-calendar/nylas-event-calendar.js.map +1 -1
  26. package/dist/collection/components/scheduler-editor/nylas-event-capacity/nylas-event-capacity.css +15 -0
  27. package/dist/collection/components/scheduler-editor/nylas-event-capacity/nylas-event-capacity.js +13 -2
  28. package/dist/collection/components/scheduler-editor/nylas-event-capacity/nylas-event-capacity.js.map +1 -1
  29. package/dist/collection/components/scheduler-editor/nylas-event-timeslot/nylas-event-timeslot.css +1 -1
  30. package/dist/collection/components/scheduler-editor/nylas-event-timeslot/nylas-event-timeslot.js +12 -4
  31. package/dist/collection/components/scheduler-editor/nylas-event-timeslot/nylas-event-timeslot.js.map +1 -1
  32. package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js +3 -3
  33. package/dist/collection/components/scheduler-editor/nylas-event-title/nylas-event-title.js.map +1 -1
  34. package/dist/components/index.es.js +1 -1
  35. package/dist/components/input-component2.js +13 -2
  36. package/dist/components/input-component2.js.map +1 -1
  37. package/dist/components/nylas-date-picker2.js +38 -8
  38. package/dist/components/nylas-date-picker2.js.map +1 -1
  39. package/dist/components/nylas-editor-tabs-group2.js +2 -2
  40. package/dist/components/nylas-editor-tabs2.js +2 -2
  41. package/dist/components/nylas-event-calendar2.js +29 -18
  42. package/dist/components/nylas-event-calendar2.js.map +1 -1
  43. package/dist/components/nylas-event-capacity2.js +14 -3
  44. package/dist/components/nylas-event-capacity2.js.map +1 -1
  45. package/dist/components/nylas-event-timeslot2.js +14 -6
  46. package/dist/components/nylas-event-timeslot2.js.map +1 -1
  47. package/dist/components/nylas-event-title2.js +3 -3
  48. package/dist/components/nylas-event-title2.js.map +1 -1
  49. package/dist/components/nylas-list-configurations2.js +1 -1
  50. package/dist/components/nylas-locale-switch2.js +1 -1
  51. package/dist/components/nylas-scheduler-editor.js +1 -1
  52. package/dist/components/nylas-scheduling.js +3 -3
  53. package/dist/components/nylas-timeslot-picker2.js +9 -6
  54. package/dist/components/nylas-timeslot-picker2.js.map +1 -1
  55. package/dist/components/scheduler-store.js +2 -2
  56. package/dist/components/utils.js +1 -1
  57. package/dist/esm/calendar-agenda-fill-icon_36.entry.js +2 -2
  58. package/dist/esm/checkmark-icon_15.entry.js +5 -5
  59. package/dist/esm/checkmark-icon_15.entry.js.map +1 -1
  60. package/dist/esm/{feedbackSync-aa8d23d1.js → feedbackSync-57bb471a.js} +2 -2
  61. package/dist/esm/{feedbackSync-aa8d23d1.js.map → feedbackSync-57bb471a.js.map} +1 -1
  62. package/dist/esm/globe-icon_2.entry.js +1 -1
  63. package/dist/esm/google-logo-icon_6.entry.js +7 -7
  64. package/dist/esm/{index.es-6d4b50d5.js → index.es-13ff6710.js} +2 -2
  65. package/dist/esm/{index.es-6d4b50d5.js.map → index.es-13ff6710.js.map} +1 -1
  66. package/dist/esm/index.js +2 -2
  67. package/dist/esm/input-component.entry.js +14 -3
  68. package/dist/esm/input-component.entry.js.map +1 -1
  69. package/dist/esm/input-dropdown_2.entry.js +1 -1
  70. package/dist/esm/loader.js +1 -1
  71. package/dist/esm/multi-select-dropdown_2.entry.js +1 -1
  72. package/dist/esm/{nylas-api-request-c5400df5.js → nylas-api-request-2e5f4c7f.js} +2 -2
  73. package/dist/esm/{nylas-api-request-c5400df5.js.map → nylas-api-request-2e5f4c7f.js.map} +1 -1
  74. package/dist/esm/nylas-booked-event-card_12.entry.js +42 -13
  75. package/dist/esm/nylas-booked-event-card_12.entry.js.map +1 -1
  76. package/dist/esm/nylas-event-calendar_3.entry.js +55 -26
  77. package/dist/esm/nylas-event-calendar_3.entry.js.map +1 -1
  78. package/dist/esm/nylas-form-card.entry.js +2 -2
  79. package/dist/esm/nylas-if-state.entry.js +2 -2
  80. package/dist/esm/nylas-login.entry.js +2 -2
  81. package/dist/esm/nylas-provider.entry.js +3 -3
  82. package/dist/esm/nylas-scheduler-editor.entry.js +3 -3
  83. package/dist/esm/nylas-scheduling.entry.js +6 -6
  84. package/dist/esm/nylas-web-elements.js +1 -1
  85. package/dist/esm/{register-component-238f28de.js → register-component-02a05665.js} +2 -2
  86. package/dist/esm/{register-component-238f28de.js.map → register-component-02a05665.js.map} +1 -1
  87. package/dist/esm/{scheduler-store-82bb212a.js → scheduler-store-fe9e85a4.js} +3 -3
  88. package/dist/esm/{scheduler-store-82bb212a.js.map → scheduler-store-fe9e85a4.js.map} +1 -1
  89. package/dist/esm/textarea-component.entry.js +1 -1
  90. package/dist/esm/{utils-7d962146.js → utils-e27d0e4b.js} +2 -2
  91. package/dist/esm/{utils-7d962146.js.map → utils-e27d0e4b.js.map} +1 -1
  92. package/dist/nylas-web-elements/index.esm.js +1 -1
  93. package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
  94. package/dist/nylas-web-elements/nylas-web-elements.esm.js.map +1 -1
  95. package/dist/nylas-web-elements/{p-12bf5148.js → p-189b24e6.js} +2 -2
  96. package/dist/nylas-web-elements/p-1cbe8a56.entry.js +2 -0
  97. package/dist/nylas-web-elements/{p-d132fbaa.entry.js.map → p-1cbe8a56.entry.js.map} +1 -1
  98. package/dist/nylas-web-elements/{p-fdc35ad8.entry.js → p-23971057.entry.js} +2 -2
  99. package/dist/nylas-web-elements/{p-ba831977.entry.js → p-2dd05606.entry.js} +2 -2
  100. package/dist/nylas-web-elements/{p-797578de.js → p-388c456c.js} +2 -2
  101. package/dist/nylas-web-elements/{p-cf650f4f.js → p-3ea1c7c9.js} +2 -2
  102. package/dist/nylas-web-elements/{p-de9d8218.entry.js → p-5f683e34.entry.js} +2 -2
  103. package/dist/nylas-web-elements/{p-c2b6e0ca.entry.js → p-68ab7563.entry.js} +2 -2
  104. package/dist/nylas-web-elements/p-68ab7563.entry.js.map +1 -0
  105. package/dist/nylas-web-elements/{p-ec2c12a9.js → p-6b7fb948.js} +2 -2
  106. package/dist/nylas-web-elements/{p-cfd42146.js → p-7477410d.js} +2 -2
  107. package/dist/nylas-web-elements/{p-b62ef1be.js → p-7d9cdd23.js} +2 -2
  108. package/dist/nylas-web-elements/{p-00577fba.entry.js → p-8a7a6947.entry.js} +2 -2
  109. package/dist/nylas-web-elements/p-97f87422.entry.js +2 -0
  110. package/dist/nylas-web-elements/p-97f87422.entry.js.map +1 -0
  111. package/dist/nylas-web-elements/{p-9999c233.entry.js → p-aaf12216.entry.js} +2 -2
  112. package/dist/nylas-web-elements/{p-a452d4ea.entry.js → p-b55a87fa.entry.js} +2 -2
  113. package/dist/nylas-web-elements/p-b55a87fa.entry.js.map +1 -0
  114. package/dist/nylas-web-elements/{p-888d0c66.entry.js → p-c5f86111.entry.js} +2 -2
  115. package/dist/nylas-web-elements/{p-dd98c443.entry.js → p-cc6dbd73.entry.js} +2 -2
  116. package/dist/nylas-web-elements/{p-b59288fd.entry.js → p-d5a2cec8.entry.js} +2 -2
  117. package/dist/nylas-web-elements/{p-83216795.entry.js → p-deb33dfb.entry.js} +2 -2
  118. package/dist/nylas-web-elements/{p-83216795.entry.js.map → p-deb33dfb.entry.js.map} +1 -1
  119. package/dist/nylas-web-elements/{p-2531d4fa.entry.js → p-e2dc32d9.entry.js} +2 -2
  120. package/dist/nylas-web-elements/{p-a263330c.entry.js → p-eedabd6a.entry.js} +2 -2
  121. package/dist/nylas-web-elements/{p-355b34cb.entry.js → p-f57e68b1.entry.js} +2 -2
  122. package/dist/types/components/scheduler/nylas-date-picker/nylas-date-picker.d.ts +4 -0
  123. package/dist/types/components/scheduler-editor/nylas-event-capacity/nylas-event-capacity.d.ts +1 -0
  124. package/package.json +4 -5
  125. package/CHANGELOG.md +0 -878
  126. package/dist/nylas-web-elements/p-203beca4.entry.js +0 -2
  127. package/dist/nylas-web-elements/p-203beca4.entry.js.map +0 -1
  128. package/dist/nylas-web-elements/p-a452d4ea.entry.js.map +0 -1
  129. package/dist/nylas-web-elements/p-c2b6e0ca.entry.js.map +0 -1
  130. package/dist/nylas-web-elements/p-d132fbaa.entry.js +0 -2
  131. /package/dist/nylas-web-elements/{p-12bf5148.js.map → p-189b24e6.js.map} +0 -0
  132. /package/dist/nylas-web-elements/{p-fdc35ad8.entry.js.map → p-23971057.entry.js.map} +0 -0
  133. /package/dist/nylas-web-elements/{p-ba831977.entry.js.map → p-2dd05606.entry.js.map} +0 -0
  134. /package/dist/nylas-web-elements/{p-797578de.js.map → p-388c456c.js.map} +0 -0
  135. /package/dist/nylas-web-elements/{p-cf650f4f.js.map → p-3ea1c7c9.js.map} +0 -0
  136. /package/dist/nylas-web-elements/{p-de9d8218.entry.js.map → p-5f683e34.entry.js.map} +0 -0
  137. /package/dist/nylas-web-elements/{p-ec2c12a9.js.map → p-6b7fb948.js.map} +0 -0
  138. /package/dist/nylas-web-elements/{p-cfd42146.js.map → p-7477410d.js.map} +0 -0
  139. /package/dist/nylas-web-elements/{p-b62ef1be.js.map → p-7d9cdd23.js.map} +0 -0
  140. /package/dist/nylas-web-elements/{p-00577fba.entry.js.map → p-8a7a6947.entry.js.map} +0 -0
  141. /package/dist/nylas-web-elements/{p-9999c233.entry.js.map → p-aaf12216.entry.js.map} +0 -0
  142. /package/dist/nylas-web-elements/{p-888d0c66.entry.js.map → p-c5f86111.entry.js.map} +0 -0
  143. /package/dist/nylas-web-elements/{p-dd98c443.entry.js.map → p-cc6dbd73.entry.js.map} +0 -0
  144. /package/dist/nylas-web-elements/{p-b59288fd.entry.js.map → p-d5a2cec8.entry.js.map} +0 -0
  145. /package/dist/nylas-web-elements/{p-2531d4fa.entry.js.map → p-e2dc32d9.entry.js.map} +0 -0
  146. /package/dist/nylas-web-elements/{p-a263330c.entry.js.map → p-eedabd6a.entry.js.map} +0 -0
  147. /package/dist/nylas-web-elements/{p-355b34cb.entry.js.map → p-f57e68b1.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{p as n,g as t}from"./p-ec2c12a9.js";const e=Object.prototype.toString;function r(n){switch(e.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return true;default:return g(n,Error)}}function o(n,t){return e.call(n)===`[object ${t}]`}function i(n){return o(n,"ErrorEvent")}function s(n){return o(n,"DOMError")}function c(n){return o(n,"DOMException")}function u(n){return o(n,"String")}function a(n){return typeof n==="object"&&n!==null&&"__sentry_template_string__"in n&&"__sentry_template_values__"in n}function f(n){return n===null||a(n)||typeof n!=="object"&&typeof n!=="function"}function l(n){return o(n,"Object")}function d(n){return typeof Event!=="undefined"&&g(n,Event)}function h(n){return typeof Element!=="undefined"&&g(n,Element)}function p(n){return o(n,"RegExp")}function m(n){return Boolean(n&&n.then&&typeof n.then==="function")}function b(n){return l(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n}function g(n,t){try{return n instanceof t}catch(n){return false}}function _(n){return!!(typeof n==="object"&&n!==null&&(n.__isVue||n._isVue))}function y(n,t=0){if(typeof n!=="string"||t===0){return n}return n.length<=t?n:`${n.slice(0,t)}...`}function v(n,t){if(!Array.isArray(n)){return""}const e=[];for(let t=0;t<n.length;t++){const r=n[t];try{if(_(r)){e.push("[VueViewModel]")}else{e.push(String(r))}}catch(n){e.push("[value cannot be serialized]")}}return e.join(t)}function w(n,t,e=false){if(!u(n)){return false}if(p(t)){return t.test(n)}if(u(t)){return e?n===t:n.includes(t)}return false}function x(n,t=[],e=false){return t.some((t=>w(n,t,e)))}function k(n,t,e=250,r,o,i,s){if(!i.exception||!i.exception.values||!s||!g(s.originalException,Error)){return}const c=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:undefined;if(c){i.exception.values=$(E(n,t,o,s.originalException,r,i.exception.values,c,0),e)}}function E(n,t,e,r,o,i,s,c){if(i.length>=e+1){return i}let u=[...i];if(g(r[o],Error)){S(s,c);const i=n(t,r[o]);const a=u.length;N(i,o,a,c);u=E(n,t,e,r[o],o,[i,...u],i,a)}if(Array.isArray(r.errors)){r.errors.forEach(((r,i)=>{if(g(r,Error)){S(s,c);const a=n(t,r);const f=u.length;N(a,`errors[${i}]`,f,c);u=E(n,t,e,r,o,[a,...u],a,f)}}))}return u}function S(n,t){n.mechanism=n.mechanism||{type:"generic",handled:true};n.mechanism={...n.mechanism,...n.type==="AggregateError"&&{is_exception_group:true},exception_id:t}}function N(n,t,e,r){n.mechanism=n.mechanism||{type:"generic",handled:true};n.mechanism={...n.mechanism,type:"chained",source:t,exception_id:e,parent_id:r}}function $(n,t){return n.map((n=>{if(n.value){n.value=y(n.value,t)}return n}))}const C="8.28.0";const T=globalThis;function I(n,t,e){const r=e||T;const o=r.__SENTRY__=r.__SENTRY__||{};const i=o[C]=o[C]||{};return i[n]||(i[n]=t())}const j=T;const L=80;function M(n,t={}){if(!n){return"<unknown>"}try{let e=n;const r=5;const o=[];let i=0;let s=0;const c=" > ";const u=c.length;let a;const f=Array.isArray(t)?t:t.keyAttrs;const l=!Array.isArray(t)&&t.maxStringLength||L;while(e&&i++<r){a=D(e,f);if(a==="html"||i>1&&s+o.length*u+a.length>=l){break}o.push(a);s+=a.length;e=e.parentNode}return o.reverse().join(c)}catch(n){return"<unknown>"}}function D(n,t){const e=n;const r=[];if(!e||!e.tagName){return""}if(j.HTMLElement){if(e instanceof HTMLElement&&e.dataset){if(e.dataset["sentryComponent"]){return e.dataset["sentryComponent"]}if(e.dataset["sentryElement"]){return e.dataset["sentryElement"]}}}r.push(e.tagName.toLowerCase());const o=t&&t.length?t.filter((n=>e.getAttribute(n))).map((n=>[n,e.getAttribute(n)])):null;if(o&&o.length){o.forEach((n=>{r.push(`[${n[0]}="${n[1]}"]`)}))}else{if(e.id){r.push(`#${e.id}`)}const n=e.className;if(n&&u(n)){const t=n.split(/\s+/);for(const n of t){r.push(`.${n}`)}}}const i=["aria-label","type","name","title","alt"];for(const n of i){const t=e.getAttribute(n);if(t){r.push(`[${n}="${t}"]`)}}return r.join("")}function R(){try{return j.document.location.href}catch(n){return""}}function O(n){if(!j.HTMLElement){return null}let t=n;const e=5;for(let n=0;n<e;n++){if(!t){return null}if(t instanceof HTMLElement){if(t.dataset["sentryComponent"]){return t.dataset["sentryComponent"]}if(t.dataset["sentryElement"]){return t.dataset["sentryElement"]}}t=t.parentNode}return null}const F=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;const A="Sentry Logger ";const B=["debug","info","warn","error","log","assert","trace"];const P={};function q(n){if(!("console"in T)){return n()}const t=T.console;const e={};const r=Object.keys(P);r.forEach((n=>{const r=P[n];e[n]=t[n];t[n]=r}));try{return n()}finally{r.forEach((n=>{t[n]=e[n]}))}}function U(){let n=false;const t={enable:()=>{n=true},disable:()=>{n=false},isEnabled:()=>n};if(F){B.forEach((e=>{t[e]=(...t)=>{if(n){q((()=>{T.console[e](`${A}[${e}]:`,...t)}))}}}))}else{B.forEach((n=>{t[n]=()=>undefined}))}return t}const H=U();const z=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Y(n){return n==="http"||n==="https"}function G(n,t=false){const{host:e,path:r,pass:o,port:i,projectId:s,protocol:c,publicKey:u}=n;return`${c}://${u}${t&&o?`:${o}`:""}`+`@${e}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function X(n){const t=z.exec(n);if(!t){q((()=>{console.error(`Invalid Sentry Dsn: ${n}`)}));return undefined}const[e,r,o="",i="",s="",c=""]=t.slice(1);let u="";let a=c;const f=a.split("/");if(f.length>1){u=f.slice(0,-1).join("/");a=f.pop()}if(a){const n=a.match(/^\d+/);if(n){a=n[0]}}return V({host:i,pass:o,path:u,projectId:a,port:s,protocol:e,publicKey:r})}function V(n){return{protocol:n.protocol,publicKey:n.publicKey||"",pass:n.pass||"",host:n.host,port:n.port||"",path:n.path||"",projectId:n.projectId}}function W(n){if(!F){return true}const{port:t,projectId:e,protocol:r}=n;const o=["protocol","publicKey","host","projectId"];const i=o.find((t=>{if(!n[t]){H.error(`Invalid Sentry Dsn: ${t} missing`);return true}return false}));if(i){return false}if(!e.match(/^\d+$/)){H.error(`Invalid Sentry Dsn: Invalid projectId ${e}`);return false}if(!Y(r)){H.error(`Invalid Sentry Dsn: Invalid protocol ${r}`);return false}if(t&&isNaN(parseInt(t,10))){H.error(`Invalid Sentry Dsn: Invalid port ${t}`);return false}return true}function J(n){const t=typeof n==="string"?X(n):V(n);if(!t||!W(t)){return undefined}return t}class K extends Error{constructor(n,t="warn"){super(n);this.message=n;this.name=new.target.prototype.constructor.name;Object.setPrototypeOf(this,new.target.prototype);this.logLevel=t}}function Z(n,t,e){if(!(t in n)){return}const r=n[t];const o=e(r);if(typeof o==="function"){nn(o,r)}n[t]=o}function Q(n,t,e){try{Object.defineProperty(n,t,{value:e,writable:true,configurable:true})}catch(e){F&&H.log(`Failed to add non-enumerable property "${t}" to object`,n)}}function nn(n,t){try{const e=t.prototype||{};n.prototype=t.prototype=e;Q(n,"__sentry_original__",t)}catch(n){}}function tn(n){return n.__sentry_original__}function en(n){return Object.keys(n).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`)).join("&")}function rn(n){if(r(n)){return{message:n.message,name:n.name,stack:n.stack,...sn(n)}}else if(d(n)){const t={type:n.type,target:on(n.target),currentTarget:on(n.currentTarget),...sn(n)};if(typeof CustomEvent!=="undefined"&&g(n,CustomEvent)){t.detail=n.detail}return t}else{return n}}function on(n){try{return h(n)?M(n):Object.prototype.toString.call(n)}catch(n){return"<unknown>"}}function sn(n){if(typeof n==="object"&&n!==null){const t={};for(const e in n){if(Object.prototype.hasOwnProperty.call(n,e)){t[e]=n[e]}}return t}else{return{}}}function cn(n,t=40){const e=Object.keys(rn(n));e.sort();const r=e[0];if(!r){return"[object has no keys]"}if(r.length>=t){return y(r,t)}for(let n=e.length;n>0;n--){const r=e.slice(0,n).join(", ");if(r.length>t){continue}if(n===e.length){return r}return y(r,t)}return""}function un(n){const t=new Map;return an(n,t)}function an(n,t){if(fn(n)){const e=t.get(n);if(e!==undefined){return e}const r={};t.set(n,r);for(const e of Object.keys(n)){if(typeof n[e]!=="undefined"){r[e]=an(n[e],t)}}return r}if(Array.isArray(n)){const e=t.get(n);if(e!==undefined){return e}const r=[];t.set(n,r);n.forEach((n=>{r.push(an(n,t))}));return r}return n}function fn(n){if(!l(n)){return false}try{const t=Object.getPrototypeOf(n).constructor.name;return!t||t==="Object"}catch(n){return true}}const ln=50;const dn="?";const hn=/\(error: (.*)\)/;const pn=/captureMessage|captureException/;function mn(...n){const t=n.sort(((n,t)=>n[0]-t[0])).map((n=>n[1]));return(n,e=0,r=0)=>{const o=[];const i=n.split("\n");for(let n=e;n<i.length;n++){const e=i[n];if(e.length>1024){continue}const s=hn.test(e)?e.replace(hn,"$1"):e;if(s.match(/\S*Error: /)){continue}for(const n of t){const t=n(s);if(t){o.push(t);break}}if(o.length>=ln+r){break}}return gn(o.slice(r))}}function bn(n){if(Array.isArray(n)){return mn(...n)}return n}function gn(n){if(!n.length){return[]}const t=Array.from(n);if(/sentryWrapped/.test(_n(t).function||"")){t.pop()}t.reverse();if(pn.test(_n(t).function||"")){t.pop();if(pn.test(_n(t).function||"")){t.pop()}}return t.slice(0,ln).map((n=>({...n,filename:n.filename||_n(t).filename,function:n.function||dn})))}function _n(n){return n[n.length-1]||{}}const yn="<anonymous>";function vn(n){try{if(!n||typeof n!=="function"){return yn}return n.name||yn}catch(n){return yn}}function wn(n){const t=n.exception;if(t){const n=[];try{t.values.forEach((t=>{if(t.stacktrace.frames){n.push(...t.stacktrace.frames)}}));return n}catch(n){return undefined}}return undefined}const xn={};const kn={};function En(n,t){xn[n]=xn[n]||[];xn[n].push(t)}function Sn(n,t){if(!kn[n]){t();kn[n]=true}}function Nn(n,t){const e=n&&xn[n];if(!e){return}for(const r of e){try{r(t)}catch(t){F&&H.error(`Error while triggering instrumentation handler.\nType: ${n}\nName: ${vn(r)}\nError:`,t)}}}function $n(n){const t="console";En(t,n);Sn(t,Cn)}function Cn(){if(!("console"in T)){return}B.forEach((function(n){if(!(n in T.console)){return}Z(T.console,n,(function(t){P[n]=t;return function(...t){const e={args:t,level:n};Nn("console",e);const r=P[n];r&&r.apply(T.console,t)}}))}))}const Tn=T;function In(){if(!("fetch"in Tn)){return false}try{new Headers;new Request("http://www.example.com");new Response;return true}catch(n){return false}}function jn(n){return n&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(n.toString())}function Ln(){if(typeof EdgeRuntime==="string"){return true}if(!In()){return false}if(jn(Tn.fetch)){return true}let n=false;const t=Tn.document;if(t&&typeof t.createElement==="function"){try{const e=t.createElement("iframe");e.hidden=true;t.head.appendChild(e);if(e.contentWindow&&e.contentWindow.fetch){n=jn(e.contentWindow.fetch)}t.head.removeChild(e)}catch(n){F&&H.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}}return n}const Mn=1e3;function Dn(){return Date.now()/Mn}function Rn(){const{performance:n}=T;if(!n||!n.now){return Dn}const t=Date.now()-n.now();const e=n.timeOrigin==undefined?t:n.timeOrigin;return()=>(e+n.now())/Mn}const On=Rn();(()=>{const{performance:n}=T;if(!n||!n.now){return undefined}const t=3600*1e3;const e=n.now();const r=Date.now();const o=n.timeOrigin?Math.abs(n.timeOrigin+e-r):t;const i=o<t;const s=n.timing&&n.timing.navigationStart;const c=typeof s==="number";const u=c?Math.abs(s+e-r):t;const a=u<t;if(i||a){if(o<=u){return n.timeOrigin}else{return s}}return r})();function Fn(n,t){const e="fetch";En(e,n);Sn(e,(()=>An(undefined,t)))}function An(n,t=false){if(t&&!Ln()){return}Z(T,"fetch",(function(t){return function(...e){const{method:o,url:i}=qn(e);const s={args:e,fetchData:{method:o,url:i},startTimestamp:On()*1e3};if(!n){Nn("fetch",{...s})}const c=(new Error).stack;return t.apply(T,e).then((async t=>{if(n){n(t)}else{Nn("fetch",{...s,endTimestamp:On()*1e3,response:t})}return t}),(n=>{Nn("fetch",{...s,endTimestamp:On()*1e3,error:n});if(r(n)&&n.stack===undefined){n.stack=c;Q(n,"framesToPop",1)}throw n}))}}))}function Bn(n,t){return!!n&&typeof n==="object"&&!!n[t]}function Pn(n){if(typeof n==="string"){return n}if(!n){return""}if(Bn(n,"url")){return n.url}if(n.toString){return n.toString()}return""}function qn(n){if(n.length===0){return{method:"GET",url:""}}if(n.length===2){const[t,e]=n;return{url:Pn(t),method:Bn(e,"method")?String(e.method).toUpperCase():"GET"}}const t=n[0];return{url:Pn(t),method:Bn(t,"method")?String(t.method).toUpperCase():"GET"}}let Un=null;function Hn(n){const t="error";En(t,n);Sn(t,zn)}function zn(){Un=T.onerror;T.onerror=function(n,t,e,r,o){const i={column:r,error:o,line:e,msg:n,url:t};Nn("error",i);if(Un&&!Un.__SENTRY_LOADER__){return Un.apply(this,arguments)}return false};T.onerror.__SENTRY_INSTRUMENTED__=true}let Yn=null;function Gn(n){const t="unhandledrejection";En(t,n);Sn(t,Xn)}function Xn(){Yn=T.onunhandledrejection;T.onunhandledrejection=function(n){const t=n;Nn("unhandledrejection",t);if(Yn&&!Yn.__SENTRY_LOADER__){return Yn.apply(this,arguments)}return true};T.onunhandledrejection.__SENTRY_INSTRUMENTED__=true}function Vn(){return typeof __SENTRY_BROWSER_BUNDLE__!=="undefined"&&!!__SENTRY_BROWSER_BUNDLE__}function Wn(){return"npm"}function Jn(){return!Vn()&&Object.prototype.toString.call(typeof n!=="undefined"?n:0)==="[object process]"}function Kn(){return typeof window!=="undefined"&&(!Jn()||Zn())}function Zn(){return T.process!==undefined&&T.process.type==="renderer"}function Qn(){const n=typeof WeakSet==="function";const t=n?new WeakSet:[];function e(e){if(n){if(t.has(e)){return true}t.add(e);return false}for(let n=0;n<t.length;n++){const r=t[n];if(r===e){return true}}t.push(e);return false}function r(e){if(n){t.delete(e)}else{for(let n=0;n<t.length;n++){if(t[n]===e){t.splice(n,1);break}}}}return[e,r]}function nt(){const n=T;const t=n.crypto||n.msCrypto;let e=()=>Math.random()*16;try{if(t&&t.randomUUID){return t.randomUUID().replace(/-/g,"")}if(t&&t.getRandomValues){e=()=>{const n=new Uint8Array(1);t.getRandomValues(n);return n[0]}}}catch(n){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(n=>(n^(e()&15)>>n/4).toString(16)))}function tt(n){return n.exception&&n.exception.values?n.exception.values[0]:undefined}function et(n){const{message:t,event_id:e}=n;if(t){return t}const r=tt(n);if(r){if(r.type&&r.value){return`${r.type}: ${r.value}`}return r.type||r.value||e||"<unknown>"}return e||"<unknown>"}function rt(n,t,e){const r=n.exception=n.exception||{};const o=r.values=r.values||[];const i=o[0]=o[0]||{};if(!i.value){i.value=t||""}if(!i.type){i.type=e||"Error"}}function ot(n,t){const e=tt(n);if(!e){return}const r={type:"generic",handled:true};const o=e.mechanism;e.mechanism={...r,...o,...t};if(t&&"data"in t){const n={...o&&o.data,...t.data};e.mechanism.data=n}}function it(n){if(n&&n.__sentry_captured__){return true}try{Q(n,"__sentry_captured__",true)}catch(n){}return false}function st(n){return Array.isArray(n)?n:[n]}function ct(n,t=100,e=+Infinity){try{return at("",n,t,e)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function ut(n,t=3,e=100*1024){const r=ct(n,t);if(ht(r)>e){return ut(n,t-1,e)}return r}function at(n,t,e=+Infinity,r=+Infinity,o=Qn()){const[i,s]=o;if(t==null||["number","boolean","string"].includes(typeof t)&&!Number.isNaN(t)){return t}const c=ft(n,t);if(!c.startsWith("[object ")){return c}if(t["__sentry_skip_normalization__"]){return t}const u=typeof t["__sentry_override_normalization_depth__"]==="number"?t["__sentry_override_normalization_depth__"]:e;if(u===0){return c.replace("object ","")}if(i(t)){return"[Circular ~]"}const a=t;if(a&&typeof a.toJSON==="function"){try{const n=a.toJSON();return at("",n,u-1,r,o)}catch(n){}}const f=Array.isArray(t)?[]:{};let l=0;const d=rn(t);for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n)){continue}if(l>=r){f[n]="[MaxProperties ~]";break}const t=d[n];f[n]=at(n,t,u-1,r,o);l++}s(t);return f}function ft(n,e){try{if(n==="domain"&&e&&typeof e==="object"&&e._events){return"[Domain]"}if(n==="domainEmitter"){return"[DomainEmitter]"}if(typeof t!=="undefined"&&e===t){return"[Global]"}if(typeof window!=="undefined"&&e===window){return"[Window]"}if(typeof document!=="undefined"&&e===document){return"[Document]"}if(_(e)){return"[VueViewModel]"}if(b(e)){return"[SyntheticEvent]"}if(typeof e==="number"&&e!==e){return"[NaN]"}if(typeof e==="function"){return`[Function: ${vn(e)}]`}if(typeof e==="symbol"){return`[${String(e)}]`}if(typeof e==="bigint"){return`[BigInt: ${String(e)}]`}const r=lt(e);if(/^HTML(\w*)Element$/.test(r)){return`[HTMLElement: ${r}]`}return`[object ${r}]`}catch(n){return`**non-serializable** (${n})`}}function lt(n){const t=Object.getPrototypeOf(n);return t?t.constructor.name:"null prototype"}function dt(n){return~-encodeURI(n).split(/%..|./).length}function ht(n){return dt(JSON.stringify(n))}var pt;(function(n){const t=0;n[n["PENDING"]=t]="PENDING";const e=1;n[n["RESOLVED"]=e]="RESOLVED";const r=2;n[n["REJECTED"]=r]="REJECTED"})(pt||(pt={}));function mt(n){return new gt((t=>{t(n)}))}function bt(n){return new gt(((t,e)=>{e(n)}))}class gt{constructor(n){gt.prototype.__init.call(this);gt.prototype.__init2.call(this);gt.prototype.__init3.call(this);gt.prototype.__init4.call(this);this._state=pt.PENDING;this._handlers=[];try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}then(n,t){return new gt(((e,r)=>{this._handlers.push([false,t=>{if(!n){e(t)}else{try{e(n(t))}catch(n){r(n)}}},n=>{if(!t){r(n)}else{try{e(t(n))}catch(n){r(n)}}}]);this._executeHandlers()}))}catch(n){return this.then((n=>n),n)}finally(n){return new gt(((t,e)=>{let r;let o;return this.then((t=>{o=false;r=t;if(n){n()}}),(t=>{o=true;r=t;if(n){n()}})).then((()=>{if(o){e(r);return}t(r)}))}))}__init(){this._resolve=n=>{this._setResult(pt.RESOLVED,n)}}__init2(){this._reject=n=>{this._setResult(pt.REJECTED,n)}}__init3(){this._setResult=(n,t)=>{if(this._state!==pt.PENDING){return}if(m(t)){void t.then(this._resolve,this._reject);return}this._state=n;this._value=t;this._executeHandlers()}}__init4(){this._executeHandlers=()=>{if(this._state===pt.PENDING){return}const n=this._handlers.slice();this._handlers=[];n.forEach((n=>{if(n[0]){return}if(this._state===pt.RESOLVED){n[1](this._value)}if(this._state===pt.REJECTED){n[2](this._value)}n[0]=true}))}}}function _t(n){const t=[];function e(){return n===undefined||t.length<n}function r(n){return t.splice(t.indexOf(n),1)[0]||Promise.resolve(undefined)}function o(n){if(!e()){return bt(new K("Not adding Promise because buffer limit was reached."))}const o=n();if(t.indexOf(o)===-1){t.push(o)}void o.then((()=>r(o))).then(null,(()=>r(o).then(null,(()=>{}))));return o}function i(n){return new gt(((e,r)=>{let o=t.length;if(!o){return e(true)}const i=setTimeout((()=>{if(n&&n>0){e(false)}}),n);t.forEach((n=>{void mt(n).then((()=>{if(! --o){clearTimeout(i);e(true)}}),r)}))}))}return{$:t,add:o,drain:i}}function yt(n){if(!n){return{}}const t=n.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t){return{}}const e=t[6]||"";const r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:e,hash:r,relative:t[5]+e+r}}const vt=["fatal","error","warning","log","info","debug"];function wt(n){return n==="warn"?"warning":vt.includes(n)?n:"log"}const xt="sentry-";const kt=/^sentry-/;function Et(n){const t=St(n);if(!t){return undefined}const e=Object.entries(t).reduce(((n,[t,e])=>{if(t.match(kt)){const r=t.slice(xt.length);n[r]=e}return n}),{});if(Object.keys(e).length>0){return e}else{return undefined}}function St(n){if(!n||!u(n)&&!Array.isArray(n)){return undefined}if(Array.isArray(n)){return n.reduce(((n,t)=>{const e=Nt(t);Object.entries(e).forEach((([t,e])=>{n[t]=e}));return n}),{})}return Nt(n)}function Nt(n){return n.split(",").map((n=>n.split("=").map((n=>decodeURIComponent(n.trim()))))).reduce(((n,[t,e])=>{if(t&&e){n[t]=e}return n}),{})}function $t(n,t=[]){return[n,t]}function Ct(n,t){const[e,r]=n;return[e,[...r,t]]}function Tt(n,t){const e=n[1];for(const n of e){const e=n[0].type;const r=t(n,e);if(r){return true}}return false}function It(n){return T.__SENTRY__&&T.__SENTRY__.encodePolyfill?T.__SENTRY__.encodePolyfill(n):(new TextEncoder).encode(n)}function jt(n){const[t,e]=n;let r=JSON.stringify(t);function o(n){if(typeof r==="string"){r=typeof n==="string"?r+n:[It(r),n]}else{r.push(typeof n==="string"?It(n):n)}}for(const n of e){const[t,e]=n;o(`\n${JSON.stringify(t)}\n`);if(typeof e==="string"||e instanceof Uint8Array){o(e)}else{let n;try{n=JSON.stringify(e)}catch(t){n=JSON.stringify(ct(e))}o(n)}}return typeof r==="string"?r:Lt(r)}function Lt(n){const t=n.reduce(((n,t)=>n+t.length),0);const e=new Uint8Array(t);let r=0;for(const t of n){e.set(t,r);r+=t.length}return e}function Mt(n){const t=typeof n.data==="string"?It(n.data):n.data;return[un({type:"attachment",length:t.length,filename:n.filename,content_type:n.contentType,attachment_type:n.attachmentType}),t]}const Dt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Rt(n){return Dt[n]}function Ot(n){if(!n||!n.sdk){return}const{name:t,version:e}=n.sdk;return{name:t,version:e}}function Ft(n,t,e,r){const o=n.sdkProcessingMetadata&&n.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:n.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!e&&r&&{dsn:G(r)},...o&&{trace:un({...o})}}}function At(n,t,e){const r=[{type:"client_report"},{timestamp:e||Dn(),discarded_events:n}];return $t(t?{dsn:t}:{},[r])}const Bt=60*1e3;function Pt(n,t=Date.now()){const e=parseInt(`${n}`,10);if(!isNaN(e)){return e*1e3}const r=Date.parse(`${n}`);if(!isNaN(r)){return r-t}return Bt}function qt(n,t){return n[t]||n.all||0}function Ut(n,t,e=Date.now()){return qt(n,t)>e}function Ht(n,{statusCode:t,headers:e},r=Date.now()){const o={...n};const i=e&&e["x-sentry-rate-limits"];const s=e&&e["retry-after"];if(i){for(const n of i.trim().split(",")){const[t,e,,,i]=n.split(":",5);const s=parseInt(t,10);const c=(!isNaN(s)?s:60)*1e3;if(!e){o.all=r+c}else{for(const n of e.split(";")){if(n==="metric_bucket"){if(!i||i.split(";").includes("custom")){o[n]=r+c}}else{o[n]=r+c}}}}}else if(s){o.all=r+Pt(s,r)}else if(t===429){o.all=r+60*1e3}return o}function zt(){return{traceId:nt(),spanId:nt().substring(16)}}const Yt=T;function Gt(){const n=Yt.chrome;const t=n&&n.app&&n.app.runtime;const e="history"in Yt&&!!Yt.history.pushState&&!!Yt.history.replaceState;return!t&&e}const Xt=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;function Vt(){Wt(T);return T}function Wt(n){const t=n.__SENTRY__=n.__SENTRY__||{};t.version=t.version||C;return t[C]=t[C]||{}}function Jt(n){const t=On();const e={sid:nt(),init:true,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:false,toJSON:()=>Qt(e)};if(n){Kt(e,n)}return e}function Kt(n,t={}){if(t.user){if(!n.ipAddress&&t.user.ip_address){n.ipAddress=t.user.ip_address}if(!n.did&&!t.did){n.did=t.user.id||t.user.email||t.user.username}}n.timestamp=t.timestamp||On();if(t.abnormal_mechanism){n.abnormal_mechanism=t.abnormal_mechanism}if(t.ignoreDuration){n.ignoreDuration=t.ignoreDuration}if(t.sid){n.sid=t.sid.length===32?t.sid:nt()}if(t.init!==undefined){n.init=t.init}if(!n.did&&t.did){n.did=`${t.did}`}if(typeof t.started==="number"){n.started=t.started}if(n.ignoreDuration){n.duration=undefined}else if(typeof t.duration==="number"){n.duration=t.duration}else{const t=n.timestamp-n.started;n.duration=t>=0?t:0}if(t.release){n.release=t.release}if(t.environment){n.environment=t.environment}if(!n.ipAddress&&t.ipAddress){n.ipAddress=t.ipAddress}if(!n.userAgent&&t.userAgent){n.userAgent=t.userAgent}if(typeof t.errors==="number"){n.errors=t.errors}if(t.status){n.status=t.status}}function Zt(n,t){let e={};if(t){e={status:t}}else if(n.status==="ok"){e={status:"exited"}}Kt(n,e)}function Qt(n){return un({sid:`${n.sid}`,init:n.init,started:new Date(n.started*1e3).toISOString(),timestamp:new Date(n.timestamp*1e3).toISOString(),status:n.status,errors:n.errors,did:typeof n.did==="number"||typeof n.did==="string"?`${n.did}`:undefined,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})}const ne="_sentrySpan";function te(n,t){if(t){Q(n,ne,t)}else{delete n[ne]}}function ee(n){return n[ne]}const re=100;class oe{constructor(){this._notifyingListeners=false;this._scopeListeners=[];this._eventProcessors=[];this._breadcrumbs=[];this._attachments=[];this._user={};this._tags={};this._extra={};this._contexts={};this._sdkProcessingMetadata={};this._propagationContext=zt()}clone(){const n=new oe;n._breadcrumbs=[...this._breadcrumbs];n._tags={...this._tags};n._extra={...this._extra};n._contexts={...this._contexts};n._user=this._user;n._level=this._level;n._session=this._session;n._transactionName=this._transactionName;n._fingerprint=this._fingerprint;n._eventProcessors=[...this._eventProcessors];n._requestSession=this._requestSession;n._attachments=[...this._attachments];n._sdkProcessingMetadata={...this._sdkProcessingMetadata};n._propagationContext={...this._propagationContext};n._client=this._client;n._lastEventId=this._lastEventId;te(n,ee(this));return n}setClient(n){this._client=n}setLastEventId(n){this._lastEventId=n}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(n){this._scopeListeners.push(n)}addEventProcessor(n){this._eventProcessors.push(n);return this}setUser(n){this._user=n||{email:undefined,id:undefined,ip_address:undefined,username:undefined};if(this._session){Kt(this._session,{user:n})}this._notifyScopeListeners();return this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(n){this._requestSession=n;return this}setTags(n){this._tags={...this._tags,...n};this._notifyScopeListeners();return this}setTag(n,t){this._tags={...this._tags,[n]:t};this._notifyScopeListeners();return this}setExtras(n){this._extra={...this._extra,...n};this._notifyScopeListeners();return this}setExtra(n,t){this._extra={...this._extra,[n]:t};this._notifyScopeListeners();return this}setFingerprint(n){this._fingerprint=n;this._notifyScopeListeners();return this}setLevel(n){this._level=n;this._notifyScopeListeners();return this}setTransactionName(n){this._transactionName=n;this._notifyScopeListeners();return this}setContext(n,t){if(t===null){delete this._contexts[n]}else{this._contexts[n]=t}this._notifyScopeListeners();return this}setSession(n){if(!n){delete this._session}else{this._session=n}this._notifyScopeListeners();return this}getSession(){return this._session}update(n){if(!n){return this}const t=typeof n==="function"?n(this):n;const[e,r]=t instanceof ie?[t.getScopeData(),t.getRequestSession()]:l(t)?[n,n.requestSession]:[];const{tags:o,extra:i,user:s,contexts:c,level:u,fingerprint:a=[],propagationContext:f}=e||{};this._tags={...this._tags,...o};this._extra={...this._extra,...i};this._contexts={...this._contexts,...c};if(s&&Object.keys(s).length){this._user=s}if(u){this._level=u}if(a.length){this._fingerprint=a}if(f){this._propagationContext=f}if(r){this._requestSession=r}return this}clear(){this._breadcrumbs=[];this._tags={};this._extra={};this._user={};this._contexts={};this._level=undefined;this._transactionName=undefined;this._fingerprint=undefined;this._requestSession=undefined;this._session=undefined;te(this,undefined);this._attachments=[];this._propagationContext=zt();this._notifyScopeListeners();return this}addBreadcrumb(n,t){const e=typeof t==="number"?t:re;if(e<=0){return this}const r={timestamp:Dn(),...n};const o=this._breadcrumbs;o.push(r);this._breadcrumbs=o.length>e?o.slice(-e):o;this._notifyScopeListeners();return this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){this._breadcrumbs=[];this._notifyScopeListeners();return this}addAttachment(n){this._attachments.push(n);return this}clearAttachments(){this._attachments=[];return this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:ee(this)}}setSDKProcessingMetadata(n){this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...n};return this}setPropagationContext(n){this._propagationContext=n;return this}getPropagationContext(){return this._propagationContext}captureException(n,t){const e=t&&t.event_id?t.event_id:nt();if(!this._client){H.warn("No client configured on scope - will not capture exception!");return e}const r=new Error("Sentry syntheticException");this._client.captureException(n,{originalException:n,syntheticException:r,...t,event_id:e},this);return e}captureMessage(n,t,e){const r=e&&e.event_id?e.event_id:nt();if(!this._client){H.warn("No client configured on scope - will not capture message!");return r}const o=new Error(n);this._client.captureMessage(n,t,{originalException:n,syntheticException:o,...e,event_id:r},this);return r}captureEvent(n,t){const e=t&&t.event_id?t.event_id:nt();if(!this._client){H.warn("No client configured on scope - will not capture event!");return e}this._client.captureEvent(n,{...t,event_id:e},this);return e}_notifyScopeListeners(){if(!this._notifyingListeners){this._notifyingListeners=true;this._scopeListeners.forEach((n=>{n(this)}));this._notifyingListeners=false}}}const ie=oe;function se(){return I("defaultCurrentScope",(()=>new ie))}function ce(){return I("defaultIsolationScope",(()=>new ie))}class ue{constructor(n,t){let e;if(!n){e=new ie}else{e=n}let r;if(!t){r=new ie}else{r=t}this._stack=[{scope:e}];this._isolationScope=r}withScope(n){const t=this._pushScope();let e;try{e=n(t)}catch(n){this._popScope();throw n}if(m(e)){return e.then((n=>{this._popScope();return n}),(n=>{this._popScope();throw n}))}this._popScope();return e}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const n=this.getScope().clone();this._stack.push({client:this.getClient(),scope:n});return n}_popScope(){if(this._stack.length<=1)return false;return!!this._stack.pop()}}function ae(){const n=Vt();const t=Wt(n);return t.stack=t.stack||new ue(se(),ce())}function fe(n){return ae().withScope(n)}function le(n,t){const e=ae();return e.withScope((()=>{e.getStackTop().scope=n;return t(n)}))}function de(n){return ae().withScope((()=>n(ae().getIsolationScope())))}function he(){return{withIsolationScope:de,withScope:fe,withSetScope:le,withSetIsolationScope:(n,t)=>de(t),getCurrentScope:()=>ae().getScope(),getIsolationScope:()=>ae().getIsolationScope()}}function pe(n){const t=Wt(n);if(t.acs){return t.acs}return he()}function me(){const n=Vt();const t=pe(n);return t.getCurrentScope()}function be(){const n=Vt();const t=pe(n);return t.getIsolationScope()}function ge(){return I("globalScope",(()=>new ie))}function _e(...n){const t=Vt();const e=pe(t);if(n.length===2){const[t,r]=n;if(!t){return e.withScope(r)}return e.withSetScope(t,r)}return e.withScope(n[0])}function ye(){return me().getClient()}const ve="_sentryMetrics";function we(n){const t=n[ve];if(!t){return undefined}const e={};for(const[,[n,r]]of t){const t=e[n]||(e[n]=[]);t.push(un(r))}return e}const xe="sentry.source";const ke="sentry.sample_rate";const Ee="sentry.op";const Se="sentry.origin";const Ne=0;const $e=1;const Ce=1;function Te(n){const{spanId:t,traceId:e}=n.spanContext();const{parent_span_id:r}=Le(n);return un({parent_span_id:r,span_id:t,trace_id:e})}function Ie(n){if(typeof n==="number"){return je(n)}if(Array.isArray(n)){return n[0]+n[1]/1e9}if(n instanceof Date){return je(n.getTime())}return On()}function je(n){const t=n>9999999999;return t?n/1e3:n}function Le(n){if(De(n)){return n.getSpanJSON()}try{const{spanId:t,traceId:e}=n.spanContext();if(Me(n)){const{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:c,status:u}=n;return un({span_id:t,trace_id:e,data:r,description:i,parent_span_id:c,start_timestamp:Ie(o),timestamp:Ie(s)||undefined,status:Oe(u),op:r[Ee],origin:r[Se],_metrics_summary:we(n)})}return{span_id:t,trace_id:e}}catch(n){return{}}}function Me(n){const t=n;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function De(n){return typeof n.getSpanJSON==="function"}function Re(n){const{traceFlags:t}=n.spanContext();return t===Ce}function Oe(n){if(!n||n.code===Ne){return undefined}if(n.code===$e){return"ok"}return n.message||"unknown_error"}const Fe="_sentryRootSpan";function Ae(n){return n[Fe]||n}const Be="production";const Pe="_frozenDsc";function qe(n,t){const e=t.getOptions();const{publicKey:r}=t.getDsn()||{};const o=un({environment:e.environment||Be,release:e.release,public_key:r,trace_id:n});t.emit("createDsc",o);return o}function Ue(n){const t=ye();if(!t){return{}}const e=qe(Le(n).trace_id||"",t);const r=Ae(n);const o=r[Pe];if(o){return o}const i=r.spanContext().traceState;const s=i&&i.get("sentry.dsc");const c=s&&Et(s);if(c){return c}const u=Le(r);const a=u.data||{};const f=a[ke];if(f!=null){e.sample_rate=`${f}`}const l=a[xe];const d=u.description;if(l!=="url"&&d){e.transaction=d}e.sampled=String(Re(r));t.emit("createDsc",e,r);return e}function He(n){if(typeof n==="boolean"){return Number(n)}const t=typeof n==="string"?parseFloat(n):n;if(typeof t!=="number"||isNaN(t)||t<0||t>1){Xt&&H.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(n)} of type ${JSON.stringify(typeof n)}.`);return undefined}return t}function ze(n,t){if(!t){return n}n.sdk=n.sdk||{};n.sdk.name=n.sdk.name||t.name;n.sdk.version=n.sdk.version||t.version;n.sdk.integrations=[...n.sdk.integrations||[],...t.integrations||[]];n.sdk.packages=[...n.sdk.packages||[],...t.packages||[]];return n}function Ye(n,t,e,r){const o=Ot(e);const i={sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:G(t)}};const s="aggregates"in n?[{type:"sessions"},n]:[{type:"session"},n.toJSON()];return $t(i,[s])}function Ge(n,t,e,r){const o=Ot(e);const i=n.type&&n.type!=="replay_event"?n.type:"event";ze(n,e&&e.sdk);const s=Ft(n,o,r,t);delete n.sdkProcessingMetadata;const c=[{type:i},n];return $t(s,[c])}function Xe(n,t,e,r=0){return new gt(((o,i)=>{const s=n[r];if(t===null||typeof s!=="function"){o(t)}else{const c=s({...t},e);Xt&&s.id&&c===null&&H.log(`Event processor "${s.id}" dropped event`);if(m(c)){void c.then((t=>Xe(n,t,e,r+1).then(o))).then(null,i)}else{void Xe(n,c,e,r+1).then(o).then(null,i)}}}))}function Ve(n,t){const{fingerprint:e,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;Ke(n,t);if(r){nr(n,r)}tr(n,e);Ze(n,o);Qe(n,i)}function We(n,t){const{extra:e,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:a,eventProcessors:f,attachments:l,propagationContext:d,transactionName:h,span:p}=t;Je(n,"extra",e);Je(n,"tags",r);Je(n,"user",o);Je(n,"contexts",i);Je(n,"sdkProcessingMetadata",c);if(s){n.level=s}if(h){n.transactionName=h}if(p){n.span=p}if(u.length){n.breadcrumbs=[...n.breadcrumbs,...u]}if(a.length){n.fingerprint=[...n.fingerprint,...a]}if(f.length){n.eventProcessors=[...n.eventProcessors,...f]}if(l.length){n.attachments=[...n.attachments,...l]}n.propagationContext={...n.propagationContext,...d}}function Je(n,t,e){if(e&&Object.keys(e).length){n[t]={...n[t]};for(const r in e){if(Object.prototype.hasOwnProperty.call(e,r)){n[t][r]=e[r]}}}}function Ke(n,t){const{extra:e,tags:r,user:o,contexts:i,level:s,transactionName:c}=t;const u=un(e);if(u&&Object.keys(u).length){n.extra={...u,...n.extra}}const a=un(r);if(a&&Object.keys(a).length){n.tags={...a,...n.tags}}const f=un(o);if(f&&Object.keys(f).length){n.user={...f,...n.user}}const l=un(i);if(l&&Object.keys(l).length){n.contexts={...l,...n.contexts}}if(s){n.level=s}if(c&&n.type!=="transaction"){n.transaction=c}}function Ze(n,t){const e=[...n.breadcrumbs||[],...t];n.breadcrumbs=e.length?e:undefined}function Qe(n,t){n.sdkProcessingMetadata={...n.sdkProcessingMetadata,...t}}function nr(n,t){n.contexts={trace:Te(t),...n.contexts};n.sdkProcessingMetadata={dynamicSamplingContext:Ue(t),...n.sdkProcessingMetadata};const e=Ae(t);const r=Le(e).description;if(r&&!n.transaction&&n.type==="transaction"){n.transaction=r}}function tr(n,t){n.fingerprint=n.fingerprint?st(n.fingerprint):[];if(t){n.fingerprint=n.fingerprint.concat(t)}if(n.fingerprint&&!n.fingerprint.length){delete n.fingerprint}}function er(n,t,e,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:c=1e3}=n;const u={...t,event_id:t.event_id||e.event_id||nt(),timestamp:t.timestamp||Dn()};const a=e.integrations||n.integrations.map((n=>n.name));rr(u,n);cr(u,a);if(o){o.emit("applyFrameMetadata",t)}if(t.type===undefined){ir(u,n.stackParser)}const f=ar(r,e.captureContext);if(e.mechanism){ot(u,e.mechanism)}const l=o?o.getEventProcessors():[];const d=ge().getScopeData();if(i){const n=i.getScopeData();We(d,n)}if(f){const n=f.getScopeData();We(d,n)}const h=[...e.attachments||[],...d.attachments];if(h.length){e.attachments=h}Ve(u,d);const p=[...l,...d.eventProcessors];const m=Xe(p,u,e);return m.then((n=>{if(n){sr(n)}if(typeof s==="number"&&s>0){return ur(n,s,c)}return n}))}function rr(n,t){const{environment:e,release:r,dist:o,maxValueLength:i=250}=t;if(!("environment"in n)){n.environment="environment"in t?e:Be}if(n.release===undefined&&r!==undefined){n.release=r}if(n.dist===undefined&&o!==undefined){n.dist=o}if(n.message){n.message=y(n.message,i)}const s=n.exception&&n.exception.values&&n.exception.values[0];if(s&&s.value){s.value=y(s.value,i)}const c=n.request;if(c&&c.url){c.url=y(c.url,i)}}const or=new WeakMap;function ir(n,t){const e=T._sentryDebugIds;if(!e){return}let r;const o=or.get(t);if(o){r=o}else{r=new Map;or.set(t,r)}const i=Object.entries(e).reduce(((n,[e,o])=>{let i;const s=r.get(e);if(s){i=s}else{i=t(e);r.set(e,i)}for(let t=i.length-1;t>=0;t--){const e=i[t];if(e.filename){n[e.filename]=o;break}}return n}),{});try{n.exception.values.forEach((n=>{n.stacktrace.frames.forEach((n=>{if(n.filename){n.debug_id=i[n.filename]}}))}))}catch(n){}}function sr(n){const t={};try{n.exception.values.forEach((n=>{n.stacktrace.frames.forEach((n=>{if(n.debug_id){if(n.abs_path){t[n.abs_path]=n.debug_id}else if(n.filename){t[n.filename]=n.debug_id}delete n.debug_id}}))}))}catch(n){}if(Object.keys(t).length===0){return}n.debug_meta=n.debug_meta||{};n.debug_meta.images=n.debug_meta.images||[];const e=n.debug_meta.images;Object.entries(t).forEach((([n,t])=>{e.push({type:"sourcemap",code_file:n,debug_id:t})}))}function cr(n,t){if(t.length>0){n.sdk=n.sdk||{};n.sdk.integrations=[...n.sdk.integrations||[],...t]}}function ur(n,t,e){if(!n){return null}const r={...n,...n.breadcrumbs&&{breadcrumbs:n.breadcrumbs.map((n=>({...n,...n.data&&{data:ct(n.data,t,e)}})))},...n.user&&{user:ct(n.user,t,e)},...n.contexts&&{contexts:ct(n.contexts,t,e)},...n.extra&&{extra:ct(n.extra,t,e)}};if(n.contexts&&n.contexts.trace&&r.contexts){r.contexts.trace=n.contexts.trace;if(n.contexts.trace.data){r.contexts.trace.data=ct(n.contexts.trace.data,t,e)}}if(n.spans){r.spans=n.spans.map((n=>({...n,...n.data&&{data:ct(n.data,t,e)}})))}return r}function ar(n,t){if(!t){return n}const e=n?n.clone():new ie;e.update(t);return e}function fr(n){if(!n){return undefined}if(lr(n)){return{captureContext:n}}if(hr(n)){return{captureContext:n}}return n}function lr(n){return n instanceof ie||typeof n==="function"}const dr=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function hr(n){return Object.keys(n).some((n=>dr.includes(n)))}function pr(n,t){return me().captureException(n,fr(t))}function mr(n,t){const e=typeof t==="string"?t:undefined;const r=typeof t!=="string"?{captureContext:t}:undefined;return me().captureMessage(n,e,r)}function br(n,t){return me().captureEvent(n,t)}function gr(){return!!ye()}function _r(n){const t=ye();const e=be();const r=me();const{release:o,environment:i=Be}=t&&t.getOptions()||{};const{userAgent:s}=T.navigator||{};const c=Jt({release:o,environment:i,user:r.getUser()||e.getUser(),...s&&{userAgent:s},...n});const u=e.getSession();if(u&&u.status==="ok"){Kt(u,{status:"exited"})}yr();e.setSession(c);r.setSession(c);return c}function yr(){const n=be();const t=me();const e=t.getSession()||n.getSession();if(e){Zt(e)}vr();n.setSession();t.setSession()}function vr(){const n=be();const t=me();const e=ye();const r=t.getSession()||n.getSession();if(r&&e){e.captureSession(r)}}function wr(n=false){if(n){yr();return}vr()}const xr="7";function kr(n){const t=n.protocol?`${n.protocol}:`:"";const e=n.port?`:${n.port}`:"";return`${t}//${n.host}${e}${n.path?`/${n.path}`:""}/api/`}function Er(n){return`${kr(n)}${n.projectId}/envelope/`}function Sr(n,t){return en({sentry_key:n.publicKey,sentry_version:xr,...t&&{sentry_client:`${t.name}/${t.version}`}})}function Nr(n,t,e){return t?t:`${Er(n)}?${Sr(n,e)}`}const $r=[];function Cr(n){const t={};n.forEach((n=>{const{name:e}=n;const r=t[e];if(r&&!r.isDefaultInstance&&n.isDefaultInstance){return}t[e]=n}));return Object.values(t)}function Tr(n){const t=n.defaultIntegrations||[];const e=n.integrations;t.forEach((n=>{n.isDefaultInstance=true}));let r;if(Array.isArray(e)){r=[...t,...e]}else if(typeof e==="function"){r=st(e(t))}else{r=t}const o=Cr(r);const i=o.findIndex((n=>n.name==="Debug"));if(i>-1){const[n]=o.splice(i,1);o.push(n)}return o}function Ir(n,t){const e={};t.forEach((t=>{if(t){Lr(n,t,e)}}));return e}function jr(n,t){for(const e of t){if(e&&e.afterAllSetup){e.afterAllSetup(n)}}}function Lr(n,t,e){if(e[t.name]){Xt&&H.log(`Integration skipped because it was already installed: ${t.name}`);return}e[t.name]=t;if($r.indexOf(t.name)===-1&&typeof t.setupOnce==="function"){t.setupOnce();$r.push(t.name)}if(t.setup&&typeof t.setup==="function"){t.setup(n)}if(typeof t.preprocessEvent==="function"){const e=t.preprocessEvent.bind(t);n.on("preprocessEvent",((t,r)=>e(t,r,n)))}if(typeof t.processEvent==="function"){const e=t.processEvent.bind(t);const r=Object.assign(((t,r)=>e(t,r,n)),{id:t.name});n.addEventProcessor(r)}Xt&&H.log(`Integration installed: ${t.name}`)}function Mr(n){return n}const Dr="Not capturing exception because it's already been captured.";class Rr{constructor(n){this._options=n;this._integrations={};this._numProcessing=0;this._outcomes={};this._hooks={};this._eventProcessors=[];if(n.dsn){this._dsn=J(n.dsn)}else{Xt&&H.warn("No DSN provided, client will not send events.")}if(this._dsn){const t=Nr(this._dsn,n.tunnel,n._metadata?n._metadata.sdk:undefined);this._transport=n.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...n.transportOptions,url:t})}}captureException(n,t,e){const r=nt();if(it(n)){Xt&&H.log(Dr);return r}const o={event_id:r,...t};this._process(this.eventFromException(n,o).then((n=>this._captureEvent(n,o,e))));return o.event_id}captureMessage(n,t,e,r){const o={event_id:nt(),...e};const i=a(n)?n:String(n);const s=f(n)?this.eventFromMessage(i,t,o):this.eventFromException(n,o);this._process(s.then((n=>this._captureEvent(n,o,r))));return o.event_id}captureEvent(n,t,e){const r=nt();if(t&&t.originalException&&it(t.originalException)){Xt&&H.log(Dr);return r}const o={event_id:r,...t};const i=n.sdkProcessingMetadata||{};const s=i.capturedSpanScope;this._process(this._captureEvent(n,o,s||e));return o.event_id}captureSession(n){if(!(typeof n.release==="string")){Xt&&H.warn("Discarded session because of missing or non-string release")}else{this.sendSession(n);Kt(n,{init:false})}}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(n){const t=this._transport;if(t){this.emit("flush");return this._isClientDoneProcessing(n).then((e=>t.flush(n).then((n=>e&&n))))}else{return mt(true)}}close(n){return this.flush(n).then((n=>{this.getOptions().enabled=false;this.emit("close");return n}))}getEventProcessors(){return this._eventProcessors}addEventProcessor(n){this._eventProcessors.push(n)}init(){if(this._isEnabled()||this._options.integrations.some((({name:n})=>n.startsWith("Spotlight")))){this._setupIntegrations()}}getIntegrationByName(n){return this._integrations[n]}addIntegration(n){const t=this._integrations[n.name];Lr(this,n,this._integrations);if(!t){jr(this,[n])}}sendEvent(n,t={}){this.emit("beforeSendEvent",n,t);let e=Ge(n,this._dsn,this._options._metadata,this._options.tunnel);for(const n of t.attachments||[]){e=Ct(e,Mt(n))}const r=this.sendEnvelope(e);if(r){r.then((t=>this.emit("afterSendEvent",n,t)),null)}}sendSession(n){const t=Ye(n,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(n,t,e){if(this._options.sendClientReports){const r=typeof e==="number"?e:1;const o=`${n}:${t}`;Xt&&H.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`);this._outcomes[o]=(this._outcomes[o]||0)+r}}on(n,t){const e=this._hooks[n]=this._hooks[n]||[];e.push(t);return()=>{const n=e.indexOf(t);if(n>-1){e.splice(n,1)}}}emit(n,...t){const e=this._hooks[n];if(e){e.forEach((n=>n(...t)))}}sendEnvelope(n){this.emit("beforeEnvelope",n);if(this._isEnabled()&&this._transport){return this._transport.send(n).then(null,(n=>{Xt&&H.error("Error while sending event:",n);return n}))}Xt&&H.error("Transport disabled");return mt({})}_setupIntegrations(){const{integrations:n}=this._options;this._integrations=Ir(this,n);jr(this,n)}_updateSessionFromEvent(n,t){let e=false;let r=false;const o=t.exception&&t.exception.values;if(o){r=true;for(const n of o){const t=n.mechanism;if(t&&t.handled===false){e=true;break}}}const i=n.status==="ok";const s=i&&n.errors===0||i&&e;if(s){Kt(n,{...e&&{status:"crashed"},errors:n.errors||Number(r||e)});this.captureSession(n)}}_isClientDoneProcessing(n){return new gt((t=>{let e=0;const r=1;const o=setInterval((()=>{if(this._numProcessing==0){clearInterval(o);t(true)}else{e+=r;if(n&&e>=n){clearInterval(o);t(false)}}}),r)}))}_isEnabled(){return this.getOptions().enabled!==false&&this._transport!==undefined}_prepareEvent(n,t,e,r=be()){const o=this.getOptions();const i=Object.keys(this._integrations);if(!t.integrations&&i.length>0){t.integrations=i}this.emit("preprocessEvent",n,t);if(!n.type){r.setLastEventId(n.event_id||t.event_id)}return er(o,n,t,e,this,r).then((n=>{if(n===null){return n}const t={...r.getPropagationContext(),...e?e.getPropagationContext():undefined};const o=n.contexts&&n.contexts.trace;if(!o&&t){const{traceId:e,spanId:r,parentSpanId:o,dsc:i}=t;n.contexts={trace:un({trace_id:e,span_id:r,parent_span_id:o}),...n.contexts};const s=i?i:qe(e,this);n.sdkProcessingMetadata={dynamicSamplingContext:s,...n.sdkProcessingMetadata}}return n}))}_captureEvent(n,t={},e){return this._processEvent(n,t,e).then((n=>n.event_id),(n=>{if(Xt){const t=n;if(t.logLevel==="log"){H.log(t.message)}else{H.warn(t)}}return undefined}))}_processEvent(n,t,e){const r=this.getOptions();const{sampleRate:o}=r;const i=Br(n);const s=Ar(n);const c=n.type||"error";const u=`before send for type \`${c}\``;const a=typeof o==="undefined"?undefined:He(o);if(s&&typeof a==="number"&&Math.random()>a){this.recordDroppedEvent("sample_rate","error",n);return bt(new K(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"))}const f=c==="replay_event"?"replay":c;const l=n.sdkProcessingMetadata||{};const d=l.capturedSpanIsolationScope;return this._prepareEvent(n,t,e,d).then((e=>{if(e===null){this.recordDroppedEvent("event_processor",f,n);throw new K("An event processor returned `null`, will not send event.","log")}const o=t.data&&t.data.__sentry__===true;if(o){return e}const i=Fr(this,r,e,t);return Or(i,u)})).then((r=>{if(r===null){this.recordDroppedEvent("before_send",f,n);if(i){const t=n.spans||[];const e=1+t.length;this.recordDroppedEvent("before_send","span",e)}throw new K(`${u} returned \`null\`, will not send event.`,"log")}const o=e&&e.getSession();if(!i&&o){this._updateSessionFromEvent(o,r)}if(i){const n=r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0;const t=r.spans?r.spans.length:0;const e=n-t;if(e>0){this.recordDroppedEvent("before_send","span",e)}}const s=r.transaction_info;if(i&&s&&r.transaction!==n.transaction){const n="custom";r.transaction_info={...s,source:n}}this.sendEvent(r,t);return r})).then(null,(n=>{if(n instanceof K){throw n}this.captureException(n,{data:{__sentry__:true},originalException:n});throw new K(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${n}`)}))}_process(n){this._numProcessing++;void n.then((n=>{this._numProcessing--;return n}),(n=>{this._numProcessing--;return n}))}_clearOutcomes(){const n=this._outcomes;this._outcomes={};return Object.entries(n).map((([n,t])=>{const[e,r]=n.split(":");return{reason:e,category:r,quantity:t}}))}_flushOutcomes(){Xt&&H.log("Flushing outcomes...");const n=this._clearOutcomes();if(n.length===0){Xt&&H.log("No outcomes to send");return}if(!this._dsn){Xt&&H.log("No dsn provided, will not send outcomes");return}Xt&&H.log("Sending outcomes:",n);const t=At(n,this._options.tunnel&&G(this._dsn));this.sendEnvelope(t)}}function Or(n,t){const e=`${t} must return \`null\` or a valid event.`;if(m(n)){return n.then((n=>{if(!l(n)&&n!==null){throw new K(e)}return n}),(n=>{throw new K(`${t} rejected with ${n}`)}))}else if(!l(n)&&n!==null){throw new K(e)}return n}function Fr(n,t,e,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=t;if(Ar(e)&&o){return o(e,r)}if(Br(e)){if(e.spans&&s){const t=[];for(const r of e.spans){const e=s(r);if(e){t.push(e)}else{n.recordDroppedEvent("before_send","span")}}e.spans=t}if(i){if(e.spans){const n=e.spans.length;e.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:n}}return i(e,r)}}return e}function Ar(n){return n.type===undefined}function Br(n){return n.type==="transaction"}function Pr(n,t){if(t.debug===true){if(Xt){H.enable()}else{q((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))}}const e=me();e.update(t.initialScope);const r=new n(t);qr(r);r.init();return r}function qr(n){me().setClient(n)}const Ur=64;function Hr(n,t,e=_t(n.bufferSize||Ur)){let r={};const o=n=>e.drain(n);function i(o){const i=[];Tt(o,((t,e)=>{const o=Rt(e);if(Ut(r,o)){const r=zr(t,e);n.recordDroppedEvent("ratelimit_backoff",o,r)}else{i.push(t)}}));if(i.length===0){return mt({})}const s=$t(o[0],i);const c=t=>{Tt(s,((e,r)=>{const o=zr(e,r);n.recordDroppedEvent(t,Rt(r),o)}))};const u=()=>t({body:jt(s)}).then((n=>{if(n.statusCode!==undefined&&(n.statusCode<200||n.statusCode>=300)){Xt&&H.warn(`Sentry responded with status code ${n.statusCode} to sent event.`)}r=Ht(r,n);return n}),(n=>{c("network_error");throw n}));return e.add(u).then((n=>n),(n=>{if(n instanceof K){Xt&&H.error("Skipped sending event because buffer is full.");c("queue_overflow");return mt({})}else{throw n}}))}return{send:i,flush:o}}function zr(n,t){if(t!=="event"&&t!=="transaction"){return undefined}return Array.isArray(n)?n[1]:undefined}function Yr(n,t,e=[t],r="npm"){const o=n._metadata||{};if(!o.sdk){o.sdk={name:`sentry.javascript.${t}`,packages:e.map((n=>({name:`${r}:@sentry/${n}`,version:C}))),version:C}}n._metadata=o}const Gr=100;function Xr(n,t){const e=ye();const r=be();if(!e)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=Gr}=e.getOptions();if(i<=0)return;const s=Dn();const c={timestamp:s,...n};const u=o?q((()=>o(c,t))):c;if(u===null)return;if(e.emit){e.emit("beforeAddBreadcrumb",u,t)}r.addBreadcrumb(u,i)}let Vr;const Wr="FunctionToString";const Jr=new WeakMap;const Kr=()=>({name:Wr,setupOnce(){Vr=Function.prototype.toString;try{Function.prototype.toString=function(...n){const t=tn(this);const e=Jr.has(ye())&&t!==undefined?t:this;return Vr.apply(e,n)}}catch(n){}},setup(n){Jr.set(n,true)}});const Zr=Mr(Kr);const Qr=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"];const no="InboundFilters";const to=(n={})=>({name:no,processEvent(t,e,r){const o=r.getOptions();const i=ro(n,o);return oo(t,i)?null:t}});const eo=Mr(to);function ro(n={},t={}){return{allowUrls:[...n.allowUrls||[],...t.allowUrls||[]],denyUrls:[...n.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...n.ignoreErrors||[],...t.ignoreErrors||[],...n.disableErrorDefaults?[]:Qr],ignoreTransactions:[...n.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:n.ignoreInternal!==undefined?n.ignoreInternal:true}}function oo(n,t){if(t.ignoreInternal&&fo(n)){Xt&&H.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${et(n)}`);return true}if(io(n,t.ignoreErrors)){Xt&&H.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${et(n)}`);return true}if(po(n)){Xt&&H.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${et(n)}`);return true}if(so(n,t.ignoreTransactions)){Xt&&H.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${et(n)}`);return true}if(co(n,t.denyUrls)){Xt&&H.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${et(n)}.\nUrl: ${ho(n)}`);return true}if(!uo(n,t.allowUrls)){Xt&&H.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${et(n)}.\nUrl: ${ho(n)}`);return true}return false}function io(n,t){if(n.type||!t||!t.length){return false}return ao(n).some((n=>x(n,t)))}function so(n,t){if(n.type!=="transaction"||!t||!t.length){return false}const e=n.transaction;return e?x(e,t):false}function co(n,t){if(!t||!t.length){return false}const e=ho(n);return!e?false:x(e,t)}function uo(n,t){if(!t||!t.length){return true}const e=ho(n);return!e?true:x(e,t)}function ao(n){const t=[];if(n.message){t.push(n.message)}let e;try{e=n.exception.values[n.exception.values.length-1]}catch(n){}if(e){if(e.value){t.push(e.value);if(e.type){t.push(`${e.type}: ${e.value}`)}}}return t}function fo(n){try{return n.exception.values[0].type==="SentryError"}catch(n){}return false}function lo(n=[]){for(let t=n.length-1;t>=0;t--){const e=n[t];if(e&&e.filename!=="<anonymous>"&&e.filename!=="[native code]"){return e.filename||null}}return null}function ho(n){try{let t;try{t=n.exception.values[0].stacktrace.frames}catch(n){}return t?lo(t):null}catch(t){Xt&&H.error(`Cannot extract url for event ${et(n)}`);return null}}function po(n){if(n.type){return false}if(!n.exception||!n.exception.values||n.exception.values.length===0){return false}return!n.message&&!n.exception.values.some((n=>n.stacktrace||n.type&&n.type!=="Error"||n.value))}const mo="Dedupe";const bo=()=>{let n;return{name:mo,processEvent(t){if(t.type){return t}try{if(_o(t,n)){Xt&&H.warn("Event dropped due to being a duplicate of previously captured event.");return null}}catch(n){}return n=t}}};const go=Mr(bo);function _o(n,t){if(!t){return false}if(yo(n,t)){return true}if(vo(n,t)){return true}return false}function yo(n,t){const e=n.message;const r=t.message;if(!e&&!r){return false}if(e&&!r||!e&&r){return false}if(e!==r){return false}if(!xo(n,t)){return false}if(!wo(n,t)){return false}return true}function vo(n,t){const e=ko(t);const r=ko(n);if(!e||!r){return false}if(e.type!==r.type||e.value!==r.value){return false}if(!xo(n,t)){return false}if(!wo(n,t)){return false}return true}function wo(n,t){let e=wn(n);let r=wn(t);if(!e&&!r){return true}if(e&&!r||!e&&r){return false}e=e;r=r;if(r.length!==e.length){return false}for(let n=0;n<r.length;n++){const t=r[n];const o=e[n];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function){return false}}return true}function xo(n,t){let e=n.fingerprint;let r=t.fingerprint;if(!e&&!r){return true}if(e&&!r||!e&&r){return false}e=e;r=r;try{return!!(e.join("")===r.join(""))}catch(n){return false}}function ko(n){return n.exception&&n.exception.values&&n.exception.values[0]}function Eo(n,t={},e=me()){const{message:r,name:o,email:i,url:s,source:c,associatedEventId:u,tags:a}=n;const f={contexts:{feedback:un({contact_email:i,name:o,message:r,url:s,source:c,associated_event_id:u})},type:"feedback",level:"info",tags:a};const l=e&&e.getClient()||ye();if(l){l.emit("beforeSendFeedback",f,t)}const d=e.captureEvent(f,t);return d}const So=T;let No=0;function $o(){return No>0}function Co(){No++;setTimeout((()=>{No--}))}function To(n,t={},e){if(typeof n!=="function"){return n}try{const t=n.__sentry_wrapped__;if(t){return t}if(tn(n)){return n}}catch(t){return n}const r=function(){const r=Array.prototype.slice.call(arguments);try{if(e&&typeof e==="function"){e.apply(this,arguments)}const o=r.map((n=>To(n,t)));return n.apply(this,o)}catch(n){Co();_e((e=>{e.addEventProcessor((n=>{if(t.mechanism){rt(n,undefined,undefined);ot(n,t.mechanism)}n.extra={...n.extra,arguments:r};return n}));pr(n)}));throw n}};try{for(const t in n){if(Object.prototype.hasOwnProperty.call(n,t)){r[t]=n[t]}}}catch(n){}nn(r,n);Q(n,"__sentry_wrapped__",r);try{const t=Object.getOwnPropertyDescriptor(r,"name");if(t.configurable){Object.defineProperty(r,"name",{get(){return n.name}})}}catch(n){}return r}const Io=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;function jo(n,t){const e=Do(n,t);const r={type:t&&t.name,value:Ao(t)};if(e.length){r.stacktrace={frames:e}}if(r.type===undefined&&r.value===""){r.value="Unrecoverable error caught"}return r}function Lo(n,t,e,r){const o=ye();const i=o&&o.getOptions().normalizeDepth;const s=Yo(t);const c={__serialized__:ut(t,i)};if(s){return{exception:{values:[jo(n,s)]},extra:c}}const u={exception:{values:[{type:d(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Ho(t,{isUnhandledRejection:r})}]},extra:c};if(e){const t=Do(n,e);if(t.length){u.exception.values[0].stacktrace={frames:t}}}return u}function Mo(n,t){return{exception:{values:[jo(n,t)]}}}function Do(n,t){const e=t.stacktrace||t.stack||"";const r=Oo(t);const o=Fo(t);try{return n(e,r,o)}catch(n){}return[]}const Ro=/Minified React error #\d+;/i;function Oo(n){if(n&&Ro.test(n.message)){return 1}return 0}function Fo(n){if(typeof n.framesToPop==="number"){return n.framesToPop}return 0}function Ao(n){const t=n&&n.message;if(!t){return"No error message"}if(t.error&&typeof t.error.message==="string"){return t.error.message}return t}function Bo(n,t,e,r){const o=e&&e.syntheticException||undefined;const i=qo(n,t,o,r);ot(i);i.level="error";if(e&&e.event_id){i.event_id=e.event_id}return mt(i)}function Po(n,t,e="info",r,o){const i=r&&r.syntheticException||undefined;const s=Uo(n,t,i,o);s.level=e;if(r&&r.event_id){s.event_id=r.event_id}return mt(s)}function qo(n,t,e,o,u){let a;if(i(t)&&t.error){const e=t;return Mo(n,e.error)}if(s(t)||c(t)){const r=t;if("stack"in t){a=Mo(n,t)}else{const t=r.name||(s(r)?"DOMError":"DOMException");const i=r.message?`${t}: ${r.message}`:t;a=Uo(n,i,e,o);rt(a,i)}if("code"in r){a.tags={...a.tags,"DOMException.code":`${r.code}`}}return a}if(r(t)){return Mo(n,t)}if(l(t)||d(t)){const r=t;a=Lo(n,r,e,u);ot(a,{synthetic:true});return a}a=Uo(n,t,e,o);rt(a,`${t}`,undefined);ot(a,{synthetic:true});return a}function Uo(n,t,e,r){const o={};if(r&&e){const r=Do(n,e);if(r.length){o.exception={values:[{value:t,stacktrace:{frames:r}}]}}}if(a(t)){const{__sentry_template_string__:n,__sentry_template_values__:e}=t;o.logentry={message:n,params:e};return o}o.message=t;return o}function Ho(n,{isUnhandledRejection:t}){const e=cn(n);const r=t?"promise rejection":"exception";if(i(n)){return`Event \`ErrorEvent\` captured as ${r} with message \`${n.message}\``}if(d(n)){const t=zo(n);return`Event \`${t}\` (type=${n.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${e}`}function zo(n){try{const t=Object.getPrototypeOf(n);return t?t.constructor.name:undefined}catch(n){}}function Yo(n){for(const t in n){if(Object.prototype.hasOwnProperty.call(n,t)){const e=n[t];if(e instanceof Error){return e}}}return undefined}function Go(n,{metadata:t,tunnel:e,dsn:r}){const o={event_id:n.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!e&&!!r&&{dsn:G(r)}};const i=Xo(n);return $t(o,[i])}function Xo(n){const t={type:"user_report"};return[t,n]}class Vo extends Rr{constructor(n){const t={parentSpanIsAlwaysRootSpan:true,...n};const e=So.SENTRY_SDK_SOURCE||Wn();Yr(t,"browser",["browser"],e);super(t);if(t.sendClientReports&&So.document){So.document.addEventListener("visibilitychange",(()=>{if(So.document.visibilityState==="hidden"){this._flushOutcomes()}}))}}eventFromException(n,t){return Bo(this._options.stackParser,n,t,this._options.attachStacktrace)}eventFromMessage(n,t="info",e){return Po(this._options.stackParser,n,t,e,this._options.attachStacktrace)}captureUserFeedback(n){if(!this._isEnabled()){Io&&H.warn("SDK not enabled, will not capture user feedback.");return}const t=Go(n,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(n,t,e){n.platform=n.platform||"javascript";return super._prepareEvent(n,t,e)}}const Wo=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;const Jo=T;const Ko=1e3;let Zo;let Qo;let ni;function ti(n){const t="dom";En(t,n);Sn(t,ei)}function ei(){if(!Jo.document){return}const n=Nn.bind(null,"dom");const t=ii(n,true);Jo.document.addEventListener("click",t,false);Jo.document.addEventListener("keypress",t,false);["EventTarget","Node"].forEach((t=>{const e=Jo[t]&&Jo[t].prototype;if(!e||!e.hasOwnProperty||!e.hasOwnProperty("addEventListener")){return}Z(e,"addEventListener",(function(t){return function(e,r,o){if(e==="click"||e=="keypress"){try{const r=this;const i=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{};const s=i[e]=i[e]||{refCount:0};if(!s.handler){const r=ii(n);s.handler=r;t.call(this,e,r,o)}s.refCount++}catch(n){}}return t.call(this,e,r,o)}}));Z(e,"removeEventListener",(function(n){return function(t,e,r){if(t==="click"||t=="keypress"){try{const e=this;const o=e.__sentry_instrumentation_handlers__||{};const i=o[t];if(i){i.refCount--;if(i.refCount<=0){n.call(this,t,i.handler,r);i.handler=undefined;delete o[t]}if(Object.keys(o).length===0){delete e.__sentry_instrumentation_handlers__}}}catch(n){}}return n.call(this,t,e,r)}}))}))}function ri(n){if(n.type!==Qo){return false}try{if(!n.target||n.target._sentryId!==ni){return false}}catch(n){}return true}function oi(n,t){if(n!=="keypress"){return false}if(!t||!t.tagName){return true}if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable){return false}return true}function ii(n,t=false){return e=>{if(!e||e["_sentryCaptured"]){return}const r=si(e);if(oi(e.type,r)){return}Q(e,"_sentryCaptured",true);if(r&&!r._sentryId){Q(r,"_sentryId",nt())}const o=e.type==="keypress"?"input":e.type;if(!ri(e)){const i={event:e,name:o,global:t};n(i);Qo=e.type;ni=r?r._sentryId:undefined}clearTimeout(Zo);Zo=Jo.setTimeout((()=>{ni=undefined;Qo=undefined}),Ko)}}function si(n){try{return n.target}catch(n){return null}}let ci;function ui(n){const t="history";En(t,n);Sn(t,ai)}function ai(){if(!Gt()){return}const n=Jo.onpopstate;Jo.onpopstate=function(...t){const e=Jo.location.href;const r=ci;ci=e;const o={from:r,to:e};Nn("history",o);if(n){try{return n.apply(this,t)}catch(n){}}};function t(n){return function(...t){const e=t.length>2?t[2]:undefined;if(e){const n=ci;const t=String(e);ci=t;const r={from:n,to:t};Nn("history",r)}return n.apply(this,t)}}Z(Jo.history,"pushState",t);Z(Jo.history,"replaceState",t)}const fi={};function li(n){const t=fi[n];if(t){return t}let e=Jo[n];if(jn(e)){return fi[n]=e.bind(Jo)}const r=Jo.document;if(r&&typeof r.createElement==="function"){try{const t=r.createElement("iframe");t.hidden=true;r.head.appendChild(t);const o=t.contentWindow;if(o&&o[n]){e=o[n]}r.head.removeChild(t)}catch(t){Wo&&H.warn(`Could not create sandbox iframe for ${n} check, bailing to window.${n}: `,t)}}if(!e){return e}return fi[n]=e.bind(Jo)}function di(n){fi[n]=undefined}const hi="__sentry_xhr_v3__";function pi(n){const t="xhr";En(t,n);Sn(t,mi)}function mi(){if(!Jo.XMLHttpRequest){return}const n=XMLHttpRequest.prototype;n.open=new Proxy(n.open,{apply(n,t,e){const r=On()*1e3;const o=u(e[0])?e[0].toUpperCase():undefined;const i=bi(e[1]);if(!o||!i){return n.apply(t,e)}t[hi]={method:o,url:i,request_headers:{}};if(o==="POST"&&i.match(/sentry_key/)){t.__sentry_own_request__=true}const s=()=>{const n=t[hi];if(!n){return}if(t.readyState===4){try{n.status_code=t.status}catch(n){}const e={endTimestamp:On()*1e3,startTimestamp:r,xhr:t};Nn("xhr",e)}};if("onreadystatechange"in t&&typeof t.onreadystatechange==="function"){t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(n,t,e){s();return n.apply(t,e)}})}else{t.addEventListener("readystatechange",s)}t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(n,t,e){const[r,o]=e;const i=t[hi];if(i&&u(r)&&u(o)){i.request_headers[r.toLowerCase()]=o}return n.apply(t,e)}});return n.apply(t,e)}});n.send=new Proxy(n.send,{apply(n,t,e){const r=t[hi];if(!r){return n.apply(t,e)}if(e[0]!==undefined){r.body=e[0]}const o={startTimestamp:On()*1e3,xhr:t};Nn("xhr",o);return n.apply(t,e)}})}function bi(n){if(u(n)){return n}try{return n.toString()}catch(n){}return undefined}function gi(n,t=li("fetch")){let e=0;let r=0;function o(o){const i=o.body.length;e+=i;r++;const s={body:o.body,method:"POST",referrerPolicy:"origin",headers:n.headers,keepalive:e<=6e4&&r<15,...n.fetchOptions};if(!t){di("fetch");return bt("No fetch implementation available")}try{return t(n.url,s).then((n=>{e-=i;r--;return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}))}catch(n){di("fetch");e-=i;r--;return bt(n)}}return Hr(n,o)}const _i=30;const yi=50;function vi(n,t,e,r){const o={filename:n,function:t==="<anonymous>"?dn:t,in_app:true};if(e!==undefined){o.lineno=e}if(r!==undefined){o.colno=r}return o}const wi=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;const xi=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;const ki=/\((\S*)(?::(\d+))(?::(\d+))\)/;const Ei=n=>{const t=wi.exec(n);if(t){const[,n,e,r]=t;return vi(n,dn,+e,+r)}const e=xi.exec(n);if(e){const n=e[2]&&e[2].indexOf("eval")===0;if(n){const n=ki.exec(e[2]);if(n){e[2]=n[1];e[3]=n[2];e[4]=n[3]}}const[t,r]=Li(e[1]||dn,e[2]);return vi(r,t,e[3]?+e[3]:undefined,e[4]?+e[4]:undefined)}return};const Si=[_i,Ei];const Ni=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;const $i=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;const Ci=n=>{const t=Ni.exec(n);if(t){const n=t[3]&&t[3].indexOf(" > eval")>-1;if(n){const n=$i.exec(t[3]);if(n){t[1]=t[1]||"eval";t[3]=n[1];t[4]=n[2];t[5]=""}}let e=t[3];let r=t[1]||dn;[r,e]=Li(r,e);return vi(e,r,t[4]?+t[4]:undefined,t[5]?+t[5]:undefined)}return};const Ti=[yi,Ci];const Ii=[Si,Ti];const ji=mn(...Ii);const Li=(n,t)=>{const e=n.indexOf("safari-extension")!==-1;const r=n.indexOf("safari-web-extension")!==-1;return e||r?[n.indexOf("@")!==-1?n.split("@")[0]:dn,e?`safari-extension:${t}`:`safari-web-extension:${t}`]:[n,t]};const Mi=1024;const Di="Breadcrumbs";const Ri=(n={})=>{const t={console:true,dom:true,fetch:true,history:true,sentry:true,xhr:true,...n};return{name:Di,setup(n){if(t.console){$n(Bi(n))}if(t.dom){ti(Ai(n,t.dom))}if(t.xhr){pi(Pi(n))}if(t.fetch){Fn(qi(n))}if(t.history){ui(Ui(n))}if(t.sentry){n.on("beforeSendEvent",Fi(n))}}}};const Oi=Mr(Ri);function Fi(n){return function t(e){if(ye()!==n){return}Xr({category:`sentry.${e.type==="transaction"?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:et(e)},{event:e})}}function Ai(n,t){return function e(r){if(ye()!==n){return}let o;let i;let s=typeof t==="object"?t.serializeAttribute:undefined;let c=typeof t==="object"&&typeof t.maxStringLength==="number"?t.maxStringLength:undefined;if(c&&c>Mi){Io&&H.warn(`\`dom.maxStringLength\` cannot exceed ${Mi}, but a value of ${c} was configured. Sentry will use ${Mi} instead.`);c=Mi}if(typeof s==="string"){s=[s]}try{const n=r.event;const t=Hi(n)?n.target:n;o=M(t,{keyAttrs:s,maxStringLength:c});i=O(t)}catch(n){o="<unknown>"}if(o.length===0){return}const u={category:`ui.${r.name}`,message:o};if(i){u.data={"ui.component_name":i}}Xr(u,{event:r.event,name:r.name,global:r.global})}}function Bi(n){return function t(e){if(ye()!==n){return}const r={category:"console",data:{arguments:e.args,logger:"console"},level:wt(e.level),message:v(e.args," ")};if(e.level==="assert"){if(e.args[0]===false){r.message=`Assertion failed: ${v(e.args.slice(1)," ")||"console.assert"}`;r.data.arguments=e.args.slice(1)}else{return}}Xr(r,{input:e.args,level:e.level})}}function Pi(n){return function t(e){if(ye()!==n){return}const{startTimestamp:r,endTimestamp:o}=e;const i=e.xhr[hi];if(!r||!o||!i){return}const{method:s,url:c,status_code:u,body:a}=i;const f={method:s,url:c,status_code:u};const l={xhr:e.xhr,input:a,startTimestamp:r,endTimestamp:o};Xr({category:"xhr",data:f,type:"http"},l)}}function qi(n){return function t(e){if(ye()!==n){return}const{startTimestamp:r,endTimestamp:o}=e;if(!o){return}if(e.fetchData.url.match(/sentry_key/)&&e.fetchData.method==="POST"){return}if(e.error){const n=e.fetchData;const t={data:e.error,input:e.args,startTimestamp:r,endTimestamp:o};Xr({category:"fetch",data:n,level:"error",type:"http"},t)}else{const n=e.response;const t={...e.fetchData,status_code:n&&n.status};const i={input:e.args,response:n,startTimestamp:r,endTimestamp:o};Xr({category:"fetch",data:t,type:"http"},i)}}}function Ui(n){return function t(e){if(ye()!==n){return}let r=e.from;let o=e.to;const i=yt(So.location.href);let s=r?yt(r):undefined;const c=yt(o);if(!s||!s.path){s=i}if(i.protocol===c.protocol&&i.host===c.host){o=c.relative}if(i.protocol===s.protocol&&i.host===s.host){r=s.relative}Xr({category:"navigation",data:{from:r,to:o}})}}function Hi(n){return!!n&&!!n.target}const zi=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];const Yi="BrowserApiErrors";const Gi=(n={})=>{const t={XMLHttpRequest:true,eventTarget:true,requestAnimationFrame:true,setInterval:true,setTimeout:true,...n};return{name:Yi,setupOnce(){if(t.setTimeout){Z(So,"setTimeout",Vi)}if(t.setInterval){Z(So,"setInterval",Vi)}if(t.requestAnimationFrame){Z(So,"requestAnimationFrame",Wi)}if(t.XMLHttpRequest&&"XMLHttpRequest"in So){Z(XMLHttpRequest.prototype,"send",Ji)}const n=t.eventTarget;if(n){const t=Array.isArray(n)?n:zi;t.forEach(Ki)}}}};const Xi=Mr(Gi);function Vi(n){return function(...t){const e=t[0];t[0]=To(e,{mechanism:{data:{function:vn(n)},handled:false,type:"instrument"}});return n.apply(this,t)}}function Wi(n){return function(t){return n.apply(this,[To(t,{mechanism:{data:{function:"requestAnimationFrame",handler:vn(n)},handled:false,type:"instrument"}})])}}function Ji(n){return function(...t){const e=this;const r=["onload","onerror","onprogress","onreadystatechange"];r.forEach((n=>{if(n in e&&typeof e[n]==="function"){Z(e,n,(function(t){const e={mechanism:{data:{function:n,handler:vn(t)},handled:false,type:"instrument"}};const r=tn(t);if(r){e.mechanism.data.handler=vn(r)}return To(t,e)}))}}));return n.apply(this,t)}}function Ki(n){const t=So;const e=t[n]&&t[n].prototype;if(!e||!e.hasOwnProperty||!e.hasOwnProperty("addEventListener")){return}Z(e,"addEventListener",(function(t){return function(e,r,o){try{if(typeof r.handleEvent==="function"){r.handleEvent=To(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:vn(r),target:n},handled:false,type:"instrument"}})}}catch(n){}return t.apply(this,[e,To(r,{mechanism:{data:{function:"addEventListener",handler:vn(r),target:n},handled:false,type:"instrument"}}),o])}}));Z(e,"removeEventListener",(function(n){return function(t,e,r){const o=e;try{const e=o&&o.__sentry_wrapped__;if(e){n.call(this,t,e,r)}}catch(n){}return n.call(this,t,o,r)}}))}const Zi="GlobalHandlers";const Qi=(n={})=>{const t={onerror:true,onunhandledrejection:true,...n};return{name:Zi,setupOnce(){Error.stackTraceLimit=50},setup(n){if(t.onerror){ts(n);ss("onerror")}if(t.onunhandledrejection){es(n);ss("onunhandledrejection")}}}};const ns=Mr(Qi);function ts(n){Hn((t=>{const{stackParser:e,attachStacktrace:r}=cs();if(ye()!==n||$o()){return}const{msg:o,url:i,line:s,column:c,error:u}=t;const a=is(qo(e,u||o,undefined,r,false),i,s,c);a.level="error";br(a,{originalException:u,mechanism:{handled:false,type:"onerror"}})}))}function es(n){Gn((t=>{const{stackParser:e,attachStacktrace:r}=cs();if(ye()!==n||$o()){return}const o=rs(t);const i=f(o)?os(o):qo(e,o,undefined,r,true);i.level="error";br(i,{originalException:o,mechanism:{handled:false,type:"onunhandledrejection"}})}))}function rs(n){if(f(n)){return n}try{if("reason"in n){return n.reason}if("detail"in n&&"reason"in n.detail){return n.detail.reason}}catch(n){}return n}function os(n){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(n)}`}]}}}function is(n,t,e,r){const o=n.exception=n.exception||{};const i=o.values=o.values||[];const s=i[0]=i[0]||{};const c=s.stacktrace=s.stacktrace||{};const a=c.frames=c.frames||[];const f=isNaN(parseInt(r,10))?undefined:r;const l=isNaN(parseInt(e,10))?undefined:e;const d=u(t)&&t.length>0?t:R();if(a.length===0){a.push({colno:f,filename:d,function:dn,in_app:true,lineno:l})}return n}function ss(n){Io&&H.log(`Global Handler attached: ${n}`)}function cs(){const n=ye();const t=n&&n.getOptions()||{stackParser:()=>[],attachStacktrace:false};return t}const us=Mr((()=>({name:"HttpContext",preprocessEvent(n){if(!So.navigator&&!So.location&&!So.document){return}const t=n.request&&n.request.url||So.location&&So.location.href;const{referrer:e}=So.document||{};const{userAgent:r}=So.navigator||{};const o={...n.request&&n.request.headers,...e&&{Referer:e},...r&&{"User-Agent":r}};const i={...n.request,...t&&{url:t},headers:o};n.request=i}})));const as="cause";const fs=5;const ls="LinkedErrors";const ds=(n={})=>{const t=n.limit||fs;const e=n.key||as;return{name:ls,preprocessEvent(n,r,o){const i=o.getOptions();k(jo,i.stackParser,i.maxValueLength,e,t,n,r)}}};const hs=Mr(ds);function ps(n){return[eo(),Zr(),Xi(),Oi(),ns(),hs(),go(),us()]}function ms(n={}){const t={defaultIntegrations:ps(),release:typeof __SENTRY_RELEASE__==="string"?__SENTRY_RELEASE__:So.SENTRY_RELEASE&&So.SENTRY_RELEASE.id?So.SENTRY_RELEASE.id:undefined,autoSessionTracking:true,sendClientReports:true};if(n.defaultIntegrations==null){delete n.defaultIntegrations}return{...t,...n}}function bs(){const n=typeof So.window!=="undefined"&&So;if(!n){return false}const t=n.chrome?"chrome":"browser";const e=n[t];const r=e&&e.runtime&&e.runtime.id;const o=So.location&&So.location.href||"";const i=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"];const s=!!r&&So===So.top&&i.some((n=>o.startsWith(`${n}//`)));const c=typeof n.nw!=="undefined";return!!r&&!s&&!c}function gs(n={}){const t=ms(n);if(bs()){q((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));return}if(Io){if(!In()){H.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.")}}const e={...t,stackParser:bn(t.stackParser||ji),integrations:Tr(t),transport:t.transport||gi};const r=Pr(Vo,e);if(t.autoSessionTracking){_s()}return r}function _s(){if(typeof So.document==="undefined"){Io&&H.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}_r({ignoreDuration:true});wr();ui((({from:n,to:t})=>{if(n!==undefined&&n!==t){_r({ignoreDuration:true});wr()}}))}const ys={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",debugIntegration:"debug",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",sessionTimingIntegration:"sessiontiming",browserProfilingIntegration:"browserprofiling"};const vs=So;async function ws(n,t){const e=ys[n];const r=vs.Sentry=vs.Sentry||{};if(!e){throw new Error(`Cannot lazy load integration: ${n}`)}const o=r[n];if(typeof o==="function"&&!("_isShim"in o)){return o}const i=xs(e);const s=So.document.createElement("script");s.src=i;s.crossOrigin="anonymous";s.referrerPolicy="origin";if(t){s.setAttribute("nonce",t)}const c=new Promise(((n,t)=>{s.addEventListener("load",(()=>n()));s.addEventListener("error",t)}));So.document.body.appendChild(s);try{await c}catch(t){throw new Error(`Error when loading integration: ${n}`)}const u=r[n];if(typeof u!=="function"){throw new Error(`Could not load integration: ${n}`)}return u}function xs(n){const t=ye();const e=t&&t.getOptions();const r=e&&e.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${C}/${n}.min.js`,r).toString()}const ks=T;const Es=ks.document;const Ss=ks.navigator;const Ns="Report a Bug";const $s="Cancel";const Cs="Send Bug Report";const Ts="Confirm";const Is="Report a Bug";const js="your.email@example.org";const Ls="Email";const Ms="What's the bug? What did you expect?";const Ds="Description";const Rs="Your Name";const Os="Name";const Fs="Thank you for your report!";const As="(required)";const Bs="Add a screenshot";const Ps="Remove screenshot";const qs="widget";const Us="api";const Hs=5e3;const zs=(n,t={includeReplay:true})=>{if(!n.message){throw new Error("Unable to submit feedback with empty message")}const e=ye();if(!e){throw new Error("No client setup, cannot send feedback.")}if(n.tags&&Object.keys(n.tags).length){me().setTags(n.tags)}const r=Eo({source:Us,url:R(),...n},t);return new Promise(((n,t)=>{const o=setTimeout((()=>t("Unable to determine if Feedback was correctly sent.")),5e3);const i=e.on("afterSendEvent",((e,s)=>{if(e.event_id!==r){return}clearTimeout(o);i();if(s&&typeof s.statusCode==="number"&&s.statusCode>=200&&s.statusCode<300){n(r)}if(s&&typeof s.statusCode==="number"&&s.statusCode===0){return t("Unable to send Feedback. This is because of network issues, or because you are using an ad-blocker.")}if(s&&typeof s.statusCode==="number"&&s.statusCode===403){return t("Unable to send Feedback. This could be because this domain is not in your list of allowed domains.")}return t("Unable to send Feedback. This could be because of network issues, or because you are using an ad-blocker")}))}))};const Ys=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;function Gs(){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Ss.userAgent)){return false}if(/Macintosh/i.test(Ss.userAgent)&&Ss.maxTouchPoints&&Ss.maxTouchPoints>1){return false}if(!isSecureContext){return false}return true}function Xs(n,t){return{...n,...t,tags:{...n.tags,...t.tags},onFormOpen:()=>{t.onFormOpen&&t.onFormOpen();n.onFormOpen&&n.onFormOpen()},onFormClose:()=>{t.onFormClose&&t.onFormClose();n.onFormClose&&n.onFormClose()},onSubmitSuccess:e=>{t.onSubmitSuccess&&t.onSubmitSuccess(e);n.onSubmitSuccess&&n.onSubmitSuccess(e)},onSubmitError:e=>{t.onSubmitError&&t.onSubmitError(e);n.onSubmitError&&n.onSubmitError(e)},onFormSubmitted:()=>{t.onFormSubmitted&&t.onFormSubmitted();n.onFormSubmitted&&n.onFormSubmitted()},themeDark:{...n.themeDark,...t.themeDark},themeLight:{...n.themeLight,...t.themeLight}}}function Vs(n){const t=Es.createElement("style");t.textContent=`\n.widget__actor {\n position: fixed;\n z-index: var(--z-index);\n margin: var(--page-margin);\n inset: var(--actor-inset);\n\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 16px;\n\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 600;\n line-height: 1.14em;\n text-decoration: none;\n\n background: var(--actor-background, var(--background));\n border-radius: var(--actor-border-radius, 1.7em/50%);\n border: var(--actor-border, var(--border));\n box-shadow: var(--actor-box-shadow, var(--box-shadow));\n color: var(--actor-color, var(--foreground));\n fill: var(--actor-color, var(--foreground));\n cursor: pointer;\n opacity: 1;\n transition: transform 0.2s ease-in-out;\n transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden="true"] {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n background: var(--actor-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n width: 1.14em;\n height: 1.14em;\n}\n\n@media (max-width: 600px) {\n .widget__actor span {\n display: none;\n }\n}\n`;if(n){t.setAttribute("nonce",n)}return t}function Ws(n,t){Object.entries(t).forEach((([t,e])=>{n.setAttributeNS(null,t,e)}));return n}const Js=20;const Ks="http://www.w3.org/2000/svg";function Zs(){const n=n=>ks.document.createElementNS(Ks,n);const t=Ws(n("svg"),{width:`${Js}`,height:`${Js}`,viewBox:`0 0 ${Js} ${Js}`,fill:"var(--foreground)"});const e=Ws(n("g"),{clipPath:"url(#clip0_57_80)"});const r=Ws(n("path"),{["fill-rule"]:"evenodd",["clip-rule"]:"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(e).appendChild(r);const o=n("defs");const i=Ws(n("clipPath"),{id:"clip0_57_80"});const s=Ws(n("rect"),{width:`${Js}`,height:`${Js}`,fill:"white"});i.appendChild(s);o.appendChild(i);t.appendChild(o).appendChild(i).appendChild(s);return t}function Qs({triggerLabel:n,triggerAriaLabel:t,shadow:e,styleNonce:r}){const o=Es.createElement("button");o.type="button";o.className="widget__actor";o.ariaHidden="false";o.ariaLabel=t||n||Ns;o.appendChild(Zs());if(n){const t=Es.createElement("span");t.appendChild(Es.createTextNode(n));o.appendChild(t)}const i=Vs(r);return{el:o,appendToDom(){e.appendChild(i);e.appendChild(o)},removeFromDom(){e.removeChild(o);e.removeChild(i)},show(){o.ariaHidden="false"},hide(){o.ariaHidden="true"}}}const nc="rgba(88, 74, 192, 1)";const tc={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:nc,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"};const ec={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:nc,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function rc(n){return`\n --foreground: ${n.foreground};\n --background: ${n.background};\n --accent-foreground: ${n.accentForeground};\n --accent-background: ${n.accentBackground};\n --success-color: ${n.successColor};\n --error-color: ${n.errorColor};\n --border: ${n.border};\n --box-shadow: ${n.boxShadow};\n --outline: ${n.outline};\n --interactive-filter: ${n.interactiveFilter};\n `}function oc({colorScheme:n,themeDark:t,themeLight:e,styleNonce:r}){const o=Es.createElement("style");o.textContent=`\n:host {\n --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n --font-size: 14px;\n --z-index: 100000;\n\n --page-margin: 16px;\n --inset: auto 0 0 auto;\n --actor-inset: var(--inset);\n\n font-family: var(--font-family);\n font-size: var(--font-size);\n\n ${n!=="system"?"color-scheme: only light;":""}\n\n ${rc(n==="dark"?{...ec,...t}:{...tc,...e})}\n}\n\n${n==="system"?`\n@media (prefers-color-scheme: dark) {\n :host {\n ${rc({...ec,...t})}\n }\n}`:""}\n}\n`;if(r){o.setAttribute("nonce",r)}return o}const ic=({lazyLoadIntegration:n,getModalIntegration:t,getScreenshotIntegration:e})=>{const r=({id:r="sentry-feedback",autoInject:o=true,showBranding:i=true,isEmailRequired:s=false,isNameRequired:c=false,showEmail:u=true,showName:a=true,enableScreenshot:f=true,useSentryUser:l={email:"email",name:"username"},tags:d,styleNonce:h,scriptNonce:p,colorScheme:m="system",themeLight:b={},themeDark:g={},addScreenshotButtonLabel:_=Bs,cancelButtonLabel:y=$s,confirmButtonLabel:v=Ts,emailLabel:w=Ls,emailPlaceholder:x=js,formTitle:k=Is,isRequiredLabel:E=As,messageLabel:S=Ds,messagePlaceholder:N=Ms,nameLabel:$=Os,namePlaceholder:C=Rs,removeScreenshotButtonLabel:T=Ps,submitButtonLabel:I=Cs,successMessageText:j=Fs,triggerLabel:L=Ns,triggerAriaLabel:M="",onFormOpen:D,onFormClose:R,onSubmitSuccess:O,onSubmitError:F,onFormSubmitted:A}={})=>{const B={id:r,autoInject:o,showBranding:i,isEmailRequired:s,isNameRequired:c,showEmail:u,showName:a,enableScreenshot:f,useSentryUser:l,tags:d,styleNonce:h,scriptNonce:p,colorScheme:m,themeDark:g,themeLight:b,triggerLabel:L,triggerAriaLabel:M,cancelButtonLabel:y,submitButtonLabel:I,confirmButtonLabel:v,formTitle:k,emailLabel:w,emailPlaceholder:x,messageLabel:S,messagePlaceholder:N,nameLabel:$,namePlaceholder:C,successMessageText:j,isRequiredLabel:E,addScreenshotButtonLabel:_,removeScreenshotButtonLabel:T,onFormClose:R,onFormOpen:D,onSubmitError:F,onSubmitSuccess:O,onFormSubmitted:A};let P=null;let q=[];const U=n=>{if(!P){const t=Es.createElement("div");t.id=String(n.id);Es.body.appendChild(t);P=t.attachShadow({mode:"open"});P.appendChild(oc(n))}return P};const z=async(t,e,r)=>{const o=ye();const i=o&&o.getIntegrationByName(t);if(i){return i}const s=e&&e()||await n(r,p);const c=s();o&&o.addIntegration(c);return c};const Y=async n=>{const r=n.enableScreenshot&&Gs();const[o,i]=await Promise.all([z("FeedbackModal",t,"feedbackModalIntegration"),r?z("FeedbackScreenshot",e,"feedbackScreenshotIntegration"):undefined]);if(!o){Ys&&H.error("[Feedback] Missing feedback modal integration. Try using `feedbackSyncIntegration` in your `Sentry.init`.");throw new Error("[Feedback] Missing feedback modal integration!")}if(r&&!i){Ys&&H.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const s=o.createDialog({options:{...n,onFormClose:()=>{s&&s.close();n.onFormClose&&n.onFormClose()},onFormSubmitted:()=>{s&&s.close();n.onFormSubmitted&&n.onFormSubmitted()}},screenshotIntegration:r?i:undefined,sendFeedback:zs,shadow:U(n)});return s};const G=(n,t={})=>{const e=Xs(B,t);const r=typeof n==="string"?Es.querySelector(n):typeof n.addEventListener==="function"?n:null;if(!r){Ys&&H.error("[Feedback] Unable to attach to target element");throw new Error("Unable to attach to target element")}let o=null;const i=async()=>{if(!o){o=await Y({...e,onFormSubmitted:()=>{o&&o.removeFromDom();e.onFormSubmitted&&e.onFormSubmitted()}})}o.appendToDom();o.open()};r.addEventListener("click",i);const s=()=>{q=q.filter((n=>n!==s));o&&o.removeFromDom();o=null;r.removeEventListener("click",i)};q.push(s);return s};const X=(n={})=>{const t=Xs(B,n);const e=U(t);const r=Qs({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:e,styleNonce:h});G(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}});return r};return{name:"Feedback",setupOnce(){if(!Kn()||!B.autoInject){return}if(Es.readyState==="loading"){Es.addEventListener("DOMContentLoaded",(()=>X().appendToDom()))}else{X().appendToDom()}},attachTo:G,createWidget(n={}){const t=X(Xs(B,n));t.appendToDom();return t},async createForm(n={}){return Y(Xs(B,n))},remove(){if(P){P.parentElement&&P.parentElement.remove();P=null}q.forEach((n=>n()));q=[]}}};return r};var sc,cc,uc,ac,fc,lc,dc,hc={},pc=[],mc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,bc=Array.isArray;function gc(n,t){for(var e in t)n[e]=t[e];return n}function _c(n){var t=n.parentNode;t&&t.removeChild(n)}function yc(n,t,e){var r,o,i,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?sc.call(arguments,2):e),"function"==typeof n&&null!=n.defaultProps)for(i in n.defaultProps)void 0===s[i]&&(s[i]=n.defaultProps[i]);return vc(n,s,r,o,null)}function vc(n,t,e,r,o){var i={type:n,props:t,key:e,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++uc:o,__i:-1,__u:0};return null==o&&null!=cc.vnode&&cc.vnode(i),i}function wc(n){return n.children}function xc(n,t){this.props=n,this.context=t}function kc(n,t){if(null==t)return n.__?kc(n.__,n.__i+1):null;for(var e;t<n.__k.length;t++)if(null!=(e=n.__k[t])&&null!=e.__e)return e.__e;return"function"==typeof n.type?kc(n):null}function Ec(n,t,e){var r,o=n.__v,i=o.__e,s=n.__P;if(s)return(r=gc({},o)).__v=o.__v+1,cc.vnode&&cc.vnode(r),Oc(s,r,o,n.__n,void 0!==s.ownerSVGElement,32&o.__u?[i]:null,t,null==i?kc(o):i,!!(32&o.__u),e),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&Sc(r),r}function Sc(n){var t,e;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,t=0;t<n.__k.length;t++)if(null!=(e=n.__k[t])&&null!=e.__e){n.__e=n.__c.base=e.__e;break}return Sc(n)}}function Nc(n){(!n.__d&&(n.__d=!0)&&ac.push(n)&&!$c.__r++||fc!==cc.debounceRendering)&&((fc=cc.debounceRendering)||lc)($c)}function $c(){var n,t,e,r=[],o=[];for(ac.sort(dc);n=ac.shift();)n.__d&&(e=ac.length,t=Ec(n,r,o)||t,0===e||ac.length>e?(Fc(r,t,o),o.length=r.length=0,t=void 0,ac.sort(dc)):t&&cc.__c&&cc.__c(t,pc));t&&Fc(r,t,o),$c.__r=0}function Cc(n,t,e,r,o,i,s,c,u,a,f){var l,d,h,p,m,b=r&&r.__k||pc,g=t.length;for(e.__d=u,Tc(e,t,b),u=e.__d,l=0;l<g;l++)null!=(h=e.__k[l])&&"boolean"!=typeof h&&"function"!=typeof h&&(d=-1===h.__i?hc:b[h.__i]||hc,h.__i=l,Oc(n,h,d,o,i,s,c,u,a,f),p=h.__e,h.ref&&d.ref!=h.ref&&(d.ref&&Bc(d.ref,null,h),f.push(h.ref,h.__c||p,h)),null==m&&null!=p&&(m=p),65536&h.__u||d.__k===h.__k?u=Ic(h,u,n):"function"==typeof h.type&&void 0!==h.__d?u=h.__d:p&&(u=p.nextSibling),h.__d=void 0,h.__u&=-196609);e.__d=u,e.__e=m}function Tc(n,t,e){var r,o,i,s,c,u=t.length,a=e.length,f=a,l=0;for(n.__k=[],r=0;r<u;r++)null!=(o=n.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?vc(null,o,null,null,o):bc(o)?vc(wc,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?vc(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=n,o.__b=n.__b+1,c=jc(o,e,s=r+l,f),o.__i=c,i=null,-1!==c&&(f--,(i=e[c])&&(i.__u|=131072)),null==i||null===i.__v?(-1==c&&l--,"function"!=typeof o.type&&(o.__u|=65536)):c!==s&&(c===s+1?l++:c>s?f>u-s?l+=c-s:l--:l=c<s&&c==s-1?c-s:0,c!==r+l&&(o.__u|=65536))):(i=e[r])&&null==i.key&&i.__e&&(i.__e==n.__d&&(n.__d=kc(i)),Pc(i,i,!1),e[r]=null,f--);if(f)for(r=0;r<a;r++)null!=(i=e[r])&&0==(131072&i.__u)&&(i.__e==n.__d&&(n.__d=kc(i)),Pc(i,i))}function Ic(n,t,e){var r,o;if("function"==typeof n.type){for(r=n.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=n,t=Ic(r[o],t,e));return t}n.__e!=t&&(e.insertBefore(n.__e,t||null),t=n.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function jc(n,t,e,r){var o=n.key,i=n.type,s=e-1,c=e+1,u=t[e];if(null===u||u&&o==u.key&&i===u.type)return e;if(r>(null!=u&&0==(131072&u.__u)?1:0))for(;s>=0||c<t.length;){if(s>=0){if((u=t[s])&&0==(131072&u.__u)&&o==u.key&&i===u.type)return s;s--}if(c<t.length){if((u=t[c])&&0==(131072&u.__u)&&o==u.key&&i===u.type)return c;c++}}return-1}function Lc(n,t,e){"-"===t[0]?n.setProperty(t,null==e?"":e):n[t]=null==e?"":"number"!=typeof e||mc.test(t)?e:e+"px"}function Mc(n,t,e,r,o){var i;n:if("style"===t)if("string"==typeof e)n.style.cssText=e;else{if("string"==typeof r&&(n.style.cssText=r=""),r)for(t in r)e&&t in e||Lc(n.style,t,"");if(e)for(t in e)r&&e[t]===r[t]||Lc(n.style,t,e[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in n?t.toLowerCase().slice(2):t.slice(2),n.l||(n.l={}),n.l[t+i]=e,e?r?e.u=r.u:(e.u=Date.now(),n.addEventListener(t,i?Rc:Dc,i)):n.removeEventListener(t,i?Rc:Dc,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in n)try{n[t]=null==e?"":e;break n}catch(n){}"function"==typeof e||(null==e||!1===e&&"-"!==t[4]?n.removeAttribute(t):n.setAttribute(t,e))}}function Dc(n){if(this.l){var t=this.l[n.type+!1];if(n.t){if(n.t<=t.u)return}else n.t=Date.now();return t(cc.event?cc.event(n):n)}}function Rc(n){if(this.l)return this.l[n.type+!0](cc.event?cc.event(n):n)}function Oc(n,t,e,r,o,i,s,c,u,a){var f,l,d,h,p,m,b,g,_,y,v,w,x,k,E,S=t.type;if(void 0!==t.constructor)return null;128&e.__u&&(u=!!(32&e.__u),i=[c=t.__e=e.__e]),(f=cc.__b)&&f(t);n:if("function"==typeof S)try{if(g=t.props,_=(f=S.contextType)&&r[f.__c],y=f?_?_.props.value:f.__:r,e.__c?b=(l=t.__c=e.__c).__=l.__E:("prototype"in S&&S.prototype.render?t.__c=l=new S(g,y):(t.__c=l=new xc(g,y),l.constructor=S,l.render=qc),_&&_.sub(l),l.props=g,l.state||(l.state={}),l.context=y,l.__n=r,d=l.__d=!0,l.__h=[],l._sb=[]),null==l.__s&&(l.__s=l.state),null!=S.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=gc({},l.__s)),gc(l.__s,S.getDerivedStateFromProps(g,l.__s))),h=l.props,p=l.state,l.__v=t,d)null==S.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==S.getDerivedStateFromProps&&g!==h&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(g,y),!l.__e&&(null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(g,l.__s,y)||t.__v===e.__v)){for(t.__v!==e.__v&&(l.props=g,l.state=l.__s,l.__d=!1),t.__e=e.__e,t.__k=e.__k,t.__k.forEach((function(n){n&&(n.__=t)})),v=0;v<l._sb.length;v++)l.__h.push(l._sb[v]);l._sb=[],l.__h.length&&s.push(l);break n}null!=l.componentWillUpdate&&l.componentWillUpdate(g,l.__s,y),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(h,p,m)}))}if(l.context=y,l.props=g,l.__P=n,l.__e=!1,w=cc.__r,x=0,"prototype"in S&&S.prototype.render){for(l.state=l.__s,l.__d=!1,w&&w(t),f=l.render(l.props,l.state,l.context),k=0;k<l._sb.length;k++)l.__h.push(l._sb[k]);l._sb=[]}else do{l.__d=!1,w&&w(t),f=l.render(l.props,l.state,l.context),l.state=l.__s}while(l.__d&&++x<25);l.state=l.__s,null!=l.getChildContext&&(r=gc(gc({},r),l.getChildContext())),d||null==l.getSnapshotBeforeUpdate||(m=l.getSnapshotBeforeUpdate(h,p)),Cc(n,bc(E=null!=f&&f.type===wc&&null==f.key?f.props.children:f)?E:[E],t,e,r,o,i,s,c,u,a),l.base=t.__e,t.__u&=-161,l.__h.length&&s.push(l),b&&(l.__E=l.__=null)}catch(n){t.__v=null,u||null!=i?(t.__e=c,t.__u|=u?160:32,i[i.indexOf(c)]=null):(t.__e=e.__e,t.__k=e.__k),cc.__e(n,t,e)}else null==i&&t.__v===e.__v?(t.__k=e.__k,t.__e=e.__e):t.__e=Ac(e.__e,t,e,r,o,i,s,u,a);(f=cc.diffed)&&f(t)}function Fc(n,t,e){for(var r=0;r<e.length;r++)Bc(e[r],e[++r],e[++r]);cc.__c&&cc.__c(t,n),n.some((function(t){try{n=t.__h,t.__h=[],n.some((function(n){n.call(t)}))}catch(n){cc.__e(n,t.__v)}}))}function Ac(n,t,e,r,o,i,s,c,u){var a,f,l,d,h,p,m,b=e.props,g=t.props,_=t.type;if("svg"===_&&(o=!0),null!=i)for(a=0;a<i.length;a++)if((h=i[a])&&"setAttribute"in h==!!_&&(_?h.localName===_:3===h.nodeType)){n=h,i[a]=null;break}if(null==n){if(null===_)return document.createTextNode(g);n=o?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,g.is&&g),i=null,c=!1}if(null===_)b===g||c&&n.data===g||(n.data=g);else{if(i=i&&sc.call(n.childNodes),b=e.props||hc,!c&&null!=i)for(b={},a=0;a<n.attributes.length;a++)b[(h=n.attributes[a]).name]=h.value;for(a in b)h=b[a],"children"==a||("dangerouslySetInnerHTML"==a?l=h:"key"===a||a in g||Mc(n,a,null,h,o));for(a in g)h=g[a],"children"==a?d=h:"dangerouslySetInnerHTML"==a?f=h:"value"==a?p=h:"checked"==a?m=h:"key"===a||c&&"function"!=typeof h||b[a]===h||Mc(n,a,h,b[a],o);if(f)c||l&&(f.__html===l.__html||f.__html===n.innerHTML)||(n.innerHTML=f.__html),t.__k=[];else if(l&&(n.innerHTML=""),Cc(n,bc(d)?d:[d],t,e,r,o&&"foreignObject"!==_,i,s,i?i[0]:e.__k&&kc(e,0),c,u),null!=i)for(a=i.length;a--;)null!=i[a]&&_c(i[a]);c||(a="value",void 0!==p&&(p!==n[a]||"progress"===_&&!p||"option"===_&&p!==b[a])&&Mc(n,a,p,b[a],!1),a="checked",void 0!==m&&m!==n[a]&&Mc(n,a,m,b[a],!1))}return n}function Bc(n,t,e){try{"function"==typeof n?n(t):n.current=t}catch(n){cc.__e(n,e)}}function Pc(n,t,e){var r,o;if(cc.unmount&&cc.unmount(n),(r=n.ref)&&(r.current&&r.current!==n.__e||Bc(r,null,t)),null!=(r=n.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(n){cc.__e(n,t)}r.base=r.__P=null,n.__c=void 0}if(r=n.__k)for(o=0;o<r.length;o++)r[o]&&Pc(r[o],t,e||"function"!=typeof n.type);e||null==n.__e||_c(n.__e),n.__=n.__e=n.__d=void 0}function qc(n,t,e){return this.constructor(n,e)}function Uc(n,t,e){var r,o,i,s;cc.__&&cc.__(n,t),o=(r="function"==typeof e)?null:e&&e.__k||t.__k,i=[],s=[],Oc(t,n=(!r&&e||t).__k=yc(wc,null,[n]),o||hc,hc,void 0!==t.ownerSVGElement,!r&&e?[e]:o?null:t.firstChild?sc.call(t.childNodes):null,i,!r&&e?e:o?o.__e:t.firstChild,r,s),n.__d=void 0,Fc(i,n,s)}sc=pc.slice,cc={__e:function(n,t,e,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(n)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(n,r||{}),s=o.__d),s)return o.__E=o}catch(t){n=t}throw n}},uc=0,xc.prototype.setState=function(n,t){var e;e=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=gc({},this.state),"function"==typeof n&&(n=n(gc({},e),this.props)),n&&gc(e,n),null!=n&&this.__v&&(t&&this._sb.push(t),Nc(this))},xc.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),Nc(this))},xc.prototype.render=wc,ac=[],lc="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,dc=function(n,t){return n.__v.__b-t.__v.__b},$c.__r=0;var Hc,zc,Yc,Gc,Xc=0,Vc=[],Wc=[],Jc=cc,Kc=Jc.__b,Zc=Jc.__r,Qc=Jc.diffed,nu=Jc.__c,tu=Jc.unmount,eu=Jc.__;function ru(n,t){Jc.__h&&Jc.__h(zc,n,Xc||t),Xc=0;var e=zc.__H||(zc.__H={__:[],__h:[]});return n>=e.__.length&&e.__.push({__V:Wc}),e.__[n]}function ou(n){return Xc=1,iu(xu,n)}function iu(n,t,e){var r=ru(Hc++,2);if(r.t=n,!r.__c&&(r.__=[e?e(t):xu(void 0,t),function(n){var t=r.__N?r.__N[0]:r.__[0],e=r.t(t,n);t!==e&&(r.__N=[e,r.__[1]],r.__c.setState({}))}],r.__c=zc,!zc.u)){var o=function(n,t,e){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(n){return!!n.__c}));if(o.every((function(n){return!n.__N})))return!i||i.call(this,n,t,e);var s=!1;return o.forEach((function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(s=!0)}})),!(!s&&r.__c.props===n)&&(!i||i.call(this,n,t,e))};zc.u=!0;var i=zc.shouldComponentUpdate,s=zc.componentWillUpdate;zc.componentWillUpdate=function(n,t,e){if(this.__e){var r=i;i=void 0,o(n,t,e),i=r}s&&s.call(this,n,t,e)},zc.shouldComponentUpdate=o}return r.__N||r.__}function su(n,t){var e=ru(Hc++,3);!Jc.__s&&wu(e.__H,t)&&(e.__=n,e.i=t,zc.__H.__h.push(e))}function cu(n,t){var e=ru(Hc++,4);!Jc.__s&&wu(e.__H,t)&&(e.__=n,e.i=t,zc.__h.push(e))}function uu(n){return Xc=5,fu((function(){return{current:n}}),[])}function au(n,t,e){Xc=6,cu((function(){return"function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0}),null==e?e:e.concat(n))}function fu(n,t){var e=ru(Hc++,7);return wu(e.__H,t)?(e.__V=n(),e.i=t,e.__h=n,e.__V):e.__}function lu(n,t){return Xc=8,fu((function(){return n}),t)}function du(n){var t=zc.context[n.__c],e=ru(Hc++,9);return e.c=n,t?(null==e.__&&(e.__=!0,t.sub(zc)),t.props.value):n.__}function hu(n,t){Jc.useDebugValue&&Jc.useDebugValue(t?t(n):n)}function pu(n){var t=ru(Hc++,10),e=ou();return t.__=n,zc.componentDidCatch||(zc.componentDidCatch=function(n,r){t.__&&t.__(n,r),e[1](n)}),[e[0],function(){e[1](void 0)}]}function mu(){var n=ru(Hc++,11);if(!n.__){for(var t=zc.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var e=t.__m||(t.__m=[0,0]);n.__="P"+e[0]+"-"+e[1]++}return n.__}function bu(){for(var n;n=Vc.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(yu),n.__H.__h.forEach(vu),n.__H.__h=[]}catch(t){n.__H.__h=[],Jc.__e(t,n.__v)}}Jc.__b=function(n){zc=null,Kc&&Kc(n)},Jc.__=function(n,t){t.__k&&t.__k.__m&&(n.__m=t.__k.__m),eu&&eu(n,t)},Jc.__r=function(n){Zc&&Zc(n),Hc=0;var t=(zc=n.__c).__H;t&&(Yc===zc?(t.__h=[],zc.__h=[],t.__.forEach((function(n){n.__N&&(n.__=n.__N),n.__V=Wc,n.__N=n.i=void 0}))):(t.__h.forEach(yu),t.__h.forEach(vu),t.__h=[],Hc=0)),Yc=zc},Jc.diffed=function(n){Qc&&Qc(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Vc.push(t)&&Gc===Jc.requestAnimationFrame||((Gc=Jc.requestAnimationFrame)||_u)(bu)),t.__H.__.forEach((function(n){n.i&&(n.__H=n.i),n.__V!==Wc&&(n.__=n.__V),n.i=void 0,n.__V=Wc}))),Yc=zc=null},Jc.__c=function(n,t){t.some((function(n){try{n.__h.forEach(yu),n.__h=n.__h.filter((function(n){return!n.__||vu(n)}))}catch(e){t.some((function(n){n.__h&&(n.__h=[])})),t=[],Jc.__e(e,n.__v)}})),nu&&nu(n,t)},Jc.unmount=function(n){tu&&tu(n);var t,e=n.__c;e&&e.__H&&(e.__H.__.forEach((function(n){try{yu(n)}catch(n){t=n}})),e.__H=void 0,t&&Jc.__e(t,e.__v))};var gu="function"==typeof requestAnimationFrame;function _u(n){var t,e=function(){clearTimeout(r),gu&&cancelAnimationFrame(t),setTimeout(n)},r=setTimeout(e,100);gu&&(t=requestAnimationFrame(e))}function yu(n){var t=zc,e=n.__c;"function"==typeof e&&(n.__c=void 0,e()),zc=t}function vu(n){var t=zc;n.__c=n.__(),zc=t}function wu(n,t){return!n||n.length!==t.length||t.some((function(t,e){return t!==n[e]}))}function xu(n,t){return"function"==typeof t?t(n):t}const ku={__proto__:null,useCallback:lu,useContext:du,useDebugValue:hu,useEffect:su,useErrorBoundary:pu,useId:mu,useImperativeHandle:au,useLayoutEffect:cu,useMemo:fu,useReducer:iu,useRef:uu,useState:ou};const Eu="http://www.w3.org/2000/svg";function Su(){const n=n=>Es.createElementNS(Eu,n);const t=Ws(n("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"});const e=Ws(n("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});t.appendChild(e);return t}const Nu="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/DialogHeader.tsx";function $u({options:n}){const t=fu((()=>({__html:Su().outerHTML})),[]);return yc("h2",{class:"dialog__header",__self:this,__source:{fileName:Nu,lineNumber:16}},n.formTitle,n.showBranding?yc("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t,__self:this,__source:{fileName:Nu,lineNumber:19}}):null)}function Cu(n,t){const e=[];if(t.isNameRequired&&!n.name){e.push(t.nameLabel)}if(t.isEmailRequired&&!n.email){e.push(t.emailLabel)}if(!n.message){e.push(t.messageLabel)}return e}const Tu="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Form.tsx";function Iu(n,t){const e=n.get(t);if(typeof e==="string"){return e.trim()}return""}function ju({options:n,defaultEmail:t,defaultName:e,onFormClose:r,onSubmit:o,onSubmitSuccess:i,onSubmitError:s,showEmail:c,showName:u,screenshotInput:a}){const{tags:f,addScreenshotButtonLabel:l,removeScreenshotButtonLabel:d,cancelButtonLabel:h,emailLabel:p,emailPlaceholder:m,isEmailRequired:b,isNameRequired:g,messageLabel:_,messagePlaceholder:y,nameLabel:v,namePlaceholder:w,submitButtonLabel:x,isRequiredLabel:k}=n;const[E,S]=ou(null);const[N,$]=ou(false);const C=a&&a.input;const[T,I]=ou(null);const j=lu((n=>{I(n);$(false)}),[]);const L=lu((n=>{const t=Cu(n,{emailLabel:p,isEmailRequired:b,isNameRequired:g,messageLabel:_,nameLabel:v});if(t.length>0){S(`Please enter in the following required fields: ${t.join(", ")}`)}else{S(null)}return t.length===0}),[p,b,g,_,v]);const M=lu((async n=>{try{n.preventDefault();if(!(n.target instanceof HTMLFormElement)){return}const t=new FormData(n.target);const e=await(a&&N?a.value():undefined);const r={name:Iu(t,"name"),email:Iu(t,"email"),message:Iu(t,"message"),attachments:e?[e]:undefined};if(!L(r)){return}try{await o({name:r.name,email:r.email,message:r.message,source:qs,tags:f},{attachments:r.attachments});i(r)}catch(n){Ys&&H.error(n);S(n);s(n)}}catch(n){}}),[a&&N,i,s]);return yc("form",{class:"form",onSubmit:M,__self:this,__source:{fileName:Tu,lineNumber:144}},C&&N?yc(C,{onError:j,__self:this,__source:{fileName:Tu,lineNumber:146}}):null,yc("div",{class:"form__right","data-sentry-feedback":true,__self:this,__source:{fileName:Tu,lineNumber:149}},yc("div",{class:"form__top",__self:this,__source:{fileName:Tu,lineNumber:150}},E?yc("div",{class:"form__error-container",__self:this,__source:{fileName:Tu,lineNumber:151}},E):null,u?yc("label",{for:"name",class:"form__label",__self:this,__source:{fileName:Tu,lineNumber:154}},yc(Lu,{label:v,isRequiredLabel:k,isRequired:g,__self:this,__source:{fileName:Tu,lineNumber:155}}),yc("input",{class:"form__input",defaultValue:e,id:"name",name:"name",placeholder:w,required:g,type:"text",__self:this,__source:{fileName:Tu,lineNumber:156}})):yc("input",{"aria-hidden":true,value:e,name:"name",type:"hidden",__self:this,__source:{fileName:Tu,lineNumber:167}}),c?yc("label",{for:"email",class:"form__label",__self:this,__source:{fileName:Tu,lineNumber:171}},yc(Lu,{label:p,isRequiredLabel:k,isRequired:b,__self:this,__source:{fileName:Tu,lineNumber:172}}),yc("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:b,type:"email",__self:this,__source:{fileName:Tu,lineNumber:173}})):yc("input",{"aria-hidden":true,value:t,name:"email",type:"hidden",__self:this,__source:{fileName:Tu,lineNumber:184}}),yc("label",{for:"message",class:"form__label",__self:this,__source:{fileName:Tu,lineNumber:187}},yc(Lu,{label:_,isRequiredLabel:k,isRequired:true,__self:this,__source:{fileName:Tu,lineNumber:188}}),yc("textarea",{autoFocus:true,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:y,required:true,rows:5,__self:this,__source:{fileName:Tu,lineNumber:189}})),C?yc("label",{for:"screenshot",class:"form__label",__self:this,__source:{fileName:Tu,lineNumber:201}},yc("button",{class:"btn btn--default",type:"button",onClick:()=>{I(null);$((n=>!n))},__self:this,__source:{fileName:Tu,lineNumber:202}},N?d:l),T?yc("div",{class:"form__error-container",__self:this,__source:{fileName:Tu,lineNumber:212}},T.message):null):null),yc("div",{class:"btn-group",__self:this,__source:{fileName:Tu,lineNumber:216}},yc("button",{class:"btn btn--primary",type:"submit",__self:this,__source:{fileName:Tu,lineNumber:217}},x),yc("button",{class:"btn btn--default",type:"button",onClick:r,__self:this,__source:{fileName:Tu,lineNumber:220}},h))))}function Lu({label:n,isRequired:t,isRequiredLabel:e}){return yc("span",{class:"form__label__text",__self:this,__source:{fileName:Tu,lineNumber:239}},n,t&&yc("span",{class:"form__label__text--required",__self:this,__source:{fileName:Tu,lineNumber:241}},e))}const Mu=16;const Du=17;const Ru="http://www.w3.org/2000/svg";function Ou(){const n=n=>ks.document.createElementNS(Ru,n);const t=Ws(n("svg"),{width:`${Mu}`,height:`${Du}`,viewBox:`0 0 ${Mu} ${Du}`,fill:"inherit"});const e=Ws(n("g"),{clipPath:"url(#clip0_57_156)"});const r=Ws(n("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"});const o=Ws(n("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(e).append(o,r);const i=n("defs");const s=Ws(n("clipPath"),{id:"clip0_57_156"});const c=Ws(n("rect"),{width:`${Mu}`,height:`${Mu}`,fill:"white",transform:"translate(0 0.5)"});s.appendChild(c);i.appendChild(s);t.appendChild(i).appendChild(s).appendChild(c);return t}const Fu="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Dialog.tsx";function Au({open:n,onFormSubmitted:t,...e}){const r=e.options;const o=fu((()=>({__html:Ou().outerHTML})),[]);const[i,s]=ou(null);const c=lu((()=>{if(i){clearTimeout(i);s(null)}t()}),[i]);const u=lu((n=>{e.onSubmitSuccess(n);s(setTimeout((()=>{t();s(null)}),Hs))}),[t]);return yc(wc,{__self:this,__source:{fileName:Fu,lineNumber:48}},i?yc("div",{class:"success__position",onClick:c,__self:this,__source:{fileName:Fu,lineNumber:50}},yc("div",{class:"success__content",__self:this,__source:{fileName:Fu,lineNumber:51}},r.successMessageText,yc("span",{class:"success__icon",dangerouslySetInnerHTML:o,__self:this,__source:{fileName:Fu,lineNumber:53}}))):yc("dialog",{class:"dialog",onClick:r.onFormClose,open:n,__self:this,__source:{fileName:Fu,lineNumber:57}},yc("div",{class:"dialog__position",__self:this,__source:{fileName:Fu,lineNumber:58}},yc("div",{class:"dialog__content",onClick:n=>{n.stopPropagation()},__self:this,__source:{fileName:Fu,lineNumber:59}},yc($u,{options:r,__self:this,__source:{fileName:Fu,lineNumber:66}}),yc(ju,{...e,onSubmitSuccess:u,__self:this,__source:{fileName:Fu,lineNumber:67}})))))}const Bu=`\n.dialog {\n position: fixed;\n z-index: var(--z-index);\n margin: 0;\n inset: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n height: 100vh;\n width: 100vw;\n\n color: var(--dialog-color, var(--foreground));\n fill: var(--dialog-color, var(--foreground));\n line-height: 1.75em;\n\n background-color: rgba(0, 0, 0, 0.05);\n border: none;\n inset: 0;\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n position: fixed;\n z-index: var(--z-index);\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n display: flex;\n max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n .dialog__position {\n inset: var(--page-margin);\n padding: 0;\n }\n}\n\n.dialog__position:has(.editor) {\n inset: var(--page-margin);\n padding: 0;\n}\n\n.dialog:not([open]) {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n padding: var(--dialog-padding, 24px);\n max-width: 100%;\n width: 100%;\n max-height: 100%;\n overflow: auto;\n\n background: var(--dialog-background, var(--background));\n border-radius: var(--dialog-border-radius, 20px);\n border: var(--dialog-border, var(--border));\n box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n transform: translate(0, 0) scale(1);\n transition: transform 0.2s ease-in-out;\n}\n`;const Pu=`\n.dialog__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-weight: var(--dialog-header-weight, 600);\n margin: 0;\n}\n\n.brand-link {\n display: inline-flex;\n}\n.brand-link:focus-visible {\n outline: var(--outline);\n}\n`;const qu=`\n.form {\n display: flex;\n overflow: auto;\n flex-direction: row;\n gap: 16px;\n flex: 1 0;\n}\n\n.form__right {\n flex: 0 0 var(--form-width, 272px);\n width: var(--form-width, 272px);\n display: flex;\n overflow: auto;\n flex-direction: column;\n justify-content: space-between;\n gap: 20px;\n}\n\n@media (max-width: 600px) {\n .form__right {\n width: auto;\n }\n}\n\n.form__top {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.form__error-container {\n color: var(--error-color);\n fill: var(--error-color);\n}\n\n.form__label {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin: 0px;\n}\n\n.form__label__text {\n display: flex;\n gap: 4px;\n align-items: center;\n}\n\n.form__label__text--required {\n font-size: 0.85em;\n}\n\n.form__input {\n font-family: inherit;\n line-height: inherit;\n background: transparent;\n box-sizing: border-box;\n border: var(--input-border, var(--border));\n border-radius: var(--input-border-radius, 6px);\n color: var(--input-color, inherit);\n fill: var(--input-color, inherit);\n font-size: var(--input-font-size, inherit);\n font-weight: var(--input-font-weight, 500);\n padding: 6px 12px;\n}\n\n.form__input::placeholder {\n opacity: 0.65;\n color: var(--input-placeholder-color, inherit);\n filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n font-family: inherit;\n resize: vertical;\n}\n\n.error {\n color: var(--error-color);\n fill: var(--error-color);\n}\n`;const Uu=`\n.btn-group {\n display: grid;\n gap: 8px;\n}\n\n.btn {\n line-height: inherit;\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n cursor: pointer;\n font-family: inherit;\n font-size: var(--button-font-size, inherit);\n font-weight: var(--button-font-weight, 600);\n padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n opacity: 0.6;\n pointer-events: none;\n}\n\n.btn--primary {\n color: var(--button-primary-color, var(--accent-foreground));\n fill: var(--button-primary-color, var(--accent-foreground));\n background: var(--button-primary-background, var(--accent-background));\n border: var(--button-primary-border, var(--border));\n border-radius: var(--button-primary-border-radius, 6px);\n font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n color: var(--button-primary-hover-color, var(--accent-foreground));\n fill: var(--button-primary-hover-color, var(--accent-foreground));\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-background, var(--background));\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n outline: var(--button-focus-outline, var(--outline));\n}\n`;const Hu=`\n.success__position {\n position: fixed;\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n z-index: var(--z-index);\n}\n.success__content {\n background: var(--success-background, var(--background));\n border: var(--success-border, var(--border));\n border-radius: var(--success-border-radius, 1.7em/50%);\n box-shadow: var(--success-box-shadow, var(--box-shadow));\n font-weight: var(--success-font-weight, 600);\n color: var(--success-color);\n fill: var(--success-color);\n padding: 12px 24px;\n line-height: 1.75em;\n\n display: grid;\n align-items: center;\n grid-auto-flow: column;\n gap: 6px;\n cursor: default;\n}\n\n.success__icon {\n display: flex;\n}\n`;function zu(n){const t=Es.createElement("style");t.textContent=`\n:host {\n --dialog-inset: var(--inset);\n}\n\n${Bu}\n${Pu}\n${qu}\n${Uu}\n${Hu}\n`;if(n){t.setAttribute("nonce",n)}return t}const Yu="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/integration.tsx";function Gu(){const n=me().getUser();const t=be().getUser();const e=ge().getUser();if(n&&Object.keys(n).length){return n}if(t&&Object.keys(t).length){return t}return e}const Xu=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:n,screenshotIntegration:t,sendFeedback:e,shadow:r})=>{const o=r;const i=n.useSentryUser;const s=Gu();const c=Es.createElement("div");const u=zu(n.styleNonce);let a="";const f={get el(){return c},appendToDom(){if(!o.contains(u)&&!o.contains(c)){o.appendChild(u);o.appendChild(c)}},removeFromDom(){o.removeChild(c);o.removeChild(u);Es.body.style.overflow=a},open(){d(true);n.onFormOpen&&n.onFormOpen();a=Es.body.style.overflow;Es.body.style.overflow="hidden"},close(){d(false);Es.body.style.overflow=a}};const l=t&&t.createInput({h:yc,hooks:ku,dialog:f,options:n});const d=t=>{Uc(yc(Au,{options:n,screenshotInput:l,showName:n.showName||n.isNameRequired,showEmail:n.showEmail||n.isEmailRequired,defaultName:i&&s&&s[i.name]||"",defaultEmail:i&&s&&s[i.email]||"",onFormClose:()=>{d(false);n.onFormClose&&n.onFormClose()},onSubmit:e,onSubmitSuccess:t=>{d(false);n.onSubmitSuccess&&n.onSubmitSuccess(t)},onSubmitError:t=>{n.onSubmitError&&n.onSubmitError(t)},onFormSubmitted:()=>{n.onFormSubmitted&&n.onFormSubmitted()},open:t,__self:undefined,__source:{fileName:Yu,lineNumber:67}}),c)};return f}});const Vu="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/CropCorner.tsx";function Wu({h:n}){return function t({top:e,left:r,corner:o,onGrabButton:i}){return n("button",{class:`editor__crop-corner editor__crop-corner--${o} `,style:{top:e,left:r},onMouseDown:n=>{n.preventDefault();i(n,o)},onClick:n=>{n.preventDefault()},__self:this,__source:{fileName:Vu,lineNumber:22}})}}function Ju(n){const t=Es.createElement("style");const e="#1A141F";const r="#302735";t.textContent=`\n.editor {\n padding: 10px;\n padding-top: 65px;\n padding-bottom: 65px;\n flex-grow: 1;\n\n background-color: ${e};\n background-image: repeating-linear-gradient(\n -145deg,\n transparent,\n transparent 8px,\n ${e} 8px,\n ${e} 11px\n ),\n repeating-linear-gradient(\n -45deg,\n transparent,\n transparent 15px,\n ${r} 15px,\n ${r} 16px\n );\n}\n\n.editor__canvas-container {\n width: 100%;\n height: 100%;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.editor__canvas-container canvas {\n object-fit: contain;\n position: relative;\n}\n\n.editor__crop-btn-group {\n padding: 8px;\n gap: 8px;\n border-radius: var(--menu-border-radius, 6px);\n background: var(--button-primary-background, var(--background));\n width: 175px;\n position: absolute;\n}\n\n.editor__crop-corner {\n width: 30px;\n height: 30px;\n position: absolute;\n background: none;\n border: 3px solid #ffffff;\n}\n\n.editor__crop-corner--top-left {\n cursor: nwse-resize;\n border-right: none;\n border-bottom: none;\n}\n.editor__crop-corner--top-right {\n cursor: nesw-resize;\n border-left: none;\n border-bottom: none;\n}\n.editor__crop-corner--bottom-left {\n cursor: nesw-resize;\n border-right: none;\n border-top: none;\n}\n.editor__crop-corner--bottom-right {\n cursor: nwse-resize;\n border-left: none;\n border-top: none;\n}\n`;if(n){t.setAttribute("nonce",n)}return t}function Ku({hooks:n}){return function t({onBeforeScreenshot:e,onScreenshot:r,onAfterScreenshot:o,onError:i}){n.useEffect((()=>{const n=async()=>{e();const n=await Ss.mediaDevices.getDisplayMedia({video:{width:ks.innerWidth*ks.devicePixelRatio,height:ks.innerHeight*ks.devicePixelRatio},audio:false,monitorTypeSurfaces:"exclude",preferCurrentTab:true,selfBrowserSurface:"include",surfaceSwitching:"exclude"});const t=Es.createElement("video");await new Promise(((e,o)=>{t.srcObject=n;t.onloadedmetadata=()=>{r(t);n.getTracks().forEach((n=>n.stop()));e()};t.play().catch(o)}));o()};n().catch(i)}),[])}}const Zu="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/ScreenshotEditor.tsx";const Qu=30;const na=3;const ta=Qu+na;const ea=ks.devicePixelRatio;const ra=n=>({x:Math.min(n.startX,n.endX),y:Math.min(n.startY,n.endY),width:Math.abs(n.startX-n.endX),height:Math.abs(n.startY-n.endY)});const oa=n=>{const t=n.clientHeight;const e=n.clientWidth;const r=n.width/n.height;let o=t*r;let i=t;if(o>e){o=e;i=e/r}const s=(e-o)/2;const c=(t-i)/2;return{startX:s,startY:c,endX:o+s,endY:i+c}};function ia({h:n,hooks:t,imageBuffer:e,dialog:r,options:o}){const i=Ku({hooks:t});return function s({onError:c}){const u=t.useMemo((()=>({__html:Ju(o.styleNonce).innerText})),[]);const a=Wu({h:n});const f=t.useRef(null);const l=t.useRef(null);const d=t.useRef(null);const[h,p]=t.useState({startX:0,startY:0,endX:0,endY:0});const[m,b]=t.useState(false);const[g,_]=t.useState(false);t.useEffect((()=>{ks.addEventListener("resize",y,false)}),[]);function y(){const n=d.current;const t=ra(oa(e));if(n){n.width=t.width*ea;n.height=t.height*ea;n.style.width=`${t.width}px`;n.style.height=`${t.height}px`;const e=n.getContext("2d");if(e){e.scale(ea,ea)}}const r=l.current;if(r){r.style.width=`${t.width}px`;r.style.height=`${t.height}px`}p({startX:0,startY:0,endX:t.width,endY:t.height})}t.useEffect((()=>{const n=d.current;if(!n){return}const t=n.getContext("2d");if(!t){return}const r=ra(oa(e));const o=ra(h);t.clearRect(0,0,r.width,r.height);t.fillStyle="rgba(0, 0, 0, 0.5)";t.fillRect(0,0,r.width,r.height);t.clearRect(o.x,o.y,o.width,o.height);t.strokeStyle="#ffffff";t.lineWidth=3;t.strokeRect(o.x+1,o.y+1,o.width-2,o.height-2);t.strokeStyle="#000000";t.lineWidth=1;t.strokeRect(o.x+3,o.y+3,o.width-6,o.height-6)}),[h]);function v(n,t){b(false);_(true);const e=w(t);const r=()=>{Es.removeEventListener("mousemove",e);Es.removeEventListener("mouseup",r);b(true);_(false)};Es.addEventListener("mouseup",r);Es.addEventListener("mousemove",e)}const w=t.useCallback((n=>function(t){if(!d.current){return}const e=d.current;const r=e.getBoundingClientRect();const o=t.clientX-r.x;const i=t.clientY-r.y;switch(n){case"top-left":p((n=>({...n,startX:Math.min(Math.max(0,o),n.endX-ta),startY:Math.min(Math.max(0,i),n.endY-ta)})));break;case"top-right":p((n=>({...n,endX:Math.max(Math.min(o,e.width/ea),n.startX+ta),startY:Math.min(Math.max(0,i),n.endY-ta)})));break;case"bottom-left":p((n=>({...n,startX:Math.min(Math.max(0,o),n.endX-ta),endY:Math.max(Math.min(i,e.height/ea),n.startY+ta)})));break;case"bottom-right":p((n=>({...n,endX:Math.max(Math.min(o,e.width/ea),n.startX+ta),endY:Math.max(Math.min(i,e.height/ea),n.startY+ta)})));break}}),[]);const x=t.useRef({initialX:0,initialY:0});function k(n){if(g)return;x.current={initialX:n.clientX,initialY:n.clientY};const t=n=>{const t=d.current;if(!t)return;const e=n.clientX-x.current.initialX;const r=n.clientY-x.current.initialY;p((o=>{const i=Math.max(0,Math.min(o.startX+e,t.width/ea-(o.endX-o.startX)));const s=Math.max(0,Math.min(o.startY+r,t.height/ea-(o.endY-o.startY)));const c=i+(o.endX-o.startX);const u=s+(o.endY-o.startY);x.current.initialX=n.clientX;x.current.initialY=n.clientY;return{startX:i,startY:s,endX:c,endY:u}}))};const e=()=>{Es.removeEventListener("mousemove",t);Es.removeEventListener("mouseup",e)};Es.addEventListener("mousemove",t);Es.addEventListener("mouseup",e)}function E(){const n=Es.createElement("canvas");const t=ra(oa(e));const r=ra(h);n.width=r.width*ea;n.height=r.height*ea;const o=n.getContext("2d");if(o&&e){o.drawImage(e,r.x/t.width*e.width,r.y/t.height*e.height,r.width/t.width*e.width,r.height/t.height*e.height,0,0,n.width,n.height)}const i=e.getContext("2d");if(i){i.clearRect(0,0,e.width,e.height);e.width=n.width;e.height=n.height;e.style.width=`${r.width}px`;e.style.height=`${r.height}px`;i.drawImage(n,0,0);y()}}i({onBeforeScreenshot:t.useCallback((()=>{r.el.style.display="none"}),[]),onScreenshot:t.useCallback((n=>{const t=e.getContext("2d");if(!t){throw new Error("Could not get canvas context")}e.width=n.videoWidth;e.height=n.videoHeight;e.style.width="100%";e.style.height="100%";t.drawImage(n,0,0)}),[e]),onAfterScreenshot:t.useCallback((()=>{r.el.style.display="block";const n=f.current;n&&n.appendChild(e);y()}),[]),onError:t.useCallback((n=>{r.el.style.display="block";c(n)}),[])});return n("div",{class:"editor",__self:this,__source:{fileName:Zu,lineNumber:315}},n("style",{nonce:o.styleNonce,dangerouslySetInnerHTML:u,__self:this,__source:{fileName:Zu,lineNumber:316}}),n("div",{class:"editor__canvas-container",ref:f,__self:this,__source:{fileName:Zu,lineNumber:317}},n("div",{class:"editor__crop-container",style:{position:"absolute",zIndex:1},ref:l,__self:this,__source:{fileName:Zu,lineNumber:318}},n("canvas",{onMouseDown:k,style:{position:"absolute",cursor:m?"move":"auto"},ref:d,__self:this,__source:{fileName:Zu,lineNumber:319}}),n(a,{left:h.startX-na,top:h.startY-na,onGrabButton:v,corner:"top-left",__self:this,__source:{fileName:Zu,lineNumber:324}}),n(a,{left:h.endX-Qu+na,top:h.startY-na,onGrabButton:v,corner:"top-right",__self:this,__source:{fileName:Zu,lineNumber:330}}),n(a,{left:h.startX-na,top:h.endY-Qu+na,onGrabButton:v,corner:"bottom-left",__self:this,__source:{fileName:Zu,lineNumber:336}}),n(a,{left:h.endX-Qu+na,top:h.endY-Qu+na,onGrabButton:v,corner:"bottom-right",__self:this,__source:{fileName:Zu,lineNumber:342}}),n("div",{style:{left:Math.max(0,h.endX-191),top:Math.max(0,h.endY+8),display:m?"flex":"none"},class:"editor__crop-btn-group",__self:this,__source:{fileName:Zu,lineNumber:348}},n("button",{onClick:n=>{n.preventDefault();if(d.current){p({startX:0,startY:0,endX:d.current.width/ea,endY:d.current.height/ea})}b(false)},class:"btn btn--default",__self:this,__source:{fileName:Zu,lineNumber:356}},o.cancelButtonLabel),n("button",{onClick:n=>{n.preventDefault();E();b(false)},class:"btn btn--primary",__self:this,__source:{fileName:Zu,lineNumber:373}},o.confirmButtonLabel)))))}}const sa=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:n,hooks:t,dialog:e,options:r})=>{const o=Es.createElement("canvas");return{input:ia({h:n,hooks:t,imageBuffer:o,dialog:e,options:r}),value:async()=>{const n=await new Promise((n=>{o.toBlob(n,"image/png")}));if(n){const t=new Uint8Array(await n.arrayBuffer());const e={data:t,filename:"screenshot.png",contentType:"application/png"};return e}return undefined}}}});const ca=ic({lazyLoadIntegration:ws,getModalIntegration:()=>Xu,getScreenshotIntegration:()=>sa});export{gs as a,Eo as b,mr as c,ca as f,gr as i};
2
- //# sourceMappingURL=p-cf650f4f.js.map
1
+ import{p as n,g as t}from"./p-6b7fb948.js";const e=Object.prototype.toString;function r(n){switch(e.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return true;default:return g(n,Error)}}function o(n,t){return e.call(n)===`[object ${t}]`}function i(n){return o(n,"ErrorEvent")}function s(n){return o(n,"DOMError")}function c(n){return o(n,"DOMException")}function u(n){return o(n,"String")}function a(n){return typeof n==="object"&&n!==null&&"__sentry_template_string__"in n&&"__sentry_template_values__"in n}function f(n){return n===null||a(n)||typeof n!=="object"&&typeof n!=="function"}function l(n){return o(n,"Object")}function d(n){return typeof Event!=="undefined"&&g(n,Event)}function h(n){return typeof Element!=="undefined"&&g(n,Element)}function p(n){return o(n,"RegExp")}function m(n){return Boolean(n&&n.then&&typeof n.then==="function")}function b(n){return l(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n}function g(n,t){try{return n instanceof t}catch(n){return false}}function _(n){return!!(typeof n==="object"&&n!==null&&(n.__isVue||n._isVue))}function y(n,t=0){if(typeof n!=="string"||t===0){return n}return n.length<=t?n:`${n.slice(0,t)}...`}function v(n,t){if(!Array.isArray(n)){return""}const e=[];for(let t=0;t<n.length;t++){const r=n[t];try{if(_(r)){e.push("[VueViewModel]")}else{e.push(String(r))}}catch(n){e.push("[value cannot be serialized]")}}return e.join(t)}function w(n,t,e=false){if(!u(n)){return false}if(p(t)){return t.test(n)}if(u(t)){return e?n===t:n.includes(t)}return false}function x(n,t=[],e=false){return t.some((t=>w(n,t,e)))}function k(n,t,e=250,r,o,i,s){if(!i.exception||!i.exception.values||!s||!g(s.originalException,Error)){return}const c=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:undefined;if(c){i.exception.values=$(E(n,t,o,s.originalException,r,i.exception.values,c,0),e)}}function E(n,t,e,r,o,i,s,c){if(i.length>=e+1){return i}let u=[...i];if(g(r[o],Error)){S(s,c);const i=n(t,r[o]);const a=u.length;N(i,o,a,c);u=E(n,t,e,r[o],o,[i,...u],i,a)}if(Array.isArray(r.errors)){r.errors.forEach(((r,i)=>{if(g(r,Error)){S(s,c);const a=n(t,r);const f=u.length;N(a,`errors[${i}]`,f,c);u=E(n,t,e,r,o,[a,...u],a,f)}}))}return u}function S(n,t){n.mechanism=n.mechanism||{type:"generic",handled:true};n.mechanism={...n.mechanism,...n.type==="AggregateError"&&{is_exception_group:true},exception_id:t}}function N(n,t,e,r){n.mechanism=n.mechanism||{type:"generic",handled:true};n.mechanism={...n.mechanism,type:"chained",source:t,exception_id:e,parent_id:r}}function $(n,t){return n.map((n=>{if(n.value){n.value=y(n.value,t)}return n}))}const C="8.28.0";const T=globalThis;function I(n,t,e){const r=e||T;const o=r.__SENTRY__=r.__SENTRY__||{};const i=o[C]=o[C]||{};return i[n]||(i[n]=t())}const j=T;const L=80;function M(n,t={}){if(!n){return"<unknown>"}try{let e=n;const r=5;const o=[];let i=0;let s=0;const c=" > ";const u=c.length;let a;const f=Array.isArray(t)?t:t.keyAttrs;const l=!Array.isArray(t)&&t.maxStringLength||L;while(e&&i++<r){a=D(e,f);if(a==="html"||i>1&&s+o.length*u+a.length>=l){break}o.push(a);s+=a.length;e=e.parentNode}return o.reverse().join(c)}catch(n){return"<unknown>"}}function D(n,t){const e=n;const r=[];if(!e||!e.tagName){return""}if(j.HTMLElement){if(e instanceof HTMLElement&&e.dataset){if(e.dataset["sentryComponent"]){return e.dataset["sentryComponent"]}if(e.dataset["sentryElement"]){return e.dataset["sentryElement"]}}}r.push(e.tagName.toLowerCase());const o=t&&t.length?t.filter((n=>e.getAttribute(n))).map((n=>[n,e.getAttribute(n)])):null;if(o&&o.length){o.forEach((n=>{r.push(`[${n[0]}="${n[1]}"]`)}))}else{if(e.id){r.push(`#${e.id}`)}const n=e.className;if(n&&u(n)){const t=n.split(/\s+/);for(const n of t){r.push(`.${n}`)}}}const i=["aria-label","type","name","title","alt"];for(const n of i){const t=e.getAttribute(n);if(t){r.push(`[${n}="${t}"]`)}}return r.join("")}function R(){try{return j.document.location.href}catch(n){return""}}function O(n){if(!j.HTMLElement){return null}let t=n;const e=5;for(let n=0;n<e;n++){if(!t){return null}if(t instanceof HTMLElement){if(t.dataset["sentryComponent"]){return t.dataset["sentryComponent"]}if(t.dataset["sentryElement"]){return t.dataset["sentryElement"]}}t=t.parentNode}return null}const F=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;const A="Sentry Logger ";const B=["debug","info","warn","error","log","assert","trace"];const P={};function q(n){if(!("console"in T)){return n()}const t=T.console;const e={};const r=Object.keys(P);r.forEach((n=>{const r=P[n];e[n]=t[n];t[n]=r}));try{return n()}finally{r.forEach((n=>{t[n]=e[n]}))}}function U(){let n=false;const t={enable:()=>{n=true},disable:()=>{n=false},isEnabled:()=>n};if(F){B.forEach((e=>{t[e]=(...t)=>{if(n){q((()=>{T.console[e](`${A}[${e}]:`,...t)}))}}}))}else{B.forEach((n=>{t[n]=()=>undefined}))}return t}const H=U();const z=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Y(n){return n==="http"||n==="https"}function G(n,t=false){const{host:e,path:r,pass:o,port:i,projectId:s,protocol:c,publicKey:u}=n;return`${c}://${u}${t&&o?`:${o}`:""}`+`@${e}${i?`:${i}`:""}/${r?`${r}/`:r}${s}`}function X(n){const t=z.exec(n);if(!t){q((()=>{console.error(`Invalid Sentry Dsn: ${n}`)}));return undefined}const[e,r,o="",i="",s="",c=""]=t.slice(1);let u="";let a=c;const f=a.split("/");if(f.length>1){u=f.slice(0,-1).join("/");a=f.pop()}if(a){const n=a.match(/^\d+/);if(n){a=n[0]}}return V({host:i,pass:o,path:u,projectId:a,port:s,protocol:e,publicKey:r})}function V(n){return{protocol:n.protocol,publicKey:n.publicKey||"",pass:n.pass||"",host:n.host,port:n.port||"",path:n.path||"",projectId:n.projectId}}function W(n){if(!F){return true}const{port:t,projectId:e,protocol:r}=n;const o=["protocol","publicKey","host","projectId"];const i=o.find((t=>{if(!n[t]){H.error(`Invalid Sentry Dsn: ${t} missing`);return true}return false}));if(i){return false}if(!e.match(/^\d+$/)){H.error(`Invalid Sentry Dsn: Invalid projectId ${e}`);return false}if(!Y(r)){H.error(`Invalid Sentry Dsn: Invalid protocol ${r}`);return false}if(t&&isNaN(parseInt(t,10))){H.error(`Invalid Sentry Dsn: Invalid port ${t}`);return false}return true}function J(n){const t=typeof n==="string"?X(n):V(n);if(!t||!W(t)){return undefined}return t}class K extends Error{constructor(n,t="warn"){super(n);this.message=n;this.name=new.target.prototype.constructor.name;Object.setPrototypeOf(this,new.target.prototype);this.logLevel=t}}function Z(n,t,e){if(!(t in n)){return}const r=n[t];const o=e(r);if(typeof o==="function"){nn(o,r)}n[t]=o}function Q(n,t,e){try{Object.defineProperty(n,t,{value:e,writable:true,configurable:true})}catch(e){F&&H.log(`Failed to add non-enumerable property "${t}" to object`,n)}}function nn(n,t){try{const e=t.prototype||{};n.prototype=t.prototype=e;Q(n,"__sentry_original__",t)}catch(n){}}function tn(n){return n.__sentry_original__}function en(n){return Object.keys(n).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(n[t])}`)).join("&")}function rn(n){if(r(n)){return{message:n.message,name:n.name,stack:n.stack,...sn(n)}}else if(d(n)){const t={type:n.type,target:on(n.target),currentTarget:on(n.currentTarget),...sn(n)};if(typeof CustomEvent!=="undefined"&&g(n,CustomEvent)){t.detail=n.detail}return t}else{return n}}function on(n){try{return h(n)?M(n):Object.prototype.toString.call(n)}catch(n){return"<unknown>"}}function sn(n){if(typeof n==="object"&&n!==null){const t={};for(const e in n){if(Object.prototype.hasOwnProperty.call(n,e)){t[e]=n[e]}}return t}else{return{}}}function cn(n,t=40){const e=Object.keys(rn(n));e.sort();const r=e[0];if(!r){return"[object has no keys]"}if(r.length>=t){return y(r,t)}for(let n=e.length;n>0;n--){const r=e.slice(0,n).join(", ");if(r.length>t){continue}if(n===e.length){return r}return y(r,t)}return""}function un(n){const t=new Map;return an(n,t)}function an(n,t){if(fn(n)){const e=t.get(n);if(e!==undefined){return e}const r={};t.set(n,r);for(const e of Object.keys(n)){if(typeof n[e]!=="undefined"){r[e]=an(n[e],t)}}return r}if(Array.isArray(n)){const e=t.get(n);if(e!==undefined){return e}const r=[];t.set(n,r);n.forEach((n=>{r.push(an(n,t))}));return r}return n}function fn(n){if(!l(n)){return false}try{const t=Object.getPrototypeOf(n).constructor.name;return!t||t==="Object"}catch(n){return true}}const ln=50;const dn="?";const hn=/\(error: (.*)\)/;const pn=/captureMessage|captureException/;function mn(...n){const t=n.sort(((n,t)=>n[0]-t[0])).map((n=>n[1]));return(n,e=0,r=0)=>{const o=[];const i=n.split("\n");for(let n=e;n<i.length;n++){const e=i[n];if(e.length>1024){continue}const s=hn.test(e)?e.replace(hn,"$1"):e;if(s.match(/\S*Error: /)){continue}for(const n of t){const t=n(s);if(t){o.push(t);break}}if(o.length>=ln+r){break}}return gn(o.slice(r))}}function bn(n){if(Array.isArray(n)){return mn(...n)}return n}function gn(n){if(!n.length){return[]}const t=Array.from(n);if(/sentryWrapped/.test(_n(t).function||"")){t.pop()}t.reverse();if(pn.test(_n(t).function||"")){t.pop();if(pn.test(_n(t).function||"")){t.pop()}}return t.slice(0,ln).map((n=>({...n,filename:n.filename||_n(t).filename,function:n.function||dn})))}function _n(n){return n[n.length-1]||{}}const yn="<anonymous>";function vn(n){try{if(!n||typeof n!=="function"){return yn}return n.name||yn}catch(n){return yn}}function wn(n){const t=n.exception;if(t){const n=[];try{t.values.forEach((t=>{if(t.stacktrace.frames){n.push(...t.stacktrace.frames)}}));return n}catch(n){return undefined}}return undefined}const xn={};const kn={};function En(n,t){xn[n]=xn[n]||[];xn[n].push(t)}function Sn(n,t){if(!kn[n]){t();kn[n]=true}}function Nn(n,t){const e=n&&xn[n];if(!e){return}for(const r of e){try{r(t)}catch(t){F&&H.error(`Error while triggering instrumentation handler.\nType: ${n}\nName: ${vn(r)}\nError:`,t)}}}function $n(n){const t="console";En(t,n);Sn(t,Cn)}function Cn(){if(!("console"in T)){return}B.forEach((function(n){if(!(n in T.console)){return}Z(T.console,n,(function(t){P[n]=t;return function(...t){const e={args:t,level:n};Nn("console",e);const r=P[n];r&&r.apply(T.console,t)}}))}))}const Tn=T;function In(){if(!("fetch"in Tn)){return false}try{new Headers;new Request("http://www.example.com");new Response;return true}catch(n){return false}}function jn(n){return n&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(n.toString())}function Ln(){if(typeof EdgeRuntime==="string"){return true}if(!In()){return false}if(jn(Tn.fetch)){return true}let n=false;const t=Tn.document;if(t&&typeof t.createElement==="function"){try{const e=t.createElement("iframe");e.hidden=true;t.head.appendChild(e);if(e.contentWindow&&e.contentWindow.fetch){n=jn(e.contentWindow.fetch)}t.head.removeChild(e)}catch(n){F&&H.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}}return n}const Mn=1e3;function Dn(){return Date.now()/Mn}function Rn(){const{performance:n}=T;if(!n||!n.now){return Dn}const t=Date.now()-n.now();const e=n.timeOrigin==undefined?t:n.timeOrigin;return()=>(e+n.now())/Mn}const On=Rn();(()=>{const{performance:n}=T;if(!n||!n.now){return undefined}const t=3600*1e3;const e=n.now();const r=Date.now();const o=n.timeOrigin?Math.abs(n.timeOrigin+e-r):t;const i=o<t;const s=n.timing&&n.timing.navigationStart;const c=typeof s==="number";const u=c?Math.abs(s+e-r):t;const a=u<t;if(i||a){if(o<=u){return n.timeOrigin}else{return s}}return r})();function Fn(n,t){const e="fetch";En(e,n);Sn(e,(()=>An(undefined,t)))}function An(n,t=false){if(t&&!Ln()){return}Z(T,"fetch",(function(t){return function(...e){const{method:o,url:i}=qn(e);const s={args:e,fetchData:{method:o,url:i},startTimestamp:On()*1e3};if(!n){Nn("fetch",{...s})}const c=(new Error).stack;return t.apply(T,e).then((async t=>{if(n){n(t)}else{Nn("fetch",{...s,endTimestamp:On()*1e3,response:t})}return t}),(n=>{Nn("fetch",{...s,endTimestamp:On()*1e3,error:n});if(r(n)&&n.stack===undefined){n.stack=c;Q(n,"framesToPop",1)}throw n}))}}))}function Bn(n,t){return!!n&&typeof n==="object"&&!!n[t]}function Pn(n){if(typeof n==="string"){return n}if(!n){return""}if(Bn(n,"url")){return n.url}if(n.toString){return n.toString()}return""}function qn(n){if(n.length===0){return{method:"GET",url:""}}if(n.length===2){const[t,e]=n;return{url:Pn(t),method:Bn(e,"method")?String(e.method).toUpperCase():"GET"}}const t=n[0];return{url:Pn(t),method:Bn(t,"method")?String(t.method).toUpperCase():"GET"}}let Un=null;function Hn(n){const t="error";En(t,n);Sn(t,zn)}function zn(){Un=T.onerror;T.onerror=function(n,t,e,r,o){const i={column:r,error:o,line:e,msg:n,url:t};Nn("error",i);if(Un&&!Un.__SENTRY_LOADER__){return Un.apply(this,arguments)}return false};T.onerror.__SENTRY_INSTRUMENTED__=true}let Yn=null;function Gn(n){const t="unhandledrejection";En(t,n);Sn(t,Xn)}function Xn(){Yn=T.onunhandledrejection;T.onunhandledrejection=function(n){const t=n;Nn("unhandledrejection",t);if(Yn&&!Yn.__SENTRY_LOADER__){return Yn.apply(this,arguments)}return true};T.onunhandledrejection.__SENTRY_INSTRUMENTED__=true}function Vn(){return typeof __SENTRY_BROWSER_BUNDLE__!=="undefined"&&!!__SENTRY_BROWSER_BUNDLE__}function Wn(){return"npm"}function Jn(){return!Vn()&&Object.prototype.toString.call(typeof n!=="undefined"?n:0)==="[object process]"}function Kn(){return typeof window!=="undefined"&&(!Jn()||Zn())}function Zn(){return T.process!==undefined&&T.process.type==="renderer"}function Qn(){const n=typeof WeakSet==="function";const t=n?new WeakSet:[];function e(e){if(n){if(t.has(e)){return true}t.add(e);return false}for(let n=0;n<t.length;n++){const r=t[n];if(r===e){return true}}t.push(e);return false}function r(e){if(n){t.delete(e)}else{for(let n=0;n<t.length;n++){if(t[n]===e){t.splice(n,1);break}}}}return[e,r]}function nt(){const n=T;const t=n.crypto||n.msCrypto;let e=()=>Math.random()*16;try{if(t&&t.randomUUID){return t.randomUUID().replace(/-/g,"")}if(t&&t.getRandomValues){e=()=>{const n=new Uint8Array(1);t.getRandomValues(n);return n[0]}}}catch(n){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(n=>(n^(e()&15)>>n/4).toString(16)))}function tt(n){return n.exception&&n.exception.values?n.exception.values[0]:undefined}function et(n){const{message:t,event_id:e}=n;if(t){return t}const r=tt(n);if(r){if(r.type&&r.value){return`${r.type}: ${r.value}`}return r.type||r.value||e||"<unknown>"}return e||"<unknown>"}function rt(n,t,e){const r=n.exception=n.exception||{};const o=r.values=r.values||[];const i=o[0]=o[0]||{};if(!i.value){i.value=t||""}if(!i.type){i.type=e||"Error"}}function ot(n,t){const e=tt(n);if(!e){return}const r={type:"generic",handled:true};const o=e.mechanism;e.mechanism={...r,...o,...t};if(t&&"data"in t){const n={...o&&o.data,...t.data};e.mechanism.data=n}}function it(n){if(n&&n.__sentry_captured__){return true}try{Q(n,"__sentry_captured__",true)}catch(n){}return false}function st(n){return Array.isArray(n)?n:[n]}function ct(n,t=100,e=+Infinity){try{return at("",n,t,e)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function ut(n,t=3,e=100*1024){const r=ct(n,t);if(ht(r)>e){return ut(n,t-1,e)}return r}function at(n,t,e=+Infinity,r=+Infinity,o=Qn()){const[i,s]=o;if(t==null||["number","boolean","string"].includes(typeof t)&&!Number.isNaN(t)){return t}const c=ft(n,t);if(!c.startsWith("[object ")){return c}if(t["__sentry_skip_normalization__"]){return t}const u=typeof t["__sentry_override_normalization_depth__"]==="number"?t["__sentry_override_normalization_depth__"]:e;if(u===0){return c.replace("object ","")}if(i(t)){return"[Circular ~]"}const a=t;if(a&&typeof a.toJSON==="function"){try{const n=a.toJSON();return at("",n,u-1,r,o)}catch(n){}}const f=Array.isArray(t)?[]:{};let l=0;const d=rn(t);for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n)){continue}if(l>=r){f[n]="[MaxProperties ~]";break}const t=d[n];f[n]=at(n,t,u-1,r,o);l++}s(t);return f}function ft(n,e){try{if(n==="domain"&&e&&typeof e==="object"&&e._events){return"[Domain]"}if(n==="domainEmitter"){return"[DomainEmitter]"}if(typeof t!=="undefined"&&e===t){return"[Global]"}if(typeof window!=="undefined"&&e===window){return"[Window]"}if(typeof document!=="undefined"&&e===document){return"[Document]"}if(_(e)){return"[VueViewModel]"}if(b(e)){return"[SyntheticEvent]"}if(typeof e==="number"&&e!==e){return"[NaN]"}if(typeof e==="function"){return`[Function: ${vn(e)}]`}if(typeof e==="symbol"){return`[${String(e)}]`}if(typeof e==="bigint"){return`[BigInt: ${String(e)}]`}const r=lt(e);if(/^HTML(\w*)Element$/.test(r)){return`[HTMLElement: ${r}]`}return`[object ${r}]`}catch(n){return`**non-serializable** (${n})`}}function lt(n){const t=Object.getPrototypeOf(n);return t?t.constructor.name:"null prototype"}function dt(n){return~-encodeURI(n).split(/%..|./).length}function ht(n){return dt(JSON.stringify(n))}var pt;(function(n){const t=0;n[n["PENDING"]=t]="PENDING";const e=1;n[n["RESOLVED"]=e]="RESOLVED";const r=2;n[n["REJECTED"]=r]="REJECTED"})(pt||(pt={}));function mt(n){return new gt((t=>{t(n)}))}function bt(n){return new gt(((t,e)=>{e(n)}))}class gt{constructor(n){gt.prototype.__init.call(this);gt.prototype.__init2.call(this);gt.prototype.__init3.call(this);gt.prototype.__init4.call(this);this._state=pt.PENDING;this._handlers=[];try{n(this._resolve,this._reject)}catch(n){this._reject(n)}}then(n,t){return new gt(((e,r)=>{this._handlers.push([false,t=>{if(!n){e(t)}else{try{e(n(t))}catch(n){r(n)}}},n=>{if(!t){r(n)}else{try{e(t(n))}catch(n){r(n)}}}]);this._executeHandlers()}))}catch(n){return this.then((n=>n),n)}finally(n){return new gt(((t,e)=>{let r;let o;return this.then((t=>{o=false;r=t;if(n){n()}}),(t=>{o=true;r=t;if(n){n()}})).then((()=>{if(o){e(r);return}t(r)}))}))}__init(){this._resolve=n=>{this._setResult(pt.RESOLVED,n)}}__init2(){this._reject=n=>{this._setResult(pt.REJECTED,n)}}__init3(){this._setResult=(n,t)=>{if(this._state!==pt.PENDING){return}if(m(t)){void t.then(this._resolve,this._reject);return}this._state=n;this._value=t;this._executeHandlers()}}__init4(){this._executeHandlers=()=>{if(this._state===pt.PENDING){return}const n=this._handlers.slice();this._handlers=[];n.forEach((n=>{if(n[0]){return}if(this._state===pt.RESOLVED){n[1](this._value)}if(this._state===pt.REJECTED){n[2](this._value)}n[0]=true}))}}}function _t(n){const t=[];function e(){return n===undefined||t.length<n}function r(n){return t.splice(t.indexOf(n),1)[0]||Promise.resolve(undefined)}function o(n){if(!e()){return bt(new K("Not adding Promise because buffer limit was reached."))}const o=n();if(t.indexOf(o)===-1){t.push(o)}void o.then((()=>r(o))).then(null,(()=>r(o).then(null,(()=>{}))));return o}function i(n){return new gt(((e,r)=>{let o=t.length;if(!o){return e(true)}const i=setTimeout((()=>{if(n&&n>0){e(false)}}),n);t.forEach((n=>{void mt(n).then((()=>{if(! --o){clearTimeout(i);e(true)}}),r)}))}))}return{$:t,add:o,drain:i}}function yt(n){if(!n){return{}}const t=n.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t){return{}}const e=t[6]||"";const r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:e,hash:r,relative:t[5]+e+r}}const vt=["fatal","error","warning","log","info","debug"];function wt(n){return n==="warn"?"warning":vt.includes(n)?n:"log"}const xt="sentry-";const kt=/^sentry-/;function Et(n){const t=St(n);if(!t){return undefined}const e=Object.entries(t).reduce(((n,[t,e])=>{if(t.match(kt)){const r=t.slice(xt.length);n[r]=e}return n}),{});if(Object.keys(e).length>0){return e}else{return undefined}}function St(n){if(!n||!u(n)&&!Array.isArray(n)){return undefined}if(Array.isArray(n)){return n.reduce(((n,t)=>{const e=Nt(t);Object.entries(e).forEach((([t,e])=>{n[t]=e}));return n}),{})}return Nt(n)}function Nt(n){return n.split(",").map((n=>n.split("=").map((n=>decodeURIComponent(n.trim()))))).reduce(((n,[t,e])=>{if(t&&e){n[t]=e}return n}),{})}function $t(n,t=[]){return[n,t]}function Ct(n,t){const[e,r]=n;return[e,[...r,t]]}function Tt(n,t){const e=n[1];for(const n of e){const e=n[0].type;const r=t(n,e);if(r){return true}}return false}function It(n){return T.__SENTRY__&&T.__SENTRY__.encodePolyfill?T.__SENTRY__.encodePolyfill(n):(new TextEncoder).encode(n)}function jt(n){const[t,e]=n;let r=JSON.stringify(t);function o(n){if(typeof r==="string"){r=typeof n==="string"?r+n:[It(r),n]}else{r.push(typeof n==="string"?It(n):n)}}for(const n of e){const[t,e]=n;o(`\n${JSON.stringify(t)}\n`);if(typeof e==="string"||e instanceof Uint8Array){o(e)}else{let n;try{n=JSON.stringify(e)}catch(t){n=JSON.stringify(ct(e))}o(n)}}return typeof r==="string"?r:Lt(r)}function Lt(n){const t=n.reduce(((n,t)=>n+t.length),0);const e=new Uint8Array(t);let r=0;for(const t of n){e.set(t,r);r+=t.length}return e}function Mt(n){const t=typeof n.data==="string"?It(n.data):n.data;return[un({type:"attachment",length:t.length,filename:n.filename,content_type:n.contentType,attachment_type:n.attachmentType}),t]}const Dt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Rt(n){return Dt[n]}function Ot(n){if(!n||!n.sdk){return}const{name:t,version:e}=n.sdk;return{name:t,version:e}}function Ft(n,t,e,r){const o=n.sdkProcessingMetadata&&n.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:n.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!e&&r&&{dsn:G(r)},...o&&{trace:un({...o})}}}function At(n,t,e){const r=[{type:"client_report"},{timestamp:e||Dn(),discarded_events:n}];return $t(t?{dsn:t}:{},[r])}const Bt=60*1e3;function Pt(n,t=Date.now()){const e=parseInt(`${n}`,10);if(!isNaN(e)){return e*1e3}const r=Date.parse(`${n}`);if(!isNaN(r)){return r-t}return Bt}function qt(n,t){return n[t]||n.all||0}function Ut(n,t,e=Date.now()){return qt(n,t)>e}function Ht(n,{statusCode:t,headers:e},r=Date.now()){const o={...n};const i=e&&e["x-sentry-rate-limits"];const s=e&&e["retry-after"];if(i){for(const n of i.trim().split(",")){const[t,e,,,i]=n.split(":",5);const s=parseInt(t,10);const c=(!isNaN(s)?s:60)*1e3;if(!e){o.all=r+c}else{for(const n of e.split(";")){if(n==="metric_bucket"){if(!i||i.split(";").includes("custom")){o[n]=r+c}}else{o[n]=r+c}}}}}else if(s){o.all=r+Pt(s,r)}else if(t===429){o.all=r+60*1e3}return o}function zt(){return{traceId:nt(),spanId:nt().substring(16)}}const Yt=T;function Gt(){const n=Yt.chrome;const t=n&&n.app&&n.app.runtime;const e="history"in Yt&&!!Yt.history.pushState&&!!Yt.history.replaceState;return!t&&e}const Xt=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;function Vt(){Wt(T);return T}function Wt(n){const t=n.__SENTRY__=n.__SENTRY__||{};t.version=t.version||C;return t[C]=t[C]||{}}function Jt(n){const t=On();const e={sid:nt(),init:true,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:false,toJSON:()=>Qt(e)};if(n){Kt(e,n)}return e}function Kt(n,t={}){if(t.user){if(!n.ipAddress&&t.user.ip_address){n.ipAddress=t.user.ip_address}if(!n.did&&!t.did){n.did=t.user.id||t.user.email||t.user.username}}n.timestamp=t.timestamp||On();if(t.abnormal_mechanism){n.abnormal_mechanism=t.abnormal_mechanism}if(t.ignoreDuration){n.ignoreDuration=t.ignoreDuration}if(t.sid){n.sid=t.sid.length===32?t.sid:nt()}if(t.init!==undefined){n.init=t.init}if(!n.did&&t.did){n.did=`${t.did}`}if(typeof t.started==="number"){n.started=t.started}if(n.ignoreDuration){n.duration=undefined}else if(typeof t.duration==="number"){n.duration=t.duration}else{const t=n.timestamp-n.started;n.duration=t>=0?t:0}if(t.release){n.release=t.release}if(t.environment){n.environment=t.environment}if(!n.ipAddress&&t.ipAddress){n.ipAddress=t.ipAddress}if(!n.userAgent&&t.userAgent){n.userAgent=t.userAgent}if(typeof t.errors==="number"){n.errors=t.errors}if(t.status){n.status=t.status}}function Zt(n,t){let e={};if(t){e={status:t}}else if(n.status==="ok"){e={status:"exited"}}Kt(n,e)}function Qt(n){return un({sid:`${n.sid}`,init:n.init,started:new Date(n.started*1e3).toISOString(),timestamp:new Date(n.timestamp*1e3).toISOString(),status:n.status,errors:n.errors,did:typeof n.did==="number"||typeof n.did==="string"?`${n.did}`:undefined,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}})}const ne="_sentrySpan";function te(n,t){if(t){Q(n,ne,t)}else{delete n[ne]}}function ee(n){return n[ne]}const re=100;class oe{constructor(){this._notifyingListeners=false;this._scopeListeners=[];this._eventProcessors=[];this._breadcrumbs=[];this._attachments=[];this._user={};this._tags={};this._extra={};this._contexts={};this._sdkProcessingMetadata={};this._propagationContext=zt()}clone(){const n=new oe;n._breadcrumbs=[...this._breadcrumbs];n._tags={...this._tags};n._extra={...this._extra};n._contexts={...this._contexts};n._user=this._user;n._level=this._level;n._session=this._session;n._transactionName=this._transactionName;n._fingerprint=this._fingerprint;n._eventProcessors=[...this._eventProcessors];n._requestSession=this._requestSession;n._attachments=[...this._attachments];n._sdkProcessingMetadata={...this._sdkProcessingMetadata};n._propagationContext={...this._propagationContext};n._client=this._client;n._lastEventId=this._lastEventId;te(n,ee(this));return n}setClient(n){this._client=n}setLastEventId(n){this._lastEventId=n}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(n){this._scopeListeners.push(n)}addEventProcessor(n){this._eventProcessors.push(n);return this}setUser(n){this._user=n||{email:undefined,id:undefined,ip_address:undefined,username:undefined};if(this._session){Kt(this._session,{user:n})}this._notifyScopeListeners();return this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(n){this._requestSession=n;return this}setTags(n){this._tags={...this._tags,...n};this._notifyScopeListeners();return this}setTag(n,t){this._tags={...this._tags,[n]:t};this._notifyScopeListeners();return this}setExtras(n){this._extra={...this._extra,...n};this._notifyScopeListeners();return this}setExtra(n,t){this._extra={...this._extra,[n]:t};this._notifyScopeListeners();return this}setFingerprint(n){this._fingerprint=n;this._notifyScopeListeners();return this}setLevel(n){this._level=n;this._notifyScopeListeners();return this}setTransactionName(n){this._transactionName=n;this._notifyScopeListeners();return this}setContext(n,t){if(t===null){delete this._contexts[n]}else{this._contexts[n]=t}this._notifyScopeListeners();return this}setSession(n){if(!n){delete this._session}else{this._session=n}this._notifyScopeListeners();return this}getSession(){return this._session}update(n){if(!n){return this}const t=typeof n==="function"?n(this):n;const[e,r]=t instanceof ie?[t.getScopeData(),t.getRequestSession()]:l(t)?[n,n.requestSession]:[];const{tags:o,extra:i,user:s,contexts:c,level:u,fingerprint:a=[],propagationContext:f}=e||{};this._tags={...this._tags,...o};this._extra={...this._extra,...i};this._contexts={...this._contexts,...c};if(s&&Object.keys(s).length){this._user=s}if(u){this._level=u}if(a.length){this._fingerprint=a}if(f){this._propagationContext=f}if(r){this._requestSession=r}return this}clear(){this._breadcrumbs=[];this._tags={};this._extra={};this._user={};this._contexts={};this._level=undefined;this._transactionName=undefined;this._fingerprint=undefined;this._requestSession=undefined;this._session=undefined;te(this,undefined);this._attachments=[];this._propagationContext=zt();this._notifyScopeListeners();return this}addBreadcrumb(n,t){const e=typeof t==="number"?t:re;if(e<=0){return this}const r={timestamp:Dn(),...n};const o=this._breadcrumbs;o.push(r);this._breadcrumbs=o.length>e?o.slice(-e):o;this._notifyScopeListeners();return this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){this._breadcrumbs=[];this._notifyScopeListeners();return this}addAttachment(n){this._attachments.push(n);return this}clearAttachments(){this._attachments=[];return this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:ee(this)}}setSDKProcessingMetadata(n){this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...n};return this}setPropagationContext(n){this._propagationContext=n;return this}getPropagationContext(){return this._propagationContext}captureException(n,t){const e=t&&t.event_id?t.event_id:nt();if(!this._client){H.warn("No client configured on scope - will not capture exception!");return e}const r=new Error("Sentry syntheticException");this._client.captureException(n,{originalException:n,syntheticException:r,...t,event_id:e},this);return e}captureMessage(n,t,e){const r=e&&e.event_id?e.event_id:nt();if(!this._client){H.warn("No client configured on scope - will not capture message!");return r}const o=new Error(n);this._client.captureMessage(n,t,{originalException:n,syntheticException:o,...e,event_id:r},this);return r}captureEvent(n,t){const e=t&&t.event_id?t.event_id:nt();if(!this._client){H.warn("No client configured on scope - will not capture event!");return e}this._client.captureEvent(n,{...t,event_id:e},this);return e}_notifyScopeListeners(){if(!this._notifyingListeners){this._notifyingListeners=true;this._scopeListeners.forEach((n=>{n(this)}));this._notifyingListeners=false}}}const ie=oe;function se(){return I("defaultCurrentScope",(()=>new ie))}function ce(){return I("defaultIsolationScope",(()=>new ie))}class ue{constructor(n,t){let e;if(!n){e=new ie}else{e=n}let r;if(!t){r=new ie}else{r=t}this._stack=[{scope:e}];this._isolationScope=r}withScope(n){const t=this._pushScope();let e;try{e=n(t)}catch(n){this._popScope();throw n}if(m(e)){return e.then((n=>{this._popScope();return n}),(n=>{this._popScope();throw n}))}this._popScope();return e}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const n=this.getScope().clone();this._stack.push({client:this.getClient(),scope:n});return n}_popScope(){if(this._stack.length<=1)return false;return!!this._stack.pop()}}function ae(){const n=Vt();const t=Wt(n);return t.stack=t.stack||new ue(se(),ce())}function fe(n){return ae().withScope(n)}function le(n,t){const e=ae();return e.withScope((()=>{e.getStackTop().scope=n;return t(n)}))}function de(n){return ae().withScope((()=>n(ae().getIsolationScope())))}function he(){return{withIsolationScope:de,withScope:fe,withSetScope:le,withSetIsolationScope:(n,t)=>de(t),getCurrentScope:()=>ae().getScope(),getIsolationScope:()=>ae().getIsolationScope()}}function pe(n){const t=Wt(n);if(t.acs){return t.acs}return he()}function me(){const n=Vt();const t=pe(n);return t.getCurrentScope()}function be(){const n=Vt();const t=pe(n);return t.getIsolationScope()}function ge(){return I("globalScope",(()=>new ie))}function _e(...n){const t=Vt();const e=pe(t);if(n.length===2){const[t,r]=n;if(!t){return e.withScope(r)}return e.withSetScope(t,r)}return e.withScope(n[0])}function ye(){return me().getClient()}const ve="_sentryMetrics";function we(n){const t=n[ve];if(!t){return undefined}const e={};for(const[,[n,r]]of t){const t=e[n]||(e[n]=[]);t.push(un(r))}return e}const xe="sentry.source";const ke="sentry.sample_rate";const Ee="sentry.op";const Se="sentry.origin";const Ne=0;const $e=1;const Ce=1;function Te(n){const{spanId:t,traceId:e}=n.spanContext();const{parent_span_id:r}=Le(n);return un({parent_span_id:r,span_id:t,trace_id:e})}function Ie(n){if(typeof n==="number"){return je(n)}if(Array.isArray(n)){return n[0]+n[1]/1e9}if(n instanceof Date){return je(n.getTime())}return On()}function je(n){const t=n>9999999999;return t?n/1e3:n}function Le(n){if(De(n)){return n.getSpanJSON()}try{const{spanId:t,traceId:e}=n.spanContext();if(Me(n)){const{attributes:r,startTime:o,name:i,endTime:s,parentSpanId:c,status:u}=n;return un({span_id:t,trace_id:e,data:r,description:i,parent_span_id:c,start_timestamp:Ie(o),timestamp:Ie(s)||undefined,status:Oe(u),op:r[Ee],origin:r[Se],_metrics_summary:we(n)})}return{span_id:t,trace_id:e}}catch(n){return{}}}function Me(n){const t=n;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function De(n){return typeof n.getSpanJSON==="function"}function Re(n){const{traceFlags:t}=n.spanContext();return t===Ce}function Oe(n){if(!n||n.code===Ne){return undefined}if(n.code===$e){return"ok"}return n.message||"unknown_error"}const Fe="_sentryRootSpan";function Ae(n){return n[Fe]||n}const Be="production";const Pe="_frozenDsc";function qe(n,t){const e=t.getOptions();const{publicKey:r}=t.getDsn()||{};const o=un({environment:e.environment||Be,release:e.release,public_key:r,trace_id:n});t.emit("createDsc",o);return o}function Ue(n){const t=ye();if(!t){return{}}const e=qe(Le(n).trace_id||"",t);const r=Ae(n);const o=r[Pe];if(o){return o}const i=r.spanContext().traceState;const s=i&&i.get("sentry.dsc");const c=s&&Et(s);if(c){return c}const u=Le(r);const a=u.data||{};const f=a[ke];if(f!=null){e.sample_rate=`${f}`}const l=a[xe];const d=u.description;if(l!=="url"&&d){e.transaction=d}e.sampled=String(Re(r));t.emit("createDsc",e,r);return e}function He(n){if(typeof n==="boolean"){return Number(n)}const t=typeof n==="string"?parseFloat(n):n;if(typeof t!=="number"||isNaN(t)||t<0||t>1){Xt&&H.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(n)} of type ${JSON.stringify(typeof n)}.`);return undefined}return t}function ze(n,t){if(!t){return n}n.sdk=n.sdk||{};n.sdk.name=n.sdk.name||t.name;n.sdk.version=n.sdk.version||t.version;n.sdk.integrations=[...n.sdk.integrations||[],...t.integrations||[]];n.sdk.packages=[...n.sdk.packages||[],...t.packages||[]];return n}function Ye(n,t,e,r){const o=Ot(e);const i={sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:G(t)}};const s="aggregates"in n?[{type:"sessions"},n]:[{type:"session"},n.toJSON()];return $t(i,[s])}function Ge(n,t,e,r){const o=Ot(e);const i=n.type&&n.type!=="replay_event"?n.type:"event";ze(n,e&&e.sdk);const s=Ft(n,o,r,t);delete n.sdkProcessingMetadata;const c=[{type:i},n];return $t(s,[c])}function Xe(n,t,e,r=0){return new gt(((o,i)=>{const s=n[r];if(t===null||typeof s!=="function"){o(t)}else{const c=s({...t},e);Xt&&s.id&&c===null&&H.log(`Event processor "${s.id}" dropped event`);if(m(c)){void c.then((t=>Xe(n,t,e,r+1).then(o))).then(null,i)}else{void Xe(n,c,e,r+1).then(o).then(null,i)}}}))}function Ve(n,t){const{fingerprint:e,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;Ke(n,t);if(r){nr(n,r)}tr(n,e);Ze(n,o);Qe(n,i)}function We(n,t){const{extra:e,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:a,eventProcessors:f,attachments:l,propagationContext:d,transactionName:h,span:p}=t;Je(n,"extra",e);Je(n,"tags",r);Je(n,"user",o);Je(n,"contexts",i);Je(n,"sdkProcessingMetadata",c);if(s){n.level=s}if(h){n.transactionName=h}if(p){n.span=p}if(u.length){n.breadcrumbs=[...n.breadcrumbs,...u]}if(a.length){n.fingerprint=[...n.fingerprint,...a]}if(f.length){n.eventProcessors=[...n.eventProcessors,...f]}if(l.length){n.attachments=[...n.attachments,...l]}n.propagationContext={...n.propagationContext,...d}}function Je(n,t,e){if(e&&Object.keys(e).length){n[t]={...n[t]};for(const r in e){if(Object.prototype.hasOwnProperty.call(e,r)){n[t][r]=e[r]}}}}function Ke(n,t){const{extra:e,tags:r,user:o,contexts:i,level:s,transactionName:c}=t;const u=un(e);if(u&&Object.keys(u).length){n.extra={...u,...n.extra}}const a=un(r);if(a&&Object.keys(a).length){n.tags={...a,...n.tags}}const f=un(o);if(f&&Object.keys(f).length){n.user={...f,...n.user}}const l=un(i);if(l&&Object.keys(l).length){n.contexts={...l,...n.contexts}}if(s){n.level=s}if(c&&n.type!=="transaction"){n.transaction=c}}function Ze(n,t){const e=[...n.breadcrumbs||[],...t];n.breadcrumbs=e.length?e:undefined}function Qe(n,t){n.sdkProcessingMetadata={...n.sdkProcessingMetadata,...t}}function nr(n,t){n.contexts={trace:Te(t),...n.contexts};n.sdkProcessingMetadata={dynamicSamplingContext:Ue(t),...n.sdkProcessingMetadata};const e=Ae(t);const r=Le(e).description;if(r&&!n.transaction&&n.type==="transaction"){n.transaction=r}}function tr(n,t){n.fingerprint=n.fingerprint?st(n.fingerprint):[];if(t){n.fingerprint=n.fingerprint.concat(t)}if(n.fingerprint&&!n.fingerprint.length){delete n.fingerprint}}function er(n,t,e,r,o,i){const{normalizeDepth:s=3,normalizeMaxBreadth:c=1e3}=n;const u={...t,event_id:t.event_id||e.event_id||nt(),timestamp:t.timestamp||Dn()};const a=e.integrations||n.integrations.map((n=>n.name));rr(u,n);cr(u,a);if(o){o.emit("applyFrameMetadata",t)}if(t.type===undefined){ir(u,n.stackParser)}const f=ar(r,e.captureContext);if(e.mechanism){ot(u,e.mechanism)}const l=o?o.getEventProcessors():[];const d=ge().getScopeData();if(i){const n=i.getScopeData();We(d,n)}if(f){const n=f.getScopeData();We(d,n)}const h=[...e.attachments||[],...d.attachments];if(h.length){e.attachments=h}Ve(u,d);const p=[...l,...d.eventProcessors];const m=Xe(p,u,e);return m.then((n=>{if(n){sr(n)}if(typeof s==="number"&&s>0){return ur(n,s,c)}return n}))}function rr(n,t){const{environment:e,release:r,dist:o,maxValueLength:i=250}=t;if(!("environment"in n)){n.environment="environment"in t?e:Be}if(n.release===undefined&&r!==undefined){n.release=r}if(n.dist===undefined&&o!==undefined){n.dist=o}if(n.message){n.message=y(n.message,i)}const s=n.exception&&n.exception.values&&n.exception.values[0];if(s&&s.value){s.value=y(s.value,i)}const c=n.request;if(c&&c.url){c.url=y(c.url,i)}}const or=new WeakMap;function ir(n,t){const e=T._sentryDebugIds;if(!e){return}let r;const o=or.get(t);if(o){r=o}else{r=new Map;or.set(t,r)}const i=Object.entries(e).reduce(((n,[e,o])=>{let i;const s=r.get(e);if(s){i=s}else{i=t(e);r.set(e,i)}for(let t=i.length-1;t>=0;t--){const e=i[t];if(e.filename){n[e.filename]=o;break}}return n}),{});try{n.exception.values.forEach((n=>{n.stacktrace.frames.forEach((n=>{if(n.filename){n.debug_id=i[n.filename]}}))}))}catch(n){}}function sr(n){const t={};try{n.exception.values.forEach((n=>{n.stacktrace.frames.forEach((n=>{if(n.debug_id){if(n.abs_path){t[n.abs_path]=n.debug_id}else if(n.filename){t[n.filename]=n.debug_id}delete n.debug_id}}))}))}catch(n){}if(Object.keys(t).length===0){return}n.debug_meta=n.debug_meta||{};n.debug_meta.images=n.debug_meta.images||[];const e=n.debug_meta.images;Object.entries(t).forEach((([n,t])=>{e.push({type:"sourcemap",code_file:n,debug_id:t})}))}function cr(n,t){if(t.length>0){n.sdk=n.sdk||{};n.sdk.integrations=[...n.sdk.integrations||[],...t]}}function ur(n,t,e){if(!n){return null}const r={...n,...n.breadcrumbs&&{breadcrumbs:n.breadcrumbs.map((n=>({...n,...n.data&&{data:ct(n.data,t,e)}})))},...n.user&&{user:ct(n.user,t,e)},...n.contexts&&{contexts:ct(n.contexts,t,e)},...n.extra&&{extra:ct(n.extra,t,e)}};if(n.contexts&&n.contexts.trace&&r.contexts){r.contexts.trace=n.contexts.trace;if(n.contexts.trace.data){r.contexts.trace.data=ct(n.contexts.trace.data,t,e)}}if(n.spans){r.spans=n.spans.map((n=>({...n,...n.data&&{data:ct(n.data,t,e)}})))}return r}function ar(n,t){if(!t){return n}const e=n?n.clone():new ie;e.update(t);return e}function fr(n){if(!n){return undefined}if(lr(n)){return{captureContext:n}}if(hr(n)){return{captureContext:n}}return n}function lr(n){return n instanceof ie||typeof n==="function"}const dr=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function hr(n){return Object.keys(n).some((n=>dr.includes(n)))}function pr(n,t){return me().captureException(n,fr(t))}function mr(n,t){const e=typeof t==="string"?t:undefined;const r=typeof t!=="string"?{captureContext:t}:undefined;return me().captureMessage(n,e,r)}function br(n,t){return me().captureEvent(n,t)}function gr(){return!!ye()}function _r(n){const t=ye();const e=be();const r=me();const{release:o,environment:i=Be}=t&&t.getOptions()||{};const{userAgent:s}=T.navigator||{};const c=Jt({release:o,environment:i,user:r.getUser()||e.getUser(),...s&&{userAgent:s},...n});const u=e.getSession();if(u&&u.status==="ok"){Kt(u,{status:"exited"})}yr();e.setSession(c);r.setSession(c);return c}function yr(){const n=be();const t=me();const e=t.getSession()||n.getSession();if(e){Zt(e)}vr();n.setSession();t.setSession()}function vr(){const n=be();const t=me();const e=ye();const r=t.getSession()||n.getSession();if(r&&e){e.captureSession(r)}}function wr(n=false){if(n){yr();return}vr()}const xr="7";function kr(n){const t=n.protocol?`${n.protocol}:`:"";const e=n.port?`:${n.port}`:"";return`${t}//${n.host}${e}${n.path?`/${n.path}`:""}/api/`}function Er(n){return`${kr(n)}${n.projectId}/envelope/`}function Sr(n,t){return en({sentry_key:n.publicKey,sentry_version:xr,...t&&{sentry_client:`${t.name}/${t.version}`}})}function Nr(n,t,e){return t?t:`${Er(n)}?${Sr(n,e)}`}const $r=[];function Cr(n){const t={};n.forEach((n=>{const{name:e}=n;const r=t[e];if(r&&!r.isDefaultInstance&&n.isDefaultInstance){return}t[e]=n}));return Object.values(t)}function Tr(n){const t=n.defaultIntegrations||[];const e=n.integrations;t.forEach((n=>{n.isDefaultInstance=true}));let r;if(Array.isArray(e)){r=[...t,...e]}else if(typeof e==="function"){r=st(e(t))}else{r=t}const o=Cr(r);const i=o.findIndex((n=>n.name==="Debug"));if(i>-1){const[n]=o.splice(i,1);o.push(n)}return o}function Ir(n,t){const e={};t.forEach((t=>{if(t){Lr(n,t,e)}}));return e}function jr(n,t){for(const e of t){if(e&&e.afterAllSetup){e.afterAllSetup(n)}}}function Lr(n,t,e){if(e[t.name]){Xt&&H.log(`Integration skipped because it was already installed: ${t.name}`);return}e[t.name]=t;if($r.indexOf(t.name)===-1&&typeof t.setupOnce==="function"){t.setupOnce();$r.push(t.name)}if(t.setup&&typeof t.setup==="function"){t.setup(n)}if(typeof t.preprocessEvent==="function"){const e=t.preprocessEvent.bind(t);n.on("preprocessEvent",((t,r)=>e(t,r,n)))}if(typeof t.processEvent==="function"){const e=t.processEvent.bind(t);const r=Object.assign(((t,r)=>e(t,r,n)),{id:t.name});n.addEventProcessor(r)}Xt&&H.log(`Integration installed: ${t.name}`)}function Mr(n){return n}const Dr="Not capturing exception because it's already been captured.";class Rr{constructor(n){this._options=n;this._integrations={};this._numProcessing=0;this._outcomes={};this._hooks={};this._eventProcessors=[];if(n.dsn){this._dsn=J(n.dsn)}else{Xt&&H.warn("No DSN provided, client will not send events.")}if(this._dsn){const t=Nr(this._dsn,n.tunnel,n._metadata?n._metadata.sdk:undefined);this._transport=n.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...n.transportOptions,url:t})}}captureException(n,t,e){const r=nt();if(it(n)){Xt&&H.log(Dr);return r}const o={event_id:r,...t};this._process(this.eventFromException(n,o).then((n=>this._captureEvent(n,o,e))));return o.event_id}captureMessage(n,t,e,r){const o={event_id:nt(),...e};const i=a(n)?n:String(n);const s=f(n)?this.eventFromMessage(i,t,o):this.eventFromException(n,o);this._process(s.then((n=>this._captureEvent(n,o,r))));return o.event_id}captureEvent(n,t,e){const r=nt();if(t&&t.originalException&&it(t.originalException)){Xt&&H.log(Dr);return r}const o={event_id:r,...t};const i=n.sdkProcessingMetadata||{};const s=i.capturedSpanScope;this._process(this._captureEvent(n,o,s||e));return o.event_id}captureSession(n){if(!(typeof n.release==="string")){Xt&&H.warn("Discarded session because of missing or non-string release")}else{this.sendSession(n);Kt(n,{init:false})}}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(n){const t=this._transport;if(t){this.emit("flush");return this._isClientDoneProcessing(n).then((e=>t.flush(n).then((n=>e&&n))))}else{return mt(true)}}close(n){return this.flush(n).then((n=>{this.getOptions().enabled=false;this.emit("close");return n}))}getEventProcessors(){return this._eventProcessors}addEventProcessor(n){this._eventProcessors.push(n)}init(){if(this._isEnabled()||this._options.integrations.some((({name:n})=>n.startsWith("Spotlight")))){this._setupIntegrations()}}getIntegrationByName(n){return this._integrations[n]}addIntegration(n){const t=this._integrations[n.name];Lr(this,n,this._integrations);if(!t){jr(this,[n])}}sendEvent(n,t={}){this.emit("beforeSendEvent",n,t);let e=Ge(n,this._dsn,this._options._metadata,this._options.tunnel);for(const n of t.attachments||[]){e=Ct(e,Mt(n))}const r=this.sendEnvelope(e);if(r){r.then((t=>this.emit("afterSendEvent",n,t)),null)}}sendSession(n){const t=Ye(n,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}recordDroppedEvent(n,t,e){if(this._options.sendClientReports){const r=typeof e==="number"?e:1;const o=`${n}:${t}`;Xt&&H.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`);this._outcomes[o]=(this._outcomes[o]||0)+r}}on(n,t){const e=this._hooks[n]=this._hooks[n]||[];e.push(t);return()=>{const n=e.indexOf(t);if(n>-1){e.splice(n,1)}}}emit(n,...t){const e=this._hooks[n];if(e){e.forEach((n=>n(...t)))}}sendEnvelope(n){this.emit("beforeEnvelope",n);if(this._isEnabled()&&this._transport){return this._transport.send(n).then(null,(n=>{Xt&&H.error("Error while sending event:",n);return n}))}Xt&&H.error("Transport disabled");return mt({})}_setupIntegrations(){const{integrations:n}=this._options;this._integrations=Ir(this,n);jr(this,n)}_updateSessionFromEvent(n,t){let e=false;let r=false;const o=t.exception&&t.exception.values;if(o){r=true;for(const n of o){const t=n.mechanism;if(t&&t.handled===false){e=true;break}}}const i=n.status==="ok";const s=i&&n.errors===0||i&&e;if(s){Kt(n,{...e&&{status:"crashed"},errors:n.errors||Number(r||e)});this.captureSession(n)}}_isClientDoneProcessing(n){return new gt((t=>{let e=0;const r=1;const o=setInterval((()=>{if(this._numProcessing==0){clearInterval(o);t(true)}else{e+=r;if(n&&e>=n){clearInterval(o);t(false)}}}),r)}))}_isEnabled(){return this.getOptions().enabled!==false&&this._transport!==undefined}_prepareEvent(n,t,e,r=be()){const o=this.getOptions();const i=Object.keys(this._integrations);if(!t.integrations&&i.length>0){t.integrations=i}this.emit("preprocessEvent",n,t);if(!n.type){r.setLastEventId(n.event_id||t.event_id)}return er(o,n,t,e,this,r).then((n=>{if(n===null){return n}const t={...r.getPropagationContext(),...e?e.getPropagationContext():undefined};const o=n.contexts&&n.contexts.trace;if(!o&&t){const{traceId:e,spanId:r,parentSpanId:o,dsc:i}=t;n.contexts={trace:un({trace_id:e,span_id:r,parent_span_id:o}),...n.contexts};const s=i?i:qe(e,this);n.sdkProcessingMetadata={dynamicSamplingContext:s,...n.sdkProcessingMetadata}}return n}))}_captureEvent(n,t={},e){return this._processEvent(n,t,e).then((n=>n.event_id),(n=>{if(Xt){const t=n;if(t.logLevel==="log"){H.log(t.message)}else{H.warn(t)}}return undefined}))}_processEvent(n,t,e){const r=this.getOptions();const{sampleRate:o}=r;const i=Br(n);const s=Ar(n);const c=n.type||"error";const u=`before send for type \`${c}\``;const a=typeof o==="undefined"?undefined:He(o);if(s&&typeof a==="number"&&Math.random()>a){this.recordDroppedEvent("sample_rate","error",n);return bt(new K(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"))}const f=c==="replay_event"?"replay":c;const l=n.sdkProcessingMetadata||{};const d=l.capturedSpanIsolationScope;return this._prepareEvent(n,t,e,d).then((e=>{if(e===null){this.recordDroppedEvent("event_processor",f,n);throw new K("An event processor returned `null`, will not send event.","log")}const o=t.data&&t.data.__sentry__===true;if(o){return e}const i=Fr(this,r,e,t);return Or(i,u)})).then((r=>{if(r===null){this.recordDroppedEvent("before_send",f,n);if(i){const t=n.spans||[];const e=1+t.length;this.recordDroppedEvent("before_send","span",e)}throw new K(`${u} returned \`null\`, will not send event.`,"log")}const o=e&&e.getSession();if(!i&&o){this._updateSessionFromEvent(o,r)}if(i){const n=r.sdkProcessingMetadata&&r.sdkProcessingMetadata.spanCountBeforeProcessing||0;const t=r.spans?r.spans.length:0;const e=n-t;if(e>0){this.recordDroppedEvent("before_send","span",e)}}const s=r.transaction_info;if(i&&s&&r.transaction!==n.transaction){const n="custom";r.transaction_info={...s,source:n}}this.sendEvent(r,t);return r})).then(null,(n=>{if(n instanceof K){throw n}this.captureException(n,{data:{__sentry__:true},originalException:n});throw new K(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${n}`)}))}_process(n){this._numProcessing++;void n.then((n=>{this._numProcessing--;return n}),(n=>{this._numProcessing--;return n}))}_clearOutcomes(){const n=this._outcomes;this._outcomes={};return Object.entries(n).map((([n,t])=>{const[e,r]=n.split(":");return{reason:e,category:r,quantity:t}}))}_flushOutcomes(){Xt&&H.log("Flushing outcomes...");const n=this._clearOutcomes();if(n.length===0){Xt&&H.log("No outcomes to send");return}if(!this._dsn){Xt&&H.log("No dsn provided, will not send outcomes");return}Xt&&H.log("Sending outcomes:",n);const t=At(n,this._options.tunnel&&G(this._dsn));this.sendEnvelope(t)}}function Or(n,t){const e=`${t} must return \`null\` or a valid event.`;if(m(n)){return n.then((n=>{if(!l(n)&&n!==null){throw new K(e)}return n}),(n=>{throw new K(`${t} rejected with ${n}`)}))}else if(!l(n)&&n!==null){throw new K(e)}return n}function Fr(n,t,e,r){const{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s}=t;if(Ar(e)&&o){return o(e,r)}if(Br(e)){if(e.spans&&s){const t=[];for(const r of e.spans){const e=s(r);if(e){t.push(e)}else{n.recordDroppedEvent("before_send","span")}}e.spans=t}if(i){if(e.spans){const n=e.spans.length;e.sdkProcessingMetadata={...e.sdkProcessingMetadata,spanCountBeforeProcessing:n}}return i(e,r)}}return e}function Ar(n){return n.type===undefined}function Br(n){return n.type==="transaction"}function Pr(n,t){if(t.debug===true){if(Xt){H.enable()}else{q((()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")}))}}const e=me();e.update(t.initialScope);const r=new n(t);qr(r);r.init();return r}function qr(n){me().setClient(n)}const Ur=64;function Hr(n,t,e=_t(n.bufferSize||Ur)){let r={};const o=n=>e.drain(n);function i(o){const i=[];Tt(o,((t,e)=>{const o=Rt(e);if(Ut(r,o)){const r=zr(t,e);n.recordDroppedEvent("ratelimit_backoff",o,r)}else{i.push(t)}}));if(i.length===0){return mt({})}const s=$t(o[0],i);const c=t=>{Tt(s,((e,r)=>{const o=zr(e,r);n.recordDroppedEvent(t,Rt(r),o)}))};const u=()=>t({body:jt(s)}).then((n=>{if(n.statusCode!==undefined&&(n.statusCode<200||n.statusCode>=300)){Xt&&H.warn(`Sentry responded with status code ${n.statusCode} to sent event.`)}r=Ht(r,n);return n}),(n=>{c("network_error");throw n}));return e.add(u).then((n=>n),(n=>{if(n instanceof K){Xt&&H.error("Skipped sending event because buffer is full.");c("queue_overflow");return mt({})}else{throw n}}))}return{send:i,flush:o}}function zr(n,t){if(t!=="event"&&t!=="transaction"){return undefined}return Array.isArray(n)?n[1]:undefined}function Yr(n,t,e=[t],r="npm"){const o=n._metadata||{};if(!o.sdk){o.sdk={name:`sentry.javascript.${t}`,packages:e.map((n=>({name:`${r}:@sentry/${n}`,version:C}))),version:C}}n._metadata=o}const Gr=100;function Xr(n,t){const e=ye();const r=be();if(!e)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:i=Gr}=e.getOptions();if(i<=0)return;const s=Dn();const c={timestamp:s,...n};const u=o?q((()=>o(c,t))):c;if(u===null)return;if(e.emit){e.emit("beforeAddBreadcrumb",u,t)}r.addBreadcrumb(u,i)}let Vr;const Wr="FunctionToString";const Jr=new WeakMap;const Kr=()=>({name:Wr,setupOnce(){Vr=Function.prototype.toString;try{Function.prototype.toString=function(...n){const t=tn(this);const e=Jr.has(ye())&&t!==undefined?t:this;return Vr.apply(e,n)}}catch(n){}},setup(n){Jr.set(n,true)}});const Zr=Mr(Kr);const Qr=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler"];const no="InboundFilters";const to=(n={})=>({name:no,processEvent(t,e,r){const o=r.getOptions();const i=ro(n,o);return oo(t,i)?null:t}});const eo=Mr(to);function ro(n={},t={}){return{allowUrls:[...n.allowUrls||[],...t.allowUrls||[]],denyUrls:[...n.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...n.ignoreErrors||[],...t.ignoreErrors||[],...n.disableErrorDefaults?[]:Qr],ignoreTransactions:[...n.ignoreTransactions||[],...t.ignoreTransactions||[]],ignoreInternal:n.ignoreInternal!==undefined?n.ignoreInternal:true}}function oo(n,t){if(t.ignoreInternal&&fo(n)){Xt&&H.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${et(n)}`);return true}if(io(n,t.ignoreErrors)){Xt&&H.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${et(n)}`);return true}if(po(n)){Xt&&H.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${et(n)}`);return true}if(so(n,t.ignoreTransactions)){Xt&&H.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${et(n)}`);return true}if(co(n,t.denyUrls)){Xt&&H.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${et(n)}.\nUrl: ${ho(n)}`);return true}if(!uo(n,t.allowUrls)){Xt&&H.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${et(n)}.\nUrl: ${ho(n)}`);return true}return false}function io(n,t){if(n.type||!t||!t.length){return false}return ao(n).some((n=>x(n,t)))}function so(n,t){if(n.type!=="transaction"||!t||!t.length){return false}const e=n.transaction;return e?x(e,t):false}function co(n,t){if(!t||!t.length){return false}const e=ho(n);return!e?false:x(e,t)}function uo(n,t){if(!t||!t.length){return true}const e=ho(n);return!e?true:x(e,t)}function ao(n){const t=[];if(n.message){t.push(n.message)}let e;try{e=n.exception.values[n.exception.values.length-1]}catch(n){}if(e){if(e.value){t.push(e.value);if(e.type){t.push(`${e.type}: ${e.value}`)}}}return t}function fo(n){try{return n.exception.values[0].type==="SentryError"}catch(n){}return false}function lo(n=[]){for(let t=n.length-1;t>=0;t--){const e=n[t];if(e&&e.filename!=="<anonymous>"&&e.filename!=="[native code]"){return e.filename||null}}return null}function ho(n){try{let t;try{t=n.exception.values[0].stacktrace.frames}catch(n){}return t?lo(t):null}catch(t){Xt&&H.error(`Cannot extract url for event ${et(n)}`);return null}}function po(n){if(n.type){return false}if(!n.exception||!n.exception.values||n.exception.values.length===0){return false}return!n.message&&!n.exception.values.some((n=>n.stacktrace||n.type&&n.type!=="Error"||n.value))}const mo="Dedupe";const bo=()=>{let n;return{name:mo,processEvent(t){if(t.type){return t}try{if(_o(t,n)){Xt&&H.warn("Event dropped due to being a duplicate of previously captured event.");return null}}catch(n){}return n=t}}};const go=Mr(bo);function _o(n,t){if(!t){return false}if(yo(n,t)){return true}if(vo(n,t)){return true}return false}function yo(n,t){const e=n.message;const r=t.message;if(!e&&!r){return false}if(e&&!r||!e&&r){return false}if(e!==r){return false}if(!xo(n,t)){return false}if(!wo(n,t)){return false}return true}function vo(n,t){const e=ko(t);const r=ko(n);if(!e||!r){return false}if(e.type!==r.type||e.value!==r.value){return false}if(!xo(n,t)){return false}if(!wo(n,t)){return false}return true}function wo(n,t){let e=wn(n);let r=wn(t);if(!e&&!r){return true}if(e&&!r||!e&&r){return false}e=e;r=r;if(r.length!==e.length){return false}for(let n=0;n<r.length;n++){const t=r[n];const o=e[n];if(t.filename!==o.filename||t.lineno!==o.lineno||t.colno!==o.colno||t.function!==o.function){return false}}return true}function xo(n,t){let e=n.fingerprint;let r=t.fingerprint;if(!e&&!r){return true}if(e&&!r||!e&&r){return false}e=e;r=r;try{return!!(e.join("")===r.join(""))}catch(n){return false}}function ko(n){return n.exception&&n.exception.values&&n.exception.values[0]}function Eo(n,t={},e=me()){const{message:r,name:o,email:i,url:s,source:c,associatedEventId:u,tags:a}=n;const f={contexts:{feedback:un({contact_email:i,name:o,message:r,url:s,source:c,associated_event_id:u})},type:"feedback",level:"info",tags:a};const l=e&&e.getClient()||ye();if(l){l.emit("beforeSendFeedback",f,t)}const d=e.captureEvent(f,t);return d}const So=T;let No=0;function $o(){return No>0}function Co(){No++;setTimeout((()=>{No--}))}function To(n,t={},e){if(typeof n!=="function"){return n}try{const t=n.__sentry_wrapped__;if(t){return t}if(tn(n)){return n}}catch(t){return n}const r=function(){const r=Array.prototype.slice.call(arguments);try{if(e&&typeof e==="function"){e.apply(this,arguments)}const o=r.map((n=>To(n,t)));return n.apply(this,o)}catch(n){Co();_e((e=>{e.addEventProcessor((n=>{if(t.mechanism){rt(n,undefined,undefined);ot(n,t.mechanism)}n.extra={...n.extra,arguments:r};return n}));pr(n)}));throw n}};try{for(const t in n){if(Object.prototype.hasOwnProperty.call(n,t)){r[t]=n[t]}}}catch(n){}nn(r,n);Q(n,"__sentry_wrapped__",r);try{const t=Object.getOwnPropertyDescriptor(r,"name");if(t.configurable){Object.defineProperty(r,"name",{get(){return n.name}})}}catch(n){}return r}const Io=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;function jo(n,t){const e=Do(n,t);const r={type:t&&t.name,value:Ao(t)};if(e.length){r.stacktrace={frames:e}}if(r.type===undefined&&r.value===""){r.value="Unrecoverable error caught"}return r}function Lo(n,t,e,r){const o=ye();const i=o&&o.getOptions().normalizeDepth;const s=Yo(t);const c={__serialized__:ut(t,i)};if(s){return{exception:{values:[jo(n,s)]},extra:c}}const u={exception:{values:[{type:d(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Ho(t,{isUnhandledRejection:r})}]},extra:c};if(e){const t=Do(n,e);if(t.length){u.exception.values[0].stacktrace={frames:t}}}return u}function Mo(n,t){return{exception:{values:[jo(n,t)]}}}function Do(n,t){const e=t.stacktrace||t.stack||"";const r=Oo(t);const o=Fo(t);try{return n(e,r,o)}catch(n){}return[]}const Ro=/Minified React error #\d+;/i;function Oo(n){if(n&&Ro.test(n.message)){return 1}return 0}function Fo(n){if(typeof n.framesToPop==="number"){return n.framesToPop}return 0}function Ao(n){const t=n&&n.message;if(!t){return"No error message"}if(t.error&&typeof t.error.message==="string"){return t.error.message}return t}function Bo(n,t,e,r){const o=e&&e.syntheticException||undefined;const i=qo(n,t,o,r);ot(i);i.level="error";if(e&&e.event_id){i.event_id=e.event_id}return mt(i)}function Po(n,t,e="info",r,o){const i=r&&r.syntheticException||undefined;const s=Uo(n,t,i,o);s.level=e;if(r&&r.event_id){s.event_id=r.event_id}return mt(s)}function qo(n,t,e,o,u){let a;if(i(t)&&t.error){const e=t;return Mo(n,e.error)}if(s(t)||c(t)){const r=t;if("stack"in t){a=Mo(n,t)}else{const t=r.name||(s(r)?"DOMError":"DOMException");const i=r.message?`${t}: ${r.message}`:t;a=Uo(n,i,e,o);rt(a,i)}if("code"in r){a.tags={...a.tags,"DOMException.code":`${r.code}`}}return a}if(r(t)){return Mo(n,t)}if(l(t)||d(t)){const r=t;a=Lo(n,r,e,u);ot(a,{synthetic:true});return a}a=Uo(n,t,e,o);rt(a,`${t}`,undefined);ot(a,{synthetic:true});return a}function Uo(n,t,e,r){const o={};if(r&&e){const r=Do(n,e);if(r.length){o.exception={values:[{value:t,stacktrace:{frames:r}}]}}}if(a(t)){const{__sentry_template_string__:n,__sentry_template_values__:e}=t;o.logentry={message:n,params:e};return o}o.message=t;return o}function Ho(n,{isUnhandledRejection:t}){const e=cn(n);const r=t?"promise rejection":"exception";if(i(n)){return`Event \`ErrorEvent\` captured as ${r} with message \`${n.message}\``}if(d(n)){const t=zo(n);return`Event \`${t}\` (type=${n.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${e}`}function zo(n){try{const t=Object.getPrototypeOf(n);return t?t.constructor.name:undefined}catch(n){}}function Yo(n){for(const t in n){if(Object.prototype.hasOwnProperty.call(n,t)){const e=n[t];if(e instanceof Error){return e}}}return undefined}function Go(n,{metadata:t,tunnel:e,dsn:r}){const o={event_id:n.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!e&&!!r&&{dsn:G(r)}};const i=Xo(n);return $t(o,[i])}function Xo(n){const t={type:"user_report"};return[t,n]}class Vo extends Rr{constructor(n){const t={parentSpanIsAlwaysRootSpan:true,...n};const e=So.SENTRY_SDK_SOURCE||Wn();Yr(t,"browser",["browser"],e);super(t);if(t.sendClientReports&&So.document){So.document.addEventListener("visibilitychange",(()=>{if(So.document.visibilityState==="hidden"){this._flushOutcomes()}}))}}eventFromException(n,t){return Bo(this._options.stackParser,n,t,this._options.attachStacktrace)}eventFromMessage(n,t="info",e){return Po(this._options.stackParser,n,t,e,this._options.attachStacktrace)}captureUserFeedback(n){if(!this._isEnabled()){Io&&H.warn("SDK not enabled, will not capture user feedback.");return}const t=Go(n,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}_prepareEvent(n,t,e){n.platform=n.platform||"javascript";return super._prepareEvent(n,t,e)}}const Wo=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;const Jo=T;const Ko=1e3;let Zo;let Qo;let ni;function ti(n){const t="dom";En(t,n);Sn(t,ei)}function ei(){if(!Jo.document){return}const n=Nn.bind(null,"dom");const t=ii(n,true);Jo.document.addEventListener("click",t,false);Jo.document.addEventListener("keypress",t,false);["EventTarget","Node"].forEach((t=>{const e=Jo[t]&&Jo[t].prototype;if(!e||!e.hasOwnProperty||!e.hasOwnProperty("addEventListener")){return}Z(e,"addEventListener",(function(t){return function(e,r,o){if(e==="click"||e=="keypress"){try{const r=this;const i=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{};const s=i[e]=i[e]||{refCount:0};if(!s.handler){const r=ii(n);s.handler=r;t.call(this,e,r,o)}s.refCount++}catch(n){}}return t.call(this,e,r,o)}}));Z(e,"removeEventListener",(function(n){return function(t,e,r){if(t==="click"||t=="keypress"){try{const e=this;const o=e.__sentry_instrumentation_handlers__||{};const i=o[t];if(i){i.refCount--;if(i.refCount<=0){n.call(this,t,i.handler,r);i.handler=undefined;delete o[t]}if(Object.keys(o).length===0){delete e.__sentry_instrumentation_handlers__}}}catch(n){}}return n.call(this,t,e,r)}}))}))}function ri(n){if(n.type!==Qo){return false}try{if(!n.target||n.target._sentryId!==ni){return false}}catch(n){}return true}function oi(n,t){if(n!=="keypress"){return false}if(!t||!t.tagName){return true}if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable){return false}return true}function ii(n,t=false){return e=>{if(!e||e["_sentryCaptured"]){return}const r=si(e);if(oi(e.type,r)){return}Q(e,"_sentryCaptured",true);if(r&&!r._sentryId){Q(r,"_sentryId",nt())}const o=e.type==="keypress"?"input":e.type;if(!ri(e)){const i={event:e,name:o,global:t};n(i);Qo=e.type;ni=r?r._sentryId:undefined}clearTimeout(Zo);Zo=Jo.setTimeout((()=>{ni=undefined;Qo=undefined}),Ko)}}function si(n){try{return n.target}catch(n){return null}}let ci;function ui(n){const t="history";En(t,n);Sn(t,ai)}function ai(){if(!Gt()){return}const n=Jo.onpopstate;Jo.onpopstate=function(...t){const e=Jo.location.href;const r=ci;ci=e;const o={from:r,to:e};Nn("history",o);if(n){try{return n.apply(this,t)}catch(n){}}};function t(n){return function(...t){const e=t.length>2?t[2]:undefined;if(e){const n=ci;const t=String(e);ci=t;const r={from:n,to:t};Nn("history",r)}return n.apply(this,t)}}Z(Jo.history,"pushState",t);Z(Jo.history,"replaceState",t)}const fi={};function li(n){const t=fi[n];if(t){return t}let e=Jo[n];if(jn(e)){return fi[n]=e.bind(Jo)}const r=Jo.document;if(r&&typeof r.createElement==="function"){try{const t=r.createElement("iframe");t.hidden=true;r.head.appendChild(t);const o=t.contentWindow;if(o&&o[n]){e=o[n]}r.head.removeChild(t)}catch(t){Wo&&H.warn(`Could not create sandbox iframe for ${n} check, bailing to window.${n}: `,t)}}if(!e){return e}return fi[n]=e.bind(Jo)}function di(n){fi[n]=undefined}const hi="__sentry_xhr_v3__";function pi(n){const t="xhr";En(t,n);Sn(t,mi)}function mi(){if(!Jo.XMLHttpRequest){return}const n=XMLHttpRequest.prototype;n.open=new Proxy(n.open,{apply(n,t,e){const r=On()*1e3;const o=u(e[0])?e[0].toUpperCase():undefined;const i=bi(e[1]);if(!o||!i){return n.apply(t,e)}t[hi]={method:o,url:i,request_headers:{}};if(o==="POST"&&i.match(/sentry_key/)){t.__sentry_own_request__=true}const s=()=>{const n=t[hi];if(!n){return}if(t.readyState===4){try{n.status_code=t.status}catch(n){}const e={endTimestamp:On()*1e3,startTimestamp:r,xhr:t};Nn("xhr",e)}};if("onreadystatechange"in t&&typeof t.onreadystatechange==="function"){t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(n,t,e){s();return n.apply(t,e)}})}else{t.addEventListener("readystatechange",s)}t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(n,t,e){const[r,o]=e;const i=t[hi];if(i&&u(r)&&u(o)){i.request_headers[r.toLowerCase()]=o}return n.apply(t,e)}});return n.apply(t,e)}});n.send=new Proxy(n.send,{apply(n,t,e){const r=t[hi];if(!r){return n.apply(t,e)}if(e[0]!==undefined){r.body=e[0]}const o={startTimestamp:On()*1e3,xhr:t};Nn("xhr",o);return n.apply(t,e)}})}function bi(n){if(u(n)){return n}try{return n.toString()}catch(n){}return undefined}function gi(n,t=li("fetch")){let e=0;let r=0;function o(o){const i=o.body.length;e+=i;r++;const s={body:o.body,method:"POST",referrerPolicy:"origin",headers:n.headers,keepalive:e<=6e4&&r<15,...n.fetchOptions};if(!t){di("fetch");return bt("No fetch implementation available")}try{return t(n.url,s).then((n=>{e-=i;r--;return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")}}}))}catch(n){di("fetch");e-=i;r--;return bt(n)}}return Hr(n,o)}const _i=30;const yi=50;function vi(n,t,e,r){const o={filename:n,function:t==="<anonymous>"?dn:t,in_app:true};if(e!==undefined){o.lineno=e}if(r!==undefined){o.colno=r}return o}const wi=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;const xi=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;const ki=/\((\S*)(?::(\d+))(?::(\d+))\)/;const Ei=n=>{const t=wi.exec(n);if(t){const[,n,e,r]=t;return vi(n,dn,+e,+r)}const e=xi.exec(n);if(e){const n=e[2]&&e[2].indexOf("eval")===0;if(n){const n=ki.exec(e[2]);if(n){e[2]=n[1];e[3]=n[2];e[4]=n[3]}}const[t,r]=Li(e[1]||dn,e[2]);return vi(r,t,e[3]?+e[3]:undefined,e[4]?+e[4]:undefined)}return};const Si=[_i,Ei];const Ni=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;const $i=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;const Ci=n=>{const t=Ni.exec(n);if(t){const n=t[3]&&t[3].indexOf(" > eval")>-1;if(n){const n=$i.exec(t[3]);if(n){t[1]=t[1]||"eval";t[3]=n[1];t[4]=n[2];t[5]=""}}let e=t[3];let r=t[1]||dn;[r,e]=Li(r,e);return vi(e,r,t[4]?+t[4]:undefined,t[5]?+t[5]:undefined)}return};const Ti=[yi,Ci];const Ii=[Si,Ti];const ji=mn(...Ii);const Li=(n,t)=>{const e=n.indexOf("safari-extension")!==-1;const r=n.indexOf("safari-web-extension")!==-1;return e||r?[n.indexOf("@")!==-1?n.split("@")[0]:dn,e?`safari-extension:${t}`:`safari-web-extension:${t}`]:[n,t]};const Mi=1024;const Di="Breadcrumbs";const Ri=(n={})=>{const t={console:true,dom:true,fetch:true,history:true,sentry:true,xhr:true,...n};return{name:Di,setup(n){if(t.console){$n(Bi(n))}if(t.dom){ti(Ai(n,t.dom))}if(t.xhr){pi(Pi(n))}if(t.fetch){Fn(qi(n))}if(t.history){ui(Ui(n))}if(t.sentry){n.on("beforeSendEvent",Fi(n))}}}};const Oi=Mr(Ri);function Fi(n){return function t(e){if(ye()!==n){return}Xr({category:`sentry.${e.type==="transaction"?"transaction":"event"}`,event_id:e.event_id,level:e.level,message:et(e)},{event:e})}}function Ai(n,t){return function e(r){if(ye()!==n){return}let o;let i;let s=typeof t==="object"?t.serializeAttribute:undefined;let c=typeof t==="object"&&typeof t.maxStringLength==="number"?t.maxStringLength:undefined;if(c&&c>Mi){Io&&H.warn(`\`dom.maxStringLength\` cannot exceed ${Mi}, but a value of ${c} was configured. Sentry will use ${Mi} instead.`);c=Mi}if(typeof s==="string"){s=[s]}try{const n=r.event;const t=Hi(n)?n.target:n;o=M(t,{keyAttrs:s,maxStringLength:c});i=O(t)}catch(n){o="<unknown>"}if(o.length===0){return}const u={category:`ui.${r.name}`,message:o};if(i){u.data={"ui.component_name":i}}Xr(u,{event:r.event,name:r.name,global:r.global})}}function Bi(n){return function t(e){if(ye()!==n){return}const r={category:"console",data:{arguments:e.args,logger:"console"},level:wt(e.level),message:v(e.args," ")};if(e.level==="assert"){if(e.args[0]===false){r.message=`Assertion failed: ${v(e.args.slice(1)," ")||"console.assert"}`;r.data.arguments=e.args.slice(1)}else{return}}Xr(r,{input:e.args,level:e.level})}}function Pi(n){return function t(e){if(ye()!==n){return}const{startTimestamp:r,endTimestamp:o}=e;const i=e.xhr[hi];if(!r||!o||!i){return}const{method:s,url:c,status_code:u,body:a}=i;const f={method:s,url:c,status_code:u};const l={xhr:e.xhr,input:a,startTimestamp:r,endTimestamp:o};Xr({category:"xhr",data:f,type:"http"},l)}}function qi(n){return function t(e){if(ye()!==n){return}const{startTimestamp:r,endTimestamp:o}=e;if(!o){return}if(e.fetchData.url.match(/sentry_key/)&&e.fetchData.method==="POST"){return}if(e.error){const n=e.fetchData;const t={data:e.error,input:e.args,startTimestamp:r,endTimestamp:o};Xr({category:"fetch",data:n,level:"error",type:"http"},t)}else{const n=e.response;const t={...e.fetchData,status_code:n&&n.status};const i={input:e.args,response:n,startTimestamp:r,endTimestamp:o};Xr({category:"fetch",data:t,type:"http"},i)}}}function Ui(n){return function t(e){if(ye()!==n){return}let r=e.from;let o=e.to;const i=yt(So.location.href);let s=r?yt(r):undefined;const c=yt(o);if(!s||!s.path){s=i}if(i.protocol===c.protocol&&i.host===c.host){o=c.relative}if(i.protocol===s.protocol&&i.host===s.host){r=s.relative}Xr({category:"navigation",data:{from:r,to:o}})}}function Hi(n){return!!n&&!!n.target}const zi=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];const Yi="BrowserApiErrors";const Gi=(n={})=>{const t={XMLHttpRequest:true,eventTarget:true,requestAnimationFrame:true,setInterval:true,setTimeout:true,...n};return{name:Yi,setupOnce(){if(t.setTimeout){Z(So,"setTimeout",Vi)}if(t.setInterval){Z(So,"setInterval",Vi)}if(t.requestAnimationFrame){Z(So,"requestAnimationFrame",Wi)}if(t.XMLHttpRequest&&"XMLHttpRequest"in So){Z(XMLHttpRequest.prototype,"send",Ji)}const n=t.eventTarget;if(n){const t=Array.isArray(n)?n:zi;t.forEach(Ki)}}}};const Xi=Mr(Gi);function Vi(n){return function(...t){const e=t[0];t[0]=To(e,{mechanism:{data:{function:vn(n)},handled:false,type:"instrument"}});return n.apply(this,t)}}function Wi(n){return function(t){return n.apply(this,[To(t,{mechanism:{data:{function:"requestAnimationFrame",handler:vn(n)},handled:false,type:"instrument"}})])}}function Ji(n){return function(...t){const e=this;const r=["onload","onerror","onprogress","onreadystatechange"];r.forEach((n=>{if(n in e&&typeof e[n]==="function"){Z(e,n,(function(t){const e={mechanism:{data:{function:n,handler:vn(t)},handled:false,type:"instrument"}};const r=tn(t);if(r){e.mechanism.data.handler=vn(r)}return To(t,e)}))}}));return n.apply(this,t)}}function Ki(n){const t=So;const e=t[n]&&t[n].prototype;if(!e||!e.hasOwnProperty||!e.hasOwnProperty("addEventListener")){return}Z(e,"addEventListener",(function(t){return function(e,r,o){try{if(typeof r.handleEvent==="function"){r.handleEvent=To(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:vn(r),target:n},handled:false,type:"instrument"}})}}catch(n){}return t.apply(this,[e,To(r,{mechanism:{data:{function:"addEventListener",handler:vn(r),target:n},handled:false,type:"instrument"}}),o])}}));Z(e,"removeEventListener",(function(n){return function(t,e,r){const o=e;try{const e=o&&o.__sentry_wrapped__;if(e){n.call(this,t,e,r)}}catch(n){}return n.call(this,t,o,r)}}))}const Zi="GlobalHandlers";const Qi=(n={})=>{const t={onerror:true,onunhandledrejection:true,...n};return{name:Zi,setupOnce(){Error.stackTraceLimit=50},setup(n){if(t.onerror){ts(n);ss("onerror")}if(t.onunhandledrejection){es(n);ss("onunhandledrejection")}}}};const ns=Mr(Qi);function ts(n){Hn((t=>{const{stackParser:e,attachStacktrace:r}=cs();if(ye()!==n||$o()){return}const{msg:o,url:i,line:s,column:c,error:u}=t;const a=is(qo(e,u||o,undefined,r,false),i,s,c);a.level="error";br(a,{originalException:u,mechanism:{handled:false,type:"onerror"}})}))}function es(n){Gn((t=>{const{stackParser:e,attachStacktrace:r}=cs();if(ye()!==n||$o()){return}const o=rs(t);const i=f(o)?os(o):qo(e,o,undefined,r,true);i.level="error";br(i,{originalException:o,mechanism:{handled:false,type:"onunhandledrejection"}})}))}function rs(n){if(f(n)){return n}try{if("reason"in n){return n.reason}if("detail"in n&&"reason"in n.detail){return n.detail.reason}}catch(n){}return n}function os(n){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(n)}`}]}}}function is(n,t,e,r){const o=n.exception=n.exception||{};const i=o.values=o.values||[];const s=i[0]=i[0]||{};const c=s.stacktrace=s.stacktrace||{};const a=c.frames=c.frames||[];const f=isNaN(parseInt(r,10))?undefined:r;const l=isNaN(parseInt(e,10))?undefined:e;const d=u(t)&&t.length>0?t:R();if(a.length===0){a.push({colno:f,filename:d,function:dn,in_app:true,lineno:l})}return n}function ss(n){Io&&H.log(`Global Handler attached: ${n}`)}function cs(){const n=ye();const t=n&&n.getOptions()||{stackParser:()=>[],attachStacktrace:false};return t}const us=Mr((()=>({name:"HttpContext",preprocessEvent(n){if(!So.navigator&&!So.location&&!So.document){return}const t=n.request&&n.request.url||So.location&&So.location.href;const{referrer:e}=So.document||{};const{userAgent:r}=So.navigator||{};const o={...n.request&&n.request.headers,...e&&{Referer:e},...r&&{"User-Agent":r}};const i={...n.request,...t&&{url:t},headers:o};n.request=i}})));const as="cause";const fs=5;const ls="LinkedErrors";const ds=(n={})=>{const t=n.limit||fs;const e=n.key||as;return{name:ls,preprocessEvent(n,r,o){const i=o.getOptions();k(jo,i.stackParser,i.maxValueLength,e,t,n,r)}}};const hs=Mr(ds);function ps(n){return[eo(),Zr(),Xi(),Oi(),ns(),hs(),go(),us()]}function ms(n={}){const t={defaultIntegrations:ps(),release:typeof __SENTRY_RELEASE__==="string"?__SENTRY_RELEASE__:So.SENTRY_RELEASE&&So.SENTRY_RELEASE.id?So.SENTRY_RELEASE.id:undefined,autoSessionTracking:true,sendClientReports:true};if(n.defaultIntegrations==null){delete n.defaultIntegrations}return{...t,...n}}function bs(){const n=typeof So.window!=="undefined"&&So;if(!n){return false}const t=n.chrome?"chrome":"browser";const e=n[t];const r=e&&e.runtime&&e.runtime.id;const o=So.location&&So.location.href||"";const i=["chrome-extension:","moz-extension:","ms-browser-extension:","safari-web-extension:"];const s=!!r&&So===So.top&&i.some((n=>o.startsWith(`${n}//`)));const c=typeof n.nw!=="undefined";return!!r&&!s&&!c}function gs(n={}){const t=ms(n);if(bs()){q((()=>{console.error("[Sentry] You cannot run Sentry this way in a browser extension, check: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}));return}if(Io){if(!In()){H.warn("No Fetch API detected. The Sentry SDK requires a Fetch API compatible environment to send events. Please add a Fetch API polyfill.")}}const e={...t,stackParser:bn(t.stackParser||ji),integrations:Tr(t),transport:t.transport||gi};const r=Pr(Vo,e);if(t.autoSessionTracking){_s()}return r}function _s(){if(typeof So.document==="undefined"){Io&&H.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}_r({ignoreDuration:true});wr();ui((({from:n,to:t})=>{if(n!==undefined&&n!==t){_r({ignoreDuration:true});wr()}}))}const ys={replayIntegration:"replay",replayCanvasIntegration:"replay-canvas",feedbackIntegration:"feedback",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot",captureConsoleIntegration:"captureconsole",contextLinesIntegration:"contextlines",linkedErrorsIntegration:"linkederrors",debugIntegration:"debug",dedupeIntegration:"dedupe",extraErrorDataIntegration:"extraerrordata",httpClientIntegration:"httpclient",reportingObserverIntegration:"reportingobserver",rewriteFramesIntegration:"rewriteframes",sessionTimingIntegration:"sessiontiming",browserProfilingIntegration:"browserprofiling"};const vs=So;async function ws(n,t){const e=ys[n];const r=vs.Sentry=vs.Sentry||{};if(!e){throw new Error(`Cannot lazy load integration: ${n}`)}const o=r[n];if(typeof o==="function"&&!("_isShim"in o)){return o}const i=xs(e);const s=So.document.createElement("script");s.src=i;s.crossOrigin="anonymous";s.referrerPolicy="origin";if(t){s.setAttribute("nonce",t)}const c=new Promise(((n,t)=>{s.addEventListener("load",(()=>n()));s.addEventListener("error",t)}));So.document.body.appendChild(s);try{await c}catch(t){throw new Error(`Error when loading integration: ${n}`)}const u=r[n];if(typeof u!=="function"){throw new Error(`Could not load integration: ${n}`)}return u}function xs(n){const t=ye();const e=t&&t.getOptions();const r=e&&e.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${C}/${n}.min.js`,r).toString()}const ks=T;const Es=ks.document;const Ss=ks.navigator;const Ns="Report a Bug";const $s="Cancel";const Cs="Send Bug Report";const Ts="Confirm";const Is="Report a Bug";const js="your.email@example.org";const Ls="Email";const Ms="What's the bug? What did you expect?";const Ds="Description";const Rs="Your Name";const Os="Name";const Fs="Thank you for your report!";const As="(required)";const Bs="Add a screenshot";const Ps="Remove screenshot";const qs="widget";const Us="api";const Hs=5e3;const zs=(n,t={includeReplay:true})=>{if(!n.message){throw new Error("Unable to submit feedback with empty message")}const e=ye();if(!e){throw new Error("No client setup, cannot send feedback.")}if(n.tags&&Object.keys(n.tags).length){me().setTags(n.tags)}const r=Eo({source:Us,url:R(),...n},t);return new Promise(((n,t)=>{const o=setTimeout((()=>t("Unable to determine if Feedback was correctly sent.")),5e3);const i=e.on("afterSendEvent",((e,s)=>{if(e.event_id!==r){return}clearTimeout(o);i();if(s&&typeof s.statusCode==="number"&&s.statusCode>=200&&s.statusCode<300){n(r)}if(s&&typeof s.statusCode==="number"&&s.statusCode===0){return t("Unable to send Feedback. This is because of network issues, or because you are using an ad-blocker.")}if(s&&typeof s.statusCode==="number"&&s.statusCode===403){return t("Unable to send Feedback. This could be because this domain is not in your list of allowed domains.")}return t("Unable to send Feedback. This could be because of network issues, or because you are using an ad-blocker")}))}))};const Ys=typeof __SENTRY_DEBUG__==="undefined"||__SENTRY_DEBUG__;function Gs(){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Ss.userAgent)){return false}if(/Macintosh/i.test(Ss.userAgent)&&Ss.maxTouchPoints&&Ss.maxTouchPoints>1){return false}if(!isSecureContext){return false}return true}function Xs(n,t){return{...n,...t,tags:{...n.tags,...t.tags},onFormOpen:()=>{t.onFormOpen&&t.onFormOpen();n.onFormOpen&&n.onFormOpen()},onFormClose:()=>{t.onFormClose&&t.onFormClose();n.onFormClose&&n.onFormClose()},onSubmitSuccess:e=>{t.onSubmitSuccess&&t.onSubmitSuccess(e);n.onSubmitSuccess&&n.onSubmitSuccess(e)},onSubmitError:e=>{t.onSubmitError&&t.onSubmitError(e);n.onSubmitError&&n.onSubmitError(e)},onFormSubmitted:()=>{t.onFormSubmitted&&t.onFormSubmitted();n.onFormSubmitted&&n.onFormSubmitted()},themeDark:{...n.themeDark,...t.themeDark},themeLight:{...n.themeLight,...t.themeLight}}}function Vs(n){const t=Es.createElement("style");t.textContent=`\n.widget__actor {\n position: fixed;\n z-index: var(--z-index);\n margin: var(--page-margin);\n inset: var(--actor-inset);\n\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 16px;\n\n font-family: inherit;\n font-size: var(--font-size);\n font-weight: 600;\n line-height: 1.14em;\n text-decoration: none;\n\n background: var(--actor-background, var(--background));\n border-radius: var(--actor-border-radius, 1.7em/50%);\n border: var(--actor-border, var(--border));\n box-shadow: var(--actor-box-shadow, var(--box-shadow));\n color: var(--actor-color, var(--foreground));\n fill: var(--actor-color, var(--foreground));\n cursor: pointer;\n opacity: 1;\n transition: transform 0.2s ease-in-out;\n transform: translate(0, 0) scale(1);\n}\n.widget__actor[aria-hidden="true"] {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n transform: translate(0, 16px) scale(0.98);\n}\n\n.widget__actor:hover {\n background: var(--actor-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n\n.widget__actor svg {\n width: 1.14em;\n height: 1.14em;\n}\n\n@media (max-width: 600px) {\n .widget__actor span {\n display: none;\n }\n}\n`;if(n){t.setAttribute("nonce",n)}return t}function Ws(n,t){Object.entries(t).forEach((([t,e])=>{n.setAttributeNS(null,t,e)}));return n}const Js=20;const Ks="http://www.w3.org/2000/svg";function Zs(){const n=n=>ks.document.createElementNS(Ks,n);const t=Ws(n("svg"),{width:`${Js}`,height:`${Js}`,viewBox:`0 0 ${Js} ${Js}`,fill:"var(--foreground)"});const e=Ws(n("g"),{clipPath:"url(#clip0_57_80)"});const r=Ws(n("path"),{["fill-rule"]:"evenodd",["clip-rule"]:"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(e).appendChild(r);const o=n("defs");const i=Ws(n("clipPath"),{id:"clip0_57_80"});const s=Ws(n("rect"),{width:`${Js}`,height:`${Js}`,fill:"white"});i.appendChild(s);o.appendChild(i);t.appendChild(o).appendChild(i).appendChild(s);return t}function Qs({triggerLabel:n,triggerAriaLabel:t,shadow:e,styleNonce:r}){const o=Es.createElement("button");o.type="button";o.className="widget__actor";o.ariaHidden="false";o.ariaLabel=t||n||Ns;o.appendChild(Zs());if(n){const t=Es.createElement("span");t.appendChild(Es.createTextNode(n));o.appendChild(t)}const i=Vs(r);return{el:o,appendToDom(){e.appendChild(i);e.appendChild(o)},removeFromDom(){e.removeChild(o);e.removeChild(i)},show(){o.ariaHidden="false"},hide(){o.ariaHidden="true"}}}const nc="rgba(88, 74, 192, 1)";const tc={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:nc,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"};const ec={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:nc,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function rc(n){return`\n --foreground: ${n.foreground};\n --background: ${n.background};\n --accent-foreground: ${n.accentForeground};\n --accent-background: ${n.accentBackground};\n --success-color: ${n.successColor};\n --error-color: ${n.errorColor};\n --border: ${n.border};\n --box-shadow: ${n.boxShadow};\n --outline: ${n.outline};\n --interactive-filter: ${n.interactiveFilter};\n `}function oc({colorScheme:n,themeDark:t,themeLight:e,styleNonce:r}){const o=Es.createElement("style");o.textContent=`\n:host {\n --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;\n --font-size: 14px;\n --z-index: 100000;\n\n --page-margin: 16px;\n --inset: auto 0 0 auto;\n --actor-inset: var(--inset);\n\n font-family: var(--font-family);\n font-size: var(--font-size);\n\n ${n!=="system"?"color-scheme: only light;":""}\n\n ${rc(n==="dark"?{...ec,...t}:{...tc,...e})}\n}\n\n${n==="system"?`\n@media (prefers-color-scheme: dark) {\n :host {\n ${rc({...ec,...t})}\n }\n}`:""}\n}\n`;if(r){o.setAttribute("nonce",r)}return o}const ic=({lazyLoadIntegration:n,getModalIntegration:t,getScreenshotIntegration:e})=>{const r=({id:r="sentry-feedback",autoInject:o=true,showBranding:i=true,isEmailRequired:s=false,isNameRequired:c=false,showEmail:u=true,showName:a=true,enableScreenshot:f=true,useSentryUser:l={email:"email",name:"username"},tags:d,styleNonce:h,scriptNonce:p,colorScheme:m="system",themeLight:b={},themeDark:g={},addScreenshotButtonLabel:_=Bs,cancelButtonLabel:y=$s,confirmButtonLabel:v=Ts,emailLabel:w=Ls,emailPlaceholder:x=js,formTitle:k=Is,isRequiredLabel:E=As,messageLabel:S=Ds,messagePlaceholder:N=Ms,nameLabel:$=Os,namePlaceholder:C=Rs,removeScreenshotButtonLabel:T=Ps,submitButtonLabel:I=Cs,successMessageText:j=Fs,triggerLabel:L=Ns,triggerAriaLabel:M="",onFormOpen:D,onFormClose:R,onSubmitSuccess:O,onSubmitError:F,onFormSubmitted:A}={})=>{const B={id:r,autoInject:o,showBranding:i,isEmailRequired:s,isNameRequired:c,showEmail:u,showName:a,enableScreenshot:f,useSentryUser:l,tags:d,styleNonce:h,scriptNonce:p,colorScheme:m,themeDark:g,themeLight:b,triggerLabel:L,triggerAriaLabel:M,cancelButtonLabel:y,submitButtonLabel:I,confirmButtonLabel:v,formTitle:k,emailLabel:w,emailPlaceholder:x,messageLabel:S,messagePlaceholder:N,nameLabel:$,namePlaceholder:C,successMessageText:j,isRequiredLabel:E,addScreenshotButtonLabel:_,removeScreenshotButtonLabel:T,onFormClose:R,onFormOpen:D,onSubmitError:F,onSubmitSuccess:O,onFormSubmitted:A};let P=null;let q=[];const U=n=>{if(!P){const t=Es.createElement("div");t.id=String(n.id);Es.body.appendChild(t);P=t.attachShadow({mode:"open"});P.appendChild(oc(n))}return P};const z=async(t,e,r)=>{const o=ye();const i=o&&o.getIntegrationByName(t);if(i){return i}const s=e&&e()||await n(r,p);const c=s();o&&o.addIntegration(c);return c};const Y=async n=>{const r=n.enableScreenshot&&Gs();const[o,i]=await Promise.all([z("FeedbackModal",t,"feedbackModalIntegration"),r?z("FeedbackScreenshot",e,"feedbackScreenshotIntegration"):undefined]);if(!o){Ys&&H.error("[Feedback] Missing feedback modal integration. Try using `feedbackSyncIntegration` in your `Sentry.init`.");throw new Error("[Feedback] Missing feedback modal integration!")}if(r&&!i){Ys&&H.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const s=o.createDialog({options:{...n,onFormClose:()=>{s&&s.close();n.onFormClose&&n.onFormClose()},onFormSubmitted:()=>{s&&s.close();n.onFormSubmitted&&n.onFormSubmitted()}},screenshotIntegration:r?i:undefined,sendFeedback:zs,shadow:U(n)});return s};const G=(n,t={})=>{const e=Xs(B,t);const r=typeof n==="string"?Es.querySelector(n):typeof n.addEventListener==="function"?n:null;if(!r){Ys&&H.error("[Feedback] Unable to attach to target element");throw new Error("Unable to attach to target element")}let o=null;const i=async()=>{if(!o){o=await Y({...e,onFormSubmitted:()=>{o&&o.removeFromDom();e.onFormSubmitted&&e.onFormSubmitted()}})}o.appendToDom();o.open()};r.addEventListener("click",i);const s=()=>{q=q.filter((n=>n!==s));o&&o.removeFromDom();o=null;r.removeEventListener("click",i)};q.push(s);return s};const X=(n={})=>{const t=Xs(B,n);const e=U(t);const r=Qs({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:e,styleNonce:h});G(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}});return r};return{name:"Feedback",setupOnce(){if(!Kn()||!B.autoInject){return}if(Es.readyState==="loading"){Es.addEventListener("DOMContentLoaded",(()=>X().appendToDom()))}else{X().appendToDom()}},attachTo:G,createWidget(n={}){const t=X(Xs(B,n));t.appendToDom();return t},async createForm(n={}){return Y(Xs(B,n))},remove(){if(P){P.parentElement&&P.parentElement.remove();P=null}q.forEach((n=>n()));q=[]}}};return r};var sc,cc,uc,ac,fc,lc,dc,hc={},pc=[],mc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,bc=Array.isArray;function gc(n,t){for(var e in t)n[e]=t[e];return n}function _c(n){var t=n.parentNode;t&&t.removeChild(n)}function yc(n,t,e){var r,o,i,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?sc.call(arguments,2):e),"function"==typeof n&&null!=n.defaultProps)for(i in n.defaultProps)void 0===s[i]&&(s[i]=n.defaultProps[i]);return vc(n,s,r,o,null)}function vc(n,t,e,r,o){var i={type:n,props:t,key:e,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++uc:o,__i:-1,__u:0};return null==o&&null!=cc.vnode&&cc.vnode(i),i}function wc(n){return n.children}function xc(n,t){this.props=n,this.context=t}function kc(n,t){if(null==t)return n.__?kc(n.__,n.__i+1):null;for(var e;t<n.__k.length;t++)if(null!=(e=n.__k[t])&&null!=e.__e)return e.__e;return"function"==typeof n.type?kc(n):null}function Ec(n,t,e){var r,o=n.__v,i=o.__e,s=n.__P;if(s)return(r=gc({},o)).__v=o.__v+1,cc.vnode&&cc.vnode(r),Oc(s,r,o,n.__n,void 0!==s.ownerSVGElement,32&o.__u?[i]:null,t,null==i?kc(o):i,!!(32&o.__u),e),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&Sc(r),r}function Sc(n){var t,e;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,t=0;t<n.__k.length;t++)if(null!=(e=n.__k[t])&&null!=e.__e){n.__e=n.__c.base=e.__e;break}return Sc(n)}}function Nc(n){(!n.__d&&(n.__d=!0)&&ac.push(n)&&!$c.__r++||fc!==cc.debounceRendering)&&((fc=cc.debounceRendering)||lc)($c)}function $c(){var n,t,e,r=[],o=[];for(ac.sort(dc);n=ac.shift();)n.__d&&(e=ac.length,t=Ec(n,r,o)||t,0===e||ac.length>e?(Fc(r,t,o),o.length=r.length=0,t=void 0,ac.sort(dc)):t&&cc.__c&&cc.__c(t,pc));t&&Fc(r,t,o),$c.__r=0}function Cc(n,t,e,r,o,i,s,c,u,a,f){var l,d,h,p,m,b=r&&r.__k||pc,g=t.length;for(e.__d=u,Tc(e,t,b),u=e.__d,l=0;l<g;l++)null!=(h=e.__k[l])&&"boolean"!=typeof h&&"function"!=typeof h&&(d=-1===h.__i?hc:b[h.__i]||hc,h.__i=l,Oc(n,h,d,o,i,s,c,u,a,f),p=h.__e,h.ref&&d.ref!=h.ref&&(d.ref&&Bc(d.ref,null,h),f.push(h.ref,h.__c||p,h)),null==m&&null!=p&&(m=p),65536&h.__u||d.__k===h.__k?u=Ic(h,u,n):"function"==typeof h.type&&void 0!==h.__d?u=h.__d:p&&(u=p.nextSibling),h.__d=void 0,h.__u&=-196609);e.__d=u,e.__e=m}function Tc(n,t,e){var r,o,i,s,c,u=t.length,a=e.length,f=a,l=0;for(n.__k=[],r=0;r<u;r++)null!=(o=n.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?vc(null,o,null,null,o):bc(o)?vc(wc,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?vc(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=n,o.__b=n.__b+1,c=jc(o,e,s=r+l,f),o.__i=c,i=null,-1!==c&&(f--,(i=e[c])&&(i.__u|=131072)),null==i||null===i.__v?(-1==c&&l--,"function"!=typeof o.type&&(o.__u|=65536)):c!==s&&(c===s+1?l++:c>s?f>u-s?l+=c-s:l--:l=c<s&&c==s-1?c-s:0,c!==r+l&&(o.__u|=65536))):(i=e[r])&&null==i.key&&i.__e&&(i.__e==n.__d&&(n.__d=kc(i)),Pc(i,i,!1),e[r]=null,f--);if(f)for(r=0;r<a;r++)null!=(i=e[r])&&0==(131072&i.__u)&&(i.__e==n.__d&&(n.__d=kc(i)),Pc(i,i))}function Ic(n,t,e){var r,o;if("function"==typeof n.type){for(r=n.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=n,t=Ic(r[o],t,e));return t}n.__e!=t&&(e.insertBefore(n.__e,t||null),t=n.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function jc(n,t,e,r){var o=n.key,i=n.type,s=e-1,c=e+1,u=t[e];if(null===u||u&&o==u.key&&i===u.type)return e;if(r>(null!=u&&0==(131072&u.__u)?1:0))for(;s>=0||c<t.length;){if(s>=0){if((u=t[s])&&0==(131072&u.__u)&&o==u.key&&i===u.type)return s;s--}if(c<t.length){if((u=t[c])&&0==(131072&u.__u)&&o==u.key&&i===u.type)return c;c++}}return-1}function Lc(n,t,e){"-"===t[0]?n.setProperty(t,null==e?"":e):n[t]=null==e?"":"number"!=typeof e||mc.test(t)?e:e+"px"}function Mc(n,t,e,r,o){var i;n:if("style"===t)if("string"==typeof e)n.style.cssText=e;else{if("string"==typeof r&&(n.style.cssText=r=""),r)for(t in r)e&&t in e||Lc(n.style,t,"");if(e)for(t in e)r&&e[t]===r[t]||Lc(n.style,t,e[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in n?t.toLowerCase().slice(2):t.slice(2),n.l||(n.l={}),n.l[t+i]=e,e?r?e.u=r.u:(e.u=Date.now(),n.addEventListener(t,i?Rc:Dc,i)):n.removeEventListener(t,i?Rc:Dc,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in n)try{n[t]=null==e?"":e;break n}catch(n){}"function"==typeof e||(null==e||!1===e&&"-"!==t[4]?n.removeAttribute(t):n.setAttribute(t,e))}}function Dc(n){if(this.l){var t=this.l[n.type+!1];if(n.t){if(n.t<=t.u)return}else n.t=Date.now();return t(cc.event?cc.event(n):n)}}function Rc(n){if(this.l)return this.l[n.type+!0](cc.event?cc.event(n):n)}function Oc(n,t,e,r,o,i,s,c,u,a){var f,l,d,h,p,m,b,g,_,y,v,w,x,k,E,S=t.type;if(void 0!==t.constructor)return null;128&e.__u&&(u=!!(32&e.__u),i=[c=t.__e=e.__e]),(f=cc.__b)&&f(t);n:if("function"==typeof S)try{if(g=t.props,_=(f=S.contextType)&&r[f.__c],y=f?_?_.props.value:f.__:r,e.__c?b=(l=t.__c=e.__c).__=l.__E:("prototype"in S&&S.prototype.render?t.__c=l=new S(g,y):(t.__c=l=new xc(g,y),l.constructor=S,l.render=qc),_&&_.sub(l),l.props=g,l.state||(l.state={}),l.context=y,l.__n=r,d=l.__d=!0,l.__h=[],l._sb=[]),null==l.__s&&(l.__s=l.state),null!=S.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=gc({},l.__s)),gc(l.__s,S.getDerivedStateFromProps(g,l.__s))),h=l.props,p=l.state,l.__v=t,d)null==S.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==S.getDerivedStateFromProps&&g!==h&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(g,y),!l.__e&&(null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(g,l.__s,y)||t.__v===e.__v)){for(t.__v!==e.__v&&(l.props=g,l.state=l.__s,l.__d=!1),t.__e=e.__e,t.__k=e.__k,t.__k.forEach((function(n){n&&(n.__=t)})),v=0;v<l._sb.length;v++)l.__h.push(l._sb[v]);l._sb=[],l.__h.length&&s.push(l);break n}null!=l.componentWillUpdate&&l.componentWillUpdate(g,l.__s,y),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(h,p,m)}))}if(l.context=y,l.props=g,l.__P=n,l.__e=!1,w=cc.__r,x=0,"prototype"in S&&S.prototype.render){for(l.state=l.__s,l.__d=!1,w&&w(t),f=l.render(l.props,l.state,l.context),k=0;k<l._sb.length;k++)l.__h.push(l._sb[k]);l._sb=[]}else do{l.__d=!1,w&&w(t),f=l.render(l.props,l.state,l.context),l.state=l.__s}while(l.__d&&++x<25);l.state=l.__s,null!=l.getChildContext&&(r=gc(gc({},r),l.getChildContext())),d||null==l.getSnapshotBeforeUpdate||(m=l.getSnapshotBeforeUpdate(h,p)),Cc(n,bc(E=null!=f&&f.type===wc&&null==f.key?f.props.children:f)?E:[E],t,e,r,o,i,s,c,u,a),l.base=t.__e,t.__u&=-161,l.__h.length&&s.push(l),b&&(l.__E=l.__=null)}catch(n){t.__v=null,u||null!=i?(t.__e=c,t.__u|=u?160:32,i[i.indexOf(c)]=null):(t.__e=e.__e,t.__k=e.__k),cc.__e(n,t,e)}else null==i&&t.__v===e.__v?(t.__k=e.__k,t.__e=e.__e):t.__e=Ac(e.__e,t,e,r,o,i,s,u,a);(f=cc.diffed)&&f(t)}function Fc(n,t,e){for(var r=0;r<e.length;r++)Bc(e[r],e[++r],e[++r]);cc.__c&&cc.__c(t,n),n.some((function(t){try{n=t.__h,t.__h=[],n.some((function(n){n.call(t)}))}catch(n){cc.__e(n,t.__v)}}))}function Ac(n,t,e,r,o,i,s,c,u){var a,f,l,d,h,p,m,b=e.props,g=t.props,_=t.type;if("svg"===_&&(o=!0),null!=i)for(a=0;a<i.length;a++)if((h=i[a])&&"setAttribute"in h==!!_&&(_?h.localName===_:3===h.nodeType)){n=h,i[a]=null;break}if(null==n){if(null===_)return document.createTextNode(g);n=o?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,g.is&&g),i=null,c=!1}if(null===_)b===g||c&&n.data===g||(n.data=g);else{if(i=i&&sc.call(n.childNodes),b=e.props||hc,!c&&null!=i)for(b={},a=0;a<n.attributes.length;a++)b[(h=n.attributes[a]).name]=h.value;for(a in b)h=b[a],"children"==a||("dangerouslySetInnerHTML"==a?l=h:"key"===a||a in g||Mc(n,a,null,h,o));for(a in g)h=g[a],"children"==a?d=h:"dangerouslySetInnerHTML"==a?f=h:"value"==a?p=h:"checked"==a?m=h:"key"===a||c&&"function"!=typeof h||b[a]===h||Mc(n,a,h,b[a],o);if(f)c||l&&(f.__html===l.__html||f.__html===n.innerHTML)||(n.innerHTML=f.__html),t.__k=[];else if(l&&(n.innerHTML=""),Cc(n,bc(d)?d:[d],t,e,r,o&&"foreignObject"!==_,i,s,i?i[0]:e.__k&&kc(e,0),c,u),null!=i)for(a=i.length;a--;)null!=i[a]&&_c(i[a]);c||(a="value",void 0!==p&&(p!==n[a]||"progress"===_&&!p||"option"===_&&p!==b[a])&&Mc(n,a,p,b[a],!1),a="checked",void 0!==m&&m!==n[a]&&Mc(n,a,m,b[a],!1))}return n}function Bc(n,t,e){try{"function"==typeof n?n(t):n.current=t}catch(n){cc.__e(n,e)}}function Pc(n,t,e){var r,o;if(cc.unmount&&cc.unmount(n),(r=n.ref)&&(r.current&&r.current!==n.__e||Bc(r,null,t)),null!=(r=n.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(n){cc.__e(n,t)}r.base=r.__P=null,n.__c=void 0}if(r=n.__k)for(o=0;o<r.length;o++)r[o]&&Pc(r[o],t,e||"function"!=typeof n.type);e||null==n.__e||_c(n.__e),n.__=n.__e=n.__d=void 0}function qc(n,t,e){return this.constructor(n,e)}function Uc(n,t,e){var r,o,i,s;cc.__&&cc.__(n,t),o=(r="function"==typeof e)?null:e&&e.__k||t.__k,i=[],s=[],Oc(t,n=(!r&&e||t).__k=yc(wc,null,[n]),o||hc,hc,void 0!==t.ownerSVGElement,!r&&e?[e]:o?null:t.firstChild?sc.call(t.childNodes):null,i,!r&&e?e:o?o.__e:t.firstChild,r,s),n.__d=void 0,Fc(i,n,s)}sc=pc.slice,cc={__e:function(n,t,e,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(n)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(n,r||{}),s=o.__d),s)return o.__E=o}catch(t){n=t}throw n}},uc=0,xc.prototype.setState=function(n,t){var e;e=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=gc({},this.state),"function"==typeof n&&(n=n(gc({},e),this.props)),n&&gc(e,n),null!=n&&this.__v&&(t&&this._sb.push(t),Nc(this))},xc.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),Nc(this))},xc.prototype.render=wc,ac=[],lc="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,dc=function(n,t){return n.__v.__b-t.__v.__b},$c.__r=0;var Hc,zc,Yc,Gc,Xc=0,Vc=[],Wc=[],Jc=cc,Kc=Jc.__b,Zc=Jc.__r,Qc=Jc.diffed,nu=Jc.__c,tu=Jc.unmount,eu=Jc.__;function ru(n,t){Jc.__h&&Jc.__h(zc,n,Xc||t),Xc=0;var e=zc.__H||(zc.__H={__:[],__h:[]});return n>=e.__.length&&e.__.push({__V:Wc}),e.__[n]}function ou(n){return Xc=1,iu(xu,n)}function iu(n,t,e){var r=ru(Hc++,2);if(r.t=n,!r.__c&&(r.__=[e?e(t):xu(void 0,t),function(n){var t=r.__N?r.__N[0]:r.__[0],e=r.t(t,n);t!==e&&(r.__N=[e,r.__[1]],r.__c.setState({}))}],r.__c=zc,!zc.u)){var o=function(n,t,e){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(n){return!!n.__c}));if(o.every((function(n){return!n.__N})))return!i||i.call(this,n,t,e);var s=!1;return o.forEach((function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(s=!0)}})),!(!s&&r.__c.props===n)&&(!i||i.call(this,n,t,e))};zc.u=!0;var i=zc.shouldComponentUpdate,s=zc.componentWillUpdate;zc.componentWillUpdate=function(n,t,e){if(this.__e){var r=i;i=void 0,o(n,t,e),i=r}s&&s.call(this,n,t,e)},zc.shouldComponentUpdate=o}return r.__N||r.__}function su(n,t){var e=ru(Hc++,3);!Jc.__s&&wu(e.__H,t)&&(e.__=n,e.i=t,zc.__H.__h.push(e))}function cu(n,t){var e=ru(Hc++,4);!Jc.__s&&wu(e.__H,t)&&(e.__=n,e.i=t,zc.__h.push(e))}function uu(n){return Xc=5,fu((function(){return{current:n}}),[])}function au(n,t,e){Xc=6,cu((function(){return"function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0}),null==e?e:e.concat(n))}function fu(n,t){var e=ru(Hc++,7);return wu(e.__H,t)?(e.__V=n(),e.i=t,e.__h=n,e.__V):e.__}function lu(n,t){return Xc=8,fu((function(){return n}),t)}function du(n){var t=zc.context[n.__c],e=ru(Hc++,9);return e.c=n,t?(null==e.__&&(e.__=!0,t.sub(zc)),t.props.value):n.__}function hu(n,t){Jc.useDebugValue&&Jc.useDebugValue(t?t(n):n)}function pu(n){var t=ru(Hc++,10),e=ou();return t.__=n,zc.componentDidCatch||(zc.componentDidCatch=function(n,r){t.__&&t.__(n,r),e[1](n)}),[e[0],function(){e[1](void 0)}]}function mu(){var n=ru(Hc++,11);if(!n.__){for(var t=zc.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var e=t.__m||(t.__m=[0,0]);n.__="P"+e[0]+"-"+e[1]++}return n.__}function bu(){for(var n;n=Vc.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(yu),n.__H.__h.forEach(vu),n.__H.__h=[]}catch(t){n.__H.__h=[],Jc.__e(t,n.__v)}}Jc.__b=function(n){zc=null,Kc&&Kc(n)},Jc.__=function(n,t){t.__k&&t.__k.__m&&(n.__m=t.__k.__m),eu&&eu(n,t)},Jc.__r=function(n){Zc&&Zc(n),Hc=0;var t=(zc=n.__c).__H;t&&(Yc===zc?(t.__h=[],zc.__h=[],t.__.forEach((function(n){n.__N&&(n.__=n.__N),n.__V=Wc,n.__N=n.i=void 0}))):(t.__h.forEach(yu),t.__h.forEach(vu),t.__h=[],Hc=0)),Yc=zc},Jc.diffed=function(n){Qc&&Qc(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Vc.push(t)&&Gc===Jc.requestAnimationFrame||((Gc=Jc.requestAnimationFrame)||_u)(bu)),t.__H.__.forEach((function(n){n.i&&(n.__H=n.i),n.__V!==Wc&&(n.__=n.__V),n.i=void 0,n.__V=Wc}))),Yc=zc=null},Jc.__c=function(n,t){t.some((function(n){try{n.__h.forEach(yu),n.__h=n.__h.filter((function(n){return!n.__||vu(n)}))}catch(e){t.some((function(n){n.__h&&(n.__h=[])})),t=[],Jc.__e(e,n.__v)}})),nu&&nu(n,t)},Jc.unmount=function(n){tu&&tu(n);var t,e=n.__c;e&&e.__H&&(e.__H.__.forEach((function(n){try{yu(n)}catch(n){t=n}})),e.__H=void 0,t&&Jc.__e(t,e.__v))};var gu="function"==typeof requestAnimationFrame;function _u(n){var t,e=function(){clearTimeout(r),gu&&cancelAnimationFrame(t),setTimeout(n)},r=setTimeout(e,100);gu&&(t=requestAnimationFrame(e))}function yu(n){var t=zc,e=n.__c;"function"==typeof e&&(n.__c=void 0,e()),zc=t}function vu(n){var t=zc;n.__c=n.__(),zc=t}function wu(n,t){return!n||n.length!==t.length||t.some((function(t,e){return t!==n[e]}))}function xu(n,t){return"function"==typeof t?t(n):t}const ku={__proto__:null,useCallback:lu,useContext:du,useDebugValue:hu,useEffect:su,useErrorBoundary:pu,useId:mu,useImperativeHandle:au,useLayoutEffect:cu,useMemo:fu,useReducer:iu,useRef:uu,useState:ou};const Eu="http://www.w3.org/2000/svg";function Su(){const n=n=>Es.createElementNS(Eu,n);const t=Ws(n("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"});const e=Ws(n("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});t.appendChild(e);return t}const Nu="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/DialogHeader.tsx";function $u({options:n}){const t=fu((()=>({__html:Su().outerHTML})),[]);return yc("h2",{class:"dialog__header",__self:this,__source:{fileName:Nu,lineNumber:16}},n.formTitle,n.showBranding?yc("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t,__self:this,__source:{fileName:Nu,lineNumber:19}}):null)}function Cu(n,t){const e=[];if(t.isNameRequired&&!n.name){e.push(t.nameLabel)}if(t.isEmailRequired&&!n.email){e.push(t.emailLabel)}if(!n.message){e.push(t.messageLabel)}return e}const Tu="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Form.tsx";function Iu(n,t){const e=n.get(t);if(typeof e==="string"){return e.trim()}return""}function ju({options:n,defaultEmail:t,defaultName:e,onFormClose:r,onSubmit:o,onSubmitSuccess:i,onSubmitError:s,showEmail:c,showName:u,screenshotInput:a}){const{tags:f,addScreenshotButtonLabel:l,removeScreenshotButtonLabel:d,cancelButtonLabel:h,emailLabel:p,emailPlaceholder:m,isEmailRequired:b,isNameRequired:g,messageLabel:_,messagePlaceholder:y,nameLabel:v,namePlaceholder:w,submitButtonLabel:x,isRequiredLabel:k}=n;const[E,S]=ou(null);const[N,$]=ou(false);const C=a&&a.input;const[T,I]=ou(null);const j=lu((n=>{I(n);$(false)}),[]);const L=lu((n=>{const t=Cu(n,{emailLabel:p,isEmailRequired:b,isNameRequired:g,messageLabel:_,nameLabel:v});if(t.length>0){S(`Please enter in the following required fields: ${t.join(", ")}`)}else{S(null)}return t.length===0}),[p,b,g,_,v]);const M=lu((async n=>{try{n.preventDefault();if(!(n.target instanceof HTMLFormElement)){return}const t=new FormData(n.target);const e=await(a&&N?a.value():undefined);const r={name:Iu(t,"name"),email:Iu(t,"email"),message:Iu(t,"message"),attachments:e?[e]:undefined};if(!L(r)){return}try{await o({name:r.name,email:r.email,message:r.message,source:qs,tags:f},{attachments:r.attachments});i(r)}catch(n){Ys&&H.error(n);S(n);s(n)}}catch(n){}}),[a&&N,i,s]);return yc("form",{class:"form",onSubmit:M,__self:this,__source:{fileName:Tu,lineNumber:144}},C&&N?yc(C,{onError:j,__self:this,__source:{fileName:Tu,lineNumber:146}}):null,yc("div",{class:"form__right","data-sentry-feedback":true,__self:this,__source:{fileName:Tu,lineNumber:149}},yc("div",{class:"form__top",__self:this,__source:{fileName:Tu,lineNumber:150}},E?yc("div",{class:"form__error-container",__self:this,__source:{fileName:Tu,lineNumber:151}},E):null,u?yc("label",{for:"name",class:"form__label",__self:this,__source:{fileName:Tu,lineNumber:154}},yc(Lu,{label:v,isRequiredLabel:k,isRequired:g,__self:this,__source:{fileName:Tu,lineNumber:155}}),yc("input",{class:"form__input",defaultValue:e,id:"name",name:"name",placeholder:w,required:g,type:"text",__self:this,__source:{fileName:Tu,lineNumber:156}})):yc("input",{"aria-hidden":true,value:e,name:"name",type:"hidden",__self:this,__source:{fileName:Tu,lineNumber:167}}),c?yc("label",{for:"email",class:"form__label",__self:this,__source:{fileName:Tu,lineNumber:171}},yc(Lu,{label:p,isRequiredLabel:k,isRequired:b,__self:this,__source:{fileName:Tu,lineNumber:172}}),yc("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:b,type:"email",__self:this,__source:{fileName:Tu,lineNumber:173}})):yc("input",{"aria-hidden":true,value:t,name:"email",type:"hidden",__self:this,__source:{fileName:Tu,lineNumber:184}}),yc("label",{for:"message",class:"form__label",__self:this,__source:{fileName:Tu,lineNumber:187}},yc(Lu,{label:_,isRequiredLabel:k,isRequired:true,__self:this,__source:{fileName:Tu,lineNumber:188}}),yc("textarea",{autoFocus:true,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:y,required:true,rows:5,__self:this,__source:{fileName:Tu,lineNumber:189}})),C?yc("label",{for:"screenshot",class:"form__label",__self:this,__source:{fileName:Tu,lineNumber:201}},yc("button",{class:"btn btn--default",type:"button",onClick:()=>{I(null);$((n=>!n))},__self:this,__source:{fileName:Tu,lineNumber:202}},N?d:l),T?yc("div",{class:"form__error-container",__self:this,__source:{fileName:Tu,lineNumber:212}},T.message):null):null),yc("div",{class:"btn-group",__self:this,__source:{fileName:Tu,lineNumber:216}},yc("button",{class:"btn btn--primary",type:"submit",__self:this,__source:{fileName:Tu,lineNumber:217}},x),yc("button",{class:"btn btn--default",type:"button",onClick:r,__self:this,__source:{fileName:Tu,lineNumber:220}},h))))}function Lu({label:n,isRequired:t,isRequiredLabel:e}){return yc("span",{class:"form__label__text",__self:this,__source:{fileName:Tu,lineNumber:239}},n,t&&yc("span",{class:"form__label__text--required",__self:this,__source:{fileName:Tu,lineNumber:241}},e))}const Mu=16;const Du=17;const Ru="http://www.w3.org/2000/svg";function Ou(){const n=n=>ks.document.createElementNS(Ru,n);const t=Ws(n("svg"),{width:`${Mu}`,height:`${Du}`,viewBox:`0 0 ${Mu} ${Du}`,fill:"inherit"});const e=Ws(n("g"),{clipPath:"url(#clip0_57_156)"});const r=Ws(n("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"});const o=Ws(n("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(e).append(o,r);const i=n("defs");const s=Ws(n("clipPath"),{id:"clip0_57_156"});const c=Ws(n("rect"),{width:`${Mu}`,height:`${Mu}`,fill:"white",transform:"translate(0 0.5)"});s.appendChild(c);i.appendChild(s);t.appendChild(i).appendChild(s).appendChild(c);return t}const Fu="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/components/Dialog.tsx";function Au({open:n,onFormSubmitted:t,...e}){const r=e.options;const o=fu((()=>({__html:Ou().outerHTML})),[]);const[i,s]=ou(null);const c=lu((()=>{if(i){clearTimeout(i);s(null)}t()}),[i]);const u=lu((n=>{e.onSubmitSuccess(n);s(setTimeout((()=>{t();s(null)}),Hs))}),[t]);return yc(wc,{__self:this,__source:{fileName:Fu,lineNumber:48}},i?yc("div",{class:"success__position",onClick:c,__self:this,__source:{fileName:Fu,lineNumber:50}},yc("div",{class:"success__content",__self:this,__source:{fileName:Fu,lineNumber:51}},r.successMessageText,yc("span",{class:"success__icon",dangerouslySetInnerHTML:o,__self:this,__source:{fileName:Fu,lineNumber:53}}))):yc("dialog",{class:"dialog",onClick:r.onFormClose,open:n,__self:this,__source:{fileName:Fu,lineNumber:57}},yc("div",{class:"dialog__position",__self:this,__source:{fileName:Fu,lineNumber:58}},yc("div",{class:"dialog__content",onClick:n=>{n.stopPropagation()},__self:this,__source:{fileName:Fu,lineNumber:59}},yc($u,{options:r,__self:this,__source:{fileName:Fu,lineNumber:66}}),yc(ju,{...e,onSubmitSuccess:u,__self:this,__source:{fileName:Fu,lineNumber:67}})))))}const Bu=`\n.dialog {\n position: fixed;\n z-index: var(--z-index);\n margin: 0;\n inset: 0;\n\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n height: 100vh;\n width: 100vw;\n\n color: var(--dialog-color, var(--foreground));\n fill: var(--dialog-color, var(--foreground));\n line-height: 1.75em;\n\n background-color: rgba(0, 0, 0, 0.05);\n border: none;\n inset: 0;\n opacity: 1;\n transition: opacity 0.2s ease-in-out;\n}\n\n.dialog__position {\n position: fixed;\n z-index: var(--z-index);\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n display: flex;\n max-height: calc(100vh - (2 * var(--page-margin)));\n}\n@media (max-width: 600px) {\n .dialog__position {\n inset: var(--page-margin);\n padding: 0;\n }\n}\n\n.dialog__position:has(.editor) {\n inset: var(--page-margin);\n padding: 0;\n}\n\n.dialog:not([open]) {\n opacity: 0;\n pointer-events: none;\n visibility: hidden;\n}\n.dialog:not([open]) .dialog__content {\n transform: translate(0, -16px) scale(0.98);\n}\n\n.dialog__content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n padding: var(--dialog-padding, 24px);\n max-width: 100%;\n width: 100%;\n max-height: 100%;\n overflow: auto;\n\n background: var(--dialog-background, var(--background));\n border-radius: var(--dialog-border-radius, 20px);\n border: var(--dialog-border, var(--border));\n box-shadow: var(--dialog-box-shadow, var(--box-shadow));\n transform: translate(0, 0) scale(1);\n transition: transform 0.2s ease-in-out;\n}\n`;const Pu=`\n.dialog__header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n font-weight: var(--dialog-header-weight, 600);\n margin: 0;\n}\n\n.brand-link {\n display: inline-flex;\n}\n.brand-link:focus-visible {\n outline: var(--outline);\n}\n`;const qu=`\n.form {\n display: flex;\n overflow: auto;\n flex-direction: row;\n gap: 16px;\n flex: 1 0;\n}\n\n.form__right {\n flex: 0 0 var(--form-width, 272px);\n width: var(--form-width, 272px);\n display: flex;\n overflow: auto;\n flex-direction: column;\n justify-content: space-between;\n gap: 20px;\n}\n\n@media (max-width: 600px) {\n .form__right {\n width: auto;\n }\n}\n\n.form__top {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.form__error-container {\n color: var(--error-color);\n fill: var(--error-color);\n}\n\n.form__label {\n display: flex;\n flex-direction: column;\n gap: 4px;\n margin: 0px;\n}\n\n.form__label__text {\n display: flex;\n gap: 4px;\n align-items: center;\n}\n\n.form__label__text--required {\n font-size: 0.85em;\n}\n\n.form__input {\n font-family: inherit;\n line-height: inherit;\n background: transparent;\n box-sizing: border-box;\n border: var(--input-border, var(--border));\n border-radius: var(--input-border-radius, 6px);\n color: var(--input-color, inherit);\n fill: var(--input-color, inherit);\n font-size: var(--input-font-size, inherit);\n font-weight: var(--input-font-weight, 500);\n padding: 6px 12px;\n}\n\n.form__input::placeholder {\n opacity: 0.65;\n color: var(--input-placeholder-color, inherit);\n filter: var(--interactive-filter);\n}\n\n.form__input:focus-visible {\n outline: var(--input-focus-outline, var(--outline));\n}\n\n.form__input--textarea {\n font-family: inherit;\n resize: vertical;\n}\n\n.error {\n color: var(--error-color);\n fill: var(--error-color);\n}\n`;const Uu=`\n.btn-group {\n display: grid;\n gap: 8px;\n}\n\n.btn {\n line-height: inherit;\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n cursor: pointer;\n font-family: inherit;\n font-size: var(--button-font-size, inherit);\n font-weight: var(--button-font-weight, 600);\n padding: var(--button-padding, 6px 16px);\n}\n.btn[disabled] {\n opacity: 0.6;\n pointer-events: none;\n}\n\n.btn--primary {\n color: var(--button-primary-color, var(--accent-foreground));\n fill: var(--button-primary-color, var(--accent-foreground));\n background: var(--button-primary-background, var(--accent-background));\n border: var(--button-primary-border, var(--border));\n border-radius: var(--button-primary-border-radius, 6px);\n font-weight: var(--button-primary-font-weight, 500);\n}\n.btn--primary:hover {\n color: var(--button-primary-hover-color, var(--accent-foreground));\n fill: var(--button-primary-hover-color, var(--accent-foreground));\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n}\n.btn--primary:focus-visible {\n background: var(--button-primary-hover-background, var(--accent-background));\n filter: var(--interactive-filter);\n outline: var(--button-primary-focus-outline, var(--outline));\n}\n\n.btn--default {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-background, var(--background));\n border: var(--button-border, var(--border));\n border-radius: var(--button-border-radius, 6px);\n font-weight: var(--button-font-weight, 500);\n}\n.btn--default:hover {\n color: var(--button-color, var(--foreground));\n fill: var(--button-color, var(--foreground));\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n}\n.btn--default:focus-visible {\n background: var(--button-hover-background, var(--background));\n filter: var(--interactive-filter);\n outline: var(--button-focus-outline, var(--outline));\n}\n`;const Hu=`\n.success__position {\n position: fixed;\n inset: var(--dialog-inset);\n padding: var(--page-margin);\n z-index: var(--z-index);\n}\n.success__content {\n background: var(--success-background, var(--background));\n border: var(--success-border, var(--border));\n border-radius: var(--success-border-radius, 1.7em/50%);\n box-shadow: var(--success-box-shadow, var(--box-shadow));\n font-weight: var(--success-font-weight, 600);\n color: var(--success-color);\n fill: var(--success-color);\n padding: 12px 24px;\n line-height: 1.75em;\n\n display: grid;\n align-items: center;\n grid-auto-flow: column;\n gap: 6px;\n cursor: default;\n}\n\n.success__icon {\n display: flex;\n}\n`;function zu(n){const t=Es.createElement("style");t.textContent=`\n:host {\n --dialog-inset: var(--inset);\n}\n\n${Bu}\n${Pu}\n${qu}\n${Uu}\n${Hu}\n`;if(n){t.setAttribute("nonce",n)}return t}const Yu="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/modal/integration.tsx";function Gu(){const n=me().getUser();const t=be().getUser();const e=ge().getUser();if(n&&Object.keys(n).length){return n}if(t&&Object.keys(t).length){return t}return e}const Xu=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:n,screenshotIntegration:t,sendFeedback:e,shadow:r})=>{const o=r;const i=n.useSentryUser;const s=Gu();const c=Es.createElement("div");const u=zu(n.styleNonce);let a="";const f={get el(){return c},appendToDom(){if(!o.contains(u)&&!o.contains(c)){o.appendChild(u);o.appendChild(c)}},removeFromDom(){o.removeChild(c);o.removeChild(u);Es.body.style.overflow=a},open(){d(true);n.onFormOpen&&n.onFormOpen();a=Es.body.style.overflow;Es.body.style.overflow="hidden"},close(){d(false);Es.body.style.overflow=a}};const l=t&&t.createInput({h:yc,hooks:ku,dialog:f,options:n});const d=t=>{Uc(yc(Au,{options:n,screenshotInput:l,showName:n.showName||n.isNameRequired,showEmail:n.showEmail||n.isEmailRequired,defaultName:i&&s&&s[i.name]||"",defaultEmail:i&&s&&s[i.email]||"",onFormClose:()=>{d(false);n.onFormClose&&n.onFormClose()},onSubmit:e,onSubmitSuccess:t=>{d(false);n.onSubmitSuccess&&n.onSubmitSuccess(t)},onSubmitError:t=>{n.onSubmitError&&n.onSubmitError(t)},onFormSubmitted:()=>{n.onFormSubmitted&&n.onFormSubmitted()},open:t,__self:undefined,__source:{fileName:Yu,lineNumber:67}}),c)};return f}});const Vu="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/CropCorner.tsx";function Wu({h:n}){return function t({top:e,left:r,corner:o,onGrabButton:i}){return n("button",{class:`editor__crop-corner editor__crop-corner--${o} `,style:{top:e,left:r},onMouseDown:n=>{n.preventDefault();i(n,o)},onClick:n=>{n.preventDefault()},__self:this,__source:{fileName:Vu,lineNumber:22}})}}function Ju(n){const t=Es.createElement("style");const e="#1A141F";const r="#302735";t.textContent=`\n.editor {\n padding: 10px;\n padding-top: 65px;\n padding-bottom: 65px;\n flex-grow: 1;\n\n background-color: ${e};\n background-image: repeating-linear-gradient(\n -145deg,\n transparent,\n transparent 8px,\n ${e} 8px,\n ${e} 11px\n ),\n repeating-linear-gradient(\n -45deg,\n transparent,\n transparent 15px,\n ${r} 15px,\n ${r} 16px\n );\n}\n\n.editor__canvas-container {\n width: 100%;\n height: 100%;\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.editor__canvas-container canvas {\n object-fit: contain;\n position: relative;\n}\n\n.editor__crop-btn-group {\n padding: 8px;\n gap: 8px;\n border-radius: var(--menu-border-radius, 6px);\n background: var(--button-primary-background, var(--background));\n width: 175px;\n position: absolute;\n}\n\n.editor__crop-corner {\n width: 30px;\n height: 30px;\n position: absolute;\n background: none;\n border: 3px solid #ffffff;\n}\n\n.editor__crop-corner--top-left {\n cursor: nwse-resize;\n border-right: none;\n border-bottom: none;\n}\n.editor__crop-corner--top-right {\n cursor: nesw-resize;\n border-left: none;\n border-bottom: none;\n}\n.editor__crop-corner--bottom-left {\n cursor: nesw-resize;\n border-right: none;\n border-top: none;\n}\n.editor__crop-corner--bottom-right {\n cursor: nwse-resize;\n border-left: none;\n border-top: none;\n}\n`;if(n){t.setAttribute("nonce",n)}return t}function Ku({hooks:n}){return function t({onBeforeScreenshot:e,onScreenshot:r,onAfterScreenshot:o,onError:i}){n.useEffect((()=>{const n=async()=>{e();const n=await Ss.mediaDevices.getDisplayMedia({video:{width:ks.innerWidth*ks.devicePixelRatio,height:ks.innerHeight*ks.devicePixelRatio},audio:false,monitorTypeSurfaces:"exclude",preferCurrentTab:true,selfBrowserSurface:"include",surfaceSwitching:"exclude"});const t=Es.createElement("video");await new Promise(((e,o)=>{t.srcObject=n;t.onloadedmetadata=()=>{r(t);n.getTracks().forEach((n=>n.stop()));e()};t.play().catch(o)}));o()};n().catch(i)}),[])}}const Zu="/home/runner/work/sentry-javascript/sentry-javascript/packages/feedback/src/screenshot/components/ScreenshotEditor.tsx";const Qu=30;const na=3;const ta=Qu+na;const ea=ks.devicePixelRatio;const ra=n=>({x:Math.min(n.startX,n.endX),y:Math.min(n.startY,n.endY),width:Math.abs(n.startX-n.endX),height:Math.abs(n.startY-n.endY)});const oa=n=>{const t=n.clientHeight;const e=n.clientWidth;const r=n.width/n.height;let o=t*r;let i=t;if(o>e){o=e;i=e/r}const s=(e-o)/2;const c=(t-i)/2;return{startX:s,startY:c,endX:o+s,endY:i+c}};function ia({h:n,hooks:t,imageBuffer:e,dialog:r,options:o}){const i=Ku({hooks:t});return function s({onError:c}){const u=t.useMemo((()=>({__html:Ju(o.styleNonce).innerText})),[]);const a=Wu({h:n});const f=t.useRef(null);const l=t.useRef(null);const d=t.useRef(null);const[h,p]=t.useState({startX:0,startY:0,endX:0,endY:0});const[m,b]=t.useState(false);const[g,_]=t.useState(false);t.useEffect((()=>{ks.addEventListener("resize",y,false)}),[]);function y(){const n=d.current;const t=ra(oa(e));if(n){n.width=t.width*ea;n.height=t.height*ea;n.style.width=`${t.width}px`;n.style.height=`${t.height}px`;const e=n.getContext("2d");if(e){e.scale(ea,ea)}}const r=l.current;if(r){r.style.width=`${t.width}px`;r.style.height=`${t.height}px`}p({startX:0,startY:0,endX:t.width,endY:t.height})}t.useEffect((()=>{const n=d.current;if(!n){return}const t=n.getContext("2d");if(!t){return}const r=ra(oa(e));const o=ra(h);t.clearRect(0,0,r.width,r.height);t.fillStyle="rgba(0, 0, 0, 0.5)";t.fillRect(0,0,r.width,r.height);t.clearRect(o.x,o.y,o.width,o.height);t.strokeStyle="#ffffff";t.lineWidth=3;t.strokeRect(o.x+1,o.y+1,o.width-2,o.height-2);t.strokeStyle="#000000";t.lineWidth=1;t.strokeRect(o.x+3,o.y+3,o.width-6,o.height-6)}),[h]);function v(n,t){b(false);_(true);const e=w(t);const r=()=>{Es.removeEventListener("mousemove",e);Es.removeEventListener("mouseup",r);b(true);_(false)};Es.addEventListener("mouseup",r);Es.addEventListener("mousemove",e)}const w=t.useCallback((n=>function(t){if(!d.current){return}const e=d.current;const r=e.getBoundingClientRect();const o=t.clientX-r.x;const i=t.clientY-r.y;switch(n){case"top-left":p((n=>({...n,startX:Math.min(Math.max(0,o),n.endX-ta),startY:Math.min(Math.max(0,i),n.endY-ta)})));break;case"top-right":p((n=>({...n,endX:Math.max(Math.min(o,e.width/ea),n.startX+ta),startY:Math.min(Math.max(0,i),n.endY-ta)})));break;case"bottom-left":p((n=>({...n,startX:Math.min(Math.max(0,o),n.endX-ta),endY:Math.max(Math.min(i,e.height/ea),n.startY+ta)})));break;case"bottom-right":p((n=>({...n,endX:Math.max(Math.min(o,e.width/ea),n.startX+ta),endY:Math.max(Math.min(i,e.height/ea),n.startY+ta)})));break}}),[]);const x=t.useRef({initialX:0,initialY:0});function k(n){if(g)return;x.current={initialX:n.clientX,initialY:n.clientY};const t=n=>{const t=d.current;if(!t)return;const e=n.clientX-x.current.initialX;const r=n.clientY-x.current.initialY;p((o=>{const i=Math.max(0,Math.min(o.startX+e,t.width/ea-(o.endX-o.startX)));const s=Math.max(0,Math.min(o.startY+r,t.height/ea-(o.endY-o.startY)));const c=i+(o.endX-o.startX);const u=s+(o.endY-o.startY);x.current.initialX=n.clientX;x.current.initialY=n.clientY;return{startX:i,startY:s,endX:c,endY:u}}))};const e=()=>{Es.removeEventListener("mousemove",t);Es.removeEventListener("mouseup",e)};Es.addEventListener("mousemove",t);Es.addEventListener("mouseup",e)}function E(){const n=Es.createElement("canvas");const t=ra(oa(e));const r=ra(h);n.width=r.width*ea;n.height=r.height*ea;const o=n.getContext("2d");if(o&&e){o.drawImage(e,r.x/t.width*e.width,r.y/t.height*e.height,r.width/t.width*e.width,r.height/t.height*e.height,0,0,n.width,n.height)}const i=e.getContext("2d");if(i){i.clearRect(0,0,e.width,e.height);e.width=n.width;e.height=n.height;e.style.width=`${r.width}px`;e.style.height=`${r.height}px`;i.drawImage(n,0,0);y()}}i({onBeforeScreenshot:t.useCallback((()=>{r.el.style.display="none"}),[]),onScreenshot:t.useCallback((n=>{const t=e.getContext("2d");if(!t){throw new Error("Could not get canvas context")}e.width=n.videoWidth;e.height=n.videoHeight;e.style.width="100%";e.style.height="100%";t.drawImage(n,0,0)}),[e]),onAfterScreenshot:t.useCallback((()=>{r.el.style.display="block";const n=f.current;n&&n.appendChild(e);y()}),[]),onError:t.useCallback((n=>{r.el.style.display="block";c(n)}),[])});return n("div",{class:"editor",__self:this,__source:{fileName:Zu,lineNumber:315}},n("style",{nonce:o.styleNonce,dangerouslySetInnerHTML:u,__self:this,__source:{fileName:Zu,lineNumber:316}}),n("div",{class:"editor__canvas-container",ref:f,__self:this,__source:{fileName:Zu,lineNumber:317}},n("div",{class:"editor__crop-container",style:{position:"absolute",zIndex:1},ref:l,__self:this,__source:{fileName:Zu,lineNumber:318}},n("canvas",{onMouseDown:k,style:{position:"absolute",cursor:m?"move":"auto"},ref:d,__self:this,__source:{fileName:Zu,lineNumber:319}}),n(a,{left:h.startX-na,top:h.startY-na,onGrabButton:v,corner:"top-left",__self:this,__source:{fileName:Zu,lineNumber:324}}),n(a,{left:h.endX-Qu+na,top:h.startY-na,onGrabButton:v,corner:"top-right",__self:this,__source:{fileName:Zu,lineNumber:330}}),n(a,{left:h.startX-na,top:h.endY-Qu+na,onGrabButton:v,corner:"bottom-left",__self:this,__source:{fileName:Zu,lineNumber:336}}),n(a,{left:h.endX-Qu+na,top:h.endY-Qu+na,onGrabButton:v,corner:"bottom-right",__self:this,__source:{fileName:Zu,lineNumber:342}}),n("div",{style:{left:Math.max(0,h.endX-191),top:Math.max(0,h.endY+8),display:m?"flex":"none"},class:"editor__crop-btn-group",__self:this,__source:{fileName:Zu,lineNumber:348}},n("button",{onClick:n=>{n.preventDefault();if(d.current){p({startX:0,startY:0,endX:d.current.width/ea,endY:d.current.height/ea})}b(false)},class:"btn btn--default",__self:this,__source:{fileName:Zu,lineNumber:356}},o.cancelButtonLabel),n("button",{onClick:n=>{n.preventDefault();E();b(false)},class:"btn btn--primary",__self:this,__source:{fileName:Zu,lineNumber:373}},o.confirmButtonLabel)))))}}const sa=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:n,hooks:t,dialog:e,options:r})=>{const o=Es.createElement("canvas");return{input:ia({h:n,hooks:t,imageBuffer:o,dialog:e,options:r}),value:async()=>{const n=await new Promise((n=>{o.toBlob(n,"image/png")}));if(n){const t=new Uint8Array(await n.arrayBuffer());const e={data:t,filename:"screenshot.png",contentType:"application/png"};return e}return undefined}}}});const ca=ic({lazyLoadIntegration:ws,getModalIntegration:()=>Xu,getScreenshotIntegration:()=>sa});export{gs as a,Eo as b,mr as c,ca as f,gr as i};
2
+ //# sourceMappingURL=p-3ea1c7c9.js.map