@epic-web/workshop-app 6.90.1 → 6.90.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (882) hide show
  1. package/build/client/assets/_-BIUiuU6Y.js +2 -0
  2. package/build/client/assets/_baseUniq-CJZRE-e7.js +2 -0
  3. package/build/client/assets/_exerciseNumber-BpbYIQzs.js +2 -0
  4. package/build/client/assets/_exerciseNumber_._stepNumber.index-DK3J2Ddj.js +2 -0
  5. package/build/client/assets/_exerciseNumber_.finished-B_T3PxJz.js +2 -0
  6. package/build/client/assets/_extra-aa8Mks-Q.js +2 -0
  7. package/build/client/assets/_layout-BbwYNNgC.js +2 -0
  8. package/build/client/assets/_layout-BgWWpEjl.js +2 -0
  9. package/build/client/assets/_layout-CqS7XDbp.js +2 -0
  10. package/build/client/assets/_layout-CvVyOTb5.js +2 -0
  11. package/build/client/assets/_layout-qZA4Ghi8.js +2 -0
  12. package/build/client/assets/abap-D4LQAb8f.js +2 -0
  13. package/build/client/assets/account-DIt1vgkr.js +2 -0
  14. package/build/client/assets/actionscript-3-MC-k6tK6.js +2 -0
  15. package/build/client/assets/ada-CWdBH8bz.js +2 -0
  16. package/build/client/assets/andromeeda-CStUKdp9.js +2 -0
  17. package/build/client/assets/angular-html-Xq5-oOWa.js +2 -0
  18. package/build/client/assets/angular-ts-ZRwQqGvO.js +2 -0
  19. package/build/client/assets/apache-y1hpyXn4.js +2 -0
  20. package/build/client/assets/apex-JJZEnz_s.js +2 -0
  21. package/build/client/assets/apl-DExBkj0H.js +2 -0
  22. package/build/client/assets/app-CfA-g23l.js +2 -0
  23. package/build/client/assets/applescript-BfkrcLg-.js +2 -0
  24. package/build/client/assets/ara-B2tNeqRT.js +2 -0
  25. package/build/client/assets/arc-BRCBkhhR.js +2 -0
  26. package/build/client/assets/architectureDiagram-Q4EWVU46-DuVo2b3e.js +37 -0
  27. package/build/client/assets/asciidoc-BLi_eh1F.js +2 -0
  28. package/build/client/assets/asm-CLShsT_c.js +2 -0
  29. package/build/client/assets/astro-Dj0nPde6.js +2 -0
  30. package/build/client/assets/aurora-x-BdPTrXeu.js +2 -0
  31. package/build/client/assets/awk-tix9qdYl.js +2 -0
  32. package/build/client/assets/ayu-dark-BhbRA_W6.js +2 -0
  33. package/build/client/assets/ayu-light-C_egoBp6.js +2 -0
  34. package/build/client/assets/ayu-mirage-OipI53C1.js +2 -0
  35. package/build/client/assets/ballerina-Bwi0RlCR.js +2 -0
  36. package/build/client/assets/bat-BLkM8tQK.js +2 -0
  37. package/build/client/assets/beancount-XMjn-zNK.js +2 -0
  38. package/build/client/assets/berry-C5s_nG2I.js +2 -0
  39. package/build/client/assets/bibtex-hy79RcwY.js +2 -0
  40. package/build/client/assets/bicep-DUhrkZeU.js +2 -0
  41. package/build/client/assets/blade-CxCEYJ45.js +2 -0
  42. package/build/client/assets/blockDiagram-DXYQGD6D-hP5tk9rf.js +133 -0
  43. package/build/client/assets/bsl-C8ptNz6V.js +2 -0
  44. package/build/client/assets/button-CYBYO3CB.js +2 -0
  45. package/build/client/assets/c-DhtAG5FA.js +2 -0
  46. package/build/client/assets/c3-DFER76bL.js +2 -0
  47. package/build/client/assets/c4Diagram-AHTNJAMY-BjvPIFf9.js +11 -0
  48. package/build/client/assets/cache-C6JM6Dkx.js +2 -0
  49. package/build/client/assets/cadence-DQbsq8Aw.js +2 -0
  50. package/build/client/assets/cairo-BEHPfB9m.js +2 -0
  51. package/build/client/assets/catppuccin-frappe-Dy5uzURi.js +2 -0
  52. package/build/client/assets/catppuccin-latte-C_-stjU1.js +2 -0
  53. package/build/client/assets/catppuccin-macchiato-BfvkNGDY.js +2 -0
  54. package/build/client/assets/catppuccin-mocha-CkqkNG7z.js +2 -0
  55. package/build/client/assets/channel-B7BwCfXU.js +2 -0
  56. package/build/client/assets/chunk-4BX2VUAB-DCR2SXqi.js +2 -0
  57. package/build/client/assets/chunk-4TB4RGXK-sWkYFIyO.js +207 -0
  58. package/build/client/assets/chunk-55IACEB6-CmDrh3lD.js +2 -0
  59. package/build/client/assets/chunk-EDXVE4YY-vpx5_eFb.js +2 -0
  60. package/build/client/assets/chunk-EVOBXE3Y-xXwQZnjL.js +27 -0
  61. package/build/client/assets/chunk-FMBD7UC4-3QZ_CKqo.js +16 -0
  62. package/build/client/assets/chunk-OYMX7WX6-OQcZX2AU.js +232 -0
  63. package/build/client/assets/chunk-QZHKN3VN-CD-UopEW.js +2 -0
  64. package/build/client/assets/chunk-YQSHRJWW-Bm2aFpQE.js +6 -0
  65. package/build/client/assets/chunk-YZCP3GAM-BHNySIqz.js +2 -0
  66. package/build/client/assets/clarity-BuwpYOr1.js +2 -0
  67. package/build/client/assets/classDiagram-6PBFFD2Q-4f1zCZfG.js +2 -0
  68. package/build/client/assets/classDiagram-v2-HSJHXN6E-BUL9Z8wW.js +2 -0
  69. package/build/client/assets/client-only-GRafIok5.js +2 -0
  70. package/build/client/assets/clojure-CqwV_eVn.js +2 -0
  71. package/build/client/assets/clone-DlZYHwx5.js +2 -0
  72. package/build/client/assets/cmake-Bsn9xitY.js +2 -0
  73. package/build/client/assets/cobol-BZCviRFm.js +2 -0
  74. package/build/client/assets/codeowners-DVJw72XP.js +2 -0
  75. package/build/client/assets/codeql-p3FTSlw6.js +2 -0
  76. package/build/client/assets/coerce-BxRHCR_X.js +2 -0
  77. package/build/client/assets/coffee-iPZBVbOx.js +2 -0
  78. package/build/client/assets/command-palette-qUuslN1M.js +2 -0
  79. package/build/client/assets/common-lisp-XATSfTcv.js +2 -0
  80. package/build/client/assets/coq-k7lrgzWW.js +2 -0
  81. package/build/client/assets/cose-bilkent-S5V4N54A-CCt8xjRj.js +2 -0
  82. package/build/client/assets/cpp-dS-qqzK-.js +2 -0
  83. package/build/client/assets/crystal-DowOwpOe.js +2 -0
  84. package/build/client/assets/csharp-BbM3RWiu.js +2 -0
  85. package/build/client/assets/css-kpqX_SbN.js +2 -0
  86. package/build/client/assets/csv-DJIbjeiz.js +2 -0
  87. package/build/client/assets/cue-o-hd8fmv.js +2 -0
  88. package/build/client/assets/cypher-Cyol_UX-.js +2 -0
  89. package/build/client/assets/cytoscape.esm-D5j7RFDN.js +322 -0
  90. package/build/client/assets/d-BA8sBjbi.js +2 -0
  91. package/build/client/assets/dagre-KV5264BT-BWzBG1n3.js +5 -0
  92. package/build/client/assets/dark-plus-BnweIAFP.js +2 -0
  93. package/build/client/assets/dart-C2XHDXKk.js +2 -0
  94. package/build/client/assets/dax-CFLJJcOX.js +2 -0
  95. package/build/client/assets/db-CGuyxOXx.js +2 -0
  96. package/build/client/assets/defaultLocale-7fb-Js8l.js +2 -0
  97. package/build/client/assets/desktop-CVNmXcUD.js +2 -0
  98. package/build/client/assets/diagram-5BDNPKRD-DbwKB_qz.js +11 -0
  99. package/build/client/assets/diagram-G4DWMVQ6-CVkK6MmZ.js +25 -0
  100. package/build/client/assets/diagram-MMDJMWI5-Df0yA2us.js +44 -0
  101. package/build/client/assets/diagram-TYMM5635-BVjOwnjM.js +25 -0
  102. package/build/client/assets/dialog-D37ZT5d8.js +6 -0
  103. package/build/client/assets/diff-D3ABcvrP.js +1893 -0
  104. package/build/client/assets/diff-DP9Lse8U.js +2 -0
  105. package/build/client/assets/diff-DeZjIT31.js +2 -0
  106. package/build/client/assets/discord-CcrCzHCR.js +2 -0
  107. package/build/client/assets/discord-CeamAVfD.js +2 -0
  108. package/build/client/assets/docker-D8Gs5bRq.js +2 -0
  109. package/build/client/assets/dotenv-CG28qt1O.js +2 -0
  110. package/build/client/assets/dracula-DcmpuWS_.js +2 -0
  111. package/build/client/assets/dracula-soft-D6_yJzXM.js +2 -0
  112. package/build/client/assets/dream-maker-V5zshmmW.js +2 -0
  113. package/build/client/assets/edge-D5nrcdNG.js +2 -0
  114. package/build/client/assets/elixir-CE1OVS1N.js +2 -0
  115. package/build/client/assets/elm-zA6iGgf0.js +2 -0
  116. package/build/client/assets/emacs-lisp-CRHzvwbq.js +2 -0
  117. package/build/client/assets/entry.client-B-tFbIal.js +11 -0
  118. package/build/client/assets/epic-video-BEONtiua.js +2 -0
  119. package/build/client/assets/epic-video-CR1BFyi6.js +3397 -0
  120. package/build/client/assets/erDiagram-SMLLAGMA-vV7ZMSaG.js +86 -0
  121. package/build/client/assets/erb-4gwzyvMa.js +2 -0
  122. package/build/client/assets/erlang-DdCu_UHy.js +2 -0
  123. package/build/client/assets/error-boundary-D53JKz34.js +2 -0
  124. package/build/client/assets/error-boundary-qG8XI0Xp.js +3 -0
  125. package/build/client/assets/everforest-dark-CjvNlkx-.js +2 -0
  126. package/build/client/assets/everforest-light-TBVs5JtA.js +2 -0
  127. package/build/client/assets/fennel-p6oRj8oX.js +2 -0
  128. package/build/client/assets/finished-D2d9sgfL.js +2 -0
  129. package/build/client/assets/fish-DnrJwhxb.js +2 -0
  130. package/build/client/assets/flowDiagram-DWJPFMVM-Do0_4ubd.js +163 -0
  131. package/build/client/assets/fluent-Br_Fk-AW.js +2 -0
  132. package/build/client/assets/format-CPfJZTwC.js +2 -0
  133. package/build/client/assets/fortran-fixed-form-CXb0JTTt.js +2 -0
  134. package/build/client/assets/fortran-free-form-DKkKzPhk.js +2 -0
  135. package/build/client/assets/fsharp-CB41STZS.js +2 -0
  136. package/build/client/assets/ganttDiagram-T4ZO3ILL-v3-QBRol.js +293 -0
  137. package/build/client/assets/gdresource-CGlhCj88.js +2 -0
  138. package/build/client/assets/gdscript-D6UNgDcC.js +2 -0
  139. package/build/client/assets/gdshader-Dj5ZT2qO.js +2 -0
  140. package/build/client/assets/genie-oI4jj4v1.js +2 -0
  141. package/build/client/assets/gherkin-Bf1BmNZN.js +2 -0
  142. package/build/client/assets/git-commit-BRi6munm.js +2 -0
  143. package/build/client/assets/git-rebase-BSFQVQIA.js +2 -0
  144. package/build/client/assets/gitGraphDiagram-UUTBAWPF-BqphaF0k.js +107 -0
  145. package/build/client/assets/github-dark-BTOrR3o_.js +2 -0
  146. package/build/client/assets/github-dark-default-xjss7t45.js +2 -0
  147. package/build/client/assets/github-dark-dimmed-BwZljjAn.js +2 -0
  148. package/build/client/assets/github-dark-high-contrast-C2LyF_ri.js +2 -0
  149. package/build/client/assets/github-light-Cckd3ZAf.js +2 -0
  150. package/build/client/assets/github-light-default-CHCDCp3_.js +2 -0
  151. package/build/client/assets/github-light-high-contrast-DXPcc9gY.js +2 -0
  152. package/build/client/assets/gleam-DHYehKn6.js +2 -0
  153. package/build/client/assets/glimmer-js-C_oyUwkw.js +2 -0
  154. package/build/client/assets/glimmer-ts-6hqicmSc.js +2 -0
  155. package/build/client/assets/glsl-CuusXS1x.js +2 -0
  156. package/build/client/assets/gn-D-ERVO50.js +2 -0
  157. package/build/client/assets/gnuplot-ilHRW9d7.js +2 -0
  158. package/build/client/assets/go-BEK-oaZe.js +2 -0
  159. package/build/client/assets/graph-CPRPtj7Q.js +2 -0
  160. package/build/client/assets/graphql-D054Lg1l.js +2 -0
  161. package/build/client/assets/groovy-CGjnHv9i.js +2 -0
  162. package/build/client/assets/gruvbox-dark-hard-C9nuow93.js +2 -0
  163. package/build/client/assets/gruvbox-dark-medium-BnOecYtS.js +2 -0
  164. package/build/client/assets/gruvbox-dark-soft-KyQRU6zV.js +2 -0
  165. package/build/client/assets/gruvbox-light-hard-2_B_vfxe.js +2 -0
  166. package/build/client/assets/gruvbox-light-medium-fXarPSY6.js +2 -0
  167. package/build/client/assets/gruvbox-light-soft-DmC27y2J.js +2 -0
  168. package/build/client/assets/guide-BGgmKJKM.js +9 -0
  169. package/build/client/assets/hack-DXG_9x4F.js +2 -0
  170. package/build/client/assets/haml-lJwAT2g1.js +2 -0
  171. package/build/client/assets/handlebars-DxdU9HIN.js +2 -0
  172. package/build/client/assets/haskell-rhoKVU-N.js +2 -0
  173. package/build/client/assets/haxe-BZsADjB8.js +2 -0
  174. package/build/client/assets/hcl-DSKk_T7V.js +2 -0
  175. package/build/client/assets/hjson-CBuWF0xy.js +2 -0
  176. package/build/client/assets/hlsl-X8v1Xw0Y.js +2 -0
  177. package/build/client/assets/horizon-DAZ1BaV2.js +2 -0
  178. package/build/client/assets/houston-BVPRGsv3.js +2 -0
  179. package/build/client/assets/html-CnwQ7jkW.js +2 -0
  180. package/build/client/assets/html-derivative-CgJrFz7S.js +2 -0
  181. package/build/client/assets/http-CVP4I-3P.js +2 -0
  182. package/build/client/assets/hurl-BSDQoTIS.js +2 -0
  183. package/build/client/assets/hxml-DkAXCCot.js +2 -0
  184. package/build/client/assets/hy-B59sGWfy.js +2 -0
  185. package/build/client/assets/imba-sKO6yNjq.js +2 -0
  186. package/build/client/assets/index-B62wbby7.js +42 -0
  187. package/build/client/assets/index-BILeyYGC.js +2 -0
  188. package/build/client/assets/index-BTXxuDeQ.js +2 -0
  189. package/build/client/assets/index-C24T2RR9.js +2 -0
  190. package/build/client/assets/index-CGguNjXx.js +2 -0
  191. package/build/client/assets/index-CUBcMbIs.js +2 -0
  192. package/build/client/assets/index-CUv-hUzF.js +2 -0
  193. package/build/client/assets/index-Cb0yEoXi.js +2 -0
  194. package/build/client/assets/index-CgeRwL2b.js +2 -0
  195. package/build/client/assets/index-CzRt3Re7.js +2 -0
  196. package/build/client/assets/index-D_n6haMv.js +83 -0
  197. package/build/client/assets/index-rY6OK7KR.js +2 -0
  198. package/build/client/assets/index.client-B3G29fG_.js +500 -0
  199. package/build/client/assets/infoDiagram-42DDH7IO-cFsAcvpv.js +3 -0
  200. package/build/client/assets/ini-D0RnVDXj.js +2 -0
  201. package/build/client/assets/init-BduerdyS.js +2 -0
  202. package/build/client/assets/ishikawaDiagram-UXIWVN3A-QxAGceDg.js +71 -0
  203. package/build/client/assets/java-CI1mnC3G.js +2 -0
  204. package/build/client/assets/javascript-DJsSPM0D.js +2 -0
  205. package/build/client/assets/jinja-CHACh8iM.js +2 -0
  206. package/build/client/assets/jison-D5_RSuVM.js +2 -0
  207. package/build/client/assets/journeyDiagram-VCZTEJTY-DmybubqX.js +140 -0
  208. package/build/client/assets/json-BJjl-SeQ.js +2 -0
  209. package/build/client/assets/json5-Dz_WAJvo.js +2 -0
  210. package/build/client/assets/jsonc-CvYjjOjo.js +2 -0
  211. package/build/client/assets/jsonl-CJ_Oh_lR.js +2 -0
  212. package/build/client/assets/jsonnet-DYoET0YE.js +2 -0
  213. package/build/client/assets/jssm-CmXEUJpN.js +2 -0
  214. package/build/client/assets/jsx-D5MdoyyW.js +2 -0
  215. package/build/client/assets/jsx-runtime-CkPQ60tL.js +2 -0
  216. package/build/client/assets/julia-Bumhcwjl.js +2 -0
  217. package/build/client/assets/kanagawa-dragon-Biw49x23.js +2 -0
  218. package/build/client/assets/kanagawa-lotus-C5lJlyyQ.js +2 -0
  219. package/build/client/assets/kanagawa-wave-BTtiQWI8.js +2 -0
  220. package/build/client/assets/kanban-definition-6JOO6SKY-DilQdvJO.js +90 -0
  221. package/build/client/assets/katex-BzbLeYw8.js +262 -0
  222. package/build/client/assets/kdl-DFEuyXBc.js +2 -0
  223. package/build/client/assets/kotlin-CCuOseB3.js +2 -0
  224. package/build/client/assets/kusto-DsBxhjUH.js +2 -0
  225. package/build/client/assets/l-D-h_-wDH.js +2 -0
  226. package/build/client/assets/laserwave-Bt2HjWFV.js +2 -0
  227. package/build/client/assets/latex-1rJ6vV7E.js +2 -0
  228. package/build/client/assets/launch-editor-CqHLzAnl.js +2 -0
  229. package/build/client/assets/layout-DbJxu4HQ.js +2 -0
  230. package/build/client/assets/lean-BTf5k9Fz.js +2 -0
  231. package/build/client/assets/less-J6nUDBHn.js +2 -0
  232. package/build/client/assets/light-plus-2ul3obAm.js +2 -0
  233. package/build/client/assets/linear-BAOkcN0o.js +2 -0
  234. package/build/client/assets/liquid-D3aYNfFz.js +2 -0
  235. package/build/client/assets/llvm-KL7NRLz0.js +2 -0
  236. package/build/client/assets/loading-7d4d3jYi.js +2 -0
  237. package/build/client/assets/log-B2j3iDKt.js +2 -0
  238. package/build/client/assets/login-CT04FSav.js +2 -0
  239. package/build/client/assets/logo-CkrkzwJw.js +2 -0
  240. package/build/client/assets/lua-Dz0iCbuF.js +2 -0
  241. package/build/client/assets/luau-C90fhaew.js +2 -0
  242. package/build/client/assets/make-D1blP3BM.js +2 -0
  243. package/build/client/assets/manifest-973fe422.js +1 -0
  244. package/build/client/assets/markdown-BeNEAtUf.js +2 -0
  245. package/build/client/assets/marko-DuCY2chA.js +2 -0
  246. package/build/client/assets/material-theme-BwHezqbf.js +2 -0
  247. package/build/client/assets/material-theme-darker-7IAxqPlP.js +2 -0
  248. package/build/client/assets/material-theme-lighter-BEtW_f74.js +2 -0
  249. package/build/client/assets/material-theme-ocean-nBDYUsfS.js +2 -0
  250. package/build/client/assets/material-theme-palenight-g9UbvjOs.js +2 -0
  251. package/build/client/assets/matlab-3EIIRhgj.js +2 -0
  252. package/build/client/assets/mdc-ZcQn2zEt.js +2 -0
  253. package/build/client/assets/mdx-BiYFBRZp.js +2 -0
  254. package/build/client/assets/mdx-rWHTLlyw.js +3 -0
  255. package/build/client/assets/mermaid-sv3jnjJl.js +2 -0
  256. package/build/client/assets/mermaid.core-N_D6aIY2.js +304 -0
  257. package/build/client/assets/min-Cwt2oZV9.js +2 -0
  258. package/build/client/assets/min-dark-Ctz1p6iQ.js +2 -0
  259. package/build/client/assets/min-light-XiMmmZDJ.js +2 -0
  260. package/build/client/assets/mindmap-definition-QFDTVHPH-Dj4_lTFv.js +97 -0
  261. package/build/client/assets/mipsasm-BqN8PZ83.js +2 -0
  262. package/build/client/assets/misc-BsZ9dpCX.js +2 -0
  263. package/build/client/assets/mojo-Bpg9V3OP.js +2 -0
  264. package/build/client/assets/monokai-B1j_dKcC.js +2 -0
  265. package/build/client/assets/moonbit-B-LOvk6N.js +2 -0
  266. package/build/client/assets/move-Hw4hlSyz.js +2 -0
  267. package/build/client/assets/narrat-BzlZqV_3.js +2 -0
  268. package/build/client/assets/nav-chevrons-CC0vWSwx.js +2 -0
  269. package/build/client/assets/nextflow-BH0Cfh0k.js +2 -0
  270. package/build/client/assets/nginx-CGOqPaI0.js +2 -0
  271. package/build/client/assets/night-owl-light-B5oztDgO.js +2 -0
  272. package/build/client/assets/night-owl-qhFD6Jbc.js +2 -0
  273. package/build/client/assets/nim-BLKV94lc.js +2 -0
  274. package/build/client/assets/nix-DVsnx4D5.js +2 -0
  275. package/build/client/assets/nord-hsn4MgE3.js +2 -0
  276. package/build/client/assets/nushell-5U0dDR2W.js +2 -0
  277. package/build/client/assets/objective-c-D69y6Rfc.js +2 -0
  278. package/build/client/assets/objective-cpp-k1YUPOu1.js +2 -0
  279. package/build/client/assets/ocaml-CQ3cMrTc.js +2 -0
  280. package/build/client/assets/odin-Ch4Mkl2Q.js +2 -0
  281. package/build/client/assets/offline-videos-CQp9h_m7.js +2 -0
  282. package/build/client/assets/onboarding-indicator-cxKTTNzQ.js +2 -0
  283. package/build/client/assets/one-dark-pro-tqd7H7V7.js +2 -0
  284. package/build/client/assets/one-light-BdbD7ngy.js +2 -0
  285. package/build/client/assets/online-DzqOEDBU.js +2 -0
  286. package/build/client/assets/openscad-CQGHCPvg.js +2 -0
  287. package/build/client/assets/ordinal-vULf8YvB.js +2 -0
  288. package/build/client/assets/pascal-CX0643YT.js +2 -0
  289. package/build/client/assets/pe-C2EKYuBZ.js +2 -0
  290. package/build/client/assets/perl-BQhoF9Bm.js +2 -0
  291. package/build/client/assets/php-BduW30wk.js +2 -0
  292. package/build/client/assets/pieDiagram-DEJITSTG--sMUlBlv.js +31 -0
  293. package/build/client/assets/pierre-dark-OFehWqcu.js +2 -0
  294. package/build/client/assets/pierre-light-C-SNUYJk.js +2 -0
  295. package/build/client/assets/pkl-UPXpy9Ig.js +2 -0
  296. package/build/client/assets/plastic-SINKvCBv.js +2 -0
  297. package/build/client/assets/playground-iXNWoZAe.js +2 -0
  298. package/build/client/assets/playground-window-1T6mgcCo.js +2 -0
  299. package/build/client/assets/plsql-DPxo3xq4.js +2 -0
  300. package/build/client/assets/po-DMzK1JzP.js +2 -0
  301. package/build/client/assets/poimandres-B01U4qNS.js +2 -0
  302. package/build/client/assets/polar-DRggoHC9.js +2 -0
  303. package/build/client/assets/popover-DpYuakw7.js +2 -0
  304. package/build/client/assets/postcss-BT1UGHni.js +2 -0
  305. package/build/client/assets/powerquery-CtVkwPWt.js +2 -0
  306. package/build/client/assets/powershell-BuInbSIj.js +2 -0
  307. package/build/client/assets/preferences-DXrf9OGA.js +2 -0
  308. package/build/client/assets/preload-helper-D4kvYoia.js +2 -0
  309. package/build/client/assets/presence-Bw_Esl7O.js +61 -0
  310. package/build/client/assets/preview-DsnYeO0B.js +2 -0
  311. package/build/client/assets/prisma-DrVDIHIK.js +2 -0
  312. package/build/client/assets/product-C7sclsbe.js +2 -0
  313. package/build/client/assets/progress-3Bo_teBO.js +2 -0
  314. package/build/client/assets/progress-bar-CEIOW25u.js +2 -0
  315. package/build/client/assets/prolog-Ba1yDIcL.js +2 -0
  316. package/build/client/assets/proto-UySWyTHq.js +2 -0
  317. package/build/client/assets/pug-gxKyZXxT.js +2 -0
  318. package/build/client/assets/puppet-CLH_Z-Cp.js +2 -0
  319. package/build/client/assets/purescript-CPY3rL-J.js +2 -0
  320. package/build/client/assets/python-BgIL9XGp.js +2 -0
  321. package/build/client/assets/qml-Fy-OBz5M.js +2 -0
  322. package/build/client/assets/qmldir-DLB5JB3k.js +2 -0
  323. package/build/client/assets/qss-CWXWhxo4.js +2 -0
  324. package/build/client/assets/quadrantDiagram-34T5L4WZ-C5K0ZxZl.js +8 -0
  325. package/build/client/assets/r-Dqp355hZ.js +2 -0
  326. package/build/client/assets/racket-D-O7rL_a.js +2 -0
  327. package/build/client/assets/raku-0sq7VGBE.js +2 -0
  328. package/build/client/assets/razor-BRSQSksL.js +2 -0
  329. package/build/client/assets/react-error-boundary-fagjPDLS.js +2 -0
  330. package/build/client/assets/red-CZRh5k-S.js +2 -0
  331. package/build/client/assets/reg-CCAcK3FE.js +2 -0
  332. package/build/client/assets/regexp-CHw6fss1.js +2 -0
  333. package/build/client/assets/rel-Bj6oGiE5.js +2 -0
  334. package/build/client/assets/requirementDiagram-MS252O5E-DWLeddbt.js +85 -0
  335. package/build/client/assets/retrieval-practice-qhv_uHn5.js +2 -0
  336. package/build/client/assets/revalidation-ws-DgBtYOo7.js +2 -0
  337. package/build/client/assets/riscv-CY2BTbg9.js +2 -0
  338. package/build/client/assets/ron-eYHFvBuS.js +2 -0
  339. package/build/client/assets/root-DsO0gZtq.js +3 -0
  340. package/build/client/assets/root-loader-DTDfdy4v.js +2 -0
  341. package/build/client/assets/rose-pine-DnnSGqyw.js +2 -0
  342. package/build/client/assets/rose-pine-dawn-DPqtAnfM.js +2 -0
  343. package/build/client/assets/rose-pine-moon-DWnYlVnC.js +2 -0
  344. package/build/client/assets/rosmsg-8eOXYULX.js +2 -0
  345. package/build/client/assets/rst-DVdLdrMn.js +2 -0
  346. package/build/client/assets/ruby-By5fty7i.js +2 -0
  347. package/build/client/assets/rust-hff14hVN.js +2 -0
  348. package/build/client/assets/sankeyDiagram-XADWPNL6-uvC01CBq.js +11 -0
  349. package/build/client/assets/sas--UgrCF8T.js +2 -0
  350. package/build/client/assets/sass-dwdQS4eO.js +2 -0
  351. package/build/client/assets/scala-tWIiso5s.js +2 -0
  352. package/build/client/assets/schemas-PFOLZ9BU.js +41 -0
  353. package/build/client/assets/scheme-D1sklctU.js +2 -0
  354. package/build/client/assets/scss-QVf75kF5.js +2 -0
  355. package/build/client/assets/sdbl-CCy65ufe.js +2 -0
  356. package/build/client/assets/seo-DIQMRG-g.js +2 -0
  357. package/build/client/assets/sequenceDiagram-FGHM5R23-DtU7EFvw.js +158 -0
  358. package/build/client/assets/set-playground-t1gOfhrO.js +2 -0
  359. package/build/client/assets/shaderlab-BzwePWOx.js +2 -0
  360. package/build/client/assets/shellscript-CuiCxwN6.js +2 -0
  361. package/build/client/assets/shellsession-pgXP2GjS.js +2 -0
  362. package/build/client/assets/slack-dark-B6ivDa9F.js +2 -0
  363. package/build/client/assets/slack-ochin-Dy669Ntz.js +2 -0
  364. package/build/client/assets/smalltalk-CJOIcKTa.js +2 -0
  365. package/build/client/assets/snazzy-light-CpkrFktT.js +2 -0
  366. package/build/client/assets/solarized-dark-DZPorh0X.js +2 -0
  367. package/build/client/assets/solarized-light-BwAUsbon.js +2 -0
  368. package/build/client/assets/solidity-wy1ukgL-.js +2 -0
  369. package/build/client/assets/soy-bb-b7qRC.js +2 -0
  370. package/build/client/assets/sparql-tNOLVuNV.js +2 -0
  371. package/build/client/assets/split-layout-iYnM5FDE.js +2 -0
  372. package/build/client/assets/splunk-CYlT45Fi.js +2 -0
  373. package/build/client/assets/sql-h82q4lnO.js +2 -0
  374. package/build/client/assets/ssh-config-MhyNNZCl.js +2 -0
  375. package/build/client/assets/stata-CtpASDNX.js +2 -0
  376. package/build/client/assets/stateDiagram-FHFEXIEX-U61GDjlQ.js +2 -0
  377. package/build/client/assets/stateDiagram-v2-QKLJ7IA2-CYAhXW6G.js +2 -0
  378. package/build/client/assets/status-indicator-S_dvC6Ix.js +2 -0
  379. package/build/client/assets/stylus-cUx8OvKy.js +2 -0
  380. package/build/client/assets/support-BlyiWLt7.js +2 -0
  381. package/build/client/assets/surrealql-BZ-KZNGV.js +2 -0
  382. package/build/client/assets/svelte-Caf1gKlK.js +2 -0
  383. package/build/client/assets/swift-Cs6aAoIk.js +2 -0
  384. package/build/client/assets/synthwave-84-CAAqYsYi.js +2 -0
  385. package/build/client/assets/system-verilog-CfKGspIc.js +2 -0
  386. package/build/client/assets/systemd-CIHOSNqR.js +2 -0
  387. package/build/client/assets/talonscript-kOsdL1-O.js +2 -0
  388. package/build/client/assets/tasl-4A1USqbU.js +2 -0
  389. package/build/client/assets/tcl-De0q2RWc.js +2 -0
  390. package/build/client/assets/templ-cwwtBdlc.js +2 -0
  391. package/build/client/assets/terraform-afMdgKpv.js +2 -0
  392. package/build/client/assets/test-94jdsANi.js +2 -0
  393. package/build/client/assets/tests-DJVYNopN.js +4 -0
  394. package/build/client/assets/tex-B4WoDovF.js +2 -0
  395. package/build/client/assets/timeline-definition-GMOUNBTQ-B42918YW.js +121 -0
  396. package/build/client/assets/tokyo-night-CQJsXazt.js +2 -0
  397. package/build/client/assets/toml-6qDIvulw.js +2 -0
  398. package/build/client/assets/tooltip-DY_C1Xt7.js +2 -0
  399. package/build/client/assets/ts-tags-DdR5e0gB.js +2 -0
  400. package/build/client/assets/tsv-B7sU3w2G.js +2 -0
  401. package/build/client/assets/tsx-8nt6eF71.js +2 -0
  402. package/build/client/assets/turtle-hAkQ6ZxY.js +2 -0
  403. package/build/client/assets/twig-15UhtmWi.js +2 -0
  404. package/build/client/assets/typescript-BfyI7nUU.js +2 -0
  405. package/build/client/assets/typespec-CUip2lsY.js +2 -0
  406. package/build/client/assets/typst-CRscaW-N.js +2 -0
  407. package/build/client/assets/user-BEvPxpir.js +2 -0
  408. package/build/client/assets/v-C5vq3xeB.js +2 -0
  409. package/build/client/assets/vala-BrsdqMvs.js +2 -0
  410. package/build/client/assets/vb-DG2aH3K_.js +2 -0
  411. package/build/client/assets/vennDiagram-DHZGUBPP-DMlXKPE-.js +35 -0
  412. package/build/client/assets/verilog-DPrVlbV1.js +2 -0
  413. package/build/client/assets/version-C5Rakp1e.js +2 -0
  414. package/build/client/assets/vesper-DYB8KVsK.js +2 -0
  415. package/build/client/assets/vhdl-CKIt6Fi-.js +2 -0
  416. package/build/client/assets/viml-CpDLqjfj.js +2 -0
  417. package/build/client/assets/vitesse-black-eV-Ez-ax.js +2 -0
  418. package/build/client/assets/vitesse-dark-CRzIMdBk.js +2 -0
  419. package/build/client/assets/vitesse-light-RmiZT9BG.js +2 -0
  420. package/build/client/assets/vue-Bupjt64_.js +2 -0
  421. package/build/client/assets/vue-html-BaFtrcuA.js +2 -0
  422. package/build/client/assets/vue-vine-BBSGJzjj.js +2 -0
  423. package/build/client/assets/vyper-DqhZs1bE.js +2 -0
  424. package/build/client/assets/wardley-RL74JXVD-BlRLyc_Q.js +163 -0
  425. package/build/client/assets/wardleyDiagram-NUSXRM2D-62hOiQ5-.js +21 -0
  426. package/build/client/assets/wasm-B0M8RlDJ.js +2 -0
  427. package/build/client/assets/wasm-BZgDB9Bw.js +2 -0
  428. package/build/client/assets/wenyan-DP6lMUYr.js +2 -0
  429. package/build/client/assets/wgsl-BbaLDSMl.js +2 -0
  430. package/build/client/assets/wikitext-CLSmcRzf.js +2 -0
  431. package/build/client/assets/wit-DzS_lAVR.js +2 -0
  432. package/build/client/assets/wolfram-DtAhwQ2F.js +2 -0
  433. package/build/client/assets/workshop-config-CKBDCP83.js +2 -0
  434. package/build/client/assets/workspace-structure-mbG7a_xe.js +2 -0
  435. package/build/client/assets/xml-BpCKdjy8.js +2 -0
  436. package/build/client/assets/xsl-miR-1cbe.js +2 -0
  437. package/build/client/assets/xychartDiagram-5P7HB3ND-Cw7Vesvl.js +8 -0
  438. package/build/client/assets/yaml-HSxWI_Fe.js +2 -0
  439. package/build/client/assets/zenscript-VpWBN6gf.js +2 -0
  440. package/build/client/assets/zig-D8tpV4KW.js +2 -0
  441. package/build/server/index.js +6 -3
  442. package/package.json +3 -3
  443. package/build/client/assets/_-BT9436ea.js +0 -2
  444. package/build/client/assets/_baseUniq-C0JF2TKV.js +0 -2
  445. package/build/client/assets/_exerciseNumber-CSCtk7Al.js +0 -2
  446. package/build/client/assets/_exerciseNumber_._stepNumber.index-DbPI-mzv.js +0 -2
  447. package/build/client/assets/_exerciseNumber_.finished-CEFgXR9z.js +0 -2
  448. package/build/client/assets/_extra-DwJwASmZ.js +0 -2
  449. package/build/client/assets/_layout-B0ti7VTY.js +0 -2
  450. package/build/client/assets/_layout-BuMaH-mO.js +0 -2
  451. package/build/client/assets/_layout-CTeaJDn4.js +0 -2
  452. package/build/client/assets/_layout-CvcQJtsj.js +0 -2
  453. package/build/client/assets/_layout-qrLKgtBY.js +0 -2
  454. package/build/client/assets/abap-EXxxpvIE.js +0 -2
  455. package/build/client/assets/account-DVXE2uNP.js +0 -2
  456. package/build/client/assets/actionscript-3-BaDKk-8k.js +0 -2
  457. package/build/client/assets/ada-CJqs4G11.js +0 -2
  458. package/build/client/assets/andromeeda-CEHVZPcO.js +0 -2
  459. package/build/client/assets/angular-html-C6Ux9EIc.js +0 -2
  460. package/build/client/assets/angular-ts-C-NhS_d_.js +0 -2
  461. package/build/client/assets/apache-TQTFq0Tg.js +0 -2
  462. package/build/client/assets/apex-Oe8gyaym.js +0 -2
  463. package/build/client/assets/apl-CG-DclC2.js +0 -2
  464. package/build/client/assets/app-TJ4tJehJ.js +0 -2
  465. package/build/client/assets/applescript-VhwTu1oZ.js +0 -2
  466. package/build/client/assets/ara-BlUDOa0L.js +0 -2
  467. package/build/client/assets/arc-DGPiDAPj.js +0 -2
  468. package/build/client/assets/architectureDiagram-Q4EWVU46-AgVimCIx.js +0 -37
  469. package/build/client/assets/asciidoc-Dmi0n_4U.js +0 -2
  470. package/build/client/assets/asm-zaQMESCn.js +0 -2
  471. package/build/client/assets/astro-BTXvM4uj.js +0 -2
  472. package/build/client/assets/aurora-x-CvHquPfR.js +0 -2
  473. package/build/client/assets/awk-BUEfU25G.js +0 -2
  474. package/build/client/assets/ayu-dark-B3HUaFwW.js +0 -2
  475. package/build/client/assets/ayu-light-BC_UffEp.js +0 -2
  476. package/build/client/assets/ayu-mirage-BzmjAcMi.js +0 -2
  477. package/build/client/assets/ballerina-9B4rg9kq.js +0 -2
  478. package/build/client/assets/bat-BcEA3y3u.js +0 -2
  479. package/build/client/assets/beancount-BrsrWbSJ.js +0 -2
  480. package/build/client/assets/berry-C8K33bXP.js +0 -2
  481. package/build/client/assets/bibtex-tA4EC8TQ.js +0 -2
  482. package/build/client/assets/bicep-DncYmo6s.js +0 -2
  483. package/build/client/assets/blade-DFbufhk4.js +0 -2
  484. package/build/client/assets/blockDiagram-DXYQGD6D-YxMvO674.js +0 -133
  485. package/build/client/assets/bsl-CjV1FPJ0.js +0 -2
  486. package/build/client/assets/button-BYp3RcB5.js +0 -2
  487. package/build/client/assets/c-CR9dcYwh.js +0 -2
  488. package/build/client/assets/c3-6vFW2y6i.js +0 -2
  489. package/build/client/assets/c4Diagram-AHTNJAMY-Dyy15ND7.js +0 -11
  490. package/build/client/assets/cache-BLX9Oit4.js +0 -2
  491. package/build/client/assets/cadence-DsopAVN6.js +0 -2
  492. package/build/client/assets/cairo-w2RQlUSB.js +0 -2
  493. package/build/client/assets/catppuccin-frappe-flnsXq-5.js +0 -2
  494. package/build/client/assets/catppuccin-latte-pLPvm0hM.js +0 -2
  495. package/build/client/assets/catppuccin-macchiato-BNBQOAN7.js +0 -2
  496. package/build/client/assets/catppuccin-mocha-Dln_2DHd.js +0 -2
  497. package/build/client/assets/channel-5yB1nhXy.js +0 -2
  498. package/build/client/assets/chunk-4BX2VUAB-D2OCPNfC.js +0 -2
  499. package/build/client/assets/chunk-4TB4RGXK-BA6KJGVe.js +0 -207
  500. package/build/client/assets/chunk-55IACEB6-DbNEoblE.js +0 -2
  501. package/build/client/assets/chunk-EDXVE4YY-pxMESK6x.js +0 -2
  502. package/build/client/assets/chunk-EVOBXE3Y-Bmgys8-c.js +0 -27
  503. package/build/client/assets/chunk-FMBD7UC4-Dkp0I7NB.js +0 -16
  504. package/build/client/assets/chunk-OYMX7WX6-9o94Sgjd.js +0 -232
  505. package/build/client/assets/chunk-QZHKN3VN-CtaFri1-.js +0 -2
  506. package/build/client/assets/chunk-YQSHRJWW-_QGrg8P_.js +0 -6
  507. package/build/client/assets/chunk-YZCP3GAM-BIXpV5VM.js +0 -2
  508. package/build/client/assets/clarity-DZouh5ru.js +0 -2
  509. package/build/client/assets/classDiagram-6PBFFD2Q-D4CPON8Y.js +0 -2
  510. package/build/client/assets/classDiagram-v2-HSJHXN6E-BjA_s6QC.js +0 -2
  511. package/build/client/assets/client-only-De_xqwN3.js +0 -2
  512. package/build/client/assets/clojure-hTBbjUP8.js +0 -2
  513. package/build/client/assets/clone-CbObAqrb.js +0 -2
  514. package/build/client/assets/cmake-y9OTSMRa.js +0 -2
  515. package/build/client/assets/cobol-D9oJZwg5.js +0 -2
  516. package/build/client/assets/codeowners-DbN2EGnS.js +0 -2
  517. package/build/client/assets/codeql-2hLdHeoV.js +0 -2
  518. package/build/client/assets/coerce-DZtAt68-.js +0 -2
  519. package/build/client/assets/coffee-Bi23Wg2E.js +0 -2
  520. package/build/client/assets/command-palette-BOjHR2-B.js +0 -2
  521. package/build/client/assets/common-lisp-6LT5ls0T.js +0 -2
  522. package/build/client/assets/coq-B5pRRKvC.js +0 -2
  523. package/build/client/assets/cose-bilkent-S5V4N54A-yQMc_R7i.js +0 -2
  524. package/build/client/assets/cpp-DEkNFtb6.js +0 -2
  525. package/build/client/assets/crystal-BPP3m--Z.js +0 -2
  526. package/build/client/assets/csharp-DM4jiEbu.js +0 -2
  527. package/build/client/assets/css-VHoSHnpz.js +0 -2
  528. package/build/client/assets/csv-BVlxfIcq.js +0 -2
  529. package/build/client/assets/cue-DwhFU4ey.js +0 -2
  530. package/build/client/assets/cypher-Cn4s0ny-.js +0 -2
  531. package/build/client/assets/cytoscape.esm-ulHEOK0w.js +0 -322
  532. package/build/client/assets/d-yWGkmTv4.js +0 -2
  533. package/build/client/assets/dagre-KV5264BT-DkJnHMMa.js +0 -5
  534. package/build/client/assets/dark-plus-DdFFWEQ2.js +0 -2
  535. package/build/client/assets/dart-DEWA59CY.js +0 -2
  536. package/build/client/assets/dax-Dfb3_ApW.js +0 -2
  537. package/build/client/assets/db-BfQcQqtF.js +0 -2
  538. package/build/client/assets/defaultLocale-CpVwrUiO.js +0 -2
  539. package/build/client/assets/desktop-BbYe_HZb.js +0 -2
  540. package/build/client/assets/diagram-5BDNPKRD-DZoPPAJL.js +0 -11
  541. package/build/client/assets/diagram-G4DWMVQ6-CihA5c-3.js +0 -25
  542. package/build/client/assets/diagram-MMDJMWI5-CHnTiHeR.js +0 -44
  543. package/build/client/assets/diagram-TYMM5635-CAy-FBov.js +0 -25
  544. package/build/client/assets/dialog-7CAwytT4.js +0 -6
  545. package/build/client/assets/diff-CWgxwtRl.js +0 -2
  546. package/build/client/assets/diff-Cxjt3lxZ.js +0 -1893
  547. package/build/client/assets/diff-fQtt-wod.js +0 -2
  548. package/build/client/assets/discord-D1A57oEc.js +0 -2
  549. package/build/client/assets/discord-dl9pmy87.js +0 -2
  550. package/build/client/assets/docker-BjWA-oyG.js +0 -2
  551. package/build/client/assets/dotenv-BGA3CNbF.js +0 -2
  552. package/build/client/assets/dracula-CMIcUMAM.js +0 -2
  553. package/build/client/assets/dracula-soft-DN5ubx4R.js +0 -2
  554. package/build/client/assets/dream-maker-DFIDcnj5.js +0 -2
  555. package/build/client/assets/edge-D9GV7Ei_.js +0 -2
  556. package/build/client/assets/elixir-C3PW904A.js +0 -2
  557. package/build/client/assets/elm-D_LuGVc4.js +0 -2
  558. package/build/client/assets/emacs-lisp-CW9xCf2z.js +0 -2
  559. package/build/client/assets/entry.client-tPVSc3DJ.js +0 -11
  560. package/build/client/assets/epic-video-CBu8Wl-E.js +0 -2
  561. package/build/client/assets/epic-video-CaAYhEZJ.js +0 -3397
  562. package/build/client/assets/erDiagram-SMLLAGMA-qADC7WFl.js +0 -86
  563. package/build/client/assets/erb-B2TuxjDa.js +0 -2
  564. package/build/client/assets/erlang-COjQS5Vd.js +0 -2
  565. package/build/client/assets/error-boundary-C8cCfAXR.js +0 -3
  566. package/build/client/assets/error-boundary-Ik9JEOSR.js +0 -2
  567. package/build/client/assets/everforest-dark-BcVhmp-v.js +0 -2
  568. package/build/client/assets/everforest-light-BABw_lAz.js +0 -2
  569. package/build/client/assets/fennel-BWMNJgf6.js +0 -2
  570. package/build/client/assets/finished-B4xoA3Ia.js +0 -2
  571. package/build/client/assets/fish-DfKEMbYf.js +0 -2
  572. package/build/client/assets/flowDiagram-DWJPFMVM-Dg5bUJHn.js +0 -163
  573. package/build/client/assets/fluent-pdkXnM3T.js +0 -2
  574. package/build/client/assets/format-C6HW_OzJ.js +0 -2
  575. package/build/client/assets/fortran-fixed-form-DJRRAQDN.js +0 -2
  576. package/build/client/assets/fortran-free-form-DV1gCHea.js +0 -2
  577. package/build/client/assets/fsharp--cXMF3qO.js +0 -2
  578. package/build/client/assets/ganttDiagram-T4ZO3ILL-ZP69k8Vi.js +0 -293
  579. package/build/client/assets/gdresource-8QVnS8N9.js +0 -2
  580. package/build/client/assets/gdscript-B-tinReb.js +0 -2
  581. package/build/client/assets/gdshader-D-sX5R4v.js +0 -2
  582. package/build/client/assets/genie-BmkGpf0o.js +0 -2
  583. package/build/client/assets/gherkin-B82_eSH5.js +0 -2
  584. package/build/client/assets/git-commit-DIM1uo6E.js +0 -2
  585. package/build/client/assets/git-rebase-r7JAQ3Rs.js +0 -2
  586. package/build/client/assets/gitGraphDiagram-UUTBAWPF-DghPPXTg.js +0 -107
  587. package/build/client/assets/github-dark-ItxRbaCF.js +0 -2
  588. package/build/client/assets/github-dark-default-Dqj3O7-B.js +0 -2
  589. package/build/client/assets/github-dark-dimmed-lOY--M6I.js +0 -2
  590. package/build/client/assets/github-dark-high-contrast-B7OajhI1.js +0 -2
  591. package/build/client/assets/github-light-Ys8OgkLF.js +0 -2
  592. package/build/client/assets/github-light-default-CImC0z1F.js +0 -2
  593. package/build/client/assets/github-light-high-contrast-DeuTq3bC.js +0 -2
  594. package/build/client/assets/gleam-6q1j_8JJ.js +0 -2
  595. package/build/client/assets/glimmer-js-DpkjQGdb.js +0 -2
  596. package/build/client/assets/glimmer-ts-BIU3Iomp.js +0 -2
  597. package/build/client/assets/glsl-CuPbztvA.js +0 -2
  598. package/build/client/assets/gn-B7PAH90T.js +0 -2
  599. package/build/client/assets/gnuplot-JCUDX9KJ.js +0 -2
  600. package/build/client/assets/go-DAF6hyfr.js +0 -2
  601. package/build/client/assets/graph-CjsRXT3S.js +0 -2
  602. package/build/client/assets/graphql-DRzOeJTk.js +0 -2
  603. package/build/client/assets/groovy-BCkM3IBO.js +0 -2
  604. package/build/client/assets/gruvbox-dark-hard-CLk2Sg5N.js +0 -2
  605. package/build/client/assets/gruvbox-dark-medium-Dv04O_Qz.js +0 -2
  606. package/build/client/assets/gruvbox-dark-soft-BBQ7ymWE.js +0 -2
  607. package/build/client/assets/gruvbox-light-hard-DEXF5z0W.js +0 -2
  608. package/build/client/assets/gruvbox-light-medium-BrxJZ8RE.js +0 -2
  609. package/build/client/assets/gruvbox-light-soft-C-rp8HGP.js +0 -2
  610. package/build/client/assets/guide-3DsI5Ii0.js +0 -9
  611. package/build/client/assets/hack-DzlTMoR3.js +0 -2
  612. package/build/client/assets/haml-COHee38x.js +0 -2
  613. package/build/client/assets/handlebars-C8hg2qEV.js +0 -2
  614. package/build/client/assets/haskell-qpdQ45KJ.js +0 -2
  615. package/build/client/assets/haxe-DcflU8c4.js +0 -2
  616. package/build/client/assets/hcl-_9MgfIlw.js +0 -2
  617. package/build/client/assets/hjson-C0k6WJ9A.js +0 -2
  618. package/build/client/assets/hlsl-BM3gP0ai.js +0 -2
  619. package/build/client/assets/horizon-C_p2-MnL.js +0 -2
  620. package/build/client/assets/houston-BAPwZj6C.js +0 -2
  621. package/build/client/assets/html-CSKTmz0s.js +0 -2
  622. package/build/client/assets/html-derivative-DOqPFzKp.js +0 -2
  623. package/build/client/assets/http-CAoYOCKU.js +0 -2
  624. package/build/client/assets/hurl-MIoTyRxi.js +0 -2
  625. package/build/client/assets/hxml-YE6AIiNR.js +0 -2
  626. package/build/client/assets/hy-B_YXjNfJ.js +0 -2
  627. package/build/client/assets/imba-Cun6PR6E.js +0 -2
  628. package/build/client/assets/index-Bh67Vwl7.js +0 -2
  629. package/build/client/assets/index-BiGqsMpe.js +0 -83
  630. package/build/client/assets/index-BlgqdxwS.js +0 -2
  631. package/build/client/assets/index-BoCb-ZDw.js +0 -2
  632. package/build/client/assets/index-CFdT0RIo.js +0 -2
  633. package/build/client/assets/index-D5dMhZeG.js +0 -2
  634. package/build/client/assets/index-DDpCzuT4.js +0 -2
  635. package/build/client/assets/index-DVoM9egA.js +0 -2
  636. package/build/client/assets/index-DkUG1N7T.js +0 -2
  637. package/build/client/assets/index-J1nVA_jb.js +0 -2
  638. package/build/client/assets/index-SfOF7hjq.js +0 -42
  639. package/build/client/assets/index-ZNADqOyW.js +0 -2
  640. package/build/client/assets/index.client-B4Gezg7M.js +0 -500
  641. package/build/client/assets/infoDiagram-42DDH7IO-Cupvew4i.js +0 -3
  642. package/build/client/assets/ini-CWj5weMe.js +0 -2
  643. package/build/client/assets/init-DB8TqInT.js +0 -2
  644. package/build/client/assets/ishikawaDiagram-UXIWVN3A-BEf836kf.js +0 -71
  645. package/build/client/assets/java-DVZupYui.js +0 -2
  646. package/build/client/assets/javascript-50CLWs3d.js +0 -2
  647. package/build/client/assets/jinja-DB1qyn1M.js +0 -2
  648. package/build/client/assets/jison-CjOu4BOa.js +0 -2
  649. package/build/client/assets/journeyDiagram-VCZTEJTY-ZrKfccix.js +0 -140
  650. package/build/client/assets/json-DsZx9y_T.js +0 -2
  651. package/build/client/assets/json5-CqO7DsW5.js +0 -2
  652. package/build/client/assets/jsonc-Bq5tNIGH.js +0 -2
  653. package/build/client/assets/jsonl-BsYotExs.js +0 -2
  654. package/build/client/assets/jsonnet-Miv0uYwm.js +0 -2
  655. package/build/client/assets/jssm-DgHPmGaA.js +0 -2
  656. package/build/client/assets/jsx-Bmkl4-6c.js +0 -2
  657. package/build/client/assets/jsx-runtime-hUI6LOBV.js +0 -2
  658. package/build/client/assets/julia-DEsqMxia.js +0 -2
  659. package/build/client/assets/kanagawa-dragon-BrO0lLK3.js +0 -2
  660. package/build/client/assets/kanagawa-lotus-Cp71I2om.js +0 -2
  661. package/build/client/assets/kanagawa-wave-B0xKGE4W.js +0 -2
  662. package/build/client/assets/kanban-definition-6JOO6SKY-BNrjcmVu.js +0 -90
  663. package/build/client/assets/katex-DQkiHNfB.js +0 -262
  664. package/build/client/assets/kdl-D6gD5Cj3.js +0 -2
  665. package/build/client/assets/kotlin-DsQagdE8.js +0 -2
  666. package/build/client/assets/kusto-CBQsh5AE.js +0 -2
  667. package/build/client/assets/l-DOzVYUO-.js +0 -2
  668. package/build/client/assets/laserwave-NZPLUhWk.js +0 -2
  669. package/build/client/assets/latex-Bhud-2JR.js +0 -2
  670. package/build/client/assets/launch-editor-DiQgdwg7.js +0 -2
  671. package/build/client/assets/layout-BWdjanO0.js +0 -2
  672. package/build/client/assets/lean-DD2KqpdV.js +0 -2
  673. package/build/client/assets/less-C9yJ14kV.js +0 -2
  674. package/build/client/assets/light-plus-BB9wiXzJ.js +0 -2
  675. package/build/client/assets/linear-kA5tSxQL.js +0 -2
  676. package/build/client/assets/liquid-2inoUFag.js +0 -2
  677. package/build/client/assets/llvm-CDsgmjfO.js +0 -2
  678. package/build/client/assets/loading-Cf-_cX4u.js +0 -2
  679. package/build/client/assets/log-C6_nsc2b.js +0 -2
  680. package/build/client/assets/login-CjJUgGco.js +0 -2
  681. package/build/client/assets/logo-C2Pq6_PQ.js +0 -2
  682. package/build/client/assets/lua-DpxJNud_.js +0 -2
  683. package/build/client/assets/luau-fZVhGDyL.js +0 -2
  684. package/build/client/assets/make-D2gBzN10.js +0 -2
  685. package/build/client/assets/manifest-d23b918c.js +0 -1
  686. package/build/client/assets/markdown-wN3kdmFB.js +0 -2
  687. package/build/client/assets/marko-BmdWvnvZ.js +0 -2
  688. package/build/client/assets/material-theme-C8fTAfKk.js +0 -2
  689. package/build/client/assets/material-theme-darker-CIfgkCnw.js +0 -2
  690. package/build/client/assets/material-theme-lighter-B_HGuFNc.js +0 -2
  691. package/build/client/assets/material-theme-ocean-S8Z9jiiC.js +0 -2
  692. package/build/client/assets/material-theme-palenight-EpSQV2Ds.js +0 -2
  693. package/build/client/assets/matlab-Be0m5p17.js +0 -2
  694. package/build/client/assets/mdc-CtVUIR2e.js +0 -2
  695. package/build/client/assets/mdx-C9OwPmWH.js +0 -3
  696. package/build/client/assets/mdx-FDxWoPwO.js +0 -2
  697. package/build/client/assets/mermaid-Csqg4RGZ.js +0 -2
  698. package/build/client/assets/mermaid.core-BMua9uWp.js +0 -304
  699. package/build/client/assets/min-BtgwXF5n.js +0 -2
  700. package/build/client/assets/min-dark-Cz7hEUe5.js +0 -2
  701. package/build/client/assets/min-light-B6yGo-P-.js +0 -2
  702. package/build/client/assets/mindmap-definition-QFDTVHPH-BEcNg8IU.js +0 -97
  703. package/build/client/assets/mipsasm-Dt6OK7Nm.js +0 -2
  704. package/build/client/assets/misc-BNcbB3dR.js +0 -2
  705. package/build/client/assets/mojo-B5iXJ_Nz.js +0 -2
  706. package/build/client/assets/monokai-BKoTHMXB.js +0 -2
  707. package/build/client/assets/moonbit-BjKlDB-X.js +0 -2
  708. package/build/client/assets/move-CyM9HiWJ.js +0 -2
  709. package/build/client/assets/narrat-BNa-EMr3.js +0 -2
  710. package/build/client/assets/nav-chevrons-BQZ__Z2z.js +0 -2
  711. package/build/client/assets/nextflow-CbGEqPfa.js +0 -2
  712. package/build/client/assets/nginx-COcdjV_H.js +0 -2
  713. package/build/client/assets/night-owl-CKhLZog1.js +0 -2
  714. package/build/client/assets/night-owl-light-BE5Yc_qh.js +0 -2
  715. package/build/client/assets/nim-ClNDI2gR.js +0 -2
  716. package/build/client/assets/nix-D6p2jdx-.js +0 -2
  717. package/build/client/assets/nord-BUe3zTSo.js +0 -2
  718. package/build/client/assets/nushell-DOO_8Ty3.js +0 -2
  719. package/build/client/assets/objective-c-B2sMRvJx.js +0 -2
  720. package/build/client/assets/objective-cpp-mwTLnaXT.js +0 -2
  721. package/build/client/assets/ocaml-CiqibrVy.js +0 -2
  722. package/build/client/assets/odin-B5Taooyc.js +0 -2
  723. package/build/client/assets/offline-videos-C628-CDe.js +0 -2
  724. package/build/client/assets/onboarding-indicator-CS7d1RLw.js +0 -2
  725. package/build/client/assets/one-dark-pro-Z7WXvzIg.js +0 -2
  726. package/build/client/assets/one-light-BMyP2FLU.js +0 -2
  727. package/build/client/assets/online-BM9kpW1W.js +0 -2
  728. package/build/client/assets/openscad-DrxZV49E.js +0 -2
  729. package/build/client/assets/ordinal-syO2Mdip.js +0 -2
  730. package/build/client/assets/pascal-Cyi_tFV5.js +0 -2
  731. package/build/client/assets/pe-BRA_K7Pt.js +0 -2
  732. package/build/client/assets/perl-CVLq4wVc.js +0 -2
  733. package/build/client/assets/php-D54Ljsjk.js +0 -2
  734. package/build/client/assets/pieDiagram-DEJITSTG-CrlFJnNo.js +0 -31
  735. package/build/client/assets/pierre-dark-BF7Rov05.js +0 -2
  736. package/build/client/assets/pierre-light-1PNFMH6t.js +0 -2
  737. package/build/client/assets/pkl-BubI3ciq.js +0 -2
  738. package/build/client/assets/plastic-BAl6iMdU.js +0 -2
  739. package/build/client/assets/playground-DmBtp9Rr.js +0 -2
  740. package/build/client/assets/playground-window-53zTrrRT.js +0 -2
  741. package/build/client/assets/plsql-DwbikqQ5.js +0 -2
  742. package/build/client/assets/po-_QhFERIT.js +0 -2
  743. package/build/client/assets/poimandres-4qD_qa-T.js +0 -2
  744. package/build/client/assets/polar-Dr2si1W4.js +0 -2
  745. package/build/client/assets/popover-D_79GoKZ.js +0 -2
  746. package/build/client/assets/postcss-Cqfdd1vP.js +0 -2
  747. package/build/client/assets/powerquery-Duh_WA-u.js +0 -2
  748. package/build/client/assets/powershell-Dgsa0rUh.js +0 -2
  749. package/build/client/assets/preferences-C_W4r3Wj.js +0 -2
  750. package/build/client/assets/preload-helper-DLdknYSj.js +0 -2
  751. package/build/client/assets/presence-DHVR7rPB.js +0 -61
  752. package/build/client/assets/preview-DsrzZJ3M.js +0 -2
  753. package/build/client/assets/prisma-3kk1xjwP.js +0 -2
  754. package/build/client/assets/product-tE_ZTgJf.js +0 -2
  755. package/build/client/assets/progress-DohUumej.js +0 -2
  756. package/build/client/assets/progress-bar-8MSIg-hJ.js +0 -2
  757. package/build/client/assets/prolog-DcbFR_-h.js +0 -2
  758. package/build/client/assets/proto-Bd3Qdmg2.js +0 -2
  759. package/build/client/assets/pug-DKhJ1yvQ.js +0 -2
  760. package/build/client/assets/puppet-D32Aj5jf.js +0 -2
  761. package/build/client/assets/purescript-PqafYsI9.js +0 -2
  762. package/build/client/assets/python--vzXdgBR.js +0 -2
  763. package/build/client/assets/qml-Cr01KhVR.js +0 -2
  764. package/build/client/assets/qmldir-DW6hox2m.js +0 -2
  765. package/build/client/assets/qss-yfiyM7_U.js +0 -2
  766. package/build/client/assets/quadrantDiagram-34T5L4WZ-C-fJVOPy.js +0 -8
  767. package/build/client/assets/r-LyzSKwT3.js +0 -2
  768. package/build/client/assets/racket-BRtueVUS.js +0 -2
  769. package/build/client/assets/raku-BRHK-UIa.js +0 -2
  770. package/build/client/assets/razor-BWj5VfIx.js +0 -2
  771. package/build/client/assets/react-error-boundary-DgOlQwwM.js +0 -2
  772. package/build/client/assets/red-BdTREnI1.js +0 -2
  773. package/build/client/assets/reg-DsbaXzPz.js +0 -2
  774. package/build/client/assets/regexp-DiS5fkLZ.js +0 -2
  775. package/build/client/assets/rel-m9ZazMK_.js +0 -2
  776. package/build/client/assets/requirementDiagram-MS252O5E-PGhhkc8a.js +0 -85
  777. package/build/client/assets/retrieval-practice-DaD6eeDM.js +0 -2
  778. package/build/client/assets/revalidation-ws-DjL8N8TA.js +0 -2
  779. package/build/client/assets/riscv-YKmXuLBX.js +0 -2
  780. package/build/client/assets/ron-shfPFxE-.js +0 -2
  781. package/build/client/assets/root-k2jc7r1v.js +0 -3
  782. package/build/client/assets/root-loader-ByAKsmmv.js +0 -2
  783. package/build/client/assets/rose-pine-DfnVmLtX.js +0 -2
  784. package/build/client/assets/rose-pine-dawn-D-sTnIpU.js +0 -2
  785. package/build/client/assets/rose-pine-moon-BJ6PWjoc.js +0 -2
  786. package/build/client/assets/rosmsg-CNZ2OwiZ.js +0 -2
  787. package/build/client/assets/rst-DvFSZSpr.js +0 -2
  788. package/build/client/assets/ruby-DMtEv4Gt.js +0 -2
  789. package/build/client/assets/rust-BxtItHEL.js +0 -2
  790. package/build/client/assets/sankeyDiagram-XADWPNL6-BjOZvTrV.js +0 -11
  791. package/build/client/assets/sas-BN9PoijS.js +0 -2
  792. package/build/client/assets/sass-BA97gn2Y.js +0 -2
  793. package/build/client/assets/scala-BZhlyAfD.js +0 -2
  794. package/build/client/assets/schemas-Bn3zadsT.js +0 -41
  795. package/build/client/assets/scheme-W2O8wGLi.js +0 -2
  796. package/build/client/assets/scss-B0YKoF9x.js +0 -2
  797. package/build/client/assets/sdbl-BEdax8w1.js +0 -2
  798. package/build/client/assets/seo-DV9H08y-.js +0 -2
  799. package/build/client/assets/sequenceDiagram-FGHM5R23-VH3XbE82.js +0 -158
  800. package/build/client/assets/set-playground-DyT4jldX.js +0 -2
  801. package/build/client/assets/shaderlab-Dro2S3zn.js +0 -2
  802. package/build/client/assets/shellscript-nxMxhVIj.js +0 -2
  803. package/build/client/assets/shellsession-B0m-Jx6h.js +0 -2
  804. package/build/client/assets/slack-dark-DwV80mSS.js +0 -2
  805. package/build/client/assets/slack-ochin-BexPifVu.js +0 -2
  806. package/build/client/assets/smalltalk-D0IVZAcX.js +0 -2
  807. package/build/client/assets/snazzy-light-hZSGUCZ5.js +0 -2
  808. package/build/client/assets/solarized-dark-CzU25Uzi.js +0 -2
  809. package/build/client/assets/solarized-light-C4CBVOAR.js +0 -2
  810. package/build/client/assets/solidity-Cr1rjeDv.js +0 -2
  811. package/build/client/assets/soy-CUEmwnhG.js +0 -2
  812. package/build/client/assets/sparql-D_EPzAtC.js +0 -2
  813. package/build/client/assets/split-layout-s1Y4wBQe.js +0 -2
  814. package/build/client/assets/splunk-zc9M-9b7.js +0 -2
  815. package/build/client/assets/sql-DKCBqeFM.js +0 -2
  816. package/build/client/assets/ssh-config-xq9rRPXh.js +0 -2
  817. package/build/client/assets/stata-CEbC3D5P.js +0 -2
  818. package/build/client/assets/stateDiagram-FHFEXIEX-CjL6dKTy.js +0 -2
  819. package/build/client/assets/stateDiagram-v2-QKLJ7IA2-k8xrCs-c.js +0 -2
  820. package/build/client/assets/status-indicator-DQNahQlq.js +0 -2
  821. package/build/client/assets/stylus-C59f42vG.js +0 -2
  822. package/build/client/assets/support-VKyviys2.js +0 -2
  823. package/build/client/assets/surrealql-skMMAZOK.js +0 -2
  824. package/build/client/assets/svelte-BiSMfAVw.js +0 -2
  825. package/build/client/assets/swift-VVxGP8GW.js +0 -2
  826. package/build/client/assets/synthwave-84-BCdhzwk7.js +0 -2
  827. package/build/client/assets/system-verilog-DIWyxszJ.js +0 -2
  828. package/build/client/assets/systemd-DcYMli4y.js +0 -2
  829. package/build/client/assets/talonscript-BhZspne4.js +0 -2
  830. package/build/client/assets/tasl-DIlKmZpy.js +0 -2
  831. package/build/client/assets/tcl-GT3pnOWo.js +0 -2
  832. package/build/client/assets/templ-BYviji7e.js +0 -2
  833. package/build/client/assets/terraform-D9j6D-Ny.js +0 -2
  834. package/build/client/assets/test-BfPTmMGn.js +0 -2
  835. package/build/client/assets/tests-G4o5iHU_.js +0 -4
  836. package/build/client/assets/tex-BbstrPnc.js +0 -2
  837. package/build/client/assets/timeline-definition-GMOUNBTQ-BCXQjzMG.js +0 -121
  838. package/build/client/assets/tokyo-night-QFMsc9wo.js +0 -2
  839. package/build/client/assets/toml-CbPaVabe.js +0 -2
  840. package/build/client/assets/tooltip-CoTdGGXz.js +0 -2
  841. package/build/client/assets/ts-tags-hqcJpMTS.js +0 -2
  842. package/build/client/assets/tsv-CYttvNtR.js +0 -2
  843. package/build/client/assets/tsx-q60CF6t4.js +0 -2
  844. package/build/client/assets/turtle-ClHAbrEC.js +0 -2
  845. package/build/client/assets/twig-CU_Ieduc.js +0 -2
  846. package/build/client/assets/typescript-I0dBY1Gn.js +0 -2
  847. package/build/client/assets/typespec-Djx19HmP.js +0 -2
  848. package/build/client/assets/typst-DarX3ipb.js +0 -2
  849. package/build/client/assets/user-BrD2IM_u.js +0 -2
  850. package/build/client/assets/v-BcLljofM.js +0 -2
  851. package/build/client/assets/vala-6RPKLkOf.js +0 -2
  852. package/build/client/assets/vb-D6eT5E7n.js +0 -2
  853. package/build/client/assets/vennDiagram-DHZGUBPP-CGdM7Aus.js +0 -35
  854. package/build/client/assets/verilog-DEgNK26i.js +0 -2
  855. package/build/client/assets/version-DGvvpKAO.js +0 -2
  856. package/build/client/assets/vesper-Dl5O7k2G.js +0 -2
  857. package/build/client/assets/vhdl-D1_YxcWz.js +0 -2
  858. package/build/client/assets/viml-CQw_gfVl.js +0 -2
  859. package/build/client/assets/vitesse-black-Du1Iqay6.js +0 -2
  860. package/build/client/assets/vitesse-dark-Dd9K6yxW.js +0 -2
  861. package/build/client/assets/vitesse-light-DcAoovp5.js +0 -2
  862. package/build/client/assets/vue-fmQHcKT_.js +0 -2
  863. package/build/client/assets/vue-html-C0H03Slw.js +0 -2
  864. package/build/client/assets/vue-vine-CFYKonMv.js +0 -2
  865. package/build/client/assets/vyper-Y_Fey19q.js +0 -2
  866. package/build/client/assets/wardley-RL74JXVD-B19Iaomu.js +0 -163
  867. package/build/client/assets/wardleyDiagram-NUSXRM2D-BY1V3DmD.js +0 -21
  868. package/build/client/assets/wasm-DM1fBalp.js +0 -2
  869. package/build/client/assets/wasm-sYrnnFJo.js +0 -2
  870. package/build/client/assets/wenyan-DW7phHOp.js +0 -2
  871. package/build/client/assets/wgsl-BAijelvZ.js +0 -2
  872. package/build/client/assets/wikitext-CKqsGJJh.js +0 -2
  873. package/build/client/assets/wit-DqVtQTTE.js +0 -2
  874. package/build/client/assets/wolfram-BZ2toccd.js +0 -2
  875. package/build/client/assets/workshop-config-BNvMPSev.js +0 -2
  876. package/build/client/assets/workspace-structure-CH5nlE9I.js +0 -2
  877. package/build/client/assets/xml-swHqFINk.js +0 -2
  878. package/build/client/assets/xsl-Bdq-ErzU.js +0 -2
  879. package/build/client/assets/xychartDiagram-5P7HB3ND-DEGt0NGP.js +0 -8
  880. package/build/client/assets/yaml-aYgU2TLq.js +0 -2
  881. package/build/client/assets/zenscript-ChPeTvrC.js +0 -2
  882. package/build/client/assets/zig-GHqzzShi.js +0 -2
@@ -1,500 +0,0 @@
1
- import{r as nt}from"./index-CFdT0RIo.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"66e9b849450b819e11683314a547a341cb57f7d0"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d59b75b7-a0b8-4f1a-8e2a-ae2420006fb4",e._sentryDebugIdIdentifier="sentry-dbid-d59b75b7-a0b8-4f1a-8e2a-ae2420006fb4")}catch{}})();const I=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,D=globalThis,Jt="10.50.0";function Ut(){return ts(D),D}function ts(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||Jt,t[Jt]=t[Jt]||{}}function fr(e,t,n=D){const r=n.__SENTRY__=n.__SENTRY__||{},s=r[Jt]=r[Jt]||{};return s[e]||(s[e]=t())}const Va=["debug","info","warn","error","log","assert","trace"],eg="Sentry Logger ",lo={};function vt(e){if(!("console"in D))return e();const t=D.console,n={},r=Object.keys(lo);r.forEach(s=>{const o=lo[s];n[s]=t[s],t[s]=o});try{return e()}finally{r.forEach(s=>{t[s]=n[s]})}}function tg(){Ja().enabled=!0}function ng(){Ja().enabled=!1}function Zd(){return Ja().enabled}function rg(...e){Ya("log",...e)}function sg(...e){Ya("warn",...e)}function og(...e){Ya("error",...e)}function Ya(e,...t){I&&Zd()&&vt(()=>{D.console[e](`${eg}[${e}]:`,...t)})}function Ja(){return I?fr("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const m={enable:tg,disable:ng,isEnabled:Zd,log:rg,warn:sg,error:og},ef=50,St="?",fu=/\(error: (.*)\)/,pu=/captureMessage|captureException/;function tf(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,s=0)=>{const o=[],i=n.split(`
2
- `);for(let a=r;a<i.length;a++){let c=i[a];c.length>1024&&(c=c.slice(0,1024));const u=fu.test(c)?c.replace(fu,"$1"):c;if(!u.includes("Error: ")){for(const d of t){const l=d(u);if(l){o.push(l);break}}if(o.length>=ef+s)break}}return ag(o.slice(s))}}function ig(e){return Array.isArray(e)?tf(...e):e}function ag(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Cs(t).function||"")&&t.pop(),t.reverse(),pu.test(Cs(t).function||"")&&(t.pop(),pu.test(Cs(t).function||"")&&t.pop()),t.slice(0,ef).map(n=>({...n,filename:n.filename||Cs(t).filename,function:n.function||St}))}function Cs(e){return e[e.length-1]||{}}const ki="<anonymous>";function Mt(e){try{return!e||typeof e!="function"?ki:e.name||ki}catch{return ki}}function ua(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function nf(e){return"__v_isVNode"in e&&e.__v_isVNode?"[VueVNode]":"[VueViewModel]"}function cg(e){let t=e?.startsWith("file://")?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}const Gs={},hu={};function rn(e,t){Gs[e]=Gs[e]||[],Gs[e].push(t)}function sn(e,t){if(!hu[e]){hu[e]=!0;try{t()}catch(n){I&&m.error(`Error while instrumenting ${e}`,n)}}}function rt(e,t){const n=e&&Gs[e];if(n)for(const r of n)try{r(t)}catch(s){I&&m.error(`Error while triggering instrumentation handler.
3
- Type: ${e}
4
- Name: ${Mt(r)}
5
- Error:`,s)}}let Ri=null;function rf(e){const t="error";rn(t,e),sn(t,ug)}function ug(){Ri=D.onerror,D.onerror=function(e,t,n,r,s){return rt("error",{column:r,error:s,line:n,msg:e,url:t}),Ri?Ri.apply(this,arguments):!1},D.onerror.__SENTRY_INSTRUMENTED__=!0}let Ci=null;function sf(e){const t="unhandledrejection";rn(t,e),sn(t,lg)}function lg(){Ci=D.onunhandledrejection,D.onunhandledrejection=function(e){return rt("unhandledrejection",e),Ci?Ci.apply(this,arguments):!0},D.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const of=Object.prototype.toString;function _t(e){switch(of.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Ot(e,Error)}}function pr(e,t){return of.call(e)===`[object ${t}]`}function af(e){return pr(e,"ErrorEvent")}function mu(e){return pr(e,"DOMError")}function dg(e){return pr(e,"DOMException")}function dt(e){return pr(e,"String")}function zo(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Nt(e){return e===null||zo(e)||typeof e!="object"&&typeof e!="function"}function We(e){return pr(e,"Object")}function Go(e){return typeof Event<"u"&&Ot(e,Event)}function fg(e){return typeof Element<"u"&&Ot(e,Element)}function pg(e){return pr(e,"RegExp")}function Cn(e){return!!(e?.then&&typeof e.then=="function")}function hg(e){return We(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Ot(e,t){try{return e instanceof t}catch{return!1}}function cf(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue||e.__v_isVNode))}function Ka(e){return typeof Request<"u"&&Ot(e,Request)}const Xa=D,mg=80;function ke(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,s=[];let o=0,i=0;const a=" > ",c=a.length;let u;const d=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||mg;for(;n&&o++<r&&(u=gg(n,d),!(u==="html"||o>1&&i+s.length*c+u.length>=l));)s.push(u),i+=u.length,n=n.parentNode;return s.reverse().join(a)}catch{return"<unknown>"}}function gg(e,t){const n=e,r=[];if(!n?.tagName)return"";if(Xa.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());const s=t?.length?t.filter(o=>n.getAttribute(o)).map(o=>[o,n.getAttribute(o)]):null;if(s?.length)s.forEach(o=>{r.push(`[${o[0]}="${o[1]}"]`)});else{n.id&&r.push(`#${n.id}`);const o=n.className;if(o&&dt(o)){const i=o.split(/\s+/);for(const a of i)r.push(`.${a}`)}}for(const o of["aria-label","type","name","title","alt"]){const i=n.getAttribute(o);i&&r.push(`[${o}="${i}"]`)}return r.join("")}function An(){try{return Xa.document.location.href}catch{return""}}function Qa(e,t=5){if(!Xa.HTMLElement)return null;let n=e;for(let r=0;r<t;r++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}function Oe(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const s=n(r);typeof s=="function"&&uf(s,r);try{e[t]=s}catch{I&&m.log(`Failed to replace method "${t}" in object`,e)}}function Le(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{I&&m.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function uf(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Le(e,"__sentry_original__",t)}catch{}}function Za(e){return e.__sentry_original__}function lf(e){if(_t(e))return{message:e.message,name:e.name,stack:e.stack,..._u(e)};if(Go(e)){const t={type:e.type,target:gu(e.target),currentTarget:gu(e.currentTarget),..._u(e)};return typeof CustomEvent<"u"&&Ot(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function gu(e){try{return fg(e)?ke(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function _u(e){return typeof e=="object"&&e!==null?Object.fromEntries(Object.entries(e)):{}}function _g(e){const t=Object.keys(lf(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}let Nn;function ns(e){if(Nn!==void 0)return Nn?Nn(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=D;return t in n&&typeof n[t]=="function"?(Nn=n[t],Nn(e)):(Nn=null,e())}function Ct(){return ns(()=>Math.random())}function rs(){return ns(()=>Date.now())}function jr(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Ai(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let s=Math.max(t-60,0);s<5&&(s=0);let o=Math.min(s+140,r);return o>r-5&&(o=r),o===r&&(s=Math.max(o-140,0)),n=n.slice(s,o),s>0&&(n=`'{snip} ${n}`),o<r&&(n+=" {snip}"),n}function fo(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const s=e[r];try{cf(s)?n.push(nf(s)):n.push(String(s))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function Vs(e,t,n=!1){return dt(e)?pg(t)?t.test(e):dt(t)?n?e===t:e.includes(t):typeof t=="function"?t(e):!1:!1}function ft(e,t=[],n=!1){return t.some(r=>Vs(e,r,n))}function yg(){const e=D;return e.crypto||e.msCrypto}let xi;function Sg(){return Ct()*16}function we(e=yg()){try{if(e?.randomUUID)return ns(()=>e.randomUUID()).replace(/-/g,"")}catch{}return xi||(xi="10000000100040008000"+1e11),xi.replace(/[018]/g,t=>(t^(Sg()&15)>>t/4).toString(16))}function df(e){return e.exception?.values?.[0]}function fn(e){const{message:t,event_id:n}=e;if(t)return t;const r=df(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function la(e,t,n){const r=e.exception=e.exception||{},s=r.values=r.values||[],o=s[0]=s[0]||{};o.value||(o.value=t||""),o.type||(o.type="Error")}function Pt(e,t){const n=df(e);if(!n)return;const r={type:"generic",handled:!0},s=n.mechanism;if(n.mechanism={...r,...s,...t},t&&"data"in t){const o={...s?.data,...t.data};n.mechanism.data=o}}function bg(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,s=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,s-n),s).map(i=>Ai(i,0));const o=Math.min(r-1,s);t.context_line=Ai(e[o],t.colno||0),t.post_context=e.slice(Math.min(s+1,r),s+1+n).map(i=>Ai(i,0))}function yu(e){if(Eg(e))return!0;try{Le(e,"__sentry_captured__",!0)}catch{}return!1}function Eg(e){try{return e.__sentry_captured__}catch{}}const ff=1e3;function xn(){return rs()/ff}function Tg(){const{performance:e}=D;if(!e?.now||!e.timeOrigin)return xn;const t=e.timeOrigin;return()=>(t+ns(()=>e.now()))/ff}let Su;function de(){return(Su??(Su=Tg()))()}let Mi=null;function vg(){const{performance:e}=D;if(!e?.now)return;const t=3e5,n=ns(()=>e.now()),r=rs(),s=e.timeOrigin;if(typeof s=="number"&&Math.abs(s+n-r)<t)return s;const o=e.timing?.navigationStart;return typeof o=="number"&&Math.abs(o+n-r)<t?o:r-n}function Ie(){return Mi===null&&(Mi=vg()),Mi}function Ig(e){const t=de(),n={sid:we(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>kg(n)};return e&&Xn(n,e),n}function Xn(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||de(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:we()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function wg(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),Xn(e,n)}function kg(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function ss(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=ss(r[s],t[s],n-1));return r}function bt(){return we()}function At(){return we().substring(16)}const da="_sentrySpan";function Et(e,t){t?Le(e,da,t):delete e[da]}function Qn(e){return e[da]}const Rg=100;class Tt{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:bt(),sampleRand:Ct()}}clone(){const t=new Tt;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,Et(t,Qn(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Xn(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof Tt?n.getScopeData():We(n)?t:void 0,{tags:s,attributes:o,extra:i,user:a,contexts:c,level:u,fingerprint:d=[],propagationContext:l,conversationId:p}=r||{};return this._tags={...this._tags,...s},this._attributes={...this._attributes,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...c},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),d.length&&(this._fingerprint=d),l&&(this._propagationContext=l),p&&(this._conversationId=p),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Et(this,void 0),this._attachments=[],this.setPropagationContext({traceId:bt(),sampleRand:Ct()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:Rg;if(r<=0)return this;const s={timestamp:xn(),...t,message:t.message?jr(t.message,2048):t.message};return this._breadcrumbs.push(s),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,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:Qn(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=ss(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n?.event_id||we();if(!this._client)return I&&m.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:s,...n,event_id:r},this),r}captureMessage(t,n,r){const s=r?.event_id||we();if(!this._client)return I&&m.warn("No client configured on scope - will not capture message!"),s;const o=r?.syntheticException??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:s},this),s}captureEvent(t,n){const r=t.event_id||n?.event_id||we();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(I&&m.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function Cg(){return fr("defaultCurrentScope",()=>new Tt)}function Ag(){return fr("defaultIsolationScope",()=>new Tt)}const bu=e=>e instanceof Promise&&!e[pf],pf=Symbol("chained PromiseLike"),hf=(e,t,n)=>{const r=e.then(s=>(t(s),s),s=>{throw n(s),s});return bu(r)&&bu(e)?r:xg(e,r)},xg=(e,t)=>{let n=!1;for(const r in e){if(r in t)continue;n=!0;const s=e[r];typeof s=="function"?Object.defineProperty(t,r,{value:(...o)=>s.apply(e,o),enumerable:!0,configurable:!0,writable:!0}):t[r]=s}return n&&Object.assign(t,{[pf]:!0}),t};class Mg{constructor(t,n){let r;t?r=t:r=new Tt;let s;n?s=n:s=new Tt,this._stack=[{scope:r}],this._isolationScope=s}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(s){throw this._popScope(),s}return Cn(r)?hf(r,()=>this._popScope(),()=>this._popScope()):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Zn(){const e=Ut(),t=ts(e);return t.stack=t.stack||new Mg(Cg(),Ag())}function Ng(e){return Zn().withScope(e)}function Og(e,t){const n=Zn();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Eu(e){return Zn().withScope(()=>e(Zn().getIsolationScope()))}function Pg(){return{withIsolationScope:Eu,withScope:Ng,withSetScope:Og,withSetIsolationScope:(e,t)=>Eu(t),getCurrentScope:()=>Zn().getScope(),getIsolationScope:()=>Zn().getIsolationScope()}}function on(e){const t=ts(e);return t.acs?t.acs:Pg()}function Lg(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.keys(e).includes("value")}function Dg(e,t){const{value:n,unit:r}=Lg(e)?e:{value:e,unit:void 0},s=Fg(n),o=r&&typeof r=="string"?{unit:r}:{};if(s)return{...s,...o};if(!t||t==="skip-undefined"&&n===void 0)return;let i="";try{i=JSON.stringify(n)??""}catch{}return{value:i,type:"string",...o}}function er(e,t=!1){const n={};for(const[r,s]of Object.entries(e??{})){const o=Dg(s,t);o&&(n[r]=o)}return n}function Tu(e){if(!e)return 0;let t=0;for(const[n,r]of Object.entries(e)){t+=n.length*2,t+=r.type.length*2,t+=(r.unit?.length??0)*2;const s=r.value;Array.isArray(s)?t+=vu(s[0])*s.length:Nt(s)?t+=vu(s):t+=100}return t}function vu(e){return typeof e=="string"?e.length*2:typeof e=="boolean"?4:typeof e=="number"?8:0}function Fg(e){const t=typeof e=="string"?"string":typeof e=="boolean"?"boolean":typeof e=="number"&&!Number.isNaN(e)?Number.isInteger(e)?"integer":"double":null;if(t)return{value:e,type:t}}function V(){const e=Ut();return on(e).getCurrentScope()}function be(){const e=Ut();return on(e).getIsolationScope()}function Pr(){return fr("globalScope",()=>new Tt)}function Ke(...e){const t=Ut(),n=on(t);if(e.length===2){const[r,s]=e;return r?n.withSetScope(r,s):n.withScope(s)}return n.withScope(e[0])}function vM(...e){const t=Ut(),n=on(t);if(e.length===2){const[r,s]=e;return r?n.withSetIsolationScope(r,s):n.withIsolationScope(s)}return n.withIsolationScope(e[0])}function w(){return V().getClient()}function mf(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:s}=t,o={trace_id:n,span_id:s||At()};return r&&(o.parent_span_id=r),o}const Ae="sentry.source",ec="sentry.sample_rate",gf="sentry.previous_trace_sample_rate",ie="sentry.op",W="sentry.origin",qr="sentry.idle_span_finish_reason",os="sentry.measurement_unit",is="sentry.measurement_value",$g="sentry.release",Bg="sentry.environment",Ug="sentry.segment.name",Hg="sentry.segment.id",Wg="sentry.sdk.name",jg="sentry.sdk.version",qg="user.id",zg="user.email",Gg="user.ip_address",Vg="user.name",fa="sentry.custom_span_name",tc="sentry.profile_id",an="sentry.exclusive_time",Yg="http.request.method",Jg="url.full",Kg="sentry.link.type",Xg="gen_ai.conversation.id",_f=0,as=1,Y=2;function Qg(e){if(e<400&&e>=100)return{code:as};if(e>=400&&e<500)switch(e){case 401:return{code:Y,message:"unauthenticated"};case 403:return{code:Y,message:"permission_denied"};case 404:return{code:Y,message:"not_found"};case 409:return{code:Y,message:"already_exists"};case 413:return{code:Y,message:"failed_precondition"};case 429:return{code:Y,message:"resource_exhausted"};case 499:return{code:Y,message:"cancelled"};default:return{code:Y,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:Y,message:"unimplemented"};case 503:return{code:Y,message:"unavailable"};case 504:return{code:Y,message:"deadline_exceeded"};default:return{code:Y,message:"internal_error"}}return{code:Y,message:"internal_error"}}function po(e,t){e.setAttribute("http.response.status_code",t);const n=Qg(t);n.message!=="unknown_error"&&e.setStatus(n)}function Zg(e){try{const t=D.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function e_(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}const yf="_sentryScope",Sf="_sentryIsolationScope";function t_(e,t,n){e&&(Le(e,Sf,Zg(n)),Le(e,yf,t))}function zr(e){const t=e;return{scope:t[yf],isolationScope:e_(t[Sf])}}const ho="sentry-",n_=8192;function nc(e){const t=r_(e);if(!t)return;const n=Object.entries(t).reduce((r,[s,o])=>{if(s.startsWith(ho)){const i=s.slice(ho.length);r[i]=o}return r},{});if(Object.keys(n).length>0)return n}function bf(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,s])=>(s&&(n[`${ho}${r}`]=s),n),{});return s_(t)}function r_(e){if(!(!e||!dt(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Iu(n);return Object.entries(r).forEach(([s,o])=>{t[s]=o}),t},{}):Iu(e)}function Iu(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const r=t.slice(0,n),s=t.slice(n+1);return[r,s].map(o=>{try{return decodeURIComponent(o.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function s_(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],s)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,i=s===0?o:`${t},${o}`;return i.length>n_?(I&&m.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):i},"")}const o_=/^o(\d+)\./,i_=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function a_(e){return e==="http"||e==="https"}function It(e,t=!1){const{host:n,path:r,pass:s,port:o,projectId:i,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&s?`:${s}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${i}`}function Ef(e){const t=i_.exec(e);if(!t){vt(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,s="",o="",i="",a=""]=t.slice(1);let c="",u=a;const d=u.split("/");if(d.length>1&&(c=d.slice(0,-1).join("/"),u=d.pop()),u){const l=u.match(/^\d+/);l&&(u=l[0])}return Tf({host:o,pass:s,path:c,projectId:u,port:i,protocol:n,publicKey:r})}function Tf(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function c_(e){if(!I)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(m.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?a_(r)?t&&isNaN(parseInt(t,10))?(m.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(m.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(m.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function u_(e){return e.match(o_)?.[1]}function vf(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=u_(n)),r}function If(e){const t=typeof e=="string"?Ef(e):Tf(e);if(!(!t||!c_(t)))return t}function bn(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const wf=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function l_(e){if(!e)return;const t=e.match(wf);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function kf(e,t){const n=l_(e),r=nc(t);if(!n?.traceId)return{traceId:bt(),sampleRand:Ct()};const s=d_(n,r);r&&(r.sample_rand=s.toString());const{traceId:o,parentSpanId:i,parentSampled:a}=n;return{traceId:o,parentSpanId:i,sampled:a,dsc:r||{},sampleRand:s}}function Rf(e=bt(),t=At(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function Cf(e=bt(),t=At(),n){return`00-${e}-${t}-${n?"01":"00"}`}function d_(e,t){const n=bn(t?.sample_rand);if(n!==void 0)return n;const r=bn(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Ct()*r:r+Ct()*(1-r):Ct()}function f_(e,t){const n=vf(e);return t&&n&&t!==n?(m.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${n})`),!1):(e.getOptions().strictTraceContinuation||!1)&&(t&&!n||!t&&n)?(m.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${n})`),!1):!0}const Af=0,Vo=1;let wu=!1;function p_(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:s,parent_span_id:o,status:i,origin:a,links:c}=j(e);return{parent_span_id:o,span_id:t,trace_id:n,data:r,op:s,status:i,origin:a,links:c}}function xf(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),s=r?t:j(e).parent_span_id,o=zr(e).scope,i=r?o?.getPropagationContext().propagationSpanId||At():t;return{parent_span_id:s,span_id:i,trace_id:n}}function h_(e){const{traceId:t,spanId:n}=e.spanContext(),r=Ht(e);return Rf(t,n,r)}function m_(e){const{traceId:t,spanId:n}=e.spanContext(),r=Ht(e);return Cf(t,n,r)}function Mf(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...s},attributes:o})=>({span_id:t,trace_id:n,sampled:r===Vo,attributes:o,...s}))}function Nf(e){if(e?.length)return e.map(({context:{spanId:t,traceId:n,traceFlags:r},attributes:s})=>({span_id:t,trace_id:n,sampled:r===Vo,attributes:s}))}function xt(e){return typeof e=="number"?ku(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?ku(e.getTime()):de()}function ku(e){return e>9999999999?e/1e3:e}function j(e){if(Lf(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(Pf(e)){const{attributes:r,startTime:s,name:o,endTime:i,status:a,links:c}=e;return{span_id:t,trace_id:n,data:r,description:o,parent_span_id:Of(e),start_timestamp:xt(s),timestamp:xt(i)||void 0,status:Df(a),op:r[ie],origin:r[W],links:Mf(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function mo(e){if(Lf(e))return e.getStreamedSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(Pf(e)){const{attributes:r,startTime:s,name:o,endTime:i,status:a,links:c}=e;return{name:o,span_id:t,trace_id:n,parent_span_id:Of(e),start_timestamp:xt(s),end_timestamp:xt(i),is_segment:e===go(e),status:Ff(a),attributes:r,links:Nf(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===go(e)}}function Of(e){return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?e.parentSpanContext?.spanId:void 0}function g_(e){return{...e,attributes:er(e.attributes),links:e.links?.map(t=>({...t,attributes:er(t.attributes)}))}}function Pf(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Lf(e){return typeof e.getSpanJSON=="function"}function Ht(e){const{traceFlags:t}=e.spanContext();return t===Vo}function Df(e){if(!(!e||e.code===_f))return e.code===as?"ok":e.message||"internal_error"}function Ff(e){return!e||e.code===as||e.code===_f||e.message==="cancelled"?"ok":"error"}const _n="_sentryChildSpans",pa="_sentryRootSpan";function $f(e,t){const n=e[pa]||e;Le(t,pa,n),e[_n]?e[_n].add(t):Le(e,_n,new Set([t]))}function __(e,t){e[_n]&&e[_n].delete(t)}function Ys(e){const t=new Set;function n(r){if(!t.has(r)&&Ht(r)){t.add(r);const s=r[_n]?Array.from(r[_n]):[];for(const o of s)n(o)}}return n(e),Array.from(t)}const Se=go;function go(e){return e[pa]||e}function Te(){const e=Ut(),t=on(e);return t.getActiveSpan?t.getActiveSpan():Qn(V())}function _o(){wu||(vt(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),wu=!0)}function IM(e,t){e.updateName(t),e.setAttributes({[Ae]:"custom",[fa]:t})}let Ru=!1;function y_(){if(Ru)return;function e(){const t=Te(),n=t&&Se(t);if(n){const r="internal_error";I&&m.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:Y,message:r})}}e.tag="sentry_tracingErrorCallback",Ru=!0,rf(e),sf(e)}function st(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||w()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Cu(e){m.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Gr(e,t){if(!t?.length||!e.description)return!1;for(const n of t){if(b_(n)){if(Vs(e.description,n))return I&&Cu(e),!0;continue}if(!n.name&&!n.op)continue;const r=n.name?Vs(e.description,n.name):!0,s=n.op?e.op&&Vs(e.op,n.op):!0;if(r&&s)return I&&Cu(e),!0}return!1}function S_(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const s of e)s.parent_span_id===r&&(s.parent_span_id=n)}function b_(e){return typeof e=="string"||e instanceof RegExp}const Yo="production",Bf="_frozenDsc";function Js(e,t){Le(e,Bf,t)}function Uf(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},s={environment:n.environment||Yo,release:n.release,public_key:r,trace_id:e,org_id:vf(t)};return t.emit("createDsc",s),s}function rc(e,t){const n=t.getPropagationContext();return n.dsc||Uf(n.traceId,e)}function it(e){const t=w();if(!t)return{};const n=Se(e),r=j(n),s=r.data,o=n.spanContext().traceState,i=o?.get("sentry.sample_rate")??s[ec]??s[gf];function a(h){return(typeof i=="number"||typeof i=="string")&&(h.sample_rate=`${i}`),h}const c=n[Bf];if(c)return a(c);const u=o?.get("sentry.dsc"),d=u&&nc(u);if(d)return a(d);const l=Uf(e.spanContext().traceId,t),p=s[Ae]??s["sentry.span.source"],f=r.description;return p!=="url"&&f&&(l.transaction=f),st()&&(l.sampled=String(Ht(n)),l.sample_rand=o?.get("sentry.sample_rand")??zr(n).scope?.getPropagationContext().sampleRand.toString()),a(l),t.emit("createDsc",l,n),l}function wM(e){const t=it(e);return bf(t)}class Je{constructor(t={}){this._traceId=t.traceId||bt(),this._spanId=t.spanId||At(),this.dropReason=t.dropReason}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:Af}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function kM(e){return Le(e,"_streamed",!0),e}function Jo(e){return!!e&&typeof e=="function"&&"_streamed"in e&&!!e._streamed}function Ne(e,t=100,n=1/0){try{return ha("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Hf(e,t=3,n=100*1024){const r=Ne(e,t);return I_(r)>n?Hf(e,t-1,n):r}function ha(e,t,n=1/0,r=1/0,s=w_()){const[o,i]=s;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=E_(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;const c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(o(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const f=u.toJSON();return ha("",f,c-1,r,s)}catch{}const d=Array.isArray(t)?[]:{};let l=0;const p=lf(t);for(const f in p){if(!Object.prototype.hasOwnProperty.call(p,f))continue;if(l>=r){d[f]="[MaxProperties ~]";break}const h=p[f];d[f]=ha(f,h,c-1,r,s),l++}return i(t),d}function E_(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(cf(t))return nf(t);if(hg(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${Mt(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=T_(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function T_(e){const t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:"null prototype"}function v_(e){return~-encodeURI(e).split(/%..|./).length}function I_(e){return v_(JSON.stringify(e))}function w_(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function at(e,t=[]){return[e,t]}function k_(e,t){const[n,r]=e;return[n,[...r,t]]}function En(e,t){const n=e[1];for(const r of n){const s=r[0].type;if(t(r,s))return!0}return!1}function ma(e,t){return En(e,(n,r)=>t.includes(r))}function yo(e){const t=ts(D);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function R_(e){const t=ts(D);return t.decodePolyfill?t.decodePolyfill(e):new TextDecoder().decode(e)}function So(e){const[t,n]=e;let r=JSON.stringify(t);function s(o){typeof r=="string"?r=typeof o=="string"?r+o:[yo(r),o]:r.push(typeof o=="string"?yo(o):o)}for(const o of n){const[i,a]=o;if(s(`
6
- ${JSON.stringify(i)}
7
- `),typeof a=="string"||a instanceof Uint8Array)s(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(Ne(a))}s(c)}}return typeof r=="string"?r:C_(r)}function C_(e){const t=e.reduce((s,o)=>s+o.length,0),n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function A_(e){let t=typeof e=="string"?yo(e):e;function n(i){const a=t.subarray(0,i);return t=t.subarray(i+1),a}function r(){let i=t.indexOf(10);return i<0&&(i=t.length),JSON.parse(R_(n(i)))}const s=r(),o=[];for(;t.length;){const i=r(),a=typeof i.length=="number"?i.length:void 0;o.push([i,a?n(a):r()])}return[s,o]}function x_(e){return[{type:"span"},e]}function M_(e){const t=typeof e.data=="string"?yo(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const Wf={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function N_(e){return e in Wf}function Au(e){return N_(e)?Wf[e]:e}function cs(e){if(!e?.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function jf(e,t,n,r){const s=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:It(r)},...s&&{trace:s}}}function O_(e,t){if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...e.sdk?.integrations||[],...t.integrations||[]],packages:[...e.sdk?.packages||[],...t.packages||[]],settings:e.sdk?.settings||t.settings?{...e.sdk?.settings,...t.settings}:void 0},e}function P_(e,t,n,r){const s=cs(n),o={sent_at:new Date().toISOString(),...s&&{sdk:s},...!!r&&t&&{dsn:It(t)}},i="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return at(o,[i])}function L_(e,t,n,r){const s=cs(n),o=e.type&&e.type!=="replay_event"?e.type:"event";O_(e,n?.sdk);const i=jf(e,s,r,t);return delete e.sdkProcessingMetadata,at(i,[[{type:o},e]])}function D_(e,t){function n(f){return!!f.trace_id&&!!f.public_key}const r=it(e[0]),s=t?.getDsn(),o=t?.getOptions().tunnel,i={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!o&&s&&{dsn:It(s)}},{beforeSendSpan:a,ignoreSpans:c}=t?.getOptions()||{},u=c?.length?e.filter(f=>!Gr(j(f),c)):e,d=e.length-u.length;d&&t?.recordDroppedEvent("before_send","span",d);const l=a?f=>{const h=j(f),g=Jo(a)?h:a(h);return g||(_o(),h)}:j,p=[];for(const f of u){const h=l(f);h&&p.push(x_(h))}return at(i,p)}function F_(e){if(!I)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=j(e),{spanId:s}=e.spanContext(),o=Ht(e),i=Se(e),a=i===e,c=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${s}`];if(r&&u.push(`parent ID: ${r}`),!a){const{op:d,description:l}=j(i);u.push(`root ID: ${i.spanContext().spanId}`),d&&u.push(`root op: ${d}`),l&&u.push(`root description: ${l}`)}m.log(`${c}
8
- ${u.join(`
9
- `)}`)}function $_(e){if(!I)return;const{description:t="< unknown name >",op:n="< unknown op >"}=j(e),{spanId:r}=e.spanContext(),o=Se(e)===e,i=`[Tracing] Finishing "${n}" ${o?"root ":""}span "${t}" with ID ${r}`;m.log(i)}function B_(e,t,n,r=Te()){const s=r&&Se(r);s&&(I&&m.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),s.addEvent(e,{[is]:t,[os]:n}))}function xu(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},s=r[os],o=r[is];typeof s=="string"&&typeof o=="number"&&(t[n.name]={value:o,unit:s})}),t}function Lt(e){return e.getOptions().traceLifecycle==="stream"}const Mu=1e3;class Ko{constructor(t={}){this._traceId=t.traceId||bt(),this._spanId=t.spanId||At(),this._startTime=t.startTimestamp||de(),this._links=t.links,this._attributes={},this.setAttributes({[W]:"manual",[ie]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._links?this._links.push(t):this._links=[t],this}addLinks(t){return this._links?this._links.push(...t):this._links=t,this}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?Vo:Af}}setAttribute(t,n){return n===void 0?delete this._attributes[t]:this._attributes[t]=n,this}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._startTime=xt(t)}setStatus(t){return this._status=t,this}updateName(t){return this._name=t,this.setAttribute(Ae,"custom"),this}end(t){this._endTime||(this._endTime=xt(t),$_(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[ie],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Df(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[W],profile_id:this._attributes[tc],exclusive_time:this._attributes[an],measurements:xu(this._events),is_segment:this._isStandaloneSpan&&Se(this)===this||void 0,segment_id:this._isStandaloneSpan?Se(this).spanContext().spanId:void 0,links:Mf(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===Se(this),status:Ff(this._status),attributes:this._attributes,links:Nf(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){I&&m.log("[Tracing] Adding an event to span:",t);const s=Nu(n)?n:r||de(),o=Nu(n)?{}:n||{},i={name:t,time:xt(s),attributes:o};return this._events.push(i),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){const t=w();if(t&&(t.emit("spanEnd",this),this._isStandaloneSpan||t.emit("afterSpanEnd",this)),!(this._isStandaloneSpan||this===Se(this)))return;if(this._isStandaloneSpan){this._sampled?H_(D_([this],t)):(I&&m.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}else if(t&&Lt(t)){t.emit("afterSegmentSpanEnd",this);return}const r=this._convertSpanToTransaction();r&&(zr(this).scope||V()).captureEvent(r)}_convertSpanToTransaction(){if(!Ou(j(this)))return;this._name||(I&&m.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:t,isolationScope:n}=zr(this),r=t?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;const o=Ys(this).filter(d=>d!==this&&!U_(d)).map(d=>j(d)).filter(Ou),i=this._attributes[Ae];delete this._attributes[fa],o.forEach(d=>{delete d.data[fa]});const a={contexts:{trace:p_(this)},spans:o.length>Mu?o.sort((d,l)=>d.start_timestamp-l.start_timestamp).slice(0,Mu):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:it(this)},request:r,...i&&{transaction_info:{source:i}}},c=xu(this._events);return c&&Object.keys(c).length&&(I&&m.log("[Measurements] Adding measurements to transaction event",JSON.stringify(c,void 0,2)),a.measurements=c),a}}function Nu(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function Ou(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function U_(e){return e instanceof Ko&&e.isStandaloneSpan()}function H_(e){const t=w();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function sc(e,t,n=()=>{},r=()=>{}){let s;try{s=e()}catch(o){throw t(o),n(),o}return W_(s,t,n,r)}function W_(e,t,n,r){return Cn(e)?hf(e,s=>{n(),r(s)},s=>{t(s),n()}):(n(),r(e),e)}function j_(e,t,n){if(!st(e))return[!1];let r,s;typeof e.tracesSampler=="function"?(s=e.tracesSampler({...t,inheritOrSampleWith:a=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):a}),r=!0):t.parentSampled!==void 0?s=t.parentSampled:typeof e.tracesSampleRate<"u"&&(s=e.tracesSampleRate,r=!0);const o=bn(s);if(o===void 0)return I&&m.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(s)} of type ${JSON.stringify(typeof s)}.`),[!1];if(!o)return I&&m.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,o,r];const i=n<o;return i||I&&m.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(s)})`),[i,o,r]}const ga="__SENTRY_SUPPRESS_TRACING__";function Ye(e,t){const n=hr();if(n.startSpan)return n.startSpan(e,t);const r=ic(e),{forceTransaction:s,parentSpan:o,scope:i}=e,a=i?.clone();return Ke(a,()=>qf(o)(()=>{const u=V(),d=ac(u,o),l=w(),p=e.onlyIfParent&&!d,f=p?new Je:oc({parentSpan:d,spanArguments:r,forceTransaction:s,scope:u});return p&&l?.recordDroppedEvent("no_parent_span","span"),(!zf(f)||!d)&&Et(u,f),sc(()=>t(f),()=>{const{status:h}=j(f);f.isRecording()&&(!h||h==="ok")&&f.setStatus({code:Y,message:"internal_error"})},()=>{f.end()})}))}function Vt(e,t){const n=hr();if(n.startSpanManual)return n.startSpanManual(e,t);const r=ic(e),{forceTransaction:s,parentSpan:o,scope:i}=e,a=i?.clone();return Ke(a,()=>qf(o)(()=>{const u=V(),d=ac(u,o),l=e.onlyIfParent&&!d,p=l?new Je:oc({parentSpan:d,spanArguments:r,forceTransaction:s,scope:u});return l&&w()?.recordDroppedEvent("no_parent_span","span"),(!zf(p)||!d)&&Et(u,p),sc(()=>t(p,()=>p.end()),()=>{const{status:f}=j(p);p.isRecording()&&(!f||f==="ok")&&p.setStatus({code:Y,message:"internal_error"})})}))}function ot(e){const t=hr();if(t.startInactiveSpan)return t.startInactiveSpan(e);const n=ic(e),{forceTransaction:r,parentSpan:s}=e;return(e.scope?i=>Ke(e.scope,i):s!==void 0?i=>tr(s,i):i=>i())(()=>{const i=V(),a=ac(i,s),c=w();return e.onlyIfParent&&!a?(c?.recordDroppedEvent("no_parent_span","span"),new Je):oc({parentSpan:a,spanArguments:n,forceTransaction:r,scope:i})})}const RM=(e,t)=>{const n=Ut(),r=on(n);if(r.continueTrace)return r.continueTrace(e,t);const{sentryTrace:s,baggage:o}=e,i=w(),a=nc(o);return i&&!f_(i,a?.org_id)?z_(t):Ke(c=>{const u=kf(s,o);return c.setPropagationContext(u),Et(c,void 0),t()})};function tr(e,t){const n=hr();return n.withActiveSpan?n.withActiveSpan(e,t):Ke(r=>(Et(r,e||void 0),t(r)))}function q_(e){const t=hr();return t.suppressTracing?t.suppressTracing(e):Ke(n=>{n.setSDKProcessingMetadata({[ga]:!0});const r=e();return n.setSDKProcessingMetadata({[ga]:void 0}),r})}function z_(e){const t=hr();return t.startNewTrace?t.startNewTrace(e):Ke(n=>(n.setPropagationContext({traceId:bt(),sampleRand:Ct()}),I&&m.log(`Starting a new trace with id ${n.getPropagationContext().traceId}`),tr(null,e)))}function oc({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!st()){const a=new Je;if(n||!e){const c={sampled:"false",sample_rate:"0",transaction:t.name,...it(a)};Js(a,c)}return a}const s=w();if(V_(s,t))return cc(r)||s?.recordDroppedEvent("ignored","span"),new Je({dropReason:"ignored",traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});const o=be();let i;if(e&&!n)i=G_(e,r,t),$f(e,i);else if(e){const a=it(e),{traceId:c,spanId:u}=e.spanContext(),d=Ht(e);i=Pu({traceId:c,parentSpanId:u,...t},r,d),Js(i,a)}else{const{traceId:a,dsc:c,parentSpanId:u,sampled:d}={...o.getPropagationContext(),...r.getPropagationContext()};i=Pu({traceId:a,parentSpanId:u,...t},r,d),c&&Js(i,c)}return F_(i),t_(i,r,o),i}function ic(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=xt(e.startTime),delete r.startTime,r}return n}function hr(){const e=Ut();return on(e)}function Pu(e,t,n){const r=w(),s=r?.getOptions()||{},{name:o=""}=e,i={spanAttributes:{...e.attributes},spanName:o,parentSampled:n};r?.emit("beforeSampling",i,{decision:!1});const a=i.parentSampled??n,c=i.spanAttributes,u=t.getPropagationContext(),d=cc(t),[l,p,f]=d?[!1]:j_(s,{name:o,parentSampled:a,attributes:c,parentSampleRate:bn(u.dsc?.sample_rate)},u.sampleRand),h=new Ko({...e,attributes:{[Ae]:"custom",[ec]:p!==void 0&&f?p:void 0,...c},sampled:l});return!l&&r&&!d&&(I&&m.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),r.recordDroppedEvent("sample_rate",Lt(r)?"span":"transaction")),r&&r.emit("spanStart",h),h}function G_(e,t,n){const{spanId:r,traceId:s}=e.spanContext(),o=cc(t),i=o?!1:Ht(e),a=i?new Ko({...n,parentSpanId:r,traceId:s,sampled:i}):new Je({traceId:s});$f(e,a);const c=w();return c&&(Lt(c)&&a instanceof Je&&(e instanceof Je&&e.dropReason?(a.dropReason=e.dropReason,c.recordDroppedEvent(e.dropReason,"span")):o||(a.dropReason="sample_rate",c.recordDroppedEvent("sample_rate","span"))),c.emit("spanStart",a),n.endTimestamp&&(c.emit("spanEnd",a),c.emit("afterSpanEnd",a))),a}function ac(e,t){if(t)return t;if(t===null)return;const n=Qn(e);if(!n)return;const r=w();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Se(n):n}function qf(e){return e!==void 0?t=>tr(e,t):t=>t()}function V_(e,t){const n=e?.getOptions().ignoreSpans;return!e||!Lt(e)||!n?.length?!1:Gr({description:t.name||"",op:t.attributes?.[ie]||t.op},n)}function zf(e){return e instanceof Je&&e.dropReason==="ignored"}function cc(e){return e.getScopeData().sdkProcessingMetadata[ga]===!0}const Ks={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},Y_="heartbeatFailed",J_="idleTimeout",K_="finalTimeout",X_="externalFinish";function Gf(e,t={}){const n=new Map;let r=!1,s,o=X_,i=!t.disableAutoFinish;const a=[],{idleTimeout:c=Ks.idleTimeout,finalTimeout:u=Ks.finalTimeout,childSpanTimeout:d=Ks.childSpanTimeout,beforeSpanEnd:l,trimIdleSpanEndTimestamp:p=!0}=t,f=w();if(!f||!st()){const S=new Je,C={sample_rate:"0",sampled:"false",...it(S)};return Js(S,C),S}const h=V(),g=Te(),_=Q_(e);_.end=new Proxy(_.end,{apply(S,C,H){if(l&&l(_),C instanceof Je)return;const[E,...N]=H,k=E||de(),x=xt(k),L=Ys(_).filter(M=>M!==_),ee=j(_);if(!L.length||!p)return P(x),Reflect.apply(S,C,[x,...N]);const Q=f.getOptions().ignoreSpans,re=L?.reduce((M,F)=>{const ae=j(F);return!ae.timestamp||Q&&Gr(ae,Q)?M:M?Math.max(M,ae.timestamp):ae.timestamp},void 0),T=ee.start_timestamp,z=Math.min(T?T+u/1e3:1/0,Math.max(T||-1/0,Math.min(x,re||1/0)));return P(z),Reflect.apply(S,C,[z,...N])}});function y(){s&&(clearTimeout(s),s=void 0)}function b(S){y(),s=setTimeout(()=>{!r&&n.size===0&&i&&(o=J_,_.end(S))},c)}function A(S){s=setTimeout(()=>{!r&&i&&(o=Y_,_.end(S))},d)}function R(S){y(),n.set(S,!0);const C=de();A(C+d/1e3)}function U(S){if(n.has(S)&&n.delete(S),n.size===0){const C=de();b(C+c/1e3)}}function P(S){r=!0,n.clear(),a.forEach(L=>L()),Et(h,g);const C=j(_),{start_timestamp:H}=C;if(!H)return;C.data[qr]||_.setAttribute(qr,o);const N=C.status;(!N||N==="unknown")&&_.setStatus({code:as}),m.log(`[Tracing] Idle span "${C.op}" finished`);const k=Ys(_).filter(L=>L!==_);let x=0;k.forEach(L=>{L.isRecording()&&(L.setStatus({code:Y,message:"cancelled"}),L.end(S),I&&m.log("[Tracing] Cancelling span since span ended early",JSON.stringify(L,void 0,2)));const ee=j(L),{timestamp:Q=0,start_timestamp:re=0}=ee,T=re<=S,z=(u+c)/1e3,M=Q-re<=z;if(I){const F=JSON.stringify(L,void 0,2);T?M||m.log("[Tracing] Discarding span since it finished after idle span final timeout",F):m.log("[Tracing] Discarding span since it happened after idle span was finished",F)}(!M||!T)&&(__(_,L),x++)}),x>0&&_.setAttribute("sentry.idle_span_discarded_spans",x)}return a.push(f.on("spanStart",S=>{if(r||S===_||j(S).timestamp||S instanceof Ko&&S.isStandaloneSpan())return;Ys(_).includes(S)&&R(S.spanContext().spanId)})),a.push(f.on("spanEnd",S=>{r||U(S.spanContext().spanId)})),a.push(f.on("idleSpanEnableAutoFinish",S=>{S===_&&(i=!0,b(),n.size&&A())})),t.disableAutoFinish||b(),setTimeout(()=>{r||(_.setStatus({code:Y,message:"deadline_exceeded"}),o=K_,_.end())},u),_}function Q_(e){const t=ot(e);return Et(V(),t),I&&m.log("[Tracing] Started span is an idle span"),t}function Z_(e,t){const{fingerprint:n,span:r,breadcrumbs:s,sdkProcessingMetadata:o}=t;ey(e,t),r&&ry(e,r),sy(e,n),ty(e,s),ny(e,o)}function Lu(e,t){const{extra:n,tags:r,attributes:s,user:o,contexts:i,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:d,eventProcessors:l,attachments:p,propagationContext:f,transactionName:h,span:g}=t;Rr(e,"extra",n),Rr(e,"tags",r),Rr(e,"attributes",s),Rr(e,"user",o),Rr(e,"contexts",i),e.sdkProcessingMetadata=ss(e.sdkProcessingMetadata,c,2),a&&(e.level=a),h&&(e.transactionName=h),g&&(e.span=g),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),d.length&&(e.fingerprint=[...e.fingerprint,...d]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),p.length&&(e.attachments=[...e.attachments,...p]),e.propagationContext={...e.propagationContext,...f}}function Rr(e,t,n){e[t]=ss(e[t],n,1)}function us(e,t){const n=Pr().getScopeData();return e&&Lu(n,e.getScopeData()),t&&Lu(n,t.getScopeData()),n}function ey(e,t){const{extra:n,tags:r,user:s,contexts:o,level:i,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(s).length&&(e.user={...s,...e.user}),Object.keys(o).length&&(e.contexts={...o,...e.contexts}),i&&(e.level=i),a&&e.type!=="transaction"&&(e.transaction=a)}function ty(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function ny(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function ry(e,t){e.contexts={trace:xf(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:it(t),...e.sdkProcessingMetadata};const n=Se(t),r=j(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function sy(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function oy(e,t){const n=mo(e),r=go(e),s=mo(r),{isolationScope:o,scope:i}=zr(e),a=us(o,i);iy(n,s,t,a),n.is_segment&&t.emit("processSegmentSpan",n),t.emit("processSpan",n);const{beforeSendSpan:c}=t.getOptions(),u=c&&Jo(c)?ay(n,c):n,d=u.attributes?.[Ae];return d&&Vf(u,{"sentry.span.source":d}),{...g_(u),_segmentSpan:r}}function iy(e,t,n,r){const s=n.getSdkMetadata(),{release:o,environment:i,sendDefaultPii:a}=n.getOptions();Vf(e,{[$g]:o,[Bg]:i,[Ug]:t.name,[Hg]:t.span_id,[Wg]:s?.sdk?.name,[jg]:s?.sdk?.version,...a?{[qg]:r.user?.id,[zg]:r.user?.email,[Gg]:r.user?.ip_address,[Vg]:r.user?.username}:{},...r.attributes})}function ay(e,t){const n=t(e);return n||(_o(),e)}function Vf(e,t){const n=e.attributes??(e.attributes={});Object.entries(t).forEach(([r,s])=>{s!=null&&!(r in n)&&(n[r]=s)})}const Ni=0,Du=1,Fu=2;function ls(e){return new Vr(t=>{t(e)})}function uc(e){return new Vr((t,n)=>{n(e)})}class Vr{constructor(t){this._state=Ni,this._handlers=[],this._runExecutor(t)}then(t,n){return new Vr((r,s)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(i){s(i)}},o=>{if(!n)s(o);else try{r(n(o))}catch(i){s(i)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Vr((n,r)=>{let s,o;return this.then(i=>{o=!1,s=i,t&&t()},i=>{o=!0,s=i,t&&t()}).then(()=>{if(o){r(s);return}n(s)})})}_executeHandlers(){if(this._state===Ni)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Du&&n[1](this._value),this._state===Fu&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(o,i)=>{if(this._state===Ni){if(Cn(i)){i.then(r,s);return}this._state=o,this._value=i,this._executeHandlers()}},r=o=>{n(Du,o)},s=o=>{n(Fu,o)};try{t(r,s)}catch(o){s(o)}}}function cy(e,t,n,r=0){try{const s=_a(t,n,e,r);return Cn(s)?s:ls(s)}catch(s){return uc(s)}}function _a(e,t,n,r){const s=n[r];if(!e||!s)return e;const o=s({...e},t);return I&&o===null&&m.log(`Event processor "${s.id||"?"}" dropped event`),Cn(o)?o.then(i=>_a(i,t,n,r+1)):_a(o,t,n,r+1)}let cn,$u,Bu,Wt;function Yf(e){const t=D._sentryDebugIds,n=D._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],s=n?Object.keys(n):[];if(Wt&&r.length===$u&&s.length===Bu)return Wt;$u=r.length,Bu=s.length,Wt={},cn||(cn={});const o=(i,a)=>{for(const c of i){const u=a[c],d=cn?.[c];if(d&&Wt&&u)Wt[d[0]]=u,cn&&(cn[c]=[d[0],u]);else if(u){const l=e(c);for(let p=l.length-1;p>=0;p--){const h=l[p]?.filename;if(h&&Wt&&cn){Wt[h]=u,cn[c]=[h,u];break}}}}};return t&&o(r,t),n&&o(s,n),Wt}function uy(e,t){const n=Yf(e);if(!n)return[];const r=[];for(const s of t){const o=cg(s);o&&n[o]&&r.push({type:"sourcemap",code_file:s,debug_id:n[o]})}return r}function Jf(e,t,n,r,s,o){const{normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||we(),timestamp:t.timestamp||xn()},u=n.integrations||e.integrations.map(y=>y.name);ly(c,e),py(c,u),s&&s.emit("applyFrameMetadata",t),t.type===void 0&&dy(c,e.stackParser);const d=my(r,n.captureContext);n.mechanism&&Pt(c,n.mechanism);const l=s?s.getEventProcessors():[],p=us(o,d),f=[...n.attachments||[],...p.attachments];f.length&&(n.attachments=f),Z_(c,p);const h=[...l,...p.eventProcessors];return(n.data&&n.data.__sentry__===!0?ls(c):cy(h,c,n)).then(y=>(y&&fy(y),typeof i=="number"&&i>0?hy(y,i,a):y))}function ly(e,t){const{environment:n,release:r,dist:s,maxValueLength:o}=t;e.environment=e.environment||n||Yo,!e.release&&r&&(e.release=r),!e.dist&&s&&(e.dist=s);const i=e.request;i?.url&&o&&(i.url=jr(i.url,o)),o&&e.exception?.values?.forEach(a=>{a.value&&(a.value=jr(a.value,o))})}function dy(e,t){const n=Yf(t);e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.filename&&(s.debug_id=n[s.filename])})})}function fy(e){const t={};if(e.exception?.values?.forEach(r=>{r.stacktrace?.frames?.forEach(s=>{s.debug_id&&(s.abs_path?t[s.abs_path]=s.debug_id:s.filename&&(t[s.filename]=s.debug_id),delete s.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([r,s])=>{n.push({type:"sourcemap",code_file:r,debug_id:s})})}function py(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function hy(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:Ne(s.data,t,n)}}))},...e.user&&{user:Ne(e.user,t,n)},...e.contexts&&{contexts:Ne(e.contexts,t,n)},...e.extra&&{extra:Ne(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Ne(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:Ne(s.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Ne(e.contexts.flags,3,n)),r}function my(e,t){if(!t)return e;const n=e?e.clone():new Tt;return n.update(t),n}function gy(e){if(e)return _y(e)?{captureContext:e}:Sy(e)?{captureContext:e}:e}function _y(e){return e instanceof Tt||typeof e=="function"}const yy=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Sy(e){return Object.keys(e).some(t=>yy.includes(t))}function fe(e,t){return V().captureException(e,gy(t))}function by(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return V().captureMessage(e,n,r)}function ds(e,t){return V().captureEvent(e,t)}function Ey(e,t){be().setContext(e,t)}function CM(e){be().setExtras(e)}function AM(e,t){be().setExtra(e,t)}function xM(e){be().setTags(e)}function Ty(e,t){be().setTag(e,t)}function MM(e){be().setUser(e)}function NM(e){be().setConversationId(e)}function vy(){return be().lastEventId()}async function OM(e){const t=w();return t?t.flush(e):(I&&m.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}async function PM(e){const t=w();return t?t.close(e):(I&&m.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function LM(){return!!w()}function Iy(){const e=w();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function wy(e){be().addEventProcessor(e)}function Uu(e){const t=be(),{user:n}=us(t,V()),{userAgent:r}=D.navigator||{},s=Ig({user:n,...r&&{userAgent:r},...e}),o=t.getSession();return o?.status==="ok"&&Xn(o,{status:"exited"}),Kf(),t.setSession(s),s}function Kf(){const e=be(),n=V().getSession()||e.getSession();n&&wg(n),Xf(),e.setSession()}function Xf(){const e=be(),t=w(),n=e.getSession();n&&t&&t.captureSession(n)}function Oi(e=!1){if(e){Kf();return}Xf()}const ky="7";function Qf(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Ry(e){return`${Qf(e)}${e.projectId}/envelope/`}function Cy(e,t){const n={sentry_version:ky};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Zf(e,t,n){return t||`${Ry(e)}?${Cy(e,n)}`}function Ay(e,t){const n=If(e);if(!n)return"";const r=`${Qf(n)}embed/error-page/`;let s=`dsn=${It(n)}`;for(const o in t)if(o!=="dsn"&&o!=="onClose")if(o==="user"){const i=t.user;if(!i)continue;i.name&&(s+=`&name=${encodeURIComponent(i.name)}`),i.email&&(s+=`&email=${encodeURIComponent(i.email)}`)}else s+=`&${encodeURIComponent(o)}=${encodeURIComponent(t[o])}`;return`${r}?${s}`}const Hu=[];function xy(e){const t={};return e.forEach(n=>{const{name:r}=n,s=t[r];s&&!s.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function My(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const s=n(t);r=Array.isArray(s)?s:[s]}else r=t;return xy(r)}function Ny(e,t){const n={};return t.forEach(r=>{r?.beforeSetup&&r.beforeSetup(e)}),t.forEach(r=>{r&&ep(e,r,n)}),n}function Wu(e,t){for(const n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function ep(e,t,n){if(n[t.name]){I&&m.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!Hu.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),Hu.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(s,o)=>r(s,o,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),s=Object.assign((o,i)=>r(o,i,e),{id:t.name});e.addEventProcessor(s)}["processSpan","processSegmentSpan"].forEach(r=>{const s=t[r];typeof s=="function"&&e.on(r,o=>s.call(t,o,e))}),I&&m.log(`Integration installed: ${t.name}`)}function ju(e){const t=w();if(!t){I&&m.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}const Oy="sentry.timestamp.sequence";let Pi=0,Li;function tp(e){const t=Math.floor(e*1e3);Li!==void 0&&t!==Li&&(Pi=0);const n=Pi;return Pi++,Li=t,{key:Oy,value:{value:n,type:"integer"}}}function np(e,t){return t?Ke(t,()=>{const n=Te(),r=n?xf(n):mf(t);return[n?it(n):rc(e,t),r]}):[void 0,void 0]}const Py={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function Ly(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function Dy(e,t,n,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=It(r)),at(s,[Ly(e)])}const Fy=100;function mt(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function $y(e,t){const n=lc(),r=rp(e);r===void 0?n.set(e,[t]):r.length>=Fy?(Eo(e,r),n.set(e,[t])):n.set(e,[...r,t])}function bo(e,t=V(),n=$y){const r=t?.getClient()??w();if(!r){I&&m.warn("No client available to capture log.");return}const{release:s,environment:o,enableLogs:i=!1,beforeSendLog:a}=r.getOptions();if(!i){I&&m.warn("logging option not enabled, log will not be captured.");return}const[,c]=np(r,t),u={...e.attributes},{user:{id:d,email:l,username:p},attributes:f={}}=us(be(),t);mt(u,"user.id",d,!1),mt(u,"user.email",l,!1),mt(u,"user.name",p,!1),mt(u,"sentry.release",s),mt(u,"sentry.environment",o);const{name:h,version:g}=r.getSdkMetadata()?.sdk??{};mt(u,"sentry.sdk.name",h),mt(u,"sentry.sdk.version",g);const _=r.getIntegrationByName("Replay"),y=_?.getReplayId(!0);mt(u,"sentry.replay_id",y),y&&_?.getRecordingMode()==="buffer"&&mt(u,"sentry._internal.replay_is_buffering",!0);const b=e.message;if(zo(b)){const{__sentry_template_string__:x,__sentry_template_values__:L=[]}=b;L?.length&&(u["sentry.message.template"]=x),L.forEach((ee,Q)=>{u[`sentry.message.parameter.${Q}`]=ee})}const A=Qn(t);mt(u,"sentry.trace.parent_span_id",A?.spanContext().spanId);const R={...e,attributes:u};r.emit("beforeCaptureLog",R);const U=a?vt(()=>a(R)):R;if(!U){r.recordDroppedEvent("before_send","log_item",1),I&&m.warn("beforeSendLog returned null, log will not be captured.");return}const{level:P,message:S,attributes:C={},severityNumber:H}=U,E=de(),N=tp(E),k={timestamp:E,level:P,body:S,trace_id:c?.trace_id,severity_number:H??Py[P],attributes:{...er(f),...er(C,!0),[N.key]:N.value}};n(r,k),r.emit("afterCaptureLog",U)}function Eo(e,t){const n=t??rp(e)??[];if(n.length===0)return;const r=e.getOptions(),s=Dy(n,r._metadata,r.tunnel,e.getDsn());lc().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(s)}function rp(e){return lc().get(e)}function lc(){return fr("clientToLogBufferMap",()=>new WeakMap)}function By(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function Uy(e,t,n,r){const s={};return t?.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(s.dsn=It(r)),at(s,[By(e)])}const Hy=1e3;function wt(e,t,n,r=!0){n&&(r||!(t in e))&&(e[t]=n)}function Wy(e,t){const n=fc(),r=sp(e);r===void 0?n.set(e,[t]):r.length>=Hy?(dc(e,r),n.set(e,[t])):n.set(e,[...r,t])}function jy(e,t,n){const{release:r,environment:s}=t.getOptions(),o={...e.attributes};wt(o,"user.id",n.id,!1),wt(o,"user.email",n.email,!1),wt(o,"user.name",n.username,!1),wt(o,"sentry.release",r),wt(o,"sentry.environment",s);const{name:i,version:a}=t.getSdkMetadata()?.sdk??{};wt(o,"sentry.sdk.name",i),wt(o,"sentry.sdk.version",a);const c=t.getIntegrationByName("Replay"),u=c?.getReplayId(!0);return wt(o,"sentry.replay_id",u),u&&c?.getRecordingMode()==="buffer"&&wt(o,"sentry._internal.replay_is_buffering",!0),{...e,attributes:o}}function qy(e,t,n,r){const[,s]=np(t,n),o=Qn(n),i=o?o.spanContext().traceId:s?.trace_id,a=o?o.spanContext().spanId:void 0,c=de(),u=tp(c);return{timestamp:c,trace_id:i??"",span_id:a,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...er(r),...er(e.attributes,"skip-undefined"),[u.key]:u.value}}}function zy(e,t){const n=t?.scope??V(),r=t?.captureSerializedMetric??Wy,s=n?.getClient()??w();if(!s){I&&m.warn("No client available to capture metric.");return}const{_experiments:o,enableMetrics:i,beforeSendMetric:a}=s.getOptions();if(!(i??o?.enableMetrics??!0)){I&&m.warn("metrics option not enabled, metric will not be captured.");return}const{user:u,attributes:d}=us(be(),n),l=jy(e,s,u);s.emit("processMetric",l);const p=a||o?.beforeSendMetric,f=p?p(l):l;if(!f){I&&m.log("`beforeSendMetric` returned `null`, will not send metric.");return}const h=qy(f,s,n,d);I&&m.log("[Metric]",h),r(s,h),s.emit("afterCaptureMetric",f)}function dc(e,t){const n=t??sp(e)??[];if(n.length===0)return;const r=e.getOptions(),s=Uy(n,r._metadata,r.tunnel,e.getDsn());fc().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(s)}function sp(e){return fc().get(e)}function fc(){return fr("clientToMetricBufferMap",()=>new WeakMap)}function Xo(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}const pc=Symbol.for("SentryBufferFullError");function hc(e=100){const t=new Set;function n(){return t.size<e}function r(i){t.delete(i)}function s(i){if(!n())return uc(pc);const a=i();return t.add(a),a.then(()=>r(a),()=>r(a)),a}function o(i){if(!t.size)return ls(!0);const a=Promise.allSettled(Array.from(t)).then(()=>!0);if(!i)return a;const c=[a,new Promise(u=>Xo(setTimeout(()=>u(!1),i)))];return Promise.race(c)}return{get $(){return Array.from(t)},add:s,drain:o}}const Gy=60*1e3;function op(e,t=rs()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Gy:r-t}function Vy(e,t){return e[t]||e.all||0}function ip(e,t,n=rs()){return Vy(e,t)>n}function ap(e,{statusCode:t,headers:n},r=rs()){const s={...e},o=n?.["x-sentry-rate-limits"],i=n?.["retry-after"];if(o)for(const a of o.trim().split(",")){const[c,u,,,d]=a.split(":",5),l=parseInt(c,10),p=(isNaN(l)?60:l)*1e3;if(!u)s.all=r+p;else for(const f of u.split(";"))f==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(s[f]=r+p):s[f]=r+p}else i?s.all=r+op(i,r):t===429&&(s.all=r+60*1e3);return s}const cp=64;function Yy(e,t,n=hc(e.bufferSize||cp)){let r={};const s=i=>n.drain(i);function o(i){const a=[];if(En(i,(l,p)=>{const f=Au(p);ip(r,f)?e.recordDroppedEvent("ratelimit_backoff",f):a.push(l)}),a.length===0)return Promise.resolve({});const c=at(i[0],a),u=l=>{if(ma(c,["client_report"])){I&&m.warn(`Dropping client report. Will not send outcomes (reason: ${l}).`);return}En(c,(p,f)=>{e.recordDroppedEvent(l,Au(f))})},d=()=>t({body:So(c)}).then(l=>l.statusCode===413?(I&&m.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),u("send_error"),l):(I&&l.statusCode!==void 0&&(l.statusCode<200||l.statusCode>=300)&&m.warn(`Sentry responded with status code ${l.statusCode} to sent event.`),r=ap(r,l),l),l=>{throw u("network_error"),I&&m.error("Encountered error running transport request:",l),l});return n.add(d).then(l=>l,l=>{if(l===pc)return I&&m.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw l})}return{send:o,flush:s}}function Jy(e,t,n){const r=[{type:"client_report"},{timestamp:xn(),discarded_events:e}];return at(t?{dsn:t}:{},[r])}function up(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function Ky(e){const{trace_id:t,parent_span_id:n,span_id:r,status:s,origin:o,data:i,op:a}=e.contexts?.trace??{};return{data:i??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:s,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:i?.[tc],exclusive_time:i?.[an],measurements:e.measurements,is_segment:!0}}function Xy(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[tc]:e.profile_id},...e.exclusive_time&&{[an]:e.exclusive_time}}}},measurements:e.measurements}}const qu="Not capturing exception because it's already been captured.",zu="Discarded session because of missing or non-string release",lp=Symbol.for("SentryInternalError"),dp=Symbol.for("SentryDoNotSendEventError"),Qy=5e3;function Xs(e){return{message:e,[lp]:!0}}function Di(e){return{message:e,[dp]:!0}}function Gu(e){return!!e&&typeof e=="object"&&lp in e}function Vu(e){return!!e&&typeof e=="object"&&dp in e}function Yu(e,t,n,r,s){let o=0,i,a=!1;e.on(n,()=>{o=0,clearTimeout(i),a=!1}),e.on(t,c=>{o+=r(c),o>=8e5?s(e):a||(a=!0,i=Xo(setTimeout(()=>{s(e)},Qy)))}),e.on("flush",()=>{s(e)})}class Zy{constructor(t){if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=hc(t.transportOptions?.bufferSize??cp),t.dsn?this._dsn=If(t.dsn):I&&m.warn("No DSN provided, client will not send events."),this._dsn){const r=Zf(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&Yu(this,"afterCaptureLog","flushLogs",rS,Eo),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&Yu(this,"afterCaptureMetric","flushMetrics",nS,dc)}captureException(t,n,r){const s=we();if(yu(t))return I&&m.log(qu),s;const o={event_id:s,...n};return this._process(()=>this.eventFromException(t,o).then(i=>this._captureEvent(i,o,r)).then(i=>i),"error"),o.event_id}captureMessage(t,n,r,s){const o={event_id:we(),...r},i=zo(t)?t:String(t),a=Nt(t),c=a?this.eventFromMessage(i,n,o):this.eventFromException(t,o);return this._process(()=>c.then(u=>this._captureEvent(u,o,s)),a?"unknown":"error"),o.event_id}captureEvent(t,n,r){const s=we();if(n?.originalException&&yu(n.originalException))return I&&m.log(qu),s;const o={event_id:s,...n},i=t.sdkProcessingMetadata||{},a=i.capturedSpanScope,c=i.capturedSpanIsolationScope,u=Ju(t.type);return this._process(()=>this._captureEvent(t,o,a||r,c),u),o.event_id}captureSession(t){this.sendSession(t),Xn(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;if(!n)return!0;this.emit("flush");const r=await this._isClientDoneProcessing(t),s=await n.flush(t);return r&&s}async close(t){Eo(this);const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){const n=this._integrations[t.name];!n&&t.beforeSetup&&t.beforeSetup(this),ep(this,t,this._integrations),n||Wu(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=L_(t,this._dsn,this._options._metadata,this._options.tunnel);for(const s of n.attachments||[])r=k_(r,M_(s));this.sendEnvelope(r).then(s=>this.emit("afterSendEvent",t,s))}sendSession(t){const{release:n,environment:r=Yo}=this._options;if("aggregates"in t){const o=t.attrs||{};if(!o.release&&!n){I&&m.warn(zu);return}o.release=o.release||n,o.environment=o.environment||r,t.attrs=o}else{if(!t.release&&!n){I&&m.warn(zu);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const s=P_(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(s)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const s=`${t}:${n}`;I&&m.log(`Recording outcome: "${s}"${r>1?` (${r} times)`:""}`),this._outcomes[s]=(this._outcomes[s]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||new Set,s=(...o)=>n(...o);return r.add(s),()=>{r.delete(s)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(s=>s(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return I&&m.error("Error while sending envelope:",n),{}}return I&&m.error("Transport disabled"),{}}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Ny(this,t),Wu(this,t)}_updateSessionFromEvent(t,n){let r=n.level==="fatal",s=!1;const o=n.exception?.values;if(o){s=!0,r=!1;for(const c of o)if(c.mechanism?.handled===!1){r=!0;break}}const i=t.status==="ok";(i&&t.errors===0||i&&r)&&(Xn(t,{...r&&{status:"crashed"},errors:t.errors||Number(s||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,s){const o=this.getOptions(),i=Object.keys(this._integrations);return!n.integrations&&i?.length&&(n.integrations=i),this.emit("preprocessEvent",t,n),t.type||s.setLastEventId(t.event_id||n.event_id),Jf(o,t,n,r,this,s).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts={trace:{...a.contexts?.trace,...mf(r)},...a.contexts};const c=rc(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r=V(),s=be()){return I&&ya(t)&&m.log(`Captured error event \`${up(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,s).then(o=>o.event_id,o=>{I&&(Vu(o)?m.log(o.message):Gu(o)?m.warn(o.message):m.warn(o))})}_processEvent(t,n,r,s){const o=this.getOptions(),{sampleRate:i}=o,a=fp(t),c=ya(t),d=`before send for type \`${t.type||"error"}\``,l=typeof i>"u"?void 0:bn(i);if(c&&typeof l=="number"&&Ct()>l)return this.recordDroppedEvent("sample_rate","error"),uc(Di(`Discarding event because it's not included in the random sample (sampling rate = ${i})`));const p=Ju(t.type);return this._prepareEvent(t,n,r,s).then(f=>{if(f===null)throw this.recordDroppedEvent("event_processor",p),Di("An event processor returned `null`, will not send event.");if(n.data?.__sentry__===!0)return f;const g=tS(this,o,f,n);return eS(g,d)}).then(f=>{if(f===null){if(this.recordDroppedEvent("before_send",p),a){const y=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",y)}throw Di(`${d} returned \`null\`, will not send event.`)}const h=r.getSession()||s.getSession();if(c&&h&&this._updateSessionFromEvent(h,f),a){const _=f.sdkProcessingMetadata?.spanCountBeforeProcessing||0,y=f.spans?f.spans.length:0,b=_-y;b>0&&this.recordDroppedEvent("before_send","span",b)}const g=f.transaction_info;if(a&&g&&f.transaction!==t.transaction){const _="custom";f.transaction_info={...g,source:_}}return this.sendEvent(f,n),f}).then(null,f=>{throw Vu(f)||Gu(f)?f:(this.captureException(f,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:f}),Xs(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
10
- Reason: ${f}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===pc&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[s,o]=n.split(":");return{reason:s,category:o,quantity:r}})}_flushOutcomes(){I&&m.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){I&&m.log("No outcomes to send");return}if(!this._dsn){I&&m.log("No dsn provided, will not send outcomes");return}I&&m.log("Sending outcomes:",t);const n=Jy(t,this._options.tunnel&&It(this._dsn));this.sendEnvelope(n)}}function Ju(e){return e==="replay_event"?"replay":e||"error"}function eS(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Cn(e))return e.then(r=>{if(!We(r)&&r!==null)throw Xs(n);return r},r=>{throw Xs(`${t} rejected with ${r}`)});if(!We(e)&&e!==null)throw Xs(n);return e}function tS(e,t,n,r){const{beforeSend:s,beforeSendTransaction:o,ignoreSpans:i}=t,a=!Jo(t.beforeSendSpan)&&t.beforeSendSpan;let c=n;if(ya(c)&&s)return s(c,r);if(fp(c)){if(a||i){const u=Ky(c);if(i?.length&&Gr(u,i))return null;if(a){const d=a(u);d?c=ss(n,Xy(d)):_o()}if(c.spans){const d=[],l=c.spans;for(const f of l){if(i?.length&&Gr(f,i)){S_(l,f);continue}if(a){const h=a(f);h?d.push(h):(_o(),d.push(f))}else d.push(f)}const p=c.spans.length-d.length;p&&e.recordDroppedEvent("before_send","span",p),c.spans=d}}if(o){if(c.spans){const u=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return o(c,r)}}return c}function ya(e){return e.type===void 0}function fp(e){return e.type==="transaction"}function nS(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+pp(e.attributes)}function rS(e){let t=0;return e.message&&(t+=e.message.length*2),t+pp(e.attributes)}function pp(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*Ku(n[0]):Nt(n)?t+=Ku(n):t+=100}),t}function Ku(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function sS(e){return _t(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function Xu(e){return sS(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function oS(e,t){t.debug===!0&&(I?m.enable():vt(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),V().update(t.initialScope);const r=new e(t);return iS(r),r.init(),r}function iS(e){V().setClient(e)}const Fi=100,$i=5e3,aS=36e5;function cS(e){function t(...n){I&&m.log("[Offline]:",...n)}return n=>{const r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const s=n.createStore(n);let o=$i,i;function a(l,p,f){return ma(l,["client_report"])?!1:n.shouldStore?n.shouldStore(l,p,f):!0}function c(l){i&&clearTimeout(i),i=Xo(setTimeout(async()=>{i=void 0;const p=await s.shift();p&&(t("Attempting to send previously queued event"),p[0].sent_at=new Date().toISOString(),d(p,!0).catch(f=>{t("Failed to retry sending",f)}))},l))}function u(){i||(c(o),o=Math.min(o*2,aS))}async function d(l,p=!1){if(!p&&ma(l,["replay_event","replay_recording"]))return await s.push(l),c(Fi),{};try{if(n.shouldSend&&await n.shouldSend(l)===!1)throw new Error("Envelope not sent because `shouldSend` callback returned false");const f=await r.send(l);let h=Fi;if(f){if(f.headers?.["retry-after"])h=op(f.headers["retry-after"]);else if(f.headers?.["x-sentry-rate-limits"])h=6e4;else if((f.statusCode||0)>=400)return f}return c(h),o=$i,f}catch(f){if(await a(l,f,o))return p?await s.unshift(l):await s.push(l),u(),t("Error sending. Event queued.",f),{};throw f}}return n.flushAtStartup&&u(),{send:d,flush:l=>(l===void 0&&(o=$i,c(Fi)),r.flush(l))}}}const Bi="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function hp(e,t){let n;return En(e,(r,s)=>(t.includes(s)&&(n=Array.isArray(r)?r[1]:void 0),!!n)),n}function uS(e,t){return n=>{const r=e(n);return{...r,send:async s=>{const o=hp(s,["event","transaction","profile","replay_event"]);return o&&(o.release=t),r.send(s)}}}}function lS(e,t){return at(t?{...e[0],dsn:t}:e[0],e[1])}function DM(e,t){return n=>{const r=e(n),s=new Map,o=t||(u=>{const d=u.getEvent();return d?.extra?.[Bi]&&Array.isArray(d.extra[Bi])?d.extra[Bi]:[]});function i(u,d){const l=d?`${u}:${d}`:u;let p=s.get(l);if(!p){const f=Ef(u);if(!f)return;const h=Zf(f,n.tunnel);p=d?uS(e,d)({...n,url:h}):e({...n,url:h}),s.set(l,p)}return[u,p]}async function a(u){function d(h){const g=h?.length?h:["event"];return hp(u,g)}const l=o({envelope:u,getEvent:d}).map(h=>typeof h=="string"?i(h,void 0):i(h.dsn,h.release)).filter(h=>!!h),p=l.length?l:[["",r]];return(await Promise.all(p.map(([h,g])=>g.send(lS(u,h)))))[0]}async function c(u){const d=[...s.values(),r];return(await Promise.all(d.map(p=>p.flush(u)))).every(p=>p)}return{send:a,flush:c}}}const dS="thismessage:/";function mc(e){return"isRelative"in e}function gc(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=n?dS:void 0;try{if("canParse"in URL&&!URL.canParse(e,r))return;const s=new URL(e,r);return n?{isRelative:n,pathname:s.pathname,search:s.search,hash:s.hash}:s}catch{}}function fS(e){if(mc(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function yn(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function mp(e){return e.split(/[?#]/,1)[0]}function Kt(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",s=e.includes(";base64,"),o=e.indexOf(",");let i="";if(t&&o!==-1){const a=e.slice(o+1);i=a.length>10?`${a.slice(0,10)}... [truncated]`:a}return`data:${r}${s?",base64":""}${i?`,${i}`:""}`}return e}function gp(e,t){const n=t?.getDsn(),r=t?.getOptions().tunnel;return hS(e,n)||pS(e,r)}function pS(e,t){return t?Qu(e)===Qu(t):!1}function hS(e,t){const n=gc(e);return!n||mc(n)?!1:t?n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function Qu(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function mS(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}const gS=mS;function _S(e){"aggregates"in e?e.attrs?.ip_address===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function _p(e,t,n=[t],r="npm"){const s=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};s.name||(s.name=`sentry.javascript.${t}`,s.packages=n.map(o=>({name:`${r}:@sentry/${o}`,version:Jt})),s.version=Jt)}function yp(e={}){const t=e.client||w();if(!Iy()||!t)return{};const n=Ut(),r=on(n);if(r.getTraceData)return r.getTraceData(e);const s=e.scope||V(),o=e.span||Te(),i=o?h_(o):yS(s),a=o?it(o):rc(t,s),c=bf(a);if(!wf.test(i))return m.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const d={"sentry-trace":i,baggage:c};return e.propagateTraceparent&&(d.traceparent=o?m_(o):SS(s)),d}function yS(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Rf(t,r,n)}function SS(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return Cf(t,r,n)}function bS(e,t,n){let r,s,o;const i=n?.maxWait?Math.max(n.maxWait,t):0,a=n?.setTimeoutImpl||setTimeout;function c(){return u(),r=e(),r}function u(){s!==void 0&&clearTimeout(s),o!==void 0&&clearTimeout(o),s=o=void 0}function d(){return s!==void 0||o!==void 0?c():r}function l(){return s&&clearTimeout(s),s=a(c,t),i&&o===void 0&&(o=a(c,i)),r}return l.cancel=u,l.flush=d,l}const ES=100;function Dt(e,t){const n=w(),r=be();if(!n)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:o=ES}=n.getOptions();if(o<=0)return;const a={timestamp:xn(),...e},c=s?vt(()=>s(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,o))}let Zu;const TS="FunctionToString",el=new WeakMap,vS=(()=>({name:TS,setupOnce(){Zu=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Za(this),n=el.has(w())&&t!==void 0?t:this;return Zu.apply(n,e)}}catch{}},setup(e){el.set(e,!0)}})),IS=vS,wS=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],kS="EventFilters",RS=(e={})=>{let t;return{name:kS,setup(n){const r=n.getOptions();t=tl(e,r)},processEvent(n,r,s){if(!t){const o=s.getOptions();t=tl(e,o)}return AS(n,t)?null:n}}},CS=((e={})=>({...RS(e),name:"InboundFilters"}));function tl(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:wS],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function AS(e,t){if(e.type){if(e.type==="transaction"&&MS(e,t.ignoreTransactions))return I&&m.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
11
- Event: ${fn(e)}`),!0}else{if(xS(e,t.ignoreErrors))return I&&m.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
12
- Event: ${fn(e)}`),!0;if(LS(e))return I&&m.warn(`Event dropped due to not having an error message, error type or stacktrace.
13
- Event: ${fn(e)}`),!0;if(NS(e,t.denyUrls))return I&&m.warn(`Event dropped due to being matched by \`denyUrls\` option.
14
- Event: ${fn(e)}.
15
- Url: ${To(e)}`),!0;if(!OS(e,t.allowUrls))return I&&m.warn(`Event dropped due to not being matched by \`allowUrls\` option.
16
- Event: ${fn(e)}.
17
- Url: ${To(e)}`),!0}return!1}function xS(e,t){return t?.length?up(e).some(n=>ft(n,t)):!1}function MS(e,t){if(!t?.length)return!1;const n=e.transaction;return n?ft(n,t):!1}function NS(e,t){if(!t?.length)return!1;const n=To(e);return n?ft(n,t):!1}function OS(e,t){if(!t?.length)return!0;const n=To(e);return n?ft(n,t):!0}function PS(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function To(e){try{const n=[...e.exception?.values??[]].reverse().find(r=>r.mechanism?.parent_id===void 0&&r.stacktrace?.frames?.length)?.stacktrace?.frames;return n?PS(n):null}catch{return I&&m.error(`Cannot extract url for event ${fn(e)}`),null}}function LS(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(t=>t.stacktrace||t.type&&t.type!=="Error"||t.value):!1}function DS(e,t,n,r,s,o){if(!s.exception?.values||!o||!Ot(o.originalException,Error))return;const i=s.exception.values.length>0?s.exception.values[s.exception.values.length-1]:void 0;i&&(s.exception.values=Sa(e,t,r,o.originalException,n,s.exception.values,i,0))}function Sa(e,t,n,r,s,o,i,a){if(o.length>=n+1)return o;let c=[...o];if(Ot(r[s],Error)){nl(i,a,r);const u=e(t,r[s]),d=c.length;rl(u,s,d,a),c=Sa(e,t,n,r[s],s,[u,...c],u,d)}return Sp(r)&&r.errors.forEach((u,d)=>{if(Ot(u,Error)){nl(i,a,r);const l=e(t,u),p=c.length;rl(l,`errors[${d}]`,p,a),c=Sa(e,t,n,u,s,[l,...c],l,p)}}),c}function Sp(e){return Array.isArray(e.errors)}function nl(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...Sp(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function rl(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}const bp=new Map,sl=new Set;function FS(e){if(D._sentryModuleMetadata)for(const t of Object.keys(D._sentryModuleMetadata)){const n=D._sentryModuleMetadata[t];if(sl.has(t))continue;sl.add(t);const r=e(t);for(const s of r.reverse())if(s.filename){bp.set(s.filename,n);break}}}function $S(e,t){return FS(e),bp.get(t)}function Ep(e,t){t.exception?.values?.forEach(n=>{n.stacktrace?.frames?.forEach(r=>{if(!r.filename||r.module_metadata)return;const s=$S(e,r.filename);s&&(r.module_metadata=s)})})}function Tp(e){e.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(n=>{delete n.module_metadata})})}const FM=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",t=>{En(t,(n,r)=>{if(r==="event"){const s=Array.isArray(n)?n[1]:void 0;s&&(Tp(s),n[1]=s)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const n=e.getOptions().stackParser;Ep(n,t)})}});function _c(e){const t="console";rn(t,e),sn(t,BS)}function BS(){"console"in D&&Va.forEach(function(e){e in D.console&&Oe(D.console,e,function(t){return lo[e]=t,function(...n){rt("console",{args:n,level:e}),lo[e]?.apply(D.console,n)}})})}function vo(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const US="CaptureConsole",HS=((e={})=>{const t=e.levels||Va,n=e.handled??!0;return{name:US,setup(r){"console"in D&&_c(({args:s,level:o})=>{w()!==r||!t.includes(o)||WS(s,o,n)})}}}),$M=HS;function WS(e,t,n){const r=vo(t),s=new Error,o={level:vo(t),extra:{arguments:e}};Ke(i=>{if(i.addEventProcessor(u=>(u.logger="console",Pt(u,{handled:n,type:"auto.core.capture_console"}),u)),t==="assert"){if(!e[0]){const u=`Assertion failed: ${fo(e.slice(1)," ")||"console.assert"}`;i.setExtra("arguments",e.slice(1)),i.captureMessage(u,r,{captureContext:o,syntheticException:s})}return}const a=e.find(u=>u instanceof Error);if(a){fe(a,o);return}const c=fo(e," ");i.captureMessage(c,r,{captureContext:o,syntheticException:s})})}const jS="Dedupe",qS=(()=>{let e;return{name:jS,processEvent(t){if(t.type)return t;try{if(GS(t,e))return I&&m.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),zS=qS;function GS(e,t){return t?!!(VS(e,t)||YS(e,t)):!1}function VS(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Ip(e,t)||!vp(e,t))}function YS(e,t){const n=ol(t),r=ol(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Ip(e,t)||!vp(e,t))}function vp(e,t){let n=ua(e),r=ua(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let s=0;s<r.length;s++){const o=r[s],i=n[s];if(o.filename!==i.filename||o.lineno!==i.lineno||o.colno!==i.colno||o.function!==i.function)return!1}return!0}function Ip(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function ol(e){return e.exception?.values?.[0]}const JS="ExtraErrorData",KS=((e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:JS,processEvent(r,s,o){const{maxValueLength:i}=o.getOptions();return XS(r,s,t,n,i)}}}),BM=KS;function XS(e,t={},n,r,s){if(!t.originalException||!_t(t.originalException))return e;const o=t.originalException.name||t.originalException.constructor.name,i=wp(t.originalException,r,s);if(i){const a={...e.contexts},c=Ne(i,n);return We(c)&&(Le(c,"__sentry_skip_normalization__",!0),a[o]=c),{...e,contexts:a}}return e}function wp(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],s={};for(const o of Object.keys(e)){if(r.indexOf(o)!==-1)continue;const i=e[o];s[o]=_t(i)||typeof i=="string"?n?jr(`${i}`,n):`${i}`:i}if(t&&e.cause!==void 0)if(_t(e.cause)){const o=e.cause.name||e.cause.constructor.name;s.cause={[o]:wp(e.cause,!1,n)}}else s.cause=e.cause;if(typeof e.toJSON=="function"){const o=e.toJSON();for(const i of Object.keys(o)){const a=o[i];s[i]=_t(a)?a.toString():a}}return s}catch(r){I&&m.error("Unable to extract extra data from the Error object:",r)}return null}function QS(e,t){let n=0;for(let r=e.length-1;r>=0;r--){const s=e[r];s==="."?e.splice(r,1):s===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}const ZS=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function eb(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=ZS.exec(t);return n?n.slice(1):[]}function il(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const s=r>=0?e[r]:"/";s&&(t=`${s}/${t}`,n=s.charAt(0)==="/")}return t=QS(t.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+t||"."}function al(e){let t=0;for(;t<e.length&&e[t]==="";t++);let n=e.length-1;for(;n>=0&&e[n]==="";n--);return t>n?[]:e.slice(t,n-t+1)}function tb(e,t){e=il(e).slice(1),t=il(t).slice(1);const n=al(e.split("/")),r=al(t.split("/")),s=Math.min(n.length,r.length);let o=s;for(let a=0;a<s;a++)if(n[a]!==r[a]){o=a;break}let i=[];for(let a=o;a<n.length;a++)i.push("..");return i=i.concat(r.slice(o)),i.join("/")}function nb(e,t){return eb(e)[2]||""}const rb="RewriteFrames",UM=(e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in D&&!!D.window,s=e.iteratee||sb({isBrowser:r,root:t,prefix:n});function o(a){try{return{...a,exception:{...a.exception,values:a.exception.values.map(c=>({...c,...c.stacktrace&&{stacktrace:i(c.stacktrace)}}))}}}catch{return a}}function i(a){return{...a,frames:a?.frames?.map(c=>s(c))}}return{name:rb,processEvent(a){let c=a;return a.exception&&Array.isArray(a.exception.values)&&(c=o(c)),c}}};function sb({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;const s=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),o=/^\//.test(r.filename);if(e){if(t){const i=r.filename;i.indexOf(t)===0&&(r.filename=i.replace(t,n))}}else if(s||o){const i=s?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,a=t?tb(t,i):nb(i);r.filename=`${n}${a}`}return r}}const ob=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],ib=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],ab={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},kp=["select","insert","upsert","update","delete"];function Qo(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function Zo(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function cb(e,t={}){switch(e){case"GET":return"select";case"POST":return t.Prefer?.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function ub(e,t){if(t===""||t==="*")return"select(*)";if(e==="select")return`select(${t})`;if(e==="or"||e.endsWith(".or"))return`${e}${t}`;const[n,...r]=t.split(".");let s;return n?.startsWith("fts")?s="textSearch":n?.startsWith("plfts")?s="textSearch[plain]":n?.startsWith("phfts")?s="textSearch[phrase]":n?.startsWith("wfts")?s="textSearch[websearch]":s=n&&ab[n]||"filter",`${s}(${e}, ${r.join(".")})`}function cl(e,t=!1){return new Proxy(e,{apply(n,r,s){return Ye({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[W]:"auto.db.supabase",[ie]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},o=>Reflect.apply(n,r,s).then(i=>(i&&typeof i=="object"&&"error"in i&&i.error?(o.setStatus({code:Y}),fe(i.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):o.setStatus({code:as}),o.end(),i)).catch(i=>{throw o.setStatus({code:Y}),o.end(),fe(i,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),i}).then(...s))}})}function lb(e){const t=e.auth;if(!(!t||Zo(e.auth))){for(const n of ob){const r=t[n];r&&typeof e.auth[n]=="function"&&(e.auth[n]=cl(r))}for(const n of ib){const r=t.admin[n];r&&typeof e.auth.admin[n]=="function"&&(e.auth.admin[n]=cl(r,!0))}Qo(e.auth)}}function db(e){Zo(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(t,n,r){const s=Reflect.apply(t,n,r),o=s.constructor;return pb(o),s}}),Qo(e.prototype.from))}function fb(e){Zo(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(t,n,r){const s=kp,o=n,i=cb(o.method,o.headers);if(!s.includes(i)||!o?.url?.pathname||typeof o.url.pathname!="string")return Reflect.apply(t,n,r);const a=o.url.pathname.split("/"),c=a.length>0?a[a.length-1]:"",u=[];for(const[f,h]of o.url.searchParams.entries())u.push(ub(f,h));const d=Object.create(null);if(We(o.body))for(const[f,h]of Object.entries(o.body))d[f]=h;const l=`${i==="select"?"":`${i}${d?"(...) ":""}`}${u.join(" ")} from(${c})`,p={"db.table":c,"db.schema":o.schema,"db.url":o.url.origin,"db.sdk":o.headers["X-Client-Info"],"db.system":"postgresql","db.operation":i,[W]:"auto.db.supabase",[ie]:"db"};return u.length&&(p["db.query"]=u),Object.keys(d).length&&(p["db.body"]=d),Ye({name:l,attributes:p},f=>Reflect.apply(t,n,[]).then(h=>{if(f&&(h&&typeof h=="object"&&"status"in h&&po(f,h.status||500),f.end()),h?.error){const y=new Error(h.error.message);h.error.code&&(y.code=h.error.code),h.error.details&&(y.details=h.error.details);const b={};u.length&&(b.query=u),Object.keys(d).length&&(b.body=d),fe(y,A=>(A.addEventProcessor(R=>(Pt(R,{handled:!1,type:"auto.db.supabase.postgres"}),R)),A.setContext("supabase",b),A))}const g={type:"supabase",category:`db.${i}`,message:l},_={};return u.length&&(_.query=u),Object.keys(d).length&&(_.body=d),Object.keys(_).length&&(g.data=_),Dt(g),h},h=>{throw f&&(po(f,500),f.end()),h}).then(...r))}}),Qo(e.prototype.then))}function pb(e){for(const t of kp)Zo(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(n,r,s){const o=Reflect.apply(n,r,s),i=o.constructor;return I&&m.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),fb(i),o}}),Qo(e.prototype[t]))}const hb=e=>{if(!e){I&&m.warn("Supabase integration was not installed because no Supabase client was provided.");return}const t=e.constructor===Function?e:e.constructor;db(t),lb(e)},mb="Supabase",gb=(e=>({setupOnce(){hb(e)},name:mb})),HM=e=>gb(e.supabaseClient),_b=10,yb="ZodErrors";function Sb(e){return _t(e)&&e.name==="ZodError"&&Array.isArray(e.issues)}function bb(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function Eb(e){return e.map(t=>typeof t=="number"?"<array>":t).join(".")}function Tb(e){const t=new Set;for(const r of e.issues){const s=Eb(r.path);s.length>0&&t.add(s)}const n=Array.from(t);if(n.length===0){let r="variable";if(e.issues.length>0){const s=e.issues[0];s!==void 0&&"expected"in s&&typeof s.expected=="string"&&(r=s.expected)}return`Failed to validate ${r}`}return`Failed to validate keys: ${jr(n.join(", "),100)}`}function vb(e,t=!1,n,r){if(!n.exception?.values||!r.originalException||!Sb(r.originalException)||r.originalException.issues.length===0)return n;try{const o=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(bb);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:o})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:Tb(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":o.slice(0,e)}}}catch(s){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:s instanceof Error?`${s.name}: ${s.message}
18
- ${s.stack}`:"unknown"}}}}}const Ib=((e={})=>{const t=e.limit??_b;return{name:yb,processEvent(n,r){return vb(t,e.saveZodIssuesAsAttachment,n,r)}}}),WM=Ib,jM=e=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",n=>{En(n,(r,s)=>{if(s==="event"){const o=Array.isArray(r)?r[1]:void 0;o&&(Tp(o),r[1]=o)}})}),t.on("applyFrameMetadata",n=>{if(n.type)return;const r=t.getOptions().stackParser;Ep(r,n)})},processEvent(t){const n=kb(t,e.ignoreSentryInternalFrames);if(n){const r=e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="apply-tag-if-contains-third-party-frames"?"some":"every";if(n[r](o=>!o.some(i=>e.filterKeys.includes(i)))){if(e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="drop-error-if-exclusively-contains-third-party-frames")return null;t.tags={...t.tags,third_party_code:!0}}}return t}});function wb(e,t){if(t!==0||!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(Cb))return!1;if(e.pre_context){const n=e.pre_context.length;for(let r=0;r<n;r++)if(e.pre_context[r]?.includes(Rb))return!0}return!1}function kb(e,t){const n=ua(e);if(n)return n.filter((r,s)=>!r.filename||r.lineno==null&&r.colno==null&&r.instruction_addr==null?!1:!t||!wb(r,s)).map(r=>r.module_metadata?Object.keys(r.module_metadata).filter(s=>s.startsWith(ul)).map(s=>s.slice(ul.length)):[])}const ul="_sentryBundlerPluginAppKey:",Rb="Attempt to invoke user-land function",Cb="fn.apply(this, wrappedArguments)",Ab=100,xb=10,As="flag.evaluation.";function mr(e){if(e.type)return e;const n=V().getScopeData().contexts.flags,r=n?n.values:[];return r.length&&(e.contexts===void 0&&(e.contexts={}),e.contexts.flags={values:[...r]}),e}function Tn(e,t,n=Ab){const r=V().getScopeData().contexts;r.flags||(r.flags={values:[]});const s=r.flags.values;Mb(s,e,t,n)}function Mb(e,t,n,r){if(typeof n!="boolean")return;if(e.length>r){I&&m.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);return}const s=e.findIndex(o=>o.flag===t);s!==-1&&e.splice(s,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}function vn(e,t,n=xb){if(typeof t!="boolean")return;const r=Te();if(!r)return;const s=j(r).data;if(`${As}${e}`in s){r.setAttribute(`${As}${e}`,t);return}Object.keys(s).filter(i=>i.startsWith(As)).length<n&&r.setAttribute(`${As}${e}`,t)}const qM=()=>({name:"FeatureFlags",processEvent(e,t,n){return mr(e)},addFeatureFlag(e,t){Tn(e,t),vn(e,t)}}),Nb=({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){const t=e.prototype;typeof t.isOn=="function"&&Oe(t,"isOn",ll),typeof t.getFeatureValue=="function"&&Oe(t,"getFeatureValue",ll)},processEvent(t,n,r){return mr(t)}});function ll(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"&&(Tn(n,r),vn(n,r)),r}}const Ob="ConversationId",Pb=(()=>({name:Ob,setup(e){e.on("spanStart",t=>{const n=V().getScopeData(),r=be().getScopeData(),s=n.conversationId||r.conversationId;if(s){const{op:o,data:i,description:a}=j(t);if(!o?.startsWith("gen_ai.")&&!i["ai.operationId"]&&!a?.startsWith("ai."))return;t.setAttribute(Xg,s)}})}})),Lb=Pb;function Db(e,t,n,r,s){if(!e.fetchData)return;const{method:o,url:i}=e.fetchData,a=st()&&t(i);if(e.endTimestamp){const f=e.fetchData.__span;if(!f)return;const h=r[f];h&&(a&&(Bb(h,e),Fb(h,e,s)),delete r[f]);return}const{spanOrigin:c="auto.http.browser",propagateTraceparent:u=!1}=typeof s=="object"?s:{spanOrigin:s},d=w(),l=!!Te(),p=a&&l?ot(Wb(i,o,c)):new Je;if(a&&!l&&d?.recordDroppedEvent("no_parent_span","span"),e.fetchData.__span=p.spanContext().spanId,r[p.spanContext().spanId]=p,n(e.fetchData.url)){const f=e.args[0],h={...e.args[1]||{}},g=$b(f,h,st()&&l?p:void 0,u);g&&(e.args[1]=h,h.headers=g)}if(d){const f={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};d.emit("beforeOutgoingRequestSpan",p,f)}return p}function Fb(e,t,n){(typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function $b(e,t,n,r){const s=yp({span:n,propagateTraceparent:r}),o=s["sentry-trace"],i=s.baggage,a=s.traceparent;if(!o)return;const c=t.headers||(Ka(e)?e.headers:void 0);if(c)if(Ub(c)){const u=new Headers(c);if(u.get("sentry-trace")||u.set("sentry-trace",o),r&&a&&!u.get("traceparent")&&u.set("traceparent",a),i){const d=u.get("baggage");d?xs(d)||u.set("baggage",`${d},${i}`):u.set("baggage",i)}return u}else if(Hb(c)){const u=[...c];u.find(l=>l[0]==="sentry-trace")||u.push(["sentry-trace",o]),r&&a&&!u.find(l=>l[0]==="traceparent")&&u.push(["traceparent",a]);const d=c.find(l=>l[0]==="baggage"&&typeof l[1]=="string"&&xs(l[1]));return i&&!d&&u.push(["baggage",i]),u}else{const u="sentry-trace"in c?c["sentry-trace"]:void 0,d="traceparent"in c?c.traceparent:void 0,l="baggage"in c?c.baggage:void 0,p=l?Array.isArray(l)?[...l]:[l]:[],f=l&&(Array.isArray(l)?l.find(g=>xs(g)):xs(l));i&&!f&&p.push(i);const h=Object.assign({},c,{"sentry-trace":u??o,baggage:p.length>0?p.join(","):void 0});return r&&a&&!d&&(h.traceparent=a),h}else return{...s}}function Bb(e,t){if(t.response){po(e,t.response.status);const n=t.response?.headers?.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus({code:Y,message:"internal_error"});e.end()}function xs(e){return typeof e!="string"?!1:e.split(",").some(t=>t.trim().startsWith(ho))}function Ub(e){return typeof Headers<"u"&&Ot(e,Headers)}function Hb(e){return Array.isArray(e)?e.every(t=>Array.isArray(t)&&t.length===2&&typeof t[0]=="string"):!1}function Wb(e,t,n){if(e.startsWith("data:")){const o=Kt(e);return{name:`${t} ${o}`,attributes:dl(e,void 0,t,n)}}const r=gc(e),s=r?fS(r):e;return{name:`${t} ${s}`,attributes:dl(e,r,t,n)}}function dl(e,t,n,r){const s={url:Kt(e),type:"fetch","http.method":n,[W]:r,[ie]:"http.client"};return t&&(mc(t)||(s["http.url"]=Kt(t.href),s["server.address"]=t.host),t.search&&(s["http.query"]=t.search),t.hash&&(s["http.fragment"]=t.hash)),s}function jb(e,t={},n=V()){const{message:r,name:s,email:o,url:i,source:a,associatedEventId:c,tags:u}=e,d={contexts:{feedback:{contact_email:o,name:s,message:r,url:i,source:a,associated_event_id:c}},type:"feedback",level:"info",tags:u},l=n?.getClient()||w();return l&&l.emit("beforeSendFeedback",d,t),n.captureEvent(d,t)}function gr(e,t,n,r,s){bo({level:e,message:t,attributes:n,severityNumber:s},r)}function qb(e,t,{scope:n}={}){gr("trace",e,t,n)}function zb(e,t,{scope:n}={}){gr("debug",e,t,n)}function Gb(e,t,{scope:n}={}){gr("info",e,t,n)}function Vb(e,t,{scope:n}={}){gr("warn",e,t,n)}function Yb(e,t,{scope:n}={}){gr("error",e,t,n)}function Jb(e,t,{scope:n}={}){gr("fatal",e,t,n)}const zM=Object.freeze(Object.defineProperty({__proto__:null,debug:zb,error:Yb,fatal:Jb,fmt:gS,info:Gb,trace:qb,warn:Vb},Symbol.toStringTag,{value:"Module"}));function Io(e,t,n){return"util"in D&&typeof D.util.format=="function"?D.util.format(...e):Kb(e,t,n)}function Kb(e,t,n){return e.map(r=>Nt(r)?String(r):JSON.stringify(Ne(r,t,n))).join(" ")}function Rp(e){return/%[sdifocO]/.test(e)}function Cp(e,t){const n={},r=new Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${r}`,t.forEach((s,o)=>{n[`sentry.message.parameter.${o}`]=s}),n}const Xb="ConsoleLogs",fl={[W]:"auto.log.console"},Qb=((e={})=>{const t=e.levels||Va;return{name:Xb,setup(n){const{enableLogs:r,normalizeDepth:s=3,normalizeMaxBreadth:o=1e3}=n.getOptions();if(!r){I&&m.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}_c(({args:i,level:a})=>{if(w()!==n||!t.includes(a))return;const c=i[0],u=i.slice(1);if(a==="assert"){if(!c){const f=u.length>0?`Assertion failed: ${Io(u,s,o)}`:"Assertion failed";bo({level:"error",message:f,attributes:fl})}return}const d=a==="log",l=i.length>1&&typeof i[0]=="string"&&!Rp(i[0]),p={...fl,...l?Cp(c,u):{}};bo({level:d?"info":a,message:Io(i,s,o),severityNumber:d?10:void 0,attributes:p})})}}}),GM=Qb;function yc(e,t,n,r){zy({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}function Zb(e,t=1,n){yc("counter",e,t,n)}function eE(e,t,n){yc("gauge",e,t,n)}function ba(e,t,n){yc("distribution",e,t,n)}const VM=Object.freeze(Object.defineProperty({__proto__:null,count:Zb,distribution:ba,gauge:eE},Symbol.toStringTag,{value:"Module"})),tE=["trace","debug","info","warn","error","fatal"];function YM(e={}){const t=new Set(e.levels??tE),n=e.client;return{log(r){const{type:s,level:o,message:i,args:a,tag:c,date:u,...d}=r,l=n||w();if(!l)return;const p=sE(s,o);if(!t.has(p))return;const{normalizeDepth:f=3,normalizeMaxBreadth:h=1e3}=l.getOptions(),g={};for(const[y,b]of Object.entries(d))g[y]=Ne(b,f,h);g["sentry.origin"]="auto.log.consola",c&&(g["consola.tag"]=c),s&&(g["consola.type"]=s),o!=null&&typeof o=="number"&&(g["consola.level"]=o);const _=iE(oE(a,f,h),f,h);_?.attributes&&Object.assign(g,_.attributes),bo({level:p,message:_?.message||i||a&&Io(a,f,h)||"",attributes:g})}}}const nE={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},rE={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};function sE(e,t){if(e==="verbose")return"debug";if(e==="silent")return"trace";if(e){const n=nE[e];if(n)return n}if(typeof t=="number"){const n=rE[t];if(n)return n}return"info"}function oE(e,t,n){if(!e?.length)return{message:""};const r=Io(e,t,n),s=e[0];if(We(s)){const o=typeof e[1]=="string"?2:1,i=e.slice(o);return{message:r,attributes:s,messageParameters:i}}else{const o=e.slice(1),i=o.length>0&&typeof s=="string"&&!Rp(s);return{message:r,messageTemplate:i?s:void 0,messageParameters:i?o:void 0}}}function iE(e,t,n){const{message:r,attributes:s,messageTemplate:o,messageParameters:i}=e,a={};if(o&&i){const c=Cp(o,i);for(const[u,d]of Object.entries(c))a[u]=u.startsWith("sentry.message.parameter.")?Ne(d,t,n):d}else i&&i.length>0&&i.forEach((c,u)=>{a[`sentry.message.parameter.${u}`]=Ne(c,t,n)});return{message:r,attributes:{...Ne(s,t,n),...a}}}const aE="gen_ai.prompt",fs="gen_ai.system",Pe="gen_ai.request.model",Sc="gen_ai.request.stream",ei="gen_ai.request.temperature",bc="gen_ai.request.max_tokens",ti="gen_ai.request.frequency_penalty",Ec="gen_ai.request.presence_penalty",ni="gen_ai.request.top_p",Ap="gen_ai.request.top_k",xp="gen_ai.request.encoding_format",Mp="gen_ai.request.dimensions",Vn="gen_ai.response.finish_reasons",_r="gen_ai.response.model",ri="gen_ai.response.id",cE="gen_ai.response.stop_reason",In="gen_ai.usage.input_tokens",wn="gen_ai.usage.output_tokens",tn="gen_ai.usage.total_tokens",Ft="gen_ai.operation.name",kn="sentry.sdk_meta.gen_ai.input.messages.original_length",yr="gen_ai.input.messages",ps="gen_ai.system_instructions",yt="gen_ai.response.text",si="gen_ai.request.available_tools",uE="gen_ai.response.streaming",Xt="gen_ai.response.tool_calls",Np="gen_ai.agent.name",lE="gen_ai.pipeline.name",Tc="gen_ai.conversation.id",dE="gen_ai.usage.cache_creation_input_tokens",fE="gen_ai.usage.cache_read_input_tokens",pE="gen_ai.invoke_agent",vc="gen_ai.embeddings.input",Op="gen_ai.embeddings",hE="gen_ai.tool.name",mE="gen_ai.tool.input",gE="gen_ai.tool.output";function Yn(e){return!e||typeof e!="object"?!1:yE(e)||Lp(e)||_E(e)||Dp(e)||Fp(e)||SE(e)||bE(e)||EE(e)||TE(e)||vE(e)||IE(e)||wE(e)}function _E(e){return"image_url"in e?typeof e.image_url=="string"?e.image_url.startsWith("data:"):Pp(e):!1}function Pp(e){return"image_url"in e&&!!e.image_url&&typeof e.image_url=="object"&&"url"in e.image_url&&typeof e.image_url.url=="string"&&e.image_url.url.startsWith("data:")}function yE(e){return"type"in e&&typeof e.type=="string"&&"source"in e&&Yn(e.source)}function Lp(e){return"inlineData"in e&&!!e.inlineData&&typeof e.inlineData=="object"&&"data"in e.inlineData&&typeof e.inlineData.data=="string"}function Dp(e){return"type"in e&&e.type==="input_audio"&&"input_audio"in e&&!!e.input_audio&&typeof e.input_audio=="object"&&"data"in e.input_audio&&typeof e.input_audio.data=="string"}function Fp(e){return"type"in e&&e.type==="file"&&"file"in e&&!!e.file&&typeof e.file=="object"&&"file_data"in e.file&&typeof e.file.file_data=="string"}function SE(e){return"media_type"in e&&typeof e.media_type=="string"&&"data"in e}function bE(e){return"type"in e&&e.type==="file"&&"mediaType"in e&&typeof e.mediaType=="string"&&"data"in e&&typeof e.data=="string"&&!e.data.startsWith("http://")&&!e.data.startsWith("https://")}function EE(e){return"type"in e&&e.type==="image"&&"image"in e&&typeof e.image=="string"&&!e.image.startsWith("http://")&&!e.image.startsWith("https://")}function TE(e){return"type"in e&&(e.type==="blob"||e.type==="base64")}function vE(e){return"b64_json"in e}function IE(e){return"type"in e&&"result"in e&&e.type==="image_generation"}function wE(e){return"uri"in e&&typeof e.uri=="string"&&e.uri.startsWith("data:")}const Cr="[Blob substitute]",kE=["image_url","data","content","b64_json","result","uri","image"];function Lr(e){const t={...e};Yn(t.source)&&(t.source=Lr(t.source)),Lp(e)&&(t.inlineData={...e.inlineData,data:Cr}),Pp(e)&&(t.image_url={...e.image_url,url:Cr}),Dp(e)&&(t.input_audio={...e.input_audio,data:Cr}),Fp(e)&&(t.file={...e.file,file_data:Cr});for(const n of kE)typeof t[n]=="string"&&(t[n]=Cr);return t}const $p=2e4,wo=e=>new TextEncoder().encode(e).length,Ic=e=>wo(JSON.stringify(e));function oi(e,t){if(wo(e)<=t)return e;let n=0,r=e.length,s="";for(;n<=r;){const o=Math.floor((n+r)/2),i=e.slice(0,o);wo(i)<=t?(s=i,n=o+1):r=o-1}return s}function RE(e){return typeof e=="string"?e:"text"in e&&typeof e.text=="string"?e.text:""}function pl(e,t){return typeof e=="string"?t:{...e,text:t}}function CE(e){return e!==null&&typeof e=="object"&&"content"in e&&typeof e.content=="string"}function Bp(e){return e!==null&&typeof e=="object"&&"content"in e&&Array.isArray(e.content)}function Up(e){return e!==null&&typeof e=="object"&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function AE(e,t){const n={...e,content:""},r=Ic(n),s=t-r;if(s<=0)return[];const o=oi(e.content,s);return[{...e,content:o}]}function xE(e){return"parts"in e&&Array.isArray(e.parts)?{key:"parts",items:e.parts}:"content"in e&&Array.isArray(e.content)?{key:"content",items:e.content}:{key:null,items:[]}}function ME(e,t){const{key:n,items:r}=xE(e);if(n===null||r.length===0)return[];const s=r.map(c=>pl(c,"")),o=Ic({...e,[n]:s});let i=t-o;if(i<=0)return[];const a=[];for(const c of r){const u=RE(c),d=wo(u);if(d<=i)a.push(c),i-=d;else if(a.length===0){const l=oi(u,i);l&&a.push(pl(c,l));break}else break}return a.length<=0?[]:[{...e,[n]:a}]}function NE(e,t){if(!e)return[];if(typeof e=="string"){const n=oi(e,t);return n?[n]:[]}return typeof e!="object"?[]:CE(e)?AE(e,t):Bp(e)||Up(e)?ME(e,t):[]}function Ea(e){return e.map(n=>{let r;return n&&typeof n=="object"&&(Bp(n)?r={...n,content:Ea(n.content)}:"content"in n&&Yn(n.content)&&(r={...n,content:Lr(n.content)}),Up(n)&&(r={...r??n,parts:Ea(n.parts)}),Yn(r)?r=Lr(r):Yn(n)&&(r=Lr(n))),r??n})}function OE(e,t){if(!Array.isArray(e)||e.length===0)return e;const n=t-2,r=e[e.length-1],s=Ea([r]),o=s[0];return Ic(o)<=n?s:NE(o,n)}function PE(e){return OE(e,$p)}function LE(e){return oi(e,$p)}function Sr(e){const t=!!w()?.getOptions().sendDefaultPii;return{...e,recordInputs:e?.recordInputs??t,recordOutputs:e?.recordOutputs??t}}function $t(e){const t=w();return e??!(t&&Lt(t))}function wc(e,t){return e?`${e}.${t}`:t}function DE(e,t,n,r,s){if(t!==void 0&&e.setAttributes({[In]:t}),n!==void 0&&e.setAttributes({[wn]:n}),t!==void 0||n!==void 0||r!==void 0||s!==void 0){const o=(t??0)+(n??0)+(r??0)+(s??0);e.setAttributes({[tn]:o})}}function ii(e,t,n){if(!e.isRecording())return;const r={[uE]:!0};t.responseId&&(r[ri]=t.responseId),t.responseModel&&(r[_r]=t.responseModel),t.promptTokens!==void 0&&(r[In]=t.promptTokens),t.completionTokens!==void 0&&(r[wn]=t.completionTokens),t.totalTokens!==void 0?r[tn]=t.totalTokens:(t.promptTokens!==void 0||t.completionTokens!==void 0||t.cacheCreationInputTokens!==void 0||t.cacheReadInputTokens!==void 0)&&(r[tn]=(t.promptTokens??0)+(t.completionTokens??0)+(t.cacheCreationInputTokens??0)+(t.cacheReadInputTokens??0)),t.finishReasons.length&&(r[Vn]=JSON.stringify(t.finishReasons)),n&&t.responseTexts.length&&(r[yt]=t.responseTexts.join("")),n&&t.toolCalls.length&&(r[Xt]=JSON.stringify(t.toolCalls)),e.setAttributes(r),e.end()}function br(e){return typeof e=="string"?e:JSON.stringify(e)}function Er(e){if(typeof e=="string")return LE(e);if(Array.isArray(e)){const t=PE(e);return JSON.stringify(t)}return JSON.stringify(e)}function hs(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};const t=e.findIndex(i=>i&&typeof i=="object"&&"role"in i&&i.role==="system");if(t===-1)return{systemInstructions:void 0,filteredMessages:e};const n=e[t],r=typeof n.content=="string"?n.content:n.content!==void 0?JSON.stringify(n.content):void 0;if(!r)return{systemInstructions:void 0,filteredMessages:e};const s=JSON.stringify([{type:"text",content:r}]),o=[...e.slice(0,t),...e.slice(t+1)];return{systemInstructions:s,filteredMessages:o}}async function FE(e,t,n){const r=e.catch(i=>{throw fe(i,{mechanism:{handled:!1,type:n}}),i}),s=await t,o=await r;return o&&typeof o=="object"&&"data"in o?{...o,data:s}:s}function ko(e,t,n){return Cn(e)?new Proxy(e,{get(r,s){const i=s in Promise.prototype||s===Symbol.toStringTag?t:r,a=Reflect.get(i,s);return s==="withResponse"&&typeof a=="function"?function(){const u=a.call(r);return FE(u,t,n)}:typeof a=="function"?a.bind(i):a}}):t}const $E={"responses.create":{operation:"chat"},"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},BE=["response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"],UE=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta",...BE];function HE(e){return e!==null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&e.type.startsWith("response.")}function WE(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="chat.completion.chunk"}function jE(e,t,n){if(!t||typeof t!="object")return;const r=t,s={};if(typeof r.id=="string"&&(s[ri]=r.id),typeof r.model=="string"&&(s[_r]=r.model),r.object==="conversation"&&typeof r.id=="string"&&(s[Tc]=r.id),r.usage&&typeof r.usage=="object"){const o=r.usage,i=o.prompt_tokens??o.input_tokens;typeof i=="number"&&(s[In]=i);const a=o.completion_tokens??o.output_tokens;typeof a=="number"&&(s[wn]=a),typeof o.total_tokens=="number"&&(s[tn]=o.total_tokens)}if(Array.isArray(r.choices)){const o=r.choices,i=o.map(a=>a.finish_reason).filter(a=>typeof a=="string");if(i.length>0&&(s[Vn]=JSON.stringify(i)),n){const a=o.map(u=>u.message?.content||"");s[yt]=JSON.stringify(a);const c=o.map(u=>u.message?.tool_calls).filter(u=>Array.isArray(u)&&u.length>0).flat();c.length>0&&(s[Xt]=JSON.stringify(c))}}if(typeof r.status=="string"&&(s[Vn]||(s[Vn]=JSON.stringify([r.status]))),n&&(typeof r.output_text=="string"&&!s[yt]&&(s[yt]=r.output_text),Array.isArray(r.output)&&r.output.length>0&&!s[Xt])){const o=r.output.filter(i=>i?.type==="function_call");o.length>0&&(s[Xt]=JSON.stringify(o))}e.setAttributes(s)}function qE(e){if("conversation"in e&&typeof e.conversation=="string")return e.conversation;if("previous_response_id"in e&&typeof e.previous_response_id=="string")return e.previous_response_id}function zE(e){const t={[Pe]:e.model??"unknown"};"temperature"in e&&(t[ei]=e.temperature),"top_p"in e&&(t[ni]=e.top_p),"frequency_penalty"in e&&(t[ti]=e.frequency_penalty),"presence_penalty"in e&&(t[Ec]=e.presence_penalty),"stream"in e&&(t[Sc]=e.stream),"encoding_format"in e&&(t[xp]=e.encoding_format),"dimensions"in e&&(t[Mp]=e.dimensions);const n=qE(e);return n&&(t[Tc]=n),t}function GE(e,t){for(const n of e){const r=n.index;if(!(r===void 0||!n.function))if(!(r in t.chatCompletionToolCalls))t.chatCompletionToolCalls[r]={...n,function:{name:n.function.name,arguments:n.function.arguments||""}};else{const s=t.chatCompletionToolCalls[r];n.function.arguments&&s?.function&&(s.function.arguments+=n.function.arguments)}}}function VE(e,t,n){t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,e.usage&&(t.promptTokens=e.usage.prompt_tokens,t.completionTokens=e.usage.completion_tokens,t.totalTokens=e.usage.total_tokens);for(const r of e.choices??[])n&&(r.delta?.content&&t.responseTexts.push(r.delta.content),r.delta?.tool_calls&&GE(r.delta.tool_calls,t)),r.finish_reason&&t.finishReasons.push(r.finish_reason)}function YE(e,t,n,r){if(!(e&&typeof e=="object")){t.eventTypes.push("unknown:non-object");return}if(e instanceof Error){r.setStatus({code:Y,message:"internal_error"}),fe(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if(!("type"in e))return;const s=e;if(!UE.includes(s.type)){t.eventTypes.push(s.type);return}if(n&&(s.type==="response.output_item.done"&&"item"in s&&t.responsesApiToolCalls.push(s.item),s.type==="response.output_text.delta"&&"delta"in s&&s.delta)){t.responseTexts.push(s.delta);return}if("response"in s){const{response:o}=s;t.responseId=o.id??t.responseId,t.responseModel=o.model??t.responseModel,o.usage&&(t.promptTokens=o.usage.input_tokens,t.completionTokens=o.usage.output_tokens,t.totalTokens=o.usage.total_tokens),o.status&&t.finishReasons.push(o.status),n&&o.output_text&&t.responseTexts.push(o.output_text)}}async function*JE(e,t,n){const r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(const s of e)WE(s)?VE(s,r,n):HE(s)&&YE(s,r,n,t),yield s}finally{const s=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];ii(t,{...r,toolCalls:s},n)}}function KE(e){const t=Array.isArray(e.tools)?e.tools:[],r=e.web_search_options&&typeof e.web_search_options=="object"?[{type:"web_search_options",...e.web_search_options}]:[],s=[...t,...r];if(s.length!==0)try{return JSON.stringify(s)}catch(o){I&&m.error("Failed to serialize OpenAI tools:",o);return}}function XE(e,t){const n={[fs]:"openai",[Ft]:t,[W]:"auto.ai.openai"};if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){const r=e[0],s=KE(r);s&&(n[si]=s),Object.assign(n,zE(r))}else n[Pe]="unknown";return n}function hl(e,t,n,r){if(n==="embeddings"&&"input"in t){const a=t.input;if(a==null||typeof a=="string"&&a.length===0||Array.isArray(a)&&a.length===0)return;e.setAttribute(vc,typeof a=="string"?a:JSON.stringify(a));return}const s="input"in t?t.input:"messages"in t?t.messages:void 0;if(!s||Array.isArray(s)&&s.length===0)return;const{systemInstructions:o,filteredMessages:i}=hs(s);o&&e.setAttribute(ps,o),e.setAttribute(yr,r?Er(i):br(i)),Array.isArray(i)?e.setAttribute(kn,i.length):e.setAttribute(kn,1)}function QE(e,t,n,r,s){return function(...i){const a=n.operation||"unknown",c=XE(i,a),u=c[Pe]||"unknown",d=i[0],l=d&&typeof d=="object"&&d.stream===!0,p={name:`${a} ${u}`,op:`gen_ai.${a}`,attributes:c};if(l){let g;const _=Vt(p,y=>(g=e.apply(r,i),s.recordInputs&&d&&hl(y,d,a,$t(s.enableTruncation)),(async()=>{try{const b=await g;return JE(b,y,s.recordOutputs??!1)}catch(b){throw y.setStatus({code:Y,message:"internal_error"}),fe(b,{mechanism:{handled:!1,type:"auto.ai.openai.stream",data:{function:t}}}),y.end(),b}})()));return ko(g,_,"auto.ai.openai")}let f;const h=Ye(p,g=>(f=e.apply(r,i),s.recordInputs&&d&&hl(g,d,a,$t(s.enableTruncation)),f.then(_=>(jE(g,_,s.recordOutputs),_),_=>{throw fe(_,{mechanism:{handled:!1,type:"auto.ai.openai",data:{function:t}}}),_})));return ko(f,h,"auto.ai.openai")}}function Hp(e,t="",n){return new Proxy(e,{get(r,s){const o=r[s],i=wc(t,String(s)),a=$E[i];return typeof o=="function"&&a?QE(o,i,a,r,n):typeof o=="function"?o.bind(r):o&&typeof o=="object"?Hp(o,i,n):o}})}function JM(e,t){return Hp(e,"",Sr(t))}const ZE={"messages.create":{operation:"chat"},"messages.stream":{operation:"chat",streaming:!0},"messages.countTokens":{operation:"chat"},"models.get":{operation:"models"},"completions.create":{operation:"chat"},"models.retrieve":{operation:"models"},"beta.messages.create":{operation:"chat"}};function eT(e,t,n){if(Array.isArray(t)&&t.length===0)return;const{systemInstructions:r,filteredMessages:s}=hs(t);r&&e.setAttributes({[ps]:r});const o=Array.isArray(s)?s.length:1;e.setAttributes({[yr]:n?Er(s):br(s),[kn]:o})}const tT={invalid_request_error:"invalid_argument",authentication_error:"unauthenticated",permission_error:"permission_denied",not_found_error:"not_found",request_too_large:"failed_precondition",rate_limit_error:"resource_exhausted",api_error:"internal_error",overloaded_error:"unavailable"};function Wp(e){return e&&tT[e]||"internal_error"}function nT(e,t){t.error&&(e.setStatus({code:Y,message:Wp(t.error.type)}),fe(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))}function rT(e){const{system:t,messages:n,input:r}=e,s=typeof t=="string"?[{role:"system",content:e.system}]:[],o=Array.isArray(r)?r:r!=null?[r]:void 0,i=Array.isArray(n)?n:n!=null?[n]:[],a=o??i;return[...s,...a]}function sT(e,t){return"type"in e&&typeof e.type=="string"&&e.type==="error"?(t.setStatus({code:Y,message:Wp(e.error?.type)}),fe(e.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}),!0):!1}function oT(e,t){if(e.type==="message_delta"&&e.usage&&"output_tokens"in e.usage&&typeof e.usage.output_tokens=="number"&&(t.completionTokens=e.usage.output_tokens),e.message){const n=e.message;n.id&&(t.responseId=n.id),n.model&&(t.responseModel=n.model),n.stop_reason&&t.finishReasons.push(n.stop_reason),n.usage&&(typeof n.usage.input_tokens=="number"&&(t.promptTokens=n.usage.input_tokens),typeof n.usage.cache_creation_input_tokens=="number"&&(t.cacheCreationInputTokens=n.usage.cache_creation_input_tokens),typeof n.usage.cache_read_input_tokens=="number"&&(t.cacheReadInputTokens=n.usage.cache_read_input_tokens))}}function iT(e,t){e.type!=="content_block_start"||typeof e.index!="number"||!e.content_block||(e.content_block.type==="tool_use"||e.content_block.type==="server_tool_use")&&(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]})}function aT(e,t,n){if(!(e.type!=="content_block_delta"||!e.delta)){if(typeof e.index=="number"&&"partial_json"in e.delta&&typeof e.delta.partial_json=="string"){const r=t.activeToolBlocks[e.index];r&&r.inputJsonParts.push(e.delta.partial_json)}n&&typeof e.delta.text=="string"&&t.responseTexts.push(e.delta.text)}}function cT(e,t){if(e.type!=="content_block_stop"||typeof e.index!="number")return;const n=t.activeToolBlocks[e.index];if(!n)return;const r=n.inputJsonParts.join("");let s;try{s=r?JSON.parse(r):{}}catch{s={__unparsed:r}}t.toolCalls.push({type:"tool_use",id:n.id,name:n.name,input:s}),delete t.activeToolBlocks[e.index]}function jp(e,t,n,r){!(e&&typeof e=="object")||sT(e,r)||(oT(e,t),iT(e,t),aT(e,t,n),cT(e,t))}async function*uT(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(const s of e)jp(s,r,n,t),yield s}finally{ii(t,r,n)}}function lT(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return e.on("streamEvent",s=>{jp(s,r,n,t)}),e.on("message",()=>{ii(t,r,n)}),e.on("error",s=>{fe(s,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:Y,message:"internal_error"}),t.end())}),e}function dT(e,t,n){const r={[fs]:"anthropic",[Ft]:n,[W]:"auto.ai.anthropic"};if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){const s=e[0];s.tools&&Array.isArray(s.tools)&&(r[si]=JSON.stringify(s.tools)),r[Pe]=s.model??"unknown","temperature"in s&&(r[ei]=s.temperature),"top_p"in s&&(r[ni]=s.top_p),"stream"in s&&(r[Sc]=s.stream),"top_k"in s&&(r[Ap]=s.top_k),"frequency_penalty"in s&&(r[ti]=s.frequency_penalty),"max_tokens"in s&&(r[bc]=s.max_tokens)}else t==="models.retrieve"||t==="models.get"?r[Pe]=e[0]:r[Pe]="unknown";return r}function Ta(e,t,n){const r=rT(t);eT(e,r,n),"prompt"in t&&e.setAttributes({[aE]:JSON.stringify(t.prompt)})}function fT(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[yt]:t.content.map(r=>r.text).filter(r=>!!r).join("")});const n=[];for(const r of t.content)(r.type==="tool_use"||r.type==="server_tool_use")&&n.push(r);n.length>0&&e.setAttributes({[Xt]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[yt]:t.completion}),"input_tokens"in t&&e.setAttributes({[yt]:JSON.stringify(t.input_tokens)})}function pT(e,t){"id"in t&&"model"in t&&(e.setAttributes({[ri]:t.id,[_r]:t.model}),"usage"in t&&t.usage&&DE(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}function hT(e,t,n){if(!(!t||typeof t!="object")){if("type"in t&&t.type==="error"){nT(e,t);return}n&&fT(e,t),pT(e,t)}}function ml(e,t,n){throw fe(e,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:n}}}),t.isRecording()&&(t.setStatus({code:Y,message:"internal_error"}),t.end()),e}function mT(e,t,n,r,s,o,i,a,c,u,d){const l=s[Pe]??"unknown",p={name:`${o} ${l}`,op:`gen_ai.${o}`,attributes:s};if(u&&!d){let f;const h=Vt(p,g=>(f=e.apply(n,r),c.recordInputs&&a&&Ta(g,a,$t(c.enableTruncation)),(async()=>{try{const _=await f;return uT(_,g,c.recordOutputs??!1)}catch(_){return ml(_,g,i)}})()));return ko(f,h,"auto.ai.anthropic")}else return Vt(p,f=>{try{c.recordInputs&&a&&Ta(f,a,$t(c.enableTruncation));const h=t.apply(n,r);return lT(h,f,c.recordOutputs??!1)}catch(h){return ml(h,f,i)}})}function gT(e,t,n,r,s){return new Proxy(e,{apply(o,i,a){const c=n.operation||"unknown",u=dT(a,t,c),d=u[Pe]??"unknown",l=typeof a[0]=="object"?a[0]:void 0,p=!!l?.stream,f=n.streaming===!0;if(p||f)return mT(e,o,r,a,u,c,t,l,s,p,f);let h;const g=Ye({name:`${c} ${d}`,op:`gen_ai.${c}`,attributes:u},_=>(h=o.apply(r,a),s.recordInputs&&l&&Ta(_,l,$t(s.enableTruncation)),h.then(y=>(hT(_,y,s.recordOutputs),y),y=>{throw fe(y,{mechanism:{handled:!1,type:"auto.ai.anthropic",data:{function:t}}}),y})));return ko(h,g,"auto.ai.anthropic")}})}function qp(e,t="",n){return new Proxy(e,{get(r,s){const o=r[s],i=wc(t,String(s)),a=ZE[i];return typeof o=="function"&&a?gT(o,i,a,r,n):typeof o=="function"?o.bind(r):o&&typeof o=="object"?qp(o,i,n):o}})}function KM(e,t){return qp(e,"",Sr(t))}const _T={"models.generateContent":{operation:"generate_content"},"models.generateContentStream":{operation:"generate_content",streaming:!0},"models.embedContent":{operation:"embeddings"},"chats.create":{proxyResultPath:"chat"},"chat.sendMessage":{operation:"chat"},"chat.sendMessageStream":{operation:"chat",streaming:!0}},yT="google_genai";function ST(e,t){const n=e?.promptFeedback;if(n?.blockReason){const r=n.blockReasonMessage??n.blockReason;return t.setStatus({code:Y,message:"internal_error"}),fe(`Content blocked: ${r}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}function bT(e,t){typeof e.responseId=="string"&&(t.responseId=e.responseId),typeof e.modelVersion=="string"&&(t.responseModel=e.modelVersion);const n=e.usageMetadata;n&&(typeof n.promptTokenCount=="number"&&(t.promptTokens=n.promptTokenCount),typeof n.candidatesTokenCount=="number"&&(t.completionTokens=n.candidatesTokenCount),typeof n.totalTokenCount=="number"&&(t.totalTokens=n.totalTokenCount))}function ET(e,t,n){Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls);for(const r of e.candidates??[]){r?.finishReason&&!t.finishReasons.includes(r.finishReason)&&t.finishReasons.push(r.finishReason);for(const s of r?.content?.parts??[])n&&s.text&&t.responseTexts.push(s.text),s.functionCall&&t.toolCalls.push({type:"function",id:s.functionCall.id,name:s.functionCall.name,arguments:s.functionCall.args})}}function TT(e,t,n,r){!e||ST(e,r)||(bT(e,t),ET(e,t,n))}async function*vT(e,t,n){const r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(const s of e)TT(s,r,n,t),yield s}finally{ii(t,r,n)}}function Mr(e,t="user"){return typeof e=="string"?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(n=>Mr(n,t)):typeof e!="object"||!e?[]:"role"in e&&typeof e.role=="string"?[e]:"parts"in e?[{...e,role:t}]:[{role:t,content:e}]}function gl(e,t){if("model"in e&&typeof e.model=="string")return e.model;if(t&&typeof t=="object"){const n=t;if("model"in n&&typeof n.model=="string")return n.model;if("modelVersion"in n&&typeof n.modelVersion=="string")return n.modelVersion}return"unknown"}function IT(e){const t={};return"temperature"in e&&typeof e.temperature=="number"&&(t[ei]=e.temperature),"topP"in e&&typeof e.topP=="number"&&(t[ni]=e.topP),"topK"in e&&typeof e.topK=="number"&&(t[Ap]=e.topK),"maxOutputTokens"in e&&typeof e.maxOutputTokens=="number"&&(t[bc]=e.maxOutputTokens),"frequencyPenalty"in e&&typeof e.frequencyPenalty=="number"&&(t[ti]=e.frequencyPenalty),"presencePenalty"in e&&typeof e.presencePenalty=="number"&&(t[Ec]=e.presencePenalty),t}function wT(e,t,n){const r={[fs]:yT,[Ft]:e,[W]:"auto.ai.google_genai"};if(t){if(r[Pe]=gl(t,n),"config"in t&&typeof t.config=="object"&&t.config){const s=t.config;if(Object.assign(r,IT(s)),"tools"in s&&Array.isArray(s.tools)){const o=s.tools.flatMap(i=>i.functionDeclarations);r[si]=JSON.stringify(o)}}}else r[Pe]=gl({},n);return r}function _l(e,t,n,r){if(n){const o=t.contents;o!=null&&e.setAttribute(vc,typeof o=="string"?o:JSON.stringify(o));return}const s=[];if("config"in t&&t.config&&typeof t.config=="object"&&"systemInstruction"in t.config&&t.config.systemInstruction&&s.push(...Mr(t.config.systemInstruction,"system")),"history"in t&&s.push(...Mr(t.history,"user")),"contents"in t&&s.push(...Mr(t.contents,"user")),"message"in t&&s.push(...Mr(t.message,"user")),Array.isArray(s)&&s.length){const{systemInstructions:o,filteredMessages:i}=hs(s);o&&e.setAttribute(ps,o);const a=Array.isArray(i)?i.length:0;e.setAttributes({[kn]:a,[yr]:r?Er(i):br(i)})}}function kT(e,t,n){if(!(!t||typeof t!="object")){if(t.modelVersion&&e.setAttribute(_r,t.modelVersion),t.usageMetadata&&typeof t.usageMetadata=="object"){const r=t.usageMetadata;typeof r.promptTokenCount=="number"&&e.setAttributes({[In]:r.promptTokenCount}),typeof r.candidatesTokenCount=="number"&&e.setAttributes({[wn]:r.candidatesTokenCount}),typeof r.totalTokenCount=="number"&&e.setAttributes({[tn]:r.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){const r=t.candidates.map(s=>s.content?.parts&&Array.isArray(s.content.parts)?s.content.parts.map(o=>typeof o.text=="string"?o.text:"").filter(o=>o.length>0).join(""):"").filter(s=>s.length>0);r.length>0&&e.setAttributes({[yt]:r.join("")})}if(n&&t.functionCalls){const r=t.functionCalls;Array.isArray(r)&&r.length>0&&e.setAttributes({[Xt]:JSON.stringify(r)})}}}function RT(e,t,n,r,s){const o=n.operation==="embeddings";return new Proxy(e,{apply(i,a,c){const u=n.operation||"unknown",d=c[0],l=wT(u,d,r),p=l[Pe]??"unknown";return n.streaming?Vt({name:`${u} ${p}`,op:`gen_ai.${u}`,attributes:l},async f=>{try{s.recordInputs&&d&&_l(f,d,o,$t(s.enableTruncation));const h=await i.apply(r,c);return vT(h,f,!!s.recordOutputs)}catch(h){throw f.setStatus({code:Y,message:"internal_error"}),fe(h,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}}),f.end(),h}}):Ye({name:`${u} ${p}`,op:`gen_ai.${u}`,attributes:l},f=>(s.recordInputs&&d&&_l(f,d,o,$t(s.enableTruncation)),sc(()=>i.apply(r,c),h=>{fe(h,{mechanism:{handled:!1,type:"auto.ai.google_genai",data:{function:t}}})},()=>{},h=>{o||kT(f,h,s.recordOutputs)})))}})}function va(e,t="",n){return new Proxy(e,{get:(r,s,o)=>{const i=Reflect.get(r,s,o),a=wc(t,String(s)),c=_T[a];if(typeof i=="function"&&c){const u=c.operation?RT(i,a,c,r,n):i.bind(r);return c.proxyResultPath?function(...d){const l=u(...d);return l&&typeof l=="object"?va(l,c.proxyResultPath,n):l}:u}return typeof i=="function"?i.bind(r):i&&typeof i=="object"?va(i,a,n):i}})}function XM(e,t){return va(e,"",Sr(t))}const Un="auto.ai.langchain",CT={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"},tt=(e,t,n)=>{n!=null&&(e[t]=n)},ze=(e,t,n)=>{const r=Number(n);Number.isNaN(r)||(e[t]=r)};function Sn(e){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return String(e)}}function On(e){if(Array.isArray(e))try{const t=e.map(n=>n&&typeof n=="object"&&Yn(n)?Lr(n):n);return JSON.stringify(t)}catch{return String(e)}return Sn(e)}function Ar(e){const t=e.toLowerCase();return CT[t]??t}function yl(e){return e.includes("System")?"system":e.includes("Human")?"user":e.includes("AI")||e.includes("Assistant")?"assistant":e.includes("Function")?"function":e.includes("Tool")?"tool":"user"}function Sl(e){if(!(!e||Array.isArray(e)))return e.invocation_params}function kc(e){return e.map(t=>{const n=t._getType;if(typeof n=="function"){const s=n.call(t);return{role:Ar(s),content:On(t.content)}}if(t.lc===1&&t.kwargs){const s=t.id,o=Array.isArray(s)&&s.length>0?s[s.length-1]:"",i=typeof o=="string"?yl(o):"user";return{role:Ar(i),content:On(t.kwargs?.content)}}if(t.type){const s=String(t.type).toLowerCase();return{role:Ar(s),content:On(t.content)}}if(t.role)return{role:Ar(String(t.role)),content:On(t.content)};const r=t.constructor?.name;return r&&r!=="Object"?{role:Ar(yl(r)),content:On(t.content)}:{role:"user",content:On(t.content)}})}function AT(e,t,n){const r={},s="kwargs"in e?e.kwargs:void 0,o=t?.temperature??n?.ls_temperature??s?.temperature;ze(r,ei,o);const i=t?.max_tokens??n?.ls_max_tokens??s?.max_tokens;ze(r,bc,i);const a=t?.top_p??s?.top_p;ze(r,ni,a);const c=t?.frequency_penalty;ze(r,ti,c);const u=t?.presence_penalty;return ze(r,Ec,u),t&&"stream"in t&&tt(r,Sc,!!t.stream),r}function zp(e,t,n,r,s){return{[fs]:Sn(e??"langchain"),[Ft]:"chat",[Pe]:Sn(t),[W]:Un,...AT(n,r,s)}}function xT(e,t,n,r,s,o){const i=o?.ls_provider,a=s?.model??o?.ls_model_name??"unknown",c=zp(i,a,e,s,o);if(n&&Array.isArray(t)&&t.length>0){tt(c,kn,t.length);const u=t.map(d=>({role:"user",content:d}));tt(c,yr,r?Er(u):br(u))}return c}function MT(e,t,n,r,s,o){const i=o?.ls_provider??e.id?.[2],a=s?.model??o?.ls_model_name??"unknown",c=zp(i,a,e,s,o);if(n&&Array.isArray(t)&&t.length>0){const u=kc(t.flat()),{systemInstructions:d,filteredMessages:l}=hs(u);d&&tt(c,ps,d);const p=Array.isArray(l)?l.length:0;tt(c,kn,p),tt(c,yr,r?Er(l):br(l))}return c}function NT(e,t){const n=[],r=e.flat();for(const s of r){const o=s.message?.content;if(Array.isArray(o))for(const i of o){const a=i;a.type==="tool_use"&&n.push(a)}}n.length>0&&tt(t,Xt,Sn(n))}function OT(e,t){if(!e)return;const n=e.tokenUsage,r=e.usage;if(n)ze(t,In,n.promptTokens),ze(t,wn,n.completionTokens),ze(t,tn,n.totalTokens);else if(r){ze(t,In,r.input_tokens),ze(t,wn,r.output_tokens);const s=Number(r.input_tokens),o=Number(r.output_tokens),i=(Number.isNaN(s)?0:s)+(Number.isNaN(o)?0:o);i>0&&ze(t,tn,i),r.cache_creation_input_tokens!==void 0&&ze(t,dE,r.cache_creation_input_tokens),r.cache_read_input_tokens!==void 0&&ze(t,fE,r.cache_read_input_tokens)}}function PT(e,t){if(!e)return;const n={};if(Array.isArray(e.generations)){const u=e.generations.flat().map(d=>d.generationInfo?.finish_reason?d.generationInfo.finish_reason:d.generation_info?.finish_reason?d.generation_info.finish_reason:null).filter(d=>typeof d=="string");if(u.length>0&&tt(n,Vn,Sn(u)),NT(e.generations,n),t){const d=e.generations.flat().map(l=>l.text??l.message?.content).filter(l=>typeof l=="string");d.length>0&&tt(n,yt,Sn(d))}}OT(e.llmOutput,n);const r=e.llmOutput,o=e.generations?.[0]?.[0]?.message,i=r?.model_name??r?.model??o?.response_metadata?.model_name;i&&tt(n,_r,i);const a=r?.id??o?.id;a&&tt(n,ri,a);const c=r?.stop_reason??o?.response_metadata?.finish_reason;return c&&tt(n,cE,Sn(c)),n}function QM(e={}){const{recordInputs:t,recordOutputs:n}=Sr(e),r=$t(e.enableTruncation),s=new Map,o=a=>{const c=s.get(a);c?.isRecording()&&(c.end(),s.delete(a))},i={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(a,c,u,d,l,p,f,h){const g=Sl(p),_=xT(a,c,t,r,g,f),y=_[Pe],b=_[Ft];Vt({name:`${b} ${y}`,op:"gen_ai.chat",attributes:{..._,[ie]:"gen_ai.chat"}},A=>(s.set(u,A),A))},handleChatModelStart(a,c,u,d,l,p,f,h){const g=Sl(p),_=MT(a,c,t,r,g,f),y=_[Pe],b=_[Ft];Vt({name:`${b} ${y}`,op:"gen_ai.chat",attributes:{..._,[ie]:"gen_ai.chat"}},A=>(s.set(u,A),A))},handleLLMEnd(a,c,u,d,l){const p=s.get(c);if(p?.isRecording()){const f=PT(a,n);f&&p.setAttributes(f),o(c)}},handleLLMError(a,c){const u=s.get(c);u?.isRecording()&&(u.setStatus({code:Y,message:"internal_error"}),o(c)),fe(a,{mechanism:{handled:!1,type:`${Un}.llm_error_handler`}})},handleChainStart(a,c,u,d,l,p,f,h){const g=h||a.name||"unknown_chain",_={[W]:"auto.ai.langchain","langchain.chain.name":g};t&&(_["langchain.chain.inputs"]=JSON.stringify(c)),Vt({name:`chain ${g}`,op:"gen_ai.invoke_agent",attributes:{..._,[ie]:"gen_ai.invoke_agent"}},y=>(s.set(u,y),y))},handleChainEnd(a,c){const u=s.get(c);u?.isRecording()&&(n&&u.setAttributes({"langchain.chain.outputs":JSON.stringify(a)}),o(c))},handleChainError(a,c){const u=s.get(c);u?.isRecording()&&(u.setStatus({code:Y,message:"internal_error"}),o(c)),fe(a,{mechanism:{handled:!1,type:`${Un}.chain_error_handler`}})},handleToolStart(a,c,u,d){const l=a.name||"unknown_tool",p={[W]:Un,[hE]:l};t&&(p[mE]=c),Vt({name:`execute_tool ${l}`,op:"gen_ai.execute_tool",attributes:{...p,[ie]:"gen_ai.execute_tool"}},f=>(s.set(u,f),f))},handleToolEnd(a,c){const u=s.get(c);u?.isRecording()&&(n&&u.setAttributes({[gE]:JSON.stringify(a)}),o(c))},handleToolError(a,c){const u=s.get(c);u?.isRecording()&&(u.setStatus({code:Y,message:"internal_error"}),o(c)),fe(a,{mechanism:{handled:!1,type:`${Un}.tool_error_handler`}})},copy(){return i},toJSON(){return{lc:1,type:"not_implemented",id:i.lc_id}},toJSONNotImplemented(){return{lc:1,type:"not_implemented",id:i.lc_id}}};return i}const Gp="auto.ai.langgraph";function LT(e){if(!e||e.length===0)return null;const t=[];for(const n of e)if(n&&typeof n=="object"){const r=n.tool_calls;r&&Array.isArray(r)&&t.push(...r)}return t.length>0?t:null}function DT(e){const t=e;let n=0,r=0,s=0;if(t.usage_metadata&&typeof t.usage_metadata=="object"){const o=t.usage_metadata;return typeof o.input_tokens=="number"&&(n=o.input_tokens),typeof o.output_tokens=="number"&&(r=o.output_tokens),typeof o.total_tokens=="number"&&(s=o.total_tokens),{inputTokens:n,outputTokens:r,totalTokens:s}}if(t.response_metadata&&typeof t.response_metadata=="object"){const o=t.response_metadata;if(o.tokenUsage&&typeof o.tokenUsage=="object"){const i=o.tokenUsage;typeof i.promptTokens=="number"&&(n=i.promptTokens),typeof i.completionTokens=="number"&&(r=i.completionTokens),typeof i.totalTokens=="number"&&(s=i.totalTokens)}}return{inputTokens:n,outputTokens:r,totalTokens:s}}function FT(e,t){const n=t;if(n.response_metadata&&typeof n.response_metadata=="object"){const r=n.response_metadata;r.model_name&&typeof r.model_name=="string"&&e.setAttribute(_r,r.model_name),r.finish_reason&&typeof r.finish_reason=="string"&&e.setAttribute(Vn,[r.finish_reason])}}function $T(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;const t=e.builder?.nodes?.tools?.runnable?.tools;return!t||!Array.isArray(t)||t.length===0?null:t.map(n=>({name:n.lc_kwargs?.name,description:n.lc_kwargs?.description,schema:n.lc_kwargs?.schema}))}function BT(e,t,n){const s=n?.messages;if(!s||!Array.isArray(s))return;const o=t?.length??0,i=s.length>o?s.slice(o):[];if(i.length===0)return;const a=LT(i);a&&e.setAttribute(Xt,JSON.stringify(a));const c=kc(i);e.setAttribute(yt,JSON.stringify(c));let u=0,d=0,l=0;for(const p of i){const f=DT(p);u+=f.inputTokens,d+=f.outputTokens,l+=f.totalTokens,FT(e,p)}u>0&&e.setAttribute(In,u),d>0&&e.setAttribute(wn,d),l>0&&e.setAttribute(tn,l)}function UT(e,t){return new Proxy(e,{apply(n,r,s){return Ye({op:"gen_ai.create_agent",name:"create_agent",attributes:{[W]:Gp,[ie]:"gen_ai.create_agent",[Ft]:"create_agent"}},o=>{try{const i=Reflect.apply(n,r,s),a=s.length>0?s[0]:{};a?.name&&typeof a.name=="string"&&(o.setAttribute(Np,a.name),o.updateName(`create_agent ${a.name}`));const c=i.invoke;return c&&typeof c=="function"&&(i.invoke=HT(c.bind(i),i,a,t)),i}catch(i){throw o.setStatus({code:Y,message:"internal_error"}),fe(i,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),i}})}})}function HT(e,t,n,r){return new Proxy(e,{apply(s,o,i){return Ye({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[W]:Gp,[ie]:pE,[Ft]:"invoke_agent"}},async a=>{try{const c=n?.name;c&&typeof c=="string"&&(a.setAttribute(lE,c),a.setAttribute(Np,c),a.updateName(`invoke_agent ${c}`));const l=(i.length>1?i[1]:void 0)?.configurable?.thread_id;l&&typeof l=="string"&&a.setAttribute(Tc,l);const p=$T(t);p&&a.setAttribute(si,JSON.stringify(p));const f=r.recordInputs,h=r.recordOutputs,g=i.length>0?i[0]?.messages??[]:[];if(g&&f){const y=kc(g),{systemInstructions:b,filteredMessages:A}=hs(y);b&&a.setAttribute(ps,b);const R=$t(r.enableTruncation),U=Array.isArray(A)?A.length:0;a.setAttributes({[yr]:R?Er(A):br(A),[kn]:U})}const _=await Reflect.apply(s,o,i);return h&&BT(a,g??null,_),_}catch(c){throw a.setStatus({code:Y,message:"internal_error"}),fe(c,{mechanism:{handled:!1,type:"auto.ai.langgraph.error"}}),c}})}})}function ZM(e,t){return e.compile=UT(e.compile,Sr(t)),e}function WT(e,t,n){const r=n.getDsn(),s=n.getOptions().tunnel,o=cs(n.getOptions()._metadata),i={sent_at:new Date().toISOString(),...jT(t)&&{trace:t},...o&&{sdk:o},...!!s&&r&&{dsn:It(r)}},a=[{type:"span",item_count:e.length,content_type:"application/vnd.sentry.items.span.v2+json"},{items:e}];return at(i,[a])}function jT(e){return!!e.trace_id&&!!e.public_key}function qT(e){let t=156;if(t+=e.name.length*2,t+=Tu(e.attributes),e.links&&e.links.length>0){const r=e.links[0]?.attributes,s=100+(r?Tu(r):0);t+=s*e.links.length}return t}const bl=1e3,zT=5e6;class GT{constructor(t,n){this._traceBuckets=new Map,this._client=t;const{maxSpanLimit:r,flushInterval:s,maxTraceWeightInBytes:o}=n??{};this._maxSpanLimit=r&&r>0&&r<=bl?r:bl,this._flushInterval=s&&s>0?s:5e3,this._maxTraceWeight=o&&o>0?o:zT,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>{this._traceBuckets.forEach(i=>{clearTimeout(i.timeout)}),this._traceBuckets.clear()})}add(t){const n=t.trace_id;let r=this._traceBuckets.get(n);r||(r={spans:new Set,size:0,timeout:Xo(setTimeout(()=>{this.flush(n)},this._flushInterval))},this._traceBuckets.set(n,r)),r.spans.add(t),r.size+=qT(t),(r.spans.size>=this._maxSpanLimit||r.size>=this._maxTraceWeight)&&this.flush(n)}drain(){this._traceBuckets.size&&(I&&m.log(`Flushing span tree map with ${this._traceBuckets.size} traces`),this._traceBuckets.forEach((t,n)=>{this.flush(n)}))}flush(t){const n=this._traceBuckets.get(t);if(!n)return;if(!n.spans.size){this._removeTrace(t);return}const r=Array.from(n.spans),s=r[0]?._segmentSpan;if(!s){I&&m.warn("No segment span reference found on span JSON, cannot compute DSC"),this._removeTrace(t);return}const o=it(s),i=r.map(c=>{const{_segmentSpan:u,...d}=c;return d}),a=WT(i,o,this._client);I&&m.log(`Sending span envelope for trace ${t} with ${i.length} spans`),this._client.sendEnvelope(a).then(null,c=>{I&&m.error("Error while sending streamed span envelope:",c)}),this._removeTrace(t)}_removeTrace(t){const n=this._traceBuckets.get(t);n&&clearTimeout(n.timeout),this._traceBuckets.delete(t)}}function Vp(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const nr=D;function VT(){return"history"in nr&&!!nr.history}function YT(){if(!("fetch"in nr))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function Ia(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Yp(){if(typeof EdgeRuntime=="string")return!0;if(!YT())return!1;if(Ia(nr.fetch))return!0;let e=!1;const t=nr.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Ia(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){I&&m.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function JT(){return"ReportingObserver"in nr}function Rc(e,t){const n="fetch";rn(n,e),sn(n,()=>Jp(void 0,t))}function KT(e){const t="fetch-body-resolved";rn(t,e),sn(t,()=>Jp(QT))}function Jp(e,t=!1){t&&!Yp()||Oe(D,"fetch",function(n){return function(...r){const s=new Error,{method:o,url:i}=ZT(r),a={args:r,fetchData:{method:o,url:i},startTimestamp:de()*1e3,virtualError:s,headers:ev(r)};return e||rt("fetch",{...a}),n.apply(D,r).then(async c=>(e?e(c):rt("fetch",{...a,endTimestamp:de()*1e3,response:c}),c),c=>{rt("fetch",{...a,endTimestamp:de()*1e3,error:c}),_t(c)&&c.stack===void 0&&(c.stack=s.stack,Le(c,"framesToPop",1));const d=w()?.getOptions().enhanceFetchErrorMessages??"always";if(d!==!1&&c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{const f=new URL(a.fetchData.url).host;d==="always"?c.message=`${c.message} (${f})`:Le(c,"__sentry_fetch_url_host__",f)}catch{}throw c})}})}async function XT(e,t){if(e?.body){const n=e.body,r=n.getReader(),s=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let o=!0;for(;o;){let i;try{i=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(i),a&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(i)}}clearTimeout(s),r.releaseLock(),n.cancel().then(null,()=>{})}}function QT(e){let t;try{t=e.clone()}catch{return}XT(t,()=>{rt("fetch-body-resolved",{endTimestamp:de()*1e3,response:e})})}function Qs(e,t){return!!e&&typeof e=="object"&&!!e[t]}function El(e){return typeof e=="string"?e:e?Qs(e,"url")?e.url:e.toString?e.toString():"":""}function ZT(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:El(n),method:Qs(r,"method")?String(r.method).toUpperCase():Ka(n)&&Qs(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:El(t),method:Qs(t,"method")?String(t.method).toUpperCase():"GET"}}function ev(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(Ka(t))return new Headers(t.headers)}catch{}}function tv(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function nv(){return"npm"}function rv(){return!tv()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function Ro(){return typeof window<"u"&&(!rv()||sv())}function sv(){return D.process?.type==="renderer"}function ov(e){const t=e.constructor?.name??"";return t.includes("OpenAI")?"openai":t.includes("Google")?"google_genai":t.includes("Mistral")?"mistralai":t.includes("Vertex")?"google_vertexai":t.includes("Bedrock")?"aws_bedrock":t.includes("Ollama")?"ollama":t.includes("Cloudflare")?"cloudflare":t.includes("Cohere")?"cohere":"langchain"}function iv(e){const t=e??{},n={[W]:Un,[ie]:Op,[Ft]:"embeddings",[Pe]:t.model??"unknown"};return n[fs]=ov(t),"dimensions"in t&&(n[Mp]=t.dimensions),"encodingFormat"in t&&(n[xp]=t.encodingFormat),n}function Tl(e,t={}){const{recordInputs:n}=Sr(t);return new Proxy(e,{apply(r,s,o){const i=iv(s),a=i[Pe]||"unknown";if(n){const c=o[0];c!=null&&(i[vc]=typeof c=="string"?c:JSON.stringify(c))}return Ye({name:`embeddings ${a}`,op:Op,attributes:i},()=>Reflect.apply(r,s,o).then(void 0,c=>{throw fe(c,{mechanism:{handled:!1,type:"auto.ai.langchain"}}),c}))}})}function eN(e,t){const n=e;return typeof n.embedQuery=="function"&&(n.embedQuery=Tl(n.embedQuery,t)),typeof n.embedDocuments=="function"&&(n.embedDocuments=Tl(n.embedDocuments,t)),e}const lt=D,ce=lt.document,Nr=lt.navigator,Kp="Report a Bug",av="Cancel",cv="Send Bug Report",uv="Confirm",lv="Report a Bug",dv="your.email@example.org",fv="Email",pv="What's the bug? What did you expect?",hv="Description",mv="Your Name",gv="Name",_v="Thank you for your report!",yv="(required)",Sv="Add a screenshot",bv="Remove screenshot",Ev="Highlight",Tv="Hide",vv="Remove",Iv="widget",wv="api",kv=5e3,Rv=(e,t={includeReplay:!0})=>{if(!e.message)throw new Error("Unable to submit feedback with empty message");const n=w();if(!n)throw new Error("No client setup, cannot send feedback.");e.tags&&Object.keys(e.tags).length&&V().setTags(e.tags);const r=jb({source:wv,url:An(),...e},t);return new Promise((s,o)=>{const i=setTimeout(()=>o("Unable to determine if Feedback was correctly sent."),3e4),a=n.on("afterSendEvent",(c,u)=>{if(c.event_id===r)return clearTimeout(i),a(),u?.statusCode&&u.statusCode>=200&&u.statusCode<300?s(r):u?.statusCode===403?o("Unable to send feedback. This could be because this domain is not in your list of allowed domains."):o("Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.")})})},Zs=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Cv(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Nr.userAgent)||/Macintosh/i.test(Nr.userAgent)&&Nr.maxTouchPoints&&Nr.maxTouchPoints>1||!isSecureContext)}function Ms(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{t.onFormOpen?.(),e.onFormOpen?.()},onFormClose:()=>{t.onFormClose?.(),e.onFormClose?.()},onSubmitSuccess:(n,r)=>{t.onSubmitSuccess?.(n,r),e.onSubmitSuccess?.(n,r)},onSubmitError:n=>{t.onSubmitError?.(n),e.onSubmitError?.(n)},onFormSubmitted:()=>{t.onFormSubmitted?.(),e.onFormSubmitted?.()},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function Av(e){const t=ce.createElement("style");return t.textContent=`
19
- .widget__actor {
20
- position: fixed;
21
- z-index: var(--z-index);
22
- margin: var(--page-margin);
23
- inset: var(--actor-inset);
24
-
25
- display: flex;
26
- align-items: center;
27
- gap: 8px;
28
- padding: 16px;
29
-
30
- font-family: inherit;
31
- font-size: var(--font-size);
32
- font-weight: 600;
33
- line-height: 1.14em;
34
- text-decoration: none;
35
-
36
- background: var(--actor-background, var(--background));
37
- border-radius: var(--actor-border-radius, 1.7em/50%);
38
- border: var(--actor-border, var(--border));
39
- box-shadow: var(--actor-box-shadow, var(--box-shadow));
40
- color: var(--actor-color, var(--foreground));
41
- fill: var(--actor-color, var(--foreground));
42
- cursor: pointer;
43
- opacity: 1;
44
- transition: transform 0.2s ease-in-out;
45
- transform: translate(0, 0) scale(1);
46
- }
47
- .widget__actor[aria-hidden="true"] {
48
- opacity: 0;
49
- pointer-events: none;
50
- visibility: hidden;
51
- transform: translate(0, 16px) scale(0.98);
52
- }
53
-
54
- .widget__actor:hover {
55
- background: var(--actor-hover-background, var(--background));
56
- filter: var(--interactive-filter);
57
- }
58
-
59
- .widget__actor svg {
60
- width: 1.14em;
61
- height: 1.14em;
62
- }
63
-
64
- @media (max-width: 600px) {
65
- .widget__actor span {
66
- display: none;
67
- }
68
- }
69
- `,e&&t.setAttribute("nonce",e),t}function Ve(e,t){return Object.entries(t).forEach(([n,r])=>{e.setAttributeNS(null,n,r)}),e}const Pn=20,xv="http://www.w3.org/2000/svg";function Mv(){const e=a=>lt.document.createElementNS(xv,a),t=Ve(e("svg"),{width:`${Pn}`,height:`${Pn}`,viewBox:`0 0 ${Pn} ${Pn}`,fill:"var(--actor-color, var(--foreground))"}),n=Ve(e("g"),{clipPath:"url(#clip0_57_80)"}),r=Ve(e("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(n).appendChild(r);const s=e("defs"),o=Ve(e("clipPath"),{id:"clip0_57_80"}),i=Ve(e("rect"),{width:`${Pn}`,height:`${Pn}`,fill:"white"});return o.appendChild(i),s.appendChild(o),t.appendChild(s).appendChild(o).appendChild(i),t}function Nv({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const s=ce.createElement("button");if(s.type="button",s.className="widget__actor",s.ariaHidden="false",s.ariaLabel=t||e||Kp,s.appendChild(Mv()),e){const i=ce.createElement("span");i.appendChild(ce.createTextNode(e)),s.appendChild(i)}const o=Av(r);return{el:s,appendToDom(){n.appendChild(o),n.appendChild(s)},removeFromDom(){s.remove(),o.remove()},show(){s.ariaHidden="false"},hide(){s.ariaHidden="true"}}}const Xp="rgba(88, 74, 192, 1)",Ov={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:Xp,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%)"},vl={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackground:Xp,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 Il(e){return`
70
- --foreground: ${e.foreground};
71
- --background: ${e.background};
72
- --accent-foreground: ${e.accentForeground};
73
- --accent-background: ${e.accentBackground};
74
- --success-color: ${e.successColor};
75
- --error-color: ${e.errorColor};
76
- --border: ${e.border};
77
- --box-shadow: ${e.boxShadow};
78
- --outline: ${e.outline};
79
- --interactive-filter: ${e.interactiveFilter};
80
- `}function wl({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const s=ce.createElement("style");return s.textContent=`
81
- :host {
82
- --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
83
- --font-size: 14px;
84
- --z-index: 100000;
85
-
86
- --page-margin: 16px;
87
- --inset: auto 0 0 auto;
88
- --actor-inset: var(--inset);
89
-
90
- font-family: var(--font-family);
91
- font-size: var(--font-size);
92
-
93
- ${e!=="system"?`color-scheme: only ${e};`:""}
94
-
95
- ${Il(e==="dark"?{...vl,...t}:{...Ov,...n})}
96
- }
97
-
98
- ${e==="system"?`
99
- @media (prefers-color-scheme: dark) {
100
- :host {
101
- color-scheme: only dark;
102
-
103
- ${Il({...vl,...t})}
104
- }
105
- }`:""}
106
- `,r&&s.setAttribute("nonce",r),s}const Qp=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>(({id:s="sentry-feedback",autoInject:o=!0,showBranding:i=!0,isEmailRequired:a=!1,isNameRequired:c=!1,showEmail:u=!0,showName:d=!0,enableScreenshot:l=!0,useSentryUser:p={email:"email",name:"username"},tags:f,styleNonce:h,scriptNonce:g,colorScheme:_="system",themeLight:y={},themeDark:b={},addScreenshotButtonLabel:A=Sv,cancelButtonLabel:R=av,confirmButtonLabel:U=uv,emailLabel:P=fv,emailPlaceholder:S=dv,formTitle:C=lv,isRequiredLabel:H=yv,messageLabel:E=hv,messagePlaceholder:N=pv,nameLabel:k=gv,namePlaceholder:x=mv,removeScreenshotButtonLabel:L=bv,submitButtonLabel:ee=cv,successMessageText:Q=_v,triggerLabel:re=Kp,triggerAriaLabel:T="",highlightToolText:z=Ev,hideToolText:M=Tv,removeHighlightText:F=vv,onFormOpen:ae,onFormClose:te,onSubmitSuccess:Ee,onSubmitError:je,onFormSubmitted:Xe}={})=>{const xe={id:s,autoInject:o,showBranding:i,isEmailRequired:a,isNameRequired:c,showEmail:u,showName:d,enableScreenshot:l,useSentryUser:p,tags:f,styleNonce:h,scriptNonce:g,colorScheme:_,themeDark:b,themeLight:y,triggerLabel:re,triggerAriaLabel:T,cancelButtonLabel:R,submitButtonLabel:ee,confirmButtonLabel:U,formTitle:C,emailLabel:P,emailPlaceholder:S,messageLabel:E,messagePlaceholder:N,nameLabel:k,namePlaceholder:x,successMessageText:Q,isRequiredLabel:H,addScreenshotButtonLabel:A,removeScreenshotButtonLabel:L,highlightToolText:z,hideToolText:M,removeHighlightText:F,onFormClose:te,onFormOpen:ae,onSubmitError:je,onSubmitSuccess:Ee,onFormSubmitted:Xe};let Re=null,Qe=null,qe=[];const wr=se=>{if(!Re){const ge=ce.createElement("div");ge.id=String(se.id),ce.body.appendChild(ge),Re=ge.attachShadow({mode:"open"}),Qe=wl(se),Re.appendChild(Qe)}return Re},ks=async se=>{const ge=se.enableScreenshot&&Cv();let Ze,Ce;try{Ze=(t?t():await e("feedbackModalIntegration",g))(),ju(Ze)}catch{throw Zs&&m.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const X=ge?n?n():await e("feedbackScreenshotIntegration",g):void 0;X&&(Ce=X(),ju(Ce))}catch{Zs&&m.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const De=Ze.createDialog({options:{...se,onFormClose:()=>{De?.close(),se.onFormClose?.()},onFormSubmitted:()=>{De?.close(),se.onFormSubmitted?.()}},screenshotIntegration:Ce,sendFeedback:Rv,shadow:wr(se)});return De},Rs=(se,ge={})=>{const Ze=Ms(xe,ge),Ce=typeof se=="string"?ce.querySelector(se):typeof se.addEventListener=="function"?se:null;if(!Ce)throw Zs&&m.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let De=null;const X=async()=>{De||(De=await ks({...Ze,onFormSubmitted:()=>{De?.removeFromDom(),Ze.onFormSubmitted?.()}})),De.appendToDom(),De.open()};Ce.addEventListener("click",X);const Fe=()=>{qe=qe.filter(Z=>Z!==Fe),De?.removeFromDom(),De=null,Ce.removeEventListener("click",X)};return qe.push(Fe),Fe},ct=(se={})=>{const ge=Ms(xe,se),Ze=wr(ge),Ce=Nv({triggerLabel:ge.triggerLabel,triggerAriaLabel:ge.triggerAriaLabel,shadow:Ze,styleNonce:h});return Rs(Ce.el,{...ge,onFormOpen(){Ce.hide()},onFormClose(){Ce.show()},onFormSubmitted(){Ce.show()}}),Ce};return{name:"Feedback",setupOnce(){!Ro()||!xe.autoInject||(ce.readyState==="loading"?ce.addEventListener("DOMContentLoaded",()=>ct().appendToDom()):ct().appendToDom())},attachTo:Rs,createWidget(se={}){const ge=ct(Ms(xe,se));return ge.appendToDom(),ge},async createForm(se={}){return ks(Ms(xe,se))},setTheme(se){if(xe.colorScheme=se,Re){const ge=wl(xe);Qe?Re.replaceChild(ge,Qe):Re.prepend(ge),Qe=ge}},remove(){Re&&(Re.parentElement?.remove(),Re=null,Qe=null),qe.forEach(se=>se()),qe=[]}}});function tN(){return w()?.getIntegrationByName("Feedback")}var ai,le,Zp,pn,kl,eh,wa,Yr={},Cc=[],Pv=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ac=Array.isArray;function Yt(e,t){for(var n in t)e[n]=t[n];return e}function th(e){var t=e.parentNode;t&&t.removeChild(e)}function K(e,t,n){var r,s,o,i={};for(o in t)o=="key"?r=t[o]:o=="ref"?s=t[o]:i[o]=t[o];if(arguments.length>2&&(i.children=arguments.length>3?ai.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)i[o]===void 0&&(i[o]=e.defaultProps[o]);return eo(e,i,r,s,null)}function eo(e,t,n,r,s){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:s??++Zp,__i:-1,__u:0};return s==null&&le.vnode!=null&&le.vnode(o),o}function ms(e){return e.children}function to(e,t){this.props=e,this.context=t}function rr(e,t){if(t==null)return e.__?rr(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?rr(e):null}function Lv(e,t,n){var r,s=e.__v,o=s.__e,i=e.__P;if(i)return(r=Yt({},s)).__v=s.__v+1,le.vnode&&le.vnode(r),xc(i,r,s,e.__n,i.ownerSVGElement!==void 0,32&s.__u?[o]:null,t,o??rr(s),!!(32&s.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=o&&nh(r),r}function nh(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return nh(e)}}function Rl(e){(!e.__d&&(e.__d=!0)&&pn.push(e)&&!Co.__r++||kl!==le.debounceRendering)&&((kl=le.debounceRendering)||eh)(Co)}function Co(){var e,t,n,r=[],s=[];for(pn.sort(wa);e=pn.shift();)e.__d&&(n=pn.length,t=Lv(e,r,s)||t,n===0||pn.length>n?(ka(r,t,s),s.length=r.length=0,t=void 0,pn.sort(wa)):t&&le.__c&&le.__c(t,Cc));t&&ka(r,t,s),Co.__r=0}function rh(e,t,n,r,s,o,i,a,c,u,d){var l,p,f,h,g,_=r&&r.__k||Cc,y=t.length;for(n.__d=c,Dv(n,t,_),c=n.__d,l=0;l<y;l++)(f=n.__k[l])!=null&&typeof f!="boolean"&&typeof f!="function"&&(p=f.__i===-1?Yr:_[f.__i]||Yr,f.__i=l,xc(e,f,p,s,o,i,a,c,u,d),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Mc(p.ref,null,f),d.push(f.ref,f.__c||h,f)),g==null&&h!=null&&(g=h),65536&f.__u||p.__k===f.__k?c=sh(f,c,e):typeof f.type=="function"&&f.__d!==void 0?c=f.__d:h&&(c=h.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=c,n.__e=g}function Dv(e,t,n){var r,s,o,i,a,c=t.length,u=n.length,d=u,l=0;for(e.__k=[],r=0;r<c;r++)(s=e.__k[r]=(s=t[r])==null||typeof s=="boolean"||typeof s=="function"?null:typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?eo(null,s,null,null,s):Ac(s)?eo(ms,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?eo(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s)!=null?(s.__=e,s.__b=e.__b+1,a=Fv(s,n,i=r+l,d),s.__i=a,o=null,a!==-1&&(d--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&l--,typeof s.type!="function"&&(s.__u|=65536)):a!==i&&(a===i+1?l++:a>i?d>c-i?l+=a-i:l--:l=a<i&&a==i-1?a-i:0,a!==r+l&&(s.__u|=65536))):(o=n[r])&&o.key==null&&o.__e&&(o.__e==e.__d&&(e.__d=rr(o)),Ra(o,o,!1),n[r]=null,d--);if(d)for(r=0;r<u;r++)(o=n[r])!=null&&(131072&o.__u)==0&&(o.__e==e.__d&&(e.__d=rr(o)),Ra(o,o))}function sh(e,t,n){var r,s;if(typeof e.type=="function"){for(r=e.__k,s=0;r&&s<r.length;s++)r[s]&&(r[s].__=e,t=sh(r[s],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Fv(e,t,n,r){var s=e.key,o=e.type,i=n-1,a=n+1,c=t[n];if(c===null||c&&s==c.key&&o===c.type)return n;if(r>(c!=null&&(131072&c.__u)==0?1:0))for(;i>=0||a<t.length;){if(i>=0){if((c=t[i])&&(131072&c.__u)==0&&s==c.key&&o===c.type)return i;i--}if(a<t.length){if((c=t[a])&&(131072&c.__u)==0&&s==c.key&&o===c.type)return a;a++}}return-1}function Cl(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Pv.test(t)?n:n+"px"}function Ns(e,t,n,r,s){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Cl(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Cl(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,o?xl:Al,o)):e.removeEventListener(t,o?xl:Al,o);else{if(s)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function Al(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(le.event?le.event(e):e)}}function xl(e){if(this.l)return this.l[e.type+!0](le.event?le.event(e):e)}function xc(e,t,n,r,s,o,i,a,c,u){var d,l,p,f,h,g,_,y,b,A,R,U,P,S,C,H=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),o=[a=t.__e=n.__e]),(d=le.__b)&&d(t);e:if(typeof H=="function")try{if(y=t.props,b=(d=H.contextType)&&r[d.__c],A=d?b?b.props.value:d.__:r,n.__c?_=(l=t.__c=n.__c).__=l.__E:("prototype"in H&&H.prototype.render?t.__c=l=new H(y,A):(t.__c=l=new to(y,A),l.constructor=H,l.render=Bv),b&&b.sub(l),l.props=y,l.state||(l.state={}),l.context=A,l.__n=r,p=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),H.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=Yt({},l.__s)),Yt(l.__s,H.getDerivedStateFromProps(y,l.__s))),f=l.props,h=l.state,l.__v=t,p)H.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(H.getDerivedStateFromProps==null&&y!==f&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(y,A),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(y,l.__s,A)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(l.props=y,l.state=l.__s,l.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(E){E&&(E.__=t)}),R=0;R<l._sb.length;R++)l.__h.push(l._sb[R]);l._sb=[],l.__h.length&&i.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(y,l.__s,A),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(f,h,g)})}if(l.context=A,l.props=y,l.__P=e,l.__e=!1,U=le.__r,P=0,"prototype"in H&&H.prototype.render){for(l.state=l.__s,l.__d=!1,U&&U(t),d=l.render(l.props,l.state,l.context),S=0;S<l._sb.length;S++)l.__h.push(l._sb[S]);l._sb=[]}else do l.__d=!1,U&&U(t),d=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++P<25);l.state=l.__s,l.getChildContext!=null&&(r=Yt(Yt({},r),l.getChildContext())),p||l.getSnapshotBeforeUpdate==null||(g=l.getSnapshotBeforeUpdate(f,h)),rh(e,Ac(C=d!=null&&d.type===ms&&d.key==null?d.props.children:d)?C:[C],t,n,r,s,o,i,a,c,u),l.base=t.__e,t.__u&=-161,l.__h.length&&i.push(l),_&&(l.__E=l.__=null)}catch(E){t.__v=null,c||o!=null?(t.__e=a,t.__u|=c?160:32,o[o.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),le.__e(E,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=$v(n.__e,t,n,r,s,o,i,c,u);(d=le.diffed)&&d(t)}function ka(e,t,n){for(var r=0;r<n.length;r++)Mc(n[r],n[++r],n[++r]);le.__c&&le.__c(t,e),e.some(function(s){try{e=s.__h,s.__h=[],e.some(function(o){o.call(s)})}catch(o){le.__e(o,s.__v)}})}function $v(e,t,n,r,s,o,i,a,c){var u,d,l,p,f,h,g,_=n.props,y=t.props,b=t.type;if(b==="svg"&&(s=!0),o!=null){for(u=0;u<o.length;u++)if((f=o[u])&&"setAttribute"in f==!!b&&(b?f.localName===b:f.nodeType===3)){e=f,o[u]=null;break}}if(e==null){if(b===null)return document.createTextNode(y);e=s?document.createElementNS("http://www.w3.org/2000/svg",b):document.createElement(b,y.is&&y),o=null,a=!1}if(b===null)_===y||a&&e.data===y||(e.data=y);else{if(o=o&&ai.call(e.childNodes),_=n.props||Yr,!a&&o!=null)for(_={},u=0;u<e.attributes.length;u++)_[(f=e.attributes[u]).name]=f.value;for(u in _)f=_[u],u=="children"||(u=="dangerouslySetInnerHTML"?l=f:u==="key"||u in y||Ns(e,u,null,f,s));for(u in y)f=y[u],u=="children"?p=f:u=="dangerouslySetInnerHTML"?d=f:u=="value"?h=f:u=="checked"?g=f:u==="key"||a&&typeof f!="function"||_[u]===f||Ns(e,u,f,_[u],s);if(d)a||l&&(d.__html===l.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(l&&(e.innerHTML=""),rh(e,Ac(p)?p:[p],t,n,r,s&&b!=="foreignObject",o,i,o?o[0]:n.__k&&rr(n,0),a,c),o!=null)for(u=o.length;u--;)o[u]!=null&&th(o[u]);a||(u="value",h!==void 0&&(h!==e[u]||b==="progress"&&!h||b==="option"&&h!==_[u])&&Ns(e,u,h,_[u],!1),u="checked",g!==void 0&&g!==e[u]&&Ns(e,u,g,_[u],!1))}return e}function Mc(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){le.__e(r,n)}}function Ra(e,t,n){var r,s;if(le.unmount&&le.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Mc(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){le.__e(o,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&Ra(r[s],t,n||typeof e.type!="function");n||e.__e==null||th(e.__e),e.__=e.__e=e.__d=void 0}function Bv(e,t,n){return this.constructor(e,n)}function Uv(e,t,n){var r,s,o,i;le.__&&le.__(e,t),s=(r=!1)?null:t.__k,o=[],i=[],xc(t,e=t.__k=K(ms,null,[e]),s||Yr,Yr,t.ownerSVGElement!==void 0,s?null:t.firstChild?ai.call(t.childNodes):null,o,s?s.__e:t.firstChild,r,i),e.__d=void 0,ka(o,e,i)}ai=Cc.slice,le={__e:function(e,t,n,r){for(var s,o,i;t=t.__;)if((s=t.__c)&&!s.__)try{if((o=s.constructor)&&o.getDerivedStateFromError!=null&&(s.setState(o.getDerivedStateFromError(e)),i=s.__d),s.componentDidCatch!=null&&(s.componentDidCatch(e,r||{}),i=s.__d),i)return s.__E=s}catch(a){e=a}throw e}},Zp=0,to.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Yt({},this.state),typeof e=="function"&&(e=e(Yt({},n),this.props)),e&&Yt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Rl(this))},to.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Rl(this))},to.prototype.render=ms,pn=[],eh=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,wa=function(e,t){return e.__v.__b-t.__v.__b},Co.__r=0;var Bt,ue,Ui,Ml,sr=0,oh=[],no=[],_e=le,Nl=_e.__b,Ol=_e.__r,Pl=_e.diffed,Ll=_e.__c,Dl=_e.unmount,Fl=_e.__;function Mn(e,t){_e.__h&&_e.__h(ue,e,sr||t),sr=0;var n=ue.__H||(ue.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:no}),n.__[e]}function hn(e){return sr=1,ih(ch,e)}function ih(e,t,n){var r=Mn(Bt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ch(void 0,t),function(a){var c=r.__N?r.__N[0]:r.__[0],u=r.t(c,a);c!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=ue,!ue.u)){var s=function(a,c,u){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!o||o.call(this,a,c,u);var l=!1;return d.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(l=!0)}}),!(!l&&r.__c.props===a)&&(!o||o.call(this,a,c,u))};ue.u=!0;var o=ue.shouldComponentUpdate,i=ue.componentWillUpdate;ue.componentWillUpdate=function(a,c,u){if(this.__e){var d=o;o=void 0,s(a,c,u),o=d}i&&i.call(this,a,c,u)},ue.shouldComponentUpdate=s}return r.__N||r.__}function Hv(e,t){var n=Mn(Bt++,3);!_e.__s&&Nc(n.__H,t)&&(n.__=e,n.i=t,ue.__H.__h.push(n))}function ah(e,t){var n=Mn(Bt++,4);!_e.__s&&Nc(n.__H,t)&&(n.__=e,n.i=t,ue.__h.push(n))}function Wv(e){return sr=5,gs(function(){return{current:e}},[])}function jv(e,t,n){sr=6,ah(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function gs(e,t){var n=Mn(Bt++,7);return Nc(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Jn(e,t){return sr=8,gs(function(){return e},t)}function qv(e){var t=ue.context[e.__c],n=Mn(Bt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(ue)),t.props.value):e.__}function zv(e,t){_e.useDebugValue&&_e.useDebugValue(t?t(e):e)}function Gv(e){var t=Mn(Bt++,10),n=hn();return t.__=e,ue.componentDidCatch||(ue.componentDidCatch=function(r,s){t.__&&t.__(r,s),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Vv(){var e=Mn(Bt++,11);if(!e.__){for(var t=ue.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Yv(){for(var e;e=oh.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ro),e.__H.__h.forEach(Ca),e.__H.__h=[]}catch(t){e.__H.__h=[],_e.__e(t,e.__v)}}_e.__b=function(e){ue=null,Nl&&Nl(e)},_e.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Fl&&Fl(e,t)},_e.__r=function(e){Ol&&Ol(e),Bt=0;var t=(ue=e.__c).__H;t&&(Ui===ue?(t.__h=[],ue.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=no,n.__N=n.i=void 0})):(t.__h.forEach(ro),t.__h.forEach(Ca),t.__h=[],Bt=0)),Ui=ue},_e.diffed=function(e){Pl&&Pl(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(oh.push(t)!==1&&Ml===_e.requestAnimationFrame||((Ml=_e.requestAnimationFrame)||Jv)(Yv)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==no&&(n.__=n.__V),n.i=void 0,n.__V=no})),Ui=ue=null},_e.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ro),n.__h=n.__h.filter(function(r){return!r.__||Ca(r)})}catch(r){t.some(function(s){s.__h&&(s.__h=[])}),t=[],_e.__e(r,n.__v)}}),Ll&&Ll(e,t)},_e.unmount=function(e){Dl&&Dl(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{ro(r)}catch(s){t=s}}),n.__H=void 0,t&&_e.__e(t,n.__v))};var $l=typeof requestAnimationFrame=="function";function Jv(e){var t,n=function(){clearTimeout(r),$l&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);$l&&(t=requestAnimationFrame(n))}function ro(e){var t=ue,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),ue=t}function Ca(e){var t=ue;e.__c=e.__(),ue=t}function Nc(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function ch(e,t){return typeof t=="function"?t(e):t}const Kv=Object.defineProperty({__proto__:null,useCallback:Jn,useContext:qv,useDebugValue:zv,useEffect:Hv,useErrorBoundary:Gv,useId:Vv,useImperativeHandle:jv,useLayoutEffect:ah,useMemo:gs,useReducer:ih,useRef:Wv,useState:hn},Symbol.toStringTag,{value:"Module"}),Xv="http://www.w3.org/2000/svg";function Qv(){const e=r=>ce.createElementNS(Xv,r),t=Ve(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=Ve(e("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"});return t.appendChild(n),t}function Zv({options:e}){const t=gs(()=>({__html:Qv().outerHTML}),[]);return K("h2",{class:"dialog__header"},K("span",{class:"dialog__title"},e.formTitle),e.showBranding?K("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function eI(e,t){const n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}function Hi(e,t){const n=e.get(t);return typeof n=="string"?n.trim():""}function tI({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:s,onSubmitSuccess:o,onSubmitError:i,showEmail:a,showName:c,screenshotInput:u}){const{tags:d,addScreenshotButtonLabel:l,removeScreenshotButtonLabel:p,cancelButtonLabel:f,emailLabel:h,emailPlaceholder:g,isEmailRequired:_,isNameRequired:y,messageLabel:b,messagePlaceholder:A,nameLabel:R,namePlaceholder:U,submitButtonLabel:P,isRequiredLabel:S}=e,[C,H]=hn(!1),[E,N]=hn(null),[k,x]=hn(!1),L=u?.input,[ee,Q]=hn(null),re=Jn(M=>{Q(M),x(!1)},[]),T=Jn(M=>{const F=eI(M,{emailLabel:h,isEmailRequired:_,isNameRequired:y,messageLabel:b,nameLabel:R});return F.length>0?N(`Please enter in the following required fields: ${F.join(", ")}`):N(null),F.length===0},[h,_,y,b,R]),z=Jn(async M=>{H(!0);try{if(M.preventDefault(),!(M.target instanceof HTMLFormElement))return;const F=new FormData(M.target),ae=await(u&&k?u.value():void 0),te={name:Hi(F,"name"),email:Hi(F,"email"),message:Hi(F,"message"),attachments:ae?[ae]:void 0};if(!T(te))return;try{const Ee=await s({name:te.name,email:te.email,message:te.message,source:Iv,tags:d},{attachments:te.attachments});o(te,Ee)}catch(Ee){Zs&&m.error(Ee),N(Ee),i(Ee)}}finally{H(!1)}},[u&&k,o,i]);return K("form",{class:"form",onSubmit:z},L&&k?K(L,{onError:re}):null,K("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:C},K("div",{class:"form__top"},E?K("div",{class:"form__error-container"},E):null,c?K("label",{for:"name",class:"form__label"},K(Wi,{label:R,isRequiredLabel:S,isRequired:y}),K("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:U,required:y,type:"text"})):K("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),a?K("label",{for:"email",class:"form__label"},K(Wi,{label:h,isRequiredLabel:S,isRequired:_}),K("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:g,required:_,type:"email"})):K("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),K("label",{for:"message",class:"form__label"},K(Wi,{label:b,isRequiredLabel:S,isRequired:!0}),K("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:A,required:!0,rows:5})),L?K("label",{for:"screenshot",class:"form__label"},K("button",{class:"btn btn--default",disabled:C,type:"button",onClick:()=>{Q(null),x(M=>!M)}},k?p:l),ee?K("div",{class:"form__error-container"},ee.message):null):null),K("div",{class:"btn-group"},K("button",{class:"btn btn--primary",disabled:C,type:"submit"},P),K("button",{class:"btn btn--default",disabled:C,type:"button",onClick:r},f))))}function Wi({label:e,isRequired:t,isRequiredLabel:n}){return K("span",{class:"form__label__text"},e,t&&K("span",{class:"form__label__text--required"},n))}const Os=16,Bl=17,nI="http://www.w3.org/2000/svg";function rI(){const e=c=>lt.document.createElementNS(nI,c),t=Ve(e("svg"),{width:`${Os}`,height:`${Bl}`,viewBox:`0 0 ${Os} ${Bl}`,fill:"inherit"}),n=Ve(e("g"),{clipPath:"url(#clip0_57_156)"}),r=Ve(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),s=Ve(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173 10.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(s,r);const o=e("defs"),i=Ve(e("clipPath"),{id:"clip0_57_156"}),a=Ve(e("rect"),{width:`${Os}`,height:`${Os}`,fill:"white",transform:"translate(0 0.5)"});return i.appendChild(a),o.appendChild(i),t.appendChild(o).appendChild(i).appendChild(a),t}function sI({open:e,onFormSubmitted:t,...n}){const r=n.options,s=gs(()=>({__html:rI().outerHTML}),[]),[o,i]=hn(null),a=Jn(()=>{o&&(clearTimeout(o),i(null)),t()},[o]),c=Jn((u,d)=>{n.onSubmitSuccess(u,d),i(setTimeout(()=>{t(),i(null)},kv))},[t]);return K(ms,null,o?K("div",{class:"success__position",onClick:a},K("div",{class:"success__content"},r.successMessageText,K("span",{class:"success__icon",dangerouslySetInnerHTML:s}))):K("dialog",{class:"dialog",onClick:r.onFormClose,open:e},K("div",{class:"dialog__position"},K("div",{class:"dialog__content",onClick:u=>{u.stopPropagation()}},K(Zv,{options:r}),K(tI,{...n,onSubmitSuccess:c})))))}const oI=`
107
- .dialog {
108
- position: fixed;
109
- z-index: var(--z-index);
110
- margin: 0;
111
- inset: 0;
112
-
113
- display: flex;
114
- align-items: center;
115
- justify-content: center;
116
- padding: 0;
117
- height: 100vh;
118
- width: 100vw;
119
-
120
- color: var(--dialog-color, var(--foreground));
121
- fill: var(--dialog-color, var(--foreground));
122
- line-height: 1.75em;
123
-
124
- background-color: rgba(0, 0, 0, 0.05);
125
- border: none;
126
- inset: 0;
127
- opacity: 1;
128
- transition: opacity 0.2s ease-in-out;
129
- }
130
-
131
- .dialog__position {
132
- position: fixed;
133
- z-index: var(--z-index);
134
- inset: var(--dialog-inset);
135
- padding: var(--page-margin);
136
- display: flex;
137
- max-height: calc(100vh - (2 * var(--page-margin)));
138
- }
139
- @media (max-width: 600px) {
140
- .dialog__position {
141
- inset: var(--page-margin);
142
- padding: 0;
143
- }
144
- }
145
-
146
- .dialog__position:has(.editor) {
147
- inset: var(--page-margin);
148
- padding: 0;
149
- }
150
-
151
- .dialog:not([open]) {
152
- opacity: 0;
153
- pointer-events: none;
154
- visibility: hidden;
155
- }
156
- .dialog:not([open]) .dialog__content {
157
- transform: translate(0, -16px) scale(0.98);
158
- }
159
-
160
- .dialog__content {
161
- display: flex;
162
- flex-direction: column;
163
- gap: 16px;
164
- padding: var(--dialog-padding, 24px);
165
- max-width: 100%;
166
- width: 100%;
167
- max-height: 100%;
168
- overflow: auto;
169
-
170
- background: var(--dialog-background, var(--background));
171
- border-radius: var(--dialog-border-radius, 20px);
172
- border: var(--dialog-border, var(--border));
173
- box-shadow: var(--dialog-box-shadow, var(--box-shadow));
174
- transform: translate(0, 0) scale(1);
175
- transition: transform 0.2s ease-in-out;
176
- }
177
-
178
- `,iI=`
179
- .dialog__header {
180
- display: flex;
181
- gap: 4px;
182
- justify-content: space-between;
183
- font-weight: var(--dialog-header-weight, 600);
184
- margin: 0;
185
- }
186
- .dialog__title {
187
- align-self: center;
188
- width: var(--form-width, 272px);
189
- }
190
-
191
- @media (max-width: 600px) {
192
- .dialog__title {
193
- width: auto;
194
- }
195
- }
196
-
197
- .dialog__position:has(.editor) .dialog__title {
198
- width: auto;
199
- }
200
-
201
-
202
- .brand-link {
203
- display: inline-flex;
204
- }
205
- .brand-link:focus-visible {
206
- outline: var(--outline);
207
- }
208
- `,aI=`
209
- .form {
210
- display: flex;
211
- overflow: auto;
212
- flex-direction: row;
213
- gap: 16px;
214
- flex: 1 0;
215
- }
216
-
217
- .form fieldset {
218
- border: none;
219
- margin: 0;
220
- padding: 0;
221
- }
222
-
223
- .form__right {
224
- flex: 0 0 auto;
225
- display: flex;
226
- overflow: auto;
227
- flex-direction: column;
228
- justify-content: space-between;
229
- gap: 20px;
230
- width: var(--form-width, 100%);
231
- }
232
-
233
- .dialog__position:has(.editor) .form__right {
234
- width: var(--form-width, 272px);
235
- }
236
-
237
- .form__top {
238
- display: flex;
239
- flex-direction: column;
240
- gap: 8px;
241
- }
242
-
243
- .form__error-container {
244
- color: var(--error-color);
245
- fill: var(--error-color);
246
- }
247
-
248
- .form__label {
249
- display: flex;
250
- flex-direction: column;
251
- gap: 4px;
252
- margin: 0px;
253
- }
254
-
255
- .form__label__text {
256
- display: flex;
257
- gap: 4px;
258
- align-items: center;
259
- }
260
-
261
- .form__label__text--required {
262
- font-size: 0.85em;
263
- }
264
-
265
- .form__input {
266
- font-family: inherit;
267
- line-height: inherit;
268
- background: transparent;
269
- box-sizing: border-box;
270
- border: var(--input-border, var(--border));
271
- border-radius: var(--input-border-radius, 6px);
272
- color: var(--input-color, inherit);
273
- fill: var(--input-color, inherit);
274
- font-size: var(--input-font-size, inherit);
275
- font-weight: var(--input-font-weight, 500);
276
- padding: 6px 12px;
277
- }
278
-
279
- .form__input::placeholder {
280
- opacity: 0.65;
281
- color: var(--input-placeholder-color, inherit);
282
- filter: var(--interactive-filter);
283
- }
284
-
285
- .form__input:focus-visible {
286
- outline: var(--input-focus-outline, var(--outline));
287
- }
288
-
289
- .form__input--textarea {
290
- font-family: inherit;
291
- resize: vertical;
292
- }
293
-
294
- .error {
295
- color: var(--error-color);
296
- fill: var(--error-color);
297
- }
298
- `,cI=`
299
- .btn-group {
300
- display: grid;
301
- gap: 8px;
302
- }
303
-
304
- .btn {
305
- line-height: inherit;
306
- border: var(--button-border, var(--border));
307
- border-radius: var(--button-border-radius, 6px);
308
- cursor: pointer;
309
- font-family: inherit;
310
- font-size: var(--button-font-size, inherit);
311
- font-weight: var(--button-font-weight, 600);
312
- padding: var(--button-padding, 6px 16px);
313
- }
314
- .btn[disabled] {
315
- opacity: 0.6;
316
- pointer-events: none;
317
- }
318
-
319
- .btn--primary {
320
- color: var(--button-primary-color, var(--accent-foreground));
321
- fill: var(--button-primary-color, var(--accent-foreground));
322
- background: var(--button-primary-background, var(--accent-background));
323
- border: var(--button-primary-border, var(--border));
324
- border-radius: var(--button-primary-border-radius, 6px);
325
- font-weight: var(--button-primary-font-weight, 500);
326
- }
327
- .btn--primary:hover {
328
- color: var(--button-primary-hover-color, var(--accent-foreground));
329
- fill: var(--button-primary-hover-color, var(--accent-foreground));
330
- background: var(--button-primary-hover-background, var(--accent-background));
331
- filter: var(--interactive-filter);
332
- }
333
- .btn--primary:focus-visible {
334
- background: var(--button-primary-hover-background, var(--accent-background));
335
- filter: var(--interactive-filter);
336
- outline: var(--button-primary-focus-outline, var(--outline));
337
- }
338
-
339
- .btn--default {
340
- color: var(--button-color, var(--foreground));
341
- fill: var(--button-color, var(--foreground));
342
- background: var(--button-background, var(--background));
343
- border: var(--button-border, var(--border));
344
- border-radius: var(--button-border-radius, 6px);
345
- font-weight: var(--button-font-weight, 500);
346
- }
347
- .btn--default:hover {
348
- color: var(--button-color, var(--foreground));
349
- fill: var(--button-color, var(--foreground));
350
- background: var(--button-hover-background, var(--background));
351
- filter: var(--interactive-filter);
352
- }
353
- .btn--default:focus-visible {
354
- background: var(--button-hover-background, var(--background));
355
- filter: var(--interactive-filter);
356
- outline: var(--button-focus-outline, var(--outline));
357
- }
358
- `,uI=`
359
- .success__position {
360
- position: fixed;
361
- inset: var(--dialog-inset);
362
- padding: var(--page-margin);
363
- z-index: var(--z-index);
364
- }
365
- .success__content {
366
- background: var(--success-background, var(--background));
367
- border: var(--success-border, var(--border));
368
- border-radius: var(--success-border-radius, 1.7em/50%);
369
- box-shadow: var(--success-box-shadow, var(--box-shadow));
370
- font-weight: var(--success-font-weight, 600);
371
- color: var(--success-color);
372
- fill: var(--success-color);
373
- padding: 12px 24px;
374
- line-height: 1.75em;
375
-
376
- display: grid;
377
- align-items: center;
378
- grid-auto-flow: column;
379
- gap: 6px;
380
- cursor: default;
381
- }
382
-
383
- .success__icon {
384
- display: flex;
385
- }
386
- `;function lI(e){const t=ce.createElement("style");return t.textContent=`
387
- :host {
388
- --dialog-inset: var(--inset);
389
- }
390
-
391
- ${oI}
392
- ${iI}
393
- ${aI}
394
- ${cI}
395
- ${uI}
396
- `,e&&t.setAttribute("nonce",e),t}function dI(){const e=V().getUser(),t=be().getUser(),n=Pr().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}const fI=(()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{const s=r,o=e.useSentryUser,i=dI(),a=ce.createElement("div"),c=lI(e.styleNonce);let u="";const d={get el(){return a},appendToDom(){!s.contains(c)&&!s.contains(a)&&(s.appendChild(c),s.appendChild(a))},removeFromDom(){a.remove(),c.remove(),ce.body.style.overflow=u},open(){p(!0),e.onFormOpen?.(),w()?.emit("openFeedbackWidget"),u=ce.body.style.overflow,ce.body.style.overflow="hidden"},close(){p(!1),ce.body.style.overflow=u}},l=t?.createInput({h:K,hooks:Kv,dialog:d,options:e}),p=f=>{Uv(K(sI,{options:e,screenshotInput:l,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(o&&i?.[o.name]||""),defaultEmail:String(o&&i?.[o.email]||""),onFormClose:()=>{p(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(h,g)=>{p(!1),e.onSubmitSuccess?.(h,g)},onSubmitError:h=>{e.onSubmitError?.(h)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:f}),a)};return d}}));function pI({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}function hI(e){const t=ce.createElement("style"),n="#1A141F",r="#302735";return t.textContent=`
397
- .editor {
398
- display: flex;
399
- flex-grow: 1;
400
- flex-direction: column;
401
- }
402
-
403
- .editor__image-container {
404
- justify-items: center;
405
- padding: 15px;
406
- position: relative;
407
- height: 100%;
408
- border-radius: var(--menu-border-radius, 6px);
409
-
410
- background-color: ${n};
411
- background-image: repeating-linear-gradient(
412
- -145deg,
413
- transparent,
414
- transparent 8px,
415
- ${n} 8px,
416
- ${n} 11px
417
- ),
418
- repeating-linear-gradient(
419
- -45deg,
420
- transparent,
421
- transparent 15px,
422
- ${r} 15px,
423
- ${r} 16px
424
- );
425
- }
426
-
427
- .editor__canvas-container {
428
- width: 100%;
429
- height: 100%;
430
- position: relative;
431
- display: flex;
432
- align-items: center;
433
- justify-content: center;
434
- }
435
-
436
- .editor__canvas-container > * {
437
- object-fit: contain;
438
- position: absolute;
439
- }
440
-
441
- .editor__tool-container {
442
- padding-top: 8px;
443
- display: flex;
444
- justify-content: center;
445
- }
446
-
447
- .editor__tool-bar {
448
- display: flex;
449
- gap: 8px;
450
- }
451
-
452
- .editor__tool {
453
- display: flex;
454
- padding: 8px 12px;
455
- justify-content: center;
456
- align-items: center;
457
- border: var(--button-border, var(--border));
458
- border-radius: var(--button-border-radius, 6px);
459
- background: var(--button-background, var(--background));
460
- color: var(--button-color, var(--foreground));
461
- }
462
-
463
- .editor__tool--active {
464
- background: var(--button-primary-background, var(--accent-background));
465
- color: var(--button-primary-color, var(--accent-foreground));
466
- }
467
-
468
- .editor__rect {
469
- position: absolute;
470
- z-index: 2;
471
- }
472
-
473
- .editor__rect button {
474
- opacity: 0;
475
- position: absolute;
476
- top: -12px;
477
- right: -12px;
478
- cursor: pointer;
479
- padding: 0;
480
- z-index: 3;
481
- border: none;
482
- background: none;
483
- }
484
-
485
- .editor__rect:hover button {
486
- opacity: 1;
487
- }
488
- `,e&&t.setAttribute("nonce",e),t}function mI({h:e}){return function({action:n,setAction:r,options:s}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${n==="highlight"?"editor__tool--active":""}`,onClick:()=>{r(n==="highlight"?"":"highlight")}},s.highlightToolText),e("button",{type:"button",class:`editor__tool ${n==="hide"?"editor__tool--active":""}`,onClick:()=>{r(n==="hide"?"":"hide")}},s.hideToolText)))}}function gI({hooks:e}){function t(){const[n,r]=e.useState(lt.devicePixelRatio??1);return e.useEffect(()=>{const s=()=>{r(lt.devicePixelRatio)},o=matchMedia(`(resolution: ${lt.devicePixelRatio}dppx)`);return o.addEventListener("change",s),()=>{o.removeEventListener("change",s)}},[]),n}return function({onBeforeScreenshot:r,onScreenshot:s,onAfterScreenshot:o,onError:i}){const a=t();e.useEffect(()=>{(async()=>{r();const u=await Nr.mediaDevices.getDisplayMedia({video:{width:lt.innerWidth*a,height:lt.innerHeight*a},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),d=ce.createElement("video");await new Promise((l,p)=>{d.srcObject=u,d.onloadedmetadata=()=>{s(d,a),u.getTracks().forEach(f=>f.stop()),l()},d.play().catch(p)}),o()})().catch(i)},[])}}function _I(e,t,n){switch(e.type){case"highlight":{t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break}case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h);break}}function qt(e,t,n){if(!e)return;const r=e.getContext("2d",t);r&&n(e,r)}function ji(e,t){qt(e,{alpha:!0},(n,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,n.width,n.height)})}function qi(e,t,n){qt(e,{alpha:!0},(r,s)=>{n.length&&(s.fillStyle="rgba(0, 0, 0, 0.25)",s.fillRect(0,0,r.width,r.height)),n.forEach(o=>{_I(o,s,t)})})}function yI({h:e,hooks:t,outputBuffer:n,dialog:r,options:s}){const o=gI({hooks:t}),i=mI({h:e}),a=pI({h:e}),c={__html:hI(s.styleNonce).innerText},u=r.el.style,d=({screenshot:l})=>{const[p,f]=t.useState("highlight"),[h,g]=t.useState([]),_=t.useRef(null),y=t.useRef(null),b=t.useRef(null),A=t.useRef(null),[R,U]=t.useState(1),P=t.useMemo(()=>{const k=ce.getElementById(s.id);if(!k)return"white";const x=getComputedStyle(k);return x.getPropertyValue("--button-primary-background")||x.getPropertyValue("--accent-background")},[s.id]);t.useLayoutEffect(()=>{const k=()=>{const x=_.current;x&&(qt(l.canvas,{alpha:!1},L=>{const ee=Math.min(x.clientWidth/L.width,x.clientHeight/L.height);U(ee)}),(x.clientHeight===0||x.clientWidth===0)&&setTimeout(k,0))};return k(),lt.addEventListener("resize",k),()=>{lt.removeEventListener("resize",k)}},[l]);const S=t.useCallback((k,x)=>{qt(k,{alpha:!0},(L,ee)=>{ee.scale(x,x),L.width=l.canvas.width,L.height=l.canvas.height})},[l]);t.useEffect(()=>{S(y.current,l.dpi),ji(y.current,l.canvas)},[l]),t.useEffect(()=>{S(b.current,l.dpi),qt(b.current,{alpha:!0},(k,x)=>{x.clearRect(0,0,k.width,k.height)}),qi(b.current,P,h)},[h,P]),t.useEffect(()=>{S(n,l.dpi),ji(n,l.canvas),qt(ce.createElement("canvas"),{alpha:!0},(k,x)=>{x.scale(l.dpi,l.dpi),k.width=l.canvas.width,k.height=l.canvas.height,qi(k,P,h),ji(n,k)})},[h,l,P]);const C=k=>{if(!p||!A.current)return;const x=A.current.getBoundingClientRect(),L={type:p,x:k.offsetX/R,y:k.offsetY/R},ee=(T,z)=>{const M=(z.clientX-x.x)/R,F=(z.clientY-x.y)/R;return{type:T.type,x:Math.min(T.x,M),y:Math.min(T.y,F),w:Math.abs(M-T.x),h:Math.abs(F-T.y)}},Q=T=>{qt(b.current,{alpha:!0},(z,M)=>{M.clearRect(0,0,z.width,z.height)}),qi(b.current,P,[...h,ee(L,T)])},re=T=>{const z=ee(L,T);z.w*R>=1&&z.h*R>=1&&g(M=>[...M,z]),ce.removeEventListener("mousemove",Q),ce.removeEventListener("mouseup",re)};ce.addEventListener("mousemove",Q),ce.addEventListener("mouseup",re)},H=t.useCallback(k=>x=>{x.preventDefault(),x.stopPropagation(),g(L=>{const ee=[...L];return ee.splice(k,1),ee})},[]),E={width:`${l.canvas.width*R}px`,height:`${l.canvas.height*R}px`},N=k=>{k.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:s.styleNonce,dangerouslySetInnerHTML:c}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:_},e("canvas",{ref:y,id:"background",style:E}),e("canvas",{ref:b,id:"foreground",style:E}),e("div",{ref:A,onMouseDown:C,style:E},h.map((k,x)=>e("div",{key:x,class:"editor__rect",style:{top:`${k.y*R}px`,left:`${k.x*R}px`,width:`${k.w*R}px`,height:`${k.h*R}px`}},e("button",{"aria-label":s.removeHighlightText,onClick:H(x),onMouseDown:N,onMouseUp:N,type:"button"},e(a,null))))))),e(i,{options:s,action:p,setAction:f}))};return function({onError:p}){const[f,h]=t.useState();return o({onBeforeScreenshot:t.useCallback(()=>{u.display="none"},[]),onScreenshot:t.useCallback((g,_)=>{qt(ce.createElement("canvas"),{alpha:!1},(y,b)=>{b.scale(_,_),y.width=g.videoWidth,y.height=g.videoHeight,b.drawImage(g,0,0,y.width,y.height),h({canvas:y,dpi:_})}),n.width=g.videoWidth,n.height=g.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{u.display="block"},[]),onError:t.useCallback(g=>{u.display="block",p(g)},[])}),f?e(d,{screenshot:f}):e("div",null)}}const SI=(()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const s=ce.createElement("canvas");return{input:yI({h:e,hooks:t,outputBuffer:s,dialog:n,options:r}),value:async()=>{const o=await new Promise(i=>{s.toBlob(i,"image/png")});if(o)return{data:new Uint8Array(await o.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}})),O=D;let Aa=0;function uh(){return Aa>0}function bI(){Aa++,setTimeout(()=>{Aa--})}function or(e,t={}){function n(s){return typeof s=="function"}if(!n(e))return e;try{const s=e.__sentry_wrapped__;if(s)return typeof s=="function"?s:e;if(Za(e))return e}catch{return e}const r=function(...s){try{const o=s.map(i=>or(i,t));return e.apply(this,o)}catch(o){throw bI(),Ke(i=>{i.addEventProcessor(a=>(t.mechanism&&(la(a,void 0),Pt(a,t.mechanism)),a.extra={...a.extra,arguments:s},a)),fe(o)}),o}};try{for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(r[s]=e[s])}catch{}uf(r,e),Le(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Oc(){const e=An(),{referrer:t}=O.document||{},{userAgent:n}=O.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}const EI=["replayIntegration","replayCanvasIntegration","feedbackIntegration","feedbackModalIntegration","feedbackScreenshotIntegration","captureConsoleIntegration","contextLinesIntegration","linkedErrorsIntegration","dedupeIntegration","extraErrorDataIntegration","graphqlClientIntegration","httpClientIntegration","reportingObserverIntegration","rewriteFramesIntegration","browserProfilingIntegration","moduleMetadataIntegration","instrumentAnthropicAiClient","instrumentOpenAiClient","instrumentGoogleGenAIClient","instrumentLangGraph","createLangChainCallbackHandler","instrumentLangChainEmbeddings"],TI={replayCanvasIntegration:"replay-canvas",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot"};function vI(e){return TI[e]||e.replace("Integration","").toLowerCase()}const Ul=O;async function II(e,t){const n=EI.includes(e)?vI(e):void 0,r=Ul.Sentry=Ul.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);const s=r[e];if(typeof s=="function"&&!("_isShim"in s))return s;const o=wI(n),i=O.document.createElement("script");i.src=o,i.crossOrigin="anonymous",i.referrerPolicy="strict-origin",t&&i.setAttribute("nonce",t);const a=new Promise((l,p)=>{i.addEventListener("load",()=>l()),i.addEventListener("error",p)}),c=O.document.currentScript,u=O.document.body||O.document.head||c?.parentElement;if(u)u.appendChild(i);else throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await a}catch{throw new Error(`Error when loading integration: ${e}`)}const d=r[e];if(typeof d!="function")throw new Error(`Could not load integration: ${e}`);return d}function wI(e){const n=w()?.getOptions()?.cdnBaseUrl||"https://browser.sentry-cdn.com";return new URL(`/${Jt}/${e}.min.js`,n).toString()}const nN=Qp({lazyLoadIntegration:II}),rN=Qp({getModalIntegration:()=>fI,getScreenshotIntegration:()=>SI});function Pc(e,t){const n=Lc(e,t),r={type:xI(t),value:MI(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function kI(e,t,n,r){const o=w()?.getOptions().normalizeDepth,i=DI(t),a={__serialized__:Hf(t,o)};if(i)return{exception:{values:[Pc(e,i)]},extra:a};const c={exception:{values:[{type:Go(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:PI(t,{isUnhandledRejection:r})}]},extra:a};if(n){const u=Lc(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function zi(e,t){return{exception:{values:[Pc(e,t)]}}}function Lc(e,t){const n=t.stacktrace||t.stack||"",r=CI(t),s=AI(t);try{return e(n,r,s)}catch{}return[]}const RI=/Minified React error #\d+;/i;function CI(e){return e&&RI.test(e.message)?1:0}function AI(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function lh(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function xI(e){const t=e?.name;return!t&&lh(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function MI(e){const t=e?.message;return lh(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?Xu(t.error):Xu(e):"No error message"}function NI(e,t,n,r){const s=n?.syntheticException||void 0,o=ci(e,t,s,r);return Pt(o),o.level="error",n?.event_id&&(o.event_id=n.event_id),ls(o)}function OI(e,t,n="info",r,s){const o=r?.syntheticException||void 0,i=xa(e,t,o,s);return i.level=n,r?.event_id&&(i.event_id=r.event_id),ls(i)}function ci(e,t,n,r,s){let o;if(af(t)&&t.error)return zi(e,t.error);if(mu(t)||dg(t)){const i=t;if("stack"in t)o=zi(e,t);else{const a=i.name||(mu(i)?"DOMError":"DOMException"),c=i.message?`${a}: ${i.message}`:a;o=xa(e,c,n,r),la(o,c)}return"code"in i&&(o.tags={...o.tags,"DOMException.code":`${i.code}`}),o}return _t(t)?zi(e,t):We(t)||Go(t)?(o=kI(e,t,n,s),Pt(o,{synthetic:!0}),o):(o=xa(e,t,n,r),la(o,`${t}`),Pt(o,{synthetic:!0}),o)}function xa(e,t,n,r){const s={};if(r&&n){const o=Lc(e,n);o.length&&(s.exception={values:[{value:t,stacktrace:{frames:o}}]}),Pt(s,{synthetic:!0})}if(zo(t)){const{__sentry_template_string__:o,__sentry_template_values__:i}=t;return s.logentry={message:o,params:i},s}return s.message=t,s}function PI(e,{isUnhandledRejection:t}){const n=_g(e),r=t?"promise rejection":"exception";return af(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Go(e)?`Event \`${LI(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function LI(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function DI(e){return Object.values(e).find(t=>t instanceof Error)}class FI extends Zy{constructor(t){const n=$I(t),r=O.SENTRY_SDK_SOURCE||nv();_p(n,"browser",["browser"],r),n._metadata?.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);const{sendDefaultPii:s,sendClientReports:o,enableLogs:i,_experiments:a,enableMetrics:c}=this._options,u=c??a?.enableMetrics??!0;O.document&&(o||i||u)&&O.document.addEventListener("visibilitychange",()=>{O.document.visibilityState==="hidden"&&(o&&this._flushOutcomes(),i&&Eo(this),u&&dc(this))}),s&&this.on("beforeSendSession",_S)}eventFromException(t,n){return NI(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return OI(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,s){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,s)}}function $I(e){return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:O.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const ht=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,G=D,BI=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",_s=(e,t,n,r)=>{let s,o;return i=>{t.value>=0&&(i||r)&&(o=t.value-(s??0),(o||s===void 0)&&(s=t.value,t.delta=o,t.rating=BI(t.value,n),e(t)))}},ys=(e=!0)=>{const t=G.performance?.getEntriesByType?.("navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},Tr=()=>ys()?.activationStart??0;function Qt(e,t,n){G.document&&G.addEventListener(e,t,n)}function Ao(e,t,n){G.document&&G.removeEventListener(e,t,n)}let Kn=-1;const dh=new Set,UI=()=>G.document?.visibilityState==="hidden"&&!G.document?.prerendering?0:1/0,so=e=>{if(HI(e)&&Kn>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of dh)t();isFinite(Kn)||(Kn=e.type==="visibilitychange"?e.timeStamp:0,Ao("prerenderingchange",so,!0))}},Ss=()=>{if(G.document&&Kn<0){const e=Tr();Kn=(G.document.prerendering?void 0:globalThis.performance.getEntriesByType("visibility-state").filter(n=>n.name==="hidden"&&n.startTime>e)[0]?.startTime)??UI(),Qt("visibilitychange",so,!0),Qt("pagehide",so,!0),Qt("prerenderingchange",so,!0)}return{get firstHiddenTime(){return Kn},onHidden(e){dh.add(e)}}};function HI(e){return e.type==="pagehide"||G.document?.visibilityState==="hidden"}const WI=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,bs=(e,t=-1)=>{const n=ys();let r="navigate";return n&&(G.document?.prerendering||Tr()>0?r="prerender":G.document?.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:WI(),navigationType:r}},Gi=new WeakMap;function Dc(e,t){try{return Gi.get(e)||Gi.set(e,new t),Gi.get(e)}catch{return new t}}class xo{constructor(){xo.prototype.__init.call(this),xo.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(t){if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),this._onAfterProcessingUnexpectedShift?.(t)}}const vr=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(s=>{Promise.resolve().then(()=>{t(s.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},Fc=e=>{let t=!1;return()=>{t||(e(),t=!0)}},ui=e=>{G.document?.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},jI=[1800,3e3],qI=(e,t={})=>{ui(()=>{const n=Ss(),r=bs("FCP");let s;const i=vr("paint",a=>{for(const c of a)c.name==="first-contentful-paint"&&(i.disconnect(),c.startTime<n.firstHiddenTime&&(r.value=Math.max(c.startTime-Tr(),0),r.entries.push(c),s(!0)))});i&&(s=_s(e,r,jI,t.reportAllChanges))})},zI=[.1,.25],GI=(e,t={})=>{qI(Fc(()=>{const n=bs("CLS",0);let r;const s=Ss(),o=Dc(t,xo),i=c=>{for(const u of c)o._processEntry(u);o._sessionValue>n.value&&(n.value=o._sessionValue,n.entries=o._sessionEntries,r())},a=vr("layout-shift",i);a&&(r=_s(e,n,zI,t.reportAllChanges),s.onHidden(()=>{i(a.takeRecords()),r(!0)}),G?.setTimeout?.(r))}))};let fh=0,Vi=1/0,Ps=0;const VI=e=>{e.forEach(t=>{t.interactionId&&(Vi=Math.min(Vi,t.interactionId),Ps=Math.max(Ps,t.interactionId),fh=Ps?(Ps-Vi)/7+1:0)})};let Ma;const ph=()=>Ma?fh:performance.interactionCount||0,YI=()=>{"interactionCount"in performance||Ma||(Ma=vr("event",VI,{type:"event",buffered:!0,durationThreshold:0}))},Yi=10;let hh=0;const JI=()=>ph()-hh;class Mo{constructor(){Mo.prototype.__init.call(this),Mo.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){hh=ph(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(JI()/50));return this._longestInteractionList[t]}_processEntry(t){if(this._onBeforeProcessingEntry?.(t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<Yi||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((s,o)=>o._latency-s._latency),this._longestInteractionList.length>Yi){const s=this._longestInteractionList.splice(Yi);for(const o of s)this._longestInteractionMap.delete(o.id)}this._onAfterProcessingINPCandidate?.(r)}}}const mh=e=>{const t=G.requestIdleCallback||G.setTimeout;G.document?.visibilityState==="hidden"?e():(e=Fc(e),Qt("visibilitychange",e,{once:!0,capture:!0}),Qt("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),Ao("visibilitychange",e,{capture:!0}),Ao("pagehide",e,{capture:!0})}))},KI=[200,500],XI=40,QI=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=Ss();ui(()=>{YI();const r=bs("INP");let s;const o=Dc(t,Mo),i=c=>{mh(()=>{for(const d of c)o._processEntry(d);const u=o._estimateP98LongestInteraction();u&&u._latency!==r.value&&(r.value=u._latency,r.entries=u.entries,s())})},a=vr("event",i,{durationThreshold:t.durationThreshold??XI});s=_s(e,r,KI,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{i(a.takeRecords()),s(!0)}))})};class ZI{_processEntry(t){this._onBeforeProcessingEntry?.(t)}}const e0=[2500,4e3],t0=(e,t={})=>{ui(()=>{const n=Ss(),r=bs("LCP");let s;const o=Dc(t,ZI),i=c=>{t.reportAllChanges||(c=c.slice(-1));for(const u of c)o._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-Tr(),0),r.entries=[u],s())},a=vr("largest-contentful-paint",i);if(a){s=_s(e,r,e0,t.reportAllChanges);const c=Fc(()=>{i(a.takeRecords()),a.disconnect(),s(!0)}),u=d=>{d.isTrusted&&(mh(c),Ao(d.type,u,{capture:!0}))};for(const d of["keydown","click","visibilitychange"])Qt(d,u,{capture:!0})}})},n0=[800,1800],Na=e=>{G.document?.prerendering?ui(()=>Na(e)):G.document?.readyState!=="complete"?addEventListener("load",()=>Na(e),!0):setTimeout(e)},r0=(e,t={})=>{const n=bs("TTFB"),r=_s(e,n,n0,t.reportAllChanges);Na(()=>{const s=ys();s&&(n.value=Math.max(s.responseStart-Tr(),0),n.entries=[s],r(!0))})},Dr={},No={};let gh,_h,yh,Sh;function li(e,t=!1){return fi("cls",e,o0,gh,t)}function di(e,t=!1){return fi("lcp",e,i0,_h,t)}function s0(e){return fi("ttfb",e,a0,yh)}function $c(e){return fi("inp",e,c0,Sh)}function Rn(e,t){return bh(e,t),No[e]||(u0(e),No[e]=!0),Eh(e,t)}function Es(e,t){const n=Dr[e];if(n?.length)for(const r of n)try{r(t)}catch(s){ht&&m.error(`Error while triggering instrumentation handler.
489
- Type: ${e}
490
- Name: ${Mt(r)}
491
- Error:`,s)}}function o0(){return GI(e=>{Es("cls",{metric:e}),gh=e},{reportAllChanges:!0})}function i0(){return t0(e=>{Es("lcp",{metric:e}),_h=e},{reportAllChanges:!0})}function a0(){return r0(e=>{Es("ttfb",{metric:e}),yh=e})}function c0(){return QI(e=>{Es("inp",{metric:e}),Sh=e})}function fi(e,t,n,r,s=!1){bh(e,t);let o;return No[e]||(o=n(),No[e]=!0),r&&t({metric:r}),Eh(e,t,s?o:void 0)}function u0(e){const t={};e==="event"&&(t.durationThreshold=0),vr(e,n=>{Es(e,{entries:n})},t)}function bh(e,t){Dr[e]=Dr[e]||[],Dr[e].push(t)}function Eh(e,t,n){return()=>{n&&n();const r=Dr[e];if(!r)return;const s=r.indexOf(t);s!==-1&&r.splice(s,1)}}function l0(e){return"duration"in e}const d0=e=>{const t=n=>{(n.type==="pagehide"||G.document?.visibilityState==="hidden")&&e(n)};Qt("visibilitychange",t,{capture:!0,once:!0}),Qt("pagehide",t,{capture:!0,once:!0})};function Ji(e){return typeof e=="number"&&isFinite(e)}function nn(e,t,n,{...r}){const s=j(e).start_timestamp;return s&&s>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),tr(e,()=>{const o=ot({startTime:t,...r});return o&&o.end(n),o})}function Bc(e){const t=w();if(!t)return;const{name:n,transaction:r,attributes:s,startTime:o}=e,{release:i,environment:a,sendDefaultPii:c}=t.getOptions(),d=t.getIntegrationByName("Replay")?.getReplayId(),l=V(),p=l.getUser(),f=p!==void 0?p.email||p.id||p.ip_address:void 0;let h;try{h=l.getScopeData().contexts.profile.profile_id}catch{}const g={release:i,environment:a,user:f||void 0,profile_id:h||void 0,replay_id:d||void 0,transaction:r,"user_agent.original":G.navigator?.userAgent,"client.address":c?"{{auto}}":void 0,...s};return ot({name:n,attributes:g,startTime:o,experimental:{standalone:!0}})}function Ir(){return G.addEventListener&&G.performance}function me(e){return e/1e3}function f0(e){let t="unknown",n="unknown",r="";for(const s of e){if(s==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(s))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=s}return r===e&&(t=r),{name:t,version:n}}function pi(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function hi(e,t){let n,r=!1;function s(a){!r&&n&&t(a,n.spanContext().spanId,n),r=!0}d0(()=>{s("pagehide")});const o=e.on("beforeStartNavigationSpan",(a,c)=>{c?.isRedirect||(s("navigation"),o(),i())}),i=e.on("afterStartPageLoadSpan",a=>{n=a,i()})}function p0(e){let t=0,n;if(!pi("layout-shift"))return;const r=li(({metric:s})=>{const o=s.entries[s.entries.length-1];o&&(t=s.value,n=o)},!0);hi(e,(s,o)=>{h0(t,n,o,s),r()})}function h0(e,t,n,r){ht&&m.log(`Sending CLS span (${e})`);const s=t?me((Ie()||0)+t.startTime):de(),o=V().getScopeData().transactionName,i=t?ke(t.sources[0]?.node):"Layout shift",a={[W]:"auto.http.browser.cls",[ie]:"ui.webvital.cls",[an]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((u,d)=>{a[`cls.source.${d+1}`]=ke(u.node)});const c=Bc({name:i,transaction:o,attributes:a,startTime:s});c&&(c.addEvent("cls",{[os]:"",[is]:e}),c.end(s))}const m0=6e4;function Ts(e){return e!=null&&e>0&&e<=m0}function g0(e){let t=0,n;if(!pi("largest-contentful-paint"))return;const r=di(({metric:s})=>{const o=s.entries[s.entries.length-1];!o||!Ts(s.value)||(t=s.value,n=o)},!0);hi(e,(s,o)=>{_0(t,n,o,s),r()})}function _0(e,t,n,r){if(!Ts(e))return;ht&&m.log(`Sending LCP span (${e})`);const s=me((Ie()||0)+(t?.startTime||0)),o=V().getScopeData().transactionName,i=t?ke(t.element):"Largest contentful paint",a={[W]:"auto.http.browser.lcp",[ie]:"ui.webvital.lcp",[an]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(a["lcp.element"]=ke(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url),t.loadTime!=null&&(a["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(a["lcp.renderTime"]=t.renderTime),t.size!=null&&(a["lcp.size"]=t.size));const c=Bc({name:i,transaction:o,attributes:a,startTime:s});c&&(c.addEvent("lcp",{[os]:"millisecond",[is]:e}),c.end(s))}function et(e){return e&&((Ie()||performance.timeOrigin)+e)/1e3}function Th(e){const t={};if(e.nextHopProtocol!=null){const{name:n,version:r}=f0(e.nextHopProtocol);t["network.protocol.version"]=r,t["network.protocol.name"]=n}return Ie()||Ir()?.timeOrigin?y0({...t,"http.request.redirect_start":et(e.redirectStart),"http.request.redirect_end":et(e.redirectEnd),"http.request.worker_start":et(e.workerStart),"http.request.fetch_start":et(e.fetchStart),"http.request.domain_lookup_start":et(e.domainLookupStart),"http.request.domain_lookup_end":et(e.domainLookupEnd),"http.request.connect_start":et(e.connectStart),"http.request.secure_connection_start":et(e.secureConnectionStart),"http.request.connection_end":et(e.connectEnd),"http.request.request_start":et(e.requestStart),"http.request.response_start":et(e.responseStart),"http.request.response_end":et(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function y0(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}const S0=2147483647;let Hl=0,Be={},He,Oo;function b0({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=Ir();if(r&&Ie()){r.mark&&G.performance.mark("sentry-tracing-init");const s=t?g0(n):t===!1?w0():void 0,o=e?p0(n):e===!1?I0():void 0,i=k0();return()=>{i(),s?.(),o?.()}}return()=>{}}function E0(){Rn("longtask",({entries:e})=>{const t=Te();if(!t)return;const{op:n,start_timestamp:r}=j(t);for(const s of e){const o=me(Ie()+s.startTime),i=me(s.duration);n==="navigation"&&r&&o<r||nn(t,o,o+i,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[W]:"auto.ui.browser.metrics"}})}})}function T0(){new PerformanceObserver(t=>{const n=Te();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const s=me(Ie()+r.startTime),{start_timestamp:o,op:i}=j(n);if(i==="navigation"&&o&&s<o)continue;const a=me(r.duration),c={[W]:"auto.ui.browser.metrics"},u=r.scripts[0],{invoker:d,invokerType:l,sourceURL:p,sourceFunctionName:f,sourceCharPosition:h}=u;c["browser.script.invoker"]=d,c["browser.script.invoker_type"]=l,p&&(c["code.filepath"]=p),f&&(c["code.function"]=f),h!==-1&&(c["browser.script.source_char_position"]=h),nn(n,s,s+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:c})}}).observe({type:"long-animation-frame",buffered:!0})}function v0(){Rn("event",({entries:e})=>{const t=Te();if(t){for(const n of e)if(n.name==="click"){const r=me(Ie()+n.startTime),s=me(n.duration),o={name:ke(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[W]:"auto.ui.browser.metrics"}},i=Qa(n.target);i&&(o.attributes["ui.component_name"]=i),nn(t,r,r+s,o)}}})}function I0(){return li(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Be.cls={value:e.value,unit:""},Oo=t)},!0)}function w0(){return di(({metric:e})=>{const t=e.entries[e.entries.length-1];!t||!Ts(e.value)||(Be.lcp={value:e.value,unit:"millisecond"},He=t)},!0)}function k0(){return s0(({metric:e})=>{e.entries[e.entries.length-1]&&(Be.ttfb={value:e.value,unit:"millisecond"})})}function R0(e,t){const n=Ir(),r=Ie();if(!n?.getEntries||!r)return;const{spanStreamingEnabled:s,ignorePerformanceApiSpans:o,ignoreResourceSpans:i,recordClsOnPageloadSpan:a,recordLcpOnPageloadSpan:c}=t,u=me(r),d=n.getEntries(),{op:l,start_timestamp:p}=j(e);if(d.slice(Hl).forEach(f=>{const h=me(f.startTime),g=me(Math.max(0,f.duration));if(!(l==="navigation"&&p&&u+h<p))switch(f.entryType){case"navigation":{M0(e,f,u);break}case"mark":case"paint":case"measure":{A0(e,f,h,g,u,o);const _=Ss(),y=f.startTime<_.firstHiddenTime;f.name==="first-paint"&&y&&(Be.fp={value:f.startTime,unit:"millisecond"}),f.name==="first-contentful-paint"&&y&&(Be.fcp={value:f.startTime,unit:"millisecond"});break}case"resource":{P0(e,f,f.name,h,g,u,i);break}}}),Hl=Math.max(d.length-1,0),L0(e,s),l==="pageload"){if($0(Be),s){const f=(h,g,_)=>{const y=_??`browser.web_vital.${h}.value`;e.setAttribute(y,g),ht&&m.log("Setting web vital attribute",{[y]:g},"on pageload span")};["ttfb","fp","fcp"].forEach(h=>{Be[h]&&f(h,Be[h].value)}),Be["ttfb.requestTime"]&&f("ttfb.requestTime",Be["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else a||delete Be.cls,c||delete Be.lcp,Object.entries(Be).forEach(([f,h])=>{B_(f,h.value,h.unit)}),D0(e,t);e.setAttribute(s?"browser.performance.time_origin":"performance.timeOrigin",u),e.setAttribute(s?"browser.performance.navigation.activation_start":"performance.activationStart",Tr())}He=void 0,Oo=void 0,Be={}}function C0(e){if(e?.entryType==="measure")try{return e.detail.devtools.track==="Components ⚛"}catch{return}}function A0(e,t,n,r,s,o){if(C0(t)||["mark","measure"].includes(t.entryType)&&ft(t.name,o))return;const i=ys(!1),a=me(i?i.requestStart:0),c=s+Math.max(n,a),u=s+n,d=u+r,l={[W]:"auto.resource.browser.metrics"};c!==u&&(l["sentry.browser.measure_happened_before_request"]=!0,l["sentry.browser.measure_start_time"]=c),x0(l,t),c<=d&&nn(e,c,d,{name:t.name,op:t.entryType,attributes:l})}function x0(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,s]of Object.entries(n))if(s&&Nt(s))e[`sentry.browser.measure.detail.${r}`]=s;else if(s!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(s)}catch{}return}if(Nt(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function M0(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Ls(e,t,r,n)}),Ls(e,t,"secureConnection",n,"TLS/SSL"),Ls(e,t,"fetch",n,"cache"),Ls(e,t,"domainLookup",n,"DNS"),O0(e,t,n)}function Ls(e,t,n,r,s=n){const o=N0(n),i=t[o],a=t[`${n}Start`];!a||!i||nn(e,r+me(a),r+me(i),{op:`browser.${s}`,name:t.name,attributes:{[W]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function N0(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function O0(e,t,n){const r=n+me(t.requestStart),s=n+me(t.responseEnd),o=n+me(t.responseStart);t.responseEnd&&(nn(e,r,s,{op:"browser.request",name:t.name,attributes:{[W]:"auto.ui.browser.metrics"}}),nn(e,o,s,{op:"browser.response",name:t.name,attributes:{[W]:"auto.ui.browser.metrics"}}))}function P0(e,t,n,r,s,o,i){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const a=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(i?.includes(a))return;const c={[W]:"auto.resource.browser.metrics"},u=yn(n);u.protocol&&(c["url.scheme"]=u.protocol.split(":").pop()),u.host&&(c["server.address"]=u.host),c["url.same_origin"]=n.includes(G.location.origin),F0(t,c,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const d={...c,...Th(t)},l=o+r,p=l+s;nn(e,l,p,{name:n.replace(G.location.origin,""),op:a,attributes:d})}function L0(e,t){const n=G.navigator;if(!n)return;const r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute(t?"network.connection.type":"connectionType",r.type),Ji(r.rtt)&&(Be["connection.rtt"]={value:r.rtt,unit:"millisecond"},t&&e.setAttribute("network.connection.rtt",r.rtt))),Ji(n.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",n.deviceMemory):e.setAttribute("deviceMemory",`${n.deviceMemory} GB`)),Ji(n.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",n.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency)))}function D0(e,t){He&&t.recordLcpOnPageloadSpan&&(He.element&&e.setAttribute("lcp.element",ke(He.element)),He.id&&e.setAttribute("lcp.id",He.id),He.url&&e.setAttribute("lcp.url",He.url.trim().slice(0,200)),He.loadTime!=null&&e.setAttribute("lcp.loadTime",He.loadTime),He.renderTime!=null&&e.setAttribute("lcp.renderTime",He.renderTime),e.setAttribute("lcp.size",He.size)),Oo?.sources&&t.recordClsOnPageloadSpan&&Oo.sources.forEach((n,r)=>e.setAttribute(`cls.source.${r+1}`,ke(n.node)))}function F0(e,t,n){n.forEach(([r,s])=>{const o=e[r];o!=null&&(typeof o=="number"&&o<S0||typeof o=="string")&&(t[s]=o)})}function $0(e){const t=ys(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}const B0="ElementTiming",U0=(()=>({name:B0,setup(){!Ir()||!Ie()||Rn("element",({entries:t})=>{for(const n of t){const r=n;if(!r.identifier)continue;const s=r.identifier,o=r.name,i=r.renderTime,a=r.loadTime,c={"sentry.origin":"auto.ui.browser.element_timing","ui.element.identifier":s};o&&(c["ui.element.paint_type"]=o),r.id&&(c["ui.element.id"]=r.id),r.element&&(c["ui.element.type"]=r.element.tagName.toLowerCase()),r.url&&(c["ui.element.url"]=r.url),r.naturalWidth&&(c["ui.element.width"]=r.naturalWidth),r.naturalHeight&&(c["ui.element.height"]=r.naturalHeight),i>0&&ba("ui.element.render_time",i,{unit:"millisecond",attributes:c}),a>0&&ba("ui.element.load_time",a,{unit:"millisecond",attributes:c})}})}})),sN=U0,Ki=[],Fr=new Map,Ln=new Map,vh=60;function H0(){if(Ir()&&Ie()){const t=W0();return()=>{t()}}return()=>{}}const Jr={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function W0(){return $c(j0)}const j0=({metric:e})=>{if(e.value==null)return;const t=me(e.value);if(t>vh)return;const n=e.entries.find(h=>h.duration===e.value&&Jr[h.name]);if(!n)return;const{interactionId:r}=n,s=Jr[n.name],o=me(Ie()+n.startTime),i=Te(),a=i?Se(i):void 0,c=r!=null?Fr.get(r):void 0,u=c?.span||a,d=u?j(u).description:V().getScopeData().transactionName,l=c?.elementName||ke(n.target),p={[W]:"auto.http.browser.inp",[ie]:`ui.interaction.${s}`,[an]:n.duration},f=Bc({name:l,transaction:d,attributes:p,startTime:o});f&&(f.addEvent("inp",{[os]:"millisecond",[is]:e.value}),f.end(o+t))};function q0(e){return e!=null?Fr.get(e):void 0}function z0(){const e=Object.keys(Jr);Ro()&&e.forEach(s=>{G.addEventListener(s,t,{capture:!0,passive:!0})});function t(s){const o=s.target;if(!o)return;const i=ke(o),a=Math.round(s.timeStamp);if(Ln.set(a,i),Ln.size>50){const c=Ln.keys().next().value;c!==void 0&&Ln.delete(c)}}function n(s){const o=Math.round(s.startTime);let i=Ln.get(o);if(!i)for(let a=-5;a<=5;a++){const c=Ln.get(o+a);if(c){i=c;break}}return i||"<unknown>"}const r=({entries:s})=>{const o=Te(),i=o&&Se(o);s.forEach(a=>{if(!l0(a))return;const c=a.interactionId;if(c==null||Fr.has(c))return;const u=a.target?ke(a.target):n(a);if(Ki.length>10){const d=Ki.shift();Fr.delete(d)}Ki.push(c),Fr.set(c,{span:i,elementName:u})})};Rn("event",r),Rn("first-input",r)}function Uc(e){const{name:t,op:n,origin:r,metricName:s,value:o,attributes:i,parentSpan:a,reportEvent:c,startTime:u,endTime:d}=e,l=V().getScopeData().transactionName,p={[W]:r,[ie]:n,[an]:0,[`browser.web_vital.${s}.value`]:o,"sentry.transaction":l,"user_agent.original":G.navigator?.userAgent,...i};a&&mo(a).attributes?.[ie]==="pageload"&&(p["sentry.pageload.span_id"]=a.spanContext().spanId),c&&(p[`browser.web_vital.${s}.report_event`]=c);const f=ot({name:t,attributes:p,startTime:u,parentSpan:a});f&&f.end(d??u)}function G0(e){let t=0,n;if(!pi("largest-contentful-paint"))return;const r=di(({metric:s})=>{const o=s.entries[s.entries.length-1];!o||!Ts(s.value)||(t=s.value,n=o)},!0);hi(e,(s,o,i)=>{V0(t,n,i,s),r()})}function V0(e,t,n,r){if(!Ts(e))return;ht&&m.log(`Sending LCP span (${e})`);const s=Ie()||0,o=me(s),i=me(s+(t?.startTime||0)),a=t?ke(t.element):"Largest contentful paint",c={};t?.element&&(c["browser.web_vital.lcp.element"]=ke(t.element)),t?.id&&(c["browser.web_vital.lcp.id"]=t.id),t?.url&&(c["browser.web_vital.lcp.url"]=t.url),t?.loadTime!=null&&(c["browser.web_vital.lcp.load_time"]=t.loadTime),t?.renderTime!=null&&(c["browser.web_vital.lcp.render_time"]=t.renderTime),t?.size!=null&&(c["browser.web_vital.lcp.size"]=t.size),Uc({name:a,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:c,parentSpan:n,reportEvent:r,startTime:o,endTime:i})}function Y0(e){let t=0,n;if(!pi("layout-shift"))return;const r=li(({metric:s})=>{const o=s.entries[s.entries.length-1];o&&(t=s.value,n=o)},!0);hi(e,(s,o,i)=>{J0(t,n,i,s),r()})}function J0(e,t,n,r){ht&&m.log(`Sending CLS span (${e})`);const s=t?me((Ie()||0)+t.startTime):de(),o=t?ke(t.sources[0]?.node):"Layout shift",i={};t?.sources&&t.sources.forEach((a,c)=>{i[`browser.web_vital.cls.source.${c+1}`]=ke(a.node)}),Uc({name:o,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:i,parentSpan:n,reportEvent:r,startTime:s})}function K0(){if(!Ir()||!Ie())return;$c(({metric:n})=>{if(n.value==null||me(n.value)>vh)return;const s=n.entries.find(o=>o.duration===n.value&&Jr[o.name]);s&&X0(n.value,s)})}function X0(e,t){ht&&m.log(`Sending INP span (${e})`);const n=me(Ie()+t.startTime),r=me(e),s=Jr[t.name],o=q0(t.interactionId),i=Te(),a=i?Se(i):void 0,c=o?.span||a,u=c?mo(c).name:V().getScopeData().transactionName,d=o?.elementName||ke(t.target);Uc({name:d,op:`ui.interaction.${s}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[an]:t.duration,"sentry.transaction":u},startTime:n,endTime:n+r,parentSpan:c})}const Q0=1e3;let Wl,Oa,Pa;function Ih(e){rn("dom",e),sn("dom",Z0)}function Z0(){if(!G.document)return;const e=rt.bind(null,"dom"),t=jl(e,!0);G.document.addEventListener("click",t,!1),G.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const s=G[n]?.prototype;s?.hasOwnProperty?.("addEventListener")&&(Oe(s,"addEventListener",function(o){return function(i,a,c){if(i==="click"||i=="keypress")try{const u=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=u[i]=u[i]||{refCount:0};if(!d.handler){const l=jl(e);d.handler=l,o.call(this,i,l,c)}d.refCount++}catch{}return o.call(this,i,a,c)}}),Oe(s,"removeEventListener",function(o){return function(i,a,c){if(i==="click"||i=="keypress")try{const u=this.__sentry_instrumentation_handlers__||{},d=u[i];d&&(d.refCount--,d.refCount<=0&&(o.call(this,i,d.handler,c),d.handler=void 0,delete u[i]),Object.keys(u).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return o.call(this,i,a,c)}}))})}function ew(e){if(e.type!==Oa)return!1;try{if(!e.target||e.target._sentryId!==Pa)return!1}catch{}return!0}function tw(e,t){return e!=="keypress"?!1:t?.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function jl(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=nw(n);if(tw(n.type,r))return;Le(n,"_sentryCaptured",!0),r&&!r._sentryId&&Le(r,"_sentryId",we());const s=n.type==="keypress"?"input":n.type;ew(n)||(e({event:n,name:s,global:t}),Oa=n.type,Pa=r?r._sentryId:void 0),clearTimeout(Wl),Wl=G.setTimeout(()=>{Pa=void 0,Oa=void 0},Q0)}}function nw(e){try{return e.target}catch{return null}}let Ds;function mi(e){const t="history";rn(t,e),sn(t,rw)}function rw(){if(G.addEventListener("popstate",()=>{const t=G.location.href,n=Ds;if(Ds=t,n===t)return;rt("history",{from:n,to:t})}),!VT())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const s=Ds,o=sw(String(r));if(Ds=o,s===o)return t.apply(this,n);rt("history",{from:s,to:o})}return t.apply(this,n)}}Oe(G.history,"pushState",e),Oe(G.history,"replaceState",e)}function sw(e){try{return new URL(e,G.location.origin).toString()}catch{return e}}const oo={};function Hc(e){const t=oo[e];if(t)return t;let n=G[e];if(Ia(n))return oo[e]=n.bind(G);const r=G.document;if(r&&typeof r.createElement=="function")try{const s=r.createElement("iframe");s.hidden=!0,r.head.appendChild(s);const o=s.contentWindow;o?.[e]&&(n=o[e]),r.head.removeChild(s)}catch(s){ht&&m.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,s)}return n&&(oo[e]=n.bind(G))}function ow(e){oo[e]=void 0}function vs(...e){return Hc("setTimeout")(...e)}const Rt="__sentry_xhr_v3__";function Wc(e){rn("xhr",e),sn("xhr",iw)}function iw(){if(!G.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const s=new Error,o=de()*1e3,i=dt(r[0])?r[0].toUpperCase():void 0,a=aw(r[1]);if(!i||!a)return t.apply(n,r);n[Rt]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[Rt];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const d={endTimestamp:de()*1e3,startTimestamp:o,xhr:n,virtualError:s};rt("xhr",d)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,d,l){return c(),u.apply(d,l)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,d,l){const[p,f]=l,h=d[Rt];return h&&dt(p)&&dt(f)&&(h.request_headers[p.toLowerCase()]=f),u.apply(d,l)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const s=n[Rt];if(!s)return t.apply(n,r);r[0]!==void 0&&(s.body=r[0]);const o={startTimestamp:de()*1e3,xhr:n};return rt("xhr",o),t.apply(n,r)}})}function aw(e){if(dt(e))return e;try{return e.toString()}catch{}}const cw=Symbol.for("sentry__originalRequestBody");function wh(e){return new URLSearchParams(e).toString()}function Po(e,t=m){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[wh(e)];if(!e)return[void 0]}catch(n){return ht&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return ht&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function jc(e=[]){if(e.length>=2&&e[1]&&typeof e[1]=="object"&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){const n=e[0][cw];return n!==void 0?n:void 0}}function kh(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return ht&&m.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r
492
- `).reduce((n,r)=>{const[s,o]=r.split(": ");return o&&(n[s.toLowerCase()]=o),n},{}):{}}const uw=40;function Rh(e,t=Hc("fetch")){let n=0,r=0;async function s(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const c=await t(e.url,a);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw ow("fetch"),c}finally{n-=i,r--}}return Yy(e,s,hc(e.bufferSize||uw))}const v=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function lw(){const e=w();if(!e){v&&m.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){v&&m.warn("BrowserProfiling integration is not available");return}e.emit("startUIProfiler")}function dw(){const e=w();if(!e){v&&m.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){v&&m.warn("ProfilingIntegration is not available");return}e.emit("stopUIProfiler")}const oN={startProfiler:lw,stopProfiler:dw},fw=10,pw=20,hw=30,mw=40,gw=50;function ir(e,t,n,r){const s={filename:e,function:t==="<anonymous>"?St:t,in_app:!0};return n!==void 0&&(s.lineno=n),r!==void 0&&(s.colno=r),s}const _w=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,yw=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Sw=/\((\S*)(?::(\d+))(?::(\d+))\)/,bw=/at (.+?) ?\(data:(.+?),/,Ew=e=>{const t=e.match(bw);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=_w.exec(e);if(n){const[,s,o,i]=n;return ir(s,St,+o,+i)}const r=yw.exec(e);if(r){if(r[2]?.indexOf("eval")===0){const a=Sw.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}const[o,i]=Ch(r[1]||St,r[2]);return ir(i,o,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},Tw=[hw,Ew],vw=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Iw=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ww=e=>{const t=vw.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=Iw.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],s=t[1]||St;return[s,r]=Ch(s,r),ir(r,s,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},kw=[gw,ww],Rw=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Cw=e=>{const t=Rw.exec(e);return t?ir(t[2],t[1]||St,+t[3],t[4]?+t[4]:void 0):void 0},iN=[mw,Cw],Aw=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,xw=e=>{const t=Aw.exec(e);return t?ir(t[2],t[3]||St,+t[1]):void 0},aN=[fw,xw],Mw=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Nw=e=>{const t=Mw.exec(e);return t?ir(t[5],t[3]||t[4]||St,+t[1],+t[2]):void 0},cN=[pw,Nw],Ow=[Tw,kw],Pw=tf(...Ow),Ch=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:St,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function uN(e,{metadata:t,tunnel:n,dsn:r}){const s={event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:It(r)}},o=Lw(e);return at(s,[o])}function Lw(e){return[{type:"user_report"},e]}const Fs=1024,Dw="Breadcrumbs",Fw=((e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Dw,setup(n){t.console&&_c(Hw(n)),t.dom&&Ih(Uw(n,t.dom)),t.xhr&&Wc(Ww(n)),t.fetch&&Rc(jw(n)),t.history&&mi(qw(n)),t.sentry&&n.on("beforeSendEvent",Bw(n))}}}),$w=Fw;function Bw(e){return function(n){w()===e&&Dt({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:fn(n)},{event:n})}}function Uw(e,t){return function(r){if(w()!==e)return;let s,o,i=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Fs&&(v&&m.warn(`\`dom.maxStringLength\` cannot exceed ${Fs}, but a value of ${a} was configured. Sentry will use ${Fs} instead.`),a=Fs),typeof i=="string"&&(i=[i]);try{const u=r.event,d=zw(u)?u.target:u;s=ke(d,{keyAttrs:i,maxStringLength:a}),o=Qa(d)}catch{s="<unknown>"}if(s.length===0)return;const c={category:`ui.${r.name}`,message:s};o&&(c.data={"ui.component_name":o}),Dt(c,{event:r.event,name:r.name,global:r.global})}}function Hw(e){return function(n){if(w()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:vo(n.level),message:fo(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${fo(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;Dt(r,{input:n.args,level:n.level})}}function Ww(e){return function(n){if(w()!==e)return;const{startTimestamp:r,endTimestamp:s}=n,o=n.xhr[Rt];if(!r||!s||!o)return;const{method:i,url:a,status_code:c,body:u}=o,d={method:i,url:a,status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:s},p={category:"xhr",data:d,type:"http",level:Vp(c)};e.emit("beforeOutgoingRequestBreadcrumb",p,l),Dt(p,l)}}function jw(e){return function(n){if(w()!==e)return;const{startTimestamp:r,endTimestamp:s}=n;if(s&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:s},i={category:"fetch",data:n.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",i,o),Dt(i,o)}else{const o=n.response,i={...n.fetchData,status_code:o?.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:s},c={category:"fetch",data:i,type:"http",level:Vp(i.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,a),Dt(c,a)}}}function qw(e){return function(n){if(w()!==e)return;let r=n.from,s=n.to;const o=yn(O.location.href);let i=r?yn(r):void 0;const a=yn(s);i?.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(s=a.relative),o.protocol===i.protocol&&o.host===i.host&&(r=i.relative),Dt({category:"navigation",data:{from:r,to:s}})}}function zw(e){return!!e&&!!e.target}const Gw="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),Vw="BrowserApiErrors",Yw=((e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:Vw,setupOnce(){t.setTimeout&&Oe(O,"setTimeout",ql),t.setInterval&&Oe(O,"setInterval",ql),t.requestAnimationFrame&&Oe(O,"requestAnimationFrame",Kw),t.XMLHttpRequest&&"XMLHttpRequest"in O&&Oe(XMLHttpRequest.prototype,"send",Xw);const n=t.eventTarget;n&&(Array.isArray(n)?n:Gw).forEach(s=>Qw(s,t))}}}),Jw=Yw;function ql(e){return function(...t){const n=t[0];return t[0]=or(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${Mt(e)}`}}),e.apply(this,t)}}function Kw(e){return function(t){return e.apply(this,[or(t,{mechanism:{data:{handler:Mt(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function Xw(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in n&&typeof n[s]=="function"&&Oe(n,s,function(o){const i={mechanism:{data:{handler:Mt(o)},handled:!1,type:`auto.browser.browserapierrors.xhr.${s}`}},a=Za(o);return a&&(i.mechanism.data.handler=Mt(a)),or(o,i)})}),e.apply(this,t)}}function Qw(e,t){const r=O[e]?.prototype;r?.hasOwnProperty?.("addEventListener")&&(Oe(r,"addEventListener",function(s){return function(o,i,a){try{Zw(i)&&(i.handleEvent=or(i.handleEvent,{mechanism:{data:{handler:Mt(i),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&ek(this,o,i),s.apply(this,[o,or(i,{mechanism:{data:{handler:Mt(i),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),a])}}),Oe(r,"removeEventListener",function(s){return function(o,i,a){try{const c=i.__sentry_wrapped__;c&&s.call(this,o,c,a)}catch{}return s.call(this,o,i,a)}}))}function Zw(e){return typeof e.handleEvent=="function"}function ek(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const tk=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof O.document>"u"){v&&m.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Uu({ignoreDuration:!0}),Oi();const n=be();let r=n.getUser();n.addScopeListener(s=>{const o=s.getUser();(r?.id!==o?.id||r?.ip_address!==o?.ip_address)&&(Oi(),r=o)}),t==="route"&&mi(({from:s,to:o})=>{s!==o&&(Uu({ignoreDuration:!0}),Oi())})}}},nk="CultureContext",rk=(()=>({name:nk,preprocessEvent(e){const t=zl();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){const t=zl();t&&(e.attributes={"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar,...e.attributes})}})),sk=rk;function zl(){try{const e=O.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}const ok="GlobalHandlers",ik=((e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:ok,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(ck(n),Gl("onerror")),t.onunhandledrejection&&(uk(n),Gl("onunhandledrejection"))}}}),ak=ik;function ck(e){rf(t=>{const{stackParser:n,attachStacktrace:r}=Mh();if(w()!==e||uh())return;const{msg:s,url:o,line:i,column:a,error:c}=t,u=lk(ci(n,c||s,void 0,r,!1),o,i,a);u.level="error",ds(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function uk(e){sf(t=>{const{stackParser:n,attachStacktrace:r}=Mh();if(w()!==e||uh())return;const s=Ah(t),o=Nt(s)?xh(s):ci(n,s,void 0,r,!0);o.level="error",ds(o,{originalException:s,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function Ah(e){if(Nt(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function xh(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function lk(e,t,n,r){const s=e.exception=e.exception||{},o=s.values=s.values||[],i=o[0]=o[0]||{},a=i.stacktrace=i.stacktrace||{},c=a.frames=a.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:dk(t)??An(),function:St,in_app:!0}),e}function Gl(e){v&&m.log(`Global Handler attached: ${e}`)}function Mh(){return w()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function dk(e){if(!(!dt(e)||e.length===0))return e.startsWith("data:")?`<${Kt(e,!1)}>`:e}const fk=()=>({name:"HttpContext",preprocessEvent(e){if(!O.navigator&&!O.location&&!O.document)return;const t=Oc(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}}),pk="cause",hk=5,mk="LinkedErrors",gk=((e={})=>{const t=e.limit||hk,n=e.key||pk;return{name:mk,preprocessEvent(r,s,o){const i=o.getOptions();DS(Pc,i.stackParser,n,t,r,s)}}}),_k=gk,yk="SpotlightBrowser",Sk=((e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:yk,setup:()=>{v&&m.log("Using Sidecar URL",t)},processEvent:n=>Ek(n)?null:n,afterAllSetup:n=>{bk(n,t)}}});function bk(e,t){const n=Hc("fetch");let r=0;e.on("beforeEnvelope",s=>{if(r>3){m.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:So(s),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(o=>{o.status>=200&&o.status<400&&(r=0)},o=>{r++,m.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",o)})})}const lN=Sk;function Ek(e){return!!(e.type==="transaction"&&e.spans&&e.contexts?.trace&&e.contexts.trace.op==="ui.action.click"&&e.spans.some(({description:t})=>t?.includes("#sentry-spotlight")))}function Tk(){return vk()?(v&&vt(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function vk(){if(typeof O.window>"u")return!1;const e=O;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;const n=An();return!(O===O.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}function Ik(e){return[CS(),IS(),Lb(),Jw(),$w(),ak(),_k(),zS(),fk(),sk(),tk()]}function wk(e={}){const t=!e.skipBrowserExtensionCheck&&Tk();let n=e.defaultIntegrations==null?Ik():e.defaultIntegrations;const r={...e,enabled:t?!1:e.enabled,stackParser:ig(e.stackParser||Pw),integrations:My({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||Rh};return oS(FI,r)}function dN(){}function fN(e){e()}function Vl(e={}){const t=O.document,n=t?.head||t?.body;if(!n){v&&m.error("[showReportDialog] Global document not defined");return}const r=V(),o=w()?.getDsn();if(!o){v&&m.error("[showReportDialog] DSN not configured");return}const i={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||vy()},a=O.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=Ay(o,i);const{onLoad:c,onClose:u}=i;if(c&&(a.onload=c),u){const d=l=>{if(l.data==="__sentry_reportdialog_closed__")try{u()}finally{O.removeEventListener("message",d)}};O.addEventListener("message",d)}n.appendChild(a)}const kk=D,Rk="ReportingObserver",Yl=new WeakMap,Ck=((e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(r){if(Yl.has(w()))for(const s of r)Ke(o=>{o.setExtra("url",s.url);const i=`ReportingObserver [${s.type}]`;let a="No details available";if(s.body){const c={};for(const u in s.body)c[u]=s.body[u];if(o.setExtra("body",c),s.type==="crash"){const u=s.body;a=[u.crashId||"",u.reason||""].join(" ").trim()||a}else a=s.body.message||a}by(`${i}: ${a}`)})}return{name:Rk,setupOnce(){if(!JT())return;new kk.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(r){Yl.set(r,!0)}}}),pN=Ck,Ak="HttpClient",xk=((e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:Ak,setup(n){$k(n,t),Bk(n,t)}}}),hN=xk;function Mk(e,t,n,r,s){if(Oh(e,n.status,n.url)){const o=Uk(t,r);let i,a,c,u;Lh()&&([i,c]=Jl("Cookie",o),[a,u]=Jl("Set-Cookie",n));const d=Ph({url:o.url,method:o.method,status:n.status,requestHeaders:i,responseHeaders:a,requestCookies:c,responseCookies:u,error:s,type:"fetch"});ds(d)}}function Jl(e,t){const n=Pk(t.headers);let r;try{const s=n[e]||n[e.toLowerCase()]||void 0;s&&(r=Nh(s))}catch{}return[n,r]}function Nk(e,t,n,r,s){if(Oh(e,t.status,t.responseURL)){let o,i,a;if(Lh()){try{const u=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;u&&(i=Nh(u))}catch{}try{a=Lk(t)}catch{}o=r}const c=Ph({url:t.responseURL,method:n,status:t.status,requestHeaders:o,responseHeaders:a,responseCookies:i,error:s,type:"xhr"});ds(c)}}function Ok(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function Nh(e){return e.split("; ").reduce((t,n)=>{const[r,s]=n.split("=");return r&&s&&(t[r]=s),t},{})}function Pk(e){const t={};return e.forEach((n,r)=>{t[r]=n}),t}function Lk(e){const t=e.getAllResponseHeaders();return t?t.split(`\r
493
- `).reduce((n,r)=>{const[s,o]=r.split(": ");return s&&o&&(n[s]=o),n},{}):{}}function Dk(e,t){return e.some(n=>typeof n=="string"?t.includes(n):n.test(t))}function Fk(e,t){return e.some(n=>typeof n=="number"?n===t:t>=n[0]&&t<=n[1])}function $k(e,t){Yp()&&Rc(n=>{if(w()!==e)return;const{response:r,args:s,error:o,virtualError:i}=n,[a,c]=s;r&&Mk(t,a,r,c,o||i)},!1)}function Bk(e,t){"XMLHttpRequest"in D&&Wc(n=>{if(w()!==e)return;const{error:r,virtualError:s}=n,o=n.xhr,i=o[Rt];if(!i)return;const{method:a,request_headers:c}=i;try{Nk(t,o,a,c,r||s)}catch(u){v&&m.warn("Error while extracting response event form XHR response",u)}})}function Oh(e,t,n){return Fk(e.failedRequestStatusCodes,t)&&Dk(e.failedRequestTargets,n)&&!gp(n,w())}function Ph(e){const t=w(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,s=`HTTP Client Error with status code: ${e.status}`,o={message:s,exception:{values:[{type:"Error",value:s,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:Ok(e.responseHeaders)}}};return Pt(o,{type:`auto.http.client.${e.type}`,handled:!1}),o}function Uk(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function Lh(){const e=w();return e?!!e.getOptions().sendDefaultPii:!1}const Xi=D,Hk=7,Wk="ContextLines",jk=((e={})=>{const t=e.frameContextLines!=null?e.frameContextLines:Hk;return{name:Wk,processEvent(n){return qk(n,t)}}}),mN=jk;function qk(e,t){const n=Xi.document,r=Xi.location&&mp(Xi.location.href);if(!n||!r)return e;const s=e.exception?.values;if(!s?.length)return e;const o=n.documentElement.innerHTML;if(!o)return e;const i=["<!DOCTYPE html>","<html>",...o.split(`
494
- `),"</html>"];return s.forEach(a=>{const c=a.stacktrace;c?.frames&&(c.frames=c.frames.map(u=>zk(u,i,r,t)))}),e}function zk(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||bg(t,e,r),e}const Gk="GraphQLClient",Vk=(e=>({name:Gk,setup(t){Yk(t,e),Jk(t,e)}}));function Yk(e,t){e.on("beforeOutgoingRequestSpan",(n,r)=>{const o=j(n).data||{};if(!(o[ie]==="http.client"))return;const c=o[Jg]||o["http.url"]||o.url,u=o[Yg]||o["http.method"];if(!dt(c)||!dt(u))return;const{endpoints:d}=t,l=ft(c,d),p=Fh(r);if(l&&p){const f=$h(p);if(f){const h=Dh(f);n.updateName(`${u} ${c} (${h})`),gi(f)&&n.setAttribute("graphql.document",f.query),_i(f)&&(n.setAttribute("graphql.persisted_query.hash.sha256",f.extensions.persistedQuery.sha256Hash),n.setAttribute("graphql.persisted_query.version",f.extensions.persistedQuery.version))}}})}function Jk(e,t){e.on("beforeOutgoingRequestBreadcrumb",(n,r)=>{const{category:s,type:o,data:i}=n;if(o==="http"&&(s==="fetch"||s==="xhr")){const d=i?.url,{endpoints:l}=t,p=ft(d,l),f=Fh(r);if(p&&i&&f){const h=$h(f);if(!i.graphql&&h){const g=Dh(h);i["graphql.operation"]=g,gi(h)&&(i["graphql.document"]=h.query),_i(h)&&(i["graphql.persisted_query.hash.sha256"]=h.extensions.persistedQuery.sha256Hash,i["graphql.persisted_query.version"]=h.extensions.persistedQuery.version)}}}})}function Dh(e){if(_i(e))return`persisted ${e.operationName}`;if(gi(e)){const{query:t,operationName:n}=e,{operationName:r=n,operationType:s}=Kk(t);return r?`${s} ${r}`:`${s}`}return"unknown"}function Fh(e){const t="xhr"in e;let n;if(t){const r=e.xhr[Rt];n=r&&Po(r.body)[0]}else{const r=jc(e.input);n=Po(r)[0]}return n}function Kk(e){const t=/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/,n=/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/,r=e.match(t);if(r)return{operationType:r[1],operationName:r[2]};const s=e.match(n);return s?{operationType:s[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}function io(e){return typeof e=="object"&&e!==null}function gi(e){return io(e)&&typeof e.query=="string"}function _i(e){return io(e)&&typeof e.operationName=="string"&&io(e.extensions)&&io(e.extensions.persistedQuery)&&typeof e.extensions.persistedQuery.sha256Hash=="string"&&typeof e.extensions.persistedQuery.version=="number"}function $h(e){try{const t=JSON.parse(e);return gi(t)||_i(t)?t:void 0}catch{return}}const gN=Vk,_N=(e={})=>{const t=["script"];function n(r,s,o=0){if(!r)return;const i="shadowRoot"in r&&r.shadowRoot?r.shadowRoot.children:r.children;for(const a of i){if(!(a instanceof HTMLElement))continue;const c=Qa(a,1)||void 0,u=a.tagName.toLowerCase();if(t.includes(u))continue;const d=e.onElement?.({element:a,componentName:c,tagName:u,depth:o})||{};if(d==="skip")continue;if(d==="children"){n(a,s,o+1);continue}const{x:l,y:p,width:f,height:h}=a.getBoundingClientRect(),g={identifier:a.id||void 0,type:c||u,visible:!0,alpha:1,height:h,width:f,x:l,y:p,...d},_=[];g.children=_,n(a,g.children,o+1),s.push(g)}}return{name:"ViewHierarchy",processEvent:(r,s)=>{if(r.type!==void 0||e.shouldAttach?.(r,s)===!1)return r;const o={rendering_system:"DOM",positioning:"absolute",windows:[]};n(e.rootElement?.()||O.document.body,o.windows);const i={filename:"view-hierarchy.json",attachmentType:"event.view_hierarchy",contentType:"application/json",data:JSON.stringify(o)};return s.attachments=s.attachments||[],s.attachments.push(i),r}}},he=D,qc="sentryReplaySession",Xk="replay_event",zc="Unable to send Replay",Qk=3e5,Zk=9e5,eR=5e3,tR=5500,nR=6e4,rR=5e3,sR=3,Kl=15e4,$s=5e3,oR=3e3,iR=300,Gc=2e7,aR=4999,cR=5e4,Xl=36e5;var uR=Object.defineProperty,lR=(e,t,n)=>t in e?uR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ql=(e,t,n)=>lR(e,typeof t!="symbol"?t+"":t,n),ve=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ve||{});function dR(e){return e.nodeType===e.ELEMENT_NODE}function $r(e){return e?.host?.shadowRoot===e}function Br(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function fR(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function pR(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Lo(e){try{const t=e.rules||e.cssRules;return t?fR(Array.from(t,Bh).join("")):null}catch{return null}}function hR(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,s=r[n],o=r.getPropertyPriority(s);t+=`${s}:${r.getPropertyValue(s)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}function Bh(e){let t;if(gR(e))try{t=Lo(e.styleSheet)||pR(e)}catch{}else if(_R(e)){let n=e.cssText;const r=e.selectorText.includes(":"),s=typeof e.style.all=="string"&&e.style.all;if(s&&(n=hR(e)),r&&(n=mR(n)),r||s)return n}return t||e.cssText}function mR(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function gR(e){return"styleSheet"in e}function _R(e){return"selectorText"in e}let Uh=class{constructor(){Ql(this,"idNodeMap",new Map),Ql(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function yR(){return new Uh}function yi({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function Kr({isMasked:e,element:t,value:n,maskInputFn:r}){let s=n||"";return e?(r&&(s=r(s,t)),"*".repeat(s.length)):s}function ar(e){return e.toLowerCase()}function La(e){return e.toUpperCase()}const Zl="__rrweb_original__";function SR(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let s=0;s<e.height;s+=n){const o=t.getImageData,i=Zl in o?o[Zl]:o;if(new Uint32Array(i.call(t,r,s,Math.min(n,e.width-r),Math.min(n,e.height-s)).data.buffer).some(c=>c!==0))return!1}return!0}function Vc(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?ar(t):null}function Do(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function Hh(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i;return n.pathname.match(r)?.[1]??null}const ed={};function Wh(e){const t=ed[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(s)}catch{}return ed[e]=r.bind(window)}function Da(...e){return Wh("setTimeout")(...e)}function jh(...e){return Wh("clearTimeout")(...e)}function qh(e){try{return e.contentDocument}catch{}}let bR=1;const ER=new RegExp("[^a-z0-9-_:]"),Xr=-2;function Yc(){return bR++}function TR(e){if(e instanceof HTMLFormElement)return"form";const t=ar(e.tagName);return ER.test(t)?"div":t}function vR(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let Dn,td;const IR=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,wR=/^(?:[a-z+]+:)?\/\//i,kR=/^www\..*/i,RR=/^(data:)([^,]*),(.*)/i;function CR(e,t){if(!e||t.size===0)return e;try{const n=e.split(";"),r=[];for(let s of n){if(s=s.trim(),!s)continue;const o=s.indexOf(":");if(o===-1){r.push(s);continue}const i=s.slice(0,o).trim();t.has(i)||r.push(s)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(n){return console.warn("Error filtering CSS properties:",n),e}}function Fo(e,t){return(e||"").replace(IR,(n,r,s,o,i,a)=>{const c=s||i||a,u=r||o||"";if(!c)return n;if(wR.test(c)||kR.test(c))return`url(${u}${c}${u})`;if(RR.test(c))return`url(${u}${c}${u})`;if(c[0]==="/")return`url(${u}${vR(t)+c}${u})`;const d=t.split("/"),l=c.split("/");d.pop();for(const p of l)p!=="."&&(p===".."?d.pop():d.push(p));return`url(${u}${d.join("/")}${u})`})}const AR=/^[^ \t\n\r\u000c]+/,xR=/^[, \t\n\r\u000c]+/;function MR(e,t){if(t.trim()==="")return t;let n=0;function r(o){let i;const a=o.exec(t.substring(n));return a?(i=a[0],n+=i.length,i):""}const s=[];for(;r(xR),!(n>=t.length);){let o=r(AR);if(o.slice(-1)===",")o=Hn(e,o.substring(0,o.length-1)),s.push(o);else{let i="";o=Hn(e,o);let a=!1;for(;;){const c=t.charAt(n);if(c===""){s.push((o+i).trim());break}else if(a)c===")"&&(a=!1);else if(c===","){n+=1,s.push((o+i).trim());break}else c==="("&&(a=!0);i+=c,n+=1}}}return s.join(", ")}const nd=new WeakMap;function Hn(e,t){return!t||t.trim()===""?t:Si(e,t)}function NR(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Si(e,t){let n=nd.get(e);if(n||(n=e.createElement("a"),nd.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function zh(e,t,n,r,s,o,i){if(!r)return r;if(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#"))return Hn(e,r);if(n==="xlink:href"&&r[0]!=="#")return Hn(e,r);if(n==="background"&&(t==="table"||t==="td"||t==="th"))return Hn(e,r);if(n==="srcset")return MR(e,r);if(n==="style"){let a=Fo(r,Si(e));return i&&i.size>0&&(a=CR(a,i)),a}else if(t==="object"&&n==="data")return Hn(e,r);return typeof o=="function"?o(n,r,s):r}function Gh(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function OR(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let s=e.classList.length;s--;){const o=e.classList[s];if(t.test(o))return!0}if(n)return e.matches(n)}catch{}return!1}function PR(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function mn(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:mn(e.parentNode,t,n,r+1)}function Wn(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(PR(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function cr(e,t,n,r,s,o){try{const i=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(i===null)return!1;if(i.tagName==="INPUT"){const u=i.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let a=-1,c=-1;if(o){if(c=mn(i,Wn(r,s)),c<0)return!0;a=mn(i,Wn(t,n),c>=0?c:1/0)}else{if(a=mn(i,Wn(t,n)),a<0)return!1;c=mn(i,Wn(r,s),a>=0?a:1/0)}return a>=0?c>=0?a<=c:!0:c>=0?!1:!!o}catch{}return!!o}function LR(e,t,n){const r=e.contentWindow;if(!r)return;let s=!1,o;try{o=r.document.readyState}catch{return}if(o!=="complete"){const a=Da(()=>{s||(t(),s=!0)},n);e.addEventListener("load",()=>{jh(a),s=!0,t()});return}const i="about:blank";if(r.location.href!==i||e.src===i||e.src==="")return Da(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function DR(e,t,n){let r=!1,s;try{s=e.sheet}catch{return}if(s)return;const o=Da(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{jh(o),r=!0,t()})}function FR(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskAttributeFn:c,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:p,inlineStylesheet:f,maskInputOptions:h={},maskTextFn:g,maskInputFn:_,dataURLOptions:y={},inlineImages:b,recordCanvas:A,keepIframeSrcFn:R,newlyAddedElement:U=!1,ignoreCSSAttributes:P}=t,S=$R(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:ve.Document,childNodes:[],compatMode:e.compatMode}:{type:ve.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ve.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:S};case e.ELEMENT_NODE:return UR(e,{doc:n,blockClass:s,blockSelector:o,unblockSelector:i,inlineStylesheet:f,maskAttributeFn:c,maskInputOptions:h,maskInputFn:_,dataURLOptions:y,inlineImages:b,recordCanvas:A,keepIframeSrcFn:R,newlyAddedElement:U,rootId:S,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:p,ignoreCSSAttributes:P});case e.TEXT_NODE:return BR(e,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:d,maskTextSelector:l,unmaskTextSelector:p,maskTextFn:g,maskInputOptions:h,maskInputFn:_,rootId:S});case e.CDATA_SECTION_NODE:return{type:ve.CDATA,textContent:"",rootId:S};case e.COMMENT_NODE:return{type:ve.Comment,textContent:e.textContent||"",rootId:S};default:return!1}}function $R(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function BR(e,t){const{maskAllText:n,maskTextClass:r,unmaskTextClass:s,maskTextSelector:o,unmaskTextSelector:i,maskTextFn:a,maskInputOptions:c,maskInputFn:u,rootId:d}=t,l=e.parentNode&&e.parentNode.tagName;let p=e.textContent;const f=l==="STYLE"?!0:void 0,h=l==="SCRIPT"?!0:void 0,g=l==="TEXTAREA"?!0:void 0;if(f&&p){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(p=Lo(e.parentNode.sheet))}catch(y){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${y}`,e)}p=Fo(p,Si(t.doc))}h&&(p="SCRIPT_PLACEHOLDER");const _=cr(e,r,o,s,i,n);if(!f&&!h&&!g&&p&&_&&(p=a?a(p,e.parentElement):p.replace(/[\S]/g,"*")),g&&p&&(c.textarea||_)&&(p=u?u(p,e.parentNode):p.replace(/[\S]/g,"*")),l==="OPTION"&&p){const y=yi({type:null,tagName:l,maskInputOptions:c});p=Kr({isMasked:cr(e,r,o,s,i,y),element:e,value:p,maskInputFn:u})}return{type:ve.Text,textContent:p||"",isStyle:f,rootId:d}}function UR(e,t){const{doc:n,blockClass:r,blockSelector:s,unblockSelector:o,inlineStylesheet:i,maskInputOptions:a={},maskAttributeFn:c,maskInputFn:u,dataURLOptions:d={},inlineImages:l,recordCanvas:p,keepIframeSrcFn:f,newlyAddedElement:h=!1,rootId:g,maskTextClass:_,unmaskTextClass:y,maskTextSelector:b,unmaskTextSelector:A,ignoreCSSAttributes:R}=t,U=OR(e,r,s,o),P=TR(e);let S={};const C=e.attributes.length;for(let E=0;E<C;E++){const N=e.attributes[E];N.name&&!Gh(P,N.name,N.value)&&(S[N.name]=zh(n,P,ar(N.name),N.value,e,c,R))}if(P==="link"&&i){const E=Array.from(n.styleSheets).find(k=>k.href===e.href);let N=null;E&&(N=Lo(E)),N&&(S.rel=null,S.href=null,S.crossorigin=null,S._cssText=Fo(N,E.href))}if(P==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const E=Lo(e.sheet);E&&(S._cssText=Fo(E,Si(n)))}if(P==="input"||P==="textarea"||P==="select"||P==="option"){const E=e,N=Vc(E),k=Do(E,La(P),N),x=E.checked;if(N!=="submit"&&N!=="button"&&k){const L=cr(E,_,b,y,A,yi({type:N,tagName:La(P),maskInputOptions:a}));S.value=Kr({isMasked:L,element:E,value:k,maskInputFn:u})}x&&(S.checked=x)}if(P==="option"&&(e.selected&&!a.select?S.selected=!0:delete S.selected),P==="canvas"&&p){if(e.__context==="2d")SR(e)||(S.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){const E=e.toDataURL(d.type,d.quality),N=n.createElement("canvas");N.width=e.width,N.height=e.height;const k=N.toDataURL(d.type,d.quality);E!==k&&(S.rr_dataURL=E)}}if(P==="img"&&l){Dn||(Dn=n.createElement("canvas"),td=Dn.getContext("2d"));const E=e,N=E.currentSrc||E.getAttribute("src")||"<unknown-src>",k=E.crossOrigin,x=()=>{E.removeEventListener("load",x);try{Dn.width=E.naturalWidth,Dn.height=E.naturalHeight,td.drawImage(E,0,0),S.rr_dataURL=Dn.toDataURL(d.type,d.quality)}catch(L){if(E.crossOrigin!=="anonymous"){E.crossOrigin="anonymous",E.complete&&E.naturalWidth!==0?x():E.addEventListener("load",x);return}else console.warn(`Cannot inline img src=${N}! Error: ${L}`)}E.crossOrigin==="anonymous"&&(k?S.crossOrigin=k:E.removeAttribute("crossorigin"))};E.complete&&E.naturalWidth!==0?x():E.addEventListener("load",x)}if((P==="audio"||P==="video")&&(S.rr_mediaState=e.paused?"paused":"played",S.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop)),U){const{width:E,height:N}=e.getBoundingClientRect();S={class:S.class,rr_width:`${E}px`,rr_height:`${N}px`}}P==="iframe"&&!f(S.src)&&(!U&&!qh(e)&&(S.rr_src=S.src),delete S.src);let H;try{customElements.get(P)&&(H=!0)}catch{}return{type:ve.Element,tagName:P,attributes:S,childNodes:[],isSVG:NR(e)||void 0,needBlock:U,rootId:g,isCustom:H}}function pe(e){return e==null?"":e.toLowerCase()}function HR(e,t){if(t.comment&&e.type===ve.Comment)return!0;if(e.type===ve.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Hh(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(pe(e.attributes.name).match(/^msapplication-tile(image|color)$/)||pe(e.attributes.name)==="application-name"||pe(e.attributes.rel)==="icon"||pe(e.attributes.rel)==="apple-touch-icon"||pe(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&pe(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(pe(e.attributes.property).match(/^(og|twitter|fb):/)||pe(e.attributes.name).match(/^(og|twitter):/)||pe(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(pe(e.attributes.name)==="robots"||pe(e.attributes.name)==="googlebot"||pe(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(pe(e.attributes.name)==="author"||pe(e.attributes.name)==="generator"||pe(e.attributes.name)==="framework"||pe(e.attributes.name)==="publisher"||pe(e.attributes.name)==="progid"||pe(e.attributes.property).match(/^article:/)||pe(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(pe(e.attributes.name)==="google-site-verification"||pe(e.attributes.name)==="yandex-verification"||pe(e.attributes.name)==="csrf-token"||pe(e.attributes.name)==="p:domain_verify"||pe(e.attributes.name)==="verify-v1"||pe(e.attributes.name)==="verification"||pe(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function jn(e,t){const{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:p=!1,inlineStylesheet:f=!0,maskInputOptions:h={},maskAttributeFn:g,maskTextFn:_,maskInputFn:y,slimDOMOptions:b,dataURLOptions:A={},inlineImages:R=!1,recordCanvas:U=!1,onSerialize:P,onIframeLoad:S,iframeLoadTimeout:C=5e3,onBlockedImageLoad:H,onStylesheetLoad:E,stylesheetLoadTimeout:N=5e3,keepIframeSrcFn:k=()=>!1,newlyAddedElement:x=!1,ignoreCSSAttributes:L}=t;let{preserveWhiteSpace:ee=!0}=t;const Q=FR(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:g,maskTextFn:_,maskInputFn:y,dataURLOptions:A,inlineImages:R,recordCanvas:U,keepIframeSrcFn:k,newlyAddedElement:x,ignoreCSSAttributes:L});if(!Q)return console.warn(e,"not serialized"),null;let re;r.hasNode(e)?re=r.getId(e):HR(Q,b)||!ee&&Q.type===ve.Text&&!Q.isStyle&&!Q.textContent.replace(/^\s+|\s+$/gm,"").length?re=Xr:re=Yc();const T=Object.assign(Q,{id:re});if(r.add(e,T),re===Xr)return null;P&&P(e);let z=!p;if(T.type===ve.Element){z=z&&!T.needBlock;const M=e.shadowRoot;M&&Br(M)&&(T.isShadowHost=!0)}if((T.type===ve.Document||T.type===ve.Element)&&z){b.headWhitespace&&T.type===ve.Element&&T.tagName==="head"&&(ee=!1);const M={doc:n,mirror:r,blockClass:s,blockSelector:o,maskAllText:a,unblockSelector:i,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:p,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:g,maskTextFn:_,maskInputFn:y,slimDOMOptions:b,dataURLOptions:A,inlineImages:R,recordCanvas:U,preserveWhiteSpace:ee,onSerialize:P,onIframeLoad:S,iframeLoadTimeout:C,onBlockedImageLoad:H,onStylesheetLoad:E,stylesheetLoadTimeout:N,keepIframeSrcFn:k,ignoreCSSAttributes:L},F=e.childNodes?Array.from(e.childNodes):[];for(const ae of F){const te=jn(ae,M);te&&T.childNodes.push(te)}if(dR(e)&&e.shadowRoot)for(const ae of Array.from(e.shadowRoot.childNodes)){const te=jn(ae,M);te&&(Br(e.shadowRoot)&&(te.isShadow=!0),T.childNodes.push(te))}}if(e.parentNode&&$r(e.parentNode)&&Br(e.parentNode)&&(T.isShadow=!0),T.type===ve.Element&&T.tagName==="iframe"&&!T.needBlock&&LR(e,()=>{const M=qh(e);if(M&&S){const F=jn(M,{doc:M,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:g,maskTextFn:_,maskInputFn:y,slimDOMOptions:b,dataURLOptions:A,inlineImages:R,recordCanvas:U,preserveWhiteSpace:ee,onSerialize:P,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:E,stylesheetLoadTimeout:N,keepIframeSrcFn:k,ignoreCSSAttributes:L});F&&S(e,F)}},C),T.type===ve.Element&&T.tagName==="img"&&!e.complete&&T.needBlock){const M=e,F=()=>{if(M.isConnected&&!M.complete&&H)try{const ae=M.getBoundingClientRect();ae.width>0&&ae.height>0&&H(M,T,ae)}catch{}M.removeEventListener("load",F)};M.isConnected&&M.addEventListener("load",F)}return T.type===ve.Element&&T.tagName==="link"&&typeof T.attributes.rel=="string"&&(T.attributes.rel==="stylesheet"||T.attributes.rel==="preload"&&typeof T.attributes.href=="string"&&Hh(T.attributes.href)==="css")&&DR(e,()=>{if(E){const M=jn(e,{doc:n,mirror:r,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:a,maskTextClass:c,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:l,skipChild:!1,inlineStylesheet:f,maskInputOptions:h,maskAttributeFn:g,maskTextFn:_,maskInputFn:y,slimDOMOptions:b,dataURLOptions:A,inlineImages:R,recordCanvas:U,preserveWhiteSpace:ee,onSerialize:P,onIframeLoad:S,iframeLoadTimeout:C,onStylesheetLoad:E,stylesheetLoadTimeout:N,keepIframeSrcFn:k,ignoreCSSAttributes:L});M&&E(e,M)}},N),T.type===ve.Element&&delete T.needBlock,T}function WR(e,t){const{mirror:n=new Uh,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:o=null,maskAllText:i=!1,maskTextClass:a="rr-mask",unmaskTextClass:c=null,maskTextSelector:u=null,unmaskTextSelector:d=null,inlineStylesheet:l=!0,inlineImages:p=!1,recordCanvas:f=!1,maskAllInputs:h=!1,maskAttributeFn:g,maskTextFn:_,maskInputFn:y,slimDOM:b=!1,dataURLOptions:A,preserveWhiteSpace:R,onSerialize:U,onIframeLoad:P,iframeLoadTimeout:S,onBlockedImageLoad:C,onStylesheetLoad:H,stylesheetLoadTimeout:E,keepIframeSrcFn:N=()=>!1,ignoreCSSAttributes:k=new Set([])}=t||{};return jn(e,{doc:e,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,maskAllText:i,maskTextClass:a,unmaskTextClass:c,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:l,maskInputOptions:h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:h===!1?{}:h,maskAttributeFn:g,maskTextFn:_,maskInputFn:y,slimDOMOptions:b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:b==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:b===!1?{}:b,dataURLOptions:A,inlineImages:p,recordCanvas:f,preserveWhiteSpace:R,onSerialize:U,onIframeLoad:P,iframeLoadTimeout:S,onBlockedImageLoad:C,onStylesheetLoad:H,stylesheetLoadTimeout:E,keepIframeSrcFn:N,newlyAddedElement:!1,ignoreCSSAttributes:k})}function Ue(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Fn=`Please stop import mirror directly. Instead of that,\r
495
- now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
496
- or you can use record.mirror to access the mirror instance during recording.`;let rd={map:{},getId(){return console.error(Fn),-1},getNode(){return console.error(Fn),null},removeNodeFromMap(){console.error(Fn)},has(){return console.error(Fn),!1},reset(){console.error(Fn)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(rd=new Proxy(rd,{get(e,t,n){return t==="map"&&console.error(Fn),Reflect.get(e,t,n)}}));function Qr(e,t,n={}){let r=null,s=0;return function(...o){const i=Date.now();!s&&n.leading===!1&&(s=i);const a=t-(i-s),c=this;a<=0||a>t?(r&&(JR(r),r=null),s=i,e.apply(c,o)):!r&&n.trailing!==!1&&(r=bi(()=>{s=n.leading===!1?0:Date.now(),r=null,e.apply(c,o)},a))}}function Vh(e,t,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(i){bi(()=>{n.set.call(this,i)},0),o&&o.set&&o.set.call(this,i)}}),()=>Vh(e,t,o||{},!0)}function Jc(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}let $o=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||($o=()=>new Date().getTime());function Yh(e){const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0}}function Jh(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Kh(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Xh(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Ge(e,t,n,r,s){if(!e)return!1;const o=Xh(e);if(!o)return!1;const i=Wn(t,n);if(!s){const u=r&&o.matches(r);return i(o)&&!u}const a=mn(o,i);let c=-1;return a<0?!1:(r&&(c=mn(o,Wn(null,r))),a>-1&&c<0?!0:a<c)}function jR(e,t){return t.getId(e)!==-1}function Qi(e,t){return t.getId(e)===Xr}function Qh(e,t){if($r(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?Qh(e.parentNode,t):!0:!0}function Fa(e){return!!e.changedTouches}function qR(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function Zh(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function em(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function $a(e){return!!e?.shadowRoot}class zR{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function tm(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function GR(e){let t=e,n;for(;n=tm(t);)t=n;return t}function VR(e){const t=e.ownerDocument;if(!t)return!1;const n=GR(e);return t.contains(n)}function nm(e){const t=e.ownerDocument;return t?t.contains(e)||VR(e):!1}const sd={};function Kc(e){const t=sd[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(s)}catch{}return sd[e]=r.bind(window)}function YR(...e){return Kc("requestAnimationFrame")(...e)}function bi(...e){return Kc("setTimeout")(...e)}function JR(...e){return Kc("clearTimeout")(...e)}var J=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(J||{}),q=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(q||{}),$e=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))($e||{}),kt=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(kt||{}),$n=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))($n||{});function Xc(e){try{return e.contentDocument}catch{}}function KR(e){try{return e.contentWindow}catch{}}function od(e){return"__ln"in e}class XR{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=n?.next||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&od(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&od(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const id=(e,t)=>`${e}@${t}`;class QR{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new XR,s=c=>{let u=c,d=Xr;for(;d===Xr;)u=u&&u.nextSibling,d=u&&this.mirror.getId(u);return d},o=c=>{if(!c.parentNode||!nm(c))return;const u=$r(c.parentNode)?this.mirror.getId(tm(c)):this.mirror.getId(c.parentNode),d=s(c);if(u===-1||d===-1)return r.addNode(c);const l=jn(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:p=>{Zh(p,this.mirror)&&!Ge(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(p),em(p,this.mirror)&&this.stylesheetManager.trackLinkElement(p),$a(c)&&this.shadowDomManager.addShadowRoot(c.shadowRoot,this.doc)},onIframeLoad:(p,f)=>{Ge(p,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(p,f),p.contentWindow&&this.canvasManager.addWindow(p.contentWindow),this.shadowDomManager.observeAttachShadow(p))},onStylesheetLoad:(p,f)=>{this.stylesheetManager.attachLinkElement(p,f)},onBlockedImageLoad:(p,f,{width:h,height:g})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:f.id,attributes:{style:{width:`${h}px`,height:`${g}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});l&&(t.push({parentId:u,nextId:d,node:l}),n.add(l.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)ad(this.removes,c,this.mirror)&&!this.movedSet.has(c.parentNode)||o(c);for(const c of this.addedSet)!cd(this.droppedSet,c)&&!ad(this.removes,c,this.mirror)||cd(this.movedSet,c)?o(c):this.droppedSet.add(c);let i=null;for(;r.length;){let c=null;if(i){const u=this.mirror.getId(i.value.parentNode),d=s(i.value);u!==-1&&d!==-1&&(c=i)}if(!c){let u=r.tail;for(;u;){const d=u;if(u=u.previous,d){const l=this.mirror.getId(d.value.parentNode);if(s(d.value)===-1)continue;if(l!==-1){c=d;break}else{const f=d.value;if(f.parentNode&&f.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const h=f.parentNode.host;if(this.mirror.getId(h)!==-1){c=d;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}i=c.previous,r.removeNode(c.value),o(c.value)}const a={texts:this.texts.map(c=>({id:this.mirror.getId(c.node),value:c.value})).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:u}=c;if(typeof u.style=="string"){const d=JSON.stringify(c.styleDiff),l=JSON.stringify(c._unchangedStyles);d.length<u.style.length&&(d+l).split("var(").length===u.style.split("var(").length&&(u.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:u}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=t=>{if(!Qi(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!Ge(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:cr(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,Xh(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,s=t.target.getAttribute(r);if(r==="value"){const i=Vc(n),a=n.tagName;s=Do(n,a,i);const c=yi({maskInputOptions:this.maskInputOptions,tagName:a,type:i}),u=cr(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,c);s=Kr({isMasked:u,element:n,value:s,maskInputFn:this.maskInputFn})}if(Ge(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===t.oldValue)return;let o=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(s))if(!Xc(n))r="rr_src";else return;if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!Gh(n.tagName,r)&&(o.attributes[r]=zh(this.doc,ar(n.tagName),ar(r),s,n,this.maskAttributeFn),r==="style")){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");t.oldValue&&i.setAttribute("style",t.oldValue);for(const a of Array.from(n.style)){const c=n.style.getPropertyValue(a),u=n.style.getPropertyPriority(a);c!==i.style.getPropertyValue(a)||u!==i.style.getPropertyPriority(a)?u===""?o.styleDiff[a]=c:o.styleDiff[a]=[c,u]:o._unchangedStyles[a]=[c,u]}for(const a of Array.from(i.style))n.style.getPropertyValue(a)===""&&(o.styleDiff[a]=!1)}break}case"childList":{if(Ge(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),s=$r(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);Ge(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||Qi(n,this.mirror)||!jR(n,this.mirror)||(this.addedSet.has(n)?(Ba(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||Qh(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[id(r,s)]?Ba(this.movedSet,n):this.removes.push({parentId:s,id:r,isShadow:$r(t.target)&&Br(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Qi(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[id(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);Ge(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEach(r=>this.genAdds(r)),$a(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(n=>{this[n]=t[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function Ba(e,t){e.delete(t),t.childNodes?.forEach(n=>Ba(e,n))}function ad(e,t,n){return e.length===0?!1:ZR(e,t,n)}function ZR(e,t,n){let r=t.parentNode;for(;r;){const s=n.getId(r);if(e.some(o=>o.id===s))return!0;r=r.parentNode}return!1}function cd(e,t){return e.size===0?!1:rm(e,t)}function rm(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:rm(e,n):!1}let Ur;function eC(e){Ur=e}function tC(){Ur=void 0}const ne=e=>Ur?(...n)=>{try{return e(...n)}catch(r){if(Ur&&Ur(r)===!0)return()=>{};throw r}}:e,qn=[];function Is(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function sm(e,t){const n=new QR;qn.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const s=window?.Zone?.__symbol__?.("MutationObserver");s&&window[s]&&(r=window[s]);const o=new r(ne(i=>{e.onMutation&&e.onMutation(i)===!1||n.processMutations.bind(n)(i)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function nC({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const s=typeof t.mousemove=="number"?t.mousemove:50,o=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let i=[],a;const c=Qr(ne(l=>{const p=Date.now()-a;e(i.map(f=>(f.timeOffset-=p,f)),l),i=[],a=null}),o),u=ne(Qr(ne(l=>{const p=Is(l),{clientX:f,clientY:h}=Fa(l)?l.changedTouches[0]:l;a||(a=$o()),i.push({x:f,y:h,id:r.getId(p),timeOffset:$o()-a}),c(typeof DragEvent<"u"&&l instanceof DragEvent?q.Drag:l instanceof MouseEvent?q.MouseMove:q.TouchMove)}),s,{trailing:!1})),d=[Ue("mousemove",u,n),Ue("touchmove",u,n),Ue("drag",u,n)];return ne(()=>{d.forEach(l=>l())})}function rC({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){if(i.mouseInteraction===!1)return()=>{};const a=i.mouseInteraction===!0||i.mouseInteraction===void 0?{}:i.mouseInteraction,c=[];let u=null;const d=l=>p=>{const f=Is(p);if(Ge(f,r,s,o,!0))return;let h=null,g=l;if("pointerType"in p){switch(p.pointerType){case"mouse":h=kt.Mouse;break;case"touch":h=kt.Touch;break;case"pen":h=kt.Pen;break}h===kt.Touch?$e[l]===$e.MouseDown?g="TouchStart":$e[l]===$e.MouseUp&&(g="TouchEnd"):kt.Pen}else Fa(p)&&(h=kt.Touch);h!==null?(u=h,(g.startsWith("Touch")&&h===kt.Touch||g.startsWith("Mouse")&&h===kt.Mouse)&&(h=null)):$e[l]===$e.Click&&(h=u,u=null);const _=Fa(p)?p.changedTouches[0]:p;if(!_)return;const y=n.getId(f),{clientX:b,clientY:A}=_;ne(e)({type:$e[g],id:y,x:b,y:A,...h!==null&&{pointerType:h}})};return Object.keys($e).filter(l=>Number.isNaN(Number(l))&&!l.endsWith("_Departed")&&a[l]!==!1).forEach(l=>{let p=ar(l);const f=d(l);if(window.PointerEvent)switch($e[l]){case $e.MouseDown:case $e.MouseUp:p=p.replace("mouse","pointer");break;case $e.TouchStart:case $e.TouchEnd:return}c.push(Ue(p,f,t))}),ne(()=>{c.forEach(l=>l())})}function om({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,sampling:i}){const a=ne(Qr(ne(c=>{const u=Is(c);if(!u||Ge(u,r,s,o,!0))return;const d=n.getId(u);if(u===t&&t.defaultView){const l=Yh(t.defaultView);e({id:d,x:l.left,y:l.top})}else e({id:d,x:u.scrollLeft,y:u.scrollTop})}),i.scroll||100));return Ue("scroll",a,t)}function sC({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const s=ne(Qr(ne(()=>{const o=Jh(),i=Kh();(n!==o||r!==i)&&(e({width:Number(i),height:Number(o)}),n=o,r=i)}),200));return Ue("resize",s,t)}const oC=["INPUT","TEXTAREA","SELECT"],ud=new WeakMap;function iC({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,ignoreClass:i,ignoreSelector:a,maskInputOptions:c,maskInputFn:u,sampling:d,userTriggeredOnInput:l,maskTextClass:p,unmaskTextClass:f,maskTextSelector:h,unmaskTextSelector:g}){function _(S){let C=Is(S);const H=S.isTrusted,E=C&&La(C.tagName);if(E==="OPTION"&&(C=C.parentElement),!C||!E||oC.indexOf(E)<0||Ge(C,r,s,o,!0))return;const N=C;if(N.classList.contains(i)||a&&N.matches(a))return;const k=Vc(C);let x=Do(N,E,k),L=!1;const ee=yi({maskInputOptions:c,tagName:E,type:k}),Q=cr(C,p,h,f,g,ee);(k==="radio"||k==="checkbox")&&(L=C.checked),x=Kr({isMasked:Q,element:C,value:x,maskInputFn:u}),y(C,l?{text:x,isChecked:L,userTriggered:H}:{text:x,isChecked:L});const re=C.name;k==="radio"&&re&&L&&t.querySelectorAll(`input[type="radio"][name="${re}"]`).forEach(T=>{if(T!==C){const z=Kr({isMasked:Q,element:T,value:Do(T,E,k),maskInputFn:u});y(T,l?{text:z,isChecked:!L,userTriggered:!1}:{text:z,isChecked:!L})}})}function y(S,C){const H=ud.get(S);if(!H||H.text!==C.text||H.isChecked!==C.isChecked){ud.set(S,C);const E=n.getId(S);ne(e)({...C,id:E})}}const A=(d.input==="last"?["change"]:["input","change"]).map(S=>Ue(S,ne(_),t)),R=t.defaultView;if(!R)return()=>{A.forEach(S=>S())};const U=R.Object.getOwnPropertyDescriptor(R.HTMLInputElement.prototype,"value"),P=[[R.HTMLInputElement.prototype,"value"],[R.HTMLInputElement.prototype,"checked"],[R.HTMLSelectElement.prototype,"value"],[R.HTMLTextAreaElement.prototype,"value"],[R.HTMLSelectElement.prototype,"selectedIndex"],[R.HTMLOptionElement.prototype,"selected"]];return U&&U.set&&A.push(...P.map(S=>Vh(S[0],S[1],{set(){ne(_)({target:this,isTrusted:!1})}},!1,R))),ne(()=>{A.forEach(S=>S())})}function Bo(e){const t=[];function n(r,s){if(Bs("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Bs("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Bs("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Bs("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const i=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(i)}else if(r.parentStyleSheet){const i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(i)}return s}return n(e,t)}function zt(e,t,n){let r,s;return e?(e.ownerNode?r=t.getId(e.ownerNode):s=n.getId(e),{styleId:s,id:r}):{}}function aC({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:ne((d,l,p)=>{const[f,h]=p,{id:g,styleId:_}=zt(l,t,n.styleMirror);return(g&&g!==-1||_&&_!==-1)&&e({id:g,styleId:_,adds:[{rule:f,index:h}]}),d.apply(l,p)})});const o=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:ne((d,l,p)=>{const[f]=p,{id:h,styleId:g}=zt(l,t,n.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,removes:[{index:f}]}),d.apply(l,p)})});let i;r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:ne((d,l,p)=>{const[f]=p,{id:h,styleId:g}=zt(l,t,n.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,replace:f}),d.apply(l,p)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:ne((d,l,p)=>{const[f]=p,{id:h,styleId:g}=zt(l,t,n.styleMirror);return(h&&h!==-1||g&&g!==-1)&&e({id:h,styleId:g,replaceSync:f}),d.apply(l,p)})}));const c={};Us("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Us("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Us("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Us("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(c).forEach(([d,l])=>{u[d]={insertRule:l.prototype.insertRule,deleteRule:l.prototype.deleteRule},l.prototype.insertRule=new Proxy(u[d].insertRule,{apply:ne((p,f,h)=>{const[g,_]=h,{id:y,styleId:b}=zt(f.parentStyleSheet,t,n.styleMirror);return(y&&y!==-1||b&&b!==-1)&&e({id:y,styleId:b,adds:[{rule:g,index:[...Bo(f),_||0]}]}),p.apply(f,h)})}),l.prototype.deleteRule=new Proxy(u[d].deleteRule,{apply:ne((p,f,h)=>{const[g]=h,{id:_,styleId:y}=zt(f.parentStyleSheet,t,n.styleMirror);return(_&&_!==-1||y&&y!==-1)&&e({id:_,styleId:y,removes:[{index:[...Bo(f),g]}]}),p.apply(f,h)})})}),ne(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=o,i&&(r.CSSStyleSheet.prototype.replace=i),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(c).forEach(([d,l])=>{l.prototype.insertRule=u[d].insertRule,l.prototype.deleteRule=u[d].deleteRule})})}function im({mirror:e,stylesheetManager:t},n){let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const s=n.nodeName==="#document"?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,o=s?.prototype?Object.getOwnPropertyDescriptor(s?.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!s||!o?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){return o.get?.call(this)},set(i){const a=o.set?.call(this,i);if(r!==null&&r!==-1)try{t.adoptStyleSheets(i,r)}catch{}return a}}),ne(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))}function cC({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:s}){const o=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:ne((a,c,u)=>{const[d,l,p]=u;if(n.has(d))return o.apply(c,[d,l,p]);const{id:f,styleId:h}=zt(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(f&&f!==-1||h&&h!==-1)&&e({id:f,styleId:h,set:{property:d,value:l,priority:p},index:Bo(c.parentRule)}),a.apply(c,u)})});const i=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:ne((a,c,u)=>{const[d]=u;if(n.has(d))return i.apply(c,[d]);const{id:l,styleId:p}=zt(c.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||p&&p!==-1)&&e({id:l,styleId:p,remove:{property:d},index:Bo(c.parentRule)}),a.apply(c,u)})}),ne(()=>{s.CSSStyleDeclaration.prototype.setProperty=o,s.CSSStyleDeclaration.prototype.removeProperty=i})}function uC({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:s,sampling:o,doc:i}){const a=ne(u=>Qr(ne(d=>{const l=Is(d);if(!l||Ge(l,t,n,r,!0))return;const{currentTime:p,volume:f,muted:h,playbackRate:g}=l;e({type:u,id:s.getId(l),currentTime:p,volume:f,muted:h,playbackRate:g})}),o.media||500)),c=[Ue("play",a($n.Play),i),Ue("pause",a($n.Pause),i),Ue("seeked",a($n.Seeked),i),Ue("volumechange",a($n.VolumeChange),i),Ue("ratechange",a($n.RateChange),i)];return ne(()=>{c.forEach(u=>u())})}function lC({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],s=new WeakMap,o=n.FontFace;n.FontFace=function(c,u,d){const l=new o(c,u,d);return s.set(l,{family:c,buffer:typeof u!="string",descriptors:d,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),l};const i=Jc(t.fonts,"add",function(a){return function(c){return bi(ne(()=>{const u=s.get(c);u&&(e(u),s.delete(c))}),0),a.apply(this,[c])}});return r.push(()=>{n.FontFace=o}),r.push(i),ne(()=>{r.forEach(a=>a())})}function dC(e){const{doc:t,mirror:n,blockClass:r,blockSelector:s,unblockSelector:o,selectionCb:i}=e;let a=!0;const c=ne(()=>{const u=t.getSelection();if(!u||a&&u?.isCollapsed)return;a=u.isCollapsed||!1;const d=[],l=u.rangeCount||0;for(let p=0;p<l;p++){const f=u.getRangeAt(p),{startContainer:h,startOffset:g,endContainer:_,endOffset:y}=f;Ge(h,r,s,o,!0)||Ge(_,r,s,o,!0)||d.push({start:n.getId(h),startOffset:g,end:n.getId(_),endOffset:y})}i({ranges:d})});return c(),Ue("selectionchange",c)}function fC({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:Jc(n.customElements,"define",function(s){return function(o,i,a){try{t({define:{name:o}})}catch{}return s.apply(this,[o,i,a])}})}function pC(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=sm(e,e.doc));const s=nC(e),o=rC(e),i=om(e),a=sC(e,{win:n}),c=iC(e),u=uC(e);let d=()=>{},l=()=>{},p=()=>{},f=()=>{};e.recordDOM&&(d=aC(e,{win:n}),l=im(e,e.doc),p=cC(e,{win:n}),e.collectFonts&&(f=lC(e)));const h=dC(e),g=fC(e),_=[];for(const y of e.plugins)_.push(y.observer(y.callback,n,y.options));return ne(()=>{qn.forEach(y=>y.reset()),r?.disconnect(),s(),o(),i(),a(),c(),u(),d(),l(),p(),f(),h(),g(),_.forEach(y=>y())})}function Bs(e){return typeof window[e]<"u"}function Us(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class Ua{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,s){const o=r||this.getIdToRemoteIdMap(t),i=s||this.getRemoteIdToIdMap(t);let a=o.get(n);return a||(a=this.generateIdFn(),o.set(n,a),i.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),s=this.getRemoteIdToIdMap(t);return n.map(o=>this.getId(t,o,r,s))}getRemoteId(t,n,r){const s=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const o=s.get(n);return o||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(s=>this.getRemoteId(t,s,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class hC{constructor(){this.crossOriginIframeMirror=new Ua(Yc),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class mC{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new Ua(Yc),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Ua(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&t.contentWindow?.addEventListener("message",this.handleMessage.bind(this)),this.loadListener?.(t);const r=Xc(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const s=this.crossOriginIframeMap.get(t.source);if(!s)return;const o=this.transformCrossOriginEvent(s,n.data.event);o&&this.wrappedEmit(o,n.data.isCheckout)}transformCrossOriginEvent(t,n){switch(n.type){case J.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const r=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,r),this.patchRootIdOnNode(n.data.node,r),{timestamp:n.timestamp,type:J.IncrementalSnapshot,data:{source:q.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case J.Meta:case J.Load:case J.DomContentLoaded:return!1;case J.Plugin:return n;case J.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case J.IncrementalSnapshot:switch(n.data.source){case q.Mutation:return n.data.adds.forEach(r=>{this.replaceIds(r,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,t);const s=this.crossOriginIframeRootIdMap.get(t);s&&this.patchRootIdOnNode(r.node,s)}),n.data.removes.forEach(r=>{this.replaceIds(r,t,["parentId","id"])}),n.data.attributes.forEach(r=>{this.replaceIds(r,t,["id"])}),n.data.texts.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case q.Drag:case q.TouchMove:case q.MouseMove:return n.data.positions.forEach(r=>{this.replaceIds(r,t,["id"])}),n;case q.ViewportResize:return!1;case q.MediaInteraction:case q.MouseInteraction:case q.Scroll:case q.CanvasMutation:case q.Input:return this.replaceIds(n.data,t,["id"]),n;case q.StyleSheetRule:case q.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case q.Font:return n;case q.Selection:return n.data.ranges.forEach(r=>{this.replaceIds(r,t,["start","end"])}),n;case q.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),n.data.styles?.forEach(r=>{this.replaceStyleIds(r,t,["styleId"])}),n}}return!1}replace(t,n,r,s){for(const o of s)!Array.isArray(n[o])&&typeof n[o]!="number"||(Array.isArray(n[o])?n[o]=t.getIds(r,n[o]):n[o]=t.getId(r,n[o]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==ve.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class gC{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class _C{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!Br(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=sm({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(om({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),bi(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(im({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=Xc(t),r=KR(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(Jc(t.prototype,"attachShadow",function(s){return function(o){const i=s.call(this,o);return this.shadowRoot&&nm(this)&&r.addShadowRoot(this.shadowRoot,n),i}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}var ld="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yC=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Hs=0;Hs<ld.length;Hs++)yC[ld.charCodeAt(Hs)]=Hs;class dd{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}class SC{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new zR,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},s=[];for(const o of t){let i;this.styleMirror.has(o)?i=this.styleMirror.getId(o):(i=this.styleMirror.add(o),s.push({styleId:i,rules:Array.from(o.rules||CSSRule,(a,c)=>({rule:Bh(a),index:c}))})),r.styleIds.push(i)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class bC{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(s=>s!==n)}add(t,n){this.active||(this.active=!0,YR(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let ye,Uo;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const ut=yR();function pt(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:o=null,unblockSelector:i=null,ignoreClass:a="rr-ignore",ignoreSelector:c=null,maskAllText:u=!1,maskTextClass:d="rr-mask",unmaskTextClass:l=null,maskTextSelector:p=null,unmaskTextSelector:f=null,inlineStylesheet:h=!0,maskAllInputs:g,maskInputOptions:_,slimDOMOptions:y,maskAttributeFn:b,maskInputFn:A,maskTextFn:R,maxCanvasSize:U=null,packFn:P,sampling:S={},dataURLOptions:C={},mousemoveWait:H,recordDOM:E=!0,recordCanvas:N=!1,recordCrossOriginIframes:k=!1,recordAfter:x=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:L=!1,collectFonts:ee=!1,inlineImages:Q=!1,plugins:re,keepIframeSrcFn:T=()=>!1,ignoreCSSAttributes:z=new Set([]),errorHandler:M,onMutation:F,getCanvasManager:ae}=e;eC(M);const te=k?window.parent===window:!0;let Ee=!1;if(!te)try{window.parent.document&&(Ee=!1)}catch{Ee=!0}if(te&&!t)throw new Error("emit function is required");if(!te&&!Ee)return()=>{};H!==void 0&&S.mousemove===void 0&&(S.mousemove=H),ut.reset();const je=g===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:_!==void 0?_:{},Xe=y===!0||y==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:y==="all",headMetaDescKeywords:y==="all"}:y||{};qR();let xe,Re=0;const Qe=X=>{for(const Fe of re||[])Fe.eventProcessor&&(X=Fe.eventProcessor(X));return P&&!Ee&&(X=P(X)),X};ye=(X,Fe)=>{const Z=X;if(Z.timestamp=$o(),qn[0]?.isFrozen()&&Z.type!==J.FullSnapshot&&!(Z.type===J.IncrementalSnapshot&&Z.data.source===q.Mutation)&&qn.forEach(Me=>Me.unfreeze()),te)t?.(Qe(Z),Fe);else if(Ee){const Me={type:"rrweb",event:Qe(Z),origin:window.location.origin,isCheckout:Fe};window.parent.postMessage(Me,"*")}if(Z.type===J.FullSnapshot)xe=Z,Re=0;else if(Z.type===J.IncrementalSnapshot){if(Z.data.source===q.Mutation&&Z.data.isAttachIframe)return;Re++;const Me=r&&Re>=r,oe=n&&xe&&Z.timestamp-xe.timestamp>n;(Me||oe)&&De(!0)}};const qe=X=>{ye({type:J.IncrementalSnapshot,data:{source:q.Mutation,...X}})},wr=X=>ye({type:J.IncrementalSnapshot,data:{source:q.Scroll,...X}}),ks=X=>ye({type:J.IncrementalSnapshot,data:{source:q.CanvasMutation,...X}}),Rs=X=>ye({type:J.IncrementalSnapshot,data:{source:q.AdoptedStyleSheet,...X}}),ct=new SC({mutationCb:qe,adoptedStyleSheetCb:Rs}),se=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new hC:new mC({mirror:ut,mutationCb:qe,stylesheetManager:ct,recordCrossOriginIframes:k,wrappedEmit:ye});for(const X of re||[])X.getMirror&&X.getMirror({nodeMirror:ut,crossOriginIframeMirror:se.crossOriginIframeMirror,crossOriginIframeStyleMirror:se.crossOriginIframeStyleMirror});const ge=new bC,Ze=TC(ae,{mirror:ut,win:window,mutationCb:X=>ye({type:J.IncrementalSnapshot,data:{source:q.CanvasMutation,...X}}),recordCanvas:N,blockClass:s,blockSelector:o,unblockSelector:i,maxCanvasSize:U,sampling:S.canvas,dataURLOptions:C,errorHandler:M}),Ce=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new gC:new _C({mutationCb:qe,scrollCb:wr,bypassOptions:{onMutation:F,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:h,maskInputOptions:je,dataURLOptions:C,maskAttributeFn:b,maskTextFn:R,maskInputFn:A,recordCanvas:N,inlineImages:Q,sampling:S,slimDOMOptions:Xe,iframeManager:se,stylesheetManager:ct,canvasManager:Ze,keepIframeSrcFn:T,processedNodeManager:ge,ignoreCSSAttributes:z},mirror:ut}),De=(X=!1)=>{if(!E)return;ye({type:J.Meta,data:{href:window.location.href,width:Kh(),height:Jh()}},X),ct.reset(),Ce.init(),qn.forEach(Z=>Z.lock());const Fe=WR(document,{mirror:ut,blockClass:s,blockSelector:o,unblockSelector:i,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:f,inlineStylesheet:h,maskAllInputs:je,maskAttributeFn:b,maskInputFn:A,maskTextFn:R,slimDOM:Xe,dataURLOptions:C,recordCanvas:N,inlineImages:Q,onSerialize:Z=>{Zh(Z,ut)&&se.addIframe(Z),em(Z,ut)&&ct.trackLinkElement(Z),$a(Z)&&Ce.addShadowRoot(Z.shadowRoot,document)},onIframeLoad:(Z,Me)=>{se.attachIframe(Z,Me),Z.contentWindow&&Ze.addWindow(Z.contentWindow),Ce.observeAttachShadow(Z)},onStylesheetLoad:(Z,Me)=>{ct.attachLinkElement(Z,Me)},onBlockedImageLoad:(Z,Me,{width:oe,height:kr})=>{qe({adds:[],removes:[],texts:[],attributes:[{id:Me.id,attributes:{style:{width:`${oe}px`,height:`${kr}px`}}}]})},keepIframeSrcFn:T,ignoreCSSAttributes:z});if(!Fe)return console.warn("Failed to snapshot the document");ye({type:J.FullSnapshot,data:{node:Fe,initialOffset:Yh(window)}}),qn.forEach(Z=>Z.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ct.adoptStyleSheets(document.adoptedStyleSheets,ut.getId(document))};Uo=De;try{const X=[],Fe=Me=>ne(pC)({onMutation:F,mutationCb:qe,mousemoveCb:(oe,kr)=>ye({type:J.IncrementalSnapshot,data:{source:kr,positions:oe}}),mouseInteractionCb:oe=>ye({type:J.IncrementalSnapshot,data:{source:q.MouseInteraction,...oe}}),scrollCb:wr,viewportResizeCb:oe=>ye({type:J.IncrementalSnapshot,data:{source:q.ViewportResize,...oe}}),inputCb:oe=>ye({type:J.IncrementalSnapshot,data:{source:q.Input,...oe}}),mediaInteractionCb:oe=>ye({type:J.IncrementalSnapshot,data:{source:q.MediaInteraction,...oe}}),styleSheetRuleCb:oe=>ye({type:J.IncrementalSnapshot,data:{source:q.StyleSheetRule,...oe}}),styleDeclarationCb:oe=>ye({type:J.IncrementalSnapshot,data:{source:q.StyleDeclaration,...oe}}),canvasMutationCb:ks,fontCb:oe=>ye({type:J.IncrementalSnapshot,data:{source:q.Font,...oe}}),selectionCb:oe=>{ye({type:J.IncrementalSnapshot,data:{source:q.Selection,...oe}})},customElementCb:oe=>{ye({type:J.IncrementalSnapshot,data:{source:q.CustomElement,...oe}})},blockClass:s,ignoreClass:a,ignoreSelector:c,maskAllText:u,maskTextClass:d,unmaskTextClass:l,maskTextSelector:p,unmaskTextSelector:f,maskInputOptions:je,inlineStylesheet:h,sampling:S,recordDOM:E,recordCanvas:N,inlineImages:Q,userTriggeredOnInput:L,collectFonts:ee,doc:Me,maskAttributeFn:b,maskInputFn:A,maskTextFn:R,keepIframeSrcFn:T,blockSelector:o,unblockSelector:i,slimDOMOptions:Xe,dataURLOptions:C,mirror:ut,iframeManager:se,stylesheetManager:ct,shadowDomManager:Ce,processedNodeManager:ge,canvasManager:Ze,ignoreCSSAttributes:z,plugins:re?.filter(oe=>oe.observer)?.map(oe=>({observer:oe.observer,options:oe.options,callback:kr=>ye({type:J.Plugin,data:{plugin:oe.name,payload:kr}})}))||[]},{});se.addLoadListener(Me=>{try{X.push(Fe(Me.contentDocument))}catch(oe){console.warn(oe)}});const Z=()=>{De(),X.push(Fe(document))};return document.readyState==="interactive"||document.readyState==="complete"?Z():(X.push(Ue("DOMContentLoaded",()=>{ye({type:J.DomContentLoaded,data:{}}),x==="DOMContentLoaded"&&Z()})),X.push(Ue("load",()=>{ye({type:J.Load,data:{}}),x==="load"&&Z()},window))),()=>{X.forEach(Me=>Me()),ge.destroy(),Uo=void 0,tC()}}catch(X){console.warn(X)}}function EC(e){if(!Uo)throw new Error("please take full snapshot after start recording");Uo(e)}pt.mirror=ut;pt.takeFullSnapshot=EC;function TC(e,t){try{return e?e(t):new dd}catch{return console.warn("Unable to initialize CanvasManager"),new dd}}var fd;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(fd||(fd={}));const vC=3,IC=5;function Qc(e){return e>9999999999?e:e*1e3}function Zi(e){return e>9999999999?e/1e3:e}function ws(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:J.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Ne(t,10,1e3)}}),t.category==="console")))}const wC="button,a";function am(e){return e.closest(wC)||e}function cm(e){const t=um(e);return!t||!(t instanceof Element)?t:am(t)}function um(e){return kC(e)?e.target:e}function kC(e){return typeof e=="object"&&!!e&&"target"in e}let Gt;function RC(e){return Gt||(Gt=[],CC()),Gt.push(e),()=>{const t=Gt?Gt.indexOf(e):-1;t>-1&&Gt.splice(t,1)}}function CC(){Oe(he,"open",function(e){return function(...t){if(Gt)try{Gt.forEach(n=>n())}catch{}return e.apply(he,t)}})}const AC=new Set([q.Mutation,q.StyleSheetRule,q.StyleDeclaration,q.AdoptedStyleSheet,q.CanvasMutation,q.Selection,q.MediaInteraction]);function xC(e,t,n){e.handleClick(t,n)}class MC{constructor(t,n,r=ws){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=RC(()=>{this._lastMutation=pd()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(OC(n,this._ignoreSelector)||!PC(t))return;const r={timestamp:Zi(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(s=>s.node===r.node&&Math.abs(s.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=Zi(t)}registerScroll(t=Date.now()){this._lastScroll=Zi(t)}registerClick(t){const n=am(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=pd();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const s=this._clicks.indexOf(r);s>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(s,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,s=t.mutationAfter&&t.mutationAfter<=this._threshold,o=!r&&!s,{clickCount:i,clickBreadcrumb:a}=t;if(o){const c=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=c<this._timeout*1e3?"mutation":"timeout",d={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:he.location.href,route:n.getCurrentRoute(),timeAfterClickMs:c,endReason:u,clickCount:i||1}};this._addBreadcrumbEvent(n,d);return}if(i>1){const c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:he.location.href,route:n.getCurrentRoute(),clickCount:i,metric:!0}};this._addBreadcrumbEvent(n,c)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=vs(()=>this._checkClicks(),1e3)}}const NC=["A","BUTTON","INPUT"];function OC(e,t){return!!(!NC.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function PC(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function pd(){return Date.now()/1e3}function LC(e,t){try{if(!DC(t))return;const{source:n}=t.data;if(AC.has(n)&&e.registerMutation(t.timestamp),n===q.Scroll&&e.registerScroll(t.timestamp),FC(t)){const{type:r,id:s}=t.data,o=pt.mirror.getNode(s);o instanceof HTMLElement&&r===$e.Click&&e.registerClick(o)}}catch{}}function DC(e){return e.type===vC}function FC(e){return e.data.source===q.MouseInteraction}function gt(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Ei=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Ei||{});const $C=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function BC(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if($C.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const UC=e=>t=>{if(!e.isEnabled())return;const n=HC(t);if(!n)return;const r=t.name==="click",s=r?t.event:void 0;r&&e.clickDetector&&s?.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&xC(e.clickDetector,n,cm(t.event)),ws(e,n)};function lm(e,t){const n=pt.mirror.getId(e),r=n&&pt.mirror.getNode(n),s=r&&pt.mirror.getMeta(r),o=s&&jC(s)?s:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(i=>i.type===Ei.Text&&i.textContent).filter(Boolean).map(i=>i.trim()).join(""),attributes:BC(o.attributes)}}:{}}}function HC(e){const{target:t,message:n}=WC(e);return gt({category:`ui.${e.name}`,...lm(t,n)})}function WC(e){const t=e.name==="click";let n,r=null;try{r=t?cm(e.event):um(e.event),n=ke(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function jC(e){return e.type===Ei.Element}function qC(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=zC(t);n&&ws(e,n)}function zC(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o,target:i}=e;if(!i||GC(i)||!o)return null;const a=t||r||s,c=o.length===1;if(!a&&c)return null;const u=ke(i,{maxStringLength:200})||"<unknown>",d=lm(i,u);return gt({category:"ui.keyDown",message:u,data:{...d.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:s,key:o}})}function GC(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const VC={resource:QC,paint:KC,navigation:XC};function ea(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function YC(e){return e.map(JC).filter(Boolean)}function JC(e){const t=VC[e.entryType];return t?t(e):null}function ur(e){return((Ie()||he.performance.timeOrigin)+e)/1e3}function KC(e){const{duration:t,entryType:n,name:r,startTime:s}=e,o=ur(s);return{type:n,name:r,start:o,end:o+t,data:void 0}}function XC(e){const{entryType:t,name:n,decodedBodySize:r,duration:s,domComplete:o,encodedBodySize:i,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,domInteractive:u,loadEventStart:d,loadEventEnd:l,redirectCount:p,startTime:f,transferSize:h,type:g}=e;return s===0?null:{type:`${t}.${g}`,start:ur(f),end:ur(o),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:i,duration:s,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:c,loadEventStart:d,loadEventEnd:l,domComplete:o,redirectCount:p}}}function QC(e){const{entryType:t,initiatorType:n,name:r,responseEnd:s,startTime:o,decodedBodySize:i,encodedBodySize:a,responseStatus:c,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:ur(o),end:ur(s),name:r,data:{size:u,statusCode:c,decodedBodySize:i,encodedBodySize:a}}}function ZC(e){const t=e.entries[e.entries.length-1],n=t?.element?[t.element]:void 0;return Zc(e,"largest-contentful-paint",n)}function eA(e){return e.sources!==void 0}function tA(e){const t=[],n=[];for(const r of e.entries)if(eA(r)){const s=[];for(const o of r.sources)if(o.node){n.push(o.node);const i=pt.mirror.getId(o.node);i&&s.push(i)}t.push({value:r.value,nodeIds:s.length?s:void 0})}return Zc(e,"cumulative-layout-shift",n,t)}function nA(e){const t=e.entries[e.entries.length-1],n=t?.target?[t.target]:void 0;return Zc(e,"interaction-to-next-paint",n)}function Zc(e,t,n,r){const s=e.value,o=e.rating,i=ur(s);return{type:"web-vital",name:t,start:i,end:i,data:{value:s,size:s,rating:o,nodeIds:n?n.map(a=>pt.mirror.getId(a)):void 0,attributions:r}}}function rA(e){function t(s){e.performanceEntries.includes(s)||e.performanceEntries.push(s)}function n({entries:s}){s.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(s=>{r.push(Rn(s,n))}),r.push(di(ea(ZC,e)),li(ea(tA,e)),$c(ea(nA,e))),()=>{r.forEach(s=>s())}}const $=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,sA='var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});';function oA(){const e=new Blob([sA]);return URL.createObjectURL(e)}const hd=["log","warn","error"],ao="[Replay] ";function ta(e,t="info"){Dt({category:"console",data:{logger:"replay"},level:t,message:`${ao}${e}`},{level:t})}function iA(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return $?(hd.forEach(r=>{n[r]=(...s)=>{m[r](ao,...s),t&&ta(s.join(""),vo(r))}}),n.exception=(r,...s)=>{s.length&&n.error&&n.error(...s),m.error(ao,r),e?fe(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&ta(r,"error")},n.infoTick=(...r)=>{m.log(ao,...r),t&&setTimeout(()=>ta(r[0]),0)}):hd.forEach(r=>{n[r]=()=>{}}),n}const B=iA();class eu extends Error{constructor(){super(`Event buffer exceeded maximum size of ${Gc}.`)}}class dm{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>Gc)throw new eu;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let t=null;for(const{timestamp:n}of this.events)(t===null||n<t)&&(t=n);return t===null?t:Qc(t)}}class aA{constructor(t){this._worker=t,this._id=0}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():($&&B.warn("Received worker message with unsuccessful status",r),n(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",r=>{$&&B.warn("Failed to load Replay compression worker",r),n(new Error(`Failed to load Replay compression worker: ${r instanceof ErrorEvent&&r.message?r.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})}),this._ensureReadyPromise)}destroy(){$&&B.log("Destroying compression worker"),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((s,o)=>{const i=({data:a})=>{const c=a;if(c.method===t&&c.id===r){if(this._worker.removeEventListener("message",i),!c.success){$&&B.error("Error in compression worker: ",c.response),o(new Error("Error in compression worker"));return}s(c.response)}};this._worker.addEventListener("message",i),this._worker.postMessage({id:r,method:t,arg:n})})}_getAndIncrementId(){return this._id++}}class cA{constructor(t){this._worker=new aA(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=Qc(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>Gc?Promise.reject(new eu):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{$&&B.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class uA{constructor(t){this._fallback=new dm,this._compression=new cA(t),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){$&&B.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,s=[];for(const o of t)s.push(this._compression.addEvent(o));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(s),this._fallback.clear()}catch(o){$&&B.exception(o,"Failed to add events when switching buffers.")}}}function lA({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=dA(t);if(n)return n}return $&&B.log("Using simple buffer"),new dm}function dA(e){try{const t=e||fA();if(!t)return;$&&B.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new uA(n)}catch(t){$&&B.exception(t,"Failed to create compression worker")}}function fA(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?oA():""}function tu(){try{return"sessionStorage"in he&&!!he.sessionStorage}catch{return!1}}function pA(e){hA(),e.session=void 0}function hA(){if(tu())try{he.sessionStorage.removeItem(qc)}catch{}}function fm(e){return e===void 0?!1:Math.random()<e}function Ti(e){if(tu())try{he.sessionStorage.setItem(qc,JSON.stringify(e))}catch{}}function pm(e){const t=Date.now(),n=e.id||we(),r=e.started||t,s=e.lastActivity||t,o=e.segmentId||0,i=e.sampled,a=e.previousSessionId,c=e.dirty||!1;return{id:n,started:r,lastActivity:s,segmentId:o,sampled:i,previousSessionId:a,dirty:c}}function mA(e,t){return fm(e)?"session":t?"buffer":!1}function md({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const s=mA(e,t),o=pm({sampled:s,previousSessionId:r});return n&&Ti(o),o}function gA(){if(!tu())return null;try{const e=he.sessionStorage.getItem(qc);if(!e)return null;const t=JSON.parse(e);return $&&B.infoTick("Loading existing session"),pm(t)}catch{return null}}function Ha(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function hm(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return Ha(e.started,t,r)||Ha(e.lastActivity,n,r)}function mm(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!hm(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function na({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const s=r.stickySession&&gA();return s?mm(s,{sessionIdleExpire:e,maxReplayDuration:t})?($&&B.infoTick("Session in sessionStorage is expired, creating new one..."),md(r,{previousSessionId:s.id})):s:($&&B.infoTick("Creating new session"),md(r,{previousSessionId:n}))}function _A(e){return e.type===J.Custom}function nu(e,t,n){return _m(e,t)?(gm(e,t,n),!0):!1}function yA(e,t,n){return _m(e,t)?gm(e,t,n):Promise.resolve(null)}async function gm(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const s=e.recordingMode==="buffer";try{n&&s&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=e.getOptions(),i=SA(t,o.beforeAddRecordingEvent);return i?await r.addEvent(i):void 0}catch(o){const i=o&&o instanceof eu,a=i?"eventBufferOverflow":"eventBufferError",c=w();if(c){const u=i?"buffer_overflow":"internal_sdk_error";c.recordDroppedEvent(u,"replay")}if(i&&s)return r.clear(),r.waitForCheckout=!0,null;e.handleException(o),await e.stop({reason:a})}}function _m(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=Qc(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?($&&B.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function SA(e,t){try{if(typeof t=="function"&&_A(e))return t(e)}catch(n){return $&&B.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function ru(e){return!e.type}function Wa(e){return e.type==="transaction"}function bA(e){return e.type==="replay_event"}function gd(e){return e.type==="feedback"}function EA(e){return(t,n)=>{if(!e.isEnabled()||!ru(t)&&!Wa(t))return;const r=n.statusCode;if(!(!r||r<200||r>=300)){if(Wa(t)){TA(e,t);return}vA(e,t)}}}function TA(e,t){const n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function vA(e,t){const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!t.tags?.replayId)return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||vs(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(s){e.handleException(s)}})}function IA(e){return t=>{!e.isEnabled()||!ru(t)||wA(e,t)}}function wA(e,t){const n=t.exception?.values?.[0]?.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const r=gt({category:"replay.hydrate-error",data:{url:An()}});ws(e,r)}}function kA(e){const t=w();t&&t.on("beforeAddBreadcrumb",n=>RA(e,n))}function RA(e,t){if(!e.isEnabled()||!ym(t))return;const n=CA(t);n&&ws(e,n)}function CA(e){return!ym(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?AA(e):gt(e)}function AA(e){const t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return gt(e);let n=!1;const r=t.map(s=>{if(!s)return s;if(typeof s=="string")return s.length>$s?(n=!0,`${s.slice(0,$s)}…`):s;if(typeof s=="object")try{const o=Ne(s,7);return JSON.stringify(o).length>$s?(n=!0,`${JSON.stringify(o,null,2).slice(0,$s)}…`):o}catch{}return s});return gt({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function ym(e){return!!e.category}function xA(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function Sm(){const e=V().getPropagationContext().dsc;e&&delete e.replay_id;const t=Te();if(t){const n=it(t);delete n.replay_id}}function MA(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:J.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function NA(e,t){return e.recordingMode!=="buffer"||t.message===zc||!t.exception||t.type?!1:fm(e.getOptions().errorSampleRate)}function OA(e){return Object.assign((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if(bA(t))return delete t.breadcrumbs,t;if(!ru(t)&&!Wa(t)&&!gd(t))return t;if(!e.checkAndHandleExpiredSession())return Sm(),t;if(gd(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),MA(e,t),t;if(xA(t,n)&&!e.getOptions()._experiments.captureExceptions)return $&&B.log("Ignoring error from rrweb internals",t),null;const s=NA(e,t);if((s||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),s&&e.recordingMode==="buffer"&&e.session?.sampled==="buffer"){const i=e.session;i.dirty=!0,e.getOptions().stickySession&&Ti(i)}return t},{id:"Replay"})}function vi(e,t){return t.map(({type:n,start:r,end:s,name:o,data:i})=>{const a=e.throttledAddEvent({type:J.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:o,startTimestamp:r,endTimestamp:s,data:i}}});return typeof a=="string"?Promise.resolve(null):a})}function PA(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function LA(e){return t=>{if(!e.isEnabled())return;const n=PA(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(vi(e,[n]),!1)))}}function DA(e,t){return $&&e.getOptions()._experiments.traceInternals?!1:gp(t,w())}function bm(e,t){e.isEnabled()&&t!==null&&(DA(e,t.name)||e.addUpdate(()=>(vi(e,[t]),!0)))}function Ii(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=wh(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function Em(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function Ho(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function Tm(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:s,method:o,statusCode:i,request:a,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:s,data:{method:o,statusCode:i,request:a,response:c}}}function Zr(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function Zt(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:s,warnings:o}=FA(n);return r.body=s,o?.length&&(r._meta={warnings:o}),r}function ja(e,t){return Object.entries(e).reduce((n,[r,s])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=s),n},{})}function FA(e){if(!e||typeof e!="string")return{body:e};const t=e.length>Kl,n=$A(e);if(t){const r=e.slice(0,Kl);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}…`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function $A(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function Wo(e,t){const n=BA(e);return ft(n,t)}function BA(e,t=he.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(he.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function UA(e,t,n){try{const r=await WA(e,t,n),s=Tm("resource.fetch",r);bm(n.replay,s)}catch(r){$&&B.exception(r,"Failed to capture fetch breadcrumb")}}function HA(e,t){const{input:n,response:r}=t,s=n?jc(n):void 0,o=Ii(s),i=r?Em(r.headers.get("content-length")):void 0;o!==void 0&&(e.data.request_body_size=o),i!==void 0&&(e.data.response_body_size=i)}async function WA(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r}=t,{url:i,method:a,status_code:c=0,request_body_size:u,response_body_size:d}=e.data,l=Wo(i,n.networkDetailAllowUrls)&&!Wo(i,n.networkDetailDenyUrls),p=l?jA(n,t.input,u):Zr(u),f=await qA(l,n,t.response,d);return{startTimestamp:s,endTimestamp:o,url:i,method:a,statusCode:c,request:p,response:f}}function jA({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const s=n?VA(n,t):{};if(!e)return Zt(s,r,void 0);const o=jc(n),[i,a]=Po(o,B),c=Zt(s,r,i);return a?Ho(c,a):c}async function qA(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,s){if(!e&&s!==void 0)return Zr(s);const o=r?vm(r.headers,n):{};if(!r||!t&&s!==void 0)return Zt(o,s,void 0);const[i,a]=await GA(r),c=zA(i,{networkCaptureBodies:t,responseBodySize:s,captureDetails:e,headers:o});return a?Ho(c,a):c}function zA(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:s}){try{const o=e?.length&&n===void 0?Ii(e):n;return r?t?Zt(s,o,e):Zt(s,o,void 0):Zr(o)}catch(o){return $&&B.exception(o,"Failed to serialize response body"),Zt(s,n,void 0)}}async function GA(e){const t=YA(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await JA(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?($&&B.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):($&&B.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function vm(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}function VA(e,t){return e.length===1&&typeof e[0]!="string"?_d(e[0],t):e.length===2?_d(e[1],t):{}}function _d(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?vm(n,t):Array.isArray(n)?{}:ja(n,t):{}}function YA(e){try{return e.clone()}catch(t){$&&B.exception(t,"Failed to clone response body")}}function JA(e){return new Promise((t,n)=>{const r=vs(()=>n(new Error("Timeout while trying to read response body")),500);KA(e).then(s=>t(s),s=>n(s)).finally(()=>clearTimeout(r))})}async function KA(e){return await e.text()}async function XA(e,t,n){try{const r=ZA(e,t,n),s=Tm("resource.xhr",r);bm(n.replay,s)}catch(r){$&&B.exception(r,"Failed to capture xhr breadcrumb")}}function QA(e,t){const{xhr:n,input:r}=t;if(!n)return;const s=Ii(r),o=n.getResponseHeader("content-length")?Em(n.getResponseHeader("content-length")):n1(n.response,n.responseType);s!==void 0&&(e.data.request_body_size=s),o!==void 0&&(e.data.response_body_size=o)}function ZA(e,t,n){const r=Date.now(),{startTimestamp:s=r,endTimestamp:o=r,input:i,xhr:a}=t,{url:c,method:u,status_code:d=0,request_body_size:l,response_body_size:p}=e.data;if(!c)return null;if(!a||!Wo(c,n.networkDetailAllowUrls)||Wo(c,n.networkDetailDenyUrls)){const P=Zr(l),S=Zr(p);return{startTimestamp:s,endTimestamp:o,url:c,method:u,statusCode:d,request:P,response:S}}const f=a[Rt],h=f?ja(f.request_headers,n.networkRequestHeaders):{},g=ja(kh(a),n.networkResponseHeaders),[_,y]=n.networkCaptureBodies?Po(i,B):[void 0],[b,A]=n.networkCaptureBodies?e1(a):[void 0],R=Zt(h,l,_),U=Zt(g,p,b);return{startTimestamp:s,endTimestamp:o,url:c,method:u,statusCode:d,request:y?Ho(R,y):R,response:A?Ho(U,A):U}}function e1(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return t1(e.response,e.responseType)}catch(n){t.push(n)}return $&&B.warn("Failed to get xhr response body",...t),[void 0]}function t1(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&e&&typeof e=="object")return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return $&&B.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return $&&B.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function n1(e,t){try{const n=t==="json"&&e&&typeof e=="object"?JSON.stringify(e):e;return Ii(n)}catch{return}}function r1(e){const t=w();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:s,networkRequestHeaders:o,networkResponseHeaders:i};t&&t.on("beforeAddBreadcrumb",(c,u)=>s1(a,c,u))}catch{}}function s1(e,t,n){if(t.data)try{o1(t)&&a1(n)&&(QA(t,n),XA(t,n,e)),i1(t)&&c1(n)&&(HA(t,n),UA(t,n,e))}catch(r){$&&B.exception(r,"Error when enriching network breadcrumb")}}function o1(e){return e.category==="xhr"}function i1(e){return e.category==="fetch"}function a1(e){return e?.xhr}function c1(e){return e?.response}function u1(e){const t=w();Ih(UC(e)),mi(LA(e)),kA(e),r1(e);const n=OA(e);wy(n),t&&(t.on("beforeSendEvent",IA(e)),t.on("afterSendEvent",EA(e)),t.on("createDsc",r=>{const s=e.getSessionId();s&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=s)}),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,s)=>{const o=e.getSessionId();s?.includeReplay&&e.isEnabled()&&o&&r.contexts?.feedback&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=o)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function l1(e){try{return Promise.all(vi(e,[d1(he.performance.memory)]))}catch{return[]}}function d1(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function f1(e,t,n){return bS(e,t,{...n,setTimeoutImpl:vs})}const Ws=D.navigator;function p1(){return/iPhone|iPad|iPod/i.test(Ws?.userAgent??"")||/Macintosh/i.test(Ws?.userAgent??"")&&Ws?.maxTouchPoints&&Ws?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function h1(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){$&&B.warn("Received replay event after session expired.");return}const s=r||!t;t=!0,m1(n),e.clickDetector&&LC(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&s&&e.setInitialState(),!nu(e,n,s))return!0;if(!s)return!1;const o=e.session;if(_1(e,s),e.recordingMode==="buffer"&&o&&e.eventBuffer&&!o.dirty){const i=e.eventBuffer.getEarliestTimestamp();i&&($&&B.log(`Updating session start time to earliest event in buffer to ${new Date(i)}`),o.started=i,e.getOptions().stickySession&&Ti(o))}return o?.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}}function m1(e){const t=e.data;if(!(e.type!==J.IncrementalSnapshot||!t||typeof t!="object"||!("source"in t)||t.source!==q.Mutation||!("attributes"in t)||!Array.isArray(t.attributes)))for(const n of t.attributes){const r=pt.mirror.getNode(n.id),s=r&&pt.mirror.getMeta(r);if(s?.type===Ei.Element)for(const[o,i]of Object.entries(n.attributes))i===null?delete s.attributes[o]:s.attributes[o]=i}}function g1(e){const t=e.getOptions();return{type:J.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function _1(e,t){!t||e.session?.segmentId!==0||nu(e,g1(e),!1)}function y1(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function S1(e,t,n,r){return at(jf(e,cs(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function b1({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
497
- `;if(typeof e=="string")n=`${r}${e}`;else{const o=new TextEncoder().encode(r);n=new Uint8Array(o.length+e.length),n.set(o),n.set(e,o.length)}return n}async function E1({client:e,scope:t,replayId:n,event:r}){const s=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,o={event_id:n,integrations:s};e.emit("preprocessEvent",r,o);const i=await Jf(e.getOptions(),r,o,t,e,be());if(!i)return null;e.emit("postprocessEvent",i,o),i.platform=i.platform||"javascript";const a=e.getSdkMetadata(),{name:c,version:u,settings:d}=a?.sdk||{};return i.sdk={...i.sdk,name:c||"sentry.javascript.unknown",version:u||"0.0.0",settings:d},i}async function T1({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:s,session:o}){const i=b1({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:c,traceIds:u,initialTimestamp:d}=r,l=w(),p=V(),f=l?.getTransport(),h=l?.getDsn();if(!l||!f||!h||!o.sampled)return Promise.resolve({});const g={type:Xk,replay_start_timestamp:d/1e3,timestamp:s/1e3,error_ids:c,trace_ids:u,urls:a,replay_id:t,segment_id:n,replay_type:o.sampled},_=await E1({scope:p,client:l,replayId:t,event:g});if(!_)return l.recordDroppedEvent("event_processor","replay"),$&&B.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete _.sdkProcessingMetadata;const y=S1(_,i,h,l.getOptions().tunnel);let b;try{b=await f.send(y)}catch(R){const U=new Error(zc);try{U.cause=R}catch{}throw U}const A=ap({},b);if(ip(A,"replay"))throw new su(A);if(typeof b.statusCode=="number"&&(b.statusCode<200||b.statusCode>=300))throw new Im(b.statusCode);return b}class Im extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class su extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}class yd extends Error{constructor(){super("Session is too long, not sending replay")}}async function wm(e,t={count:0,interval:rR}){const{recordingData:n,onError:r}=e;if(n.length)try{return await T1(e),!0}catch(s){if(s instanceof Im||s instanceof su)throw s;if(Ey("Replays",{_retryCount:t.count}),r&&r(s),t.count>=sR){const o=new Error(`${zc} - max retries exceeded`);try{o.cause=s}catch{}throw o}return t.interval*=++t.count,new Promise((o,i)=>{vs(async()=>{try{await wm(e,t),o(!0)}catch(a){i(a)}},t.interval)})}}const km="__THROTTLED",v1="__SKIPPED";function I1(e,t,n){const r=new Map,s=a=>{const c=a-n;r.forEach((u,d)=>{d<c&&r.delete(d)})},o=()=>[...r.values()].reduce((a,c)=>a+c,0);let i=!1;return(...a)=>{const c=Math.floor(Date.now()/1e3);if(s(c),o()>=t){const d=i;return i=!0,d?v1:km}i=!1;const u=r.get(c)||0;return r.set(c,u+1),e(...a)}}class w1{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:Qk,sessionIdleExpire:Zk},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=f1(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=I1((i,a)=>yA(this,i,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:s}=this.getOptions(),o=r?{threshold:Math.min(oR,r),timeout:r,scrollTimeout:iR,ignoreSelector:s?s.join(","):""}:void 0;if(o&&(this.clickDetector=new MC(this,o)),$){const i=t._experiments;B.setConfig({captureExceptions:!!i.captureExceptions,traceInternals:!!i.traceInternals})}this._handleVisibilityChange=()=>{he.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const i=gt({category:"ui.blur"});this._doChangeToBackgroundTasks(i)},this._handleWindowFocus=()=>{const i=gt({category:"ui.focus"});this._doChangeToForegroundTasks(i)},this._handleKeyboardEvent=i=>{qC(this,i)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){$&&B.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,s=n<=0&&r<=0;if(this._requiresManualStart=s,!s){if(this._initializeSessionForSampling(t),!this.session){$&&B.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",$&&B.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode==="session"){$&&B.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){$&&B.log("Buffering is in progress, call `flush()` to save the replay");return}$&&B.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=na({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){$&&B.log("Buffering is in progress, call `flush()` to save the replay");return}$&&B.infoTick("Starting replay in buffer mode");const t=na({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=pt({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:nR}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:h1(this),...p1(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){if(!this._isEnabled)return;this._isEnabled=!1,this.recordingMode="buffer";const r=n??"manual";w()?.emit("replayEnd",{sessionId:this.session?.id,reason:r});try{$&&B.log(`Stopping Replay triggered by ${r}`),Sm(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,pA(this)}catch(s){this.handleException(s)}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),$&&B.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),$&&B.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();$&&B.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession()),this.startRecording())}addUpdate(t){const n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(t){if(!(t&&this.session?.sampled===!1))return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&Ha(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${he.location.pathname}${he.location.hash}${he.location.search}`,n=`${he.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===km){const s=gt({category:"replay.throttled"});this.addUpdate(()=>!nu(this,{type:IC,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||Te(),n=t&&Se(t),s=(n&&j(n).data||{})[Ae];if(!(!n||!s||!["route","custom"].includes(s)))return j(n).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=lA({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&w()?.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording()}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=na({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return mm(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"sessionExpired"}),this.initializeSampling(t.id))}_addListeners(){try{he.document.addEventListener("visibilitychange",this._handleVisibilityChange),he.addEventListener("blur",this._handleWindowBlur),he.addEventListener("focus",this._handleWindowFocus),he.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(u1(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=rA(this)}_removeListeners(){try{he.document.removeEventListener("visibilitychange",this._handleVisibilityChange),he.removeEventListener("blur",this._handleWindowBlur),he.removeEventListener("focus",this._handleWindowFocus),he.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){!this.session||hm(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(t&&this._createCustomBreadcrumb(t),this.conditionalFlush())}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){$&&B.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:J.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=YC(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(vi(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){$&&B.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!this.eventBuffer?.hasEvents&&(await l1(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const n=Date.now();if(n-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new yd;const r=this._popEventContext(),s=this.session.segmentId++;this._maybeSaveSession();const o=await this.eventBuffer.finish();await wm({replayId:t,recordingData:o,segmentId:s,eventContext:r,session:this.session,timestamp:n,onError:i=>this.handleException(i)})}catch(n){this.handleException(n),this.stop({reason:"sendError"});const r=w();if(r){let s;n instanceof su?s="ratelimit_backoff":n instanceof yd?s="invalid":s="send_error",r.recordDroppedEvent(s,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){$&&B.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,s=Date.now()-n;this._debouncedFlush.cancel();const o=s<this._options.minReplayDuration,i=s>this._options.maxReplayDuration+5e3;if(o||i){$&&B.log(`Session duration (${Math.floor(s/1e3)}s) is too ${o?"short":"long"}, not sending replay.`),o&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&$&&B.log("Flushing initial segment without checkout.");const c=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,c&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&Ti(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n?.length&&t.some(a=>{const c=y1(a.target),u=n.join(",");return c?.matches(u)}))return!1;const r=t.length,s=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,i=s&&r>s;if(r>o||i){const a=gt({category:"replay.mutations",data:{count:r,limit:i}});this._createCustomBreadcrumb(a)}return i?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function xr(e,t){return[...e,...t].join(",")}function k1({mask:e,unmask:t,block:n,unblock:r,ignore:s}){const o=["base","iframe[srcdoc]:not([src])"],i=xr(e,[".sentry-mask","[data-sentry-mask]"]),a=xr(t,[]);return{maskTextSelector:i,unmaskTextSelector:a,blockSelector:xr(n,[".sentry-block","[data-sentry-block]",...o]),unblockSelector:xr(r,[]),ignoreSelector:xr(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function R1({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:s,value:o}){return!r||s.unmaskTextSelector&&e.matches(s.unmaskTextSelector)?o:n.includes(t)||t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"")?o.replace(/[\S]/g,"*"):o}const Sd='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',C1=["content-length","content-type","accept"],A1=Symbol.for("sentry__originalRequestBody");let bd=!1,Ed=!1;function x1(){if(typeof Request>"u"||Ed)return;const e=Request;try{const t=function(n,r){const s=new e(n,r);return r?.body!=null&&(s[A1]=r.body),s};t.prototype=e.prototype,D.Request=t,Ed=!0}catch{}}const SN=(e=>new M1(e));class M1{constructor({flushMinDelay:t=eR,flushMaxDelay:n=tR,minReplayDuration:r=aR,maxReplayDuration:s=Xl,stickySession:o=!0,useCompression:i=!0,workerUrl:a,_experiments:c={},maskAllText:u=!0,maskAllInputs:d=!0,blockAllMedia:l=!0,mutationBreadcrumbLimit:p=750,mutationLimit:f=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:g=[],networkDetailAllowUrls:_=[],networkDetailDenyUrls:y=[],networkCaptureBodies:b=!0,networkRequestHeaders:A=[],networkResponseHeaders:R=[],mask:U=[],maskAttributes:P=["title","placeholder","aria-label"],unmask:S=[],block:C=[],unblock:H=[],ignore:E=[],maskFn:N,beforeAddRecordingEvent:k,beforeErrorSampling:x,onError:L,attachRawBodyFromRequest:ee=!1}={}){this.name="Replay";const Q=k1({mask:U,unmask:S,block:C,unblock:H,ignore:E});if(this._recordingOptions={maskAllInputs:d,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:N,maskInputFn:N,maskAttributeFn:(re,T,z)=>R1({maskAttributes:P,maskAllText:u,privacyOptions:Q,key:re,value:T,el:z}),...Q,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:re=>{try{re.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!c.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,cR),maxReplayDuration:Math.min(s,Xl),stickySession:o,useCompression:i,workerUrl:a,blockAllMedia:l,maskAllInputs:d,maskAllText:u,mutationBreadcrumbLimit:p,mutationLimit:f,slowClickTimeout:h,slowClickIgnoreSelectors:g,networkDetailAllowUrls:_,networkDetailDenyUrls:y,networkCaptureBodies:b,networkRequestHeaders:Td(A),networkResponseHeaders:Td(R),beforeAddRecordingEvent:k,beforeErrorSampling:x,onError:L,attachRawBodyFromRequest:ee,_experiments:c},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${Sd}`:Sd,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&Ro())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return bd}set _isInitialized(t){bd=t}afterAllSetup(t){!Ro()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&x1(),this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}startBuffering(){this._replay&&this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:this._replay.recordingMode==="session",reason:"manual"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(t){if(this._replay?.isEnabled())return this._replay.getSessionId(t)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=N1(this._initialOptions,t);this._replay=new w1({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function N1(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},s=bn(n.replaysSessionSampleRate),o=bn(n.replaysOnErrorSampleRate);return s==null&&o==null&&vt(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),s!=null&&(r.sessionSampleRate=s),o!=null&&(r.errorSampleRate=o),r}function Td(e){return[...C1,...e.map(t=>t.toLowerCase())]}function bN(){return w()?.getIntegrationByName("Replay")}var O1=Object.defineProperty,P1=(e,t,n)=>t in e?O1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,vd=(e,t,n)=>P1(e,typeof t!="symbol"?t+"":t,n);class L1{constructor(){vd(this,"idNodeMap",new Map),vd(this,"nodeMetaMap",new WeakMap)}getId(t){return t?this.getMeta(t)?.id??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(n,s)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function D1(){return new L1}function F1(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function qa(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:qa(e.parentNode,t,n,r+1)}function Id(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(F1(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}const Bn=`Please stop import mirror directly. Instead of that,\r
498
- now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
499
- or you can use record.mirror to access the mirror instance during recording.`;let wd={map:{},getId(){return console.error(Bn),-1},getNode(){return console.error(Bn),null},removeNodeFromMap(){console.error(Bn)},has(){return console.error(Bn),!1},reset(){console.error(Bn)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(wd=new Proxy(wd,{get(e,t,n){return t==="map"&&console.error(Bn),Reflect.get(e,t,n)}}));function ou(e,t,n,r,s=window){const o=s.Object.getOwnPropertyDescriptor(e,t);return s.Object.defineProperty(e,t,r?n:{set(i){Cm(()=>{n.set.call(this,i)},0),o&&o.set&&o.set.call(this,i)}}),()=>ou(e,t,o||{},!0)}function iu(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],s=n(r);return typeof s=="function"&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=s,()=>{e[t]=r}}catch{return()=>{}}}Date.now().toString();function $1(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function wi(e,t,n,r,s){if(!e)return!1;const o=$1(e);if(!o)return!1;const i=Id(t,n),a=qa(o,i);let c=-1;return a<0?!1:(r&&(c=qa(o,Id(null,r))),a>-1&&c<0?!0:a<c)}const kd={};function Rm(e){const t=kd[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const s=n.createElement("iframe");s.hidden=!0,n.head.appendChild(s);const o=s.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(s)}catch{}return kd[e]=r.bind(window)}function un(...e){return Rm("requestAnimationFrame")(...e)}function Cm(...e){return Rm("setTimeout")(...e)}var lr=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(lr||{});let co;function B1(e){co=e}const ra=e=>co?(...n)=>{try{return e(...n)}catch(r){if(co&&co(r)===!0)return()=>{};throw r}}:e;var zn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",U1=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var js=0;js<zn.length;js++)U1[zn.charCodeAt(js)]=js;var H1=function(e){var t=new Uint8Array(e),n,r=t.length,s="";for(n=0;n<r;n+=3)s+=zn[t[n]>>2],s+=zn[(t[n]&3)<<4|t[n+1]>>4],s+=zn[(t[n+1]&15)<<2|t[n+2]>>6],s+=zn[t[n+2]&63];return r%3===2?s=s.substring(0,s.length-1)+"=":r%3===1&&(s=s.substring(0,s.length-2)+"=="),s};const Rd=new Map;function W1(e,t){let n=Rd.get(e);return n||(n=new Map,Rd.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const Am=(e,t,n)=>{if(!e||!(Mm(e,t)||typeof e=="object"))return;const r=e.constructor.name,s=W1(n,r);let o=s.indexOf(e);return o===-1&&(o=s.length,s.push(e)),o};function uo(e,t,n){if(e instanceof Array)return e.map(r=>uo(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,s=H1(e);return{rr_type:r,base64:s}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[uo(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:s}=e;return{rr_type:r,src:s}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",s=e.toDataURL();return{rr_type:r,src:s}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[uo(e.data,t,n),e.width,e.height]};if(Mm(e,t)||typeof e=="object"){const r=e.constructor.name,s=Am(e,t,n);return{rr_type:r,index:s}}}}return e}const xm=(e,t,n)=>e.map(r=>uo(r,t,n)),Mm=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(s=>typeof t[s]=="function").find(s=>e instanceof t[s]);function j1(e,t,n,r,s){const o=[],i=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of i)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const c=iu(t.CanvasRenderingContext2D.prototype,a,function(u){return function(...d){return wi(this.canvas,n,r,s,!0)||Cm(()=>{const l=xm(d,t,this);e(this.canvas,{type:lr["2D"],property:a,args:l})},0),u.apply(this,d)}});o.push(c)}catch{const c=ou(t.CanvasRenderingContext2D.prototype,a,{set(u){e(this.canvas,{type:lr["2D"],property:a,args:[u],setter:!0})}});o.push(c)}return()=>{o.forEach(a=>a())}}function q1(e){return e==="experimental-webgl"?"webgl":e}function Cd(e,t,n,r,s){const o=[];try{const i=iu(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(c,...u){if(!wi(this,t,n,r,!0)){const d=q1(c);if("__context"in this||(this.__context=d),s&&["webgl","webgl2"].includes(d))if(u[0]&&typeof u[0]=="object"){const l=u[0];l.preserveDrawingBuffer||(l.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[c,...u])}});o.push(i)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(i=>i())}}function Ad(e,t,n,r,s,o,i,a){const c=[],u=Object.getOwnPropertyNames(e);for(const d of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(d))try{if(typeof e[d]!="function")continue;const l=iu(e,d,function(p){return function(...f){const h=p.apply(this,f);if(Am(h,a,this),"tagName"in this.canvas&&!wi(this.canvas,r,s,o,!0)){const g=xm(f,a,this),_={type:t,property:d,args:g};n(this.canvas,_)}return h}});c.push(l)}catch{const l=ou(e,d,{set(p){n(this.canvas,{type:t,property:d,args:[p],setter:!0})}});c.push(l)}return c}function z1(e,t,n,r,s,o){const i=[];return i.push(...Ad(t.WebGLRenderingContext.prototype,lr.WebGL,e,n,r,s,o,t)),typeof t.WebGL2RenderingContext<"u"&&i.push(...Ad(t.WebGL2RenderingContext.prototype,lr.WebGL2,e,n,r,s,o,t)),()=>{i.forEach(a=>a())}}const G1='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function V1(){const e=new Blob([G1]);return URL.createObjectURL(e)}class Y1{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(a,c)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(c)};const{enableManualSnapshot:n,sampling:r="all",win:s,recordCanvas:o,errorHandler:i}=t;t.sampling=r,this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,i&&B1(i),(o&&typeof r=="number"||n)&&(this.worker=this.initFPSWorker()),this.addWindow(s),!n&&ra(()=>{o&&r==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),o&&typeof r=="number"&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,this.worker?.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(t){const{sampling:n="all",blockClass:r,blockSelector:s,unblockSelector:o,recordCanvas:i,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(t)){if(a){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}ra(()=>{if(i&&n==="all"&&this.initCanvasMutationObserver(t,r,s,o),i&&typeof n=="number"){const c=Cd(t,r,s,o,!0);this.restoreHandlers.push(()=>{c()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(t,n){if(n?.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,t);return}un(r=>this.takeSnapshot(r,!0,t))}initFPSWorker(){const t=new Worker(V1());return t.onmessage=n=>{const r=n.data,{id:s}=r;if(this.snapshotInProgressMap.set(s,!1),!("base64"in r))return;const{base64:o,type:i,width:a,height:c}=r;this.mutationCb({id:s,type:lr["2D"],commands:[{property:"clearRect",args:[0,0,a,c]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:o}],type:i}]},0,0,a,c]}]})},t}initCanvasFPSObserver(){let t;if(!this.windows.length&&!this.shadowDoms.size)return;const n=r=>{this.takeSnapshot(r,!1),t=un(n)};t=un(n),this.restoreHandlers.push(()=>{t&&cancelAnimationFrame(t)})}initCanvasMutationObserver(t,n,r,s){const o=Cd(t,n,r,s,!1),i=j1(this.processMutation.bind(this),t,n,r,s),a=z1(this.processMutation.bind(this),t,n,r,s,this.mirror);this.restoreHandlers.push(()=>{o(),i(),a()})}getCanvasElements(t,n,r){const s=[],o=i=>{i.querySelectorAll("canvas").forEach(a=>{wi(a,t,n,r)||s.push(a)})};for(const i of this.windows){const a=i.deref();let c;try{c=a&&a.document}catch{}c&&o(c)}for(const i of this.shadowDoms){const a=i.deref();a&&o(a)}return s}takeSnapshot(t,n,r){const{sampling:s,blockClass:o,blockSelector:i,unblockSelector:a,dataURLOptions:c,maxCanvasSize:u}=this.options,l=1e3/(s==="all"?2:s||2);return this.lastSnapshotTime&&t-this.lastSnapshotTime<l?!1:(this.lastSnapshotTime=t,(r?[r]:this.getCanvasElements(o,i,a)).forEach(h=>{const g=this.mirror.getId(h);if(!(!this.mirror.hasNode(h)||!h.width||!h.height||this.snapshotInProgressMap.get(g))){if(this.snapshotInProgressMap.set(g,!0),!n&&["webgl","webgl2"].includes(h.__context)){const _=h.getContext(h.__context);_?.getContextAttributes()?.preserveDrawingBuffer===!1&&_.clear(_.COLOR_BUFFER_BIT)}createImageBitmap(h).then(_=>{this.worker?.postMessage({id:g,bitmap:_,width:h.width,height:h.height,dataURLOptions:c,maxCanvasSize:u},[_])}).catch(_=>{ra(()=>{throw this.snapshotInProgressMap.delete(g),_})()})}}),!0)}startPendingCanvasMutationFlusher(){un(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,un(t)};un(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),un(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const s=r.map(i=>{const{type:a,...c}=i;return c}),{type:o}=r[0];this.mutationCb({id:n,type:o,commands:s}),this.pendingCanvasMutations.delete(t)}}try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}D1();var xd;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(xd||(xd={}));const Md={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},J1="ReplayCanvas",qs=1280,K1=((e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,qs):qs,n?Math.min(n,qs):qs]};let s,o;const i=new Promise(a=>o=a);return{name:J1,getOptions(){const{quality:a,enableManualSnapshot:c,maxCanvasSize:u}=r;return{enableManualSnapshot:c,recordCanvas:!0,getCanvasManager:d=>{const l=new Y1({...d,enableManualSnapshot:c,maxCanvasSize:u,errorHandler:p=>{try{typeof p=="object"&&(p.__rrweb__=!0)}catch{}}});return s=l,o(l),l},...Md[a]||Md.medium}},async snapshot(a,c){(s||await i).snapshot(a,c)}}}),EN=K1;function X1(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function Nm(e){try{return new URL(e,O.location.origin).href}catch{return}}function Q1(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function Om(e){try{return new Headers(e)}catch{return}}const Nd=new WeakMap,sa=new Map,Pm={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function Z1(e,t){const{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:s,shouldCreateSpanForRequest:o,enableHTTPTimings:i,tracePropagationTargets:a,onRequestSpanStart:c,onRequestSpanEnd:u}={...Pm,...t},d=typeof o=="function"?o:h=>!0,l=h=>tx(h,a),p={},f=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(h=>(h.type==="transaction"&&h.spans&&h.spans.forEach(g=>{if(g.op==="http.client"){const _=sa.get(g.span_id);_&&(g.timestamp=_/1e3,sa.delete(g.span_id))}}),h)),s&&KT(h=>{if(h.response){const g=Nd.get(h.response);g&&h.endTimestamp&&sa.set(g,h.endTimestamp)}}),Rc(h=>{const g=Db(h,d,l,p,{propagateTraceparent:f,onRequestSpanEnd:u});if(h.response&&h.fetchData.__span&&Nd.set(h.response,h.fetchData.__span),g){const _=Nm(h.fetchData.url),y=_?yn(_).host:void 0;g.setAttributes({"http.url":_?Kt(_):void 0,"server.address":y}),i&&Od(g,e),c?.(g,{headers:h.headers})}})),r&&Wc(h=>{const g=nx(h,d,l,p,f,u);g&&(i&&Od(g,e),c?.(g,{headers:Om(h.xhr.__sentry_xhr_v3__?.request_headers)}))})}const ex=300;function Od(e,t){const{url:n}=j(e).data;if(!n||typeof n!="string")return;let r=()=>void setTimeout(s);if(Lt(t)){const o=e.end.bind(e);e.end=i=>{const a=i??de();let c=!1;const u=()=>{c||(c=!0,setTimeout(s),o(a),clearTimeout(d))};r=u;const d=setTimeout(u,ex)}}const s=Rn("resource",({entries:o})=>{o.forEach(i=>{Q1(i)&&i.name.endsWith(n)&&(e.setAttributes(Th(i)),r())})})}function tx(e,t){const n=An();if(n){let r,s;try{r=new URL(e,n),s=new URL(n).origin}catch{return!1}const o=r.origin===s;return t?ft(r.toString(),t)||o&&ft(r.pathname,t):o}else{const r=!!e.match(/^\/(?!\/)/);return t?ft(e,t):r}}function nx(e,t,n,r,s,o){const i=e.xhr,a=i?.[Rt];if(!i||i.__sentry_own_request__||!a)return;const{url:c,method:u}=a,d=st()&&t(c);if(e.endTimestamp){const y=i.__sentry_xhr_span_id__;if(!y)return;const b=r[y];b&&(d&&a.status_code!==void 0&&(po(b,a.status_code),b.end(),o?.(b,{headers:Om(kh(i)),error:e.error})),delete r[y]);return}const l=Nm(c),p=yn(l||c),f=Kt(mp(c)),h=w(),g=!!Te(),_=d&&g?ot({name:`${u} ${f}`,attributes:{url:Kt(c),type:"xhr","http.method":u,"http.url":l?Kt(l):void 0,"server.address":p?.host,[W]:"auto.http.browser",[ie]:"http.client",...p?.search&&{"http.query":p?.search},...p?.hash&&{"http.fragment":p?.hash}}}):new Je;return d&&!g&&h?.recordDroppedEvent("no_parent_span","span"),i.__sentry_xhr_span_id__=_.spanContext().spanId,r[i.__sentry_xhr_span_id__]=_,n(c)&&rx(i,st()&&g?_:void 0,s),h&&h.emit("beforeOutgoingRequestSpan",_,e),_}function rx(e,t,n){const{"sentry-trace":r,baggage:s,traceparent:o}=yp({span:t,propagateTraceparent:n});r&&sx(e,r,s,o)}function sx(e,t,n,r){const s=e.__sentry_xhr_v3__?.request_headers;if(!(s?.["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!s?.traceparent&&e.setRequestHeader("traceparent",r),n){const o=s?.baggage;(!o||!X1(o))&&e.setRequestHeader("baggage",n)}}catch{}}function ox(){O.document?O.document.addEventListener("visibilitychange",()=>{const e=Te();if(!e)return;const t=Se(e);if(O.document.hidden&&t){const n="cancelled",{op:r,status:s}=j(t);v&&m.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),s||t.setStatus({code:Y,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):v&&m.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const ix=3600,Lm="sentry_previous_trace",ax="sentry.previous_trace";function cx(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let s=r?dx():void 0;e.on("spanStart",i=>{if(Se(i)!==i)return;const a=V().getPropagationContext();s=ux(s,i,a),r&&lx(s)});let o=!0;n&&e.on("beforeSampling",i=>{if(!s)return;const a=V(),c=a.getPropagationContext();if(o&&c.parentSpanId){o=!1;return}a.setPropagationContext({...c,dsc:{...c.dsc,sample_rate:String(s.sampleRate),sampled:String(za(s.spanContext))},sampleRand:s.sampleRand}),i.parentSampled=za(s.spanContext),i.parentSampleRate=s.sampleRate,i.spanAttributes={...i.spanAttributes,[gf]:s.sampleRate}})}function ux(e,t,n){const r=j(t);function s(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[ec])}catch{return 0}}const o={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:s(),sampleRand:n.sampleRand};if(!e)return o;const i=e.spanContext;return i.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=ix&&(v&&m.log(`Adding previous_trace \`${JSON.stringify(i)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:i,attributes:{[Kg]:"previous_trace"}}),t.setAttribute(ax,`${i.traceId}-${i.spanId}-${za(i)?1:0}`)),o)}function lx(e){try{O.sessionStorage.setItem(Lm,JSON.stringify(e))}catch(t){v&&m.warn("Could not store previous trace in sessionStorage",t)}}function dx(){try{const e=O.sessionStorage?.getItem(Lm);return JSON.parse(e)}catch{return}}function za(e){return e.traceFlags===1}const fx="BrowserTracing",px=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function hx(){const e=O.navigator;return e?.userAgent?px.test(e.userAgent):!1}const mx={...Ks,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...Pm},gx=((e={})=>{"enableElementTiming"in e&&vt(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});const t={name:void 0,source:void 0},n=O.document,{enableInp:r,enableLongTask:s,enableLongAnimationFrame:o,_experiments:{enableInteractions:i,enableStandaloneClsSpans:a,enableStandaloneLcpSpans:c},beforeStartSpan:u,idleTimeout:d,finalTimeout:l,childSpanTimeout:p,markBackgroundSpan:f,traceFetch:h,traceXHR:g,trackFetchStreamPerformance:_,shouldCreateSpanForRequest:y,enableHTTPTimings:b,ignoreResourceSpans:A,ignorePerformanceApiSpans:R,instrumentPageLoad:U,instrumentNavigation:P,detectRedirects:S,linkPreviousTrace:C,consistentTraceSampling:H,enableReportPageLoaded:E,onRequestSpanStart:N,onRequestSpanEnd:k}={...mx,...e},x=hx();let L,ee,Q;function re(T,z,M=!0){const F=z.op==="pageload",ae=z.name,te=u?u(z):z,Ee=te.attributes||{};if(ae!==te.name&&(Ee[Ae]="custom",te.attributes=Ee),!M){const xe=xn();ot({...te,startTime:xe}).end(xe);return}t.name=te.name,t.source=Ee[Ae];const je=Gf(te,{idleTimeout:d,finalTimeout:l,childSpanTimeout:p,disableAutoFinish:F,beforeSpanEnd:xe=>{L?.();const Re=Lt(T);R0(xe,{recordClsOnPageloadSpan:!Re&&!a,recordLcpOnPageloadSpan:!Re&&!c,ignoreResourceSpans:A,ignorePerformanceApiSpans:R,spanStreamingEnabled:Re}),Dd(T,void 0);const Qe=V(),qe=Qe.getPropagationContext();Qe.setPropagationContext({...qe,traceId:je.spanContext().traceId,sampled:Ht(je),dsc:it(xe)}),F&&(Q=void 0)},trimIdleSpanEndTimestamp:!E});F&&E&&(Q=je),Dd(T,je);function Xe(){n&&["interactive","complete"].includes(n.readyState)&&T.emit("idleSpanEnableAutoFinish",je)}F&&!E&&n&&(n.addEventListener("readystatechange",()=>{Xe()}),Xe())}return{name:fx,setup(T){if(x){v&&m.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}y_();const z=Lt(T);if(L=b0({recordClsStandaloneSpans:z?void 0:a||!1,recordLcpStandaloneSpans:z?void 0:c||!1,client:T}),z?(G0(T),Y0(T),r&&K0()):r&&H0(),o&&D.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes("long-animation-frame")?T0():s&&E0(),i&&v0(),S&&n){const F=()=>{ee=de()};addEventListener("click",F,{capture:!0}),addEventListener("keydown",F,{capture:!0,passive:!0})}function M(){const F=es(T);F&&!j(F).timestamp&&(v&&m.log(`[Tracing] Finishing current active span with op: ${j(F).op}`),F.setAttribute(qr,"cancelled"),F.end())}T.on("startNavigationSpan",(F,ae)=>{if(w()!==T)return;if(ae?.isRedirect){v&&m.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),re(T,{op:"navigation.redirect",...F},!1);return}ee=void 0,M(),be().setPropagationContext({traceId:bt(),sampleRand:Math.random(),propagationSpanId:st()?void 0:At()});const te=V();te.setPropagationContext({traceId:bt(),sampleRand:Math.random(),propagationSpanId:st()?void 0:At()}),te.setSDKProcessingMetadata({normalizedRequest:void 0}),re(T,{op:"navigation",...F,parentSpan:null,forceTransaction:!0})}),T.on("startPageLoadSpan",(F,ae={})=>{if(w()!==T)return;M();const te=ae.sentryTrace||Pd("sentry-trace")||Ld("sentry-trace"),Ee=ae.baggage||Pd("baggage")||Ld("baggage"),je=kf(te,Ee),Xe=V();Xe.setPropagationContext(je),st()||(Xe.getPropagationContext().propagationSpanId=At()),Xe.setSDKProcessingMetadata({normalizedRequest:Oc()}),re(T,{op:"pageload",...F})}),T.on("endPageloadSpan",()=>{E&&Q&&(Q.setAttribute(qr,"reportPageLoaded"),Q.end())})},afterAllSetup(T){if(x)return;let z=An();if(C!=="off"&&cx(T,{linkPreviousTrace:C,consistentTraceSampling:H}),O.location){if(U){const M=Ie();_x(T,{name:O.location.pathname,startTime:M?M/1e3:void 0,attributes:{[Ae]:"url",[W]:"auto.pageload.browser"}})}P&&mi(({to:M,from:F})=>{if(F===void 0&&z?.indexOf(M)!==-1){z=void 0;return}z=void 0;const ae=gc(M),te=es(T),Ee=te&&S&&Sx(te,ee);Hr(T,{name:ae?.pathname||O.location.pathname,attributes:{[Ae]:"url",[W]:"auto.navigation.browser"}},{url:M,isRedirect:Ee})})}f&&ox(),i&&yx(T,d,l,p,t),r&&z0(),Z1(T,{traceFetch:h,traceXHR:g,trackFetchStreamPerformance:_,tracePropagationTargets:T.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:y,enableHTTPTimings:b,onRequestSpanStart:N,onRequestSpanEnd:k})}}});function _x(e,t,n){e.emit("startPageLoadSpan",t,n),V().setTransactionName(t.name);const r=es(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function Hr(e,t,n){const{url:r,isRedirect:s}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:s}),e.emit("startNavigationSpan",t,{isRedirect:s});const o=V();return o.setTransactionName(t.name),r&&!s&&o.setSDKProcessingMetadata({normalizedRequest:{...Oc(),url:r}}),es(e)}function Pd(e){return O.document?.querySelector(`meta[name=${e}]`)?.getAttribute("content")||void 0}function Ld(e){return O.performance?.getEntriesByType?.("navigation")[0]?.serverTiming?.find(r=>r.name===e)?.description}function yx(e,t,n,r,s){const o=O.document;let i;const a=()=>{const c="ui.action.click",u=es(e);if(u){const d=j(u).op;if(["navigation","pageload"].includes(d)){v&&m.warn(`[Tracing] Did not create ${c} span because a pageload or navigation span is in progress.`);return}}if(i&&(i.setAttribute(qr,"interactionInterrupted"),i.end(),i=void 0),!s.name){v&&m.warn(`[Tracing] Did not create ${c} transaction because _latestRouteName is missing.`);return}i=Gf({name:s.name,op:c,attributes:{[Ae]:s.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};o&&addEventListener("click",a,{capture:!0})}const Dm="_sentry_idleSpan";function es(e){return e[Dm]}function Dd(e,t){Le(e,Dm,t)}const Fd=1.5;function Sx(e,t){const n=j(e),r=xn(),s=n.start_timestamp;return!(r-s>Fd||t&&r-t<=Fd)}function TN(e=w()){e?.emit("endPageloadSpan")}function vN(e){const t=Te();if(t===e)return;const n=V();e.end=new Proxy(e.end,{apply(r,s,o){return Et(n,t),Reflect.apply(r,s,o)}}),Et(n,e)}const IN=()=>({name:"SpanStreaming",beforeSetup(e){const t=e.getOptions();t.traceLifecycle||(v&&m.log('[SpanStreaming] setting `traceLifecycle` to "stream"'),t.traceLifecycle="stream")},setup(e){const t="SpanStreaming integration requires",n="Falling back to static trace lifecycle.",r=e.getOptions();if(!Lt(e)){r.traceLifecycle="static",v&&m.warn(`${t} \`traceLifecycle\` to be set to "stream"! ${n}`);return}const s=r.beforeSendSpan;if(s&&!Jo(s)){r.traceLifecycle="static",v&&m.warn(`${t} a beforeSendSpan callback using \`withStreamedSpan\`! ${n}`);return}const o=new GT(e);e.on("afterSpanEnd",i=>{Ht(i)&&o.add(oy(i,e))}),e.on("afterSegmentSpanEnd",i=>{const a=i.spanContext().traceId;setTimeout(()=>{o.flush(a)},500)})}});function dr(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function bx(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=dr(n);return s=>r.then(o=>s(o.transaction(t,"readwrite").objectStore(t)))}function au(e){return dr(e.getAllKeys())}function Ex(e,t,n){return e(r=>au(r).then(s=>{if(!(s.length>=n))return r.put(t,Math.max(...s,0)+1),dr(r.transaction)}))}function Tx(e,t,n){return e(r=>au(r).then(s=>{if(!(s.length>=n))return r.put(t,Math.min(...s,0)-1),dr(r.transaction)}))}function vx(e){return e(t=>au(t).then(n=>{const r=n[0];if(r!=null)return dr(t.get(r)).then(s=>(t.delete(r),dr(t.transaction).then(()=>s)))}))}function Ix(e){let t;function n(){return t==null&&(t=bx(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{const s=So(r);await Ex(n(),s,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{const s=So(r);await Tx(n(),s,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const r=await vx(n());if(r)return A_(r)}catch{}}}}function wx(e){return t=>{const n=e({...t,createStore:Ix});return O.addEventListener("online",async r=>{await n.flush()}),n}}function wN(e=Rh){return wx(cS(e))}const $d=1e6,kx="window"in D&&D.window===D&&typeof importScripts>"u",en=String(0),jo=kx?"main":"worker",qo=O.navigator;let Fm="",$m="",Bm="",Ga=qo?.userAgent||"",Um="";const Rx=qo?.language||qo?.languages?.[0]||"";function Cx(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const Bd=qo?.userAgentData;Cx(Bd)&&Bd.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{if(Fm=e.platform||"",Bm=e.architecture||"",Um=e.model||"",$m=e.platformVersion||"",e.fullVersionList?.length){const t=e.fullVersionList[e.fullVersionList.length-1];Ga=`${t.brand} ${t.version}`}}).catch(e=>{});function Ax(e){return!("thread_metadata"in e)}function xx(e){return Ax(e)?Dx(e):e}function Mx(e){const t=e.contexts?.trace?.trace_id;return typeof t=="string"&&t.length!==32&&v&&m.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function Nx(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const s=Mx(r),o=xx(n),i=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:de()*1e3),a=typeof r.timestamp=="number"?r.timestamp*1e3:de()*1e3;return{event_id:e,timestamp:new Date(i).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||Yo,runtime:{name:"javascript",version:O.navigator.userAgent},os:{name:Fm,version:$m,build_number:Ga},device:{locale:Rx,model:Um,manufacturer:Ga,architecture:Bm,is_emulator:!1},debug_meta:{images:Wm(n.resources)},profile:o,transactions:[{name:r.transaction||"",id:r.event_id||we(),trace_id:s,active_thread_id:en,relative_start_ns:"0",relative_end_ns:((a-i)*1e6).toFixed(0)}]}}function Ox(e,t,n){if(e==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);const r=Lx(e),s=t.getOptions(),o=t.getSdkMetadata?.()?.sdk;return{chunk_id:we(),client_sdk:{name:o?.name??"sentry.javascript.browser",version:o?.version??"0.0.0"},profiler_id:n||we(),platform:"javascript",version:"2",release:s.release??"",environment:s.environment??"production",debug_meta:{images:Wm(e.resources)},profile:r}}function Px(e){try{if(!e||typeof e!="object")return{reason:"chunk is not an object"};const t=r=>typeof r=="string"&&/^[a-f0-9]{32}$/.test(r);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};const n=e.profile;return n?!Array.isArray(n.frames)||!n.frames.length?{reason:"profile has no frames"}:!Array.isArray(n.stacks)||!n.stacks.length?{reason:"profile has no stacks"}:!Array.isArray(n.samples)||!n.samples.length?{reason:"profile has no samples"}:{valid:!0}:{reason:"missing profile data"}}catch(t){return{reason:`unknown validation error: ${t}`}}}function Lx(e){const t=[];for(let a=0;a<e.frames.length;a++){const c=e.frames[a];c&&(t[a]={function:c.name,abs_path:typeof c.resourceId=="number"?e.resources[c.resourceId]:void 0,lineno:c.line,colno:c.column})}const n=[];for(let a=0;a<e.stacks.length;a++){const c=e.stacks[a];if(!c)continue;const u=[];let d=c;for(;d;)u.push(d.frameId),d=d.parentId===void 0?void 0:e.stacks[d.parentId];n[a]=u}const r=Ie(),s=typeof performance.timeOrigin=="number"?performance.timeOrigin:r||0,o=s-(r||s),i=[];for(let a=0;a<e.samples.length;a++){const c=e.samples[a];if(!c)continue;const u=(s+(c.timestamp-o))/1e3;i[a]={stack_id:c.stackId??0,thread_id:en,timestamp:u}}return{frames:t,stacks:n,samples:i,thread_metadata:{[en]:{name:jo}}}}function Hm(e){return j(e).op==="pageload"}function Dx(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[en]:{name:jo}}},s=e.samples[0];if(!s)return r;const o=s.timestamp,i=Ie(),a=typeof performance.timeOrigin=="number"?performance.timeOrigin:i||0,c=a-(i||a);return e.samples.forEach((u,d)=>{if(u.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[d]={elapsed_since_start_ns:((u.timestamp+c-o)*$d).toFixed(0),stack_id:t,thread_id:en};return}let l=e.stacks[u.stackId];const p=[];for(;l;){p.push(l.frameId);const h=e.frames[l.frameId];h&&r.frames[l.frameId]===void 0&&(r.frames[l.frameId]={function:h.name,abs_path:typeof h.resourceId=="number"?e.resources[h.resourceId]:void 0,lineno:h.line,colno:h.column}),l=l.parentId===void 0?void 0:e.stacks[l.parentId]}const f={elapsed_since_start_ns:((u.timestamp+c-o)*$d).toFixed(0),stack_id:n,thread_id:en};r.stacks[n]=p,r.samples[d]=f,n++}),r}function Fx(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function $x(e){const t=[];return En(e,(n,r)=>{if(r==="transaction")for(let s=1;s<n.length;s++)n[s]?.contexts?.profile?.profile_id&&t.push(n[s])}),t}function Wm(e){const r=w()?.getOptions()?.stackParser;return r?uy(r,e):[]}function jm(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(v&&m.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(v&&m.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function Bx(e){return e.samples.length<2?(v&&m.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(v&&m.log("[Profiling] Discarding profile because it contains no frames"),!1)}let cu=!1;const qm=3e4;function Ux(e){return typeof e=="function"}function zm(){const e=O.Profiler;if(!Ux(e)){v&&m.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(qm/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{v&&(m.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),m.log("[Profiling] Disabling profiling for current user session.")),cu=!0}}function Ud(e){if(cu)return v&&m.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return v&&m.log("[Profiling] Discarding profile because root span was not sampled."),!1;const n=w()?.getOptions();if(!n)return v&&m.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return jm(r)?r?(r===!0?!0:Math.random()<r)?!0:(v&&m.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(v&&m.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(v&&m.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function Hx(e){if(cu)return v&&m.log("[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started."),!1;if(e.profileLifecycle!=="trace"&&e.profileLifecycle!=="manual")return v&&m.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;const t=e.profileSessionSampleRate;return jm(t)?t?Math.random()<=t:(v&&m.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(v&&m.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}function zs(e){return typeof e.profilesSampleRate<"u"}function Wx(e,t,n,r){return Bx(n)?Nx(e,t,n,r):null}const gn=new Map;function jx(){return gn.size}function qx(e){const t=gn.get(e);return t&&gn.delete(e),t}function zx(e,t){if(gn.set(e,t),gn.size>30){const n=gn.keys().next().value;n!==void 0&&gn.delete(n)}}function Gx(e){return!e?.contexts?.profile||!e.contexts||(e.contexts.trace?.trace_id&&(e.contexts.trace={...e.contexts.trace,data:{...e.contexts.trace.data??{},"thread.id":en,"thread.name":jo}}),e.spans?.forEach(t=>{t.data={...t.data||{},"thread.id":en,"thread.name":jo}})),e}function Hd(e){let t;Hm(e)&&(t=de()*1e3);const n=zm();if(!n)return;v&&m.log(`[Profiling] started profiling span: ${j(e).description}`);const r=we();let s=null;V().setContext("profile",{profile_id:r,start_timestamp:t});async function o(){if(e&&n){if(s){v&&m.log("[Profiling] profile for:",j(e).description,"already exists, returning early");return}return n.stop().then(u=>{if(i&&(O.clearTimeout(i),i=void 0),v&&m.log(`[Profiling] stopped profiling of span: ${j(e).description}`),!u){v&&m.log(`[Profiling] profiler returned null profile for: ${j(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}s=u,zx(r,u)}).catch(u=>{v&&m.log("[Profiling] error while stopping profiler:",u)})}}let i=O.setTimeout(()=>{v&&m.log("[Profiling] max profile duration elapsed, stopping profiling for:",j(e).description),o()},qm);const a=e.end.bind(e);function c(){return e?(o().then(()=>{a()},()=>{a()}),e):a()}e.end=c}const Vx=6e4,Yx=3e5;class Jx{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(t){const n=t.getOptions().profileLifecycle,r=Hx(t.getOptions());v&&m.log(`[Profiling] Initializing profiler (lifecycle='${n}').`),r||v&&m.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=we(),this._client=t,this._sessionSampled=r,this._lifecycleMode=n,n==="trace"&&this._setupTraceLifecycleListeners(t)}start(){if(this._lifecycleMode==="trace"){v&&m.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){v&&m.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){v&&m.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if(this._lifecycleMode==="trace"){v&&m.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){v&&m.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(t){if(this._lifecycleMode!=="trace"||!this._sessionSampled)return;const n=t.spanContext().spanId;if(!n||this._activeRootSpanIds.has(n))return;this._registerTraceRootSpan(n);const r=this._activeRootSpanIds.size;r===1&&(v&&m.log("[Profiling] Detected already active root span during setup. Active root spans now:",r),this._beginProfiling())}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,v&&m.log("[Profiling] Started profiling with profiler ID:",this._profilerId),Pr().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){v&&m.log("[Profiling] Failed to start JS Profiler; stopping."),this._resetProfilerInfo();return}this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(t=>{v&&m.error("[Profiling] Failed to collect current profile chunk on `stop()`:",t)}),this._lifecycleMode==="manual"&&Pr().setContext("profile",{}))}_setupTraceLifecycleListeners(t){t.on("spanStart",n=>{if(!this._sessionSampled){v&&m.log("[Profiling] Span not profiled because of negative sampling decision for user session.");return}if(n!==Se(n))return;if(!n.isRecording()){v&&m.log("[Profiling] Discarding profile because root span was not sampled.");return}const r=n.spanContext().spanId;if(!r||this._activeRootSpanIds.has(r))return;this._registerTraceRootSpan(r);const s=this._activeRootSpanIds.size;s===1&&(v&&m.log(`[Profiling] Root span ${r} started. Profiling active while there are active root spans (count=${s}).`),this._beginProfiling())}),t.on("spanEnd",n=>{if(!this._sessionSampled)return;const r=n.spanContext().spanId;if(!r||!this._activeRootSpanIds.has(r))return;this._activeRootSpanIds.delete(r);const s=this._activeRootSpanIds.size;v&&m.log(`[Profiling] Root span with ID ${r} ended. Will continue profiling for as long as there are active root spans (currently: ${s}).`),s===0&&(this._collectCurrentChunk().catch(o=>{v&&m.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",o)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,Pr().setContext("profile",{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(t=>clearTimeout(t)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(t){this._activeRootSpanIds.add(t);const n=setTimeout(()=>this._onRootSpanTimeout(t),Yx);this._rootSpanTimeouts.set(t,n)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;const t=zm();if(!t){v&&m.log("[Profiling] Failed to start JS Profiler.");return}this._profiler=t}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(t=>{v&&m.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",t)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler){this._resetProfilerInfo();return}this._startPeriodicChunking()}},Vx))}_onRootSpanTimeout(t){this._rootSpanTimeouts.has(t)&&(this._rootSpanTimeouts.delete(t),this._activeRootSpanIds.has(t)&&(v&&m.log(`[Profiling] Reached 5-minute timeout for root span ${t}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(t),this._activeRootSpanIds.size===0&&this._endProfiling()))}async _collectCurrentChunk(){const t=this._profiler;if(this._profiler=void 0,!!t)try{const n=await t.stop(),r=Ox(n,this._client,this._profilerId),s=Px(r);if("reason"in s){v&&m.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",s.reason);return}this._sendProfileChunk(r),v&&m.log("[Profiling] Collected browser profile chunk.")}catch(n){v&&m.log("[Profiling] Error while stopping JS Profiler for chunk:",n)}}_sendProfileChunk(t){const n=this._client,r=cs(n.getSdkMetadata?.()),s=n.getDsn(),o=n.getOptions().tunnel,i=at({event_id:we(),sent_at:new Date().toISOString(),...r&&{sdk:r},...!!o&&s&&{dsn:It(s)}},[[{type:"profile_chunk",platform:"javascript"},t]]);n.sendEnvelope(i).then(null,a=>{v&&m.error("Error while sending profile chunk envelope:",a)})}}const Kx="BrowserProfiling",Xx=(()=>({name:Kx,setup(e){const t=e.getOptions(),n=new Jx;if(!zs(t)&&!t.profileLifecycle&&(t.profileLifecycle="manual"),zs(t)&&!t.profilesSampleRate){v&&m.log("[Profiling] Profiling disabled, no profiling options found.");return}const r=Te(),s=r&&Se(r);if(zs(t)&&t.profileSessionSampleRate!==void 0&&v&&m.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),zs(t))s&&Hm(s)&&Ud(s)&&Hd(s),e.on("spanStart",o=>{o===Se(o)&&Ud(o)&&Hd(o)}),e.on("beforeEnvelope",o=>{if(!jx())return;const i=$x(o);if(!i.length)return;const a=[];for(const c of i){const u=c?.contexts,d=u?.profile?.profile_id,l=u?.profile?.start_timestamp;if(typeof d!="string"){v&&m.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!d){v&&m.log("[Profiling] cannot find profile for a span without a profile context");continue}u?.profile&&delete u.profile;const p=qx(d);if(!p){v&&m.log(`[Profiling] Could not retrieve profile for span: ${d}`);continue}const f=Wx(d,l,p,c);f&&a.push(f)}Fx(o,a)});else{const o=t.profileLifecycle;if(e.on("startUIProfiler",()=>n.start()),e.on("stopUIProfiler",()=>n.stop()),o==="manual")n.initialize(e);else if(o==="trace"){if(!st(t)){v&&m.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}n.initialize(e),s&&n.notifyRootSpanActive(s),O.setTimeout(()=>{const i=Te(),a=i&&Se(i);a&&n.notifyRootSpanActive(a)},0)}}},processEvent(e){return Gx(e)}})),kN=Xx,RN=()=>({name:"LaunchDarkly",processEvent(e,t,n){return mr(e)}});function CN(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{Tn(e,t.value),vn(e,t.value)}}}const AN=()=>({name:"OpenFeature",processEvent(e,t,n){return mr(e)}});class xN{after(t,n){Tn(n.flagKey,n.value),vn(n.flagKey,n.value)}error(t,n,r){Tn(t.flagKey,t.defaultValue),vn(t.flagKey,t.defaultValue)}}const MN=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;Oe(t,"isEnabled",Qx)},processEvent(t,n,r){return mr(t)}});function Qx(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?(Tn(n,r),vn(n,r)):v&&m.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const NN=(({growthbookClass:e})=>Nb({growthbookClass:e})),ON=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",n=>{Tn(n.gate.name,n.gate.value),vn(n.gate.name,n.gate.value)})},processEvent(t,n,r){return mr(t)}});async function PN(){const e=w();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";const r=e.getOptions().tunnel||"https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7";try{await q_(()=>fetch(r,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}const Zx="WebWorker",LN=({worker:e})=>({name:Zx,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(t=>Wd(t))},addWorker:t=>Wd(t)});function Wd(e){e.addEventListener("message",t=>{if(tM(t.data)){if(t.stopImmediatePropagation(),t.data._sentryDebugIds&&(v&&m.log("Sentry debugId web worker message received",t.data),O._sentryDebugIds={...t.data._sentryDebugIds,...O._sentryDebugIds}),t.data._sentryModuleMetadata&&(v&&m.log("Sentry module metadata web worker message received",t.data),O._sentryModuleMetadata={...t.data._sentryModuleMetadata,...O._sentryModuleMetadata}),t.data._sentryWasmImages){v&&m.log("Sentry WASM images web worker message received",t.data);const n=O._sentryWasmImages||[],r=t.data._sentryWasmImages.filter(s=>We(s)&&typeof s.code_file=="string"&&!n.some(o=>o.code_file===s.code_file));O._sentryWasmImages=[...n,...r]}t.data._sentryWorkerError&&(v&&m.log("Sentry worker rejection message received",t.data._sentryWorkerError),eM(t.data._sentryWorkerError))}})}function eM(e){const t=w();if(!t)return;const n=t.getOptions().stackParser,r=t.getOptions().attachStacktrace,s=e.reason,o=Nt(s)?xh(s):ci(n,s,void 0,r,!0);o.level="error",e.filename&&(o.contexts={...o.contexts,worker:{filename:e.filename}}),ds(o,{originalException:s,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),v&&m.log("Captured worker unhandled rejection",s)}function DN({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{const r={reason:Ah(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:r}),v&&m.log("[Sentry Worker] Forwarding unhandled rejection to parent",r)}),v&&m.log("[Sentry Worker] Registered worker with unhandled rejection handling")}function tM(e){if(!We(e)||e._sentryMessage!==!0)return!1;const t="_sentryDebugIds"in e,n="_sentryModuleMetadata"in e,r="_sentryWorkerError"in e,s="_sentryWasmImages"in e;return!(!t&&!n&&!r&&!s||t&&!(We(e._sentryDebugIds)||e._sentryDebugIds===void 0)||n&&!(We(e._sentryModuleMetadata)||e._sentryModuleMetadata===void 0)||r&&!We(e._sentryWorkerError)||s&&(!Array.isArray(e._sentryWasmImages)||!e._sentryWasmImages.every(o=>We(o)&&typeof o.code_file=="string")))}const nM="BrowserTracing";function FN(e){e.integrations&&Array.isArray(e.integrations)&&e.integrations.some(r=>r.name===nM)&&vt(()=>{console.warn("browserTracingIntegration is not fully compatible with @sentry/react-router. Please use reactRouterTracingIntegration instead.")}),_p(e,"react-router",["react-router","browser"]);const t=wk(e);return Ty("runtime","browser"),t}const Wr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function oa(e){try{return new URL(e.url).pathname}catch{try{return new URL(e.url,"http://example.com").pathname}catch(t){return Wr&&m.warn("Failed to parse URL from request:",e.url,t),"<unknown>"}}}function ia(e){return e.pattern??e.unstable_pattern}function aa(e){if(e)return e.startsWith("/")?e:`/${e}`}function jt(e,t,n,r){t&&fe(e.error,{mechanism:{type:n,handled:!1,data:r}})}function Gm(e){if(typeof e!="object"||e===null)return String(e);const t=e.pathname;return typeof t=="string"?t||"/":D.location?.pathname||"/"}const ln=D;let dn;const jd=new WeakMap,Vm="__sentryReactRouterClientInstrumentationUsed",Ym="__sentryReactRouterNavigateHookInvoked",qd="__sentryReactRouterPopstateListenerAdded",Gn=D;function zd(e={}){const{captureErrors:t=!0}=e;return Wr&&m.log("React Router client instrumentation API created."),{router(n){Gn[Vm]=!0,Wr&&m.log("React Router client instrumentation API router hook registered."),!Gn[qd]&&ln.addEventListener&&(Gn[qd]=!0,ln.addEventListener("popstate",()=>{const r=w();if(!r){dn=void 0;return}const s=ln.location?.pathname||"/";if(dn){dn.isRecording()&&dn.updateName(s),dn=void 0;return}Hr(r,{name:s,attributes:{[Ae]:"url",[ie]:"navigation",[W]:"auto.navigation.react_router.instrumentation_api","navigation.type":"browser.popstate"}})}),Wr&&m.log("React Router popstate listener registered for browser back/forward navigation.")),n.instrument({async navigate(r,s){if(s.to===0){const u=await r();u.status==="error"&&u.error instanceof Error&&jt(u,t,"react_router.navigate",{"http.url":s.currentUrl});return}if(Gn[Ym]=!0,typeof s.to=="number"){const u=w();let d;if(u){const l=s.to<0?"router.back":"router.forward",p=ln.location?.pathname||s.currentUrl;d=Hr(u,{name:p,attributes:{[Ae]:"url",[ie]:"navigation",[W]:"auto.navigation.react_router.instrumentation_api","navigation.type":l}}),dn=d}try{const l=await r();d&&ln.location&&d.updateName(ln.location.pathname),l.status==="error"&&l.error instanceof Error&&(d&&d.setStatus({code:Y,message:"internal_error"}),jt(l,t,"react_router.navigate",{"http.url":ln.location?.pathname||s.currentUrl}))}finally{dn=void 0}return}const o=w(),i=Gm(s.to);let a;o&&(a=Hr(o,{name:i,attributes:{[Ae]:"url",[ie]:"navigation",[W]:"auto.navigation.react_router.instrumentation_api","navigation.type":"router.navigate"}}));const c=await r();c.status==="error"&&c.error instanceof Error&&(a&&a.setStatus({code:Y,message:"internal_error"}),jt(c,t,"react_router.navigate",{"http.url":i}))},async fetch(r,s){await Ye({name:`Fetcher ${s.fetcherKey}`,attributes:{[ie]:"function.react_router.fetcher",[W]:"auto.function.react_router.instrumentation_api"}},async o=>{const i=await r();i.status==="error"&&i.error instanceof Error&&(o.setStatus({code:Y,message:"internal_error"}),jt(i,t,"react_router.fetcher",{"http.url":s.href}))})}})},route(n){const r=n.id;n.instrument({async loader(s,o){const i=oa(o.request),a=aa(ia(o))||i;await Ye({name:a,attributes:{[ie]:"function.react_router.client_loader",[W]:"auto.function.react_router.instrumentation_api"}},async c=>{const u=await s();u.status==="error"&&u.error instanceof Error&&(c.setStatus({code:Y,message:"internal_error"}),jt(u,t,"react_router.client_loader",{"http.url":i}))})},async action(s,o){const i=oa(o.request),a=aa(ia(o))||i;await Ye({name:a,attributes:{[ie]:"function.react_router.client_action",[W]:"auto.function.react_router.instrumentation_api"}},async c=>{const u=await s();u.status==="error"&&u.error instanceof Error&&(c.setStatus({code:Y,message:"internal_error"}),jt(u,t,"react_router.client_action",{"http.url":i}))})},async middleware(s,o){const i=oa(o.request),a=aa(ia(o))||i;let c=jd.get(o.request);c||(c={},jd.set(o.request,c));const u=c[r]??0;c[r]=u+1,await Ye({name:`middleware ${r}`,attributes:{[ie]:"function.react_router.client_middleware",[W]:"auto.function.react_router.instrumentation_api","react_router.route.id":r,"http.route":a,"react_router.middleware.index":u}},async d=>{const l=await s();l.status==="error"&&l.error instanceof Error&&(d.setStatus({code:Y,message:"internal_error"}),jt(l,t,"react_router.client_middleware",{"http.url":i}))})},async lazy(s){await Ye({name:"Lazy Route Load",attributes:{[ie]:"function.react_router.client_lazy",[W]:"auto.function.react_router.instrumentation_api"}},async o=>{const i=await s();i.status==="error"&&i.error instanceof Error&&(o.setStatus({code:Y,message:"internal_error"}),jt(i,t,"react_router.client_lazy",{}))})}})}}}function rM(){return!!Gn[Vm]}function $N(){return!!Gn[Ym]}const sM=D,Gd=40;function oM(){function e(){const t=sM.__reactRouterDataRouter;if(t){const n=Vd();if(n){const r=j(n).description,s=Yd(t.state);r&&Or(t.state.location.pathname)===Or(r)&&(n.updateName(s),n.setAttributes({[Ae]:"route",[W]:"auto.pageload.react_router"}))}if(typeof t.navigate=="function"){const r=t.navigate.bind(t);t.navigate=function(...o){return rM()||iM(Gm(o[0])||"<unknown route>","url"),r(...o)}}return t.subscribe(r=>{const s=Vd();if(!s)return;const o=j(s).description,i=Yd(r);o&&r.navigation.state==="idle"&&Or(r.location.pathname)===Or(o)&&(s.updateName(i),s.setAttributes({[Ae]:"route",[W]:"auto.navigation.react_router"}))}),!0}return!1}if(!e()){let t=0;const n=setInterval(()=>{(e()||t>=Gd)&&(t>=Gd&&Wr&&m.warn("Unable to instrument React Router: router not found after hydration."),clearInterval(n)),t++},50)}}function iM(e,t){const n=w();if(n)return Hr(n,{name:e,attributes:{[Ae]:t,[ie]:"navigation",[W]:"auto.navigation.react_router"}})}function Vd(){const e=Te();if(!e)return;const t=Se(e),n=j(t).op;return n==="navigation"||n==="pageload"?t:void 0}function Yd(e){const t=e.matches[e.matches.length-1];return Or(t?.route.path??e.location.pathname)}function Or(e){let t=e.startsWith("/")?e:`/${e}`;return t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t}function BN(e={}){const t=gx({instrumentNavigation:!1});let n;(e.useInstrumentationAPI||e.instrumentationOptions)&&(n=zd(e.instrumentationOptions));const r=()=>(n||(n=zd(e.instrumentationOptions)),n);return{...t,name:"ReactRouterTracingIntegration",afterAllSetup(s){t.afterAllSetup(s),oM()},get clientInstrumentation(){return r()}}}function aM(e){const t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function cM(e,t){const n=new WeakSet;function r(s,o){if(!n.has(s)){if(s.cause)return n.add(s),r(s.cause,o);s.cause=o}}r(e,t)}function uu(e,{componentStack:t},n){if(aM(nt.version)&&_t(e)&&t){const r=new Error(e.message);r.name=`React ErrorBoundary ${e.name}`,r.stack=t,cM(e,r)}return Ke(r=>(r.setContext("react",{componentStack:t}),fe(e,n)))}function UN(e){return(t,n)=>{const r=!!e,s=uu(t,n,{mechanism:{handled:r,type:"auto.function.react.error_handler"}});r&&e(t,n,s)}}const Jm="ui.react.render",uM="ui.react.update",Km="ui.react.mount",lM={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},dM={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fM={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Xm={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},pM=Symbol.for("react.forward_ref"),Qm=Symbol.for("react.memo");function hM(e){return typeof e=="object"&&e!==null&&e.$$typeof===Qm}const lu={};lu[pM]=fM;lu[Qm]=Xm;function Jd(e){if(hM(e))return Xm;const t=e.$$typeof;return t&&lu[t]||lM}const mM=Object.defineProperty.bind(Object),gM=Object.getOwnPropertyNames.bind(Object),Kd=Object.getOwnPropertySymbols?.bind(Object),Xd=Object.getOwnPropertyDescriptor.bind(Object),_M=Object.getPrototypeOf.bind(Object),Qd=Object.prototype;function du(e,t,n){if(typeof t!="string"){if(Qd){const i=_M(t);i&&i!==Qd&&du(e,i)}let r=gM(t);Kd&&(r=r.concat(Kd(t)));const s=Jd(e),o=Jd(t);for(const i of r)if(!dM[i]&&!o?.[i]&&!s?.[i]&&!Xd(e,i)){const a=Xd(t,i);if(a)try{mM(e,i,a)}catch{}}}return e}const yM="unknown";class Zm extends nt.Component{constructor(t){super(t);const{name:n,disabled:r=!1}=this.props;r||(this._mountSpan=ot({name:`<${n}>`,onlyIfParent:!0,op:Km,attributes:{[W]:"auto.ui.react.profiler","ui.component_name":n}}))}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:t,includeUpdates:n=!0}){if(n&&this._mountSpan&&t!==this.props.updateProps){const r=Object.keys(t).filter(s=>t[s]!==this.props.updateProps[s]);if(r.length>0){const s=de();this._updateSpan=tr(this._mountSpan,()=>ot({name:`<${this.props.name}>`,onlyIfParent:!0,op:uM,startTime:s,attributes:{[W]:"auto.ui.react.profiler","ui.component_name":this.props.name,"ui.react.changed_props":r}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){const t=de(),{name:n,includeRender:r=!0}=this.props;if(this._mountSpan&&r){const s=j(this._mountSpan).timestamp;tr(this._mountSpan,()=>{const o=ot({onlyIfParent:!0,name:`<${n}>`,op:Jm,startTime:s,attributes:{[W]:"auto.ui.react.profiler","ui.component_name":n}});o&&o.end(t)})}}render(){return this.props.children}}Object.assign(Zm,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}});function HN(e,t){const n=t?.name||e.displayName||e.name||yM,r=s=>nt.createElement(Zm,{...t,name:n,updateProps:s},nt.createElement(e,{...s}));return r.displayName=`profiler(${n})`,du(r,e),r}function WN(e,t={disabled:!1,hasRenderSpan:!0}){const[n]=nt.useState(()=>{if(!t?.disabled)return ot({name:`<${e}>`,onlyIfParent:!0,op:Km,attributes:{[W]:"auto.ui.react.profiler","ui.component_name":e}})});nt.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){const r=j(n).timestamp,s=de(),o=ot({name:`<${e}>`,onlyIfParent:!0,op:Jm,startTime:r,attributes:{[W]:"auto.ui.react.profiler","ui.component_name":e}});o&&o.end(s)}}),[])}const SM=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,bM="unknown",ca={componentStack:null,error:null,eventId:null};class EM extends nt.Component{constructor(t){super(t),this.state=ca,this._openFallbackReportDialog=!0;const n=w();n&&t.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=n.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&Vl({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,n){const{componentStack:r}=n,{beforeCapture:s,onError:o,showDialog:i,dialogOptions:a}=this.props;Ke(c=>{s&&s(c,t,r);const u=this.props.handled!=null?this.props.handled:!!this.props.fallback,d=uu(t,n,{mechanism:{handled:u,type:"auto.function.react.error_boundary"}});o&&o(t,r,d),i&&(this._lastEventId=d,this._openFallbackReportDialog&&Vl({...a,eventId:d})),this.setState({error:t,componentStack:r,eventId:d})})}componentDidMount(){const{onMount:t}=this.props;t&&t()}componentWillUnmount(){const{error:t,componentStack:n,eventId:r}=this.state,{onUnmount:s}=this.props;s&&(this.state===ca?s(null,null,null):s(t,n,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:t}=this.props,{error:n,componentStack:r,eventId:s}=this.state;t&&t(n,r,s),this.setState(ca)}render(){const{fallback:t,children:n}=this.props,r=this.state;if(r.componentStack===null)return typeof n=="function"?n():n;const s=typeof t=="function"?nt.createElement(t,{error:r.error,componentStack:r.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:r.eventId}):t;return nt.isValidElement(s)?s:(t&&SM&&m.warn("fallback did not produce a valid ReactElement"),null)}}function jN(e,t){const n=e.displayName||e.name||bM,r=nt.memo(s=>nt.createElement(EM,{...t},nt.createElement(e,{...s})));return r.displayName=`errorBoundary(${n})`,du(r,e),r}function qN(e,{errorInfo:t}){const n={handled:!1,type:"auto.function.react_router.on_error"};t?uu(e,t,{mechanism:n}):fe(e,{mechanism:n})}export{FI as BrowserClient,EM as ErrorBoundary,Bi as MULTIPLEXED_TRANSPORT_EXTRA_KEY,xN as OpenFeatureIntegrationHook,Zm as Profiler,Jt as SDK_VERSION,ie as SEMANTIC_ATTRIBUTE_SENTRY_OP,W as SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,ec as SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,Ae as SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,Tt as Scope,O as WINDOW,Dt as addBreadcrumb,wy as addEventProcessor,ju as addIntegration,$w as breadcrumbsIntegration,Jw as browserApiErrorsIntegration,kN as browserProfilingIntegration,tk as browserSessionIntegration,gx as browserTracingIntegration,CN as buildLaunchDarklyFlagUsedHandler,$M as captureConsoleIntegration,ds as captureEvent,fe as captureException,jb as captureFeedback,by as captureMessage,uu as captureReactException,Oi as captureSession,Tw as chromeStackLineParser,PM as close,GM as consoleLoggingIntegration,mN as contextLinesIntegration,RM as continueTrace,YM as createConsolaReporter,QM as createLangChainCallbackHandler,zd as createSentryClientInstrumentation,Yy as createTransport,uN as createUserFeedbackEnvelope,sk as cultureContextIntegration,zS as dedupeIntegration,Pm as defaultRequestInstrumentationOptions,Ow as defaultStackLineParsers,Pw as defaultStackParser,PN as diagnoseSdkConnectivity,sN as elementTimingIntegration,Kf as endSession,RS as eventFiltersIntegration,NI as eventFromException,OI as eventFromMessage,Pc as exceptionFromError,BM as extraErrorDataIntegration,qM as featureFlagsIntegration,nN as feedbackAsyncIntegration,rN as feedbackIntegration,rN as feedbackSyncIntegration,OM as flush,dN as forceLoad,IS as functionToStringIntegration,kw as geckoStackLineParser,Te as getActiveSpan,w as getClient,V as getCurrentScope,Ik as getDefaultIntegrations,tN as getFeedback,Pr as getGlobalScope,be as getIsolationScope,bN as getReplay,Se as getRootSpan,Ys as getSpanDescendants,Qg as getSpanStatusFromHttpCode,yp as getTraceData,ak as globalHandlersIntegration,gN as graphqlClientIntegration,NN as growthbookIntegration,hN as httpClientIntegration,fk as httpContextIntegration,CS as inboundFiltersIntegration,FN as init,KM as instrumentAnthropicAiClient,XM as instrumentGoogleGenAIClient,eN as instrumentLangChainEmbeddings,ZM as instrumentLangGraph,JM as instrumentOpenAiClient,Z1 as instrumentOutgoingRequests,hb as instrumentSupabaseClient,hx as isBotUserAgent,rM as isClientInstrumentationApiUsed,Iy as isEnabled,LM as isInitialized,$N as isNavigateHookInvoked,vy as lastEventId,RN as launchDarklyIntegration,II as lazyLoadIntegration,_k as linkedErrorsIntegration,zM as logger,wN as makeBrowserOfflineTransport,Rh as makeFetchTransport,DM as makeMultiplexedTransport,VM as metrics,FM as moduleMetadataIntegration,fN as onLoad,AN as openFeatureIntegration,aN as opera10StackLineParser,cN as opera11StackLineParser,mS as parameterize,UN as reactErrorHandler,BN as reactRouterTracingIntegration,y_ as registerSpanErrorInstrumentation,DN as registerWebWorker,EN as replayCanvasIntegration,SN as replayIntegration,TN as reportPageLoaded,pN as reportingObserverIntegration,UM as rewriteFramesIntegration,Rv as sendFeedback,qN as sentryOnError,vN as setActiveSpanInBrowser,Ey as setContext,NM as setConversationId,iS as setCurrentClient,AM as setExtra,CM as setExtras,po as setHttpStatus,B_ as setMeasurement,Ty as setTag,xM as setTags,MM as setUser,Vl as showReportDialog,IN as spanStreamingIntegration,wM as spanToBaggageHeader,j as spanToJSON,h_ as spanToTraceHeader,lN as spotlightBrowserIntegration,Hr as startBrowserTracingNavigationSpan,_x as startBrowserTracingPageLoadSpan,ot as startInactiveSpan,z_ as startNewTrace,Uu as startSession,Ye as startSpan,Vt as startSpanManual,ON as statsigIntegration,HM as supabaseIntegration,q_ as suppressTracing,jM as thirdPartyErrorFilterIntegration,oN as uiProfiler,MN as unleashIntegration,IM as updateSpanName,WN as useProfiler,_N as viewHierarchyIntegration,LN as webWorkerIntegration,iN as winjsStackLineParser,tr as withActiveSpan,jN as withErrorBoundary,vM as withIsolationScope,HN as withProfiler,Ke as withScope,kM as withStreamedSpan,WM as zodErrorsIntegration};
500
- //# sourceMappingURL=index.client-B4Gezg7M.js.map