@epic-web/workshop-app 6.90.10 → 6.90.11
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.
- package/build/client/assets/_-BM6C-02E.js +2 -0
- package/build/client/assets/_baseFor-WUky4p9B.js +2 -0
- package/build/client/assets/_exerciseNumber-DwhfQTkj.js +2 -0
- package/build/client/assets/_exerciseNumber_._stepNumber.index-C4l_uBBz.js +2 -0
- package/build/client/assets/_exerciseNumber_.finished-C9DAPWx4.js +2 -0
- package/build/client/assets/_extra-DUPxOJHM.js +2 -0
- package/build/client/assets/_layout-B8DH5bTK.js +2 -0
- package/build/client/assets/_layout-C3mhsbgs.js +2 -0
- package/build/client/assets/_layout-CDnTYwpM.js +2 -0
- package/build/client/assets/_layout-CMMeZc-z.js +2 -0
- package/build/client/assets/_layout-ChjNa6ZU.js +2 -0
- package/build/client/assets/abap-Dv_CZVqt.js +2 -0
- package/build/client/assets/account-BjVtx0vg.js +2 -0
- package/build/client/assets/actionscript-3-Cn8Q7jRj.js +2 -0
- package/build/client/assets/ada-QsZeMDon.js +2 -0
- package/build/client/assets/andromeeda-C7iKOR6M.js +2 -0
- package/build/client/assets/angular-html-BIEm9S_g.js +2 -0
- package/build/client/assets/angular-html-DBfeVIOu.js +1 -0
- package/build/client/assets/angular-ts-BkK9NvKP.js +2 -0
- package/build/client/assets/apache-CAk3xd7C.js +2 -0
- package/build/client/assets/apex-dnzOB0O0.js +2 -0
- package/build/client/assets/apl-DjpXBEU6.js +2 -0
- package/build/client/assets/app-BE4TLiFj.js +2 -0
- package/build/client/assets/applescript-DhJOImq1.js +2 -0
- package/build/client/assets/ara-CE8Mw7gI.js +2 -0
- package/build/client/assets/arc-aZ303vDo.js +2 -0
- package/build/client/assets/architecture-YZFGNWBL-BsohyEL9.js +1 -0
- package/build/client/assets/architectureDiagram-Q4EWVU46-D77el5Zr.js +37 -0
- package/build/client/assets/array-DwKLkc1g.js +2 -0
- package/build/client/assets/asciidoc-BO2ezvdc.js +2 -0
- package/build/client/assets/asm-CE-DdwzK.js +2 -0
- package/build/client/assets/astro-CGaTte8P.js +2 -0
- package/build/client/assets/aurora-x-DKj11gRt.js +2 -0
- package/build/client/assets/awk-C3R9o-Ce.js +2 -0
- package/build/client/assets/ayu-dark-Dk-iGjzP.js +2 -0
- package/build/client/assets/ayu-light-4jMLWy36.js +2 -0
- package/build/client/assets/ayu-mirage-DiPYvRRa.js +2 -0
- package/build/client/assets/ballerina-DnRXa5we.js +2 -0
- package/build/client/assets/bat-YwH-G-0j.js +2 -0
- package/build/client/assets/beancount-ef7XKWgH.js +2 -0
- package/build/client/assets/berry-Bnxzd3ox.js +2 -0
- package/build/client/assets/bibtex-DNN0eZh2.js +2 -0
- package/build/client/assets/bicep-LqncnKZy.js +2 -0
- package/build/client/assets/blade-Bgf63D44.js +2 -0
- package/build/client/assets/blockDiagram-DXYQGD6D-Dew3e-GO.js +133 -0
- package/build/client/assets/bsl-BUZRA3n8.js +2 -0
- package/build/client/assets/button-oqo0ZfAc.js +2 -0
- package/build/client/assets/c-C87NOKQs.js +1 -0
- package/build/client/assets/c-DUPzHQ3A.js +2 -0
- package/build/client/assets/c3-WvR5uzPx.js +2 -0
- package/build/client/assets/c4Diagram-AHTNJAMY-B1p0UT4z.js +11 -0
- package/build/client/assets/cache-dxwmeP7E.js +2 -0
- package/build/client/assets/cadence-CWdspICw.js +2 -0
- package/build/client/assets/cairo-BordGq2b.js +2 -0
- package/build/client/assets/catppuccin-frappe-CwGbwlvI.js +2 -0
- package/build/client/assets/catppuccin-latte-nFzOBf6y.js +2 -0
- package/build/client/assets/catppuccin-macchiato-Blj3nNu6.js +2 -0
- package/build/client/assets/catppuccin-mocha-Dh7nq2VO.js +2 -0
- package/build/client/assets/channel-BsSecm3R.js +2 -0
- package/build/client/assets/chunk-2KRD3SAO-JcBKMF4t.js +2 -0
- package/build/client/assets/chunk-336JU56O-D2GqjeNm.js +3 -0
- package/build/client/assets/chunk-426QAEUC-BQVvn1pT.js +2 -0
- package/build/client/assets/chunk-4BX2VUAB-Vs7Vs3w2.js +2 -0
- package/build/client/assets/chunk-4TB4RGXK-Db1bq22V.js +207 -0
- package/build/client/assets/chunk-55IACEB6-LrfrHfOk.js +2 -0
- package/build/client/assets/chunk-5FUZZQ4R-DakQzY_V.js +63 -0
- package/build/client/assets/chunk-5PVQY5BW-BW3z1mHM.js +3 -0
- package/build/client/assets/chunk-67CJDMHE-CCqqnInU.js +2 -0
- package/build/client/assets/chunk-7N4EOEYR-Cr_2bBs_.js +2 -0
- package/build/client/assets/chunk-AA7GKIK3-Cx3f7Abr.js +2 -0
- package/build/client/assets/chunk-BSJP7CBP-CCEBItmz.js +2 -0
- package/build/client/assets/chunk-CIAEETIT-DyuCICFW.js +2 -0
- package/build/client/assets/chunk-EDXVE4YY-Dgn7ChJh.js +2 -0
- package/build/client/assets/chunk-ENJZ2VHE-CTbl8enz.js +11 -0
- package/build/client/assets/chunk-FMBD7UC4-BYTH2iRO.js +16 -0
- package/build/client/assets/chunk-FOC6F5B3-uXGSnlW4.js +2 -0
- package/build/client/assets/chunk-ICPOFSXX-CMV2lqd6.js +123 -0
- package/build/client/assets/chunk-K5T4RW27-DSYo3_Xw.js +95 -0
- package/build/client/assets/chunk-KGLVRYIC-B0d_v-k1.js +2 -0
- package/build/client/assets/chunk-LIHQZDEY-DXh9Sbs1.js +2 -0
- package/build/client/assets/chunk-ORNJ4GCN-C5gtzIrM.js +2 -0
- package/build/client/assets/chunk-OYMX7WX6-BMcfoVEf.js +232 -0
- package/build/client/assets/chunk-QUQL4437-CS9SHQFi.js +27 -0
- package/build/client/assets/chunk-QZHKN3VN-BZ8F59z7.js +2 -0
- package/build/client/assets/chunk-S54KXAEJ-DpR7u-WS.js +2 -0
- package/build/client/assets/chunk-SfVF5hxS.js +1 -0
- package/build/client/assets/chunk-U2HBQHQK-Bi1YZ_kC.js +71 -0
- package/build/client/assets/chunk-X2U36JSP-B3eBJ46W.js +2 -0
- package/build/client/assets/chunk-XPW4576I-BiogA8Y-.js +33 -0
- package/build/client/assets/chunk-YZCP3GAM-Dad5C-YC.js +2 -0
- package/build/client/assets/chunk-ZZ45TVLE--JD7d0aO.js +2 -0
- package/build/client/assets/clarity-D5KjeZhx.js +2 -0
- package/build/client/assets/classDiagram-6PBFFD2Q-CmKTLmFd.js +2 -0
- package/build/client/assets/classDiagram-v2-HSJHXN6E-Dq8NcW6g.js +2 -0
- package/build/client/assets/client-hints-CDpDA2LD.js +83 -0
- package/build/client/assets/client-only-BXN3MnCf.js +2 -0
- package/build/client/assets/clojure-CzjeqHS6.js +2 -0
- package/build/client/assets/clone-DRUBB-IW.js +2 -0
- package/build/client/assets/cmake-BfMsRFx8.js +1 -0
- package/build/client/assets/cmake-Dgn3FIqL.js +2 -0
- package/build/client/assets/cobol-Bg1txsWS.js +2 -0
- package/build/client/assets/codeowners-jJe5bEy8.js +2 -0
- package/build/client/assets/codeql-BhHfULQm.js +2 -0
- package/build/client/assets/coffee-D2Jyb9A2.js +2 -0
- package/build/client/assets/command-palette-hoNzT6nx.js +2 -0
- package/build/client/assets/common-lisp-CNWkZTpb.js +2 -0
- package/build/client/assets/connection-status-DWLYQhxq.js +2 -0
- package/build/client/assets/coq-BMRouK8z.js +2 -0
- package/build/client/assets/cose-bilkent-S5V4N54A-BHt9aHld.js +2 -0
- package/build/client/assets/cpp-DxA9MD0u.js +1 -0
- package/build/client/assets/cpp-Mvs8TDHL.js +2 -0
- package/build/client/assets/crystal-CB-TrvKV.js +2 -0
- package/build/client/assets/csharp-BM_m1j_v.js +2 -0
- package/build/client/assets/csharp-htSAaphL.js +1 -0
- package/build/client/assets/css-DX7UqAm_.js +2 -0
- package/build/client/assets/css-o6lxxhAi.js +1 -0
- package/build/client/assets/csv-A4MxsHFs.js +2 -0
- package/build/client/assets/csv-Bl5WfeZd.js +1 -0
- package/build/client/assets/cue-DSpuQ45L.js +2 -0
- package/build/client/assets/cypher-BAohKJ2W.js +2 -0
- package/build/client/assets/cytoscape.esm-DolQOfJk.js +322 -0
- package/build/client/assets/d-CglhSXe6.js +2 -0
- package/build/client/assets/dagre-CqwyV5Mv.js +2 -0
- package/build/client/assets/dagre-KV5264BT-nb7Foldk.js +5 -0
- package/build/client/assets/dark-plus-BGJKpaex.js +2 -0
- package/build/client/assets/dart-D36nuw3O.js +2 -0
- package/build/client/assets/dax-B70IJr2H.js +2 -0
- package/build/client/assets/dayjs.min-CD8VuJVj.js +2 -0
- package/build/client/assets/db-Dm11ByFO.js +2 -0
- package/build/client/assets/defaultLocale-CLLUsVmK.js +2 -0
- package/build/client/assets/desktop-BuqB9iUs.js +2 -0
- package/build/client/assets/diagram-5BDNPKRD-D7WLia3z.js +11 -0
- package/build/client/assets/diagram-G4DWMVQ6-DNITNdpB.js +25 -0
- package/build/client/assets/diagram-MMDJMWI5-CWhuE9ra.js +44 -0
- package/build/client/assets/diagram-TYMM5635-fP2koVk0.js +25 -0
- package/build/client/assets/dialog-CUr31G3w.js +6 -0
- package/build/client/assets/diff-B08nE785.js +2 -0
- package/build/client/assets/diff-CWYBGBLa.js +2 -0
- package/build/client/assets/diff-DPD6WOIF.js +1893 -0
- package/build/client/assets/diff-TF5wGpgp.js +1 -0
- package/build/client/assets/discord-CxQz3v_M.js +1 -0
- package/build/client/assets/discord-DKRYwMW0.js +2 -0
- package/build/client/assets/dist-BAXGM3o-.js +2 -0
- package/build/client/assets/dist-Bruylxvj.js +2 -0
- package/build/client/assets/dist-CE17gZ57.js +2 -0
- package/build/client/assets/dist-DsyK3nH8.js +2 -0
- package/build/client/assets/dist-d-we4nzU.js +2 -0
- package/build/client/assets/docker-BwQCFXwR.js +2 -0
- package/build/client/assets/dotenv-Cb3-xnX8.js +2 -0
- package/build/client/assets/dracula-DaynUJlJ.js +2 -0
- package/build/client/assets/dracula-soft-CfCo90XO.js +2 -0
- package/build/client/assets/dream-maker-BVDG2ppG.js +2 -0
- package/build/client/assets/edge-CNJy_Gug.js +2 -0
- package/build/client/assets/elixir-Bl7rlHwG.js +2 -0
- package/build/client/assets/elm-BhzX3n2b.js +2 -0
- package/build/client/assets/emacs-lisp-BHstHUOp.js +2 -0
- package/build/client/assets/entry.client-eevSrryi.js +11 -0
- package/build/client/assets/epic-video-CEbQwBfr.js +2 -0
- package/build/client/assets/epic-video-g772gMMv.js +2 -0
- package/build/client/assets/erDiagram-SMLLAGMA-ChPiWIIO.js +86 -0
- package/build/client/assets/erb-DPco7O0D.js +2 -0
- package/build/client/assets/erlang-BgMDHKEg.js +2 -0
- package/build/client/assets/error-boundary-B6bJBjJF.js +3 -0
- package/build/client/assets/error-boundary-C0SpiKc6.js +2 -0
- package/build/client/assets/es2015-3z3p6f0b.js +42 -0
- package/build/client/assets/everforest-dark-BlahYKDu.js +2 -0
- package/build/client/assets/everforest-light-9WByKiiy.js +2 -0
- package/build/client/assets/fennel-BjFYSbbE.js +2 -0
- package/build/client/assets/finished-k7pxuMeU.js +2 -0
- package/build/client/assets/fish-BkAJoTsy.js +2 -0
- package/build/client/assets/flatten-B_JoCCEl.js +2 -0
- package/build/client/assets/flowDiagram-DWJPFMVM-VDrNkrvU.js +163 -0
- package/build/client/assets/fluent-BmKxR3PX.js +2 -0
- package/build/client/assets/format-DcxiWsXE.js +2 -0
- package/build/client/assets/fortran-fixed-form-DyLsns7b.js +2 -0
- package/build/client/assets/fortran-free-form-DLDk9gHH.js +1 -0
- package/build/client/assets/fortran-free-form-Ddlwyua4.js +2 -0
- package/build/client/assets/fsharp-nP1YtMoL.js +2 -0
- package/build/client/assets/ganttDiagram-T4ZO3ILL-BleVyEFD.js +293 -0
- package/build/client/assets/gdresource-BmK6Bdra.js +2 -0
- package/build/client/assets/gdscript-CPfhFv3_.js +1 -0
- package/build/client/assets/gdscript-DKJ_752N.js +2 -0
- package/build/client/assets/gdshader-BL-g0HPE.js +2 -0
- package/build/client/assets/gdshader-ueqB43U7.js +1 -0
- package/build/client/assets/genie-C1tZA9Rj.js +2 -0
- package/build/client/assets/gherkin-ALj7RaGK.js +2 -0
- package/build/client/assets/git-commit-BJCUq91Z.js +2 -0
- package/build/client/assets/git-rebase-Dxtk1Mr_.js +2 -0
- package/build/client/assets/gitGraph-7Q5UKJZL-C3TH1bTh.js +1 -0
- package/build/client/assets/gitGraphDiagram-UUTBAWPF-BjyxJHfr.js +107 -0
- package/build/client/assets/github-dark-C5S1qqpT.js +2 -0
- package/build/client/assets/github-dark-default-DUNAm14v.js +2 -0
- package/build/client/assets/github-dark-dimmed-CeZKyps8.js +2 -0
- package/build/client/assets/github-dark-high-contrast-58TSGq1Y.js +2 -0
- package/build/client/assets/github-light-CCC4yyh_.js +2 -0
- package/build/client/assets/github-light-default-CI8a3J_c.js +2 -0
- package/build/client/assets/github-light-high-contrast-1-ZOKQP2.js +2 -0
- package/build/client/assets/gleam-mH5dbQgS.js +2 -0
- package/build/client/assets/glimmer-js-Bxn-08z1.js +2 -0
- package/build/client/assets/glimmer-ts-DSm8xZnz.js +2 -0
- package/build/client/assets/glsl-DB_lPgiC.js +2 -0
- package/build/client/assets/glsl-DpDjx8c1.js +1 -0
- package/build/client/assets/gn-DSOEh8t6.js +2 -0
- package/build/client/assets/gnuplot-BvyMcCG1.js +2 -0
- package/build/client/assets/go-DHV2CRlj.js +1 -0
- package/build/client/assets/go-WfaBTqmn.js +2 -0
- package/build/client/assets/graphlib-C8WV8CM7.js +2 -0
- package/build/client/assets/graphql-BAIhOB3J.js +2 -0
- package/build/client/assets/graphql-vBfB2Eue.js +1 -0
- package/build/client/assets/groovy-CGoUZkY4.js +2 -0
- package/build/client/assets/gruvbox-dark-hard-BmNYX_9R.js +2 -0
- package/build/client/assets/gruvbox-dark-medium-DL9FbT73.js +2 -0
- package/build/client/assets/gruvbox-dark-soft-DAkQoZPI.js +2 -0
- package/build/client/assets/gruvbox-light-hard-D2PEL972.js +2 -0
- package/build/client/assets/gruvbox-light-medium-Cb3U99Ip.js +2 -0
- package/build/client/assets/gruvbox-light-soft-DDmOLd2G.js +2 -0
- package/build/client/assets/guide-CWnYg4p5.js +9 -0
- package/build/client/assets/hack-D1-US6nB.js +2 -0
- package/build/client/assets/haml-CPF3MYEE.js +2 -0
- package/build/client/assets/haml-CcyK1mgc.js +1 -0
- package/build/client/assets/handlebars-DA-ld_zj.js +2 -0
- package/build/client/assets/haskell-99PV8xLR.js +2 -0
- package/build/client/assets/haxe-BFjybXF6.js +1 -0
- package/build/client/assets/haxe-kbfbnkea.js +2 -0
- package/build/client/assets/hcl-DlvoD0mN.js +2 -0
- package/build/client/assets/hjson-7_-uOuxf.js +2 -0
- package/build/client/assets/hlsl-QMyxOBDU.js +2 -0
- package/build/client/assets/hlsl-en2U1dTa.js +1 -0
- package/build/client/assets/horizon-Br4IjXrI.js +2 -0
- package/build/client/assets/houston-CYT1z18_.js +2 -0
- package/build/client/assets/html-D5oS_hX3.js +2 -0
- package/build/client/assets/html-_ujwiYS1.js +1 -0
- package/build/client/assets/html-derivative-CixEq3-r.js +1 -0
- package/build/client/assets/html-derivative-DRPWnrmz.js +2 -0
- package/build/client/assets/http-CtbJCyu8.js +2 -0
- package/build/client/assets/hurl-CS7qjI2B.js +2 -0
- package/build/client/assets/hxml-BjDzzKoC.js +2 -0
- package/build/client/assets/hy-jVTcGJr_.js +2 -0
- package/build/client/assets/imba-Bh8X8utL.js +2 -0
- package/build/client/assets/index-DSmWldtn.js +2 -0
- package/build/client/assets/index-DTKO2xBk.js +2 -0
- package/build/client/assets/index-FXJF5sN7.js +2 -0
- package/build/client/assets/index-zVajxa82.js +2 -0
- package/build/client/assets/index.client-YaShKz_S.js +483 -0
- package/build/client/assets/info-OMHHGYJF-BF4t99Re.js +1 -0
- package/build/client/assets/infoDiagram-42DDH7IO-BRoJPVJn.js +3 -0
- package/build/client/assets/ini-DD1f6lag.js +2 -0
- package/build/client/assets/init-IMtzj1kp.js +2 -0
- package/build/client/assets/isEmpty-Ds0wzPd1.js +2 -0
- package/build/client/assets/ishikawaDiagram-UXIWVN3A-CilNt4KZ.js +71 -0
- package/build/client/assets/java-C6ivh1ol.js +2 -0
- package/build/client/assets/java-COTcs2sX.js +1 -0
- package/build/client/assets/javascript-DW6ah18c.js +2 -0
- package/build/client/assets/javascript-DvScI3kh.js +1 -0
- package/build/client/assets/jinja-CtEmrwEm.js +2 -0
- package/build/client/assets/jison-bNOffodJ.js +2 -0
- package/build/client/assets/journeyDiagram-VCZTEJTY-UUAs1xiK.js +140 -0
- package/build/client/assets/json-Br3RF7NK.js +2 -0
- package/build/client/assets/json-Y38nzhAp.js +1 -0
- package/build/client/assets/json5-DxdWaCwP.js +2 -0
- package/build/client/assets/jsonc-BYaHvk2N.js +2 -0
- package/build/client/assets/jsonl-D88G2WUd.js +2 -0
- package/build/client/assets/jsonnet-DyFXP0Mm.js +2 -0
- package/build/client/assets/jssm-Coep6rdh.js +2 -0
- package/build/client/assets/jsx-BObjDHjH.js +1 -0
- package/build/client/assets/jsx-Bu63nX6C.js +2 -0
- package/build/client/assets/jsx-runtime-BQqs_cgr.js +2 -0
- package/build/client/assets/julia-O1MIlwgW.js +2 -0
- package/build/client/assets/kanagawa-dragon-Bh7U-NuT.js +2 -0
- package/build/client/assets/kanagawa-lotus-CE6bcSqW.js +2 -0
- package/build/client/assets/kanagawa-wave-AOZcVi4G.js +2 -0
- package/build/client/assets/kanban-definition-6JOO6SKY-DFihQ_vl.js +90 -0
- package/build/client/assets/katex-BedR2GWA.js +262 -0
- package/build/client/assets/kdl-UBGBSjBs.js +2 -0
- package/build/client/assets/kotlin-SAtUtcIu.js +2 -0
- package/build/client/assets/kusto-Cokb2yXO.js +2 -0
- package/build/client/assets/l-Ckt1VLKG.js +2 -0
- package/build/client/assets/laserwave-bxsSWua9.js +2 -0
- package/build/client/assets/latex-Cxxje0kr.js +2 -0
- package/build/client/assets/launch-editor-D0rPvbjy.js +2 -0
- package/build/client/assets/lean-BW-zAdb0.js +2 -0
- package/build/client/assets/less-D_0qQR81.js +1 -0
- package/build/client/assets/less-lLOcfShL.js +2 -0
- package/build/client/assets/light-plus-Dm3cZHHL.js +2 -0
- package/build/client/assets/line-Bn3OydzW.js +2 -0
- package/build/client/assets/linear-CKtWl4RW.js +2 -0
- package/build/client/assets/liquid-QTvDLU4_.js +2 -0
- package/build/client/assets/llvm-Fu67U4gU.js +2 -0
- package/build/client/assets/loading--tc9zOXU.js +2 -0
- package/build/client/assets/log-ChQZ4C18.js +2 -0
- package/build/client/assets/login-DzxiDl5Q.js +2 -0
- package/build/client/assets/login-sse-CbvrSmQI.js +2 -0
- package/build/client/assets/logo-s4ZgaqDn.js +2 -0
- package/build/client/assets/lua-PEMoerLy.js +2 -0
- package/build/client/assets/lua-RLDWAVvJ.js +1 -0
- package/build/client/assets/luau-D5SzVzgo.js +2 -0
- package/build/client/assets/make-CfLTss1g.js +2 -0
- package/build/client/assets/manifest-55330173.js +1 -0
- package/build/client/assets/markdown-Dki9_7lc.js +1 -0
- package/build/client/assets/markdown-Sip3x2tX.js +2 -0
- package/build/client/assets/marko-BgTOrii7.js +2 -0
- package/build/client/assets/material-theme-M-Dh2Zc0.js +2 -0
- package/build/client/assets/material-theme-darker-C9H5utw4.js +2 -0
- package/build/client/assets/material-theme-lighter-CxENw_ye.js +2 -0
- package/build/client/assets/material-theme-ocean-DZVwJIou.js +2 -0
- package/build/client/assets/material-theme-palenight-C83V9eK-.js +2 -0
- package/build/client/assets/matlab-DUL3rRNm.js +2 -0
- package/build/client/assets/mdc-Cs8cdd2S.js +2 -0
- package/build/client/assets/mdx-Cqscks4G.js +2 -0
- package/build/client/assets/mdx-DoweAirz.js +3 -0
- package/build/client/assets/mermaid-EN-bW-wH.js +2 -0
- package/build/client/assets/mermaid-parser.core-CGpbty3m.js +5 -0
- package/build/client/assets/mermaid.core-BBlGtClk.js +12 -0
- package/build/client/assets/min-dark-D7r8DCKK.js +2 -0
- package/build/client/assets/min-light-BYRB5z-a.js +2 -0
- package/build/client/assets/mindmap-definition-QFDTVHPH-DuZz_hOM.js +97 -0
- package/build/client/assets/mipsasm-D2ISIcGS.js +2 -0
- package/build/client/assets/misc-ZHZEOBIu.js +2 -0
- package/build/client/assets/mojo-Czr7SRf-.js +2 -0
- package/build/client/assets/monokai-BV1Gemfq.js +2 -0
- package/build/client/assets/moonbit-DuGfnteY.js +2 -0
- package/build/client/assets/move-B0exc9B_.js +2 -0
- package/build/client/assets/narrat-CfO175dc.js +2 -0
- package/build/client/assets/nav-chevrons-27sdeAai.js +2 -0
- package/build/client/assets/nextflow-DXrr7J-6.js +2 -0
- package/build/client/assets/nginx-bF9X3YYC.js +2 -0
- package/build/client/assets/night-owl-DdiGUcEt.js +2 -0
- package/build/client/assets/night-owl-light-B-hldGS_.js +2 -0
- package/build/client/assets/nim-_pyR0HKI.js +2 -0
- package/build/client/assets/nix-CDjrLKQ3.js +2 -0
- package/build/client/assets/nord-CPSf-dG4.js +2 -0
- package/build/client/assets/notifications-DzlMITVq.js +2 -0
- package/build/client/assets/nushell-DHD9GQhT.js +2 -0
- package/build/client/assets/objective-c-m1lHjEBI.js +2 -0
- package/build/client/assets/objective-cpp-Cwul-RFv.js +2 -0
- package/build/client/assets/ocaml-C7tmyiy-.js +2 -0
- package/build/client/assets/odin-CT0cW6AN.js +2 -0
- package/build/client/assets/offline-videos-BhNdr-Hw.js +2 -0
- package/build/client/assets/onboarding-indicator-DHC1tV9c.js +2 -0
- package/build/client/assets/one-dark-pro-C1LGcRYl.js +2 -0
- package/build/client/assets/one-light-C4deoUO3.js +2 -0
- package/build/client/assets/online-CibW-bKE.js +2 -0
- package/build/client/assets/openscad-BVH8Tix9.js +2 -0
- package/build/client/assets/ordinal-DEDyVqYO.js +2 -0
- package/build/client/assets/packet-4T2RLAQJ-BuQQhcjX.js +1 -0
- package/build/client/assets/pascal-Bp_EFa9j.js +2 -0
- package/build/client/assets/path-CtuZAYmj.js +2 -0
- package/build/client/assets/pe-BNmJ89yy.js +2 -0
- package/build/client/assets/perl-L-lhd5Op.js +2 -0
- package/build/client/assets/php-DCFfMjB1.js +2 -0
- package/build/client/assets/php-DcWGYuJX.js +1 -0
- package/build/client/assets/pie-ZZUOXDRM-Qgi2tV9y.js +1 -0
- package/build/client/assets/pieDiagram-DEJITSTG-Dw4UTfWZ.js +31 -0
- package/build/client/assets/pierre-dark-DLVQ9syx.js +2 -0
- package/build/client/assets/pierre-light-Dt_sjb-o.js +2 -0
- package/build/client/assets/pkl-muBaQmuj.js +2 -0
- package/build/client/assets/plastic-BKPBogbv.js +2 -0
- package/build/client/assets/playground-DY2sX152.js +2 -0
- package/build/client/assets/playground-window-C1bv6e41.js +2 -0
- package/build/client/assets/plsql-CXc36X8X.js +2 -0
- package/build/client/assets/po-Qf4zBO79.js +2 -0
- package/build/client/assets/poimandres-BwBztINu.js +2 -0
- package/build/client/assets/polar-BdgB5sG8.js +2 -0
- package/build/client/assets/popover-B-3fvTBK.js +2 -0
- package/build/client/assets/postcss-BqeXj_nF.js +1 -0
- package/build/client/assets/postcss-D2KR1rsV.js +2 -0
- package/build/client/assets/powerquery-Dp38QzpH.js +2 -0
- package/build/client/assets/powershell-CJTuTKCh.js +2 -0
- package/build/client/assets/preferences-CMWqHerP.js +2 -0
- package/build/client/assets/preload-helper-Cp1IRK3f.js +1 -0
- package/build/client/assets/presence-Cc6Zkkdh.js +61 -0
- package/build/client/assets/preview-DGSIw-yY.js +2 -0
- package/build/client/assets/prisma-zLpyKzE4.js +2 -0
- package/build/client/assets/product-vYjwjePf.js +2 -0
- package/build/client/assets/progress-Bm5O_7Nj.js +2 -0
- package/build/client/assets/progress-bar-DJ1VpjAV.js +2 -0
- package/build/client/assets/prolog-Bk-QiIi_.js +2 -0
- package/build/client/assets/proto-CQs-qzoS.js +2 -0
- package/build/client/assets/pug-DuPovx7L.js +2 -0
- package/build/client/assets/puppet-CHTwsyiS.js +2 -0
- package/build/client/assets/purescript-BmHA-y-f.js +2 -0
- package/build/client/assets/python-BQyj2d0S.js +2 -0
- package/build/client/assets/python-Dd5f73gV.js +1 -0
- package/build/client/assets/qml-BDn7uZQz.js +2 -0
- package/build/client/assets/qmldir-DngS1hHr.js +2 -0
- package/build/client/assets/qss-VyrSDSPY.js +2 -0
- package/build/client/assets/quadrantDiagram-34T5L4WZ-OEkGeWpA.js +8 -0
- package/build/client/assets/r-CtG3YeNf.js +1 -0
- package/build/client/assets/r-D_1-KuWq.js +2 -0
- package/build/client/assets/racket-DNWBPRz6.js +2 -0
- package/build/client/assets/radar-PYXPWWZC-CaWqb0rd.js +1 -0
- package/build/client/assets/raku-DGyGth7D.js +2 -0
- package/build/client/assets/razor-CPkKvdq2.js +2 -0
- package/build/client/assets/react-CUe-d6Xc.js +2 -0
- package/build/client/assets/react-dom-BwDOj8HH.js +2 -0
- package/build/client/assets/react-error-boundary-Bw6jaD86.js +2 -0
- package/build/client/assets/red-BirSmZB0.js +2 -0
- package/build/client/assets/reduce-f7S_qgGt.js +2 -0
- package/build/client/assets/reg-CgojvpYE.js +2 -0
- package/build/client/assets/regexp-B7vFhyLc.js +1 -0
- package/build/client/assets/regexp-ydrQMjxi.js +2 -0
- package/build/client/assets/rel-DAJV6sm7.js +2 -0
- package/build/client/assets/requirementDiagram-MS252O5E-CkmHXVgf.js +85 -0
- package/build/client/assets/retrieval-practice-CXhywQaM.js +2 -0
- package/build/client/assets/revalidation-ws-jr5Jd_xB.js +2 -0
- package/build/client/assets/riscv-BuAm_hXK.js +2 -0
- package/build/client/assets/ron-CoNOznqw.js +2 -0
- package/build/client/assets/root-CQ2WRXqN.js +3 -0
- package/build/client/assets/root-loader-Cjfv-bBh.js +2 -0
- package/build/client/assets/rose-pine-GQVQ_d5S.js +2 -0
- package/build/client/assets/rose-pine-dawn-xm5RqvAV.js +2 -0
- package/build/client/assets/rose-pine-moon-DBSavCK0.js +2 -0
- package/build/client/assets/rosmsg-DbdNQhLU.js +2 -0
- package/build/client/assets/rough.esm-znmn2LSt.js +2 -0
- package/build/client/assets/rst-BxhRrFcV.js +2 -0
- package/build/client/assets/ruby-C4hwrloz.js +2 -0
- package/build/client/assets/ruby-C6FaIV-u.js +1 -0
- package/build/client/assets/rust-BrHFD_sf.js +2 -0
- package/build/client/assets/sankeyDiagram-XADWPNL6-DzxQCCLL.js +11 -0
- package/build/client/assets/sas-BL7Tud4Y.js +2 -0
- package/build/client/assets/sass-BpbEyRVi.js +2 -0
- package/build/client/assets/scala-begI4t4P.js +2 -0
- package/build/client/assets/scheme-DxIjTP30.js +2 -0
- package/build/client/assets/scss-B_1qqUs0.js +2 -0
- package/build/client/assets/scss-CHChLxEI.js +1 -0
- package/build/client/assets/sdbl-B8HcUbfV.js +1 -0
- package/build/client/assets/sdbl-Cja9rava.js +2 -0
- package/build/client/assets/seo-CkGjYoS5.js +2 -0
- package/build/client/assets/sequenceDiagram-FGHM5R23-ksgznxKm.js +158 -0
- package/build/client/assets/server-only-Cmzv0JIZ.js +2 -0
- package/build/client/assets/set-playground-C1e8XqUH.js +2 -0
- package/build/client/assets/shaderlab-Bv5fDtT8.js +2 -0
- package/build/client/assets/shellscript-C6IVGIhK.js +1 -0
- package/build/client/assets/shellscript-HkO17OI0.js +2 -0
- package/build/client/assets/shellsession-Bniy_-in.js +2 -0
- package/build/client/assets/slack-dark-DqQPzyiQ.js +2 -0
- package/build/client/assets/slack-ochin-RzD21AFz.js +2 -0
- package/build/client/assets/smalltalk-CbdIJizU.js +2 -0
- package/build/client/assets/snazzy-light-BriD_7qH.js +2 -0
- package/build/client/assets/solarized-dark-BjbfClec.js +2 -0
- package/build/client/assets/solarized-light-jAsl_zGv.js +2 -0
- package/build/client/assets/solidity-3CPS06Y7.js +2 -0
- package/build/client/assets/soy-B65yPQbU.js +2 -0
- package/build/client/assets/sparql-CqRD6SlI.js +2 -0
- package/build/client/assets/split-layout-CIkPCWUT.js +2 -0
- package/build/client/assets/splunk-BPgYU5nU.js +2 -0
- package/build/client/assets/sql-BmTxZpUN.js +2 -0
- package/build/client/assets/sql-CxmWJlqF.js +1 -0
- package/build/client/assets/src-DghrTHcR.js +2 -0
- package/build/client/assets/ssh-config-ZrGx_j6n.js +2 -0
- package/build/client/assets/start-B3n9N8D5.js +2 -0
- package/build/client/assets/stata-DG5sB4AG.js +2 -0
- package/build/client/assets/stateDiagram-FHFEXIEX-kVcRYcHS.js +2 -0
- package/build/client/assets/stateDiagram-v2-QKLJ7IA2-CX0GmWWJ.js +2 -0
- package/build/client/assets/status-indicator-B2v8SPlv.js +2 -0
- package/build/client/assets/stylus-B1ncp06y.js +1 -0
- package/build/client/assets/stylus-SLLlsU5A.js +2 -0
- package/build/client/assets/support-DAizcpEi.js +2 -0
- package/build/client/assets/surrealql-BrLDC3DC.js +2 -0
- package/build/client/assets/svelte-wGwK2z92.js +2 -0
- package/build/client/assets/swift-vbeCg_SW.js +2 -0
- package/build/client/assets/synthwave-84-B-ck6xVV.js +2 -0
- package/build/client/assets/system-verilog-DQ6h-1in.js +2 -0
- package/build/client/assets/systemd-DwvlKn6a.js +2 -0
- package/build/client/assets/talonscript-pIKNn8So.js +2 -0
- package/build/client/assets/tasl-C0e487O6.js +2 -0
- package/build/client/assets/tcl-VgBr1Bpb.js +2 -0
- package/build/client/assets/templ-BHzrxQy_.js +2 -0
- package/build/client/assets/terraform-Bsy8bFtp.js +2 -0
- package/build/client/assets/test-BMMa5bcc.js +2 -0
- package/build/client/assets/test-DWN9p5MZ.js +5 -0
- package/build/client/assets/tests-DGBFB_HB.js +2 -0
- package/build/client/assets/tex-DeuMMwcX.js +2 -0
- package/build/client/assets/tex-DjtE1Y1d.js +1 -0
- package/build/client/assets/theme-DYZf0OAK.js +2 -0
- package/build/client/assets/timeline-definition-GMOUNBTQ-C2VaG8HO.js +121 -0
- package/build/client/assets/tokyo-night-ClcGK3Nb.js +2 -0
- package/build/client/assets/toml-BX_1KNIH.js +2 -0
- package/build/client/assets/tooltip-DigajGyG.js +2 -0
- package/build/client/assets/treeView-SZITEDCU-CJINliR8.js +1 -0
- package/build/client/assets/treemap-W4RFUUIX-oIwPyBR7.js +1 -0
- package/build/client/assets/ts-tags-DNKTdGUc.js +2 -0
- package/build/client/assets/tsv-BJ_RjfOZ.js +2 -0
- package/build/client/assets/tsx-LEfFZKZ1.js +1 -0
- package/build/client/assets/tsx-LhEb9zmy.js +2 -0
- package/build/client/assets/turtle-CGI5yF53.js +2 -0
- package/build/client/assets/turtle-yEkAHSkf.js +1 -0
- package/build/client/assets/twig-BsQeeEqe.js +2 -0
- package/build/client/assets/typescript-Cua-lxkP.js +1 -0
- package/build/client/assets/typescript-Tl0ZvW7D.js +2 -0
- package/build/client/assets/typespec-I4rrOMt_.js +2 -0
- package/build/client/assets/typst-CbfHhPND.js +2 -0
- package/build/client/assets/use-event-source-CAdMHD8v.js +2 -0
- package/build/client/assets/user-_Z32sqdH.js +2 -0
- package/build/client/assets/v-Drfu37XE.js +2 -0
- package/build/client/assets/vala-CZ80F0lC.js +2 -0
- package/build/client/assets/vb-CS9PX2xu.js +2 -0
- package/build/client/assets/vennDiagram-DHZGUBPP-CsYn5jxF.js +35 -0
- package/build/client/assets/verilog-DzBA9_it.js +2 -0
- package/build/client/assets/version-Z7D51Mij.js +2 -0
- package/build/client/assets/vesper-CWG8yhZs.js +2 -0
- package/build/client/assets/vhdl-xjmRjg6g.js +2 -0
- package/build/client/assets/video-player-27Lbia7c.js +3397 -0
- package/build/client/assets/viml-DK1leHRG.js +2 -0
- package/build/client/assets/vitesse-black-CEjnG3Ib.js +2 -0
- package/build/client/assets/vitesse-dark-09yYJ77S.js +2 -0
- package/build/client/assets/vitesse-light-ChYNeLLA.js +2 -0
- package/build/client/assets/vue-D3iGYciZ.js +2 -0
- package/build/client/assets/vue-html-CGP3Dib_.js +2 -0
- package/build/client/assets/vue-vine-RsrfnEy2.js +2 -0
- package/build/client/assets/vyper-kH05Jvvb.js +2 -0
- package/build/client/assets/wardley-RL74JXVD-CKjoIUaD.js +1 -0
- package/build/client/assets/wardleyDiagram-NUSXRM2D-CTWJQL5f.js +21 -0
- package/build/client/assets/wasm-DxlBrPdq.js +2 -0
- package/build/client/assets/wasm-RW7e5s0o.js +2 -0
- package/build/client/assets/wenyan-Do9HfAB7.js +2 -0
- package/build/client/assets/wgsl-HEfR-IVc.js +2 -0
- package/build/client/assets/wikitext-CHqWhXlQ.js +2 -0
- package/build/client/assets/wit-ESRb2Xx4.js +2 -0
- package/build/client/assets/wolfram-Bb7sNtsf.js +2 -0
- package/build/client/assets/workshop-config-Y3wZUJS4.js +2 -0
- package/build/client/assets/workspace-structure-FWmIuVjC.js +2 -0
- package/build/client/assets/xml-BcTqP1ny.js +2 -0
- package/build/client/assets/xml-DXYTc6ES.js +1 -0
- package/build/client/assets/xsl-BleOSiSJ.js +2 -0
- package/build/client/assets/xychartDiagram-5P7HB3ND-KnxQq2-a.js +8 -0
- package/build/client/assets/yaml-BF6jSPfY.js +1 -0
- package/build/client/assets/yaml-_WNYorWh.js +2 -0
- package/build/client/assets/zenscript-Iq9MwG3n.js +2 -0
- package/build/client/assets/zig-t3HlnwaB.js +2 -0
- package/build/client/assets/zod-D58yuStJ.js +41 -0
- package/build/server/index.js +727 -727
- package/package.json +3 -3
- package/build/client/assets/_-BZfyb9Ll.js +0 -2
- package/build/client/assets/_baseFor-ZMjpjGhU.js +0 -2
- package/build/client/assets/_exerciseNumber-rAeyfHYe.js +0 -2
- package/build/client/assets/_exerciseNumber_._stepNumber.index-Ce1RdPND.js +0 -2
- package/build/client/assets/_exerciseNumber_.finished-D7S2-C1v.js +0 -2
- package/build/client/assets/_extra-BgrvAzEy.js +0 -2
- package/build/client/assets/_layout-Bgt3lUko.js +0 -2
- package/build/client/assets/_layout-C-nHPhY9.js +0 -2
- package/build/client/assets/_layout-C4NZhbVw.js +0 -2
- package/build/client/assets/_layout-CLYn7hr0.js +0 -2
- package/build/client/assets/_layout-n-fmZpKu.js +0 -2
- package/build/client/assets/abap-WYRdrXJS.js +0 -2
- package/build/client/assets/account-Dxl8UI3H.js +0 -2
- package/build/client/assets/actionscript-3-BsZyf-Jz.js +0 -2
- package/build/client/assets/ada-wxDBIp8p.js +0 -2
- package/build/client/assets/andromeeda-D5gmWMb_.js +0 -2
- package/build/client/assets/angular-html-Bo2DpJQe.js +0 -1
- package/build/client/assets/angular-html-CuM4cyOg.js +0 -2
- package/build/client/assets/angular-ts-C-IHyrtT.js +0 -2
- package/build/client/assets/apache-C6_Xsbz9.js +0 -2
- package/build/client/assets/apex-B_Q-bnBD.js +0 -2
- package/build/client/assets/apl-Cs5laD49.js +0 -2
- package/build/client/assets/app-DIwQdIG4.js +0 -2
- package/build/client/assets/applescript-B-DcxbOd.js +0 -2
- package/build/client/assets/ara-D_zh4dRu.js +0 -2
- package/build/client/assets/arc-DfexK08O.js +0 -2
- package/build/client/assets/architecture-YZFGNWBL-B_lAq64T.js +0 -1
- package/build/client/assets/architectureDiagram-Q4EWVU46-BEFylxQ_.js +0 -37
- package/build/client/assets/array-B4u3lmNv.js +0 -2
- package/build/client/assets/asciidoc-CLLGtmgw.js +0 -2
- package/build/client/assets/asm-Ak_QhAvs.js +0 -2
- package/build/client/assets/astro-CHhF-oj6.js +0 -2
- package/build/client/assets/aurora-x-DnQmSn12.js +0 -2
- package/build/client/assets/awk-QlKDAwT_.js +0 -2
- package/build/client/assets/ayu-dark-B1MdX0vH.js +0 -2
- package/build/client/assets/ayu-light-BIhZ8T7z.js +0 -2
- package/build/client/assets/ayu-mirage-CNgHTHYB.js +0 -2
- package/build/client/assets/ballerina-_iJsNsRX.js +0 -2
- package/build/client/assets/bat-xzseiuAc.js +0 -2
- package/build/client/assets/beancount-yRBMDARA.js +0 -2
- package/build/client/assets/berry-C9m0jFxY.js +0 -2
- package/build/client/assets/bibtex-CC7C5-u1.js +0 -2
- package/build/client/assets/bicep-BzrZE8fH.js +0 -2
- package/build/client/assets/blade-CfXC4T6-.js +0 -2
- package/build/client/assets/blockDiagram-DXYQGD6D-E2NRZj6_.js +0 -133
- package/build/client/assets/bsl-BXaRPMcH.js +0 -2
- package/build/client/assets/button-Bk0H6HS9.js +0 -2
- package/build/client/assets/c-C5yi9NWg.js +0 -1
- package/build/client/assets/c-DTdjIyra.js +0 -2
- package/build/client/assets/c3-CtHthSN-.js +0 -2
- package/build/client/assets/c4Diagram-AHTNJAMY-DGRmHiEW.js +0 -11
- package/build/client/assets/cache-CpLuqBKu.js +0 -2
- package/build/client/assets/cadence-BLpdR_Ao.js +0 -2
- package/build/client/assets/cairo-Kq2lsIrU.js +0 -2
- package/build/client/assets/catppuccin-frappe-Btw_0dOM.js +0 -2
- package/build/client/assets/catppuccin-latte-LFPO4AnP.js +0 -2
- package/build/client/assets/catppuccin-macchiato-KmrroIjj.js +0 -2
- package/build/client/assets/catppuccin-mocha-By5J70TR.js +0 -2
- package/build/client/assets/channel-B-rkqysA.js +0 -2
- package/build/client/assets/chunk-2KRD3SAO-YGEOgomH.js +0 -2
- package/build/client/assets/chunk-336JU56O-yGQhEBR5.js +0 -3
- package/build/client/assets/chunk-426QAEUC-BdhHZpOF.js +0 -2
- package/build/client/assets/chunk-4BX2VUAB-DyjvOQqS.js +0 -2
- package/build/client/assets/chunk-4TB4RGXK-DELwvuO7.js +0 -207
- package/build/client/assets/chunk-55IACEB6-Dz78bix0.js +0 -2
- package/build/client/assets/chunk-5FUZZQ4R-DBNTsFZU.js +0 -63
- package/build/client/assets/chunk-5PVQY5BW-Fjn3Y1yx.js +0 -3
- package/build/client/assets/chunk-67CJDMHE-DblSPnJm.js +0 -2
- package/build/client/assets/chunk-7N4EOEYR-BftAYbmE.js +0 -2
- package/build/client/assets/chunk-AA7GKIK3-DR0KkdfV.js +0 -2
- package/build/client/assets/chunk-BSJP7CBP-oqowFs2i.js +0 -2
- package/build/client/assets/chunk-CIAEETIT-CbMJlQBb.js +0 -2
- package/build/client/assets/chunk-CSkat_xi.js +0 -1
- package/build/client/assets/chunk-EDXVE4YY-oZP2z7Pe.js +0 -2
- package/build/client/assets/chunk-ENJZ2VHE-BeM2aATE.js +0 -11
- package/build/client/assets/chunk-FMBD7UC4-BGNLf3af.js +0 -16
- package/build/client/assets/chunk-FOC6F5B3-DJOPoiq2.js +0 -2
- package/build/client/assets/chunk-ICPOFSXX-DYRIW7wA.js +0 -123
- package/build/client/assets/chunk-K5T4RW27-CUk0GKvX.js +0 -95
- package/build/client/assets/chunk-KGLVRYIC-DsgnUZq6.js +0 -2
- package/build/client/assets/chunk-LIHQZDEY-EjLp6zgX.js +0 -2
- package/build/client/assets/chunk-ORNJ4GCN-BvMieqAJ.js +0 -2
- package/build/client/assets/chunk-OYMX7WX6-DccBOdzq.js +0 -232
- package/build/client/assets/chunk-QUQL4437-_xb6aOVR.js +0 -27
- package/build/client/assets/chunk-QZHKN3VN-RDDhiVgq.js +0 -2
- package/build/client/assets/chunk-S54KXAEJ-DdYkZ4I5.js +0 -2
- package/build/client/assets/chunk-U2HBQHQK-CL7WJ8Il.js +0 -71
- package/build/client/assets/chunk-X2U36JSP-D2sk56YH.js +0 -2
- package/build/client/assets/chunk-XPW4576I-qisAUwe0.js +0 -33
- package/build/client/assets/chunk-YZCP3GAM-BVj0hlVQ.js +0 -2
- package/build/client/assets/chunk-ZZ45TVLE-w0lVA5tO.js +0 -2
- package/build/client/assets/clarity-BYXr3_dD.js +0 -2
- package/build/client/assets/classDiagram-6PBFFD2Q-CPNpeLrK.js +0 -2
- package/build/client/assets/classDiagram-v2-HSJHXN6E-ahA2K1Ar.js +0 -2
- package/build/client/assets/client-hints-Q7M0cI0B.js +0 -83
- package/build/client/assets/client-only-BWtSZkh-.js +0 -2
- package/build/client/assets/clojure-CRKBYkNo.js +0 -2
- package/build/client/assets/clone-Bmlfj7oH.js +0 -2
- package/build/client/assets/cmake-DPqUkfNM.js +0 -1
- package/build/client/assets/cmake-DW8wI15G.js +0 -2
- package/build/client/assets/cobol-SgyUuEqj.js +0 -2
- package/build/client/assets/codeowners-CnKLKlPr.js +0 -2
- package/build/client/assets/codeql-ee2EUWBt.js +0 -2
- package/build/client/assets/coffee-BlFaTtAg.js +0 -2
- package/build/client/assets/command-palette-Ccx2QOL8.js +0 -2
- package/build/client/assets/common-lisp-oDPgBt-1.js +0 -2
- package/build/client/assets/connection-status-op8_Qxs0.js +0 -2
- package/build/client/assets/coq-Cbfmv8sj.js +0 -2
- package/build/client/assets/cose-bilkent-S5V4N54A-yPP021w_.js +0 -2
- package/build/client/assets/cpp-BbVG_zZO.js +0 -2
- package/build/client/assets/cpp-DMeodFOu.js +0 -1
- package/build/client/assets/crystal-CO0iXqtt.js +0 -2
- package/build/client/assets/csharp-Cgm70cWv.js +0 -2
- package/build/client/assets/csharp-Dznyrerw.js +0 -1
- package/build/client/assets/css-BSYsYwA8.js +0 -1
- package/build/client/assets/css-DCHUcoPB.js +0 -2
- package/build/client/assets/csv-FHSHi5mF.js +0 -1
- package/build/client/assets/csv-jDqkIKbW.js +0 -2
- package/build/client/assets/cue-iM7vgjfZ.js +0 -2
- package/build/client/assets/cypher-Bc51shzu.js +0 -2
- package/build/client/assets/cytoscape.esm-BZog3Utm.js +0 -322
- package/build/client/assets/d-CcpKgMSX.js +0 -2
- package/build/client/assets/dagre-C2NO4sGR.js +0 -2
- package/build/client/assets/dagre-KV5264BT-DOOIT7-8.js +0 -5
- package/build/client/assets/dark-plus-fPBMcVvq.js +0 -2
- package/build/client/assets/dart-DJqU1QPs.js +0 -2
- package/build/client/assets/dax-CSqDXRak.js +0 -2
- package/build/client/assets/dayjs.min-ipr83RUI.js +0 -2
- package/build/client/assets/db-Co9WumUT.js +0 -2
- package/build/client/assets/defaultLocale-DnnbfHHJ.js +0 -2
- package/build/client/assets/desktop-7j-HrgC-.js +0 -2
- package/build/client/assets/diagram-5BDNPKRD-DunH_POy.js +0 -11
- package/build/client/assets/diagram-G4DWMVQ6-zhjWmueF.js +0 -25
- package/build/client/assets/diagram-MMDJMWI5-bO2kQzuX.js +0 -44
- package/build/client/assets/diagram-TYMM5635-y8SlJAqc.js +0 -25
- package/build/client/assets/dialog-DP1wRwG9.js +0 -6
- package/build/client/assets/diff-BBAXCccH.js +0 -2
- package/build/client/assets/diff-BRjU7JW8.js +0 -1
- package/build/client/assets/diff-CcgZ4_WR.js +0 -2
- package/build/client/assets/diff-De8pyyP6.js +0 -1893
- package/build/client/assets/discord-DZT9R-PE.js +0 -2
- package/build/client/assets/discord-FiUaQPdz.js +0 -1
- package/build/client/assets/dist-00lDpI4c.js +0 -2
- package/build/client/assets/dist-BK_9ra1r.js +0 -2
- package/build/client/assets/dist-CXyvaor_.js +0 -2
- package/build/client/assets/dist-DmdeG_V_.js +0 -2
- package/build/client/assets/dist-DxZIc2-B.js +0 -2
- package/build/client/assets/docker-DQIwORZf.js +0 -2
- package/build/client/assets/dotenv-BU8hG8Lm.js +0 -2
- package/build/client/assets/dracula-C7pYAJb_.js +0 -2
- package/build/client/assets/dracula-soft-PYXKQpeM.js +0 -2
- package/build/client/assets/dream-maker-DQw_kFBD.js +0 -2
- package/build/client/assets/edge-BOY57zAF.js +0 -2
- package/build/client/assets/elixir-BvpxtRRW.js +0 -2
- package/build/client/assets/elm-CG2nke6u.js +0 -2
- package/build/client/assets/emacs-lisp-_p0ozE7T.js +0 -2
- package/build/client/assets/entry.client-CdpaKPjL.js +0 -11
- package/build/client/assets/epic-video-5ee5ahyQ.js +0 -2
- package/build/client/assets/epic-video-D7-FW90s.js +0 -2
- package/build/client/assets/erDiagram-SMLLAGMA-DS9F8Ze0.js +0 -86
- package/build/client/assets/erb-DtmWCyPx.js +0 -2
- package/build/client/assets/erlang-BHopg8Sd.js +0 -2
- package/build/client/assets/error-boundary-Bp8fLLad.js +0 -2
- package/build/client/assets/error-boundary-CU_Rd7b9.js +0 -3
- package/build/client/assets/es2015-B_uX0zsJ.js +0 -42
- package/build/client/assets/everforest-dark-CEsKEfc1.js +0 -2
- package/build/client/assets/everforest-light-DCoHJRTP.js +0 -2
- package/build/client/assets/fennel-BskUmnFW.js +0 -2
- package/build/client/assets/finished-8FKY6nB0.js +0 -2
- package/build/client/assets/fish-BpyGiDyc.js +0 -2
- package/build/client/assets/flatten-DkyL6q_h.js +0 -2
- package/build/client/assets/flowDiagram-DWJPFMVM-DvnC8vue.js +0 -163
- package/build/client/assets/fluent-x6YaW5Qn.js +0 -2
- package/build/client/assets/format-DPJxnM8Q.js +0 -2
- package/build/client/assets/fortran-fixed-form-BfyQfPFY.js +0 -2
- package/build/client/assets/fortran-free-form-DiVENRIw.js +0 -1
- package/build/client/assets/fortran-free-form-R8f2xHwo.js +0 -2
- package/build/client/assets/fsharp-DP56ZUnH.js +0 -2
- package/build/client/assets/ganttDiagram-T4ZO3ILL-Ax3vHaHQ.js +0 -293
- package/build/client/assets/gdresource-CfLVy1W9.js +0 -2
- package/build/client/assets/gdscript-BBtzYSw4.js +0 -1
- package/build/client/assets/gdscript-C3EnBdjg.js +0 -2
- package/build/client/assets/gdshader-B_X6ii2G.js +0 -1
- package/build/client/assets/gdshader-CLbuUXBk.js +0 -2
- package/build/client/assets/genie-CnbtCS_2.js +0 -2
- package/build/client/assets/gherkin-vDDCpWsI.js +0 -2
- package/build/client/assets/git-commit-DqJSS5m7.js +0 -2
- package/build/client/assets/git-rebase-Bcm6RWgD.js +0 -2
- package/build/client/assets/gitGraph-7Q5UKJZL-ihXlcrWz.js +0 -1
- package/build/client/assets/gitGraphDiagram-UUTBAWPF-NQ5fI1XF.js +0 -107
- package/build/client/assets/github-dark-DPd-rVx8.js +0 -2
- package/build/client/assets/github-dark-default-CuKDGaXH.js +0 -2
- package/build/client/assets/github-dark-dimmed-BAAzugAQ.js +0 -2
- package/build/client/assets/github-dark-high-contrast-BQzI5-Z9.js +0 -2
- package/build/client/assets/github-light-C9v57bKG.js +0 -2
- package/build/client/assets/github-light-default-CTAzHOGM.js +0 -2
- package/build/client/assets/github-light-high-contrast-vbyJBxfE.js +0 -2
- package/build/client/assets/gleam-CF4IL4ql.js +0 -2
- package/build/client/assets/glimmer-js-DHyjq0tM.js +0 -2
- package/build/client/assets/glimmer-ts-BnGhQl5L.js +0 -2
- package/build/client/assets/glsl-BKsDfQ7b.js +0 -2
- package/build/client/assets/glsl-BKyuyz7A.js +0 -1
- package/build/client/assets/gn-D4IL3ULU.js +0 -2
- package/build/client/assets/gnuplot-BPUFQbV1.js +0 -2
- package/build/client/assets/go-DDSatfJP.js +0 -1
- package/build/client/assets/go-DmsE7V6v.js +0 -2
- package/build/client/assets/graphlib-B9ynkhPg.js +0 -2
- package/build/client/assets/graphql-CRGwboGQ.js +0 -1
- package/build/client/assets/graphql-l-0fDl75.js +0 -2
- package/build/client/assets/groovy-q4XzdU0c.js +0 -2
- package/build/client/assets/gruvbox-dark-hard-71Ie6-HF.js +0 -2
- package/build/client/assets/gruvbox-dark-medium-ABrnMQQh.js +0 -2
- package/build/client/assets/gruvbox-dark-soft-Bj6yvhDt.js +0 -2
- package/build/client/assets/gruvbox-light-hard-CEGTGgGS.js +0 -2
- package/build/client/assets/gruvbox-light-medium-4jMiUaFz.js +0 -2
- package/build/client/assets/gruvbox-light-soft-Cff0AZ4x.js +0 -2
- package/build/client/assets/guide-C4TlXBW1.js +0 -9
- package/build/client/assets/hack-Da_G5MQL.js +0 -2
- package/build/client/assets/haml-D96iN0Ee.js +0 -1
- package/build/client/assets/haml-DztGzsvk.js +0 -2
- package/build/client/assets/handlebars-CAb9hziw.js +0 -2
- package/build/client/assets/haskell-CCR89t4v.js +0 -2
- package/build/client/assets/haxe-BMLozn62.js +0 -1
- package/build/client/assets/haxe-BXckU8lf.js +0 -2
- package/build/client/assets/hcl-zlw-uXsJ.js +0 -2
- package/build/client/assets/hjson-BabujfJB.js +0 -2
- package/build/client/assets/hlsl-CWTNq6Mh.js +0 -1
- package/build/client/assets/hlsl-PHpybN8c.js +0 -2
- package/build/client/assets/horizon-cLcFBYf8.js +0 -2
- package/build/client/assets/houston-D1hiI1s4.js +0 -2
- package/build/client/assets/html-BHHLPszO.js +0 -2
- package/build/client/assets/html-BQq9u90p.js +0 -1
- package/build/client/assets/html-derivative-B1sTcec0.js +0 -1
- package/build/client/assets/html-derivative-Bmjf1YuT.js +0 -2
- package/build/client/assets/http-CyuZnHEV.js +0 -2
- package/build/client/assets/hurl-B4mZJUm4.js +0 -2
- package/build/client/assets/hxml-CYrYxt93.js +0 -2
- package/build/client/assets/hy-BIIGCyb2.js +0 -2
- package/build/client/assets/imba-BfTo-nc6.js +0 -2
- package/build/client/assets/index-B8C1ZTEl.js +0 -2
- package/build/client/assets/index-DnRzh8hP.js +0 -2
- package/build/client/assets/index-UHCF2uvc.js +0 -2
- package/build/client/assets/index-alEV8Zw-.js +0 -2
- package/build/client/assets/index.client-CnDVaWBw.js +0 -483
- package/build/client/assets/info-OMHHGYJF-DOtzpYok.js +0 -1
- package/build/client/assets/infoDiagram-42DDH7IO-BQgoqOT_.js +0 -3
- package/build/client/assets/ini-CaEU4If7.js +0 -2
- package/build/client/assets/init-537tmY1b.js +0 -2
- package/build/client/assets/isEmpty-BYhrGqQ4.js +0 -2
- package/build/client/assets/ishikawaDiagram-UXIWVN3A-DIlkUhUV.js +0 -71
- package/build/client/assets/java-BVdzbTDj.js +0 -2
- package/build/client/assets/java-DidXw032.js +0 -1
- package/build/client/assets/javascript-B_yB94ZQ.js +0 -2
- package/build/client/assets/javascript-CQvme4r5.js +0 -1
- package/build/client/assets/jinja-aJrYTeGF.js +0 -2
- package/build/client/assets/jison-CMdFfPYC.js +0 -2
- package/build/client/assets/journeyDiagram-VCZTEJTY-BE_5cRbk.js +0 -140
- package/build/client/assets/json-6_esgmc7.js +0 -1
- package/build/client/assets/json-_RfHIpaN.js +0 -2
- package/build/client/assets/json5-BCPrU10B.js +0 -2
- package/build/client/assets/jsonc-CWBgYkOo.js +0 -2
- package/build/client/assets/jsonl-BQm9TL-K.js +0 -2
- package/build/client/assets/jsonnet-DOJrpA6S.js +0 -2
- package/build/client/assets/jssm-CArdK9si.js +0 -2
- package/build/client/assets/jsx-BxjZ_Yt3.js +0 -1
- package/build/client/assets/jsx-DcCOZ60k.js +0 -2
- package/build/client/assets/jsx-runtime-CsABcn9C.js +0 -2
- package/build/client/assets/julia-CgHsoh-Z.js +0 -2
- package/build/client/assets/kanagawa-dragon-CnZYDz_M.js +0 -2
- package/build/client/assets/kanagawa-lotus-Bs-Naoeh.js +0 -2
- package/build/client/assets/kanagawa-wave-CkXgeMon.js +0 -2
- package/build/client/assets/kanban-definition-6JOO6SKY-BsLzf-76.js +0 -90
- package/build/client/assets/katex-CUu5Qn5P.js +0 -262
- package/build/client/assets/kdl-q4RIbd93.js +0 -2
- package/build/client/assets/kotlin-C2CLX9PW.js +0 -2
- package/build/client/assets/kusto-BJDGWOno.js +0 -2
- package/build/client/assets/l-B_-E_-7n.js +0 -2
- package/build/client/assets/laserwave-CV6uzjiL.js +0 -2
- package/build/client/assets/latex-CwQto2N5.js +0 -2
- package/build/client/assets/launch-editor-CoZ0jSde.js +0 -2
- package/build/client/assets/lean-Ba0udQO_.js +0 -2
- package/build/client/assets/less-DWJlwYKY.js +0 -1
- package/build/client/assets/less-pR6EE9I_.js +0 -2
- package/build/client/assets/light-plus-DTCT3gPr.js +0 -2
- package/build/client/assets/line-BcrOwpGI.js +0 -2
- package/build/client/assets/linear-BcKaghQb.js +0 -2
- package/build/client/assets/liquid-0YimI7fA.js +0 -2
- package/build/client/assets/llvm-Dacfrf1v.js +0 -2
- package/build/client/assets/loading-BjXGq4oX.js +0 -2
- package/build/client/assets/log-DiSwqBr0.js +0 -2
- package/build/client/assets/login-CPGJHQjm.js +0 -2
- package/build/client/assets/login-sse-DorAonD1.js +0 -2
- package/build/client/assets/logo-DUJNafmp.js +0 -2
- package/build/client/assets/lua-D6DDlfo7.js +0 -1
- package/build/client/assets/lua-ZZ9e_1_l.js +0 -2
- package/build/client/assets/luau-CUl7juRM.js +0 -2
- package/build/client/assets/make-D2dwK0OU.js +0 -2
- package/build/client/assets/manifest-af53c176.js +0 -1
- package/build/client/assets/markdown-BmA0rTuN.js +0 -2
- package/build/client/assets/markdown-GoOwl62J.js +0 -1
- package/build/client/assets/marko-DjnocPvU.js +0 -2
- package/build/client/assets/material-theme-B_QswgFv.js +0 -2
- package/build/client/assets/material-theme-darker-3Fjrn1hj.js +0 -2
- package/build/client/assets/material-theme-lighter-DDq_Ke_k.js +0 -2
- package/build/client/assets/material-theme-ocean-CgVzgKe9.js +0 -2
- package/build/client/assets/material-theme-palenight-BkXsCdmo.js +0 -2
- package/build/client/assets/matlab-dgOZ9exq.js +0 -2
- package/build/client/assets/mdc-HgE9tfqF.js +0 -2
- package/build/client/assets/mdx-C-Fw_JWP.js +0 -3
- package/build/client/assets/mdx-DKvaRZ9s.js +0 -2
- package/build/client/assets/mermaid-1oEQdYBz.js +0 -2
- package/build/client/assets/mermaid-parser.core-g8gIHxZh.js +0 -5
- package/build/client/assets/mermaid.core-QW0KW1Xb.js +0 -12
- package/build/client/assets/min-dark-BGNvgl8q.js +0 -2
- package/build/client/assets/min-light-CglDlAcX.js +0 -2
- package/build/client/assets/mindmap-definition-QFDTVHPH-CZH_KEgo.js +0 -97
- package/build/client/assets/mipsasm-vMrhpPCc.js +0 -2
- package/build/client/assets/misc-CTWQfMXg.js +0 -2
- package/build/client/assets/mojo-CxhpQWSZ.js +0 -2
- package/build/client/assets/monokai-CpyUNEWu.js +0 -2
- package/build/client/assets/moonbit-BTrP0YYQ.js +0 -2
- package/build/client/assets/move-BMPQ5lkC.js +0 -2
- package/build/client/assets/narrat-BeiW_EkB.js +0 -2
- package/build/client/assets/nav-chevrons-BEwv5mN-.js +0 -2
- package/build/client/assets/nextflow-Bnz8C6LT.js +0 -2
- package/build/client/assets/nginx-ZfdiUjLM.js +0 -2
- package/build/client/assets/night-owl-K8Dv2dXF.js +0 -2
- package/build/client/assets/night-owl-light-C-HEp86K.js +0 -2
- package/build/client/assets/nim-6sfCClUk.js +0 -2
- package/build/client/assets/nix-BeElgmyD.js +0 -2
- package/build/client/assets/nord-DTUwzPJq.js +0 -2
- package/build/client/assets/notifications-0LiGWHsq.js +0 -2
- package/build/client/assets/nushell-CoxsyAcG.js +0 -2
- package/build/client/assets/objective-c-BSBiGSnQ.js +0 -2
- package/build/client/assets/objective-cpp-BUeGK9AN.js +0 -2
- package/build/client/assets/ocaml-B6EVKpxq.js +0 -2
- package/build/client/assets/odin-CiZHmMe8.js +0 -2
- package/build/client/assets/offline-videos-CmhLNZ4x.js +0 -2
- package/build/client/assets/onboarding-indicator-BKNLiLU1.js +0 -2
- package/build/client/assets/one-dark-pro-Bo1ZAWfP.js +0 -2
- package/build/client/assets/one-light-DLIz6KdJ.js +0 -2
- package/build/client/assets/online-CgARNCzG.js +0 -2
- package/build/client/assets/openscad-DZ_Xor0e.js +0 -2
- package/build/client/assets/ordinal-DWKW8UUI.js +0 -2
- package/build/client/assets/packet-4T2RLAQJ-CYqueVTw.js +0 -1
- package/build/client/assets/pascal-Dv0psudg.js +0 -2
- package/build/client/assets/path-Da6hPWI9.js +0 -2
- package/build/client/assets/pe-BdreN8Hy.js +0 -2
- package/build/client/assets/perl-DmDE-20J.js +0 -2
- package/build/client/assets/php-B-CO8bAC.js +0 -2
- package/build/client/assets/php-Z_JLCbzl.js +0 -1
- package/build/client/assets/pie-ZZUOXDRM-sdsJuIf6.js +0 -1
- package/build/client/assets/pieDiagram-DEJITSTG-DCbUeoUY.js +0 -31
- package/build/client/assets/pierre-dark-Wlv3XNmp.js +0 -2
- package/build/client/assets/pierre-light-Cwc58YZM.js +0 -2
- package/build/client/assets/pkl-BZA-sbnj.js +0 -2
- package/build/client/assets/plastic-BtzISQpV.js +0 -2
- package/build/client/assets/playground-vAVeU1mV.js +0 -2
- package/build/client/assets/playground-window-Cwdv4sig.js +0 -2
- package/build/client/assets/plsql-B_LE95rg.js +0 -2
- package/build/client/assets/po-Dovn7B0z.js +0 -2
- package/build/client/assets/poimandres-Cj_Gkiil.js +0 -2
- package/build/client/assets/polar-CICKiXs5.js +0 -2
- package/build/client/assets/popover-QD7GM3tw.js +0 -2
- package/build/client/assets/postcss-DpTdSKPa.js +0 -2
- package/build/client/assets/postcss-DsZonS_A.js +0 -1
- package/build/client/assets/powerquery-C3c9uDjf.js +0 -2
- package/build/client/assets/powershell-Dw8wWt5A.js +0 -2
- package/build/client/assets/preferences-BqxQearO.js +0 -2
- package/build/client/assets/preload-helper-BgHWayLj.js +0 -1
- package/build/client/assets/presence-B5TsiyqZ.js +0 -61
- package/build/client/assets/preview-D3nseZa2.js +0 -2
- package/build/client/assets/prisma-B8cljiaN.js +0 -2
- package/build/client/assets/product-DSx3naV2.js +0 -2
- package/build/client/assets/progress-DhJX44QS.js +0 -2
- package/build/client/assets/progress-bar-D_jTYrn3.js +0 -2
- package/build/client/assets/prolog-BRgQUXmV.js +0 -2
- package/build/client/assets/proto-CLX3CThN.js +0 -2
- package/build/client/assets/pug-CBa62qsU.js +0 -2
- package/build/client/assets/puppet-ba829zaF.js +0 -2
- package/build/client/assets/purescript-33zYrAFI.js +0 -2
- package/build/client/assets/python-BcpCnKLV.js +0 -2
- package/build/client/assets/python-r3zZXbuI.js +0 -1
- package/build/client/assets/qml-DDAjP6Sd.js +0 -2
- package/build/client/assets/qmldir-CSTIHwO8.js +0 -2
- package/build/client/assets/qss-BND08_jp.js +0 -2
- package/build/client/assets/quadrantDiagram-34T5L4WZ-BjRi8CoO.js +0 -8
- package/build/client/assets/r-BsNKCOxG.js +0 -2
- package/build/client/assets/r-DNUCk8-m.js +0 -1
- package/build/client/assets/racket-CkUzsvo2.js +0 -2
- package/build/client/assets/radar-PYXPWWZC-DnEg7YSD.js +0 -1
- package/build/client/assets/raku-Cq6NwpzG.js +0 -2
- package/build/client/assets/razor-CS1qsE4N.js +0 -2
- package/build/client/assets/react-BgeZwij6.js +0 -2
- package/build/client/assets/react-dom-CjFQF1M2.js +0 -2
- package/build/client/assets/react-error-boundary-ChRZwMyI.js +0 -2
- package/build/client/assets/red-Dr6NmQ7Q.js +0 -2
- package/build/client/assets/reduce-DqCUbztm.js +0 -2
- package/build/client/assets/reg-BAqHL4uD.js +0 -2
- package/build/client/assets/regexp-C601kSy2.js +0 -2
- package/build/client/assets/regexp-GWf8MTKw.js +0 -1
- package/build/client/assets/rel-BABlYPye.js +0 -2
- package/build/client/assets/requirementDiagram-MS252O5E-CSGPOmYx.js +0 -85
- package/build/client/assets/retrieval-practice-CJd8G0A7.js +0 -2
- package/build/client/assets/revalidation-ws-IrOJDXSZ.js +0 -2
- package/build/client/assets/riscv-BRFGeV35.js +0 -2
- package/build/client/assets/ron-H_RqDt9e.js +0 -2
- package/build/client/assets/root-DzNIuBTS.js +0 -3
- package/build/client/assets/root-loader-uzg7xScE.js +0 -2
- package/build/client/assets/rose-pine-BRiNyjp5.js +0 -2
- package/build/client/assets/rose-pine-dawn-Cyk6bxJb.js +0 -2
- package/build/client/assets/rose-pine-moon-BuGWgWiV.js +0 -2
- package/build/client/assets/rosmsg-BgLQ8Hbk.js +0 -2
- package/build/client/assets/rough.esm-BC6-0ku3.js +0 -2
- package/build/client/assets/rst-B_beTRqx.js +0 -2
- package/build/client/assets/ruby-24phSdZ_.js +0 -1
- package/build/client/assets/ruby-BaT56SH8.js +0 -2
- package/build/client/assets/rust-9rEjdEYq.js +0 -2
- package/build/client/assets/sankeyDiagram-XADWPNL6-kfJkSwRc.js +0 -11
- package/build/client/assets/sas-C3pVXidG.js +0 -2
- package/build/client/assets/sass-AuOwPR81.js +0 -2
- package/build/client/assets/scala-CpbT25su.js +0 -2
- package/build/client/assets/scheme-D5Gq5hKD.js +0 -2
- package/build/client/assets/scss-WaWum04C.js +0 -2
- package/build/client/assets/scss-Xeq4RoFa.js +0 -1
- package/build/client/assets/sdbl-BcaLz1Xm.js +0 -1
- package/build/client/assets/sdbl-RqwfQ2-G.js +0 -2
- package/build/client/assets/seo-BvmJZ-Tg.js +0 -2
- package/build/client/assets/sequenceDiagram-FGHM5R23-Coq1wJXF.js +0 -158
- package/build/client/assets/server-only-BCMtdq4a.js +0 -2
- package/build/client/assets/set-playground-Czmgs5EH.js +0 -2
- package/build/client/assets/shaderlab-my-XiLgn.js +0 -2
- package/build/client/assets/shellscript-BjhfSveh.js +0 -1
- package/build/client/assets/shellscript-ERXJ-k1w.js +0 -2
- package/build/client/assets/shellsession-UeMbVrOv.js +0 -2
- package/build/client/assets/slack-dark-DsZhXBxl.js +0 -2
- package/build/client/assets/slack-ochin-BJ0x8vzs.js +0 -2
- package/build/client/assets/smalltalk-DjvrXyiQ.js +0 -2
- package/build/client/assets/snazzy-light-LTA_e7SH.js +0 -2
- package/build/client/assets/solarized-dark-DvOkLIq6.js +0 -2
- package/build/client/assets/solarized-light-B2YrALlJ.js +0 -2
- package/build/client/assets/solidity-QmOehbfe.js +0 -2
- package/build/client/assets/soy-EnWh2RrY.js +0 -2
- package/build/client/assets/sparql-Cs915WEs.js +0 -2
- package/build/client/assets/split-layout-DnKcyZ7j.js +0 -2
- package/build/client/assets/splunk-D9GHlqXr.js +0 -2
- package/build/client/assets/sql-BM5-nSeD.js +0 -2
- package/build/client/assets/sql-VrcHP95r.js +0 -1
- package/build/client/assets/src-BHcsErTw.js +0 -2
- package/build/client/assets/ssh-config-BH_ybjUu.js +0 -2
- package/build/client/assets/start-DJny3MXZ.js +0 -2
- package/build/client/assets/stata-BrRUZp3F.js +0 -2
- package/build/client/assets/stateDiagram-FHFEXIEX-D6qgAfvK.js +0 -2
- package/build/client/assets/stateDiagram-v2-QKLJ7IA2-BvrQPREA.js +0 -2
- package/build/client/assets/status-indicator-BDAAj-oE.js +0 -2
- package/build/client/assets/stylus-C2ZPZ_WD.js +0 -2
- package/build/client/assets/stylus-D1VhkuyP.js +0 -1
- package/build/client/assets/support-B5RhGBLk.js +0 -2
- package/build/client/assets/surrealql-BivV5eQC.js +0 -2
- package/build/client/assets/svelte-BqUtfFb3.js +0 -2
- package/build/client/assets/swift-DZQE-vrx.js +0 -2
- package/build/client/assets/synthwave-84-BAiNWNM2.js +0 -2
- package/build/client/assets/system-verilog-DBsTIByR.js +0 -2
- package/build/client/assets/systemd-DsPu9KW6.js +0 -2
- package/build/client/assets/talonscript-tcqU9H05.js +0 -2
- package/build/client/assets/tasl-C_aapJYp.js +0 -2
- package/build/client/assets/tcl-Curai2nk.js +0 -2
- package/build/client/assets/templ-BwzE1ttv.js +0 -2
- package/build/client/assets/terraform-DobiG4xS.js +0 -2
- package/build/client/assets/test-Bi1-UOSK.js +0 -2
- package/build/client/assets/test-Dm9FIqCo.js +0 -5
- package/build/client/assets/tests-CkMCd5uH.js +0 -2
- package/build/client/assets/tex-CvcNsYDN.js +0 -2
- package/build/client/assets/tex-Dz159CVs.js +0 -1
- package/build/client/assets/theme-BN_5psK-.js +0 -2
- package/build/client/assets/timeline-definition-GMOUNBTQ-D4auSWX5.js +0 -121
- package/build/client/assets/tokyo-night-C8kE547D.js +0 -2
- package/build/client/assets/toml-C3NvFkcS.js +0 -2
- package/build/client/assets/tooltip-DBFSD7Kc.js +0 -2
- package/build/client/assets/treeView-SZITEDCU-D6swcNar.js +0 -1
- package/build/client/assets/treemap-W4RFUUIX-BNpMNTUP.js +0 -1
- package/build/client/assets/ts-tags-CWPSyfKG.js +0 -2
- package/build/client/assets/tsv-CaZ0P2QR.js +0 -2
- package/build/client/assets/tsx-B40WfpLI.js +0 -2
- package/build/client/assets/tsx-DNUy6lAh.js +0 -1
- package/build/client/assets/turtle-BmRAM7q1.js +0 -2
- package/build/client/assets/turtle-D2jVVve8.js +0 -1
- package/build/client/assets/twig-C2rZ4U0m.js +0 -2
- package/build/client/assets/typescript-COIGAIWW.js +0 -1
- package/build/client/assets/typescript-Dx9rzpts.js +0 -2
- package/build/client/assets/typespec-BObb5CHW.js +0 -2
- package/build/client/assets/typst-BcBmIA3C.js +0 -2
- package/build/client/assets/use-event-source-DvnbgLcR.js +0 -2
- package/build/client/assets/user-BTZH2awT.js +0 -2
- package/build/client/assets/v-Dc7rqhRV.js +0 -2
- package/build/client/assets/vala-DBIr4aO5.js +0 -2
- package/build/client/assets/vb-CVBtuGof.js +0 -2
- package/build/client/assets/vennDiagram-DHZGUBPP-C0iohj6D.js +0 -35
- package/build/client/assets/verilog-OKHGcoYQ.js +0 -2
- package/build/client/assets/version-dm7KDm4Y.js +0 -2
- package/build/client/assets/vesper-CI3Pymzs.js +0 -2
- package/build/client/assets/vhdl-CZWFrAI0.js +0 -2
- package/build/client/assets/video-player-ji7Vamgr.js +0 -3397
- package/build/client/assets/viml-DtJU9Roy.js +0 -2
- package/build/client/assets/vitesse-black-CgsVJBSu.js +0 -2
- package/build/client/assets/vitesse-dark-Cl6YH_s4.js +0 -2
- package/build/client/assets/vitesse-light-SQti8Ukb.js +0 -2
- package/build/client/assets/vue-BG_TKxW3.js +0 -2
- package/build/client/assets/vue-html-B0LJm1Om.js +0 -2
- package/build/client/assets/vue-vine-BX0s0oJd.js +0 -2
- package/build/client/assets/vyper-ZVphuPPS.js +0 -2
- package/build/client/assets/wardley-RL74JXVD-ByLJ7Eex.js +0 -1
- package/build/client/assets/wardleyDiagram-NUSXRM2D-Cukc-F0J.js +0 -21
- package/build/client/assets/wasm-CKk7-8I0.js +0 -2
- package/build/client/assets/wasm-CqywXCrG.js +0 -2
- package/build/client/assets/wenyan-agLVyRXa.js +0 -2
- package/build/client/assets/wgsl-CwDaYSqB.js +0 -2
- package/build/client/assets/wikitext-wpmb-tqH.js +0 -2
- package/build/client/assets/wit-BVyLwCis.js +0 -2
- package/build/client/assets/wolfram-CAa4kOb9.js +0 -2
- package/build/client/assets/workshop-config-B4J5xo7h.js +0 -2
- package/build/client/assets/workspace-structure-aSf82Oxm.js +0 -2
- package/build/client/assets/xml-CpGJQcqf.js +0 -2
- package/build/client/assets/xml-kLckca6a.js +0 -1
- package/build/client/assets/xsl-Dw49wPAZ.js +0 -2
- package/build/client/assets/xychartDiagram-5P7HB3ND-DTaHC4aV.js +0 -8
- package/build/client/assets/yaml-BuliLyrJ.js +0 -1
- package/build/client/assets/yaml-CvlWVUnR.js +0 -2
- package/build/client/assets/zenscript-jj8iTgQS.js +0 -2
- package/build/client/assets/zig-B5mdj-KJ.js +0 -2
- package/build/client/assets/zod-CMJRIQx0.js +0 -41
|
@@ -0,0 +1,483 @@
|
|
|
1
|
+
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`85707c3cbe8e12c71f8f697b92d48a2485c7584d`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`4232b324-b321-4e3f-8d00-cd057376ed40`,e._sentryDebugIdIdentifier=`sentry-dbid-4232b324-b321-4e3f-8d00-cd057376ed40`)}catch{}})();import{o as e,r as t}from"./chunk-SfVF5hxS.js";import{t as n}from"./react-CUe-d6Xc.js";var r=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,i=globalThis,a=`10.50.0`;function o(){return s(i),i}function s(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`10.50.0`,t[a]=t[`10.50.0`]||{}}function c(e,t,n=i){let r=n.__SENTRY__=n.__SENTRY__||{},o=r[a]=r[`10.50.0`]||{};return o[e]||(o[e]=t())}var l=[`debug`,`info`,`warn`,`error`,`log`,`assert`,`trace`],u=`Sentry Logger `,d={};function f(e){if(!(`console`in i))return e();let t=i.console,n={},r=Object.keys(d);r.forEach(e=>{let r=d[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function p(){b().enabled=!0}function m(){b().enabled=!1}function h(){return b().enabled}function g(...e){y(`log`,...e)}function _(...e){y(`warn`,...e)}function v(...e){y(`error`,...e)}function y(e,...t){r&&h()&&f(()=>{i.console[e](`${u}[${e}]:`,...t)})}function b(){return r?c(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var x={enable:p,disable:m,isEnabled:h,log:g,warn:_,error:v},S=50,C=/\(error: (.*)\)/,w=/captureMessage|captureException/;function T(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0,r=0)=>{let i=[],a=e.split(`
|
|
2
|
+
`);for(let e=n;e<a.length;e++){let n=a[e];n.length>1024&&(n=n.slice(0,1024));let o=C.test(n)?n.replace(C,`$1`):n;if(!o.includes(`Error: `)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=S+r)break}}return te(i.slice(r))}}function ee(e){return Array.isArray(e)?T(...e):e}function te(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(ne(t).function||``)&&t.pop(),t.reverse(),w.test(ne(t).function||``)&&(t.pop(),w.test(ne(t).function||``)&&t.pop()),t.slice(0,S).map(e=>({...e,filename:e.filename||ne(t).filename,function:e.function||`?`}))}function ne(e){return e[e.length-1]||{}}var re=`<anonymous>`;function ie(e){try{return!e||typeof e!=`function`?re:e.name||re}catch{return re}}function ae(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}function oe(e){return`__v_isVNode`in e&&e.__v_isVNode?`[VueVNode]`:`[VueViewModel]`}function se(e){let t=e?.startsWith(`file://`)?e.slice(7):e;return t?.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}var E={},ce={};function le(e,t){E[e]=E[e]||[],E[e].push(t)}function ue(e,t){if(!ce[e]){ce[e]=!0;try{t()}catch(t){r&&x.error(`Error while instrumenting ${e}`,t)}}}function de(e,t){let n=e&&E[e];if(n)for(let i of n)try{i(t)}catch(t){r&&x.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${ie(i)}\nError:`,t)}}var fe=null;function pe(e){let t=`error`;le(t,e),ue(t,me)}function me(){fe=i.onerror,i.onerror=function(e,t,n,r,i){return de(`error`,{column:r,error:i,line:n,msg:e,url:t}),fe?fe.apply(this,arguments):!1},i.onerror.__SENTRY_INSTRUMENTED__=!0}var he=null;function ge(e){let t=`unhandledrejection`;le(t,e),ue(t,_e)}function _e(){he=i.onunhandledrejection,i.onunhandledrejection=function(e){return de(`unhandledrejection`,e),he?he.apply(this,arguments):!0},i.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var ve=Object.prototype.toString;function ye(e){switch(ve.call(e)){case`[object Error]`:case`[object Exception]`:case`[object DOMException]`:case`[object WebAssembly.Exception]`:return!0;default:return Ne(e,Error)}}function be(e,t){return ve.call(e)===`[object ${t}]`}function xe(e){return be(e,`ErrorEvent`)}function Se(e){return be(e,`DOMError`)}function Ce(e){return be(e,`DOMException`)}function we(e){return be(e,`String`)}function Te(e){return typeof e==`object`&&!!e&&`__sentry_template_string__`in e&&`__sentry_template_values__`in e}function Ee(e){return e===null||Te(e)||typeof e!=`object`&&typeof e!=`function`}function De(e){return be(e,`Object`)}function Oe(e){return typeof Event<`u`&&Ne(e,Event)}function ke(e){return typeof Element<`u`&&Ne(e,Element)}function Ae(e){return be(e,`RegExp`)}function je(e){return!!(e?.then&&typeof e.then==`function`)}function Me(e){return De(e)&&`nativeEvent`in e&&`preventDefault`in e&&`stopPropagation`in e}function Ne(e,t){try{return e instanceof t}catch{return!1}}function Pe(e){return!!(typeof e==`object`&&e&&(e.__isVue||e._isVue||e.__v_isVNode))}function Fe(e){return typeof Request<`u`&&Ne(e,Request)}var Ie=i,Le=80;function Re(e,t={}){if(!e)return`<unknown>`;try{let n=e,r=[],i=0,a=0,o,s=Array.isArray(t)?t:t.keyAttrs,c=!Array.isArray(t)&&t.maxStringLength||Le;for(;n&&i++<5&&(o=ze(n,s),!(o===`html`||i>1&&a+r.length*3+o.length>=c));)r.push(o),a+=o.length,n=n.parentNode;return r.reverse().join(` > `)}catch{return`<unknown>`}}function ze(e,t){let n=e,r=[];if(!n?.tagName)return``;if(Ie.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());let i=t?.length?t.filter(e=>n.getAttribute(e)).map(e=>[e,n.getAttribute(e)]):null;if(i?.length)i.forEach(e=>{r.push(`[${e[0]}="${e[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let e=n.className;if(e&&we(e)){let t=e.split(/\s+/);for(let e of t)r.push(`.${e}`)}}for(let e of[`aria-label`,`type`,`name`,`title`,`alt`]){let t=n.getAttribute(e);t&&r.push(`[${e}="${t}"]`)}return r.join(``)}function Be(){try{return Ie.document.location.href}catch{return``}}function Ve(e,t=5){if(!Ie.HTMLElement)return null;let n=e;for(let e=0;e<t;e++){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 He(e,t,n){if(!(t in e))return;let i=e[t];if(typeof i!=`function`)return;let a=n(i);typeof a==`function`&&We(a,i);try{e[t]=a}catch{r&&x.log(`Failed to replace method "${t}" in object`,e)}}function Ue(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{r&&x.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function We(e,t){try{e.prototype=t.prototype=t.prototype||{},Ue(e,`__sentry_original__`,t)}catch{}}function Ge(e){return e.__sentry_original__}function Ke(e){if(ye(e))return{message:e.message,name:e.name,stack:e.stack,...Je(e)};if(Oe(e)){let t={type:e.type,target:qe(e.target),currentTarget:qe(e.currentTarget),...Je(e)};return typeof CustomEvent<`u`&&Ne(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function qe(e){try{return ke(e)?Re(e):Object.prototype.toString.call(e)}catch{return`<unknown>`}}function Je(e){return typeof e==`object`&&e?Object.fromEntries(Object.entries(e)):{}}function Ye(e){let t=Object.keys(Ke(e));return t.sort(),t[0]?t.join(`, `):`[object has no keys]`}var Xe;function Ze(e){if(Xe!==void 0)return Xe?Xe(e):e();let t=Symbol.for(`__SENTRY_SAFE_RANDOM_ID_WRAPPER__`),n=i;return t in n&&typeof n[t]==`function`?(Xe=n[t],Xe(e)):(Xe=null,e())}function Qe(){return Ze(()=>Math.random())}function $e(){return Ze(()=>Date.now())}function et(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function tt(e,t){let n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);let i=Math.max(t-60,0);i<5&&(i=0);let a=Math.min(i+140,r);return a>r-5&&(a=r),a===r&&(i=Math.max(a-140,0)),n=n.slice(i,a),i>0&&(n=`'{snip} ${n}`),a<r&&(n+=` {snip}`),n}function nt(e,t){if(!Array.isArray(e))return``;let n=[];for(let t=0;t<e.length;t++){let r=e[t];try{Pe(r)?n.push(oe(r)):n.push(String(r))}catch{n.push(`[value cannot be serialized]`)}}return n.join(t)}function rt(e,t,n=!1){return we(e)?Ae(t)?t.test(e):we(t)?n?e===t:e.includes(t):typeof t==`function`?t(e):!1:!1}function it(e,t=[],n=!1){return t.some(t=>rt(e,t,n))}function at(){let e=i;return e.crypto||e.msCrypto}var ot;function st(){return Qe()*16}function ct(e=at()){try{if(e?.randomUUID)return Ze(()=>e.randomUUID()).replace(/-/g,``)}catch{}return ot||=`10000000100040008000100000000000`,ot.replace(/[018]/g,e=>(e^(st()&15)>>e/4).toString(16))}function lt(e){return e.exception?.values?.[0]}function ut(e){let{message:t,event_id:n}=e;if(t)return t;let r=lt(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||`<unknown>`:n||`<unknown>`}function dt(e,t,n){let r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||=t||``,a.type||=n||`Error`}function ft(e,t){let n=lt(e);if(!n)return;let r={type:`generic`,handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&`data`in t){let e={...i?.data,...t.data};n.mechanism.data=e}}function pt(e,t,n=5){if(t.lineno===void 0)return;let r=e.length,i=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,i-n),i).map(e=>tt(e,0)),t.context_line=tt(e[Math.min(r-1,i)],t.colno||0),t.post_context=e.slice(Math.min(i+1,r),i+1+n).map(e=>tt(e,0))}function mt(e){if(ht(e))return!0;try{Ue(e,`__sentry_captured__`,!0)}catch{}return!1}function ht(e){try{return e.__sentry_captured__}catch{}}var gt=1e3;function _t(){return $e()/gt}function vt(){let{performance:e}=i;if(!e?.now||!e.timeOrigin)return _t;let t=e.timeOrigin;return()=>(t+Ze(()=>e.now()))/gt}var yt;function D(){return(yt??=vt())()}var bt=null;function xt(){let{performance:e}=i;if(!e?.now)return;let t=3e5,n=Ze(()=>e.now()),r=$e(),a=e.timeOrigin;if(typeof a==`number`&&Math.abs(a+n-r)<t)return a;let o=e.timing?.navigationStart;return typeof o==`number`&&Math.abs(o+n-r)<t?o:r-n}function St(){return bt===null&&(bt=xt()),bt}function Ct(e){let t=D(),n={sid:ct(),init:!0,timestamp:t,started:t,duration:0,status:`ok`,errors:0,ignoreDuration:!1,toJSON:()=>Et(n)};return e&&wt(n,e),n}function wt(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||D(),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:ct()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t: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 Tt(e,t){let n={};t?n={status:t}:e.status===`ok`&&(n={status:`exited`}),wt(e,n)}function Et(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 Dt(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=Dt(r[e],t[e],n-1));return r}function Ot(){return ct()}function kt(){return ct().substring(16)}var At=`_sentrySpan`;function jt(e,t){t?Ue(e,At,t):delete e[At]}function Mt(e){return e[At]}var Nt=100,Pt=class e{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:Ot(),sampleRand:Qe()}}clone(){let t=new e;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,jt(t,Mt(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&wt(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:r,attributes:i,extra:a,user:o,contexts:s,level:c,fingerprint:l=[],propagationContext:u,conversationId:d}=(n instanceof e?n.getScopeData():De(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...a},this._contexts={...this._contexts,...s},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),l.length&&(this._fingerprint=l),u&&(this._propagationContext=u),d&&(this._conversationId=d),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,jt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ot(),sampleRand:Qe()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:Nt;if(n<=0)return this;let r={timestamp:_t(),...e,message:e.message?et(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),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(e){return this._attachments.push(e),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:Mt(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=Dt(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||ct();if(!this._client)return r&&x.warn(`No client configured on scope - will not capture exception!`),n;let i=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:n},this),n}captureMessage(e,t,n){let i=n?.event_id||ct();if(!this._client)return r&&x.warn(`No client configured on scope - will not capture message!`),i;let a=n?.syntheticException??Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:a,...n,event_id:i},this),i}captureEvent(e,t){let n=e.event_id||t?.event_id||ct();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(r&&x.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),!1)}};function Ft(){return c(`defaultCurrentScope`,()=>new Pt)}function It(){return c(`defaultIsolationScope`,()=>new Pt)}var Lt=e=>e instanceof Promise&&!e[Rt],Rt=Symbol(`chained PromiseLike`),zt=(e,t,n)=>{let r=e.then(e=>(t(e),e),e=>{throw n(e),e});return Lt(r)&&Lt(e)?r:Bt(e,r)},Bt=(e,t)=>{let n=!1;for(let r in e){if(r in t)continue;n=!0;let i=e[r];typeof i==`function`?Object.defineProperty(t,r,{value:(...t)=>i.apply(e,t),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[Rt]:!0}),t},Vt=class{constructor(e,t){let n;n=e||new Pt;let r;r=t||new Pt,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return je(n)?zt(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Ht(){let e=s(o());return e.stack=e.stack||new Vt(Ft(),It())}function Ut(e){return Ht().withScope(e)}function Wt(e,t){let n=Ht();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Gt(e){return Ht().withScope(()=>e(Ht().getIsolationScope()))}function Kt(){return{withIsolationScope:Gt,withScope:Ut,withSetScope:Wt,withSetIsolationScope:(e,t)=>Gt(t),getCurrentScope:()=>Ht().getScope(),getIsolationScope:()=>Ht().getIsolationScope()}}function qt(e){let t=s(e);return t.acs?t.acs:Kt()}function Jt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&Object.keys(e).includes(`value`)}function Yt(e,t){let{value:n,unit:r}=Jt(e)?e:{value:e,unit:void 0},i=$t(n),a=r&&typeof r==`string`?{unit:r}:{};if(i)return{...i,...a};if(!t||t===`skip-undefined`&&n===void 0)return;let o=``;try{o=JSON.stringify(n)??``}catch{}return{value:o,type:`string`,...a}}function Xt(e,t=!1){let n={};for(let[r,i]of Object.entries(e??{})){let e=Yt(i,t);e&&(n[r]=e)}return n}function Zt(e){if(!e)return 0;let t=0;for(let[n,r]of Object.entries(e)){t+=n.length*2,t+=r.type.length*2,t+=(r.unit?.length??0)*2;let e=r.value;Array.isArray(e)?t+=Qt(e[0])*e.length:Ee(e)?t+=Qt(e):t+=100}return t}function Qt(e){return typeof e==`string`?e.length*2:typeof e==`boolean`?4:typeof e==`number`?8:0}function $t(e){let 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}}var en;function tn(){return en?.()}function nn(){return en!==void 0}function O(){return qt(o()).getCurrentScope()}function k(){return qt(o()).getIsolationScope()}function rn(){return c(`globalScope`,()=>new Pt)}function an(...e){let t=qt(o());if(e.length===2){let[n,r]=e;return n?t.withSetScope(n,r):t.withScope(r)}return t.withScope(e[0])}function on(...e){let t=qt(o());if(e.length===2){let[n,r]=e;return n?t.withSetIsolationScope(n,r):t.withIsolationScope(r)}return t.withIsolationScope(e[0])}function A(){return O().getClient()}function sn(e){let t=tn();if(t)return{trace_id:t.traceId,span_id:t.spanId};let{traceId:n,parentSpanId:r,propagationSpanId:i}=e.getPropagationContext(),a={trace_id:n,span_id:i||kt()};return r&&(a.parent_span_id=r),a}var cn=`sentry.source`,ln=`sentry.sample_rate`,un=`sentry.previous_trace_sample_rate`,j=`sentry.op`,M=`sentry.origin`,dn=`sentry.idle_span_finish_reason`,fn=`sentry.measurement_unit`,pn=`sentry.measurement_value`,mn=`sentry.release`,hn=`sentry.environment`,gn=`sentry.segment.name`,_n=`sentry.segment.id`,vn=`sentry.sdk.name`,yn=`sentry.sdk.version`,bn=`user.id`,xn=`user.email`,Sn=`user.ip_address`,Cn=`user.name`,wn=`sentry.custom_span_name`,Tn=`sentry.profile_id`,En=`sentry.exclusive_time`,Dn=`sentry.link.type`,On=`gen_ai.conversation.id`;function kn(e){if(e<400&&e>=100)return{code:1};if(e>=400&&e<500)switch(e){case 401:return{code:2,message:`unauthenticated`};case 403:return{code:2,message:`permission_denied`};case 404:return{code:2,message:`not_found`};case 409:return{code:2,message:`already_exists`};case 413:return{code:2,message:`failed_precondition`};case 429:return{code:2,message:`resource_exhausted`};case 499:return{code:2,message:`cancelled`};default:return{code:2,message:`invalid_argument`}}if(e>=500&&e<600)switch(e){case 501:return{code:2,message:`unimplemented`};case 503:return{code:2,message:`unavailable`};case 504:return{code:2,message:`deadline_exceeded`};default:return{code:2,message:`internal_error`}}return{code:2,message:`internal_error`}}function An(e,t){e.setAttribute(`http.response.status_code`,t);let n=kn(t);n.message!==`unknown_error`&&e.setStatus(n)}function jn(e){try{let t=i.WeakRef;if(typeof t==`function`)return new t(e)}catch{}return e}function Mn(e){if(e){if(typeof e==`object`&&`deref`in e&&typeof e.deref==`function`)try{return e.deref()}catch{return}return e}}var Nn=`_sentryScope`,Pn=`_sentryIsolationScope`;function Fn(e,t,n){e&&(Ue(e,Pn,jn(n)),Ue(e,Nn,t))}function In(e){let t=e;return{scope:t[Nn],isolationScope:Mn(t[Pn])}}var Ln=`sentry-`;function Rn(e){let t=Bn(e);if(!t)return;let n=Object.entries(t).reduce((e,[t,n])=>{if(t.startsWith(`sentry-`)){let r=t.slice(7);e[r]=n}return e},{});if(Object.keys(n).length>0)return n}function zn(e){if(e)return Hn(Object.entries(e).reduce((e,[t,n])=>(n&&(e[`${Ln}${t}`]=n),e),{}))}function Bn(e){if(!(!e||!we(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((e,t)=>{let n=Vn(t);return Object.entries(n).forEach(([t,n])=>{e[t]=n}),e},{}):Vn(e)}function Vn(e){return e.split(`,`).map(e=>{let t=e.indexOf(`=`);return t===-1?[]:[e.slice(0,t),e.slice(t+1)].map(e=>{try{return decodeURIComponent(e.trim())}catch{return}})}).reduce((e,[t,n])=>(t&&n&&(e[t]=n),e),{})}function Hn(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((e,[t,n],i)=>{let a=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,o=i===0?a:`${e},${a}`;return o.length>8192?(r&&x.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):o},``)}var Un=/^o(\d+)\./,Wn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Gn(e){return e===`http`||e===`https`}function Kn(e,t=!1){let{host:n,path:r,pass:i,port:a,projectId:o,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&i?`:${i}`:``}@${n}${a?`:${a}`:``}/${r&&`${r}/`}${o}`}function qn(e){let t=Wn.exec(e);if(!t){f(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,i=``,a=``,o=``,s=``]=t.slice(1),c=``,l=s,u=l.split(`/`);if(u.length>1&&(c=u.slice(0,-1).join(`/`),l=u.pop()),l){let e=l.match(/^\d+/);e&&(l=e[0])}return Jn({host:a,pass:i,path:c,projectId:l,port:o,protocol:n,publicKey:r})}function Jn(e){return{protocol:e.protocol,publicKey:e.publicKey||``,pass:e.pass||``,host:e.host,port:e.port||``,path:e.path||``,projectId:e.projectId}}function Yn(e){if(!r)return!0;let{port:t,projectId:n,protocol:i}=e;return[`protocol`,`publicKey`,`host`,`projectId`].find(t=>e[t]?!1:(x.error(`Invalid Sentry Dsn: ${t} missing`),!0))?!1:n.match(/^\d+$/)?Gn(i)?t&&isNaN(parseInt(t,10))?(x.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(x.error(`Invalid Sentry Dsn: Invalid protocol ${i}`),!1):(x.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Xn(e){return e.match(Un)?.[1]}function Zn(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=Xn(n)),r}function Qn(e){let t=typeof e==`string`?qn(e):Jn(e);if(!(!t||!Yn(t)))return t}function $n(e){if(typeof e==`boolean`)return Number(e);let t=typeof e==`string`?parseFloat(e):e;if(!(typeof t!=`number`||isNaN(t)||t<0||t>1))return t}var er=RegExp(`^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$`);function tr(e){if(!e)return;let t=e.match(er);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 nr(e,t){let n=tr(e),r=Rn(t);if(!n?.traceId)return{traceId:Ot(),sampleRand:Qe()};let i=ar(n,r);r&&(r.sample_rand=i.toString());let{traceId:a,parentSpanId:o,parentSampled:s}=n;return{traceId:a,parentSpanId:o,sampled:s,dsc:r||{},sampleRand:i}}function rr(e=Ot(),t=kt(),n){let r=``;return n!==void 0&&(r=n?`-1`:`-0`),`${e}-${t}${r}`}function ir(e=Ot(),t=kt(),n){return`00-${e}-${t}-${n?`01`:`00`}`}function ar(e,t){let n=$n(t?.sample_rand);if(n!==void 0)return n;let r=$n(t?.sample_rate);return r&&e?.parentSampled!==void 0?e.parentSampled?Qe()*r:r+Qe()*(1-r):Qe()}function or(e,t){let n=Zn(e);return t&&n&&t!==n?(x.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${n})`),!1):e.getOptions().strictTraceContinuation&&(t&&!n||!t&&n)?(x.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}var sr=!1;function cr(e){let{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:o,origin:s,links:c}=N(e);return{parent_span_id:a,span_id:t,trace_id:n,data:r,op:i,status:o,origin:s,links:c}}function lr(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:N(e).parent_span_id,a=In(e).scope;return{parent_span_id:i,span_id:r?a?.getPropagationContext().propagationSpanId||kt():t,trace_id:n}}function ur(e){let{traceId:t,spanId:n}=e.spanContext();return rr(t,n,xr(e))}function dr(e){let{traceId:t,spanId:n}=e.spanContext();return ir(t,n,xr(e))}function fr(e){if(e&&e.length>0)return e.map(({context:{spanId:e,traceId:t,traceFlags:n,...r},attributes:i})=>({span_id:e,trace_id:t,sampled:n===1,attributes:i,...r}))}function pr(e){if(e?.length)return e.map(({context:{spanId:e,traceId:t,traceFlags:n},attributes:r})=>({span_id:e,trace_id:t,sampled:n===1,attributes:r}))}function mr(e){return typeof e==`number`?hr(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?hr(e.getTime()):D()}function hr(e){return e>9999999999?e/1e3:e}function N(e){if(br(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(yr(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{span_id:t,trace_id:n,data:r,description:a,parent_span_id:_r(e),start_timestamp:mr(i),timestamp:mr(o)||void 0,status:Sr(s),op:r[j],origin:r[M],links:fr(c)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function gr(e){if(br(e))return e.getStreamedSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(yr(e)){let{attributes:r,startTime:i,name:a,endTime:o,status:s,links:c}=e;return{name:a,span_id:t,trace_id:n,parent_span_id:_r(e),start_timestamp:mr(i),end_timestamp:mr(o),is_segment:e===kr(e),status:Cr(s),attributes:r,links:pr(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:``,end_timestamp:0,status:`ok`,is_segment:e===kr(e)}}function _r(e){return`parentSpanId`in e?e.parentSpanId:`parentSpanContext`in e?e.parentSpanContext?.spanId:void 0}function vr(e){return{...e,attributes:Xt(e.attributes),links:e.links?.map(e=>({...e,attributes:Xt(e.attributes)}))}}function yr(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function br(e){return typeof e.getSpanJSON==`function`}function xr(e){let{traceFlags:t}=e.spanContext();return t===1}function Sr(e){if(!(!e||e.code===0))return e.code===1?`ok`:e.message||`internal_error`}function Cr(e){return!e||e.code===1||e.code===0||e.message===`cancelled`?`ok`:`error`}var wr=`_sentryChildSpans`,Tr=`_sentryRootSpan`;function Er(e,t){Ue(t,Tr,e[Tr]||e),e[wr]?e[wr].add(t):Ue(e,wr,new Set([t]))}function Dr(e,t){e[wr]&&e[wr].delete(t)}function Or(e){let t=new Set;function n(e){if(!t.has(e)&&xr(e)){t.add(e);let r=e[wr]?Array.from(e[wr]):[];for(let e of r)n(e)}}return n(e),Array.from(t)}var P=kr;function kr(e){return e[Tr]||e}function F(){let e=qt(o());return e.getActiveSpan?e.getActiveSpan():Mt(O())}function Ar(){sr||=(f(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),!0)}function jr(e,t){e.updateName(t),e.setAttributes({[cn]:`custom`,[wn]:t})}var Mr=!1;function Nr(){if(Mr)return;function e(){let e=F(),t=e&&P(e);if(t){let e=`internal_error`;r&&x.log(`[Tracing] Root span: ${e} -> Global error occurred`),t.setStatus({code:2,message:e})}}e.tag=`sentry_tracingErrorCallback`,Mr=!0,pe(e),ge(e)}function Pr(e){if(typeof __SENTRY_TRACING__==`boolean`&&!__SENTRY_TRACING__)return!1;let t=e||A()?.getOptions();return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Fr(e){x.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Ir(e,t){if(!t?.length||!e.description)return!1;for(let n of t){if(Rr(n)){if(rt(e.description,n))return r&&Fr(e),!0;continue}if(!n.name&&!n.op)continue;let t=n.name?rt(e.description,n.name):!0,i=n.op?e.op&&rt(e.op,n.op):!0;if(t&&i)return r&&Fr(e),!0}return!1}function Lr(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let t of e)t.parent_span_id===r&&(t.parent_span_id=n)}function Rr(e){return typeof e==`string`||e instanceof RegExp}var zr=`production`,Br=`_frozenDsc`;function Vr(e,t){Ue(e,Br,t)}function Hr(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||`production`,release:n.release,public_key:r,trace_id:e,org_id:Zn(t)};return t.emit(`createDsc`,i),i}function Ur(e,t){let n=t.getPropagationContext();return n.dsc||Hr(n.traceId,e)}function Wr(e){let t=A();if(!t)return{};let n=P(e),r=N(n),i=r.data,a=n.spanContext().traceState,o=a?.get(`sentry.sample_rate`)??i[`sentry.sample_rate`]??i[`sentry.previous_trace_sample_rate`];function s(e){return(typeof o==`number`||typeof o==`string`)&&(e.sample_rate=`${o}`),e}let c=n[Br];if(c)return s(c);let l=a?.get(`sentry.dsc`),u=l&&Rn(l);if(u)return s(u);let d=Hr(e.spanContext().traceId,t),f=i[`sentry.source`]??i[`sentry.span.source`],p=r.description;return f!==`url`&&p&&(d.transaction=p),Pr()&&(d.sampled=String(xr(n)),d.sample_rand=a?.get(`sentry.sample_rand`)??In(n).scope?.getPropagationContext().sampleRand.toString()),s(d),t.emit(`createDsc`,d,n),d}function Gr(e){return zn(Wr(e))}var Kr=class{constructor(e={}){this._traceId=e.traceId||Ot(),this._spanId=e.spanId||kt(),this.dropReason=e.dropReason}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}};function qr(e){return Ue(e,`_streamed`,!0),e}function Jr(e){return!!e&&typeof e==`function`&&`_streamed`in e&&!!e._streamed}function Yr(e,t=100,n=1/0){try{return Zr(``,e,t,n)}catch(e){return{ERROR:`**non-serializable** (${e})`}}}function Xr(e,t=3,n=100*1024){let r=Yr(e,t);return ti(r)>n?Xr(e,t-1,n):r}function Zr(e,t,n=1/0,r=1/0,i=ni()){let[a,o]=i;if(t==null||[`boolean`,`string`].includes(typeof t)||typeof t==`number`&&Number.isFinite(t))return t;let s=Qr(e,t);if(!s.startsWith(`[object `))return s;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__==`number`?t.__sentry_override_normalization_depth__:n;if(c===0)return s.replace(`object `,``);if(a(t))return`[Circular ~]`;let l=t;if(l&&typeof l.toJSON==`function`)try{return Zr(``,l.toJSON(),c-1,r,i)}catch{}let u=Array.isArray(t)?[]:{},d=0,f=Ke(t);for(let e in f){if(!Object.prototype.hasOwnProperty.call(f,e))continue;if(d>=r){u[e]=`[MaxProperties ~]`;break}let t=f[e];u[e]=Zr(e,t,c-1,r,i),d++}return o(t),u}function Qr(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(Pe(t))return oe(t);if(Me(t))return`[SyntheticEvent]`;if(typeof t==`number`&&!Number.isFinite(t))return`[${t}]`;if(typeof t==`function`)return`[Function: ${ie(t)}]`;if(typeof t==`symbol`)return`[${String(t)}]`;if(typeof t==`bigint`)return`[BigInt: ${String(t)}]`;let n=$r(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(e){return`**non-serializable** (${e})`}}function $r(e){let t=Object.getPrototypeOf(e);return t?.constructor?t.constructor.name:`null prototype`}function ei(e){return~-encodeURI(e).split(/%..|./).length}function ti(e){return ei(JSON.stringify(e))}function ni(){let e=new WeakSet;function t(t){return e.has(t)?!0:(e.add(t),!1)}function n(t){e.delete(t)}return[t,n]}function ri(e,t=[]){return[e,t]}function ii(e,t){let[n,r]=e;return[n,[...r,t]]}function ai(e,t){let n=e[1];for(let e of n){let n=e[0].type;if(t(e,n))return!0}return!1}function oi(e,t){return ai(e,(e,n)=>t.includes(n))}function si(e){let t=s(i);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function ci(e){let t=s(i);return t.decodePolyfill?t.decodePolyfill(e):new TextDecoder().decode(e)}function li(e){let[t,n]=e,r=JSON.stringify(t);function i(e){typeof r==`string`?r=typeof e==`string`?r+e:[si(r),e]:r.push(typeof e==`string`?si(e):e)}for(let e of n){let[t,n]=e;if(i(`\n${JSON.stringify(t)}\n`),typeof n==`string`||n instanceof Uint8Array)i(n);else{let e;try{e=JSON.stringify(n)}catch{e=JSON.stringify(Yr(n))}i(e)}}return typeof r==`string`?r:ui(r)}function ui(e){let t=e.reduce((e,t)=>e+t.length,0),n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}function di(e){let t=typeof e==`string`?si(e):e;function n(e){let n=t.subarray(0,e);return t=t.subarray(e+1),n}function r(){let e=t.indexOf(10);return e<0&&(e=t.length),JSON.parse(ci(n(e)))}let i=r(),a=[];for(;t.length;){let e=r(),t=typeof e.length==`number`?e.length:void 0;a.push([e,t?n(t):r()])}return[i,a]}function fi(e){return[{type:`span`},e]}function pi(e){let t=typeof e.data==`string`?si(e.data):e.data;return[{type:`attachment`,length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var mi={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 hi(e){return e in mi}function gi(e){return hi(e)?mi[e]:e}function _i(e){if(!e?.sdk)return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function vi(e,t,n,r){let i=e.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Kn(r)},...i&&{trace:i}}}function yi(e,t){if(!t)return e;let 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 bi(e,t,n,r){let i=_i(n);return ri({sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Kn(t)}},[`aggregates`in e?[{type:`sessions`},e]:[{type:`session`},e.toJSON()]])}function xi(e,t,n,r){let i=_i(n),a=e.type&&e.type!==`replay_event`?e.type:`event`;yi(e,n?.sdk);let o=vi(e,i,r,t);return delete e.sdkProcessingMetadata,ri(o,[[{type:a},e]])}function Si(e,t){function n(e){return!!e.trace_id&&!!e.public_key}let r=Wr(e[0]),i=t?.getDsn(),a=t?.getOptions().tunnel,o={sent_at:new Date().toISOString(),...n(r)&&{trace:r},...!!a&&i&&{dsn:Kn(i)}},{beforeSendSpan:s,ignoreSpans:c}=t?.getOptions()||{},l=c?.length?e.filter(e=>!Ir(N(e),c)):e,u=e.length-l.length;u&&t?.recordDroppedEvent(`before_send`,`span`,u);let d=s?e=>{let t=N(e);return(Jr(s)?t:s(t))||(Ar(),t)}:N,f=[];for(let e of l){let t=d(e);t&&f.push(fi(t))}return ri(o,f)}function Ci(e){if(!r)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`,parent_span_id:i}=N(e),{spanId:a}=e.spanContext(),o=xr(e),s=P(e),c=s===e,l=`[Tracing] Starting ${o?`sampled`:`unsampled`} ${c?`root `:``}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${a}`];if(i&&u.push(`parent ID: ${i}`),!c){let{op:e,description:t}=N(s);u.push(`root ID: ${s.spanContext().spanId}`),e&&u.push(`root op: ${e}`),t&&u.push(`root description: ${t}`)}x.log(`${l}
|
|
3
|
+
${u.join(`
|
|
4
|
+
`)}`)}function wi(e){if(!r)return;let{description:t=`< unknown name >`,op:n=`< unknown op >`}=N(e),{spanId:i}=e.spanContext(),a=`[Tracing] Finishing "${n}" ${P(e)===e?`root `:``}span "${t}" with ID ${i}`;x.log(a)}function Ti(e,t,n,i=F()){let a=i&&P(i);a&&(r&&x.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),a.addEvent(e,{[pn]:t,[fn]:n}))}function Ei(e){if(!e||e.length===0)return;let t={};return e.forEach(e=>{let n=e.attributes||{},r=n[fn],i=n[pn];typeof r==`string`&&typeof i==`number`&&(t[e.name]={value:i,unit:r})}),t}function Di(e){return e.getOptions().traceLifecycle===`stream`}var Oi=1e3,ki=class{constructor(e={}){this._traceId=e.traceId||Ot(),this._spanId=e.spanId||kt(),this._startTime=e.startTimestamp||D(),this._links=e.links,this._attributes={},this.setAttributes({[M]:`manual`,[j]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),`sampled`in e&&(this._sampled=e.sampled),e.endTimestamp&&(this._endTime=e.endTimestamp),this._events=[],this._isStandaloneSpan=e.isStandalone,this._endTime&&this._onSpanEnded()}addLink(e){return this._links?this._links.push(e):this._links=[e],this}addLinks(e){return this._links?this._links.push(...e):this._links=e,this}recordException(e,t){}spanContext(){let{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:+!!n}}setAttribute(e,t){return t===void 0?delete this._attributes[e]:this._attributes[e]=t,this}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._startTime=mr(e)}setStatus(e){return this._status=e,this}updateName(e){return this._name=e,this.setAttribute(cn,`custom`),this}end(e){this._endTime||(this._endTime=mr(e),wi(this),this._onSpanEnded())}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[j],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:Sr(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[M],profile_id:this._attributes[Tn],exclusive_time:this._attributes[En],measurements:Ei(this._events),is_segment:this._isStandaloneSpan&&P(this)===this||void 0,segment_id:this._isStandaloneSpan?P(this).spanContext().spanId:void 0,links:fr(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===P(this),status:Cr(this._status),attributes:this._attributes,links:pr(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){r&&x.log(`[Tracing] Adding an event to span:`,e);let i=Ai(t)?t:n||D(),a=Ai(t)?{}:t||{},o={name:e,time:mr(i),attributes:a};return this._events.push(o),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_onSpanEnded(){let e=A();if(e&&(e.emit(`spanEnd`,this),this._isStandaloneSpan||e.emit(`afterSpanEnd`,this)),!(this._isStandaloneSpan||this===P(this)))return;if(this._isStandaloneSpan){this._sampled?Ni(Si([this],e)):(r&&x.log(`[Tracing] Discarding standalone span because its trace was not chosen to be sampled.`),e&&e.recordDroppedEvent(`sample_rate`,`span`));return}else if(e&&Di(e)){e.emit(`afterSegmentSpanEnd`,this);return}let t=this._convertSpanToTransaction();t&&(In(this).scope||O()).captureEvent(t)}_convertSpanToTransaction(){if(!ji(N(this)))return;this._name||=(r&&x.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),`<unlabeled transaction>`);let{scope:e,isolationScope:t}=In(this),n=e?.getScopeData().sdkProcessingMetadata?.normalizedRequest;if(this._sampled!==!0)return;let i=Or(this).filter(e=>e!==this&&!Mi(e)).map(e=>N(e)).filter(ji),a=this._attributes[cn];delete this._attributes[wn],i.forEach(e=>{delete e.data[wn]});let o={contexts:{trace:cr(this)},spans:i.length>Oi?i.sort((e,t)=>e.start_timestamp-t.start_timestamp).slice(0,Oi):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:`transaction`,sdkProcessingMetadata:{capturedSpanScope:e,capturedSpanIsolationScope:t,dynamicSamplingContext:Wr(this)},request:n,...a&&{transaction_info:{source:a}}},s=Ei(this._events);return s&&Object.keys(s).length&&(r&&x.log(`[Measurements] Adding measurements to transaction event`,JSON.stringify(s,void 0,2)),o.measurements=s),o}};function Ai(e){return e&&typeof e==`number`||e instanceof Date||Array.isArray(e)}function ji(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function Mi(e){return e instanceof ki&&e.isStandaloneSpan()}function Ni(e){let t=A();if(!t)return;let n=e[1];if(!n||n.length===0){t.recordDroppedEvent(`before_send`,`span`);return}t.sendEnvelope(e)}function Pi(e,t,n=()=>{},r=()=>{}){let i;try{i=e()}catch(e){throw t(e),n(),e}return Fi(i,t,n,r)}function Fi(e,t,n,r){return je(e)?zt(e,e=>{n(),r(e)},e=>{t(e),n()}):(n(),r(e),e)}function Ii(e,t,n){if(!Pr(e))return[!1];let i,a;typeof e.tracesSampler==`function`?(a=e.tracesSampler({...t,inheritOrSampleWith:e=>typeof t.parentSampleRate==`number`?t.parentSampleRate:typeof t.parentSampled==`boolean`?Number(t.parentSampled):e}),i=!0):t.parentSampled===void 0?e.tracesSampleRate!==void 0&&(a=e.tracesSampleRate,i=!0):a=t.parentSampled;let o=$n(a);if(o===void 0)return r&&x.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(a)} of type ${JSON.stringify(typeof a)}.`),[!1];if(!o)return r&&x.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,i];let s=n<o;return s||r&&x.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(a)})`),[s,o,i]}var Li=`__SENTRY_SUPPRESS_TRACING__`;function Ri(e,t){let n=qi();if(n.startSpan)return n.startSpan(e,t);let r=Ki(e),{forceTransaction:i,parentSpan:a,scope:o}=e,s=o?.clone();return an(s,()=>Zi(a)(()=>{let n=O(),o=Xi(n,a),s=A(),c=e.onlyIfParent&&!o,l=c?new Kr:Gi({parentSpan:o,spanArguments:r,forceTransaction:i,scope:n});return c&&s?.recordDroppedEvent(`no_parent_span`,`span`),(!$i(l)||!o)&&jt(n,l),Pi(()=>t(l),()=>{let{status:e}=N(l);l.isRecording()&&(!e||e===`ok`)&&l.setStatus({code:2,message:`internal_error`})},()=>{l.end()})}))}function zi(e,t){let n=qi();if(n.startSpanManual)return n.startSpanManual(e,t);let r=Ki(e),{forceTransaction:i,parentSpan:a,scope:o}=e,s=o?.clone();return an(s,()=>Zi(a)(()=>{let n=O(),o=Xi(n,a),s=e.onlyIfParent&&!o,c=s?new Kr:Gi({parentSpan:o,spanArguments:r,forceTransaction:i,scope:n});return s&&A()?.recordDroppedEvent(`no_parent_span`,`span`),(!$i(c)||!o)&&jt(n,c),Pi(()=>t(c,()=>c.end()),()=>{let{status:e}=N(c);c.isRecording()&&(!e||e===`ok`)&&c.setStatus({code:2,message:`internal_error`})})}))}function Bi(e){let t=qi();if(t.startInactiveSpan)return t.startInactiveSpan(e);let n=Ki(e),{forceTransaction:r,parentSpan:i}=e;return(e.scope?t=>an(e.scope,t):i===void 0?e=>e():e=>Hi(i,e))(()=>{let t=O(),a=Xi(t,i),o=A();return e.onlyIfParent&&!a?(o?.recordDroppedEvent(`no_parent_span`,`span`),new Kr):Gi({parentSpan:a,spanArguments:n,forceTransaction:r,scope:t})})}var Vi=(e,t)=>{let n=qt(o());if(n.continueTrace)return n.continueTrace(e,t);let{sentryTrace:r,baggage:i}=e,a=A(),s=Rn(i);return a&&!or(a,s?.org_id)?Wi(t):an(e=>{let n=nr(r,i);return e.setPropagationContext(n),jt(e,void 0),t()})};function Hi(e,t){let n=qi();return n.withActiveSpan?n.withActiveSpan(e,t):an(n=>(jt(n,e||void 0),t(n)))}function Ui(e){let t=qi();return t.suppressTracing?t.suppressTracing(e):an(t=>{t.setSDKProcessingMetadata({[Li]:!0});let n=e();return t.setSDKProcessingMetadata({[Li]:void 0}),n})}function Wi(e){let t=qi();return t.startNewTrace?t.startNewTrace(e):an(t=>(t.setPropagationContext({traceId:Ot(),sampleRand:Qe()}),r&&x.log(`Starting a new trace with id ${t.getPropagationContext().traceId}`),Hi(null,e)))}function Gi({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){if(!Pr()){let r=new Kr;return(n||!e)&&Vr(r,{sampled:`false`,sample_rate:`0`,transaction:t.name,...Wr(r)}),r}let i=A();if(Qi(i,t))return ea(r)||i?.recordDroppedEvent(`ignored`,`span`),new Kr({dropReason:`ignored`,traceId:e?.spanContext().traceId??r.getPropagationContext().traceId});let a=k(),o;if(e&&!n)o=Yi(e,r,t),Er(e,o);else if(e){let n=Wr(e),{traceId:i,spanId:a}=e.spanContext(),s=xr(e);o=Ji({traceId:i,parentSpanId:a,...t},r,s),Vr(o,n)}else{let{traceId:e,dsc:n,parentSpanId:i,sampled:s}={...a.getPropagationContext(),...r.getPropagationContext()};o=Ji({traceId:e,parentSpanId:i,...t},r,s),n&&Vr(o,n)}return Ci(o),Fn(o,r,a),o}function Ki(e){let t={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){let n={...t};return n.startTimestamp=mr(e.startTime),delete n.startTime,n}return t}function qi(){return qt(o())}function Ji(e,t,n){let i=A(),a=i?.getOptions()||{},{name:o=``}=e,s={spanAttributes:{...e.attributes},spanName:o,parentSampled:n};i?.emit(`beforeSampling`,s,{decision:!1});let c=s.parentSampled??n,l=s.spanAttributes,u=t.getPropagationContext(),d=ea(t),[f,p,m]=d?[!1]:Ii(a,{name:o,parentSampled:c,attributes:l,parentSampleRate:$n(u.dsc?.sample_rate)},u.sampleRand),h=new ki({...e,attributes:{[cn]:`custom`,[ln]:p!==void 0&&m?p:void 0,...l},sampled:f});return!f&&i&&!d&&(r&&x.log(`[Tracing] Discarding root span because its trace was not chosen to be sampled.`),i.recordDroppedEvent(`sample_rate`,Di(i)?`span`:`transaction`)),i&&i.emit(`spanStart`,h),h}function Yi(e,t,n){let{spanId:r,traceId:i}=e.spanContext(),a=ea(t),o=a?!1:xr(e),s=o?new ki({...n,parentSpanId:r,traceId:i,sampled:o}):new Kr({traceId:i});Er(e,s);let c=A();return c?(Di(c)&&s instanceof Kr&&(e instanceof Kr&&e.dropReason?(s.dropReason=e.dropReason,c.recordDroppedEvent(e.dropReason,`span`)):a||(s.dropReason=`sample_rate`,c.recordDroppedEvent(`sample_rate`,`span`))),c.emit(`spanStart`,s),n.endTimestamp&&(c.emit(`spanEnd`,s),c.emit(`afterSpanEnd`,s)),s):s}function Xi(e,t){if(t)return t;if(t===null)return;let n=Mt(e);if(!n)return;let r=A();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?P(n):n}function Zi(e){return e===void 0?e=>e():t=>Hi(e,t)}function Qi(e,t){let n=e?.getOptions().ignoreSpans;return!e||!Di(e)||!n?.length?!1:Ir({description:t.name||``,op:t.attributes?.[`sentry.op`]||t.op},n)}function $i(e){return e instanceof Kr&&e.dropReason===`ignored`}function ea(e){return e.getScopeData().sdkProcessingMetadata[Li]===!0}var ta={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},na=`heartbeatFailed`,ra=`idleTimeout`,ia=`finalTimeout`,aa=`externalFinish`;function oa(e,t={}){let n=new Map,i=!1,a,o=aa,s=!t.disableAutoFinish,c=[],{idleTimeout:l=ta.idleTimeout,finalTimeout:u=ta.finalTimeout,childSpanTimeout:d=ta.childSpanTimeout,beforeSpanEnd:f,trimIdleSpanEndTimestamp:p=!0}=t,m=A();if(!m||!Pr()){let e=new Kr;return Vr(e,{sample_rate:`0`,sampled:`false`,...Wr(e)}),e}let h=O(),g=F(),_=sa(e);_.end=new Proxy(_.end,{apply(e,t,n){if(f&&f(_),t instanceof Kr)return;let[r,...i]=n,a=mr(r||D()),o=Or(_).filter(e=>e!==_),s=N(_);if(!o.length||!p)return w(a),Reflect.apply(e,t,[a,...i]);let c=m.getOptions().ignoreSpans,l=o?.reduce((e,t)=>{let n=N(t);return!n.timestamp||c&&Ir(n,c)?e:e?Math.max(e,n.timestamp):n.timestamp},void 0),d=s.start_timestamp,h=Math.min(d?d+u/1e3:1/0,Math.max(d||-1/0,Math.min(a,l||1/0)));return w(h),Reflect.apply(e,t,[h,...i])}});function v(){a&&=(clearTimeout(a),void 0)}function y(e){v(),a=setTimeout(()=>{!i&&n.size===0&&s&&(o=ra,_.end(e))},l)}function b(e){a=setTimeout(()=>{!i&&s&&(o=na,_.end(e))},d)}function S(e){v(),n.set(e,!0),b(D()+d/1e3)}function C(e){n.has(e)&&n.delete(e),n.size===0&&y(D()+l/1e3)}function w(e){i=!0,n.clear(),c.forEach(e=>e()),jt(h,g);let t=N(_),{start_timestamp:a}=t;if(!a)return;t.data[`sentry.idle_span_finish_reason`]||_.setAttribute(dn,o);let s=t.status;(!s||s===`unknown`)&&_.setStatus({code:1}),x.log(`[Tracing] Idle span "${t.op}" finished`);let d=Or(_).filter(e=>e!==_),f=0;d.forEach(t=>{t.isRecording()&&(t.setStatus({code:2,message:`cancelled`}),t.end(e),r&&x.log(`[Tracing] Cancelling span since span ended early`,JSON.stringify(t,void 0,2)));let{timestamp:n=0,start_timestamp:i=0}=N(t),a=i<=e,o=(u+l)/1e3,s=n-i<=o;if(r){let e=JSON.stringify(t,void 0,2);a?s||x.log(`[Tracing] Discarding span since it finished after idle span final timeout`,e):x.log(`[Tracing] Discarding span since it happened after idle span was finished`,e)}(!s||!a)&&(Dr(_,t),f++)}),f>0&&_.setAttribute(`sentry.idle_span_discarded_spans`,f)}return c.push(m.on(`spanStart`,e=>{i||e===_||N(e).timestamp||e instanceof ki&&e.isStandaloneSpan()||Or(_).includes(e)&&S(e.spanContext().spanId)})),c.push(m.on(`spanEnd`,e=>{i||C(e.spanContext().spanId)})),c.push(m.on(`idleSpanEnableAutoFinish`,e=>{e===_&&(s=!0,y(),n.size&&b())})),t.disableAutoFinish||y(),setTimeout(()=>{i||(_.setStatus({code:2,message:`deadline_exceeded`}),o=ia,_.end())},u),_}function sa(e){let t=Bi(e);return jt(O(),t),r&&x.log(`[Tracing] Started span is an idle span`),t}function ca(e,t){let{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;fa(e,t),r&&ha(e,r),ga(e,n),pa(e,i),ma(e,a)}function la(e,t){let{extra:n,tags:r,attributes:i,user:a,contexts:o,level:s,sdkProcessingMetadata:c,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:m,span:h}=t;ua(e,`extra`,n),ua(e,`tags`,r),ua(e,`attributes`,i),ua(e,`user`,a),ua(e,`contexts`,o),e.sdkProcessingMetadata=Dt(e.sdkProcessingMetadata,c,2),s&&(e.level=s),m&&(e.transactionName=m),h&&(e.span=h),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function ua(e,t,n){e[t]=Dt(e[t],n,1)}function da(e,t){let n=rn().getScopeData();return e&&la(n,e.getScopeData()),t&&la(n,t.getScopeData()),n}function fa(e,t){let{extra:n,tags:r,user:i,contexts:a,level:o,transactionName:s}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(a).length&&(e.contexts={...a,...e.contexts}),o&&(e.level=o),s&&e.type!==`transaction`&&(e.transaction=s)}function pa(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function ma(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function ha(e,t){e.contexts={trace:lr(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Wr(t),...e.sdkProcessingMetadata};let n=N(P(t)).description;n&&!e.transaction&&e.type===`transaction`&&(e.transaction=n)}function ga(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 _a(e,t){let n=gr(e),r=kr(e),i=gr(r),{isolationScope:a,scope:o}=In(e);va(n,i,t,da(a,o)),n.is_segment&&t.emit(`processSegmentSpan`,n),t.emit(`processSpan`,n);let{beforeSendSpan:s}=t.getOptions(),c=s&&Jr(s)?ya(n,s):n,l=c.attributes?.[cn];return l&&ba(c,{"sentry.span.source":l}),{...vr(c),_segmentSpan:r}}function va(e,t,n,r){let i=n.getSdkMetadata(),{release:a,environment:o,sendDefaultPii:s}=n.getOptions();ba(e,{[mn]:a,[hn]:o,[gn]:t.name,[_n]:t.span_id,[vn]:i?.sdk?.name,[yn]:i?.sdk?.version,...s?{[bn]:r.user?.id,[xn]:r.user?.email,[Sn]:r.user?.ip_address,[Cn]:r.user?.username}:{},...r.attributes})}function ya(e,t){return t(e)||(Ar(),e)}function ba(e,t){let n=e.attributes??={};Object.entries(t).forEach(([e,t])=>{t!=null&&!(e in n)&&(n[e]=t)})}var xa=0,Sa=1,Ca=2;function wa(e){return new Ea(t=>{t(e)})}function Ta(e){return new Ea((t,n)=>{n(e)})}var Ea=class e{constructor(e){this._state=xa,this._handlers=[],this._runExecutor(e)}then(t,n){return new e((e,r)=>{this._handlers.push([!1,n=>{if(!t)e(n);else try{e(t(n))}catch(e){r(e)}},t=>{if(!n)r(t);else try{e(n(t))}catch(e){r(e)}}]),this._executeHandlers()})}catch(e){return this.then(e=>e,e)}finally(t){return new e((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}_executeHandlers(){if(this._state===xa)return;let e=this._handlers.slice();this._handlers=[],e.forEach(e=>{e[0]||=(this._state===Sa&&e[1](this._value),this._state===Ca&&e[2](this._value),!0)})}_runExecutor(e){let t=(e,t)=>{if(this._state===xa){if(je(t)){t.then(n,r);return}this._state=e,this._value=t,this._executeHandlers()}},n=e=>{t(Sa,e)},r=e=>{t(Ca,e)};try{e(n,r)}catch(e){r(e)}}};function Da(e,t,n,r=0){try{let i=Oa(t,n,e,r);return je(i)?i:wa(i)}catch(e){return Ta(e)}}function Oa(e,t,n,i){let a=n[i];if(!e||!a)return e;let o=a({...e},t);return r&&o===null&&x.log(`Event processor "${a.id||`?`}" dropped event`),je(o)?o.then(e=>Oa(e,t,n,i+1)):Oa(o,t,n,i+1)}var ka,Aa,ja,Ma;function Na(e){let t=i._sentryDebugIds,n=i._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],a=n?Object.keys(n):[];if(Ma&&r.length===Aa&&a.length===ja)return Ma;Aa=r.length,ja=a.length,Ma={},ka||={};let o=(t,n)=>{for(let r of t){let t=n[r],i=ka?.[r];if(i&&Ma&&t)Ma[i[0]]=t,ka&&(ka[r]=[i[0],t]);else if(t){let n=e(r);for(let e=n.length-1;e>=0;e--){let i=n[e]?.filename;if(i&&Ma&&ka){Ma[i]=t,ka[r]=[i,t];break}}}}};return t&&o(r,t),n&&o(a,n),Ma}function Pa(e,t){let n=Na(e);if(!n)return[];let r=[];for(let e of t){let t=se(e);t&&n[t]&&r.push({type:`sourcemap`,code_file:e,debug_id:n[t]})}return r}function Fa(e,t,n,r,i,a){let{normalizeDepth:o=3,normalizeMaxBreadth:s=1e3}=e,c={...t,event_id:t.event_id||n.event_id||ct(),timestamp:t.timestamp||_t()},l=n.integrations||e.integrations.map(e=>e.name);Ia(c,e),za(c,l),i&&i.emit(`applyFrameMetadata`,t),t.type===void 0&&La(c,e.stackParser);let u=Va(r,n.captureContext);n.mechanism&&ft(c,n.mechanism);let d=i?i.getEventProcessors():[],f=da(a,u),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),ca(c,f);let m=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?wa(c):Da(m,c,n)).then(e=>(e&&Ra(e),typeof o==`number`&&o>0?Ba(e,o,s):e))}function Ia(e,t){let{environment:n,release:r,dist:i,maxValueLength:a}=t;e.environment=e.environment||n||`production`,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);let o=e.request;o?.url&&a&&(o.url=et(o.url,a)),a&&e.exception?.values?.forEach(e=>{e.value&&=et(e.value,a)})}function La(e,t){let n=Na(t);e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.filename&&(e.debug_id=n[e.filename])})})}function Ra(e){let t={};if(e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];let n=e.debug_meta.images;Object.entries(t).forEach(([e,t])=>{n.push({type:`sourcemap`,code_file:e,debug_id:t})})}function za(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Ba(e,t,n){if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(e=>({...e,...e.data&&{data:Yr(e.data,t,n)}}))},...e.user&&{user:Yr(e.user,t,n)},...e.contexts&&{contexts:Yr(e.contexts,t,n)},...e.extra&&{extra:Yr(e.extra,t,n)}};return e.contexts?.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Yr(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(e=>({...e,...e.data&&{data:Yr(e.data,t,n)}}))),e.contexts?.flags&&r.contexts&&(r.contexts.flags=Yr(e.contexts.flags,3,n)),r}function Va(e,t){if(!t)return e;let n=e?e.clone():new Pt;return n.update(t),n}function Ha(e){if(e)return Ua(e)||Ga(e)?{captureContext:e}:e}function Ua(e){return e instanceof Pt||typeof e==`function`}var Wa=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function Ga(e){return Object.keys(e).some(e=>Wa.includes(e))}function I(e,t){return O().captureException(e,Ha(t))}function Ka(e,t){let n=typeof t==`string`?t:void 0,r=typeof t==`string`?void 0:{captureContext:t};return O().captureMessage(e,n,r)}function qa(e,t){return O().captureEvent(e,t)}function Ja(e,t){k().setContext(e,t)}function Ya(e){k().setExtras(e)}function Xa(e,t){k().setExtra(e,t)}function Za(e){k().setTags(e)}function Qa(e,t){k().setTag(e,t)}function $a(e){k().setUser(e)}function eo(e){k().setConversationId(e)}function to(){return k().lastEventId()}async function no(e){let t=A();return t?t.flush(e):(r&&x.warn(`Cannot flush events. No client defined.`),Promise.resolve(!1))}async function ro(e){let t=A();return t?t.close(e):(r&&x.warn(`Cannot flush events and disable SDK. No client defined.`),Promise.resolve(!1))}function io(){return!!A()}function ao(){let e=A();return e?.getOptions().enabled!==!1&&!!e?.getTransport()}function oo(e){k().addEventProcessor(e)}function so(e){let t=k(),{user:n}=da(t,O()),{userAgent:r}=i.navigator||{},a=Ct({user:n,...r&&{userAgent:r},...e}),o=t.getSession();return o?.status===`ok`&&wt(o,{status:`exited`}),co(),t.setSession(a),a}function co(){let e=k(),t=O().getSession()||e.getSession();t&&Tt(t),lo(),e.setSession()}function lo(){let e=k(),t=A(),n=e.getSession();n&&t&&t.captureSession(n)}function uo(e=!1){if(e){co();return}lo()}function fo(e){let t=e.protocol?`${e.protocol}:`:``,n=e.port?`:${e.port}`:``;return`${t}//${e.host}${n}${e.path?`/${e.path}`:``}/api/`}function po(e){return`${fo(e)}${e.projectId}/envelope/`}function mo(e,t){let n={sentry_version:`7`};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function ho(e,t,n){return t||`${po(e)}?${mo(e,n)}`}function go(e,t){let n=Qn(e);if(!n)return``;let r=`${fo(n)}embed/error-page/`,i=`dsn=${Kn(n)}`;for(let e in t)if(e!==`dsn`&&e!==`onClose`)if(e===`user`){let e=t.user;if(!e)continue;e.name&&(i+=`&name=${encodeURIComponent(e.name)}`),e.email&&(i+=`&email=${encodeURIComponent(e.email)}`)}else i+=`&${encodeURIComponent(e)}=${encodeURIComponent(t[e])}`;return`${r}?${i}`}var _o=[];function vo(e){let t={};return e.forEach(e=>{let{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)}),Object.values(t)}function yo(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(e=>{e.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n==`function`){let e=n(t);r=Array.isArray(e)?e:[e]}else r=t;return vo(r)}function bo(e,t){let n={};return t.forEach(t=>{t?.beforeSetup&&t.beforeSetup(e)}),t.forEach(t=>{t&&So(e,t,n)}),n}function xo(e,t){for(let n of t)n?.afterAllSetup&&n.afterAllSetup(e)}function So(e,t,n){if(n[t.name]){r&&x.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!_o.includes(t.name)&&typeof t.setupOnce==`function`&&(t.setupOnce(),_o.push(t.name)),t.setup&&typeof t.setup==`function`&&t.setup(e),typeof t.preprocessEvent==`function`){let n=t.preprocessEvent.bind(t);e.on(`preprocessEvent`,(t,r)=>n(t,r,e))}if(typeof t.processEvent==`function`){let n=t.processEvent.bind(t),r=Object.assign((t,r)=>n(t,r,e),{id:t.name});e.addEventProcessor(r)}[`processSpan`,`processSegmentSpan`].forEach(n=>{let r=t[n];typeof r==`function`&&e.on(n,n=>r.call(t,n,e))}),r&&x.log(`Integration installed: ${t.name}`)}function Co(e){let t=A();if(!t){r&&x.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}function L(e){return e}var wo=`sentry.timestamp.sequence`,To=0,Eo;function Do(e){let t=Math.floor(e*1e3);Eo!==void 0&&t!==Eo&&(To=0);let n=To;return To++,Eo=t,{key:wo,value:{value:n,type:`integer`}}}function Oo(e,t){return t?an(t,()=>{let n=F(),r=n?lr(n):sn(t);return[n?Wr(n):Ur(e,t),r]}):[void 0,void 0]}var ko={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function Ao(e){return[{type:`log`,item_count:e.length,content_type:`application/vnd.sentry.items.log+json`},{items:e}]}function jo(e,t,n,r){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=Kn(r)),ri(i,[Ao(e)])}var Mo=100;function No(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function Po(e,t){let n=Ro(),r=Lo(e);r===void 0?n.set(e,[t]):r.length>=Mo?(Io(e,r),n.set(e,[t])):n.set(e,[...r,t])}function Fo(e,t=O(),n=Po){let i=t?.getClient()??A();if(!i){r&&x.warn(`No client available to capture log.`);return}let{release:a,environment:o,enableLogs:s=!1,beforeSendLog:c}=i.getOptions();if(!s){r&&x.warn(`logging option not enabled, log will not be captured.`);return}let[,l]=Oo(i,t),u={...e.attributes},{user:{id:d,email:p,username:m},attributes:h={}}=da(k(),t);No(u,`user.id`,d,!1),No(u,`user.email`,p,!1),No(u,`user.name`,m,!1),No(u,`sentry.release`,a),No(u,`sentry.environment`,o);let{name:g,version:_}=i.getSdkMetadata()?.sdk??{};No(u,`sentry.sdk.name`,g),No(u,`sentry.sdk.version`,_);let v=i.getIntegrationByName(`Replay`),y=v?.getReplayId(!0);No(u,`sentry.replay_id`,y),y&&v?.getRecordingMode()===`buffer`&&No(u,`sentry._internal.replay_is_buffering`,!0);let b=e.message;if(Te(b)){let{__sentry_template_string__:e,__sentry_template_values__:t=[]}=b;t?.length&&(u[`sentry.message.template`]=e),t.forEach((e,t)=>{u[`sentry.message.parameter.${t}`]=e})}No(u,`sentry.trace.parent_span_id`,Mt(t)?.spanContext().spanId);let S={...e,attributes:u};i.emit(`beforeCaptureLog`,S);let C=c?f(()=>c(S)):S;if(!C){i.recordDroppedEvent(`before_send`,`log_item`,1),r&&x.warn(`beforeSendLog returned null, log will not be captured.`);return}let{level:w,message:T,attributes:ee={},severityNumber:te}=C,ne=D(),re=Do(ne);n(i,{timestamp:ne,level:w,body:T,trace_id:l?.trace_id,severity_number:te??ko[w],attributes:{...Xt(h),...Xt(ee,!0),[re.key]:re.value}}),i.emit(`afterCaptureLog`,C)}function Io(e,t){let n=t??Lo(e)??[];if(n.length===0)return;let r=e.getOptions(),i=jo(n,r._metadata,r.tunnel,e.getDsn());Ro().set(e,[]),e.emit(`flushLogs`),e.sendEnvelope(i)}function Lo(e){return Ro().get(e)}function Ro(){return c(`clientToLogBufferMap`,()=>new WeakMap)}function zo(e){return[{type:`trace_metric`,item_count:e.length,content_type:`application/vnd.sentry.items.trace-metric+json`},{items:e}]}function Bo(e,t,n,r){let i={};return t?.sdk&&(i.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(i.dsn=Kn(r)),ri(i,[zo(e)])}var Vo=1e3;function Ho(e,t,n,r=!0){n&&(r||!(t in e))&&(e[t]=n)}function Uo(e,t){let n=Yo(),r=Jo(e);r===void 0?n.set(e,[t]):r.length>=Vo?(qo(e,r),n.set(e,[t])):n.set(e,[...r,t])}function Wo(e,t,n){let{release:r,environment:i}=t.getOptions(),a={...e.attributes};Ho(a,`user.id`,n.id,!1),Ho(a,`user.email`,n.email,!1),Ho(a,`user.name`,n.username,!1),Ho(a,`sentry.release`,r),Ho(a,`sentry.environment`,i);let{name:o,version:s}=t.getSdkMetadata()?.sdk??{};Ho(a,`sentry.sdk.name`,o),Ho(a,`sentry.sdk.version`,s);let c=t.getIntegrationByName(`Replay`),l=c?.getReplayId(!0);return Ho(a,`sentry.replay_id`,l),l&&c?.getRecordingMode()===`buffer`&&Ho(a,`sentry._internal.replay_is_buffering`,!0),{...e,attributes:a}}function Go(e,t,n,r){let[,i]=Oo(t,n),a=Mt(n),o=a?a.spanContext().traceId:i?.trace_id,s=a?a.spanContext().spanId:void 0,c=D(),l=Do(c);return{timestamp:c,trace_id:o??``,span_id:s,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...Xt(r),...Xt(e.attributes,`skip-undefined`),[l.key]:l.value}}}function Ko(e,t){let n=t?.scope??O(),i=t?.captureSerializedMetric??Uo,a=n?.getClient()??A();if(!a){r&&x.warn(`No client available to capture metric.`);return}let{_experiments:o,enableMetrics:s,beforeSendMetric:c}=a.getOptions();if(!(s??o?.enableMetrics??!0)){r&&x.warn(`metrics option not enabled, metric will not be captured.`);return}let{user:l,attributes:u}=da(k(),n),d=Wo(e,a,l);a.emit(`processMetric`,d);let f=c||o?.beforeSendMetric,p=f?f(d):d;if(!p){r&&x.log("`beforeSendMetric` returned `null`, will not send metric.");return}let m=Go(p,a,n,u);r&&x.log(`[Metric]`,m),i(a,m),a.emit(`afterCaptureMetric`,p)}function qo(e,t){let n=t??Jo(e)??[];if(n.length===0)return;let r=e.getOptions(),i=Bo(n,r._metadata,r.tunnel,e.getDsn());Yo().set(e,[]),e.emit(`flushMetrics`),e.sendEnvelope(i)}function Jo(e){return Yo().get(e)}function Yo(){return c(`clientToMetricBufferMap`,()=>new WeakMap)}function Xo(e){return typeof e==`object`&&typeof e.unref==`function`&&e.unref(),e}var Zo=Symbol.for(`SentryBufferFullError`);function Qo(e=100){let t=new Set;function n(){return t.size<e}function r(e){t.delete(e)}function i(e){if(!n())return Ta(Zo);let i=e();return t.add(i),i.then(()=>r(i),()=>r(i)),i}function a(e){if(!t.size)return wa(!0);let n=Promise.allSettled(Array.from(t)).then(()=>!0);if(!e)return n;let r=[n,new Promise(t=>Xo(setTimeout(()=>t(!1),e)))];return Promise.race(r)}return{get $(){return Array.from(t)},add:i,drain:a}}var $o=60*1e3;function es(e,t=$e()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?$o:r-t}function ts(e,t){return e[t]||e.all||0}function ns(e,t,n=$e()){return ts(e,t)>n}function rs(e,{statusCode:t,headers:n},r=$e()){let i={...e},a=n?.[`x-sentry-rate-limits`],o=n?.[`retry-after`];if(a)for(let e of a.trim().split(`,`)){let[t,n,,,a]=e.split(`:`,5),o=parseInt(t,10),s=(isNaN(o)?60:o)*1e3;if(!n)i.all=r+s;else for(let e of n.split(`;`))e===`metric_bucket`?(!a||a.split(`;`).includes(`custom`))&&(i[e]=r+s):i[e]=r+s}else o?i.all=r+es(o,r):t===429&&(i.all=r+60*1e3);return i}function is(e,t,n=Qo(e.bufferSize||64)){let i={},a=e=>n.drain(e);function o(a){let o=[];if(ai(a,(t,n)=>{let r=gi(n);ns(i,r)?e.recordDroppedEvent(`ratelimit_backoff`,r):o.push(t)}),o.length===0)return Promise.resolve({});let s=ri(a[0],o),c=t=>{if(oi(s,[`client_report`])){r&&x.warn(`Dropping client report. Will not send outcomes (reason: ${t}).`);return}ai(s,(n,r)=>{e.recordDroppedEvent(t,gi(r))})};return n.add(()=>t({body:li(s)}).then(e=>e.statusCode===413?(r&&x.error(`Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.`),c(`send_error`),e):(r&&e.statusCode!==void 0&&(e.statusCode<200||e.statusCode>=300)&&x.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),i=rs(i,e),e),e=>{throw c(`network_error`),r&&x.error(`Encountered error running transport request:`,e),e})).then(e=>e,e=>{if(e===Zo)return r&&x.error(`Skipped sending event because buffer is full.`),c(`queue_overflow`),Promise.resolve({});throw e})}return{send:o,flush:a}}function as(e,t,n){let r=[{type:`client_report`},{timestamp:n||_t(),discarded_events:e}];return ri(t?{dsn:t}:{},[r])}function os(e){let t=[];e.message&&t.push(e.message);try{let n=e.exception.values[e.exception.values.length-1];n?.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function ss(e){let{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:a,data:o,op:s}=e.contexts?.trace??{};return{data:o??{},description:e.transaction,op:s,parent_span_id:n,span_id:r??``,start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??``,origin:a,profile_id:o?.[Tn],exclusive_time:o?.[En],measurements:e.measurements,is_segment:!0}}function cs(e){return{type:`transaction`,timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{"sentry.profile_id":e.profile_id},...e.exclusive_time&&{"sentry.exclusive_time":e.exclusive_time}}}},measurements:e.measurements}}var ls=`Not capturing exception because it's already been captured.`,us=`Discarded session because of missing or non-string release`,ds=Symbol.for(`SentryInternalError`),fs=Symbol.for(`SentryDoNotSendEventError`),ps=5e3;function ms(e){return{message:e,[ds]:!0}}function hs(e){return{message:e,[fs]:!0}}function gs(e){return!!e&&typeof e==`object`&&ds in e}function _s(e){return!!e&&typeof e==`object`&&fs in e}function vs(e,t,n,r,i){let a=0,o,s=!1;e.on(n,()=>{a=0,clearTimeout(o),s=!1}),e.on(t,t=>{a+=r(t),a>=8e5?i(e):s||(s=!0,o=Xo(setTimeout(()=>{i(e)},ps)))}),e.on(`flush`,()=>{i(e)})}var ys=class{constructor(e){if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Qo(e.transportOptions?.bufferSize??64),e.dsn?this._dsn=Qn(e.dsn):r&&x.warn(`No DSN provided, client will not send events.`),this._dsn){let t=ho(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}this._options.enableLogs=this._options.enableLogs??this._options._experiments?.enableLogs,this._options.enableLogs&&vs(this,`afterCaptureLog`,`flushLogs`,Es,Io),(this._options.enableMetrics??this._options._experiments?.enableMetrics??!0)&&vs(this,`afterCaptureMetric`,`flushMetrics`,Ts,qo)}captureException(e,t,n){let i=ct();if(mt(e))return r&&x.log(ls),i;let a={event_id:i,...t};return this._process(()=>this.eventFromException(e,a).then(e=>this._captureEvent(e,a,n)).then(e=>e),`error`),a.event_id}captureMessage(e,t,n,r){let i={event_id:ct(),...n},a=Te(e)?e:String(e),o=Ee(e),s=o?this.eventFromMessage(a,t,i):this.eventFromException(e,i);return this._process(()=>s.then(e=>this._captureEvent(e,i,r)),o?`unknown`:`error`),i.event_id}captureEvent(e,t,n){let i=ct();if(t?.originalException&&mt(t.originalException))return r&&x.log(ls),i;let a={event_id:i,...t},o=e.sdkProcessingMetadata||{},s=o.capturedSpanScope,c=o.capturedSpanIsolationScope,l=bs(e.type);return this._process(()=>this._captureEvent(e,a,s||n,c),l),a.event_id}captureSession(e){this.sendSession(e),wt(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){let t=this._transport;if(!t)return!0;this.emit(`flush`);let n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){Io(this);let t=await this.flush(e);return this.getOptions().enabled=!1,this.emit(`close`),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith(`Spotlight`)))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}addIntegration(e){let t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),So(this,e,this._integrations),t||xo(this,[e])}sendEvent(e,t={}){this.emit(`beforeSendEvent`,e,t);let n=xi(e,this._dsn,this._options._metadata,this._options.tunnel);for(let e of t.attachments||[])n=ii(n,pi(e));this.sendEnvelope(n).then(t=>this.emit(`afterSendEvent`,e,t))}sendSession(e){let{release:t,environment:n=zr}=this._options;if(`aggregates`in e){let i=e.attrs||{};if(!i.release&&!t){r&&x.warn(us);return}i.release=i.release||t,i.environment=i.environment||n,e.attrs=i}else{if(!e.release&&!t){r&&x.warn(us);return}e.release=e.release||t,e.environment=e.environment||n}this.emit(`beforeSendSession`,e);let i=bi(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){let i=`${e}:${t}`;r&&x.log(`Recording outcome: "${i}"${n>1?` (${n} times)`:``}`),this._outcomes[i]=(this._outcomes[i]||0)+n}}on(e,t){let n=this._hooks[e]=this._hooks[e]||new Set,r=(...e)=>t(...e);return n.add(r),()=>{n.delete(r)}}emit(e,...t){let n=this._hooks[e];n&&n.forEach(e=>e(...t))}async sendEnvelope(e){if(this.emit(`beforeEnvelope`,e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(e){return r&&x.error(`Error while sending envelope:`,e),{}}return r&&x.error(`Transport disabled`),{}}dispose(){}_setupIntegrations(){let{integrations:e}=this._options;this._integrations=bo(this,e),xo(this,e)}_updateSessionFromEvent(e,t){let n=t.level===`fatal`,r=!1,i=t.exception?.values;if(i){r=!0,n=!1;for(let e of i)if(e.mechanism?.handled===!1){n=!0;break}}let a=e.status===`ok`;(a&&e.errors===0||a&&n)&&(wt(e,{...n&&{status:`crashed`},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(e=>setTimeout(e,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){let i=this.getOptions(),a=Object.keys(this._integrations);return!t.integrations&&a?.length&&(t.integrations=a),this.emit(`preprocessEvent`,e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Fa(i,e,t,n,this,r).then(e=>e===null?e:(this.emit(`postprocessEvent`,e,t),e.contexts={trace:{...e.contexts?.trace,...sn(n)},...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ur(this,n),...e.sdkProcessingMetadata},e))}_captureEvent(e,t={},n=O(),i=k()){return r&&Cs(e)&&x.log(`Captured error event \`${os(e)[0]||`<unknown>`}\``),this._processEvent(e,t,n,i).then(e=>e.event_id,e=>{r&&(_s(e)?x.log(e.message):gs(e)?x.warn(e.message):x.warn(e))})}_processEvent(e,t,n,r){let i=this.getOptions(),{sampleRate:a}=i,o=ws(e),s=Cs(e),c=`before send for type \`${e.type||`error`}\``,l=a===void 0?void 0:$n(a);if(s&&typeof l==`number`&&Qe()>l)return this.recordDroppedEvent(`sample_rate`,`error`),Ta(hs(`Discarding event because it's not included in the random sample (sampling rate = ${a})`));let u=bs(e.type);return this._prepareEvent(e,t,n,r).then(e=>{if(e===null)throw this.recordDroppedEvent(`event_processor`,u),hs("An event processor returned `null`, will not send event.");return t.data?.__sentry__===!0?e:xs(Ss(this,i,e,t),c)}).then(i=>{if(i===null){if(this.recordDroppedEvent(`before_send`,u),o){let t=1+(e.spans||[]).length;this.recordDroppedEvent(`before_send`,`span`,t)}throw hs(`${c} returned \`null\`, will not send event.`)}let a=n.getSession()||r.getSession();if(s&&a&&this._updateSessionFromEvent(a,i),o){let e=(i.sdkProcessingMetadata?.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);e>0&&this.recordDroppedEvent(`before_send`,`span`,e)}let l=i.transaction_info;return o&&l&&i.transaction!==e.transaction&&(i.transaction_info={...l,source:`custom`}),this.sendEvent(i,t),i}).then(null,e=>{throw _s(e)||gs(e)?e:(this.captureException(e,{mechanism:{handled:!1,type:`internal`},data:{__sentry__:!0},originalException:e}),ms(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(e=>(this._numProcessing--,e),e=>(this._numProcessing--,e===Zo&&this.recordDroppedEvent(`queue_overflow`,t),e))}_clearOutcomes(){let e=this._outcomes;return this._outcomes={},Object.entries(e).map(([e,t])=>{let[n,r]=e.split(`:`);return{reason:n,category:r,quantity:t}})}_flushOutcomes(){r&&x.log(`Flushing outcomes...`);let e=this._clearOutcomes();if(e.length===0){r&&x.log(`No outcomes to send`);return}if(!this._dsn){r&&x.log(`No dsn provided, will not send outcomes`);return}r&&x.log(`Sending outcomes:`,e);let t=as(e,this._options.tunnel&&Kn(this._dsn));this.sendEnvelope(t)}};function bs(e){return e===`replay_event`?`replay`:e||`error`}function xs(e,t){let n=`${t} must return \`null\` or a valid event.`;if(je(e))return e.then(e=>{if(!De(e)&&e!==null)throw ms(n);return e},e=>{throw ms(`${t} rejected with ${e}`)});if(!De(e)&&e!==null)throw ms(n);return e}function Ss(e,t,n,r){let{beforeSend:i,beforeSendTransaction:a,ignoreSpans:o}=t,s=!Jr(t.beforeSendSpan)&&t.beforeSendSpan,c=n;if(Cs(c)&&i)return i(c,r);if(ws(c)){if(s||o){let t=ss(c);if(o?.length&&Ir(t,o))return null;if(s){let e=s(t);e?c=Dt(n,cs(e)):Ar()}if(c.spans){let t=[],n=c.spans;for(let e of n){if(o?.length&&Ir(e,o)){Lr(n,e);continue}if(s){let n=s(e);n?t.push(n):(Ar(),t.push(e))}else t.push(e)}let r=c.spans.length-t.length;r&&e.recordDroppedEvent(`before_send`,`span`,r),c.spans=t}}if(a){if(c.spans){let e=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:e}}return a(c,r)}}return c}function Cs(e){return e.type===void 0}function ws(e){return e.type===`transaction`}function Ts(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+Ds(e.attributes)}function Es(e){let t=0;return e.message&&(t+=e.message.length*2),t+Ds(e.attributes)}function Ds(e){if(!e)return 0;let t=0;return Object.values(e).forEach(e=>{Array.isArray(e)?t+=e.length*Os(e[0]):Ee(e)?t+=Os(e):t+=100}),t}function Os(e){return typeof e==`string`?e.length*2:typeof e==`number`?8:typeof e==`boolean`?4:0}function ks(e){return ye(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function As(e){return ks(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}function js(e,t){t.debug===!0&&(r?x.enable():f(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),O().update(t.initialScope);let n=new e(t);return Ms(n),n.init(),n}function Ms(e){O().setClient(e)}var Ns=5e3,Ps=36e5;function Fs(e){function t(...e){r&&x.log(`[Offline]:`,...e)}return n=>{let r=e(n);if(!n.createStore)throw Error("No `createStore` function was provided");let i=n.createStore(n),a=Ns,o;function s(e,t,r){return oi(e,[`client_report`])?!1:n.shouldStore?n.shouldStore(e,t,r):!0}function c(e){o&&clearTimeout(o),o=Xo(setTimeout(async()=>{o=void 0;let e=await i.shift();e&&(t(`Attempting to send previously queued event`),e[0].sent_at=new Date().toISOString(),u(e,!0).catch(e=>{t(`Failed to retry sending`,e)}))},e))}function l(){o||(c(a),a=Math.min(a*2,Ps))}async function u(e,o=!1){if(!o&&oi(e,[`replay_event`,`replay_recording`]))return await i.push(e),c(100),{};try{if(n.shouldSend&&await n.shouldSend(e)===!1)throw Error("Envelope not sent because `shouldSend` callback returned false");let t=await r.send(e),i=100;if(t){if(t.headers?.[`retry-after`])i=es(t.headers[`retry-after`]);else if(t.headers?.[`x-sentry-rate-limits`])i=6e4;else if((t.statusCode||0)>=400)return t}return c(i),a=Ns,t}catch(n){if(await s(e,n,a))return o?await i.unshift(e):await i.push(e),l(),t(`Error sending. Event queued.`,n),{};throw n}}return n.flushAtStartup&&l(),{send:u,flush:e=>(e===void 0&&(a=Ns,c(100)),r.flush(e))}}}var Is=`MULTIPLEXED_TRANSPORT_EXTRA_KEY`;function Ls(e,t){let n;return ai(e,(e,r)=>(t.includes(r)&&(n=Array.isArray(e)?e[1]:void 0),!!n)),n}function Rs(e,t){return n=>{let r=e(n);return{...r,send:async e=>{let n=Ls(e,[`event`,`transaction`,`profile`,`replay_event`]);return n&&(n.release=t),r.send(e)}}}}function zs(e,t){return ri(t?{...e[0],dsn:t}:e[0],e[1])}function Bs(e,t){return n=>{let r=e(n),i=new Map,a=t||(e=>{let t=e.getEvent();return t?.extra?.MULTIPLEXED_TRANSPORT_EXTRA_KEY&&Array.isArray(t.extra.MULTIPLEXED_TRANSPORT_EXTRA_KEY)?t.extra.MULTIPLEXED_TRANSPORT_EXTRA_KEY:[]});function o(t,r){let a=r?`${t}:${r}`:t,o=i.get(a);if(!o){let s=qn(t);if(!s)return;let c=ho(s,n.tunnel);o=r?Rs(e,r)({...n,url:c}):e({...n,url:c}),i.set(a,o)}return[t,o]}async function s(e){function t(t){return Ls(e,t?.length?t:[`event`])}let n=a({envelope:e,getEvent:t}).map(e=>typeof e==`string`?o(e,void 0):o(e.dsn,e.release)).filter(e=>!!e),i=n.length?n:[[``,r]];return(await Promise.all(i.map(([t,n])=>n.send(zs(e,t)))))[0]}async function c(e){let t=[...i.values(),r];return(await Promise.all(t.map(t=>t.flush(e)))).every(e=>e)}return{send:s,flush:c}}}var Vs=`thismessage:/`;function Hs(e){return`isRelative`in e}function Us(e,t){let n=e.indexOf(`://`)<=0&&e.indexOf(`//`)!==0,r=t??(n?Vs:void 0);try{if(`canParse`in URL&&!URL.canParse(e,r))return;let t=new URL(e,r);return n?{isRelative:n,pathname:t.pathname,search:t.search,hash:t.hash}:t}catch{}}function Ws(e){if(Hs(e))return e.pathname;let t=new URL(e);return t.search=``,t.hash=``,[`80`,`443`].includes(t.port)&&(t.port=``),t.password&&=`%filtered%`,t.username&&=`%filtered%`,t.toString()}function Gs(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let n=t[6]||``,r=t[8]||``;return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function Ks(e){return e.split(/[?#]/,1)[0]}function qs(e,t=!0){if(e.startsWith(`data:`)){let n=e.match(/^data:([^;,]+)/),r=n?n[1]:`text/plain`,i=e.includes(`;base64,`),a=e.indexOf(`,`),o=``;if(t&&a!==-1){let t=e.slice(a+1);o=t.length>10?`${t.slice(0,10)}... [truncated]`:t}return`data:${r}${i?`,base64`:``}${o?`,${o}`:``}`}return e}function Js(e,t){let n=t?.getDsn(),r=t?.getOptions().tunnel;return Xs(e,n)||Ys(e,r)}function Ys(e,t){return t?Zs(e)===Zs(t):!1}function Xs(e,t){let n=Us(e);return!n||Hs(n)?!1:t?n.host.includes(t.host)&&/(^|&|\?)sentry_key=/.test(n.search):!1}function Zs(e){return e[e.length-1]===`/`?e.slice(0,-1):e}function Qs(e,...t){let 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}var $s=Qs;function ec(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 tc(e,t,n=[t],r=`npm`){let i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(e=>({name:`${r}:@sentry/${e}`,version:a})),i.version=a)}function nc(e={}){let t=e.client||A();if(!ao()||!t)return{};let n=qt(o());if(n.getTraceData)return n.getTraceData(e);let r=e.scope||O(),i=e.span||F();if(!i&&nn())return{};let a=i?ur(i):rc(r),s=zn(i?Wr(i):Ur(t,r));if(!er.test(a))return x.warn(`Invalid sentry-trace data. Cannot generate trace data`),{};let c={"sentry-trace":a,baggage:s};return e.propagateTraceparent&&(c.traceparent=i?dr(i):ic(r)),c}function rc(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return rr(t,r,n)}function ic(e){let{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return ir(t,r,n)}function ac(e,t,n){let r,i,a,o=n?.maxWait?Math.max(n.maxWait,t):0,s=n?.setTimeoutImpl||setTimeout;function c(){return l(),r=e(),r}function l(){i!==void 0&&clearTimeout(i),a!==void 0&&clearTimeout(a),i=a=void 0}function u(){return i!==void 0||a!==void 0?c():r}function d(){return i&&clearTimeout(i),i=s(c,t),o&&a===void 0&&(a=s(c,o)),r}return d.cancel=l,d.flush=u,d}var oc=100;function sc(e,t){let n=A(),r=k();if(!n)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:a=oc}=n.getOptions();if(a<=0)return;let o={timestamp:_t(),...e},s=i?f(()=>i(o,t)):o;s!==null&&(n.emit&&n.emit(`beforeAddBreadcrumb`,s,t),r.addBreadcrumb(s,a))}var cc,lc=`FunctionToString`,uc=new WeakMap,dc=L((()=>({name:lc,setupOnce(){cc=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Ge(this),n=uc.has(A())&&t!==void 0?t:this;return cc.apply(n,e)}}catch{}},setup(e){uc.set(e,!0)}}))),fc=[/^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$/],pc=`EventFilters`,mc=L((e={})=>{let t;return{name:pc,setup(n){t=gc(e,n.getOptions())},processEvent(n,r,i){return t||=gc(e,i.getOptions()),_c(n,t)?null:n}}}),hc=L(((e={})=>({...mc(e),name:`InboundFilters`})));function gc(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:fc],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function _c(e,t){if(!e.type){if(vc(e,t.ignoreErrors))return r&&x.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${ut(e)}`),!0;if(wc(e))return r&&x.warn(`Event dropped due to not having an error message, error type or stacktrace.\nEvent: ${ut(e)}`),!0;if(bc(e,t.denyUrls))return r&&x.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${ut(e)}.\nUrl: ${Cc(e)}`),!0;if(!xc(e,t.allowUrls))return r&&x.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${ut(e)}.\nUrl: ${Cc(e)}`),!0}else if(e.type===`transaction`&&yc(e,t.ignoreTransactions))return r&&x.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${ut(e)}`),!0;return!1}function vc(e,t){return t?.length?os(e).some(e=>it(e,t)):!1}function yc(e,t){if(!t?.length)return!1;let n=e.transaction;return n?it(n,t):!1}function bc(e,t){if(!t?.length)return!1;let n=Cc(e);return n?it(n,t):!1}function xc(e,t){if(!t?.length)return!0;let n=Cc(e);return n?it(n,t):!0}function Sc(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function Cc(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?Sc(t):null}catch{return r&&x.error(`Cannot extract url for event ${ut(e)}`),null}}function wc(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function Tc(e,t,n,r,i,a){if(!i.exception?.values||!a||!Ne(a.originalException,Error))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=Ec(e,t,r,a.originalException,n,i.exception.values,o,0))}function Ec(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(Ne(r[i],Error)){Oc(o,s,r);let a=e(t,r[i]),l=c.length;kc(a,i,l,s),c=Ec(e,t,n,r[i],i,[a,...c],a,l)}return Dc(r)&&r.errors.forEach((a,l)=>{if(Ne(a,Error)){Oc(o,s,r);let u=e(t,a),d=c.length;kc(u,`errors[${l}]`,d,s),c=Ec(e,t,n,a,i,[u,...c],u,d)}}),c}function Dc(e){return Array.isArray(e.errors)}function Oc(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...Dc(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function kc(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}var Ac=new Map,jc=new Set;function Mc(e){if(i._sentryModuleMetadata)for(let t of Object.keys(i._sentryModuleMetadata)){let n=i._sentryModuleMetadata[t];if(jc.has(t))continue;jc.add(t);let r=e(t);for(let e of r.reverse())if(e.filename){Ac.set(e.filename,n);break}}}function Nc(e,t){return Mc(e),Ac.get(t)}function Pc(e,t){t.exception?.values?.forEach(t=>{t.stacktrace?.frames?.forEach(t=>{if(!t.filename||t.module_metadata)return;let n=Nc(e,t.filename);n&&(t.module_metadata=n)})})}function Fc(e){e.exception?.values?.forEach(e=>{e.stacktrace?.frames?.forEach(e=>{delete e.module_metadata})})}var Ic=L(()=>({name:`ModuleMetadata`,setup(e){e.on(`beforeEnvelope`,e=>{ai(e,(e,t)=>{if(t===`event`){let t=Array.isArray(e)?e[1]:void 0;t&&(Fc(t),e[1]=t)}})}),e.on(`applyFrameMetadata`,t=>{if(t.type)return;let n=e.getOptions().stackParser;Pc(n,t)})}}));function Lc(e){let t=`console`;le(t,e),ue(t,Rc)}function Rc(){`console`in i&&l.forEach(function(e){e in i.console&&He(i.console,e,function(t){return d[e]=t,function(...t){de(`console`,{args:t,level:e}),d[e]?.apply(i.console,t)}})})}function zc(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var Bc=`CaptureConsole`,Vc=L(((e={})=>{let t=e.levels||l,n=e.handled??!0;return{name:Bc,setup(e){`console`in i&&Lc(({args:r,level:i})=>{A()!==e||!t.includes(i)||Hc(r,i,n)})}}}));function Hc(e,t,n){let r=zc(t),i=Error(),a={level:zc(t),extra:{arguments:e}};an(o=>{if(o.addEventProcessor(e=>(e.logger=`console`,ft(e,{handled:n,type:`auto.core.capture_console`}),e)),t===`assert`){if(!e[0]){let t=`Assertion failed: ${nt(e.slice(1),` `)||`console.assert`}`;o.setExtra(`arguments`,e.slice(1)),o.captureMessage(t,r,{captureContext:a,syntheticException:i})}return}let s=e.find(e=>e instanceof Error);if(s){I(s,a);return}let c=nt(e,` `);o.captureMessage(c,r,{captureContext:a,syntheticException:i})})}var Uc=`Dedupe`,Wc=L((()=>{let e;return{name:Uc,processEvent(t){if(t.type)return t;try{if(Gc(t,e))return r&&x.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function Gc(e,t){return t?!!(Kc(e,t)||qc(e,t)):!1}function Kc(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Yc(e,t)||!Jc(e,t))}function qc(e,t){let n=Xc(t),r=Xc(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Yc(e,t)||!Jc(e,t))}function Jc(e,t){let n=ae(e),r=ae(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function Yc(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 Xc(e){return e.exception?.values?.[0]}var Zc=`ExtraErrorData`,Qc=L(((e={})=>{let{depth:t=3,captureErrorCause:n=!0}=e;return{name:Zc,processEvent(e,r,i){let{maxValueLength:a}=i.getOptions();return $c(e,r,t,n,a)}}}));function $c(e,t={},n,r,i){if(!t.originalException||!ye(t.originalException))return e;let a=t.originalException.name||t.originalException.constructor.name,o=el(t.originalException,r,i);if(o){let t={...e.contexts},r=Yr(o,n);return De(r)&&(Ue(r,`__sentry_skip_normalization__`,!0),t[a]=r),{...e,contexts:t}}return e}function el(e,t,n){try{let r=[`name`,`message`,`stack`,`line`,`column`,`fileName`,`lineNumber`,`columnNumber`,`toJSON`],i={};for(let t of Object.keys(e)){if(r.indexOf(t)!==-1)continue;let a=e[t];i[t]=ye(a)||typeof a==`string`?n?et(`${a}`,n):`${a}`:a}if(t&&e.cause!==void 0&&(ye(e.cause)?i.cause={[e.cause.name||e.cause.constructor.name]:el(e.cause,!1,n)}:i.cause=e.cause),typeof e.toJSON==`function`){let t=e.toJSON();for(let e of Object.keys(t)){let n=t[e];i[e]=ye(n)?n.toString():n}}return i}catch(e){r&&x.error(`Unable to extract extra data from the Error object:`,e)}return null}function tl(e,t){let n=0;for(let t=e.length-1;t>=0;t--){let r=e[t];r===`.`?e.splice(t,1):r===`..`?(e.splice(t,1),n++):n&&(e.splice(t,1),n--)}if(t)for(;n--;)e.unshift(`..`);return e}var nl=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function rl(e){let t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=nl.exec(t);return n?n.slice(1):[]}function il(...e){let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:`/`;i&&(t=`${i}/${t}`,n=i.charAt(0)===`/`)}return t=tl(t.split(`/`).filter(e=>!!e),!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 ol(e,t){e=il(e).slice(1),t=il(t).slice(1);let n=al(e.split(`/`)),r=al(t.split(`/`)),i=Math.min(n.length,r.length),a=i;for(let e=0;e<i;e++)if(n[e]!==r[e]){a=e;break}let o=[];for(let e=a;e<n.length;e++)o.push(`..`);return o=o.concat(r.slice(a)),o.join(`/`)}function sl(e,t){let n=rl(e)[2]||``;return t&&n.slice(t.length*-1)===t&&(n=n.slice(0,n.length-t.length)),n}var cl=`RewriteFrames`,ll=L((e={})=>{let t=e.root,n=e.prefix||`app:///`,r=`window`in i&&!!i.window,a=e.iteratee||ul({isBrowser:r,root:t,prefix:n});function o(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map(e=>({...e,...e.stacktrace&&{stacktrace:s(e.stacktrace)}}))}}}catch{return e}}function s(e){return{...e,frames:e?.frames?.map(e=>a(e))}}return{name:cl,processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=o(t)),t}}});function ul({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;let i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes(`\\`)&&!r.filename.includes(`/`),a=/^\//.test(r.filename);if(e){if(t){let e=r.filename;e.indexOf(t)===0&&(r.filename=e.replace(t,n))}}else if(i||a){let e=i?r.filename.replace(/^[a-zA-Z]:/,``).replace(/\\/g,`/`):r.filename;r.filename=`${n}${t?ol(t,e):sl(e)}`}return r}}var dl=[`reauthenticate`,`signInAnonymously`,`signInWithOAuth`,`signInWithIdToken`,`signInWithOtp`,`signInWithPassword`,`signInWithSSO`,`signOut`,`signUp`,`verifyOtp`],fl=[`createUser`,`deleteUser`,`listUsers`,`getUserById`,`updateUserById`,`inviteUserByEmail`],pl={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`},ml=[`select`,`insert`,`upsert`,`update`,`delete`];function hl(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function gl(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function _l(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 vl(e,t){if(t===``||t===`*`)return`select(*)`;if(e===`select`)return`select(${t})`;if(e===`or`||e.endsWith(`.or`))return`${e}${t}`;let[n,...r]=t.split(`.`),i;return i=n?.startsWith(`fts`)?`textSearch`:n?.startsWith(`plfts`)?`textSearch[plain]`:n?.startsWith(`phfts`)?`textSearch[phrase]`:n?.startsWith(`wfts`)?`textSearch[websearch]`:n&&pl[n]||`filter`,`${i}(${e}, ${r.join(`.`)})`}function yl(e,t=!1){return new Proxy(e,{apply(n,r,i){return Ri({name:`auth ${t?`(admin) `:``}${e.name}`,attributes:{[M]:`auto.db.supabase`,[j]:`db`,"db.system":`postgresql`,"db.operation":`auth.${t?`admin.`:``}${e.name}`}},e=>Reflect.apply(n,r,i).then(t=>(t&&typeof t==`object`&&`error`in t&&t.error?(e.setStatus({code:2}),I(t.error,{mechanism:{handled:!1,type:`auto.db.supabase.auth`}})):e.setStatus({code:1}),e.end(),t)).catch(t=>{throw e.setStatus({code:2}),e.end(),I(t,{mechanism:{handled:!1,type:`auto.db.supabase.auth`}}),t}).then(...i))}})}function bl(e){let t=e.auth;if(!(!t||gl(e.auth))){for(let n of dl){let r=t[n];r&&typeof e.auth[n]==`function`&&(e.auth[n]=yl(r))}for(let n of fl){let r=t.admin[n];r&&typeof e.auth.admin[n]==`function`&&(e.auth.admin[n]=yl(r,!0))}hl(e.auth)}}function xl(e){gl(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(e,t,n){let r=Reflect.apply(e,t,n),i=r.constructor;return Cl(i),r}}),hl(e.prototype.from))}function Sl(e){gl(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(e,t,n){let r=ml,i=t,a=_l(i.method,i.headers);if(!r.includes(a)||!i?.url?.pathname||typeof i.url.pathname!=`string`)return Reflect.apply(e,t,n);let o=i.url.pathname.split(`/`),s=o.length>0?o[o.length-1]:``,c=[];for(let[e,t]of i.url.searchParams.entries())c.push(vl(e,t));let l=Object.create(null);if(De(i.body))for(let[e,t]of Object.entries(i.body))l[e]=t;let u=`${a===`select`?``:`${a}${l?`(...) `:``}`}${c.join(` `)} from(${s})`,d={"db.table":s,"db.schema":i.schema,"db.url":i.url.origin,"db.sdk":i.headers[`X-Client-Info`],"db.system":`postgresql`,"db.operation":a,[M]:`auto.db.supabase`,[j]:`db`};return c.length&&(d[`db.query`]=c),Object.keys(l).length&&(d[`db.body`]=l),Ri({name:u,attributes:d},r=>Reflect.apply(e,t,[]).then(e=>{if(r&&(e&&typeof e==`object`&&`status`in e&&An(r,e.status||500),r.end()),e?.error){let t=Error(e.error.message);e.error.code&&(t.code=e.error.code),e.error.details&&(t.details=e.error.details);let n={};c.length&&(n.query=c),Object.keys(l).length&&(n.body=l),I(t,e=>(e.addEventProcessor(e=>(ft(e,{handled:!1,type:`auto.db.supabase.postgres`}),e)),e.setContext(`supabase`,n),e))}let t={type:`supabase`,category:`db.${a}`,message:u},n={};return c.length&&(n.query=c),Object.keys(l).length&&(n.body=l),Object.keys(n).length&&(t.data=n),sc(t),e},e=>{throw r&&(An(r,500),r.end()),e}).then(...n))}}),hl(e.prototype.then))}function Cl(e){for(let t of ml)gl(e.prototype[t])||(e.prototype[t]=new Proxy(e.prototype[t],{apply(e,n,i){let a=Reflect.apply(e,n,i),o=a.constructor;return r&&x.log(`Instrumenting ${t} operation's PostgRESTFilterBuilder`),Sl(o),a}}),hl(e.prototype[t]))}var wl=e=>{if(!e){r&&x.warn(`Supabase integration was not installed because no Supabase client was provided.`);return}xl(e.constructor===Function?e:e.constructor),bl(e)},Tl=`Supabase`,El=(e=>({setupOnce(){wl(e)},name:Tl})),Dl=L(e=>El(e.supabaseClient)),Ol=10,kl=`ZodErrors`;function Al(e){return ye(e)&&e.name===`ZodError`&&Array.isArray(e.issues)}function jl(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 Ml(e){return e.map(e=>typeof e==`number`?`<array>`:e).join(`.`)}function Nl(e){let t=new Set;for(let n of e.issues){let e=Ml(n.path);e.length>0&&t.add(e)}let n=Array.from(t);if(n.length===0){let t=`variable`;if(e.issues.length>0){let n=e.issues[0];n!==void 0&&`expected`in n&&typeof n.expected==`string`&&(t=n.expected)}return`Failed to validate ${t}`}return`Failed to validate keys: ${et(n.join(`, `),100)}`}function Pl(e,t=!1,n,r){if(!n.exception?.values||!r.originalException||!Al(r.originalException)||r.originalException.issues.length===0)return n;try{let i=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(jl);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:`zod_issues.json`,data:JSON.stringify({issues:i})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:Nl(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":i.slice(0,e)}}}catch(e){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:`an exception was thrown while processing ZodError within applyZodErrorsToEvent()`,error:e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:`unknown`}}}}}var Fl=L(((e={})=>{let t=e.limit??Ol;return{name:kl,processEvent(n,r){return Pl(t,e.saveZodIssuesAsAttachment,n,r)}}})),Il=L(e=>({name:`ThirdPartyErrorsFilter`,setup(e){e.on(`beforeEnvelope`,e=>{ai(e,(e,t)=>{if(t===`event`){let t=Array.isArray(e)?e[1]:void 0;t&&(Fc(t),e[1]=t)}})}),e.on(`applyFrameMetadata`,t=>{if(t.type)return;let n=e.getOptions().stackParser;Pc(n,t)})},processEvent(t){let n=Rl(t,e.ignoreSentryInternalFrames);if(n&&n[e.behaviour===`drop-error-if-contains-third-party-frames`||e.behaviour===`apply-tag-if-contains-third-party-frames`?`some`:`every`](t=>!t.some(t=>e.filterKeys.includes(t)))){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 Ll(e,t){if(t!==0||!e.context_line||!e.filename||!e.filename.includes(`sentry`)||!e.filename.includes(`helpers`)||!e.context_line.includes(Vl))return!1;if(e.pre_context){let t=e.pre_context.length;for(let n=0;n<t;n++)if(e.pre_context[n]?.includes(Bl))return!0}return!1}function Rl(e,t){let n=ae(e);if(n)return n.filter((e,n)=>!e.filename||e.lineno==null&&e.colno==null&&e.instruction_addr==null?!1:!t||!Ll(e,n)).map(e=>e.module_metadata?Object.keys(e.module_metadata).filter(e=>e.startsWith(zl)).map(e=>e.slice(zl.length)):[])}var zl=`_sentryBundlerPluginAppKey:`,Bl=`Attempt to invoke user-land function`,Vl=`fn.apply(this, wrappedArguments)`,Hl=`flag.evaluation.`;function Ul(e){if(e.type)return e;let t=O().getScopeData().contexts.flags,n=t?t.values:[];return n.length?(e.contexts===void 0&&(e.contexts={}),e.contexts.flags={values:[...n]},e):e}function Wl(e,t,n=100){let r=O().getScopeData().contexts;r.flags||={values:[]};let i=r.flags.values;Gl(i,e,t,n)}function Gl(e,t,n,i){if(typeof n!=`boolean`)return;if(e.length>i){r&&x.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${i}`);return}let a=e.findIndex(e=>e.flag===t);a!==-1&&e.splice(a,1),e.length===i&&e.shift(),e.push({flag:t,result:n})}function Kl(e,t,n=10){if(typeof t!=`boolean`)return;let r=F();if(!r)return;let i=N(r).data;if(`${Hl}${e}`in i){r.setAttribute(`${Hl}${e}`,t);return}Object.keys(i).filter(e=>e.startsWith(Hl)).length<n&&r.setAttribute(`${Hl}${e}`,t)}var ql=L(()=>({name:`FeatureFlags`,processEvent(e,t,n){return Ul(e)},addFeatureFlag(e,t){Wl(e,t),Kl(e,t)}})),Jl=L(({growthbookClass:e})=>({name:`GrowthBook`,setupOnce(){let t=e.prototype;typeof t.isOn==`function`&&He(t,`isOn`,Yl),typeof t.getFeatureValue==`function`&&He(t,`getFeatureValue`,Yl)},processEvent(e,t,n){return Ul(e)}}));function Yl(e){return function(...t){let n=t[0],r=e.apply(this,t);return typeof n==`string`&&typeof r==`boolean`&&(Wl(n,r),Kl(n,r)),r}}var Xl=`ConversationId`,Zl=L((()=>({name:Xl,setup(e){e.on(`spanStart`,e=>{let t=O().getScopeData(),n=k().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=N(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(On,r)}})}})));function Ql(e,t,n,r,i){if(!e.fetchData)return;let{method:a,url:o}=e.fetchData,s=Pr()&&t(o);if(e.endTimestamp){let t=e.fetchData.__span;if(!t)return;let n=r[t];n&&(s&&(tu(n,e),$l(n,e,i)),delete r[t]);return}let{spanOrigin:c=`auto.http.browser`,propagateTraceparent:l=!1}=typeof i==`object`?i:{spanOrigin:i},u=A(),d=!!F(),f=s&&d?Bi(au(o,a,c)):new Kr;if(s&&!d&&u?.recordDroppedEvent(`no_parent_span`,`span`),e.fetchData.__span=f.spanContext().spanId,r[f.spanContext().spanId]=f,n(e.fetchData.url)){let t=e.args[0],n={...e.args[1]||{}},r=eu(t,n,Pr()&&d?f:void 0,l);r&&(e.args[1]=n,n.headers=r)}if(u){let t={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};u.emit(`beforeOutgoingRequestSpan`,f,t)}return f}function $l(e,t,n){(typeof n==`object`&&n?n.onRequestSpanEnd:void 0)?.(e,{headers:t.response?.headers,error:t.error})}function eu(e,t,n,r){let i=nc({span:n,propagateTraceparent:r}),a=i[`sentry-trace`],o=i.baggage,s=i.traceparent;if(!a)return;let c=t.headers||(Fe(e)?e.headers:void 0);if(!c)return{...i};if(ru(c)){let e=new Headers(c);if(e.get(`sentry-trace`)||e.set(`sentry-trace`,a),r&&s&&!e.get(`traceparent`)&&e.set(`traceparent`,s),o){let t=e.get(`baggage`);t?nu(t)||e.set(`baggage`,`${t},${o}`):e.set(`baggage`,o)}return e}else if(iu(c)){let e=[...c];e.find(e=>e[0]===`sentry-trace`)||e.push([`sentry-trace`,a]),r&&s&&!e.find(e=>e[0]===`traceparent`)&&e.push([`traceparent`,s]);let t=c.find(e=>e[0]===`baggage`&&typeof e[1]==`string`&&nu(e[1]));return o&&!t&&e.push([`baggage`,o]),e}else{let e=`sentry-trace`in c?c[`sentry-trace`]:void 0,t=`traceparent`in c?c.traceparent:void 0,n=`baggage`in c?c.baggage:void 0,i=n?Array.isArray(n)?[...n]:[n]:[],l=n&&(Array.isArray(n)?n.find(e=>nu(e)):nu(n));o&&!l&&i.push(o);let u=Object.assign({},c,{"sentry-trace":e??a,baggage:i.length>0?i.join(`,`):void 0});return r&&s&&!t&&(u.traceparent=s),u}}function tu(e,t){if(t.response){An(e,t.response.status);let n=t.response?.headers?.get(`content-length`);if(n){let t=parseInt(n);t>0&&e.setAttribute(`http.response_content_length`,t)}}else t.error&&e.setStatus({code:2,message:`internal_error`});e.end()}function nu(e){return typeof e==`string`?e.split(`,`).some(e=>e.trim().startsWith(Ln)):!1}function ru(e){return typeof Headers<`u`&&Ne(e,Headers)}function iu(e){return Array.isArray(e)?e.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`):!1}function au(e,t,n){if(e.startsWith(`data:`))return{name:`${t} ${qs(e)}`,attributes:ou(e,void 0,t,n)};let r=Us(e);return{name:`${t} ${r?Ws(r):e}`,attributes:ou(e,r,t,n)}}function ou(e,t,n,r){let i={url:qs(e),type:`fetch`,"http.method":n,[M]:r,[j]:`http.client`};return t&&(Hs(t)||(i[`http.url`]=qs(t.href),i[`server.address`]=t.host),t.search&&(i[`http.query`]=t.search),t.hash&&(i[`http.fragment`]=t.hash)),i}function su(e,t={},n=O()){let{message:r,name:i,email:a,url:o,source:s,associatedEventId:c,tags:l}=e,u={contexts:{feedback:{contact_email:a,name:i,message:r,url:o,source:s,associated_event_id:c}},type:`feedback`,level:`info`,tags:l},d=n?.getClient()||A();return d&&d.emit(`beforeSendFeedback`,u,t),n.captureEvent(u,t)}var cu=t({debug:()=>du,error:()=>mu,fatal:()=>hu,fmt:()=>$s,info:()=>fu,trace:()=>uu,warn:()=>pu});function lu(e,t,n,r,i){Fo({level:e,message:t,attributes:n,severityNumber:i},r)}function uu(e,t,{scope:n}={}){lu(`trace`,e,t,n)}function du(e,t,{scope:n}={}){lu(`debug`,e,t,n)}function fu(e,t,{scope:n}={}){lu(`info`,e,t,n)}function pu(e,t,{scope:n}={}){lu(`warn`,e,t,n)}function mu(e,t,{scope:n}={}){lu(`error`,e,t,n)}function hu(e,t,{scope:n}={}){lu(`fatal`,e,t,n)}function gu(e,t,n){return`util`in i&&typeof i.util.format==`function`?i.util.format(...e):_u(e,t,n)}function _u(e,t,n){return e.map(e=>Ee(e)?String(e):JSON.stringify(Yr(e,t,n))).join(` `)}function vu(e){return/%[sdifocO]/.test(e)}function yu(e,t){let n={};return n[`sentry.message.template`]=`${e} ${Array(t.length).fill(`{}`).join(` `)}`,t.forEach((e,t)=>{n[`sentry.message.parameter.${t}`]=e}),n}var bu=`ConsoleLogs`,xu={[M]:`auto.log.console`},Su=L(((e={})=>{let t=e.levels||l;return{name:bu,setup(e){let{enableLogs:n,normalizeDepth:i=3,normalizeMaxBreadth:a=1e3}=e.getOptions();if(!n){r&&x.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}Lc(({args:n,level:r})=>{if(A()!==e||!t.includes(r))return;let o=n[0],s=n.slice(1);if(r===`assert`){o||Fo({level:`error`,message:s.length>0?`Assertion failed: ${gu(s,i,a)}`:`Assertion failed`,attributes:xu});return}let c=r===`log`,l=n.length>1&&typeof n[0]==`string`&&!vu(n[0]),u={...xu,...l?yu(o,s):{}};Fo({level:c?`info`:r,message:gu(n,i,a),severityNumber:c?10:void 0,attributes:u})})}}})),Cu=t({count:()=>Tu,distribution:()=>Du,gauge:()=>Eu});function wu(e,t,n,r){Ko({type:e,name:t,value:n,unit:r?.unit,attributes:r?.attributes},{scope:r?.scope})}function Tu(e,t=1,n){wu(`counter`,e,t,n)}function Eu(e,t,n){wu(`gauge`,e,t,n)}function Du(e,t,n){wu(`distribution`,e,t,n)}var Ou=[`trace`,`debug`,`info`,`warn`,`error`,`fatal`];function ku(e={}){let t=new Set(e.levels??Ou),n=e.client;return{log(e){let{type:r,level:i,message:a,args:o,tag:s,date:c,...l}=e,u=n||A();if(!u)return;let d=Mu(r,i);if(!t.has(d))return;let{normalizeDepth:f=3,normalizeMaxBreadth:p=1e3}=u.getOptions(),m={};for(let[e,t]of Object.entries(l))m[e]=Yr(t,f,p);m[`sentry.origin`]=`auto.log.consola`,s&&(m[`consola.tag`]=s),r&&(m[`consola.type`]=r),i!=null&&typeof i==`number`&&(m[`consola.level`]=i);let h=Pu(Nu(o,f,p),f,p);h?.attributes&&Object.assign(m,h.attributes),Fo({level:d,message:h?.message||a||o&&gu(o,f,p)||``,attributes:m})}}}var Au={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`},ju={0:`fatal`,1:`warn`,2:`info`,3:`info`,4:`debug`,5:`trace`};function Mu(e,t){if(e===`verbose`)return`debug`;if(e===`silent`)return`trace`;if(e){let t=Au[e];if(t)return t}if(typeof t==`number`){let e=ju[t];if(e)return e}return`info`}function Nu(e,t,n){if(!e?.length)return{message:``};let r=gu(e,t,n),i=e[0];if(De(i)){let t=typeof e[1]==`string`?2:1;return{message:r,attributes:i,messageParameters:e.slice(t)}}else{let t=e.slice(1),n=t.length>0&&typeof i==`string`&&!vu(i);return{message:r,messageTemplate:n?i:void 0,messageParameters:n?t:void 0}}}function Pu(e,t,n){let{message:r,attributes:i,messageTemplate:a,messageParameters:o}=e,s={};if(a&&o){let e=yu(a,o);for(let[r,i]of Object.entries(e))s[r]=r.startsWith(`sentry.message.parameter.`)?Yr(i,t,n):i}else o&&o.length>0&&o.forEach((e,r)=>{s[`sentry.message.parameter.${r}`]=Yr(e,t,n)});return{message:r,attributes:{...Yr(i,t,n),...s}}}var Fu=`gen_ai.prompt`,Iu=`gen_ai.system`,Lu=`gen_ai.request.model`,Ru=`gen_ai.request.stream`,zu=`gen_ai.request.temperature`,Bu=`gen_ai.request.max_tokens`,Vu=`gen_ai.request.frequency_penalty`,Hu=`gen_ai.request.presence_penalty`,Uu=`gen_ai.request.top_p`,Wu=`gen_ai.request.top_k`,Gu=`gen_ai.request.encoding_format`,Ku=`gen_ai.request.dimensions`,qu=`gen_ai.response.finish_reasons`,Ju=`gen_ai.response.model`,Yu=`gen_ai.response.id`,Xu=`gen_ai.response.stop_reason`,Zu=`gen_ai.usage.input_tokens`,Qu=`gen_ai.usage.output_tokens`,$u=`gen_ai.usage.total_tokens`,ed=`gen_ai.operation.name`,td=`sentry.sdk_meta.gen_ai.input.messages.original_length`,nd=`gen_ai.input.messages`,rd=`gen_ai.system_instructions`,id=`gen_ai.response.text`,ad=`gen_ai.request.available_tools`,od=`gen_ai.response.streaming`,sd=`gen_ai.response.tool_calls`,cd=`gen_ai.agent.name`,ld=`gen_ai.pipeline.name`,ud=`gen_ai.conversation.id`,dd=`gen_ai.usage.cache_creation_input_tokens`,fd=`gen_ai.usage.cache_read_input_tokens`,pd=`gen_ai.invoke_agent`,md=`gen_ai.embeddings.input`,hd=`gen_ai.embeddings`,gd=`gen_ai.tool.name`,_d=`gen_ai.tool.input`,vd=`gen_ai.tool.output`;function yd(e){return!e||typeof e!=`object`?!1:Sd(e)||Cd(e)||bd(e)||wd(e)||Td(e)||Ed(e)||Dd(e)||Od(e)||kd(e)||Ad(e)||jd(e)||Md(e)}function bd(e){return`image_url`in e?typeof e.image_url==`string`?e.image_url.startsWith(`data:`):xd(e):!1}function xd(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 Sd(e){return`type`in e&&typeof e.type==`string`&&`source`in e&&yd(e.source)}function Cd(e){return`inlineData`in e&&!!e.inlineData&&typeof e.inlineData==`object`&&`data`in e.inlineData&&typeof e.inlineData.data==`string`}function wd(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 Td(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 Ed(e){return`media_type`in e&&typeof e.media_type==`string`&&`data`in e}function Dd(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 Od(e){return`type`in e&&e.type===`image`&&`image`in e&&typeof e.image==`string`&&!e.image.startsWith(`http://`)&&!e.image.startsWith(`https://`)}function kd(e){return`type`in e&&(e.type===`blob`||e.type===`base64`)}function Ad(e){return`b64_json`in e}function jd(e){return`type`in e&&`result`in e&&e.type===`image_generation`}function Md(e){return`uri`in e&&typeof e.uri==`string`&&e.uri.startsWith(`data:`)}var Nd=`[Blob substitute]`,Pd=[`image_url`,`data`,`content`,`b64_json`,`result`,`uri`,`image`];function Fd(e){let t={...e};yd(t.source)&&(t.source=Fd(t.source)),Cd(e)&&(t.inlineData={...e.inlineData,data:Nd}),xd(e)&&(t.image_url={...e.image_url,url:Nd}),wd(e)&&(t.input_audio={...e.input_audio,data:Nd}),Td(e)&&(t.file={...e.file,file_data:Nd});for(let e of Pd)typeof t[e]==`string`&&(t[e]=Nd);return t}var Id=2e4,Ld=e=>new TextEncoder().encode(e).length,Rd=e=>Ld(JSON.stringify(e));function zd(e,t){if(Ld(e)<=t)return e;let n=0,r=e.length,i=``;for(;n<=r;){let a=Math.floor((n+r)/2),o=e.slice(0,a);Ld(o)<=t?(i=o,n=a+1):r=a-1}return i}function Bd(e){return typeof e==`string`?e:`text`in e&&typeof e.text==`string`?e.text:``}function Vd(e,t){return typeof e==`string`?t:{...e,text:t}}function Hd(e){return typeof e==`object`&&!!e&&`content`in e&&typeof e.content==`string`}function Ud(e){return typeof e==`object`&&!!e&&`content`in e&&Array.isArray(e.content)}function Wd(e){return typeof e==`object`&&!!e&&`parts`in e&&Array.isArray(e.parts)&&e.parts.length>0}function Gd(e,t){let n=t-Rd({...e,content:``});if(n<=0)return[];let r=zd(e.content,n);return[{...e,content:r}]}function Kd(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 qd(e,t){let{key:n,items:r}=Kd(e);if(n===null||r.length===0)return[];let i=r.map(e=>Vd(e,``)),a=t-Rd({...e,[n]:i});if(a<=0)return[];let o=[];for(let e of r){let t=Bd(e),n=Ld(t);if(n<=a)o.push(e),a-=n;else if(o.length===0){let n=zd(t,a);n&&o.push(Vd(e,n));break}else break}return o.length<=0?[]:[{...e,[n]:o}]}function Jd(e,t){if(!e)return[];if(typeof e==`string`){let n=zd(e,t);return n?[n]:[]}return typeof e==`object`?Hd(e)?Gd(e,t):Ud(e)||Wd(e)?qd(e,t):[]:[]}function Yd(e){return e.map(e=>{let t;return e&&typeof e==`object`&&(Ud(e)?t={...e,content:Yd(e.content)}:`content`in e&&yd(e.content)&&(t={...e,content:Fd(e.content)}),Wd(e)&&(t={...t??e,parts:Yd(e.parts)}),yd(t)?t=Fd(t):yd(e)&&(t=Fd(e))),t??e})}function Xd(e,t){if(!Array.isArray(e)||e.length===0)return e;let n=t-2,r=e[e.length-1],i=Yd([r]),a=i[0];return Rd(a)<=n?i:Jd(a,n)}function Zd(e){return Xd(e,Id)}function Qd(e){return zd(e,Id)}function $d(e){let t=!!A()?.getOptions().sendDefaultPii;return{...e,recordInputs:e?.recordInputs??t,recordOutputs:e?.recordOutputs??t}}function ef(e){let t=A();return e??!(t&&Di(t))}function tf(e,t){return e?`${e}.${t}`:t}function nf(e,t,n,r,i){if(t!==void 0&&e.setAttributes({[Zu]:t}),n!==void 0&&e.setAttributes({[Qu]:n}),t!==void 0||n!==void 0||r!==void 0||i!==void 0){let a=(t??0)+(n??0)+(r??0)+(i??0);e.setAttributes({[$u]:a})}}function rf(e,t,n){if(!e.isRecording())return;let r={[od]:!0};t.responseId&&(r[Yu]=t.responseId),t.responseModel&&(r[Ju]=t.responseModel),t.promptTokens!==void 0&&(r[Zu]=t.promptTokens),t.completionTokens!==void 0&&(r[Qu]=t.completionTokens),t.totalTokens===void 0?(t.promptTokens!==void 0||t.completionTokens!==void 0||t.cacheCreationInputTokens!==void 0||t.cacheReadInputTokens!==void 0)&&(r[$u]=(t.promptTokens??0)+(t.completionTokens??0)+(t.cacheCreationInputTokens??0)+(t.cacheReadInputTokens??0)):r[$u]=t.totalTokens,t.finishReasons.length&&(r[qu]=JSON.stringify(t.finishReasons)),n&&t.responseTexts.length&&(r[id]=t.responseTexts.join(``)),n&&t.toolCalls.length&&(r[sd]=JSON.stringify(t.toolCalls)),e.setAttributes(r),e.end()}function af(e){return typeof e==`string`?e:JSON.stringify(e)}function of(e){if(typeof e==`string`)return Qd(e);if(Array.isArray(e)){let t=Zd(e);return JSON.stringify(t)}return JSON.stringify(e)}function sf(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};let t=e.findIndex(e=>e&&typeof e==`object`&&`role`in e&&e.role===`system`);if(t===-1)return{systemInstructions:void 0,filteredMessages:e};let n=e[t],r=typeof n.content==`string`?n.content:n.content===void 0?void 0:JSON.stringify(n.content);return r?{systemInstructions:JSON.stringify([{type:`text`,content:r}]),filteredMessages:[...e.slice(0,t),...e.slice(t+1)]}:{systemInstructions:void 0,filteredMessages:e}}async function cf(e,t,n){let r=e.catch(e=>{throw I(e,{mechanism:{handled:!1,type:n}}),e}),i=await t,a=await r;return a&&typeof a==`object`&&`data`in a?{...a,data:i}:i}function lf(e,t,n){return je(e)?new Proxy(e,{get(e,r){let i=r in Promise.prototype||r===Symbol.toStringTag?t:e,a=Reflect.get(i,r);return r===`withResponse`&&typeof a==`function`?function(){return cf(a.call(e),t,n)}:typeof a==`function`?a.bind(i):a}}):t}var uf={"responses.create":{operation:`chat`},"chat.completions.create":{operation:`chat`},"embeddings.create":{operation:`embeddings`},"conversations.create":{operation:`chat`}},df=[`response.created`,`response.in_progress`,`response.failed`,`response.completed`,`response.incomplete`,`response.queued`,`response.output_text.delta`,...[`response.output_item.added`,`response.function_call_arguments.delta`,`response.function_call_arguments.done`,`response.output_item.done`]];function ff(e){return typeof e==`object`&&!!e&&`type`in e&&typeof e.type==`string`&&e.type.startsWith(`response.`)}function pf(e){return typeof e==`object`&&!!e&&`object`in e&&e.object===`chat.completion.chunk`}function mf(e,t,n){if(!t||typeof t!=`object`)return;let r=t,i={};if(typeof r.id==`string`&&(i[Yu]=r.id),typeof r.model==`string`&&(i[Ju]=r.model),r.object===`conversation`&&typeof r.id==`string`&&(i[ud]=r.id),r.usage&&typeof r.usage==`object`){let e=r.usage,t=e.prompt_tokens??e.input_tokens;typeof t==`number`&&(i[Zu]=t);let n=e.completion_tokens??e.output_tokens;typeof n==`number`&&(i[Qu]=n),typeof e.total_tokens==`number`&&(i[$u]=e.total_tokens)}if(Array.isArray(r.choices)){let e=r.choices,t=e.map(e=>e.finish_reason).filter(e=>typeof e==`string`);if(t.length>0&&(i[qu]=JSON.stringify(t)),n){let t=e.map(e=>e.message?.content||``);i[id]=JSON.stringify(t);let n=e.map(e=>e.message?.tool_calls).filter(e=>Array.isArray(e)&&e.length>0).flat();n.length>0&&(i[sd]=JSON.stringify(n))}}if(typeof r.status==`string`&&(i[`gen_ai.response.finish_reasons`]||(i[qu]=JSON.stringify([r.status]))),n&&(typeof r.output_text==`string`&&!i[`gen_ai.response.text`]&&(i[id]=r.output_text),Array.isArray(r.output)&&r.output.length>0&&!i[`gen_ai.response.tool_calls`])){let e=r.output.filter(e=>e?.type===`function_call`);e.length>0&&(i[sd]=JSON.stringify(e))}e.setAttributes(i)}function hf(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 gf(e){let t={[Lu]:e.model??`unknown`};`temperature`in e&&(t[zu]=e.temperature),`top_p`in e&&(t[Uu]=e.top_p),`frequency_penalty`in e&&(t[Vu]=e.frequency_penalty),`presence_penalty`in e&&(t[Hu]=e.presence_penalty),`stream`in e&&(t[Ru]=e.stream),`encoding_format`in e&&(t[Gu]=e.encoding_format),`dimensions`in e&&(t[Ku]=e.dimensions);let n=hf(e);return n&&(t[ud]=n),t}function _f(e,t){for(let n of e){let e=n.index;if(!(e===void 0||!n.function))if(!(e in t.chatCompletionToolCalls))t.chatCompletionToolCalls[e]={...n,function:{name:n.function.name,arguments:n.function.arguments||``}};else{let r=t.chatCompletionToolCalls[e];n.function.arguments&&r?.function&&(r.function.arguments+=n.function.arguments)}}}function vf(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(let r of e.choices??[])n&&(r.delta?.content&&t.responseTexts.push(r.delta.content),r.delta?.tool_calls&&_f(r.delta.tool_calls,t)),r.finish_reason&&t.finishReasons.push(r.finish_reason)}function yf(e,t,n,r){if(!(e&&typeof e==`object`)){t.eventTypes.push(`unknown:non-object`);return}if(e instanceof Error){r.setStatus({code:2,message:`internal_error`}),I(e,{mechanism:{handled:!1,type:`auto.ai.openai.stream-response`}});return}if(!(`type`in e))return;let i=e;if(!df.includes(i.type)){t.eventTypes.push(i.type);return}if(n&&(i.type===`response.output_item.done`&&`item`in i&&t.responsesApiToolCalls.push(i.item),i.type===`response.output_text.delta`&&`delta`in i&&i.delta)){t.responseTexts.push(i.delta);return}if(`response`in i){let{response:e}=i;t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,e.usage&&(t.promptTokens=e.usage.input_tokens,t.completionTokens=e.usage.output_tokens,t.totalTokens=e.usage.total_tokens),e.status&&t.finishReasons.push(e.status),n&&e.output_text&&t.responseTexts.push(e.output_text)}}async function*bf(e,t,n){let r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:``,responseModel:``,promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(let i of e)pf(i)?vf(i,r,n):ff(i)&&yf(i,r,n,t),yield i}finally{let e=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];rf(t,{...r,toolCalls:e},n)}}function xf(e){let t=Array.isArray(e.tools)?e.tools:[],n=e.web_search_options&&typeof e.web_search_options==`object`?[{type:`web_search_options`,...e.web_search_options}]:[],i=[...t,...n];if(i.length!==0)try{return JSON.stringify(i)}catch(e){r&&x.error(`Failed to serialize OpenAI tools:`,e);return}}function Sf(e,t){let n={[Iu]:`openai`,[ed]:t,[M]:`auto.ai.openai`};if(e.length>0&&typeof e[0]==`object`&&e[0]!==null){let t=e[0],r=xf(t);r&&(n[ad]=r),Object.assign(n,gf(t))}else n[Lu]=`unknown`;return n}function Cf(e,t,n,r){if(n===`embeddings`&&`input`in t){let n=t.input;if(n==null||typeof n==`string`&&n.length===0||Array.isArray(n)&&n.length===0)return;e.setAttribute(md,typeof n==`string`?n:JSON.stringify(n));return}let i=`input`in t?t.input:`messages`in t?t.messages:void 0;if(!i||Array.isArray(i)&&i.length===0)return;let{systemInstructions:a,filteredMessages:o}=sf(i);a&&e.setAttribute(rd,a),e.setAttribute(nd,r?of(o):af(o)),Array.isArray(o)?e.setAttribute(td,o.length):e.setAttribute(td,1)}function wf(e,t,n,r,i){return function(...a){let o=n.operation||`unknown`,s=Sf(a,o),c=s[`gen_ai.request.model`]||`unknown`,l=a[0],u=l&&typeof l==`object`&&l.stream===!0,d={name:`${o} ${c}`,op:`gen_ai.${o}`,attributes:s};if(u){let n,s=zi(d,s=>(n=e.apply(r,a),i.recordInputs&&l&&Cf(s,l,o,ef(i.enableTruncation)),(async()=>{try{return bf(await n,s,i.recordOutputs??!1)}catch(e){throw s.setStatus({code:2,message:`internal_error`}),I(e,{mechanism:{handled:!1,type:`auto.ai.openai.stream`,data:{function:t}}}),s.end(),e}})()));return lf(n,s,`auto.ai.openai`)}let f,p=Ri(d,n=>(f=e.apply(r,a),i.recordInputs&&l&&Cf(n,l,o,ef(i.enableTruncation)),f.then(e=>(mf(n,e,i.recordOutputs),e),e=>{throw I(e,{mechanism:{handled:!1,type:`auto.ai.openai`,data:{function:t}}}),e})));return lf(f,p,`auto.ai.openai`)}}function Tf(e,t=``,n){return new Proxy(e,{get(e,r){let i=e[r],a=tf(t,String(r)),o=uf[a];return typeof i==`function`&&o?wf(i,a,o,e,n):typeof i==`function`?i.bind(e):i&&typeof i==`object`?Tf(i,a,n):i}})}function Ef(e,t){return Tf(e,``,$d(t))}var Df={"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 Of(e,t,n){if(Array.isArray(t)&&t.length===0)return;let{systemInstructions:r,filteredMessages:i}=sf(t);r&&e.setAttributes({[rd]:r});let a=Array.isArray(i)?i.length:1;e.setAttributes({[nd]:n?of(i):af(i),[td]:a})}var kf={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 Af(e){return e&&kf[e]||`internal_error`}function jf(e,t){t.error&&(e.setStatus({code:2,message:Af(t.error.type)}),I(t.error,{mechanism:{handled:!1,type:`auto.ai.anthropic.anthropic_error`}}))}function Mf(e){let{system:t,messages:n,input:r}=e,i=typeof t==`string`?[{role:`system`,content:e.system}]:[],a=(Array.isArray(r)?r:r==null?void 0:[r])??(Array.isArray(n)?n:n==null?[]:[n]);return[...i,...a]}function Nf(e,t){return`type`in e&&typeof e.type==`string`&&e.type===`error`?(t.setStatus({code:2,message:Af(e.error?.type)}),I(e.error,{mechanism:{handled:!1,type:`auto.ai.anthropic.anthropic_error`}}),!0):!1}function Pf(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){let 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 Ff(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 If(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`){let n=t.activeToolBlocks[e.index];n&&n.inputJsonParts.push(e.delta.partial_json)}n&&typeof e.delta.text==`string`&&t.responseTexts.push(e.delta.text)}}function Lf(e,t){if(e.type!==`content_block_stop`||typeof e.index!=`number`)return;let n=t.activeToolBlocks[e.index];if(!n)return;let r=n.inputJsonParts.join(``),i;try{i=r?JSON.parse(r):{}}catch{i={__unparsed:r}}t.toolCalls.push({type:`tool_use`,id:n.id,name:n.name,input:i}),delete t.activeToolBlocks[e.index]}function Rf(e,t,n,r){e&&typeof e==`object`&&(Nf(e,r)||(Pf(e,t),Ff(e,t),If(e,t,n),Lf(e,t)))}async function*zf(e,t,n){let r={responseTexts:[],finishReasons:[],responseId:``,responseModel:``,promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(let i of e)Rf(i,r,n,t),yield i}finally{rf(t,r,n)}}function Bf(e,t,n){let r={responseTexts:[],finishReasons:[],responseId:``,responseModel:``,promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return e.on(`streamEvent`,e=>{Rf(e,r,n,t)}),e.on(`message`,()=>{rf(t,r,n)}),e.on(`error`,e=>{I(e,{mechanism:{handled:!1,type:`auto.ai.anthropic.stream_error`}}),t.isRecording()&&(t.setStatus({code:2,message:`internal_error`}),t.end())}),e}function Vf(e,t,n){let r={[Iu]:`anthropic`,[ed]:n,[M]:`auto.ai.anthropic`};if(e.length>0&&typeof e[0]==`object`&&e[0]!==null){let t=e[0];t.tools&&Array.isArray(t.tools)&&(r[ad]=JSON.stringify(t.tools)),r[Lu]=t.model??`unknown`,`temperature`in t&&(r[zu]=t.temperature),`top_p`in t&&(r[Uu]=t.top_p),`stream`in t&&(r[Ru]=t.stream),`top_k`in t&&(r[Wu]=t.top_k),`frequency_penalty`in t&&(r[Vu]=t.frequency_penalty),`max_tokens`in t&&(r[Bu]=t.max_tokens)}else t===`models.retrieve`||t===`models.get`?r[Lu]=e[0]:r[Lu]=`unknown`;return r}function Hf(e,t,n){Of(e,Mf(t),n),`prompt`in t&&e.setAttributes({[Fu]:JSON.stringify(t.prompt)})}function Uf(e,t){if(`content`in t&&Array.isArray(t.content)){e.setAttributes({[id]:t.content.map(e=>e.text).filter(e=>!!e).join(``)});let n=[];for(let e of t.content)(e.type===`tool_use`||e.type===`server_tool_use`)&&n.push(e);n.length>0&&e.setAttributes({[sd]:JSON.stringify(n)})}`completion`in t&&e.setAttributes({[id]:t.completion}),`input_tokens`in t&&e.setAttributes({[id]:JSON.stringify(t.input_tokens)})}function Wf(e,t){`id`in t&&`model`in t&&(e.setAttributes({[Yu]:t.id,[Ju]:t.model}),`usage`in t&&t.usage&&nf(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}function Gf(e,t,n){if(!(!t||typeof t!=`object`)){if(`type`in t&&t.type===`error`){jf(e,t);return}n&&Uf(e,t),Wf(e,t)}}function Kf(e,t,n){throw I(e,{mechanism:{handled:!1,type:`auto.ai.anthropic`,data:{function:n}}}),t.isRecording()&&(t.setStatus({code:2,message:`internal_error`}),t.end()),e}function qf(e,t,n,r,i,a,o,s,c,l,u){let d={name:`${a} ${i[`gen_ai.request.model`]??`unknown`}`,op:`gen_ai.${a}`,attributes:i};if(l&&!u){let t,i=zi(d,i=>(t=e.apply(n,r),c.recordInputs&&s&&Hf(i,s,ef(c.enableTruncation)),(async()=>{try{return zf(await t,i,c.recordOutputs??!1)}catch(e){return Kf(e,i,o)}})()));return lf(t,i,`auto.ai.anthropic`)}else return zi(d,e=>{try{return c.recordInputs&&s&&Hf(e,s,ef(c.enableTruncation)),Bf(t.apply(n,r),e,c.recordOutputs??!1)}catch(t){return Kf(t,e,o)}})}function Jf(e,t,n,r,i){return new Proxy(e,{apply(a,o,s){let c=n.operation||`unknown`,l=Vf(s,t,c),u=l[`gen_ai.request.model`]??`unknown`,d=typeof s[0]==`object`?s[0]:void 0,f=!!d?.stream,p=n.streaming===!0;if(f||p)return qf(e,a,r,s,l,c,t,d,i,f,p);let m,h=Ri({name:`${c} ${u}`,op:`gen_ai.${c}`,attributes:l},e=>(m=a.apply(r,s),i.recordInputs&&d&&Hf(e,d,ef(i.enableTruncation)),m.then(t=>(Gf(e,t,i.recordOutputs),t),e=>{throw I(e,{mechanism:{handled:!1,type:`auto.ai.anthropic`,data:{function:t}}}),e})));return lf(m,h,`auto.ai.anthropic`)}})}function Yf(e,t=``,n){return new Proxy(e,{get(e,r){let i=e[r],a=tf(t,String(r)),o=Df[a];return typeof i==`function`&&o?Jf(i,a,o,e,n):typeof i==`function`?i.bind(e):i&&typeof i==`object`?Yf(i,a,n):i}})}function Xf(e,t){return Yf(e,``,$d(t))}var Zf={"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}},Qf=`google_genai`;function $f(e,t){let n=e?.promptFeedback;if(n?.blockReason){let e=n.blockReasonMessage??n.blockReason;return t.setStatus({code:2,message:`internal_error`}),I(`Content blocked: ${e}`,{mechanism:{handled:!1,type:`auto.ai.google_genai`}}),!0}return!1}function ep(e,t){typeof e.responseId==`string`&&(t.responseId=e.responseId),typeof e.modelVersion==`string`&&(t.responseModel=e.modelVersion);let 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 tp(e,t,n){Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls);for(let r of e.candidates??[]){r?.finishReason&&!t.finishReasons.includes(r.finishReason)&&t.finishReasons.push(r.finishReason);for(let e of r?.content?.parts??[])n&&e.text&&t.responseTexts.push(e.text),e.functionCall&&t.toolCalls.push({type:`function`,id:e.functionCall.id,name:e.functionCall.name,arguments:e.functionCall.args})}}function np(e,t,n,r){!e||$f(e,r)||(ep(e,t),tp(e,t,n))}async function*rp(e,t,n){let r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(let i of e)np(i,r,n,t),yield i}finally{rf(t,r,n)}}function ip(e,t=`user`){return typeof e==`string`?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(e=>ip(e,t)):typeof e!=`object`||!e?[]:`role`in e&&typeof e.role==`string`?[e]:`parts`in e?[{...e,role:t}]:[{role:t,content:e}]}function ap(e,t){if(`model`in e&&typeof e.model==`string`)return e.model;if(t&&typeof t==`object`){let e=t;if(`model`in e&&typeof e.model==`string`)return e.model;if(`modelVersion`in e&&typeof e.modelVersion==`string`)return e.modelVersion}return`unknown`}function op(e){let t={};return`temperature`in e&&typeof e.temperature==`number`&&(t[zu]=e.temperature),`topP`in e&&typeof e.topP==`number`&&(t[Uu]=e.topP),`topK`in e&&typeof e.topK==`number`&&(t[Wu]=e.topK),`maxOutputTokens`in e&&typeof e.maxOutputTokens==`number`&&(t[Bu]=e.maxOutputTokens),`frequencyPenalty`in e&&typeof e.frequencyPenalty==`number`&&(t[Vu]=e.frequencyPenalty),`presencePenalty`in e&&typeof e.presencePenalty==`number`&&(t[Hu]=e.presencePenalty),t}function sp(e,t,n){let r={[Iu]:Qf,[ed]:e,[M]:`auto.ai.google_genai`};if(t){if(r[Lu]=ap(t,n),`config`in t&&typeof t.config==`object`&&t.config){let e=t.config;if(Object.assign(r,op(e)),`tools`in e&&Array.isArray(e.tools)){let t=e.tools.flatMap(e=>e.functionDeclarations);r[ad]=JSON.stringify(t)}}}else r[Lu]=ap({},n);return r}function cp(e,t,n,r){if(n){let n=t.contents;n!=null&&e.setAttribute(md,typeof n==`string`?n:JSON.stringify(n));return}let i=[];if(`config`in t&&t.config&&typeof t.config==`object`&&`systemInstruction`in t.config&&t.config.systemInstruction&&i.push(...ip(t.config.systemInstruction,`system`)),`history`in t&&i.push(...ip(t.history,`user`)),`contents`in t&&i.push(...ip(t.contents,`user`)),`message`in t&&i.push(...ip(t.message,`user`)),Array.isArray(i)&&i.length){let{systemInstructions:t,filteredMessages:n}=sf(i);t&&e.setAttribute(rd,t);let a=Array.isArray(n)?n.length:0;e.setAttributes({[td]:a,[nd]:r?of(n):af(n)})}}function lp(e,t,n){if(!(!t||typeof t!=`object`)){if(t.modelVersion&&e.setAttribute(Ju,t.modelVersion),t.usageMetadata&&typeof t.usageMetadata==`object`){let n=t.usageMetadata;typeof n.promptTokenCount==`number`&&e.setAttributes({[Zu]:n.promptTokenCount}),typeof n.candidatesTokenCount==`number`&&e.setAttributes({[Qu]:n.candidatesTokenCount}),typeof n.totalTokenCount==`number`&&e.setAttributes({[$u]:n.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){let n=t.candidates.map(e=>e.content?.parts&&Array.isArray(e.content.parts)?e.content.parts.map(e=>typeof e.text==`string`?e.text:``).filter(e=>e.length>0).join(``):``).filter(e=>e.length>0);n.length>0&&e.setAttributes({[id]:n.join(``)})}if(n&&t.functionCalls){let n=t.functionCalls;Array.isArray(n)&&n.length>0&&e.setAttributes({[sd]:JSON.stringify(n)})}}}function up(e,t,n,r,i){let a=n.operation===`embeddings`;return new Proxy(e,{apply(e,o,s){let c=n.operation||`unknown`,l=s[0],u=sp(c,l,r),d=u[`gen_ai.request.model`]??`unknown`;return n.streaming?zi({name:`${c} ${d}`,op:`gen_ai.${c}`,attributes:u},async n=>{try{return i.recordInputs&&l&&cp(n,l,a,ef(i.enableTruncation)),rp(await e.apply(r,s),n,!!i.recordOutputs)}catch(e){throw n.setStatus({code:2,message:`internal_error`}),I(e,{mechanism:{handled:!1,type:`auto.ai.google_genai`,data:{function:t}}}),n.end(),e}}):Ri({name:`${c} ${d}`,op:`gen_ai.${c}`,attributes:u},n=>(i.recordInputs&&l&&cp(n,l,a,ef(i.enableTruncation)),Pi(()=>e.apply(r,s),e=>{I(e,{mechanism:{handled:!1,type:`auto.ai.google_genai`,data:{function:t}}})},()=>{},e=>{a||lp(n,e,i.recordOutputs)})))}})}function dp(e,t=``,n){return new Proxy(e,{get:(e,r,i)=>{let a=Reflect.get(e,r,i),o=tf(t,String(r)),s=Zf[o];if(typeof a==`function`&&s){let t=s.operation?up(a,o,s,e,n):a.bind(e);return s.proxyResultPath?function(...e){let r=t(...e);return r&&typeof r==`object`?dp(r,s.proxyResultPath,n):r}:t}return typeof a==`function`?a.bind(e):a&&typeof a==`object`?dp(a,o,n):a}})}function fp(e,t){return dp(e,``,$d(t))}var pp=`auto.ai.langchain`,mp={human:`user`,ai:`assistant`,assistant:`assistant`,system:`system`,function:`function`,tool:`tool`},hp=(e,t,n)=>{n!=null&&(e[t]=n)},gp=(e,t,n)=>{let r=Number(n);Number.isNaN(r)||(e[t]=r)};function _p(e){if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function vp(e){if(Array.isArray(e))try{let t=e.map(e=>e&&typeof e==`object`&&yd(e)?Fd(e):e);return JSON.stringify(t)}catch{return String(e)}return _p(e)}function yp(e){let t=e.toLowerCase();return mp[t]??t}function bp(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 xp(e){if(!(!e||Array.isArray(e)))return e.invocation_params}function Sp(e){return e.map(e=>{let t=e._getType;if(typeof t==`function`)return{role:yp(t.call(e)),content:vp(e.content)};if(e.lc===1&&e.kwargs){let t=e.id,n=Array.isArray(t)&&t.length>0?t[t.length-1]:``;return{role:yp(typeof n==`string`?bp(n):`user`),content:vp(e.kwargs?.content)}}if(e.type)return{role:yp(String(e.type).toLowerCase()),content:vp(e.content)};if(e.role)return{role:yp(String(e.role)),content:vp(e.content)};let n=e.constructor?.name;return n&&n!==`Object`?{role:yp(bp(n)),content:vp(e.content)}:{role:`user`,content:vp(e.content)}})}function Cp(e,t,n){let r={},i=`kwargs`in e?e.kwargs:void 0;gp(r,zu,t?.temperature??n?.ls_temperature??i?.temperature),gp(r,Bu,t?.max_tokens??n?.ls_max_tokens??i?.max_tokens),gp(r,Uu,t?.top_p??i?.top_p);let a=t?.frequency_penalty;gp(r,Vu,a);let o=t?.presence_penalty;return gp(r,Hu,o),t&&`stream`in t&&hp(r,Ru,!!t.stream),r}function wp(e,t,n,r,i){return{[Iu]:_p(e??`langchain`),[ed]:`chat`,[Lu]:_p(t),[M]:pp,...Cp(n,r,i)}}function Tp(e,t,n,r,i,a){let o=a?.ls_provider,s=wp(o,i?.model??a?.ls_model_name??`unknown`,e,i,a);if(n&&Array.isArray(t)&&t.length>0){hp(s,td,t.length);let e=t.map(e=>({role:`user`,content:e}));hp(s,nd,r?of(e):af(e))}return s}function Ep(e,t,n,r,i,a){let o=wp(a?.ls_provider??e.id?.[2],i?.model??a?.ls_model_name??`unknown`,e,i,a);if(n&&Array.isArray(t)&&t.length>0){let{systemInstructions:e,filteredMessages:n}=sf(Sp(t.flat()));e&&hp(o,rd,e),hp(o,td,Array.isArray(n)?n.length:0),hp(o,nd,r?of(n):af(n))}return o}function Dp(e,t){let n=[],r=e.flat();for(let e of r){let t=e.message?.content;if(Array.isArray(t))for(let e of t){let t=e;t.type===`tool_use`&&n.push(t)}}n.length>0&&hp(t,sd,_p(n))}function Op(e,t){if(!e)return;let n=e.tokenUsage,r=e.usage;if(n)gp(t,Zu,n.promptTokens),gp(t,Qu,n.completionTokens),gp(t,$u,n.totalTokens);else if(r){gp(t,Zu,r.input_tokens),gp(t,Qu,r.output_tokens);let e=Number(r.input_tokens),n=Number(r.output_tokens),i=(Number.isNaN(e)?0:e)+(Number.isNaN(n)?0:n);i>0&&gp(t,$u,i),r.cache_creation_input_tokens!==void 0&&gp(t,dd,r.cache_creation_input_tokens),r.cache_read_input_tokens!==void 0&&gp(t,fd,r.cache_read_input_tokens)}}function kp(e,t){if(!e)return;let n={};if(Array.isArray(e.generations)){let r=e.generations.flat().map(e=>e.generationInfo?.finish_reason?e.generationInfo.finish_reason:e.generation_info?.finish_reason?e.generation_info.finish_reason:null).filter(e=>typeof e==`string`);if(r.length>0&&hp(n,qu,_p(r)),Dp(e.generations,n),t){let t=e.generations.flat().map(e=>e.text??e.message?.content).filter(e=>typeof e==`string`);t.length>0&&hp(n,id,_p(t))}}Op(e.llmOutput,n);let r=e.llmOutput,i=e.generations?.[0]?.[0]?.message,a=r?.model_name??r?.model??i?.response_metadata?.model_name;a&&hp(n,Ju,a);let o=r?.id??i?.id;o&&hp(n,Yu,o);let s=r?.stop_reason??i?.response_metadata?.finish_reason;return s&&hp(n,Xu,_p(s)),n}function Ap(e={}){let{recordInputs:t,recordOutputs:n}=$d(e),r=ef(e.enableTruncation),i=new Map,a=e=>{let t=i.get(e);t?.isRecording()&&(t.end(),i.delete(e))},o={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(e,n,a,o,s,c,l,u){let d=Tp(e,n,t,r,xp(c),l),f=d[Lu],p=d[ed];zi({name:`${p} ${f}`,op:`gen_ai.chat`,attributes:{...d,[j]:`gen_ai.chat`}},e=>(i.set(a,e),e))},handleChatModelStart(e,n,a,o,s,c,l,u){let d=Ep(e,n,t,r,xp(c),l),f=d[Lu],p=d[ed];zi({name:`${p} ${f}`,op:`gen_ai.chat`,attributes:{...d,[j]:`gen_ai.chat`}},e=>(i.set(a,e),e))},handleLLMEnd(e,t,r,o,s){let c=i.get(t);if(c?.isRecording()){let r=kp(e,n);r&&c.setAttributes(r),a(t)}},handleLLMError(e,t){let n=i.get(t);n?.isRecording()&&(n.setStatus({code:2,message:`internal_error`}),a(t)),I(e,{mechanism:{handled:!1,type:`${pp}.llm_error_handler`}})},handleChainStart(e,n,r,a,o,s,c,l){let u=l||e.name||`unknown_chain`,d={[M]:`auto.ai.langchain`,"langchain.chain.name":u};t&&(d[`langchain.chain.inputs`]=JSON.stringify(n)),zi({name:`chain ${u}`,op:`gen_ai.invoke_agent`,attributes:{...d,[j]:`gen_ai.invoke_agent`}},e=>(i.set(r,e),e))},handleChainEnd(e,t){let r=i.get(t);r?.isRecording()&&(n&&r.setAttributes({"langchain.chain.outputs":JSON.stringify(e)}),a(t))},handleChainError(e,t){let n=i.get(t);n?.isRecording()&&(n.setStatus({code:2,message:`internal_error`}),a(t)),I(e,{mechanism:{handled:!1,type:`${pp}.chain_error_handler`}})},handleToolStart(e,n,r,a){let o=e.name||`unknown_tool`,s={[M]:pp,[gd]:o};t&&(s[_d]=n),zi({name:`execute_tool ${o}`,op:`gen_ai.execute_tool`,attributes:{...s,[j]:`gen_ai.execute_tool`}},e=>(i.set(r,e),e))},handleToolEnd(e,t){let r=i.get(t);r?.isRecording()&&(n&&r.setAttributes({[vd]:JSON.stringify(e)}),a(t))},handleToolError(e,t){let n=i.get(t);n?.isRecording()&&(n.setStatus({code:2,message:`internal_error`}),a(t)),I(e,{mechanism:{handled:!1,type:`${pp}.tool_error_handler`}})},copy(){return o},toJSON(){return{lc:1,type:`not_implemented`,id:o.lc_id}},toJSONNotImplemented(){return{lc:1,type:`not_implemented`,id:o.lc_id}}};return o}var jp=`auto.ai.langgraph`;function Mp(e){if(!e||e.length===0)return null;let t=[];for(let n of e)if(n&&typeof n==`object`){let e=n.tool_calls;e&&Array.isArray(e)&&t.push(...e)}return t.length>0?t:null}function Np(e){let t=e,n=0,r=0,i=0;if(t.usage_metadata&&typeof t.usage_metadata==`object`){let e=t.usage_metadata;return typeof e.input_tokens==`number`&&(n=e.input_tokens),typeof e.output_tokens==`number`&&(r=e.output_tokens),typeof e.total_tokens==`number`&&(i=e.total_tokens),{inputTokens:n,outputTokens:r,totalTokens:i}}if(t.response_metadata&&typeof t.response_metadata==`object`){let e=t.response_metadata;if(e.tokenUsage&&typeof e.tokenUsage==`object`){let t=e.tokenUsage;typeof t.promptTokens==`number`&&(n=t.promptTokens),typeof t.completionTokens==`number`&&(r=t.completionTokens),typeof t.totalTokens==`number`&&(i=t.totalTokens)}}return{inputTokens:n,outputTokens:r,totalTokens:i}}function Pp(e,t){let n=t;if(n.response_metadata&&typeof n.response_metadata==`object`){let t=n.response_metadata;t.model_name&&typeof t.model_name==`string`&&e.setAttribute(Ju,t.model_name),t.finish_reason&&typeof t.finish_reason==`string`&&e.setAttribute(qu,[t.finish_reason])}}function Fp(e){if(!e.builder?.nodes?.tools?.runnable?.tools)return null;let t=e.builder?.nodes?.tools?.runnable?.tools;return!t||!Array.isArray(t)||t.length===0?null:t.map(e=>({name:e.lc_kwargs?.name,description:e.lc_kwargs?.description,schema:e.lc_kwargs?.schema}))}function Ip(e,t,n){let r=n?.messages;if(!r||!Array.isArray(r))return;let i=t?.length??0,a=r.length>i?r.slice(i):[];if(a.length===0)return;let o=Mp(a);o&&e.setAttribute(sd,JSON.stringify(o));let s=Sp(a);e.setAttribute(id,JSON.stringify(s));let c=0,l=0,u=0;for(let t of a){let n=Np(t);c+=n.inputTokens,l+=n.outputTokens,u+=n.totalTokens,Pp(e,t)}c>0&&e.setAttribute(Zu,c),l>0&&e.setAttribute(Qu,l),u>0&&e.setAttribute($u,u)}function Lp(e,t){return new Proxy(e,{apply(e,n,r){return Ri({op:`gen_ai.create_agent`,name:`create_agent`,attributes:{[M]:jp,[j]:`gen_ai.create_agent`,[ed]:`create_agent`}},i=>{try{let a=Reflect.apply(e,n,r),o=r.length>0?r[0]:{};o?.name&&typeof o.name==`string`&&(i.setAttribute(cd,o.name),i.updateName(`create_agent ${o.name}`));let s=a.invoke;return s&&typeof s==`function`&&(a.invoke=Rp(s.bind(a),a,o,t)),a}catch(e){throw i.setStatus({code:2,message:`internal_error`}),I(e,{mechanism:{handled:!1,type:`auto.ai.langgraph.error`}}),e}})}})}function Rp(e,t,n,r){return new Proxy(e,{apply(e,i,a){return Ri({op:`gen_ai.invoke_agent`,name:`invoke_agent`,attributes:{[M]:jp,[j]:pd,[ed]:`invoke_agent`}},async o=>{try{let s=n?.name;s&&typeof s==`string`&&(o.setAttribute(ld,s),o.setAttribute(cd,s),o.updateName(`invoke_agent ${s}`));let c=(a.length>1?a[1]:void 0)?.configurable?.thread_id;c&&typeof c==`string`&&o.setAttribute(ud,c);let l=Fp(t);l&&o.setAttribute(ad,JSON.stringify(l));let u=r.recordInputs,d=r.recordOutputs,f=a.length>0?a[0]?.messages??[]:[];if(f&&u){let{systemInstructions:e,filteredMessages:t}=sf(Sp(f));e&&o.setAttribute(rd,e);let n=ef(r.enableTruncation),i=Array.isArray(t)?t.length:0;o.setAttributes({[nd]:n?of(t):af(t),[td]:i})}let p=await Reflect.apply(e,i,a);return d&&Ip(o,f??null,p),p}catch(e){throw o.setStatus({code:2,message:`internal_error`}),I(e,{mechanism:{handled:!1,type:`auto.ai.langgraph.error`}}),e}})}})}function zp(e,t){return e.compile=Lp(e.compile,$d(t)),e}function Bp(e,t,n){let r=n.getDsn(),i=n.getOptions().tunnel,a=_i(n.getOptions()._metadata);return ri({sent_at:new Date().toISOString(),...Vp(t)&&{trace:t},...a&&{sdk:a},...!!i&&r&&{dsn:Kn(r)}},[[{type:`span`,item_count:e.length,content_type:`application/vnd.sentry.items.span.v2+json`},{items:e}]])}function Vp(e){return!!e.trace_id&&!!e.public_key}function Hp(e){let t=156;if(t+=e.name.length*2,t+=Zt(e.attributes),e.links&&e.links.length>0){let n=e.links[0]?.attributes,r=100+(n?Zt(n):0);t+=r*e.links.length}return t}var Up=1e3,Wp=5e6,Gp=class{constructor(e,t){this._traceBuckets=new Map,this._client=e;let{maxSpanLimit:n,flushInterval:r,maxTraceWeightInBytes:i}=t??{};this._maxSpanLimit=n&&n>0&&n<=Up?n:Up,this._flushInterval=r&&r>0?r:5e3,this._maxTraceWeight=i&&i>0?i:Wp,this._client.on(`flush`,()=>{this.drain()}),this._client.on(`close`,()=>{this._traceBuckets.forEach(e=>{clearTimeout(e.timeout)}),this._traceBuckets.clear()})}add(e){let t=e.trace_id,n=this._traceBuckets.get(t);n||(n={spans:new Set,size:0,timeout:Xo(setTimeout(()=>{this.flush(t)},this._flushInterval))},this._traceBuckets.set(t,n)),n.spans.add(e),n.size+=Hp(e),(n.spans.size>=this._maxSpanLimit||n.size>=this._maxTraceWeight)&&this.flush(t)}drain(){this._traceBuckets.size&&(r&&x.log(`Flushing span tree map with ${this._traceBuckets.size} traces`),this._traceBuckets.forEach((e,t)=>{this.flush(t)}))}flush(e){let t=this._traceBuckets.get(e);if(!t)return;if(!t.spans.size){this._removeTrace(e);return}let n=Array.from(t.spans),i=n[0]?._segmentSpan;if(!i){r&&x.warn(`No segment span reference found on span JSON, cannot compute DSC`),this._removeTrace(e);return}let a=Wr(i),o=n.map(e=>{let{_segmentSpan:t,...n}=e;return n}),s=Bp(o,a,this._client);r&&x.log(`Sending span envelope for trace ${e} with ${o.length} spans`),this._client.sendEnvelope(s).then(null,e=>{r&&x.error(`Error while sending streamed span envelope:`,e)}),this._removeTrace(e)}_removeTrace(e){let t=this._traceBuckets.get(e);t&&clearTimeout(t.timeout),this._traceBuckets.delete(e)}};function Kp(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var qp=i;function Jp(){return`history`in qp&&!!qp.history}function Yp(){if(!(`fetch`in qp))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function Xp(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Zp(){if(typeof EdgeRuntime==`string`)return!0;if(!Yp())return!1;if(Xp(qp.fetch))return!0;let e=!1,t=qp.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=Xp(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){r&&x.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function Qp(){return`ReportingObserver`in qp}function $p(e,t){let n=`fetch`;le(n,e),ue(n,()=>tm(void 0,t))}function em(e){let t=`fetch-body-resolved`;le(t,e),ue(t,()=>tm(rm))}function tm(e,t=!1){t&&!Zp()||He(i,`fetch`,function(t){return function(...n){let r=Error(),{method:a,url:o}=om(n),s={args:n,fetchData:{method:a,url:o},startTimestamp:D()*1e3,virtualError:r,headers:sm(n)};return e||de(`fetch`,{...s}),t.apply(i,n).then(async t=>(e?e(t):de(`fetch`,{...s,endTimestamp:D()*1e3,response:t}),t),e=>{de(`fetch`,{...s,endTimestamp:D()*1e3,error:e}),ye(e)&&e.stack===void 0&&(e.stack=r.stack,Ue(e,`framesToPop`,1));let t=A()?.getOptions().enhanceFetchErrorMessages??`always`;if(t!==!1&&e instanceof TypeError&&(e.message===`Failed to fetch`||e.message===`Load failed`||e.message===`NetworkError when attempting to fetch resource.`))try{let n=new URL(s.fetchData.url).host;t===`always`?e.message=`${e.message} (${n})`:Ue(e,`__sentry_fetch_url_host__`,n)}catch{}throw e})}})}async function nm(e,t){if(e?.body){let n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3),a=!0;for(;a;){let e;try{e=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);let{done:i}=await r.read();clearTimeout(e),i&&(t(),a=!1)}catch{a=!1}finally{clearTimeout(e)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function rm(e){let t;try{t=e.clone()}catch{return}nm(t,()=>{de(`fetch-body-resolved`,{endTimestamp:D()*1e3,response:e})})}function im(e,t){return!!e&&typeof e==`object`&&!!e[t]}function am(e){return typeof e==`string`?e:e?im(e,`url`)?e.url:e.toString?e.toString():``:``}function om(e){if(e.length===0)return{method:`GET`,url:``};if(e.length===2){let[t,n]=e;return{url:am(t),method:im(n,`method`)?String(n.method).toUpperCase():Fe(t)&&im(t,`method`)?String(t.method).toUpperCase():`GET`}}let t=e[0];return{url:am(t),method:im(t,`method`)?String(t.method).toUpperCase():`GET`}}function sm(e){let[t,n]=e;try{if(typeof n==`object`&&n&&`headers`in n&&n.headers)return new Headers(n.headers);if(Fe(t))return new Headers(t.headers)}catch{}}function cm(){return typeof __SENTRY_BROWSER_BUNDLE__<`u`&&!!__SENTRY_BROWSER_BUNDLE__}function lm(){return`npm`}function um(){return!cm()&&Object.prototype.toString.call(typeof process<`u`?process:0)===`[object process]`}function dm(){return typeof window<`u`&&(!um()||fm())}function fm(){return i.process?.type===`renderer`}function pm(e){let 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 mm(e){let t=e??{},n={[M]:pp,[j]:hd,[ed]:`embeddings`,[Lu]:t.model??`unknown`};return n[Iu]=pm(t),`dimensions`in t&&(n[Ku]=t.dimensions),`encodingFormat`in t&&(n[Gu]=t.encodingFormat),n}function hm(e,t={}){let{recordInputs:n}=$d(t);return new Proxy(e,{apply(e,t,r){let i=mm(t),a=i[`gen_ai.request.model`]||`unknown`;if(n){let e=r[0];e!=null&&(i[md]=typeof e==`string`?e:JSON.stringify(e))}return Ri({name:`embeddings ${a}`,op:hd,attributes:i},()=>Reflect.apply(e,t,r).then(void 0,e=>{throw I(e,{mechanism:{handled:!1,type:`auto.ai.langchain`}}),e}))}})}function gm(e,t){let n=e;return typeof n.embedQuery==`function`&&(n.embedQuery=hm(n.embedQuery,t)),typeof n.embedDocuments==`function`&&(n.embedDocuments=hm(n.embedDocuments,t)),e}var _m=i,R=_m.document,vm=_m.navigator,ym=`Report a Bug`,bm=`Cancel`,xm=`Send Bug Report`,Sm=`Confirm`,Cm=`Report a Bug`,wm=`your.email@example.org`,Tm=`Email`,Em=`What's the bug? What did you expect?`,Dm=`Description`,Om=`Your Name`,km=`Name`,Am=`Thank you for your report!`,jm=`(required)`,Mm=`Add a screenshot`,Nm=`Remove screenshot`,Pm=`Highlight`,Fm=`Hide`,Im=`Remove`,Lm=`widget`,Rm=`api`,zm=5e3,Bm=(e,t={includeReplay:!0})=>{if(!e.message)throw Error(`Unable to submit feedback with empty message`);let n=A();if(!n)throw Error(`No client setup, cannot send feedback.`);e.tags&&Object.keys(e.tags).length&&O().setTags(e.tags);let r=su({source:Rm,url:Be(),...e},t);return new Promise((e,t)=>{let i=setTimeout(()=>t(`Unable to determine if Feedback was correctly sent.`),3e4),a=n.on(`afterSendEvent`,(n,o)=>{if(n.event_id===r)return clearTimeout(i),a(),o?.statusCode&&o.statusCode>=200&&o.statusCode<300?e(r):o?.statusCode===403?t(`Unable to send feedback. This could be because this domain is not in your list of allowed domains.`):t(`Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.`)})})},Vm=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;function Hm(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(vm.userAgent)||/Macintosh/i.test(vm.userAgent)&&vm.maxTouchPoints&&vm.maxTouchPoints>1||!isSecureContext)}function Um(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 Wm(e){let t=R.createElement(`style`);return t.textContent=`
|
|
5
|
+
.widget__actor {
|
|
6
|
+
position: fixed;
|
|
7
|
+
z-index: var(--z-index);
|
|
8
|
+
margin: var(--page-margin);
|
|
9
|
+
inset: var(--actor-inset);
|
|
10
|
+
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: 8px;
|
|
14
|
+
padding: 16px;
|
|
15
|
+
|
|
16
|
+
font-family: inherit;
|
|
17
|
+
font-size: var(--font-size);
|
|
18
|
+
font-weight: 600;
|
|
19
|
+
line-height: 1.14em;
|
|
20
|
+
text-decoration: none;
|
|
21
|
+
|
|
22
|
+
background: var(--actor-background, var(--background));
|
|
23
|
+
border-radius: var(--actor-border-radius, 1.7em/50%);
|
|
24
|
+
border: var(--actor-border, var(--border));
|
|
25
|
+
box-shadow: var(--actor-box-shadow, var(--box-shadow));
|
|
26
|
+
color: var(--actor-color, var(--foreground));
|
|
27
|
+
fill: var(--actor-color, var(--foreground));
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
opacity: 1;
|
|
30
|
+
transition: transform 0.2s ease-in-out;
|
|
31
|
+
transform: translate(0, 0) scale(1);
|
|
32
|
+
}
|
|
33
|
+
.widget__actor[aria-hidden="true"] {
|
|
34
|
+
opacity: 0;
|
|
35
|
+
pointer-events: none;
|
|
36
|
+
visibility: hidden;
|
|
37
|
+
transform: translate(0, 16px) scale(0.98);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.widget__actor:hover {
|
|
41
|
+
background: var(--actor-hover-background, var(--background));
|
|
42
|
+
filter: var(--interactive-filter);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.widget__actor svg {
|
|
46
|
+
width: 1.14em;
|
|
47
|
+
height: 1.14em;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@media (max-width: 600px) {
|
|
51
|
+
.widget__actor span {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
`,e&&t.setAttribute(`nonce`,e),t}function Gm(e,t){return Object.entries(t).forEach(([t,n])=>{e.setAttributeNS(null,t,n)}),e}var Km=20,qm=`http://www.w3.org/2000/svg`;function Jm(){let e=e=>_m.document.createElementNS(qm,e),t=Gm(e(`svg`),{width:`${Km}`,height:`${Km}`,viewBox:`0 0 ${Km} ${Km}`,fill:`var(--actor-color, var(--foreground))`}),n=Gm(e(`g`),{clipPath:`url(#clip0_57_80)`}),r=Gm(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);let i=e(`defs`),a=Gm(e(`clipPath`),{id:`clip0_57_80`}),o=Gm(e(`rect`),{width:`${Km}`,height:`${Km}`,fill:`white`});return a.appendChild(o),i.appendChild(a),t.appendChild(i).appendChild(a).appendChild(o),t}function Ym({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){let i=R.createElement(`button`);if(i.type=`button`,i.className=`widget__actor`,i.ariaHidden=`false`,i.ariaLabel=t||e||ym,i.appendChild(Jm()),e){let t=R.createElement(`span`);t.appendChild(R.createTextNode(e)),i.appendChild(t)}let a=Wm(r);return{el:i,appendToDom(){n.appendChild(a),n.appendChild(i)},removeFromDom(){i.remove(),a.remove()},show(){i.ariaHidden=`false`},hide(){i.ariaHidden=`true`}}}var Xm=`rgba(88, 74, 192, 1)`,Zm={foreground:`#2b2233`,background:`#ffffff`,accentForeground:`white`,accentBackground:Xm,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%)`},Qm={foreground:`#ebe6ef`,background:`#29232f`,accentForeground:`white`,accentBackground:Xm,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 $m(e){return`
|
|
56
|
+
--foreground: ${e.foreground};
|
|
57
|
+
--background: ${e.background};
|
|
58
|
+
--accent-foreground: ${e.accentForeground};
|
|
59
|
+
--accent-background: ${e.accentBackground};
|
|
60
|
+
--success-color: ${e.successColor};
|
|
61
|
+
--error-color: ${e.errorColor};
|
|
62
|
+
--border: ${e.border};
|
|
63
|
+
--box-shadow: ${e.boxShadow};
|
|
64
|
+
--outline: ${e.outline};
|
|
65
|
+
--interactive-filter: ${e.interactiveFilter};
|
|
66
|
+
`}function eh({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){let i=R.createElement(`style`);return i.textContent=`
|
|
67
|
+
:host {
|
|
68
|
+
--font-family: system-ui, 'Helvetica Neue', Arial, sans-serif;
|
|
69
|
+
--font-size: 14px;
|
|
70
|
+
--z-index: 100000;
|
|
71
|
+
|
|
72
|
+
--page-margin: 16px;
|
|
73
|
+
--inset: auto 0 0 auto;
|
|
74
|
+
--actor-inset: var(--inset);
|
|
75
|
+
|
|
76
|
+
font-family: var(--font-family);
|
|
77
|
+
font-size: var(--font-size);
|
|
78
|
+
|
|
79
|
+
${e===`system`?``:`color-scheme: only ${e};`}
|
|
80
|
+
|
|
81
|
+
${$m(e===`dark`?{...Qm,...t}:{...Zm,...n})}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
${e===`system`?`
|
|
85
|
+
@media (prefers-color-scheme: dark) {
|
|
86
|
+
:host {
|
|
87
|
+
color-scheme: only dark;
|
|
88
|
+
|
|
89
|
+
${$m({...Qm,...t})}
|
|
90
|
+
}
|
|
91
|
+
}`:``}
|
|
92
|
+
`,r&&i.setAttribute(`nonce`,r),i}var th=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>(({id:r=`sentry-feedback`,autoInject:i=!0,showBranding:a=!0,isEmailRequired:o=!1,isNameRequired:s=!1,showEmail:c=!0,showName:l=!0,enableScreenshot:u=!0,useSentryUser:d={email:`email`,name:`username`},tags:f,styleNonce:p,scriptNonce:m,colorScheme:h=`system`,themeLight:g={},themeDark:_={},addScreenshotButtonLabel:v=Mm,cancelButtonLabel:y=bm,confirmButtonLabel:b=Sm,emailLabel:S=Tm,emailPlaceholder:C=wm,formTitle:w=Cm,isRequiredLabel:T=jm,messageLabel:ee=Dm,messagePlaceholder:te=Em,nameLabel:ne=km,namePlaceholder:re=Om,removeScreenshotButtonLabel:ie=Nm,submitButtonLabel:ae=xm,successMessageText:oe=Am,triggerLabel:se=ym,triggerAriaLabel:E=``,highlightToolText:ce=Pm,hideToolText:le=Fm,removeHighlightText:ue=Im,onFormOpen:de,onFormClose:fe,onSubmitSuccess:pe,onSubmitError:me,onFormSubmitted:he}={})=>{let ge={id:r,autoInject:i,showBranding:a,isEmailRequired:o,isNameRequired:s,showEmail:c,showName:l,enableScreenshot:u,useSentryUser:d,tags:f,styleNonce:p,scriptNonce:m,colorScheme:h,themeDark:_,themeLight:g,triggerLabel:se,triggerAriaLabel:E,cancelButtonLabel:y,submitButtonLabel:ae,confirmButtonLabel:b,formTitle:w,emailLabel:S,emailPlaceholder:C,messageLabel:ee,messagePlaceholder:te,nameLabel:ne,namePlaceholder:re,successMessageText:oe,isRequiredLabel:T,addScreenshotButtonLabel:v,removeScreenshotButtonLabel:ie,highlightToolText:ce,hideToolText:le,removeHighlightText:ue,onFormClose:fe,onFormOpen:de,onSubmitError:me,onSubmitSuccess:pe,onFormSubmitted:he},_e=null,ve=null,ye=[],be=e=>{if(!_e){let t=R.createElement(`div`);t.id=String(e.id),R.body.appendChild(t),_e=t.attachShadow({mode:`open`}),ve=eh(e),_e.appendChild(ve)}return _e},xe=async r=>{let i=r.enableScreenshot&&Hm(),a,o;try{a=(t?t():await e(`feedbackModalIntegration`,m))(),Co(a)}catch{throw Vm&&x.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),Error(`[Feedback] Missing feedback modal integration!`)}try{let t=i?n?n():await e(`feedbackScreenshotIntegration`,m):void 0;t&&(o=t(),Co(o))}catch{Vm&&x.error(`[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.`)}let s=a.createDialog({options:{...r,onFormClose:()=>{s?.close(),r.onFormClose?.()},onFormSubmitted:()=>{s?.close(),r.onFormSubmitted?.()}},screenshotIntegration:o,sendFeedback:Bm,shadow:be(r)});return s},Se=(e,t={})=>{let n=Um(ge,t),r=typeof e==`string`?R.querySelector(e):typeof e.addEventListener==`function`?e:null;if(!r)throw Vm&&x.error(`[Feedback] Unable to attach to target element`),Error(`Unable to attach to target element`);let i=null,a=async()=>{i||=await xe({...n,onFormSubmitted:()=>{i?.removeFromDom(),n.onFormSubmitted?.()}}),i.appendToDom(),i.open()};r.addEventListener(`click`,a);let o=()=>{ye=ye.filter(e=>e!==o),i?.removeFromDom(),i=null,r.removeEventListener(`click`,a)};return ye.push(o),o},Ce=(e={})=>{let t=Um(ge,e),n=be(t),r=Ym({triggerLabel:t.triggerLabel,triggerAriaLabel:t.triggerAriaLabel,shadow:n,styleNonce:p});return Se(r.el,{...t,onFormOpen(){r.hide()},onFormClose(){r.show()},onFormSubmitted(){r.show()}}),r};return{name:`Feedback`,setupOnce(){!dm()||!ge.autoInject||(R.readyState===`loading`?R.addEventListener(`DOMContentLoaded`,()=>Ce().appendToDom()):Ce().appendToDom())},attachTo:Se,createWidget(e={}){let t=Ce(Um(ge,e));return t.appendToDom(),t},async createForm(e={}){return xe(Um(ge,e))},setTheme(e){if(ge.colorScheme=e,_e){let e=eh(ge);ve?_e.replaceChild(e,ve):_e.prepend(e),ve=e}},remove(){_e&&(_e.parentElement?.remove(),_e=null,ve=null),ye.forEach(e=>e()),ye=[]}}});function nh(){return A()?.getIntegrationByName(`Feedback`)}var rh,z,ih,ah,oh,sh,ch,lh={},uh=[],dh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,fh=Array.isArray;function ph(e,t){for(var n in t)e[n]=t[n];return e}function mh(e){var t=e.parentNode;t&&t.removeChild(e)}function B(e,t,n){var r,i,a,o={};for(a in t)a==`key`?r=t[a]:a==`ref`?i=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?rh.call(arguments,2):n),typeof e==`function`&&e.defaultProps!=null)for(a in e.defaultProps)o[a]===void 0&&(o[a]=e.defaultProps[a]);return hh(e,o,r,i,null)}function hh(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++ih,__i:-1,__u:0};return i==null&&z.vnode!=null&&z.vnode(a),a}function gh(e){return e.children}function _h(e,t){this.props=e,this.context=t}function vh(e,t){if(t==null)return e.__?vh(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`?vh(e):null}function yh(e,t,n){var r,i=e.__v,a=i.__e,o=e.__P;if(o)return(r=ph({},i)).__v=i.__v+1,z.vnode&&z.vnode(r),jh(o,r,i,e.__n,o.ownerSVGElement!==void 0,32&i.__u?[a]:null,t,a??vh(i),!!(32&i.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=a&&bh(r),r}function bh(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 bh(e)}}function xh(e){(!e.__d&&(e.__d=!0)&&ah.push(e)&&!Sh.__r++||oh!==z.debounceRendering)&&((oh=z.debounceRendering)||sh)(Sh)}function Sh(){var e,t,n,r=[],i=[];for(ah.sort(ch);e=ah.shift();)e.__d&&(n=ah.length,t=yh(e,r,i)||t,n===0||ah.length>n?(Mh(r,t,i),i.length=r.length=0,t=void 0,ah.sort(ch)):t&&z.__c&&z.__c(t,uh));t&&Mh(r,t,i),Sh.__r=0}function Ch(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g=r&&r.__k||uh,_=t.length;for(n.__d=c,wh(n,t,g),c=n.__d,d=0;d<_;d++)(p=n.__k[d])!=null&&typeof p!=`boolean`&&typeof p!=`function`&&(f=p.__i===-1?lh:g[p.__i]||lh,p.__i=d,jh(e,p,f,i,a,o,s,c,l,u),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&Ph(f.ref,null,p),u.push(p.ref,p.__c||m,p)),h==null&&m!=null&&(h=m),65536&p.__u||f.__k===p.__k?c=Th(p,c,e):typeof p.type==`function`&&p.__d!==void 0?c=p.__d:m&&(c=m.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=c,n.__e=h}function wh(e,t,n){var r,i,a,o,s,c=t.length,l=n.length,u=l,d=0;for(e.__k=[],r=0;r<c;r++)(i=e.__k[r]=(i=t[r])==null||typeof i==`boolean`||typeof i==`function`?null:typeof i==`string`||typeof i==`number`||typeof i==`bigint`||i.constructor==String?hh(null,i,null,null,i):fh(i)?hh(gh,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?hh(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)==null?(a=n[r])&&a.key==null&&a.__e&&(a.__e==e.__d&&(e.__d=vh(a)),Fh(a,a,!1),n[r]=null,u--):(i.__=e,i.__b=e.__b+1,s=Eh(i,n,o=r+d,u),i.__i=s,a=null,s!==-1&&(u--,(a=n[s])&&(a.__u|=131072)),a==null||a.__v===null?(s==-1&&d--,typeof i.type!=`function`&&(i.__u|=65536)):s!==o&&(s===o+1?d++:s>o?u>c-o?d+=s-o:d--:d=s<o&&s==o-1?s-o:0,s!==r+d&&(i.__u|=65536)));if(u)for(r=0;r<l;r++)(a=n[r])!=null&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=vh(a)),Fh(a,a))}function Th(e,t,n){var r,i;if(typeof e.type==`function`){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=Th(r[i],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Eh(e,t,n,r){var i=e.key,a=e.type,o=n-1,s=n+1,c=t[n];if(c===null||c&&i==c.key&&a===c.type)return n;if(r>+(c!=null&&!(131072&c.__u)))for(;o>=0||s<t.length;){if(o>=0){if((c=t[o])&&!(131072&c.__u)&&i==c.key&&a===c.type)return o;o--}if(s<t.length){if((c=t[s])&&!(131072&c.__u)&&i==c.key&&a===c.type)return s;s++}}return-1}function Dh(e,t,n){t[0]===`-`?e.setProperty(t,n??``):e[t]=n==null?``:typeof n!=`number`||dh.test(t)?n:n+`px`}function Oh(e,t,n,r,i){var a;n: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||Dh(e.style,t,``);if(n)for(t in n)r&&n[t]===r[t]||Dh(e.style,t,n[t])}else if(t[0]===`o`&&t[1]===`n`)a=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,`$1`)),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||={},e.l[t+a]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,a?Ah:kh,a)):e.removeEventListener(t,a?Ah:kh,a);else{if(i)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 n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!==`-`?e.removeAttribute(t):e.setAttribute(t,n))}}function kh(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(z.event?z.event(e):e)}}function Ah(e){if(this.l)return this.l[e.type+!0](z.event?z.event(e):e)}function jh(e,t,n,r,i,a,o,s,c,l){var u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(c=!!(32&n.__u),a=[s=t.__e=n.__e]),(u=z.__b)&&u(t);n:if(typeof T==`function`)try{if(_=t.props,v=(u=T.contextType)&&r[u.__c],y=u?v?v.props.value:u.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:(`prototype`in T&&T.prototype.render?t.__c=d=new T(_,y):(t.__c=d=new _h(_,y),d.constructor=T,d.render=Ih),v&&v.sub(d),d.props=_,d.state||={},d.context=y,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),d.__s??=d.state,T.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=ph({},d.__s)),ph(d.__s,T.getDerivedStateFromProps(_,d.__s))),p=d.props,m=d.state,d.__v=t,f)T.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(T.getDerivedStateFromProps==null&&_!==p&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(_,y),!d.__e&&(d.shouldComponentUpdate!=null&&!1===d.shouldComponentUpdate(_,d.__s,y)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=_,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&o.push(d);break n}d.componentWillUpdate!=null&&d.componentWillUpdate(_,d.__s,y),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(p,m,h)})}if(d.context=y,d.props=_,d.__P=e,d.__e=!1,x=z.__r,S=0,`prototype`in T&&T.prototype.render){for(d.state=d.__s,d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),C=0;C<d._sb.length;C++)d.__h.push(d._sb[C]);d._sb=[]}else do d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++S<25);d.state=d.__s,d.getChildContext!=null&&(r=ph(ph({},r),d.getChildContext())),f||d.getSnapshotBeforeUpdate==null||(h=d.getSnapshotBeforeUpdate(p,m)),Ch(e,fh(w=u!=null&&u.type===gh&&u.key==null?u.props.children:u)?w:[w],t,n,r,i,a,o,s,c,l),d.base=t.__e,t.__u&=-161,d.__h.length&&o.push(d),g&&(d.__E=d.__=null)}catch(e){t.__v=null,c||a!=null?(t.__e=s,t.__u|=c?160:32,a[a.indexOf(s)]=null):(t.__e=n.__e,t.__k=n.__k),z.__e(e,t,n)}else a==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Nh(n.__e,t,n,r,i,a,o,c,l);(u=z.diffed)&&u(t)}function Mh(e,t,n){for(var r=0;r<n.length;r++)Ph(n[r],n[++r],n[++r]);z.__c&&z.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){z.__e(e,t.__v)}})}function Nh(e,t,n,r,i,a,o,s,c){var l,u,d,f,p,m,h,g=n.props,_=t.props,v=t.type;if(v===`svg`&&(i=!0),a!=null){for(l=0;l<a.length;l++)if((p=a[l])&&`setAttribute`in p==!!v&&(v?p.localName===v:p.nodeType===3)){e=p,a[l]=null;break}}if(e==null){if(v===null)return document.createTextNode(_);e=i?document.createElementNS(`http://www.w3.org/2000/svg`,v):document.createElement(v,_.is&&_),a=null,s=!1}if(v===null)g===_||s&&e.data===_||(e.data=_);else{if(a&&=rh.call(e.childNodes),g=n.props||lh,!s&&a!=null)for(g={},l=0;l<e.attributes.length;l++)g[(p=e.attributes[l]).name]=p.value;for(l in g)p=g[l],l==`children`||(l==`dangerouslySetInnerHTML`?d=p:l===`key`||l in _||Oh(e,l,null,p,i));for(l in _)p=_[l],l==`children`?f=p:l==`dangerouslySetInnerHTML`?u=p:l==`value`?m=p:l==`checked`?h=p:l===`key`||s&&typeof p!=`function`||g[l]===p||Oh(e,l,p,g[l],i);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=``),Ch(e,fh(f)?f:[f],t,n,r,i&&v!==`foreignObject`,a,o,a?a[0]:n.__k&&vh(n,0),s,c),a!=null)for(l=a.length;l--;)a[l]!=null&&mh(a[l]);s||(l=`value`,m!==void 0&&(m!==e[l]||v===`progress`&&!m||v===`option`&&m!==g[l])&&Oh(e,l,m,g[l],!1),l=`checked`,h!==void 0&&h!==e[l]&&Oh(e,l,h,g[l],!1))}return e}function Ph(e,t,n){try{typeof e==`function`?e(t):e.current=t}catch(e){z.__e(e,n)}}function Fh(e,t,n){var r,i;if(z.unmount&&z.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Ph(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){z.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Fh(r[i],t,n||typeof e.type!=`function`);n||e.__e==null||mh(e.__e),e.__=e.__e=e.__d=void 0}function Ih(e,t,n){return this.constructor(e,n)}function Lh(e,t,n){var r,i,a,o;z.__&&z.__(e,t),i=(r=!1)?null:t.__k,a=[],o=[],jh(t,e=t.__k=B(gh,null,[e]),i||lh,lh,t.ownerSVGElement!==void 0,i?null:t.firstChild?rh.call(t.childNodes):null,a,i?i.__e:t.firstChild,r,o),e.__d=void 0,Mh(a,e,o)}rh=uh.slice,z={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},ih=0,_h.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ph({},this.state);typeof e==`function`&&(e=e(ph({},n),this.props)),e&&ph(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),xh(this))},_h.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),xh(this))},_h.prototype.render=gh,ah=[],sh=typeof Promise==`function`?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ch=function(e,t){return e.__v.__b-t.__v.__b},Sh.__r=0;var Rh,V,zh,Bh,Vh=0,Hh=[],Uh=[],H=z,Wh=H.__b,Gh=H.__r,Kh=H.diffed,qh=H.__c,Jh=H.unmount,Yh=H.__;function Xh(e,t){H.__h&&H.__h(V,e,Vh||t),Vh=0;var n=V.__H||={__:[],__h:[]};return e>=n.__.length&&n.__.push({__V:Uh}),n.__[e]}function Zh(e){return Vh=1,Qh(hg,e)}function Qh(e,t,n){var r=Xh(Rh++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):hg(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=V,!V.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var o=!1;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),!(!o&&r.__c.props===e)&&(!a||a.call(this,e,t,n))};V.u=!0;var a=V.shouldComponentUpdate,o=V.componentWillUpdate;V.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},V.shouldComponentUpdate=i}return r.__N||r.__}function $h(e,t){var n=Xh(Rh++,3);!H.__s&&mg(n.__H,t)&&(n.__=e,n.i=t,V.__H.__h.push(n))}function eg(e,t){var n=Xh(Rh++,4);!H.__s&&mg(n.__H,t)&&(n.__=e,n.i=t,V.__h.push(n))}function tg(e){return Vh=5,rg(function(){return{current:e}},[])}function ng(e,t,n){Vh=6,eg(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 rg(e,t){var n=Xh(Rh++,7);return mg(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function ig(e,t){return Vh=8,rg(function(){return e},t)}function ag(e){var t=V.context[e.__c],n=Xh(Rh++,9);return n.c=e,t?(n.__??(n.__=!0,t.sub(V)),t.props.value):e.__}function og(e,t){H.useDebugValue&&H.useDebugValue(t?t(e):e)}function sg(e){var t=Xh(Rh++,10),n=Zh();return t.__=e,V.componentDidCatch||=function(e,r){t.__&&t.__(e,r),n[1](e)},[n[0],function(){n[1](void 0)}]}function cg(){var e=Xh(Rh++,11);if(!e.__){for(var t=V.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||=[0,0];e.__=`P`+n[0]+`-`+ n[1]++}return e.__}function lg(){for(var e;e=Hh.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(fg),e.__H.__h.forEach(pg),e.__H.__h=[]}catch(t){e.__H.__h=[],H.__e(t,e.__v)}}H.__b=function(e){V=null,Wh&&Wh(e)},H.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Yh&&Yh(e,t)},H.__r=function(e){Gh&&Gh(e),Rh=0;var t=(V=e.__c).__H;t&&(zh===V?(t.__h=[],V.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=Uh,e.__N=e.i=void 0})):(t.__h.forEach(fg),t.__h.forEach(pg),t.__h=[],Rh=0)),zh=V},H.diffed=function(e){Kh&&Kh(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Hh.push(t)!==1&&Bh===H.requestAnimationFrame||((Bh=H.requestAnimationFrame)||dg)(lg)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==Uh&&(e.__=e.__V),e.i=void 0,e.__V=Uh})),zh=V=null},H.__c=function(e,t){t.some(function(e){try{e.__h.forEach(fg),e.__h=e.__h.filter(function(e){return!e.__||pg(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],H.__e(n,e.__v)}}),qh&&qh(e,t)},H.unmount=function(e){Jh&&Jh(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{fg(e)}catch(e){t=e}}),n.__H=void 0,t&&H.__e(t,n.__v))};var ug=typeof requestAnimationFrame==`function`;function dg(e){var t,n=function(){clearTimeout(r),ug&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ug&&(t=requestAnimationFrame(n))}function fg(e){var t=V,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),V=t}function pg(e){var t=V;e.__c=e.__(),V=t}function mg(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function hg(e,t){return typeof t==`function`?t(e):t}var gg=Object.defineProperty({__proto__:null,useCallback:ig,useContext:ag,useDebugValue:og,useEffect:$h,useErrorBoundary:sg,useId:cg,useImperativeHandle:ng,useLayoutEffect:eg,useMemo:rg,useReducer:Qh,useRef:tg,useState:Zh},Symbol.toStringTag,{value:`Module`}),_g=`http://www.w3.org/2000/svg`;function vg(){let e=e=>R.createElementNS(_g,e),t=Gm(e(`svg`),{width:`32`,height:`30`,viewBox:`0 0 72 66`,fill:`inherit`}),n=Gm(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 yg({options:e}){let t=rg(()=>({__html:vg().outerHTML}),[]);return B(`h2`,{class:`dialog__header`},B(`span`,{class:`dialog__title`},e.formTitle),e.showBranding?B(`a`,{class:`brand-link`,target:`_blank`,href:`https://sentry.io/welcome/`,title:`Powered by Sentry`,rel:`noopener noreferrer`,dangerouslySetInnerHTML:t}):null)}function bg(e,t){let 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 xg(e,t){let n=e.get(t);return typeof n==`string`?n.trim():``}function Sg({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:i,onSubmitSuccess:a,onSubmitError:o,showEmail:s,showName:c,screenshotInput:l}){let{tags:u,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:f,cancelButtonLabel:p,emailLabel:m,emailPlaceholder:h,isEmailRequired:g,isNameRequired:_,messageLabel:v,messagePlaceholder:y,nameLabel:b,namePlaceholder:S,submitButtonLabel:C,isRequiredLabel:w}=e,[T,ee]=Zh(!1),[te,ne]=Zh(null),[re,ie]=Zh(!1),ae=l?.input,[oe,se]=Zh(null),E=ig(e=>{se(e),ie(!1)},[]),ce=ig(e=>{let t=bg(e,{emailLabel:m,isEmailRequired:g,isNameRequired:_,messageLabel:v,nameLabel:b});return t.length>0?ne(`Please enter in the following required fields: ${t.join(`, `)}`):ne(null),t.length===0},[m,g,_,v,b]);return B(`form`,{class:`form`,onSubmit:ig(async e=>{ee(!0);try{if(e.preventDefault(),!(e.target instanceof HTMLFormElement))return;let t=new FormData(e.target),n=await(l&&re?l.value():void 0),r={name:xg(t,`name`),email:xg(t,`email`),message:xg(t,`message`),attachments:n?[n]:void 0};if(!ce(r))return;try{a(r,await i({name:r.name,email:r.email,message:r.message,source:Lm,tags:u},{attachments:r.attachments}))}catch(e){Vm&&x.error(e),ne(e),o(e)}}finally{ee(!1)}},[l&&re,a,o])},ae&&re?B(ae,{onError:E}):null,B(`fieldset`,{class:`form__right`,"data-sentry-feedback":!0,disabled:T},B(`div`,{class:`form__top`},te?B(`div`,{class:`form__error-container`},te):null,c?B(`label`,{for:`name`,class:`form__label`},B(Cg,{label:b,isRequiredLabel:w,isRequired:_}),B(`input`,{class:`form__input`,defaultValue:n,id:`name`,name:`name`,placeholder:S,required:_,type:`text`})):B(`input`,{"aria-hidden":!0,value:n,name:`name`,type:`hidden`}),s?B(`label`,{for:`email`,class:`form__label`},B(Cg,{label:m,isRequiredLabel:w,isRequired:g}),B(`input`,{class:`form__input`,defaultValue:t,id:`email`,name:`email`,placeholder:h,required:g,type:`email`})):B(`input`,{"aria-hidden":!0,value:t,name:`email`,type:`hidden`}),B(`label`,{for:`message`,class:`form__label`},B(Cg,{label:v,isRequiredLabel:w,isRequired:!0}),B(`textarea`,{autoFocus:!0,class:`form__input form__input--textarea`,id:`message`,name:`message`,placeholder:y,required:!0,rows:5})),ae?B(`label`,{for:`screenshot`,class:`form__label`},B(`button`,{class:`btn btn--default`,disabled:T,type:`button`,onClick:()=>{se(null),ie(e=>!e)}},re?f:d),oe?B(`div`,{class:`form__error-container`},oe.message):null):null),B(`div`,{class:`btn-group`},B(`button`,{class:`btn btn--primary`,disabled:T,type:`submit`},C),B(`button`,{class:`btn btn--default`,disabled:T,type:`button`,onClick:r},p))))}function Cg({label:e,isRequired:t,isRequiredLabel:n}){return B(`span`,{class:`form__label__text`},e,t&&B(`span`,{class:`form__label__text--required`},n))}var wg=16,Tg=17,Eg=`http://www.w3.org/2000/svg`;function Dg(){let e=e=>_m.document.createElementNS(Eg,e),t=Gm(e(`svg`),{width:`${wg}`,height:`${Tg}`,viewBox:`0 0 ${wg} ${Tg}`,fill:`inherit`}),n=Gm(e(`g`),{clipPath:`url(#clip0_57_156)`}),r=Gm(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`}),i=Gm(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(i,r);let a=e(`defs`),o=Gm(e(`clipPath`),{id:`clip0_57_156`}),s=Gm(e(`rect`),{width:`${wg}`,height:`${wg}`,fill:`white`,transform:`translate(0 0.5)`});return o.appendChild(s),a.appendChild(o),t.appendChild(a).appendChild(o).appendChild(s),t}function Og({open:e,onFormSubmitted:t,...n}){let r=n.options,i=rg(()=>({__html:Dg().outerHTML}),[]),[a,o]=Zh(null),s=ig(()=>{a&&(clearTimeout(a),o(null)),t()},[a]),c=ig((e,r)=>{n.onSubmitSuccess(e,r),o(setTimeout(()=>{t(),o(null)},zm))},[t]);return B(gh,null,a?B(`div`,{class:`success__position`,onClick:s},B(`div`,{class:`success__content`},r.successMessageText,B(`span`,{class:`success__icon`,dangerouslySetInnerHTML:i}))):B(`dialog`,{class:`dialog`,onClick:r.onFormClose,open:e},B(`div`,{class:`dialog__position`},B(`div`,{class:`dialog__content`,onClick:e=>{e.stopPropagation()}},B(yg,{options:r}),B(Sg,{...n,onSubmitSuccess:c})))))}var kg=`
|
|
93
|
+
.dialog {
|
|
94
|
+
position: fixed;
|
|
95
|
+
z-index: var(--z-index);
|
|
96
|
+
margin: 0;
|
|
97
|
+
inset: 0;
|
|
98
|
+
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
justify-content: center;
|
|
102
|
+
padding: 0;
|
|
103
|
+
height: 100vh;
|
|
104
|
+
width: 100vw;
|
|
105
|
+
|
|
106
|
+
color: var(--dialog-color, var(--foreground));
|
|
107
|
+
fill: var(--dialog-color, var(--foreground));
|
|
108
|
+
line-height: 1.75em;
|
|
109
|
+
|
|
110
|
+
background-color: rgba(0, 0, 0, 0.05);
|
|
111
|
+
border: none;
|
|
112
|
+
inset: 0;
|
|
113
|
+
opacity: 1;
|
|
114
|
+
transition: opacity 0.2s ease-in-out;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.dialog__position {
|
|
118
|
+
position: fixed;
|
|
119
|
+
z-index: var(--z-index);
|
|
120
|
+
inset: var(--dialog-inset);
|
|
121
|
+
padding: var(--page-margin);
|
|
122
|
+
display: flex;
|
|
123
|
+
max-height: calc(100vh - (2 * var(--page-margin)));
|
|
124
|
+
}
|
|
125
|
+
@media (max-width: 600px) {
|
|
126
|
+
.dialog__position {
|
|
127
|
+
inset: var(--page-margin);
|
|
128
|
+
padding: 0;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.dialog__position:has(.editor) {
|
|
133
|
+
inset: var(--page-margin);
|
|
134
|
+
padding: 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.dialog:not([open]) {
|
|
138
|
+
opacity: 0;
|
|
139
|
+
pointer-events: none;
|
|
140
|
+
visibility: hidden;
|
|
141
|
+
}
|
|
142
|
+
.dialog:not([open]) .dialog__content {
|
|
143
|
+
transform: translate(0, -16px) scale(0.98);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.dialog__content {
|
|
147
|
+
display: flex;
|
|
148
|
+
flex-direction: column;
|
|
149
|
+
gap: 16px;
|
|
150
|
+
padding: var(--dialog-padding, 24px);
|
|
151
|
+
max-width: 100%;
|
|
152
|
+
width: 100%;
|
|
153
|
+
max-height: 100%;
|
|
154
|
+
overflow: auto;
|
|
155
|
+
|
|
156
|
+
background: var(--dialog-background, var(--background));
|
|
157
|
+
border-radius: var(--dialog-border-radius, 20px);
|
|
158
|
+
border: var(--dialog-border, var(--border));
|
|
159
|
+
box-shadow: var(--dialog-box-shadow, var(--box-shadow));
|
|
160
|
+
transform: translate(0, 0) scale(1);
|
|
161
|
+
transition: transform 0.2s ease-in-out;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
`,Ag=`
|
|
165
|
+
.dialog__header {
|
|
166
|
+
display: flex;
|
|
167
|
+
gap: 4px;
|
|
168
|
+
justify-content: space-between;
|
|
169
|
+
font-weight: var(--dialog-header-weight, 600);
|
|
170
|
+
margin: 0;
|
|
171
|
+
}
|
|
172
|
+
.dialog__title {
|
|
173
|
+
align-self: center;
|
|
174
|
+
width: var(--form-width, 272px);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@media (max-width: 600px) {
|
|
178
|
+
.dialog__title {
|
|
179
|
+
width: auto;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.dialog__position:has(.editor) .dialog__title {
|
|
184
|
+
width: auto;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
.brand-link {
|
|
189
|
+
display: inline-flex;
|
|
190
|
+
}
|
|
191
|
+
.brand-link:focus-visible {
|
|
192
|
+
outline: var(--outline);
|
|
193
|
+
}
|
|
194
|
+
`,jg=`
|
|
195
|
+
.form {
|
|
196
|
+
display: flex;
|
|
197
|
+
overflow: auto;
|
|
198
|
+
flex-direction: row;
|
|
199
|
+
gap: 16px;
|
|
200
|
+
flex: 1 0;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.form fieldset {
|
|
204
|
+
border: none;
|
|
205
|
+
margin: 0;
|
|
206
|
+
padding: 0;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.form__right {
|
|
210
|
+
flex: 0 0 auto;
|
|
211
|
+
display: flex;
|
|
212
|
+
overflow: auto;
|
|
213
|
+
flex-direction: column;
|
|
214
|
+
justify-content: space-between;
|
|
215
|
+
gap: 20px;
|
|
216
|
+
width: var(--form-width, 100%);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.dialog__position:has(.editor) .form__right {
|
|
220
|
+
width: var(--form-width, 272px);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.form__top {
|
|
224
|
+
display: flex;
|
|
225
|
+
flex-direction: column;
|
|
226
|
+
gap: 8px;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.form__error-container {
|
|
230
|
+
color: var(--error-color);
|
|
231
|
+
fill: var(--error-color);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.form__label {
|
|
235
|
+
display: flex;
|
|
236
|
+
flex-direction: column;
|
|
237
|
+
gap: 4px;
|
|
238
|
+
margin: 0px;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.form__label__text {
|
|
242
|
+
display: flex;
|
|
243
|
+
gap: 4px;
|
|
244
|
+
align-items: center;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.form__label__text--required {
|
|
248
|
+
font-size: 0.85em;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.form__input {
|
|
252
|
+
font-family: inherit;
|
|
253
|
+
line-height: inherit;
|
|
254
|
+
background: transparent;
|
|
255
|
+
box-sizing: border-box;
|
|
256
|
+
border: var(--input-border, var(--border));
|
|
257
|
+
border-radius: var(--input-border-radius, 6px);
|
|
258
|
+
color: var(--input-color, inherit);
|
|
259
|
+
fill: var(--input-color, inherit);
|
|
260
|
+
font-size: var(--input-font-size, inherit);
|
|
261
|
+
font-weight: var(--input-font-weight, 500);
|
|
262
|
+
padding: 6px 12px;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.form__input::placeholder {
|
|
266
|
+
opacity: 0.65;
|
|
267
|
+
color: var(--input-placeholder-color, inherit);
|
|
268
|
+
filter: var(--interactive-filter);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.form__input:focus-visible {
|
|
272
|
+
outline: var(--input-focus-outline, var(--outline));
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.form__input--textarea {
|
|
276
|
+
font-family: inherit;
|
|
277
|
+
resize: vertical;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.error {
|
|
281
|
+
color: var(--error-color);
|
|
282
|
+
fill: var(--error-color);
|
|
283
|
+
}
|
|
284
|
+
`,Mg=`
|
|
285
|
+
.btn-group {
|
|
286
|
+
display: grid;
|
|
287
|
+
gap: 8px;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.btn {
|
|
291
|
+
line-height: inherit;
|
|
292
|
+
border: var(--button-border, var(--border));
|
|
293
|
+
border-radius: var(--button-border-radius, 6px);
|
|
294
|
+
cursor: pointer;
|
|
295
|
+
font-family: inherit;
|
|
296
|
+
font-size: var(--button-font-size, inherit);
|
|
297
|
+
font-weight: var(--button-font-weight, 600);
|
|
298
|
+
padding: var(--button-padding, 6px 16px);
|
|
299
|
+
}
|
|
300
|
+
.btn[disabled] {
|
|
301
|
+
opacity: 0.6;
|
|
302
|
+
pointer-events: none;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.btn--primary {
|
|
306
|
+
color: var(--button-primary-color, var(--accent-foreground));
|
|
307
|
+
fill: var(--button-primary-color, var(--accent-foreground));
|
|
308
|
+
background: var(--button-primary-background, var(--accent-background));
|
|
309
|
+
border: var(--button-primary-border, var(--border));
|
|
310
|
+
border-radius: var(--button-primary-border-radius, 6px);
|
|
311
|
+
font-weight: var(--button-primary-font-weight, 500);
|
|
312
|
+
}
|
|
313
|
+
.btn--primary:hover {
|
|
314
|
+
color: var(--button-primary-hover-color, var(--accent-foreground));
|
|
315
|
+
fill: var(--button-primary-hover-color, var(--accent-foreground));
|
|
316
|
+
background: var(--button-primary-hover-background, var(--accent-background));
|
|
317
|
+
filter: var(--interactive-filter);
|
|
318
|
+
}
|
|
319
|
+
.btn--primary:focus-visible {
|
|
320
|
+
background: var(--button-primary-hover-background, var(--accent-background));
|
|
321
|
+
filter: var(--interactive-filter);
|
|
322
|
+
outline: var(--button-primary-focus-outline, var(--outline));
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.btn--default {
|
|
326
|
+
color: var(--button-color, var(--foreground));
|
|
327
|
+
fill: var(--button-color, var(--foreground));
|
|
328
|
+
background: var(--button-background, var(--background));
|
|
329
|
+
border: var(--button-border, var(--border));
|
|
330
|
+
border-radius: var(--button-border-radius, 6px);
|
|
331
|
+
font-weight: var(--button-font-weight, 500);
|
|
332
|
+
}
|
|
333
|
+
.btn--default:hover {
|
|
334
|
+
color: var(--button-color, var(--foreground));
|
|
335
|
+
fill: var(--button-color, var(--foreground));
|
|
336
|
+
background: var(--button-hover-background, var(--background));
|
|
337
|
+
filter: var(--interactive-filter);
|
|
338
|
+
}
|
|
339
|
+
.btn--default:focus-visible {
|
|
340
|
+
background: var(--button-hover-background, var(--background));
|
|
341
|
+
filter: var(--interactive-filter);
|
|
342
|
+
outline: var(--button-focus-outline, var(--outline));
|
|
343
|
+
}
|
|
344
|
+
`,Ng=`
|
|
345
|
+
.success__position {
|
|
346
|
+
position: fixed;
|
|
347
|
+
inset: var(--dialog-inset);
|
|
348
|
+
padding: var(--page-margin);
|
|
349
|
+
z-index: var(--z-index);
|
|
350
|
+
}
|
|
351
|
+
.success__content {
|
|
352
|
+
background: var(--success-background, var(--background));
|
|
353
|
+
border: var(--success-border, var(--border));
|
|
354
|
+
border-radius: var(--success-border-radius, 1.7em/50%);
|
|
355
|
+
box-shadow: var(--success-box-shadow, var(--box-shadow));
|
|
356
|
+
font-weight: var(--success-font-weight, 600);
|
|
357
|
+
color: var(--success-color);
|
|
358
|
+
fill: var(--success-color);
|
|
359
|
+
padding: 12px 24px;
|
|
360
|
+
line-height: 1.75em;
|
|
361
|
+
|
|
362
|
+
display: grid;
|
|
363
|
+
align-items: center;
|
|
364
|
+
grid-auto-flow: column;
|
|
365
|
+
gap: 6px;
|
|
366
|
+
cursor: default;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.success__icon {
|
|
370
|
+
display: flex;
|
|
371
|
+
}
|
|
372
|
+
`;function Pg(e){let t=R.createElement(`style`);return t.textContent=`
|
|
373
|
+
:host {
|
|
374
|
+
--dialog-inset: var(--inset);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
${kg}
|
|
378
|
+
${Ag}
|
|
379
|
+
${jg}
|
|
380
|
+
${Mg}
|
|
381
|
+
${Ng}
|
|
382
|
+
`,e&&t.setAttribute(`nonce`,e),t}function Fg(){let e=O().getUser(),t=k().getUser(),n=rn().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}var Ig=(()=>({name:`FeedbackModal`,setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{let i=r,a=e.useSentryUser,o=Fg(),s=R.createElement(`div`),c=Pg(e.styleNonce),l=``,u={get el(){return s},appendToDom(){!i.contains(c)&&!i.contains(s)&&(i.appendChild(c),i.appendChild(s))},removeFromDom(){s.remove(),c.remove(),R.body.style.overflow=l},open(){f(!0),e.onFormOpen?.(),A()?.emit(`openFeedbackWidget`),l=R.body.style.overflow,R.body.style.overflow=`hidden`},close(){f(!1),R.body.style.overflow=l}},d=t?.createInput({h:B,hooks:gg,dialog:u,options:e}),f=t=>{Lh(B(Og,{options:e,screenshotInput:d,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(a&&o?.[a.name]||``),defaultEmail:String(a&&o?.[a.email]||``),onFormClose:()=>{f(!1),e.onFormClose?.()},onSubmit:n,onSubmitSuccess:(t,n)=>{f(!1),e.onSubmitSuccess?.(t,n)},onSubmitError:t=>{e.onSubmitError?.(t)},onFormSubmitted:()=>{e.onFormSubmitted?.()},open:t}),s)};return u}}));function Lg({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 Rg(e){let t=R.createElement(`style`),n=`#1A141F`,r=`#302735`;return t.textContent=`
|
|
383
|
+
.editor {
|
|
384
|
+
display: flex;
|
|
385
|
+
flex-grow: 1;
|
|
386
|
+
flex-direction: column;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.editor__image-container {
|
|
390
|
+
justify-items: center;
|
|
391
|
+
padding: 15px;
|
|
392
|
+
position: relative;
|
|
393
|
+
height: 100%;
|
|
394
|
+
border-radius: var(--menu-border-radius, 6px);
|
|
395
|
+
|
|
396
|
+
background-color: ${n};
|
|
397
|
+
background-image: repeating-linear-gradient(
|
|
398
|
+
-145deg,
|
|
399
|
+
transparent,
|
|
400
|
+
transparent 8px,
|
|
401
|
+
${n} 8px,
|
|
402
|
+
${n} 11px
|
|
403
|
+
),
|
|
404
|
+
repeating-linear-gradient(
|
|
405
|
+
-45deg,
|
|
406
|
+
transparent,
|
|
407
|
+
transparent 15px,
|
|
408
|
+
${r} 15px,
|
|
409
|
+
${r} 16px
|
|
410
|
+
);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.editor__canvas-container {
|
|
414
|
+
width: 100%;
|
|
415
|
+
height: 100%;
|
|
416
|
+
position: relative;
|
|
417
|
+
display: flex;
|
|
418
|
+
align-items: center;
|
|
419
|
+
justify-content: center;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.editor__canvas-container > * {
|
|
423
|
+
object-fit: contain;
|
|
424
|
+
position: absolute;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
.editor__tool-container {
|
|
428
|
+
padding-top: 8px;
|
|
429
|
+
display: flex;
|
|
430
|
+
justify-content: center;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.editor__tool-bar {
|
|
434
|
+
display: flex;
|
|
435
|
+
gap: 8px;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.editor__tool {
|
|
439
|
+
display: flex;
|
|
440
|
+
padding: 8px 12px;
|
|
441
|
+
justify-content: center;
|
|
442
|
+
align-items: center;
|
|
443
|
+
border: var(--button-border, var(--border));
|
|
444
|
+
border-radius: var(--button-border-radius, 6px);
|
|
445
|
+
background: var(--button-background, var(--background));
|
|
446
|
+
color: var(--button-color, var(--foreground));
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.editor__tool--active {
|
|
450
|
+
background: var(--button-primary-background, var(--accent-background));
|
|
451
|
+
color: var(--button-primary-color, var(--accent-foreground));
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.editor__rect {
|
|
455
|
+
position: absolute;
|
|
456
|
+
z-index: 2;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.editor__rect button {
|
|
460
|
+
opacity: 0;
|
|
461
|
+
position: absolute;
|
|
462
|
+
top: -12px;
|
|
463
|
+
right: -12px;
|
|
464
|
+
cursor: pointer;
|
|
465
|
+
padding: 0;
|
|
466
|
+
z-index: 3;
|
|
467
|
+
border: none;
|
|
468
|
+
background: none;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.editor__rect:hover button {
|
|
472
|
+
opacity: 1;
|
|
473
|
+
}
|
|
474
|
+
`,e&&t.setAttribute(`nonce`,e),t}function zg({h:e}){return function({action:t,setAction:n,options:r}){return e(`div`,{class:`editor__tool-container`},e(`div`,{class:`editor__tool-bar`},e(`button`,{type:`button`,class:`editor__tool ${t===`highlight`?`editor__tool--active`:``}`,onClick:()=>{n(t===`highlight`?``:`highlight`)}},r.highlightToolText),e(`button`,{type:`button`,class:`editor__tool ${t===`hide`?`editor__tool--active`:``}`,onClick:()=>{n(t===`hide`?``:`hide`)}},r.hideToolText)))}}function Bg({hooks:e}){function t(){let[t,n]=e.useState(_m.devicePixelRatio??1);return e.useEffect(()=>{let e=()=>{n(_m.devicePixelRatio)},t=matchMedia(`(resolution: ${_m.devicePixelRatio}dppx)`);return t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)}},[]),t}return function({onBeforeScreenshot:n,onScreenshot:r,onAfterScreenshot:i,onError:a}){let o=t();e.useEffect(()=>{(async()=>{n();let e=await vm.mediaDevices.getDisplayMedia({video:{width:_m.innerWidth*o,height:_m.innerHeight*o},audio:!1,monitorTypeSurfaces:`exclude`,preferCurrentTab:!0,selfBrowserSurface:`include`,surfaceSwitching:`exclude`}),t=R.createElement(`video`);await new Promise((n,i)=>{t.srcObject=e,t.onloadedmetadata=()=>{r(t,o),e.getTracks().forEach(e=>e.stop()),n()},t.play().catch(i)}),i()})().catch(a)},[])}}function Vg(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 Hg(e,t,n){if(!e)return;let r=e.getContext(`2d`,t);r&&n(e,r)}function Ug(e,t){Hg(e,{alpha:!0},(e,n)=>{n.drawImage(t,0,0,t.width,t.height,0,0,e.width,e.height)})}function Wg(e,t,n){Hg(e,{alpha:!0},(e,r)=>{n.length&&(r.fillStyle=`rgba(0, 0, 0, 0.25)`,r.fillRect(0,0,e.width,e.height)),n.forEach(e=>{Vg(e,r,t)})})}function Gg({h:e,hooks:t,outputBuffer:n,dialog:r,options:i}){let a=Bg({hooks:t}),o=zg({h:e}),s=Lg({h:e}),c={__html:Rg(i.styleNonce).innerText},l=r.el.style,u=({screenshot:r})=>{let[a,l]=t.useState(`highlight`),[u,d]=t.useState([]),f=t.useRef(null),p=t.useRef(null),m=t.useRef(null),h=t.useRef(null),[g,_]=t.useState(1),v=t.useMemo(()=>{let e=R.getElementById(i.id);if(!e)return`white`;let t=getComputedStyle(e);return t.getPropertyValue(`--button-primary-background`)||t.getPropertyValue(`--accent-background`)},[i.id]);t.useLayoutEffect(()=>{let e=()=>{let t=f.current;t&&(Hg(r.canvas,{alpha:!1},e=>{_(Math.min(t.clientWidth/e.width,t.clientHeight/e.height))}),(t.clientHeight===0||t.clientWidth===0)&&setTimeout(e,0))};return e(),_m.addEventListener(`resize`,e),()=>{_m.removeEventListener(`resize`,e)}},[r]);let y=t.useCallback((e,t)=>{Hg(e,{alpha:!0},(e,n)=>{n.scale(t,t),e.width=r.canvas.width,e.height=r.canvas.height})},[r]);t.useEffect(()=>{y(p.current,r.dpi),Ug(p.current,r.canvas)},[r]),t.useEffect(()=>{y(m.current,r.dpi),Hg(m.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),Wg(m.current,v,u)},[u,v]),t.useEffect(()=>{y(n,r.dpi),Ug(n,r.canvas),Hg(R.createElement(`canvas`),{alpha:!0},(e,t)=>{t.scale(r.dpi,r.dpi),e.width=r.canvas.width,e.height=r.canvas.height,Wg(e,v,u),Ug(n,e)})},[u,r,v]);let b=e=>{if(!a||!h.current)return;let t=h.current.getBoundingClientRect(),n={type:a,x:e.offsetX/g,y:e.offsetY/g},r=(e,n)=>{let r=(n.clientX-t.x)/g,i=(n.clientY-t.y)/g;return{type:e.type,x:Math.min(e.x,r),y:Math.min(e.y,i),w:Math.abs(r-e.x),h:Math.abs(i-e.y)}},i=e=>{Hg(m.current,{alpha:!0},(e,t)=>{t.clearRect(0,0,e.width,e.height)}),Wg(m.current,v,[...u,r(n,e)])},o=e=>{let t=r(n,e);t.w*g>=1&&t.h*g>=1&&d(e=>[...e,t]),R.removeEventListener(`mousemove`,i),R.removeEventListener(`mouseup`,o)};R.addEventListener(`mousemove`,i),R.addEventListener(`mouseup`,o)},x=t.useCallback(e=>t=>{t.preventDefault(),t.stopPropagation(),d(t=>{let n=[...t];return n.splice(e,1),n})},[]),S={width:`${r.canvas.width*g}px`,height:`${r.canvas.height*g}px`},C=e=>{e.stopPropagation()};return e(`div`,{class:`editor`},e(`style`,{nonce:i.styleNonce,dangerouslySetInnerHTML:c}),e(`div`,{class:`editor__image-container`},e(`div`,{class:`editor__canvas-container`,ref:f},e(`canvas`,{ref:p,id:`background`,style:S}),e(`canvas`,{ref:m,id:`foreground`,style:S}),e(`div`,{ref:h,onMouseDown:b,style:S},u.map((t,n)=>e(`div`,{key:n,class:`editor__rect`,style:{top:`${t.y*g}px`,left:`${t.x*g}px`,width:`${t.w*g}px`,height:`${t.h*g}px`}},e(`button`,{"aria-label":i.removeHighlightText,onClick:x(n),onMouseDown:C,onMouseUp:C,type:`button`},e(s,null))))))),e(o,{options:i,action:a,setAction:l}))};return function({onError:r}){let[i,o]=t.useState();return a({onBeforeScreenshot:t.useCallback(()=>{l.display=`none`},[]),onScreenshot:t.useCallback((e,t)=>{Hg(R.createElement(`canvas`),{alpha:!1},(n,r)=>{r.scale(t,t),n.width=e.videoWidth,n.height=e.videoHeight,r.drawImage(e,0,0,n.width,n.height),o({canvas:n,dpi:t})}),n.width=e.videoWidth,n.height=e.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{l.display=`block`},[]),onError:t.useCallback(e=>{l.display=`block`,r(e)},[])}),i?e(u,{screenshot:i}):e(`div`,null)}}var Kg=(()=>({name:`FeedbackScreenshot`,setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{let i=R.createElement(`canvas`);return{input:Gg({h:e,hooks:t,outputBuffer:i,dialog:n,options:r}),value:async()=>{let e=await new Promise(e=>{i.toBlob(e,`image/png`)});if(e)return{data:new Uint8Array(await e.arrayBuffer()),filename:`screenshot.png`,contentType:`application/png`}}}}})),U=i,qg=0;function Jg(){return qg>0}function Yg(){qg++,setTimeout(()=>{qg--})}function Xg(e,t={}){function n(e){return typeof e==`function`}if(!n(e))return e;try{let t=e.__sentry_wrapped__;if(t)return typeof t==`function`?t:e;if(Ge(e))return e}catch{return e}let r=function(...n){try{let r=n.map(e=>Xg(e,t));return e.apply(this,r)}catch(e){throw Yg(),an(r=>{r.addEventProcessor(e=>(t.mechanism&&(dt(e,void 0,void 0),ft(e,t.mechanism)),e.extra={...e.extra,arguments:n},e)),I(e)}),e}};try{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch{}We(r,e),Ue(e,`__sentry_wrapped__`,r);try{Object.getOwnPropertyDescriptor(r,`name`).configurable&&Object.defineProperty(r,`name`,{get(){return e.name}})}catch{}return r}function Zg(){let e=Be(),{referrer:t}=U.document||{},{userAgent:n}=U.navigator||{};return{url:e,headers:{...t&&{Referer:t},...n&&{"User-Agent":n}}}}var Qg=[`replayIntegration`,`replayCanvasIntegration`,`feedbackIntegration`,`feedbackModalIntegration`,`feedbackScreenshotIntegration`,`captureConsoleIntegration`,`contextLinesIntegration`,`linkedErrorsIntegration`,`dedupeIntegration`,`extraErrorDataIntegration`,`graphqlClientIntegration`,`httpClientIntegration`,`reportingObserverIntegration`,`rewriteFramesIntegration`,`browserProfilingIntegration`,`moduleMetadataIntegration`,`instrumentAnthropicAiClient`,`instrumentOpenAiClient`,`instrumentGoogleGenAIClient`,`instrumentLangGraph`,`createLangChainCallbackHandler`,`instrumentLangChainEmbeddings`],$g={replayCanvasIntegration:`replay-canvas`,feedbackModalIntegration:`feedback-modal`,feedbackScreenshotIntegration:`feedback-screenshot`};function e_(e){return $g[e]||e.replace(`Integration`,``).toLowerCase()}var t_=U;async function n_(e,t){let n=Qg.includes(e)?e_(e):void 0,r=t_.Sentry=t_.Sentry||{};if(!n)throw Error(`Cannot lazy load integration: ${e}`);let i=r[e];if(typeof i==`function`&&!(`_isShim`in i))return i;let a=r_(n),o=U.document.createElement(`script`);o.src=a,o.crossOrigin=`anonymous`,o.referrerPolicy=`strict-origin`,t&&o.setAttribute(`nonce`,t);let s=new Promise((e,t)=>{o.addEventListener(`load`,()=>e()),o.addEventListener(`error`,t)}),c=U.document.currentScript,l=U.document.body||U.document.head||c?.parentElement;if(l)l.appendChild(o);else throw Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await s}catch{throw Error(`Error when loading integration: ${e}`)}let u=r[e];if(typeof u!=`function`)throw Error(`Could not load integration: ${e}`);return u}function r_(e){let t=A()?.getOptions()?.cdnBaseUrl||`https://browser.sentry-cdn.com`;return new URL(`/${a}/${e}.min.js`,t).toString()}var i_=th({lazyLoadIntegration:n_}),a_=th({getModalIntegration:()=>Ig,getScreenshotIntegration:()=>Kg});function o_(e,t){let n=l_(e,t),r={type:m_(t),value:h_(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===``&&(r.value=`Unrecoverable error caught`),r}function s_(e,t,n,r){let i=A()?.getOptions().normalizeDepth,a=S_(t),o={__serialized__:Xr(t,i)};if(a)return{exception:{values:[o_(e,a)]},extra:o};let s={exception:{values:[{type:Oe(t)?t.constructor.name:r?`UnhandledRejection`:`Error`,value:b_(t,{isUnhandledRejection:r})}]},extra:o};if(n){let t=l_(e,n);t.length&&(s.exception.values[0].stacktrace={frames:t})}return s}function c_(e,t){return{exception:{values:[o_(e,t)]}}}function l_(e,t){let n=t.stacktrace||t.stack||``,r=d_(t),i=f_(t);try{return e(n,r,i)}catch{}return[]}var u_=/Minified React error #\d+;/i;function d_(e){return e&&u_.test(e.message)?1:0}function f_(e){return typeof e.framesToPop==`number`?e.framesToPop:0}function p_(e){return typeof WebAssembly<`u`&&WebAssembly.Exception!==void 0?e instanceof WebAssembly.Exception:!1}function m_(e){let t=e?.name;return!t&&p_(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:`WebAssembly.Exception`:t}function h_(e){let t=e?.message;return p_(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:`wasm exception`:t?t.error&&typeof t.error.message==`string`?As(t.error):As(e):`No error message`}function g_(e,t,n,r){let i=v_(e,t,n?.syntheticException||void 0,r);return ft(i),i.level=`error`,n?.event_id&&(i.event_id=n.event_id),wa(i)}function __(e,t,n=`info`,r,i){let a=y_(e,t,r?.syntheticException||void 0,i);return a.level=n,r?.event_id&&(a.event_id=r.event_id),wa(a)}function v_(e,t,n,r,i){let a;if(xe(t)&&t.error)return c_(e,t.error);if(Se(t)||Ce(t)){let i=t;if(`stack`in t)a=c_(e,t);else{let t=i.name||(Se(i)?`DOMError`:`DOMException`),o=i.message?`${t}: ${i.message}`:t;a=y_(e,o,n,r),dt(a,o)}return`code`in i&&(a.tags={...a.tags,"DOMException.code":`${i.code}`}),a}return ye(t)?c_(e,t):De(t)||Oe(t)?(a=s_(e,t,n,i),ft(a,{synthetic:!0}),a):(a=y_(e,t,n,r),dt(a,`${t}`,void 0),ft(a,{synthetic:!0}),a)}function y_(e,t,n,r){let i={};if(r&&n){let r=l_(e,n);r.length&&(i.exception={values:[{value:t,stacktrace:{frames:r}}]}),ft(i,{synthetic:!0})}if(Te(t)){let{__sentry_template_string__:e,__sentry_template_values__:n}=t;return i.logentry={message:e,params:n},i}return i.message=t,i}function b_(e,{isUnhandledRejection:t}){let n=Ye(e),r=t?`promise rejection`:`exception`;return xe(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:Oe(e)?`Event \`${x_(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function x_(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function S_(e){return Object.values(e).find(e=>e instanceof Error)}var C_=class extends ys{constructor(e){let t=w_(e);tc(t,`browser`,[`browser`],U.SENTRY_SDK_SOURCE||lm()),t._metadata?.sdk&&(t._metadata.sdk.settings={infer_ip:t.sendDefaultPii?`auto`:`never`,...t._metadata.sdk.settings}),super(t);let{sendDefaultPii:n,sendClientReports:r,enableLogs:i,_experiments:a,enableMetrics:o}=this._options,s=o??a?.enableMetrics??!0;U.document&&(r||i||s)&&U.document.addEventListener(`visibilitychange`,()=>{U.document.visibilityState===`hidden`&&(r&&this._flushOutcomes(),i&&Io(this),s&&qo(this))}),n&&this.on(`beforeSendSession`,ec)}eventFromException(e,t){return g_(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t=`info`,n){return __(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||`javascript`,super._prepareEvent(e,t,n,r)}};function w_(e){return{release:typeof __SENTRY_RELEASE__==`string`?__SENTRY_RELEASE__:U.SENTRY_RELEASE?.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var T_=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,W=i,E_=(e,t)=>e>t[1]?`poor`:e>t[0]?`needs-improvement`:`good`,D_=(e,t,n,r)=>{let i,a;return o=>{t.value>=0&&(o||r)&&(a=t.value-(i??0),(a||i===void 0)&&(i=t.value,t.delta=a,t.rating=E_(t.value,n),e(t)))}},O_=(e=!0)=>{let t=W.performance?.getEntriesByType?.(`navigation`)[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},k_=()=>O_()?.activationStart??0;function A_(e,t,n){W.document&&W.addEventListener(e,t,n)}function j_(e,t,n){W.document&&W.removeEventListener(e,t,n)}var M_=-1,N_=new Set,P_=()=>W.document?.visibilityState===`hidden`&&!W.document?.prerendering?0:1/0,F_=e=>{if(L_(e)&&M_>-1){if(e.type===`visibilitychange`||e.type===`pagehide`)for(let e of N_)e();isFinite(M_)||(M_=e.type===`visibilitychange`?e.timeStamp:0,j_(`prerenderingchange`,F_,!0))}},I_=()=>{if(W.document&&M_<0){let e=k_();M_=(W.document.prerendering?void 0:globalThis.performance.getEntriesByType(`visibility-state`).filter(t=>t.name===`hidden`&&t.startTime>e)[0]?.startTime)??P_(),A_(`visibilitychange`,F_,!0),A_(`pagehide`,F_,!0),A_(`prerenderingchange`,F_,!0)}return{get firstHiddenTime(){return M_},onHidden(e){N_.add(e)}}};function L_(e){return e.type===`pagehide`||W.document?.visibilityState===`hidden`}var R_=()=>`v5-${Date.now()}-${Math.floor(Math.random()*8999999999999)+0xe8d4a51000}`,z_=(e,t=-1)=>{let n=O_(),r=`navigate`;return n&&(W.document?.prerendering||k_()>0?r=`prerender`:W.document?.wasDiscarded?r=`restore`:n.type&&(r=n.type.replace(/_/g,`-`))),{name:e,value:t,rating:`good`,delta:0,entries:[],id:R_(),navigationType:r}},B_=new WeakMap;function V_(e,t){try{return B_.get(e)||B_.set(e,new t),B_.get(e)}catch{return new t}}var H_=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this)}__init(){this._sessionValue=0}__init2(){this._sessionEntries=[]}_processEntry(e){if(e.hadRecentInput)return;let t=this._sessionEntries[0],n=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&t&&n&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(this._sessionValue+=e.value,this._sessionEntries.push(e)):(this._sessionValue=e.value,this._sessionEntries=[e]),this._onAfterProcessingUnexpectedShift?.(e)}},U_=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){let r=new PerformanceObserver(e=>{Promise.resolve().then(()=>{t(e.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},W_=e=>{let t=!1;return()=>{t||=(e(),!0)}},G_=e=>{W.document?.prerendering?addEventListener(`prerenderingchange`,()=>e(),!0):e()},K_=[1800,3e3],q_=(e,t={})=>{G_(()=>{let n=I_(),r=z_(`FCP`),i,a=U_(`paint`,e=>{for(let t of e)t.name===`first-contentful-paint`&&(a.disconnect(),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-k_(),0),r.entries.push(t),i(!0)))});a&&(i=D_(e,r,K_,t.reportAllChanges))})},J_=[.1,.25],Y_=(e,t={})=>{q_(W_(()=>{let n=z_(`CLS`,0),r,i=I_(),a=V_(t,H_),o=e=>{for(let t of e)a._processEntry(t);a._sessionValue>n.value&&(n.value=a._sessionValue,n.entries=a._sessionEntries,r())},s=U_(`layout-shift`,o);s&&(r=D_(e,n,J_,t.reportAllChanges),i.onHidden(()=>{o(s.takeRecords()),r(!0)}),W?.setTimeout?.(r))}))},X_=0,Z_=1/0,Q_=0,$_=e=>{e.forEach(e=>{e.interactionId&&(Z_=Math.min(Z_,e.interactionId),Q_=Math.max(Q_,e.interactionId),X_=Q_?(Q_-Z_)/7+1:0)})},ev,tv=()=>ev?X_:performance.interactionCount||0,nv=()=>{`interactionCount`in performance||ev||(ev=U_(`event`,$_,{type:`event`,buffered:!0,durationThreshold:0}))},rv=10,iv=0,av=()=>tv()-iv,ov=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this)}__init(){this._longestInteractionList=[]}__init2(){this._longestInteractionMap=new Map}_resetInteractions(){iv=tv(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){let e=Math.min(this._longestInteractionList.length-1,Math.floor(av()/50));return this._longestInteractionList[e]}_processEntry(e){if(this._onBeforeProcessingEntry?.(e),!(e.interactionId||e.entryType===`first-input`))return;let t=this._longestInteractionList.at(-1),n=this._longestInteractionMap.get(e.interactionId);if(n||this._longestInteractionList.length<rv||e.duration>t._latency){if(n?e.duration>n._latency?(n.entries=[e],n._latency=e.duration):e.duration===n._latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e):(n={id:e.interactionId,entries:[e],_latency:e.duration},this._longestInteractionMap.set(n.id,n),this._longestInteractionList.push(n)),this._longestInteractionList.sort((e,t)=>t._latency-e._latency),this._longestInteractionList.length>rv){let e=this._longestInteractionList.splice(rv);for(let t of e)this._longestInteractionMap.delete(t.id)}this._onAfterProcessingINPCandidate?.(n)}}},sv=e=>{let t=W.requestIdleCallback||W.setTimeout;W.document?.visibilityState===`hidden`?e():(e=W_(e),A_(`visibilitychange`,e,{once:!0,capture:!0}),A_(`pagehide`,e,{once:!0,capture:!0}),t(()=>{e(),j_(`visibilitychange`,e,{capture:!0}),j_(`pagehide`,e,{capture:!0})}))},cv=[200,500],lv=40,uv=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&`interactionId`in PerformanceEventTiming.prototype))return;let n=I_();G_(()=>{nv();let r=z_(`INP`),i,a=V_(t,ov),o=e=>{sv(()=>{for(let t of e)a._processEntry(t);let t=a._estimateP98LongestInteraction();t&&t._latency!==r.value&&(r.value=t._latency,r.entries=t.entries,i())})},s=U_(`event`,o,{durationThreshold:t.durationThreshold??lv});i=D_(e,r,cv,t.reportAllChanges),s&&(s.observe({type:`first-input`,buffered:!0}),n.onHidden(()=>{o(s.takeRecords()),i(!0)}))})},dv=class{_processEntry(e){this._onBeforeProcessingEntry?.(e)}},fv=[2500,4e3],pv=(e,t={})=>{G_(()=>{let n=I_(),r=z_(`LCP`),i,a=V_(t,dv),o=e=>{t.reportAllChanges||(e=e.slice(-1));for(let t of e)a._processEntry(t),t.startTime<n.firstHiddenTime&&(r.value=Math.max(t.startTime-k_(),0),r.entries=[t],i())},s=U_(`largest-contentful-paint`,o);if(s){i=D_(e,r,fv,t.reportAllChanges);let n=W_(()=>{o(s.takeRecords()),s.disconnect(),i(!0)}),a=e=>{e.isTrusted&&(sv(n),j_(e.type,a,{capture:!0}))};for(let e of[`keydown`,`click`,`visibilitychange`])A_(e,a,{capture:!0})}})},mv=[800,1800],hv=e=>{W.document?.prerendering?G_(()=>hv(e)):W.document?.readyState===`complete`?setTimeout(e):addEventListener(`load`,()=>hv(e),!0)},gv=(e,t={})=>{let n=z_(`TTFB`),r=D_(e,n,mv,t.reportAllChanges);hv(()=>{let e=O_();e&&(n.value=Math.max(e.responseStart-k_(),0),n.entries=[e],r(!0))})},_v={},vv={},yv,bv,xv,Sv;function Cv(e,t=!1){return Nv(`cls`,e,kv,yv,t)}function wv(e,t=!1){return Nv(`lcp`,e,Av,bv,t)}function Tv(e){return Nv(`ttfb`,e,jv,xv)}function Ev(e){return Nv(`inp`,e,Mv,Sv)}function Dv(e,t){return Fv(e,t),vv[e]||(Pv(e),vv[e]=!0),Iv(e,t)}function Ov(e,t){let n=_v[e];if(n?.length)for(let r of n)try{r(t)}catch(t){T_&&x.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${ie(r)}\nError:`,t)}}function kv(){return Y_(e=>{Ov(`cls`,{metric:e}),yv=e},{reportAllChanges:!0})}function Av(){return pv(e=>{Ov(`lcp`,{metric:e}),bv=e},{reportAllChanges:!0})}function jv(){return gv(e=>{Ov(`ttfb`,{metric:e}),xv=e})}function Mv(){return uv(e=>{Ov(`inp`,{metric:e}),Sv=e})}function Nv(e,t,n,r,i=!1){Fv(e,t);let a;return vv[e]||(a=n(),vv[e]=!0),r&&t({metric:r}),Iv(e,t,i?a:void 0)}function Pv(e){let t={};e===`event`&&(t.durationThreshold=0),U_(e,t=>{Ov(e,{entries:t})},t)}function Fv(e,t){_v[e]=_v[e]||[],_v[e].push(t)}function Iv(e,t,n){return()=>{n&&n();let r=_v[e];if(!r)return;let i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function Lv(e){return`duration`in e}var Rv=e=>{let t=t=>{(t.type===`pagehide`||W.document?.visibilityState===`hidden`)&&e(t)};A_(`visibilitychange`,t,{capture:!0,once:!0}),A_(`pagehide`,t,{capture:!0,once:!0})};function zv(e){return typeof e==`number`&&isFinite(e)}function Bv(e,t,n,{...r}){let i=N(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime==`function`&&e.updateStartTime(t),Hi(e,()=>{let e=Bi({startTime:t,...r});return e&&e.end(n),e})}function Vv(e){let t=A();if(!t)return;let{name:n,transaction:r,attributes:i,startTime:a}=e,{release:o,environment:s,sendDefaultPii:c}=t.getOptions(),l=t.getIntegrationByName(`Replay`)?.getReplayId(),u=O(),d=u.getUser(),f=d===void 0?void 0:d.email||d.id||d.ip_address,p;try{p=u.getScopeData().contexts.profile.profile_id}catch{}return Bi({name:n,attributes:{release:o,environment:s,user:f||void 0,profile_id:p||void 0,replay_id:l||void 0,transaction:r,"user_agent.original":W.navigator?.userAgent,"client.address":c?`{{auto}}`:void 0,...i},startTime:a,experimental:{standalone:!0}})}function Hv(){return W.addEventListener&&W.performance}function G(e){return e/1e3}function Uv(e){let t=`unknown`,n=`unknown`,r=``;for(let i of e){if(i===`/`){[t,n]=e.split(`/`);break}if(!isNaN(Number(i))){t=r===`h`?`http`:r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function Wv(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function Gv(e,t){let n,r=!1;function i(e){!r&&n&&t(e,n.spanContext().spanId,n),r=!0}Rv(()=>{i(`pagehide`)});let a=e.on(`beforeStartNavigationSpan`,(e,t)=>{t?.isRedirect||(i(`navigation`),a(),o())}),o=e.on(`afterStartPageLoadSpan`,e=>{n=e,o()})}function Kv(e){let t=0,n;if(!Wv(`layout-shift`))return;let r=Cv(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);Gv(e,(e,i)=>{qv(t,n,i,e),r()})}function qv(e,t,n,r){T_&&x.log(`Sending CLS span (${e})`);let i=t?G((St()||0)+t.startTime):D(),a=O().getScopeData().transactionName,o=t?Re(t.sources[0]?.node):`Layout shift`,s={[M]:`auto.http.browser.cls`,[j]:`ui.webvital.cls`,[En]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t?.sources&&t.sources.forEach((e,t)=>{s[`cls.source.${t+1}`]=Re(e.node)});let c=Vv({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`cls`,{[fn]:``,[pn]:e}),c.end(i))}function Jv(e){return e!=null&&e>0&&e<=6e4}function Yv(e){let t=0,n;if(!Wv(`largest-contentful-paint`))return;let r=wv(({metric:e})=>{let r=e.entries[e.entries.length-1];!r||!Jv(e.value)||(t=e.value,n=r)},!0);Gv(e,(e,i)=>{Xv(t,n,i,e),r()})}function Xv(e,t,n,r){if(!Jv(e))return;T_&&x.log(`Sending LCP span (${e})`);let i=G((St()||0)+(t?.startTime||0)),a=O().getScopeData().transactionName,o=t?Re(t.element):`Largest contentful paint`,s={[M]:`auto.http.browser.lcp`,[j]:`ui.webvital.lcp`,[En]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(s[`lcp.element`]=Re(t.element)),t.id&&(s[`lcp.id`]=t.id),t.url&&(s[`lcp.url`]=t.url),t.loadTime!=null&&(s[`lcp.loadTime`]=t.loadTime),t.renderTime!=null&&(s[`lcp.renderTime`]=t.renderTime),t.size!=null&&(s[`lcp.size`]=t.size));let c=Vv({name:o,transaction:a,attributes:s,startTime:i});c&&(c.addEvent(`lcp`,{[fn]:`millisecond`,[pn]:e}),c.end(i))}function Zv(e){return e&&((St()||performance.timeOrigin)+e)/1e3}function Qv(e){let t={};if(e.nextHopProtocol!=null){let{name:n,version:r}=Uv(e.nextHopProtocol);t[`network.protocol.version`]=r,t[`network.protocol.name`]=n}return St()||Hv()?.timeOrigin?$v({...t,"http.request.redirect_start":Zv(e.redirectStart),"http.request.redirect_end":Zv(e.redirectEnd),"http.request.worker_start":Zv(e.workerStart),"http.request.fetch_start":Zv(e.fetchStart),"http.request.domain_lookup_start":Zv(e.domainLookupStart),"http.request.domain_lookup_end":Zv(e.domainLookupEnd),"http.request.connect_start":Zv(e.connectStart),"http.request.secure_connection_start":Zv(e.secureConnectionStart),"http.request.connection_end":Zv(e.connectEnd),"http.request.request_start":Zv(e.requestStart),"http.request.response_start":Zv(e.responseStart),"http.request.response_end":Zv(e.responseEnd),"http.request.time_to_first_byte":e.responseStart==null?void 0:e.responseStart/1e3}):t}function $v(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!=null))}var ey=2147483647,ty=0,ny={},ry,iy;function ay({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){let r=Hv();if(r&&St()){r.mark&&W.performance.mark(`sentry-tracing-init`);let i=t?Yv(n):t===!1?uy():void 0,a=e?Kv(n):e===!1?ly():void 0,o=dy();return()=>{o(),i?.(),a?.()}}return()=>void 0}function oy(){Dv(`longtask`,({entries:e})=>{let t=F();if(!t)return;let{op:n,start_timestamp:r}=N(t);for(let i of e){let e=G(St()+i.startTime),a=G(i.duration);n===`navigation`&&r&&e<r||Bv(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-task`,attributes:{[M]:`auto.ui.browser.metrics`}})}})}function sy(){new PerformanceObserver(e=>{let t=F();if(t)for(let n of e.getEntries()){if(!n.scripts[0])continue;let e=G(St()+n.startTime),{start_timestamp:r,op:i}=N(t);if(i===`navigation`&&r&&e<r)continue;let a=G(n.duration),o={[M]:`auto.ui.browser.metrics`},{invoker:s,invokerType:c,sourceURL:l,sourceFunctionName:u,sourceCharPosition:d}=n.scripts[0];o[`browser.script.invoker`]=s,o[`browser.script.invoker_type`]=c,l&&(o[`code.filepath`]=l),u&&(o[`code.function`]=u),d!==-1&&(o[`browser.script.source_char_position`]=d),Bv(t,e,e+a,{name:`Main UI thread blocked`,op:`ui.long-animation-frame`,attributes:o})}}).observe({type:`long-animation-frame`,buffered:!0})}function cy(){Dv(`event`,({entries:e})=>{let t=F();if(t){for(let n of e)if(n.name===`click`){let e=G(St()+n.startTime),r=G(n.duration),i={name:Re(n.target),op:`ui.interaction.${n.name}`,startTime:e,attributes:{[M]:`auto.ui.browser.metrics`}},a=Ve(n.target);a&&(i.attributes[`ui.component_name`]=a),Bv(t,e,e+r,i)}}})}function ly(){return Cv(({metric:e})=>{let t=e.entries[e.entries.length-1];t&&(ny.cls={value:e.value,unit:``},iy=t)},!0)}function uy(){return wv(({metric:e})=>{let t=e.entries[e.entries.length-1];!t||!Jv(e.value)||(ny.lcp={value:e.value,unit:`millisecond`},ry=t)},!0)}function dy(){return Tv(({metric:e})=>{e.entries[e.entries.length-1]&&(ny.ttfb={value:e.value,unit:`millisecond`})})}function fy(e,t){let n=Hv(),r=St();if(!n?.getEntries||!r)return;let{spanStreamingEnabled:i,ignorePerformanceApiSpans:a,ignoreResourceSpans:o,recordClsOnPageloadSpan:s,recordLcpOnPageloadSpan:c}=t,l=G(r),u=n.getEntries(),{op:d,start_timestamp:f}=N(e);if(u.slice(ty).forEach(t=>{let n=G(t.startTime),r=G(Math.max(0,t.duration));if(!(d===`navigation`&&f&&l+n<f))switch(t.entryType){case`navigation`:gy(e,t,l);break;case`mark`:case`paint`:case`measure`:{my(e,t,n,r,l,a);let i=I_(),o=t.startTime<i.firstHiddenTime;t.name===`first-paint`&&o&&(ny.fp={value:t.startTime,unit:`millisecond`}),t.name===`first-contentful-paint`&&o&&(ny.fcp={value:t.startTime,unit:`millisecond`});break}case`resource`:by(e,t,t.name,n,r,l,o);break}}),ty=Math.max(u.length-1,0),xy(e,i),d===`pageload`){if(wy(ny),i){let t=(t,n,r)=>{let i=r??`browser.web_vital.${t}.value`;e.setAttribute(i,n),T_&&x.log(`Setting web vital attribute`,{[i]:n},`on pageload span`)};[`ttfb`,`fp`,`fcp`].forEach(e=>{ny[e]&&t(e,ny[e].value)}),ny[`ttfb.requestTime`]&&t(`ttfb.requestTime`,ny[`ttfb.requestTime`].value,`browser.web_vital.ttfb.request_time`)}else s||delete ny.cls,c||delete ny.lcp,Object.entries(ny).forEach(([e,t])=>{Ti(e,t.value,t.unit)}),Sy(e,t);e.setAttribute(i?`browser.performance.time_origin`:`performance.timeOrigin`,l),e.setAttribute(i?`browser.performance.navigation.activation_start`:`performance.activationStart`,k_())}ry=void 0,iy=void 0,ny={}}function py(e){if(e?.entryType===`measure`)try{return e.detail.devtools.track===`Components ⚛`}catch{return}}function my(e,t,n,r,i,a){if(py(t)||[`mark`,`measure`].includes(t.entryType)&&it(t.name,a))return;let o=O_(!1),s=G(o?o.requestStart:0),c=i+Math.max(n,s),l=i+n,u=l+r,d={[M]:`auto.resource.browser.metrics`};c!==l&&(d[`sentry.browser.measure_happened_before_request`]=!0,d[`sentry.browser.measure_start_time`]=c),hy(d,t),c<=u&&Bv(e,c,u,{name:t.name,op:t.entryType,attributes:d})}function hy(e,t){try{let n=t.detail;if(!n)return;if(typeof n==`object`){for(let[t,r]of Object.entries(n))if(r&&Ee(r))e[`sentry.browser.measure.detail.${t}`]=r;else if(r!==void 0)try{e[`sentry.browser.measure.detail.${t}`]=JSON.stringify(r)}catch{}return}if(Ee(n)){e[`sentry.browser.measure.detail`]=n;return}try{e[`sentry.browser.measure.detail`]=JSON.stringify(n)}catch{}}catch{}}function gy(e,t,n){[`unloadEvent`,`redirect`,`domContentLoadedEvent`,`loadEvent`,`connect`].forEach(r=>{_y(e,t,r,n)}),_y(e,t,`secureConnection`,n,`TLS/SSL`),_y(e,t,`fetch`,n,`cache`),_y(e,t,`domainLookup`,n,`DNS`),yy(e,t,n)}function _y(e,t,n,r,i=n){let a=t[vy(n)],o=t[`${n}Start`];!o||!a||Bv(e,r+G(o),r+G(a),{op:`browser.${i}`,name:t.name,attributes:{[M]:`auto.ui.browser.metrics`,...n===`redirect`&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function vy(e){return e===`secureConnection`?`connectEnd`:e===`fetch`?`domainLookupStart`:`${e}End`}function yy(e,t,n){let r=n+G(t.requestStart),i=n+G(t.responseEnd),a=n+G(t.responseStart);t.responseEnd&&(Bv(e,r,i,{op:`browser.request`,name:t.name,attributes:{[M]:`auto.ui.browser.metrics`}}),Bv(e,a,i,{op:`browser.response`,name:t.name,attributes:{[M]:`auto.ui.browser.metrics`}}))}function by(e,t,n,r,i,a,o){if(t.initiatorType===`xmlhttprequest`||t.initiatorType===`fetch`)return;let s=t.initiatorType?`resource.${t.initiatorType}`:`resource.other`;if(o?.includes(s))return;let c={[M]:`auto.resource.browser.metrics`},l=Gs(n);l.protocol&&(c[`url.scheme`]=l.protocol.split(`:`).pop()),l.host&&(c[`server.address`]=l.host),c[`url.same_origin`]=n.includes(W.location.origin),Cy(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`]]);let u={...c,...Qv(t)},d=a+r;Bv(e,d,d+i,{name:n.replace(W.location.origin,``),op:s,attributes:u})}function xy(e,t){let n=W.navigator;if(!n)return;let 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),zv(r.rtt)&&(ny[`connection.rtt`]={value:r.rtt,unit:`millisecond`},t&&e.setAttribute(`network.connection.rtt`,r.rtt))),zv(n.deviceMemory)&&(t?e.setAttribute(`device.memory.estimated_capacity`,n.deviceMemory):e.setAttribute(`deviceMemory`,`${n.deviceMemory} GB`)),zv(n.hardwareConcurrency)&&(t?e.setAttribute(`device.processor_count`,n.hardwareConcurrency):e.setAttribute(`hardwareConcurrency`,String(n.hardwareConcurrency)))}function Sy(e,t){ry&&t.recordLcpOnPageloadSpan&&(ry.element&&e.setAttribute(`lcp.element`,Re(ry.element)),ry.id&&e.setAttribute(`lcp.id`,ry.id),ry.url&&e.setAttribute(`lcp.url`,ry.url.trim().slice(0,200)),ry.loadTime!=null&&e.setAttribute(`lcp.loadTime`,ry.loadTime),ry.renderTime!=null&&e.setAttribute(`lcp.renderTime`,ry.renderTime),e.setAttribute(`lcp.size`,ry.size)),iy?.sources&&t.recordClsOnPageloadSpan&&iy.sources.forEach((t,n)=>e.setAttribute(`cls.source.${n+1}`,Re(t.node)))}function Cy(e,t,n){n.forEach(([n,r])=>{let i=e[n];i!=null&&(typeof i==`number`&&i<ey||typeof i==`string`)&&(t[r]=i)})}function wy(e){let t=O_(!1);if(!t)return;let{responseStart:n,requestStart:r}=t;r<=n&&(e[`ttfb.requestTime`]={value:n-r,unit:`millisecond`})}var Ty=`ElementTiming`,Ey=L((()=>({name:Ty,setup(){!Hv()||!St()||Dv(`element`,({entries:e})=>{for(let t of e){let e=t;if(!e.identifier)continue;let n=e.identifier,r=e.name,i=e.renderTime,a=e.loadTime,o={"sentry.origin":`auto.ui.browser.element_timing`,"ui.element.identifier":n};r&&(o[`ui.element.paint_type`]=r),e.id&&(o[`ui.element.id`]=e.id),e.element&&(o[`ui.element.type`]=e.element.tagName.toLowerCase()),e.url&&(o[`ui.element.url`]=e.url),e.naturalWidth&&(o[`ui.element.width`]=e.naturalWidth),e.naturalHeight&&(o[`ui.element.height`]=e.naturalHeight),i>0&&Du(`ui.element.render_time`,i,{unit:`millisecond`,attributes:o}),a>0&&Du(`ui.element.load_time`,a,{unit:`millisecond`,attributes:o})}})}}))),Dy=[],Oy=new Map,ky=new Map;function Ay(){if(Hv()&&St()){let e=My();return()=>{e()}}return()=>void 0}var jy={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 My(){return Ev(Ny)}var Ny=({metric:e})=>{if(e.value==null)return;let t=G(e.value);if(t>60)return;let n=e.entries.find(t=>t.duration===e.value&&jy[t.name]);if(!n)return;let{interactionId:r}=n,i=jy[n.name],a=G(St()+n.startTime),o=F(),s=o?P(o):void 0,c=r==null?void 0:Oy.get(r),l=c?.span||s,u=l?N(l).description:O().getScopeData().transactionName,d=Vv({name:c?.elementName||Re(n.target),transaction:u,attributes:{[M]:`auto.http.browser.inp`,[j]:`ui.interaction.${i}`,[En]:n.duration},startTime:a});d&&(d.addEvent(`inp`,{[fn]:`millisecond`,[pn]:e.value}),d.end(a+t))};function Py(e){return e==null?void 0:Oy.get(e)}function Fy(){let e=Object.keys(jy);dm()&&e.forEach(e=>{W.addEventListener(e,t,{capture:!0,passive:!0})});function t(e){let t=e.target;if(!t)return;let n=Re(t),r=Math.round(e.timeStamp);if(ky.set(r,n),ky.size>50){let e=ky.keys().next().value;e!==void 0&&ky.delete(e)}}function n(e){let t=Math.round(e.startTime),n=ky.get(t);if(!n)for(let e=-5;e<=5;e++){let r=ky.get(t+e);if(r){n=r;break}}return n||`<unknown>`}let r=({entries:e})=>{let t=F(),r=t&&P(t);e.forEach(e=>{if(!Lv(e))return;let t=e.interactionId;if(t==null||Oy.has(t))return;let i=e.target?Re(e.target):n(e);if(Dy.length>10){let e=Dy.shift();Oy.delete(e)}Dy.push(t),Oy.set(t,{span:r,elementName:i})})};Dv(`event`,r),Dv(`first-input`,r)}function Iy(e){let{name:t,op:n,origin:r,metricName:i,value:a,attributes:o,parentSpan:s,reportEvent:c,startTime:l,endTime:u}=e,d=O().getScopeData().transactionName,f={[M]:r,[j]:n,[En]:0,[`browser.web_vital.${i}.value`]:a,"sentry.transaction":d,"user_agent.original":W.navigator?.userAgent,...o};s&&gr(s).attributes?.[`sentry.op`]===`pageload`&&(f[`sentry.pageload.span_id`]=s.spanContext().spanId),c&&(f[`browser.web_vital.${i}.report_event`]=c);let p=Bi({name:t,attributes:f,startTime:l,parentSpan:s});p&&p.end(u??l)}function Ly(e){let t=0,n;if(!Wv(`largest-contentful-paint`))return;let r=wv(({metric:e})=>{let r=e.entries[e.entries.length-1];!r||!Jv(e.value)||(t=e.value,n=r)},!0);Gv(e,(e,i,a)=>{Ry(t,n,a,e),r()})}function Ry(e,t,n,r){if(!Jv(e))return;T_&&x.log(`Sending LCP span (${e})`);let i=St()||0,a=G(i),o=G(i+(t?.startTime||0)),s=t?Re(t.element):`Largest contentful paint`,c={};t?.element&&(c[`browser.web_vital.lcp.element`]=Re(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),Iy({name:s,op:`ui.webvital.lcp`,origin:`auto.http.browser.lcp`,metricName:`lcp`,value:e,attributes:c,parentSpan:n,reportEvent:r,startTime:a,endTime:o})}function zy(e){let t=0,n;if(!Wv(`layout-shift`))return;let r=Cv(({metric:e})=>{let r=e.entries[e.entries.length-1];r&&(t=e.value,n=r)},!0);Gv(e,(e,i,a)=>{By(t,n,a,e),r()})}function By(e,t,n,r){T_&&x.log(`Sending CLS span (${e})`);let i=t?G((St()||0)+t.startTime):D(),a=t?Re(t.sources[0]?.node):`Layout shift`,o={};t?.sources&&t.sources.forEach((e,t)=>{o[`browser.web_vital.cls.source.${t+1}`]=Re(e.node)}),Iy({name:a,op:`ui.webvital.cls`,origin:`auto.http.browser.cls`,metricName:`cls`,value:e,attributes:o,parentSpan:n,reportEvent:r,startTime:i})}function Vy(){!Hv()||!St()||Ev(({metric:e})=>{if(e.value==null||G(e.value)>60)return;let t=e.entries.find(t=>t.duration===e.value&&jy[t.name]);t&&Hy(e.value,t)})}function Hy(e,t){T_&&x.log(`Sending INP span (${e})`);let n=G(St()+t.startTime),r=G(e),i=jy[t.name],a=Py(t.interactionId),o=F(),s=o?P(o):void 0,c=a?.span||s,l=c?gr(c).name:O().getScopeData().transactionName;Iy({name:a?.elementName||Re(t.target),op:`ui.interaction.${i}`,origin:`auto.http.browser.inp`,metricName:`inp`,value:e,attributes:{[En]:t.duration,"sentry.transaction":l},startTime:n,endTime:n+r,parentSpan:c})}var Uy=1e3,Wy,Gy,Ky;function qy(e){le(`dom`,e),ue(`dom`,Jy)}function Jy(){if(!W.document)return;let e=de.bind(null,`dom`),t=Zy(e,!0);W.document.addEventListener(`click`,t,!1),W.document.addEventListener(`keypress`,t,!1),[`EventTarget`,`Node`].forEach(t=>{let n=W[t]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(He(n,`addEventListener`,function(t){return function(n,r,i){if(n===`click`||n==`keypress`)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=r[n]=r[n]||{refCount:0};if(!a.handler){let r=Zy(e);a.handler=r,t.call(this,n,r,i)}a.refCount++}catch{}return t.call(this,n,r,i)}}),He(n,`removeEventListener`,function(e){return function(t,n,r){if(t===`click`||t==`keypress`)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete n[t]),Object.keys(n).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return e.call(this,t,n,r)}}))})}function Yy(e){if(e.type!==Gy)return!1;try{if(!e.target||e.target._sentryId!==Ky)return!1}catch{}return!0}function Xy(e,t){return e===`keypress`?t?.tagName?!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.isContentEditable):!0:!1}function Zy(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=Qy(n);if(Xy(n.type,r))return;Ue(n,`_sentryCaptured`,!0),r&&!r._sentryId&&Ue(r,`_sentryId`,ct());let i=n.type===`keypress`?`input`:n.type;Yy(n)||(e({event:n,name:i,global:t}),Gy=n.type,Ky=r?r._sentryId:void 0),clearTimeout(Wy),Wy=W.setTimeout(()=>{Ky=void 0,Gy=void 0},Uy)}}function Qy(e){try{return e.target}catch{return null}}var $y;function eb(e){let t=`history`;le(t,e),ue(t,tb)}function tb(){if(W.addEventListener(`popstate`,()=>{let e=W.location.href,t=$y;$y=e,t!==e&&de(`history`,{from:t,to:e})}),!Jp())return;function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let r=$y,i=nb(String(n));if($y=i,r===i)return e.apply(this,t);de(`history`,{from:r,to:i})}return e.apply(this,t)}}He(W.history,`pushState`,e),He(W.history,`replaceState`,e)}function nb(e){try{return new URL(e,W.location.origin).toString()}catch{return e}}var rb={};function ib(e){let t=rb[e];if(t)return t;let n=W[e];if(Xp(n))return rb[e]=n.bind(W);let r=W.document;if(r&&typeof r.createElement==`function`)try{let t=r.createElement(`iframe`);t.hidden=!0,r.head.appendChild(t);let i=t.contentWindow;i?.[e]&&(n=i[e]),r.head.removeChild(t)}catch(t){T_&&x.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,t)}return n&&(rb[e]=n.bind(W))}function ab(e){rb[e]=void 0}function ob(...e){return ib(`setTimeout`)(...e)}var sb=`__sentry_xhr_v3__`;function cb(e){le(`xhr`,e),ue(`xhr`,lb)}function lb(){if(!W.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(e,t,n){let r=Error(),i=D()*1e3,a=we(n[0])?n[0].toUpperCase():void 0,o=ub(n[1]);if(!a||!o)return e.apply(t,n);t[sb]={method:a,url:o,request_headers:{}},a===`POST`&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);let s=()=>{let e=t[sb];if(e&&t.readyState===4){try{e.status_code=t.status}catch{}de(`xhr`,{endTimestamp:D()*1e3,startTimestamp:i,xhr:t,virtualError:r})}};return`onreadystatechange`in t&&typeof t.onreadystatechange==`function`?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(e,t,n){return s(),e.apply(t,n)}}):t.addEventListener(`readystatechange`,s),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(e,t,n){let[r,i]=n,a=t[sb];return a&&we(r)&&we(i)&&(a.request_headers[r.toLowerCase()]=i),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply(e,t,n){let r=t[sb];return r?(n[0]!==void 0&&(r.body=n[0]),de(`xhr`,{startTimestamp:D()*1e3,xhr:t}),e.apply(t,n)):e.apply(t,n)}})}function ub(e){if(we(e))return e;try{return e.toString()}catch{}}var db=Symbol.for(`sentry__originalRequestBody`);function fb(e){return new URLSearchParams(e).toString()}function pb(e,t=x){try{if(typeof e==`string`)return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[fb(e)];if(!e)return[void 0]}catch(n){return T_&&t.error(n,`Failed to serialize body`,e),[void 0,`BODY_PARSE_ERROR`]}return T_&&t.log(`Skipping network body because of body type`,e),[void 0,`UNPARSEABLE_BODY_TYPE`]}function mb(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){let t=e[0][db];return t===void 0?void 0:t}}function hb(e){let t;try{t=e.getAllResponseHeaders()}catch(t){return T_&&x.error(t,`Failed to get xhr response headers`,e),{}}return t?t.split(`\r
|
|
475
|
+
`).reduce((e,t)=>{let[n,r]=t.split(`: `);return r&&(e[n.toLowerCase()]=r),e},{}):{}}var gb=40;function _b(e,t=ib(`fetch`)){let n=0,r=0;async function i(i){let a=i.body.length;n+=a,r++;let o={body:i.body,method:`POST`,referrerPolicy:`strict-origin`,headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let n=await t(e.url,o);return{statusCode:n.status,headers:{"x-sentry-rate-limits":n.headers.get(`X-Sentry-Rate-Limits`),"retry-after":n.headers.get(`Retry-After`)}}}catch(e){throw ab(`fetch`),e}finally{n-=a,r--}}return is(e,i,Qo(e.bufferSize||gb))}var K=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;function vb(){let e=A();if(!e){K&&x.warn(`No Sentry client available, profiling is not started`);return}if(!e.getIntegrationByName(`BrowserProfiling`)){K&&x.warn(`BrowserProfiling integration is not available`);return}e.emit(`startUIProfiler`)}function yb(){let e=A();if(!e){K&&x.warn(`No Sentry client available, profiling is not started`);return}if(!e.getIntegrationByName(`BrowserProfiling`)){K&&x.warn(`ProfilingIntegration is not available`);return}e.emit(`stopUIProfiler`)}var bb={startProfiler:vb,stopProfiler:yb},xb=10,Sb=20,Cb=30,wb=40,Tb=50;function Eb(e,t,n,r){let i={filename:e,function:t===`<anonymous>`?`?`:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}var Db=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Ob=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,kb=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ab=/at (.+?) ?\(data:(.+?),/,jb=[Cb,e=>{let t=e.match(Ab);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=Db.exec(e);if(n){let[,e,t,r]=n;return Eb(e,`?`,+t,+r)}let r=Ob.exec(e);if(r){if(r[2]?.indexOf(`eval`)===0){let e=kb.exec(r[2]);e&&(r[2]=e[1],r[3]=e[2],r[4]=e[3])}let[e,t]=Ub(r[1]||`?`,r[2]);return Eb(t,e,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}}],Mb=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Nb=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Pb=[Tb,e=>{let t=Mb.exec(e);if(t){if(t[3]&&t[3].indexOf(` > eval`)>-1){let e=Nb.exec(t[3]);e&&(t[1]=t[1]||`eval`,t[3]=e[1],t[4]=e[2],t[5]=``)}let e=t[3],n=t[1]||`?`;return[n,e]=Ub(n,e),Eb(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],Fb=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ib=[wb,e=>{let t=Fb.exec(e);return t?Eb(t[2],t[1]||`?`,+t[3],t[4]?+t[4]:void 0):void 0}],Lb=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Rb=[xb,e=>{let t=Lb.exec(e);return t?Eb(t[2],t[3]||`?`,+t[1]):void 0}],zb=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Bb=[Sb,e=>{let t=zb.exec(e);return t?Eb(t[5],t[3]||t[4]||`?`,+t[1],+t[2]):void 0}],Vb=[jb,Pb],Hb=T(...Vb),Ub=(e,t)=>{let n=e.indexOf(`safari-extension`)!==-1,r=e.indexOf(`safari-web-extension`)!==-1;return n||r?[e.indexOf(`@`)===-1?`?`:e.split(`@`)[0],n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function Wb(e,{metadata:t,tunnel:n,dsn:r}){return ri({event_id:e.event_id,sent_at:new Date().toISOString(),...t?.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Kn(r)}},[Gb(e)])}function Gb(e){return[{type:`user_report`},e]}var Kb=1024,qb=`Breadcrumbs`,Jb=L(((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:qb,setup(e){t.console&&Lc(Zb(e)),t.dom&&qy(Xb(e,t.dom)),t.xhr&&cb(Qb(e)),t.fetch&&$p($b(e)),t.history&&eb(ex(e)),t.sentry&&e.on(`beforeSendEvent`,Yb(e))}}}));function Yb(e){return function(t){A()===e&&sc({category:`sentry.${t.type===`transaction`?`transaction`:`event`}`,event_id:t.event_id,level:t.level,message:ut(t)},{event:t})}}function Xb(e,t){return function(n){if(A()!==e)return;let r,i,a=typeof t==`object`?t.serializeAttribute:void 0,o=typeof t==`object`&&typeof t.maxStringLength==`number`?t.maxStringLength:void 0;o&&o>Kb&&(K&&x.warn(`\`dom.maxStringLength\` cannot exceed ${Kb}, but a value of ${o} was configured. Sentry will use ${Kb} instead.`),o=Kb),typeof a==`string`&&(a=[a]);try{let e=n.event,t=tx(e)?e.target:e;r=Re(t,{keyAttrs:a,maxStringLength:o}),i=Ve(t)}catch{r=`<unknown>`}if(r.length===0)return;let s={category:`ui.${n.name}`,message:r};i&&(s.data={"ui.component_name":i}),sc(s,{event:n.event,name:n.name,global:n.global})}}function Zb(e){return function(t){if(A()!==e)return;let n={category:`console`,data:{arguments:t.args,logger:`console`},level:zc(t.level),message:nt(t.args,` `)};if(t.level===`assert`)if(t.args[0]===!1)n.message=`Assertion failed: ${nt(t.args.slice(1),` `)||`console.assert`}`,n.data.arguments=t.args.slice(1);else return;sc(n,{input:t.args,level:t.level})}}function Qb(e){return function(t){if(A()!==e)return;let{startTimestamp:n,endTimestamp:r}=t,i=t.xhr[sb];if(!n||!r||!i)return;let{method:a,url:o,status_code:s,body:c}=i,l={method:a,url:o,status_code:s},u={xhr:t.xhr,input:c,startTimestamp:n,endTimestamp:r},d={category:`xhr`,data:l,type:`http`,level:Kp(s)};e.emit(`beforeOutgoingRequestBreadcrumb`,d,u),sc(d,u)}}function $b(e){return function(t){if(A()!==e)return;let{startTimestamp:n,endTimestamp:r}=t;if(r&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method===`POST`))if(t.error){let i={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r},a={category:`fetch`,data:t.fetchData,level:`error`,type:`http`};e.emit(`beforeOutgoingRequestBreadcrumb`,a,i),sc(a,i)}else{let i=t.response,a={...t.fetchData,status_code:i?.status},o={input:t.args,response:i,startTimestamp:n,endTimestamp:r},s={category:`fetch`,data:a,type:`http`,level:Kp(a.status_code)};e.emit(`beforeOutgoingRequestBreadcrumb`,s,o),sc(s,o)}}}function ex(e){return function(t){if(A()!==e)return;let n=t.from,r=t.to,i=Gs(U.location.href),a=n?Gs(n):void 0,o=Gs(r);a?.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),sc({category:`navigation`,data:{from:n,to:r}})}}function tx(e){return!!e&&!!e.target}var nx=`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(`,`),rx=`BrowserApiErrors`,ix=L(((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:rx,setupOnce(){t.setTimeout&&He(U,`setTimeout`,ax),t.setInterval&&He(U,`setInterval`,ax),t.requestAnimationFrame&&He(U,`requestAnimationFrame`,ox),t.XMLHttpRequest&&`XMLHttpRequest`in U&&He(XMLHttpRequest.prototype,`send`,sx);let e=t.eventTarget;e&&(Array.isArray(e)?e:nx).forEach(e=>cx(e,t))}}}));function ax(e){return function(...t){let n=t[0];return t[0]=Xg(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${ie(e)}`}}),e.apply(this,t)}}function ox(e){return function(t){return e.apply(this,[Xg(t,{mechanism:{data:{handler:ie(e)},handled:!1,type:`auto.browser.browserapierrors.requestAnimationFrame`}})])}}function sx(e){return function(...t){let n=this;return[`onload`,`onerror`,`onprogress`,`onreadystatechange`].forEach(e=>{e in n&&typeof n[e]==`function`&&He(n,e,function(t){let n={mechanism:{data:{handler:ie(t)},handled:!1,type:`auto.browser.browserapierrors.xhr.${e}`}},r=Ge(t);return r&&(n.mechanism.data.handler=ie(r)),Xg(t,n)})}),e.apply(this,t)}}function cx(e,t){let n=U[e]?.prototype;n?.hasOwnProperty?.(`addEventListener`)&&(He(n,`addEventListener`,function(n){return function(r,i,a){try{lx(i)&&(i.handleEvent=Xg(i.handleEvent,{mechanism:{data:{handler:ie(i),target:e},handled:!1,type:`auto.browser.browserapierrors.handleEvent`}}))}catch{}return t.unregisterOriginalCallbacks&&ux(this,r,i),n.apply(this,[r,Xg(i,{mechanism:{data:{handler:ie(i),target:e},handled:!1,type:`auto.browser.browserapierrors.addEventListener`}}),a])}}),He(n,`removeEventListener`,function(e){return function(t,n,r){try{let i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch{}return e.call(this,t,n,r)}}))}function lx(e){return typeof e.handleEvent==`function`}function ux(e,t,n){e&&typeof e==`object`&&`removeEventListener`in e&&typeof e.removeEventListener==`function`&&e.removeEventListener(t,n)}var dx=L((e={})=>{let t=e.lifecycle??`route`;return{name:`BrowserSession`,setupOnce(){if(U.document===void 0){K&&x.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}so({ignoreDuration:!0}),uo();let e=k(),n=e.getUser();e.addScopeListener(e=>{let t=e.getUser();(n?.id!==t?.id||n?.ip_address!==t?.ip_address)&&(uo(),n=t)}),t===`route`&&eb(({from:e,to:t})=>{e!==t&&(so({ignoreDuration:!0}),uo())})}}}),fx=`CultureContext`,px=L((()=>({name:fx,preprocessEvent(e){let t=mx();t&&(e.contexts={...e.contexts,culture:{...t,...e.contexts?.culture}})},processSegmentSpan(e){let t=mx();t&&(e.attributes={"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar,...e.attributes})}})));function mx(){try{let e=U.Intl;if(!e)return;let t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}var hx=`GlobalHandlers`,gx=L(((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:hx,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(_x(e),Sx(`onerror`)),t.onunhandledrejection&&(vx(e),Sx(`onunhandledrejection`))}}}));function _x(e){pe(t=>{let{stackParser:n,attachStacktrace:r}=Cx();if(A()!==e||Jg())return;let{msg:i,url:a,line:o,column:s,error:c}=t,l=xx(v_(n,c||i,void 0,r,!1),a,o,s);l.level=`error`,qa(l,{originalException:c,mechanism:{handled:!1,type:`auto.browser.global_handlers.onerror`}})})}function vx(e){ge(t=>{let{stackParser:n,attachStacktrace:r}=Cx();if(A()!==e||Jg())return;let i=yx(t),a=Ee(i)?bx(i):v_(n,i,void 0,r,!0);a.level=`error`,qa(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.global_handlers.onunhandledrejection`}})})}function yx(e){if(Ee(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 bx(e){return{exception:{values:[{type:`UnhandledRejection`,value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function xx(e,t,n,r){let i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},c=s.frames=s.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:wx(t)??Be(),function:`?`,in_app:!0}),e}function Sx(e){K&&x.log(`Global Handler attached: ${e}`)}function Cx(){return A()?.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}function wx(e){if(!(!we(e)||e.length===0))return e.startsWith(`data:`)?`<${qs(e,!1)}>`:e}var Tx=L(()=>({name:`HttpContext`,preprocessEvent(e){if(!U.navigator&&!U.location&&!U.document)return;let t=Zg(),n={...t.headers,...e.request?.headers};e.request={...t,...e.request,headers:n}}})),Ex=`cause`,Dx=5,Ox=`LinkedErrors`,kx=L(((e={})=>{let t=e.limit||Dx,n=e.key||Ex;return{name:Ox,preprocessEvent(e,r,i){Tc(o_,i.getOptions().stackParser,n,t,e,r)}}})),Ax=`SpotlightBrowser`,jx=((e={})=>{let t=e.sidecarUrl||`http://localhost:8969/stream`;return{name:Ax,setup:()=>{K&&x.log(`Using Sidecar URL`,t)},processEvent:e=>Px(e)?null:e,afterAllSetup:e=>{Mx(e,t)}}});function Mx(e,t){let n=ib(`fetch`),r=0;e.on(`beforeEnvelope`,e=>{if(r>3){x.warn(`[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:`,r);return}n(t,{method:`POST`,body:li(e),headers:{"Content-Type":`application/x-sentry-envelope`},mode:`cors`}).then(e=>{e.status>=200&&e.status<400&&(r=0)},e=>{r++,x.error(`Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/`,e)})})}var Nx=L(jx);function Px(e){return!!(e.type===`transaction`&&e.spans&&e.contexts?.trace&&e.contexts.trace.op===`ui.action.click`&&e.spans.some(({description:e})=>e?.includes(`#sentry-spotlight`)))}function Fx(){return Ix()?(K&&f(()=>{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 Ix(){if(U.window===void 0)return!1;let e=U;if(e.nw||!(e.chrome||e.browser)?.runtime?.id)return!1;let t=Be();return!(U===U.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function Lx(e){return[hc(),dc(),Zl(),ix(),Jb(),gx(),kx(),Wc(),Tx(),px(),dx()]}function Rx(e={}){let t=!e.skipBrowserExtensionCheck&&Fx(),n=e.defaultIntegrations==null?Lx():e.defaultIntegrations;return js(C_,{...e,enabled:t?!1:e.enabled,stackParser:ee(e.stackParser||Hb),integrations:yo({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||_b})}function zx(){}function Bx(e){e()}function Vx(e={}){let t=U.document,n=t?.head||t?.body;if(!n){K&&x.error(`[showReportDialog] Global document not defined`);return}let r=O(),i=A()?.getDsn();if(!i){K&&x.error(`[showReportDialog] DSN not configured`);return}let a={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||to()},o=U.document.createElement(`script`);o.async=!0,o.crossOrigin=`anonymous`,o.src=go(i,a);let{onLoad:s,onClose:c}=a;if(s&&(o.onload=s),c){let e=t=>{if(t.data===`__sentry_reportdialog_closed__`)try{c()}finally{U.removeEventListener(`message`,e)}};U.addEventListener(`message`,e)}n.appendChild(o)}var Hx=i,Ux=`ReportingObserver`,Wx=new WeakMap,Gx=L(((e={})=>{let t=e.types||[`crash`,`deprecation`,`intervention`];function n(e){if(Wx.has(A()))for(let t of e)an(e=>{e.setExtra(`url`,t.url);let n=`ReportingObserver [${t.type}]`,r=`No details available`;if(t.body){let n={};for(let e in t.body)n[e]=t.body[e];if(e.setExtra(`body`,n),t.type===`crash`){let e=t.body;r=[e.crashId||``,e.reason||``].join(` `).trim()||r}else r=t.body.message||r}Ka(`${n}: ${r}`)})}return{name:Ux,setupOnce(){Qp()&&new Hx.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(e){Wx.set(e,!0)}}})),Kx=`HttpClient`,qx=L(((e={})=>{let t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:Kx,setup(e){rS(e,t),iS(e,t)}}}));function Jx(e,t,n,r,i){if(aS(e,n.status,n.url)){let e=sS(t,r),a,o,s,c;cS()&&([a,s]=Yx(`Cookie`,e),[o,c]=Yx(`Set-Cookie`,n)),qa(oS({url:e.url,method:e.method,status:n.status,requestHeaders:a,responseHeaders:o,requestCookies:s,responseCookies:c,error:i,type:`fetch`}))}}function Yx(e,t){let n=$x(t.headers),r;try{let t=n[e]||n[e.toLowerCase()]||void 0;t&&(r=Qx(t))}catch{}return[n,r]}function Xx(e,t,n,r,i){if(aS(e,t.status,t.responseURL)){let e,a,o;if(cS()){try{let e=t.getResponseHeader(`Set-Cookie`)||t.getResponseHeader(`set-cookie`)||void 0;e&&(a=Qx(e))}catch{}try{o=eS(t)}catch{}e=r}qa(oS({url:t.responseURL,method:n,status:t.status,requestHeaders:e,responseHeaders:o,responseCookies:a,error:i,type:`xhr`}))}}function Zx(e){if(e){let t=e[`Content-Length`]||e[`content-length`];if(t)return parseInt(t,10)}}function Qx(e){return e.split(`; `).reduce((e,t)=>{let[n,r]=t.split(`=`);return n&&r&&(e[n]=r),e},{})}function $x(e){let t={};return e.forEach((e,n)=>{t[n]=e}),t}function eS(e){let t=e.getAllResponseHeaders();return t?t.split(`\r
|
|
476
|
+
`).reduce((e,t)=>{let[n,r]=t.split(`: `);return n&&r&&(e[n]=r),e},{}):{}}function tS(e,t){return e.some(e=>typeof e==`string`?t.includes(e):e.test(t))}function nS(e,t){return e.some(e=>typeof e==`number`?e===t:t>=e[0]&&t<=e[1])}function rS(e,t){Zp()&&$p(n=>{if(A()!==e)return;let{response:r,args:i,error:a,virtualError:o}=n,[s,c]=i;r&&Jx(t,s,r,c,a||o)},!1)}function iS(e,t){`XMLHttpRequest`in i&&cb(n=>{if(A()!==e)return;let{error:r,virtualError:i}=n,a=n.xhr,o=a[sb];if(!o)return;let{method:s,request_headers:c}=o;try{Xx(t,a,s,c,r||i)}catch(e){K&&x.warn(`Error while extracting response event form XHR response`,e)}})}function aS(e,t,n){return nS(e.failedRequestStatusCodes,t)&&tS(e.failedRequestTargets,n)&&!Js(n,A())}function oS(e){let t=A(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,i=`HTTP Client Error with status code: ${e.status}`,a={message:i,exception:{values:[{type:`Error`,value:i,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:Zx(e.responseHeaders)}}};return ft(a,{type:`auto.http.client.${e.type}`,handled:!1}),a}function sS(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function cS(){let e=A();return e?!!e.getOptions().sendDefaultPii:!1}var lS=i,uS=7,dS=`ContextLines`,fS=L(((e={})=>{let t=e.frameContextLines==null?uS:e.frameContextLines;return{name:dS,processEvent(e){return pS(e,t)}}}));function pS(e,t){let n=lS.document,r=lS.location&&Ks(lS.location.href);if(!n||!r)return e;let i=e.exception?.values;if(!i?.length)return e;let a=n.documentElement.innerHTML;if(!a)return e;let o=[`<!DOCTYPE html>`,`<html>`,...a.split(`
|
|
477
|
+
`),`</html>`];return i.forEach(e=>{let n=e.stacktrace;n?.frames&&(n.frames=n.frames.map(e=>mS(e,o,r,t)))}),e}function mS(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||pt(t,e,r),e}var hS=`GraphQLClient`,gS=(e=>({name:hS,setup(t){_S(t,e),vS(t,e)}}));function _S(e,t){e.on(`beforeOutgoingRequestSpan`,(e,n)=>{let r=N(e).data||{};if(r[`sentry.op`]!==`http.client`)return;let i=r[`url.full`]||r[`http.url`]||r.url,a=r[`http.request.method`]||r[`http.method`];if(!we(i)||!we(a))return;let{endpoints:o}=t,s=it(i,o),c=bS(n);if(s&&c){let t=TS(c);if(t){let n=yS(t);e.updateName(`${a} ${i} (${n})`),CS(t)&&e.setAttribute(`graphql.document`,t.query),wS(t)&&(e.setAttribute(`graphql.persisted_query.hash.sha256`,t.extensions.persistedQuery.sha256Hash),e.setAttribute(`graphql.persisted_query.version`,t.extensions.persistedQuery.version))}}})}function vS(e,t){e.on(`beforeOutgoingRequestBreadcrumb`,(e,n)=>{let{category:r,type:i,data:a}=e;if(i===`http`&&(r===`fetch`||r===`xhr`)){let e=a?.url,{endpoints:r}=t,i=it(e,r),o=bS(n);if(i&&a&&o){let e=TS(o);!a.graphql&&e&&(a[`graphql.operation`]=yS(e),CS(e)&&(a[`graphql.document`]=e.query),wS(e)&&(a[`graphql.persisted_query.hash.sha256`]=e.extensions.persistedQuery.sha256Hash,a[`graphql.persisted_query.version`]=e.extensions.persistedQuery.version))}}})}function yS(e){if(wS(e))return`persisted ${e.operationName}`;if(CS(e)){let{query:t,operationName:n}=e,{operationName:r=n,operationType:i}=xS(t);return r?`${i} ${r}`:`${i}`}return`unknown`}function bS(e){let t=`xhr`in e,n;if(t){let t=e.xhr[sb];n=t&&pb(t.body)[0]}else n=pb(mb(e.input))[0];return n}function xS(e){let 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]};let i=e.match(n);return i?{operationType:i[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}function SS(e){return typeof e==`object`&&!!e}function CS(e){return SS(e)&&typeof e.query==`string`}function wS(e){return SS(e)&&typeof e.operationName==`string`&&SS(e.extensions)&&SS(e.extensions.persistedQuery)&&typeof e.extensions.persistedQuery.sha256Hash==`string`&&typeof e.extensions.persistedQuery.version==`number`}function TS(e){try{let t=JSON.parse(e);return CS(t)||wS(t)?t:void 0}catch{return}}var ES=L(gS),DS=L((e={})=>{let t=[`script`];function n(r,i,a=0){if(!r)return;let o=`shadowRoot`in r&&r.shadowRoot?r.shadowRoot.children:r.children;for(let r of o){if(!(r instanceof HTMLElement))continue;let o=Ve(r,1)||void 0,s=r.tagName.toLowerCase();if(t.includes(s))continue;let c=e.onElement?.({element:r,componentName:o,tagName:s,depth:a})||{};if(c===`skip`)continue;if(c===`children`){n(r,i,a+1);continue}let{x:l,y:u,width:d,height:f}=r.getBoundingClientRect(),p={identifier:r.id||void 0,type:o||s,visible:!0,alpha:1,height:f,width:d,x:l,y:u,...c};p.children=[],n(r,p.children,a+1),i.push(p)}}return{name:`ViewHierarchy`,processEvent:(t,r)=>{if(t.type!==void 0||e.shouldAttach?.(t,r)===!1)return t;let i={rendering_system:`DOM`,positioning:`absolute`,windows:[]};n(e.rootElement?.()||U.document.body,i.windows);let a={filename:`view-hierarchy.json`,attachmentType:`event.view_hierarchy`,contentType:`application/json`,data:JSON.stringify(i)};return r.attachments=r.attachments||[],r.attachments.push(a),t}}}),q=i,OS=`sentryReplaySession`,kS=`replay_event`,AS=`Unable to send Replay`,jS=3e5,MS=9e5,NS=5e3,PS=5500,FS=6e4,IS=5e3,LS=3,RS=15e4,zS=5e3,BS=3e3,VS=300,HS=2e7,US=4999,WS=5e4,GS=36e5,KS=Object.defineProperty,qS=(e,t,n)=>t in e?KS(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,JS=(e,t,n)=>qS(e,typeof t==`symbol`?t:t+``,n),YS=(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))(YS||{});function XS(e){return e.nodeType===e.ELEMENT_NODE}function ZS(e){return e?.host?.shadowRoot===e}function QS(e){return Object.prototype.toString.call(e)===`[object ShadowRoot]`}function $S(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 eC(e){let{cssText:t}=e;if(t.split(`"`).length<3)return t;let 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 tC(e){try{let t=e.rules||e.cssRules;return t?$S(Array.from(t,rC).join(``)):null}catch{return null}}function nC(e){let t=``;for(let n=0;n<e.style.length;n++){let r=e.style,i=r[n],a=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${a?` !important`:``};`}return`${e.selectorText} { ${t} }`}function rC(e){let t;if(aC(e))try{t=tC(e.styleSheet)||eC(e)}catch{}else if(oC(e)){let t=e.cssText,n=e.selectorText.includes(`:`),r=typeof e.style.all==`string`&&e.style.all;if(r&&(t=nC(e)),n&&(t=iC(t)),n||r)return t}return t||e.cssText}function iC(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,`$1\\$2`)}function aC(e){return`styleSheet`in e}function oC(e){return`selectorText`in e}var sC=class{constructor(){JS(this,`idNodeMap`,new Map),JS(this,`nodeMetaMap`,new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function cC(){return new sC}function lC({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 uC({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||``;return e?(r&&(i=r(i,t)),`*`.repeat(i.length)):i}function dC(e){return e.toLowerCase()}function fC(e){return e.toUpperCase()}var pC=`__rrweb_original__`;function mC(e){let t=e.getContext(`2d`);if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData,a=pC in i?i[pC]:i;if(new Uint32Array(a.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>e!==0))return!1}return!0}function hC(e){let t=e.type;return e.hasAttribute(`data-rr-is-password`)?`password`:t?dC(t):null}function gC(e,t,n){return t===`INPUT`&&(n===`radio`||n===`checkbox`)?e.getAttribute(`value`)||``:e.value}function _C(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}return n.pathname.match(/\.([0-9a-z]+)(?:$)/i)?.[1]??null}var vC={};function yC(e){let t=vC[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement==`function`)try{let t=n.createElement(`iframe`);t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch{}return vC[e]=r.bind(window)}function bC(...e){return yC(`setTimeout`)(...e)}function xC(...e){return yC(`clearTimeout`)(...e)}function SC(e){try{return e.contentDocument}catch{}}var CC=1,wC=RegExp(`[^a-z0-9-_:]`),TC=-2;function EC(){return CC++}function DC(e){if(e instanceof HTMLFormElement)return`form`;let t=dC(e.tagName);return wC.test(t)?`div`:t}function OC(e){let t=``;return t=e.indexOf(`//`)>-1?e.split(`/`).slice(0,3).join(`/`):e.split(`/`)[0],t=t.split(`?`)[0],t}var kC,AC,jC=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,MC=/^(?:[a-z+]+:)?\/\//i,NC=/^www\..*/i,PC=/^(data:)([^,]*),(.*)/i;function FC(e,t){if(!e||t.size===0)return e;try{let n=e.split(`;`),r=[];for(let e of n){if(e=e.trim(),!e)continue;let n=e.indexOf(`:`);if(n===-1){r.push(e);continue}let i=e.slice(0,n).trim();t.has(i)||r.push(e)}return r.join(`; `)+(r.length>0&&e.endsWith(`;`)?`;`:``)}catch(t){return console.warn(`Error filtering CSS properties:`,t),e}}function IC(e,t){return(e||``).replace(jC,(e,n,r,i,a,o)=>{let s=r||a||o,c=n||i||``;if(!s)return e;if(MC.test(s)||NC.test(s)||PC.test(s))return`url(${c}${s}${c})`;if(s[0]===`/`)return`url(${c}${OC(t)+s}${c})`;let l=t.split(`/`),u=s.split(`/`);l.pop();for(let e of u)if(e===`.`)continue;else e===`..`?l.pop():l.push(e);return`url(${c}${l.join(`/`)}${c})`})}var LC=/^[^ \t\n\r\u000c]+/,RC=/^[, \t\n\r\u000c]+/;function zC(e,t){if(t.trim()===``)return t;let n=0;function r(e){let r,i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):``}let i=[];for(;r(RC),!(n>=t.length);){let a=r(LC);if(a.slice(-1)===`,`)a=VC(e,a.substring(0,a.length-1)),i.push(a);else{let r=``;a=VC(e,a);let o=!1;for(;;){let e=t.charAt(n);if(e===``){i.push((a+r).trim());break}else if(o)e===`)`&&(o=!1);else if(e===`,`){n+=1,i.push((a+r).trim());break}else e===`(`&&(o=!0);r+=e,n+=1}}}return i.join(`, `)}var BC=new WeakMap;function VC(e,t){return!t||t.trim()===``?t:UC(e,t)}function HC(e){return!!(e.tagName===`svg`||e.ownerSVGElement)}function UC(e,t){let n=BC.get(e);if(n||(n=e.createElement(`a`),BC.set(e,n)),!t)t=``;else if(t.startsWith(`blob:`)||t.startsWith(`data:`))return t;return n.setAttribute(`href`,t),n.href}function WC(e,t,n,r,i,a,o){if(!r)return r;if(n===`src`||n===`href`&&!(t===`use`&&r[0]===`#`)||n===`xlink:href`&&r[0]!==`#`||n===`background`&&(t===`table`||t===`td`||t===`th`))return VC(e,r);if(n===`srcset`)return zC(e,r);if(n===`style`){let t=IC(r,UC(e));return o&&o.size>0&&(t=FC(t,o)),t}else if(t===`object`&&n===`data`)return VC(e,r);return typeof a==`function`?a(n,r,i):r}function GC(e,t,n){return(e===`video`||e===`audio`)&&t===`autoplay`}function KC(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 n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch{}return!1}function qC(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function JC(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:JC(e.parentNode,t,n,r+1)}function YC(e,t){return n=>{let r=n;if(r===null)return!1;try{if(e){if(typeof e==`string`){if(r.matches(`.${e}`))return!0}else if(qC(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function XC(e,t,n,r,i,a){try{let o=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(o===null)return!1;if(o.tagName===`INPUT`){let e=o.getAttribute(`autocomplete`);if([`current-password`,`new-password`,`cc-number`,`cc-exp`,`cc-exp-month`,`cc-exp-year`,`cc-csc`].includes(e))return!0}let s=-1,c=-1;if(a){if(c=JC(o,YC(r,i)),c<0)return!0;s=JC(o,YC(t,n),c>=0?c:1/0)}else{if(s=JC(o,YC(t,n)),s<0)return!1;c=JC(o,YC(r,i),s>=0?s:1/0)}return s>=0?c>=0?s<=c:!0:c>=0?!1:!!a}catch{}return!!a}function ZC(e,t,n){let r=e.contentWindow;if(!r)return;let i=!1,a;try{a=r.document.readyState}catch{return}if(a!==`complete`){let r=bC(()=>{i||=(t(),!0)},n);e.addEventListener(`load`,()=>{xC(r),i=!0,t()});return}let o=`about:blank`;if(r.location.href!==o||e.src===o||e.src===``)return bC(t,0),e.addEventListener(`load`,t);e.addEventListener(`load`,t)}function QC(e,t,n){let r=!1,i;try{i=e.sheet}catch{return}if(i)return;let a=bC(()=>{r||=(t(),!0)},n);e.addEventListener(`load`,()=>{xC(a),r=!0,t()})}function $C(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskAttributeFn:c,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:m={},maskTextFn:h,maskInputFn:g,dataURLOptions:_={},inlineImages:v,recordCanvas:y,keepIframeSrcFn:b,newlyAddedElement:x=!1,ignoreCSSAttributes:S}=t,C=ew(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode===`CSS1Compat`?{type:YS.Document,childNodes:[]}:{type:YS.Document,childNodes:[],compatMode:e.compatMode};case e.DOCUMENT_TYPE_NODE:return{type:YS.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:C};case e.ELEMENT_NODE:return nw(e,{doc:n,blockClass:i,blockSelector:a,unblockSelector:o,inlineStylesheet:p,maskAttributeFn:c,maskInputOptions:m,maskInputFn:g,dataURLOptions:_,inlineImages:v,recordCanvas:y,keepIframeSrcFn:b,newlyAddedElement:x,rootId:C,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,ignoreCSSAttributes:S});case e.TEXT_NODE:return tw(e,{doc:n,maskAllText:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:h,maskInputOptions:m,maskInputFn:g,rootId:C});case e.CDATA_SECTION_NODE:return{type:YS.CDATA,textContent:``,rootId:C};case e.COMMENT_NODE:return{type:YS.Comment,textContent:e.textContent||``,rootId:C};default:return!1}}function ew(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return n===1?void 0:n}function tw(e,t){let{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:a,unmaskTextSelector:o,maskTextFn:s,maskInputOptions:c,maskInputFn:l,rootId:u}=t,d=e.parentNode&&e.parentNode.tagName,f=e.textContent,p=d===`STYLE`?!0:void 0,m=d===`SCRIPT`?!0:void 0,h=d===`TEXTAREA`?!0:void 0;if(p&&f){try{e.nextSibling||e.previousSibling||e.parentNode.sheet?.cssRules&&(f=tC(e.parentNode.sheet))}catch(t){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${t}`,e)}f=IC(f,UC(t.doc))}m&&(f=`SCRIPT_PLACEHOLDER`);let g=XC(e,r,a,i,o,n);return!p&&!m&&!h&&f&&g&&(f=s?s(f,e.parentElement):f.replace(/[\S]/g,`*`)),h&&f&&(c.textarea||g)&&(f=l?l(f,e.parentNode):f.replace(/[\S]/g,`*`)),d===`OPTION`&&f&&(f=uC({isMasked:XC(e,r,a,i,o,lC({type:null,tagName:d,maskInputOptions:c})),element:e,value:f,maskInputFn:l})),{type:YS.Text,textContent:f||``,isStyle:p,rootId:u}}function nw(e,t){let{doc:n,blockClass:r,blockSelector:i,unblockSelector:a,inlineStylesheet:o,maskInputOptions:s={},maskAttributeFn:c,maskInputFn:l,dataURLOptions:u={},inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:m=!1,rootId:h,maskTextClass:g,unmaskTextClass:_,maskTextSelector:v,unmaskTextSelector:y,ignoreCSSAttributes:b}=t,x=KC(e,r,i,a),S=DC(e),C={},w=e.attributes.length;for(let t=0;t<w;t++){let r=e.attributes[t];r.name&&!GC(S,r.name,r.value)&&(C[r.name]=WC(n,S,dC(r.name),r.value,e,c,b))}if(S===`link`&&o){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=tC(t)),r&&(C.rel=null,C.href=null,C.crossorigin=null,C._cssText=IC(r,t.href))}if(S===`style`&&e.sheet&&!(e.innerText||e.textContent||``).trim().length){let t=tC(e.sheet);t&&(C._cssText=IC(t,UC(n)))}if(S===`input`||S===`textarea`||S===`select`||S===`option`){let t=e,n=hC(t),r=gC(t,fC(S),n),i=t.checked;if(n!==`submit`&&n!==`button`&&r){let e=XC(t,g,v,_,y,lC({type:n,tagName:fC(S),maskInputOptions:s}));C.value=uC({isMasked:e,element:t,value:r,maskInputFn:l})}i&&(C.checked=i)}if(S===`option`&&(e.selected&&!s.select?C.selected=!0:delete C.selected),S===`canvas`&&f){if(e.__context===`2d`)mC(e)||(C.rr_dataURL=e.toDataURL(u.type,u.quality));else if(!(`__context`in e)){let t=e.toDataURL(u.type,u.quality),r=n.createElement(`canvas`);r.width=e.width,r.height=e.height,t!==r.toDataURL(u.type,u.quality)&&(C.rr_dataURL=t)}}if(S===`img`&&d){kC||(kC=n.createElement(`canvas`),AC=kC.getContext(`2d`));let t=e,r=t.currentSrc||t.getAttribute(`src`)||`<unknown-src>`,i=t.crossOrigin,a=()=>{t.removeEventListener(`load`,a);try{kC.width=t.naturalWidth,kC.height=t.naturalHeight,AC.drawImage(t,0,0),C.rr_dataURL=kC.toDataURL(u.type,u.quality)}catch(e){if(t.crossOrigin!==`anonymous`){t.crossOrigin=`anonymous`,t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a);return}else console.warn(`Cannot inline img src=${r}! Error: ${e}`)}t.crossOrigin===`anonymous`&&(i?C.crossOrigin=i:t.removeAttribute(`crossorigin`))};t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a)}if((S===`audio`||S===`video`)&&(C.rr_mediaState=e.paused?`paused`:`played`,C.rr_mediaCurrentTime=e.currentTime),m||(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop)),x){let{width:t,height:n}=e.getBoundingClientRect();C={class:C.class,rr_width:`${t}px`,rr_height:`${n}px`}}S===`iframe`&&!p(C.src)&&(!x&&!SC(e)&&(C.rr_src=C.src),delete C.src);let T;try{customElements.get(S)&&(T=!0)}catch{}return{type:YS.Element,tagName:S,attributes:C,childNodes:[],isSVG:HC(e)||void 0,needBlock:x,rootId:h,isCustom:T}}function J(e){return e==null?``:e.toLowerCase()}function rw(e,t){return!!(t.comment&&e.type===YS.Comment||e.type===YS.Element&&(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`&&_C(e.attributes.href)===`js`)||t.headFavicon&&(e.tagName===`link`&&e.attributes.rel===`shortcut icon`||e.tagName===`meta`&&(J(e.attributes.name).match(/^msapplication-tile(image|color)$/)||J(e.attributes.name)===`application-name`||J(e.attributes.rel)===`icon`||J(e.attributes.rel)===`apple-touch-icon`||J(e.attributes.rel)===`shortcut icon`))||e.tagName===`meta`&&(t.headMetaDescKeywords&&J(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(J(e.attributes.property).match(/^(og|twitter|fb):/)||J(e.attributes.name).match(/^(og|twitter):/)||J(e.attributes.name)===`pinterest`)||t.headMetaRobots&&(J(e.attributes.name)===`robots`||J(e.attributes.name)===`googlebot`||J(e.attributes.name)===`bingbot`)||t.headMetaHttpEquiv&&e.attributes[`http-equiv`]!==void 0||t.headMetaAuthorship&&(J(e.attributes.name)===`author`||J(e.attributes.name)===`generator`||J(e.attributes.name)===`framework`||J(e.attributes.name)===`publisher`||J(e.attributes.name)===`progid`||J(e.attributes.property).match(/^article:/)||J(e.attributes.property).match(/^product:/))||t.headMetaVerification&&(J(e.attributes.name)===`google-site-verification`||J(e.attributes.name)===`yandex-verification`||J(e.attributes.name)===`csrf-token`||J(e.attributes.name)===`p:domain_verify`||J(e.attributes.name)===`verify-v1`||J(e.attributes.name)===`verification`||J(e.attributes.name)===`shopify-checkout-api-token`))))}function iw(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:m={},maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y={},inlineImages:b=!1,recordCanvas:x=!1,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w=5e3,onBlockedImageLoad:T,onStylesheetLoad:ee,stylesheetLoadTimeout:te=5e3,keepIframeSrcFn:ne=()=>!1,newlyAddedElement:re=!1,ignoreCSSAttributes:ie}=t,{preserveWhiteSpace:ae=!0}=t,oe=$C(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,dataURLOptions:y,inlineImages:b,recordCanvas:x,keepIframeSrcFn:ne,newlyAddedElement:re,ignoreCSSAttributes:ie});if(!oe)return console.warn(e,`not serialized`),null;let se;se=r.hasNode(e)?r.getId(e):rw(oe,v)||!ae&&oe.type===YS.Text&&!oe.isStyle&&!oe.textContent.replace(/^\s+|\s+$/gm,``).length?TC:EC();let E=Object.assign(oe,{id:se});if(r.add(e,E),se===TC)return null;S&&S(e);let ce=!f;if(E.type===YS.Element){ce&&=!E.needBlock;let t=e.shadowRoot;t&&QS(t)&&(E.isShadowHost=!0)}if((E.type===YS.Document||E.type===YS.Element)&&ce){v.headWhitespace&&E.type===YS.Element&&E.tagName===`head`&&(ae=!1);let t={doc:n,mirror:r,blockClass:i,blockSelector:a,maskAllText:s,unblockSelector:o,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:ae,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onBlockedImageLoad:T,onStylesheetLoad:ee,stylesheetLoadTimeout:te,keepIframeSrcFn:ne,ignoreCSSAttributes:ie},re=e.childNodes?Array.from(e.childNodes):[];for(let e of re){let n=iw(e,t);n&&E.childNodes.push(n)}if(XS(e)&&e.shadowRoot)for(let n of Array.from(e.shadowRoot.childNodes)){let r=iw(n,t);r&&(QS(e.shadowRoot)&&(r.isShadow=!0),E.childNodes.push(r))}}if(e.parentNode&&ZS(e.parentNode)&&QS(e.parentNode)&&(E.isShadow=!0),E.type===YS.Element&&E.tagName===`iframe`&&!E.needBlock&&ZC(e,()=>{let t=SC(e);if(t&&C){let n=iw(t,{doc:t,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:ae,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:ee,stylesheetLoadTimeout:te,keepIframeSrcFn:ne,ignoreCSSAttributes:ie});n&&C(e,n)}},w),E.type===YS.Element&&E.tagName===`img`&&!e.complete&&E.needBlock){let t=e,n=()=>{if(t.isConnected&&!t.complete&&T)try{let e=t.getBoundingClientRect();e.width>0&&e.height>0&&T(t,E,e)}catch{}t.removeEventListener(`load`,n)};t.isConnected&&t.addEventListener(`load`,n)}return E.type===YS.Element&&E.tagName===`link`&&typeof E.attributes.rel==`string`&&(E.attributes.rel===`stylesheet`||E.attributes.rel===`preload`&&typeof E.attributes.href==`string`&&_C(E.attributes.href)===`css`)&&QC(e,()=>{if(ee){let t=iw(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:s,maskTextClass:c,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v,dataURLOptions:y,inlineImages:b,recordCanvas:x,preserveWhiteSpace:ae,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:w,onStylesheetLoad:ee,stylesheetLoadTimeout:te,keepIframeSrcFn:ne,ignoreCSSAttributes:ie});t&&ee(e,t)}},te),E.type===YS.Element&&delete E.needBlock,E}function aw(e,t){let{mirror:n=new sC,blockClass:r=`rr-block`,blockSelector:i=null,unblockSelector:a=null,maskAllText:o=!1,maskTextClass:s=`rr-mask`,unmaskTextClass:c=null,maskTextSelector:l=null,unmaskTextSelector:u=null,inlineStylesheet:d=!0,inlineImages:f=!1,recordCanvas:p=!1,maskAllInputs:m=!1,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOM:v=!1,dataURLOptions:y,preserveWhiteSpace:b,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:C,onBlockedImageLoad:w,onStylesheetLoad:T,stylesheetLoadTimeout:ee,keepIframeSrcFn:te=()=>!1,ignoreCSSAttributes:ne=new Set([])}=t||{};return iw(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,maskAllText:o,maskTextClass:s,unmaskTextClass:c,maskTextSelector:l,unmaskTextSelector:u,skipChild:!1,inlineStylesheet:d,maskInputOptions:m===!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}:m===!1?{}:m,maskAttributeFn:h,maskTextFn:g,maskInputFn:_,slimDOMOptions:v===!0||v===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:v===`all`,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:v===!1?{}:v,dataURLOptions:y,inlineImages:f,recordCanvas:p,preserveWhiteSpace:b,onSerialize:x,onIframeLoad:S,iframeLoadTimeout:C,onBlockedImageLoad:w,onStylesheetLoad:T,stylesheetLoadTimeout:ee,keepIframeSrcFn:te,newlyAddedElement:!1,ignoreCSSAttributes:ne})}function ow(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}var sw=`Please stop import mirror directly. Instead of that,\r
|
|
478
|
+
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
479
|
+
or you can use record.mirror to access the mirror instance during recording.`,cw={map:{},getId(){return console.error(sw),-1},getNode(){return console.error(sw),null},removeNodeFromMap(){console.error(sw)},has(){return console.error(sw),!1},reset(){console.error(sw)}};typeof window<`u`&&window.Proxy&&window.Reflect&&(cw=new Proxy(cw,{get(e,t,n){return t===`map`&&console.error(sw),Reflect.get(e,t,n)}}));function lw(e,t,n={}){let r=null,i=0;return function(...a){let o=Date.now();!i&&n.leading===!1&&(i=o);let s=t-(o-i),c=this;s<=0||s>t?(r&&=(Fw(r),null),i=o,e.apply(c,a)):!r&&n.trailing!==!1&&(r=Pw(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(c,a)},s))}}function uw(e,t,n,r,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){Pw(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>uw(e,t,a||{},!0)}function dw(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}var fw=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(fw=()=>new Date().getTime());function pw(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset===void 0?t?.documentElement.scrollLeft||t?.body?.parentElement?.scrollLeft||t?.body?.scrollLeft||0:e.pageXOffset,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset===void 0?t?.documentElement.scrollTop||t?.body?.parentElement?.scrollTop||t?.body?.scrollTop||0:e.pageYOffset}}function mw(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function hw(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function gw(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function _w(e,t,n,r,i){if(!e)return!1;let a=gw(e);if(!a)return!1;let o=YC(t,n);if(!i){let e=r&&a.matches(r);return o(a)&&!e}let s=JC(a,o),c=-1;return s<0?!1:(r&&(c=JC(a,YC(null,r))),s>-1&&c<0?!0:s<c)}function vw(e,t){return t.getId(e)!==-1}function yw(e,t){return t.getId(e)===TC}function bw(e,t){if(ZS(e))return!1;let n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?bw(e.parentNode,t):!0:!0}function xw(e){return!!e.changedTouches}function Sw(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=(...e)=>{let t=e[0];if(!(0 in e))throw TypeError(`1 argument is required`);do if(this===t)return!0;while(t&&=t.parentNode);return!1})}function Cw(e,t){return!!(e.nodeName===`IFRAME`&&t.getMeta(e))}function ww(e,t){return!!(e.nodeName===`LINK`&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute(`rel`)===`stylesheet`&&t.getMeta(e))}function Tw(e){return!!e?.shadowRoot}var Ew=class{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=t===void 0?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function Dw(e){let t=null;return e.getRootNode?.()?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function Ow(e){let t=e,n;for(;n=Dw(t);)t=n;return t}function kw(e){let t=e.ownerDocument;if(!t)return!1;let n=Ow(e);return t.contains(n)}function Aw(e){let t=e.ownerDocument;return t?t.contains(e)||kw(e):!1}var jw={};function Mw(e){let t=jw[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement==`function`)try{let t=n.createElement(`iframe`);t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch{}return jw[e]=r.bind(window)}function Nw(...e){return Mw(`requestAnimationFrame`)(...e)}function Pw(...e){return Mw(`setTimeout`)(...e)}function Fw(...e){return Mw(`clearTimeout`)(...e)}var Y=(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))(Y||{}),X=(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))(X||{}),Iw=(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))(Iw||{}),Lw=(e=>(e[e.Mouse=0]=`Mouse`,e[e.Pen=1]=`Pen`,e[e.Touch=2]=`Touch`,e))(Lw||{}),Rw=(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))(Rw||{});function zw(e){try{return e.contentDocument}catch{}}function Bw(e){try{return e.contentWindow}catch{}}function Vw(e){return`__ln`in e}var Hw=class{constructor(){this.length=0,this.head=null,this.tail=null}get(e){if(e>=this.length)throw Error(`Position outside of list range`);let t=this.head;for(let n=0;n<e;n++)t=t?.next||null;return t}addNode(e){let t={value:e,previous:null,next:null};if(e.__ln=t,e.previousSibling&&Vw(e.previousSibling)){let n=e.previousSibling.__ln.next;t.next=n,t.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=t,n&&(n.previous=t)}else if(e.nextSibling&&Vw(e.nextSibling)&&e.nextSibling.__ln.previous){let n=e.nextSibling.__ln.previous;t.previous=n,t.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=t,n&&(n.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;t.next===null&&(this.tail=t),this.length++}removeNode(e){let t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}},Uw=(e,t)=>`${e}@${t}`,Ww=class{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=e=>{e.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;let e=[],t=new Set,n=new Hw,r=e=>{let t=e,n=TC;for(;n===TC;)t&&=t.nextSibling,n=t&&this.mirror.getId(t);return n},i=i=>{if(!i.parentNode||!Aw(i))return;let a=ZS(i.parentNode)?this.mirror.getId(Dw(i)):this.mirror.getId(i.parentNode),o=r(i);if(a===-1||o===-1)return n.addNode(i);let s=iw(i,{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:e=>{Cw(e,this.mirror)&&!_w(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(e),ww(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),Tw(i)&&this.shadowDomManager.addShadowRoot(i.shadowRoot,this.doc)},onIframeLoad:(e,t)=>{_w(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(this.iframeManager.attachIframe(e,t),e.contentWindow&&this.canvasManager.addWindow(e.contentWindow),this.shadowDomManager.observeAttachShadow(e))},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});s&&(e.push({parentId:a,nextId:o,node:s}),t.add(s.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet)Kw(this.removes,e,this.mirror)&&!this.movedSet.has(e.parentNode)||i(e);for(let e of this.addedSet)!Jw(this.droppedSet,e)&&!Kw(this.removes,e,this.mirror)||Jw(this.movedSet,e)?i(e):this.droppedSet.add(e);let a=null;for(;n.length;){let e=null;if(a){let t=this.mirror.getId(a.value.parentNode),n=r(a.value);t!==-1&&n!==-1&&(e=a)}if(!e){let t=n.tail;for(;t;){let n=t;if(t=t.previous,n){let t=this.mirror.getId(n.value.parentNode);if(r(n.value)===-1)continue;if(t!==-1){e=n;break}else{let t=n.value;if(t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let r=t.parentNode.host;if(this.mirror.getId(r)!==-1){e=n;break}}}}}}if(!e){for(;n.head;)n.removeNode(n.head.value);break}a=e.previous,n.removeNode(e.value),i(e.value)}let o={texts:this.texts.map(e=>({id:this.mirror.getId(e.node),value:e.value})).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if(typeof t.style==`string`){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split(`var(`).length===t.style.split(`var(`).length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};!o.texts.length&&!o.attributes.length&&!o.removes.length&&!o.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(o))},this.processMutation=e=>{if(!yw(e.target,this.mirror))switch(e.type){case`characterData`:{let t=e.target.textContent;!_w(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:XC(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,gw(e.target)):t.replace(/[\S]/g,`*`):t,node:e.target});break}case`attributes`:{let t=e.target,n=e.attributeName,r=e.target.getAttribute(n);if(n===`value`){let n=hC(t),i=t.tagName;r=gC(t,i,n);let a=lC({maskInputOptions:this.maskInputOptions,tagName:i,type:n});r=uC({isMasked:XC(e.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,a),element:t,value:r,maskInputFn:this.maskInputFn})}if(_w(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||r===e.oldValue)return;let i=this.attributeMap.get(e.target);if(t.tagName===`IFRAME`&&n===`src`&&!this.keepIframeSrcFn(r))if(!zw(t))n=`rr_src`;else return;if(i||(i={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(i),this.attributeMap.set(e.target,i)),n===`type`&&t.tagName===`INPUT`&&(e.oldValue||``).toLowerCase()===`password`&&t.setAttribute(`data-rr-is-password`,`true`),!GC(t.tagName,n)&&(i.attributes[n]=WC(this.doc,dC(t.tagName),dC(n),r,t,this.maskAttributeFn),n===`style`)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let n=this.unattachedDoc.createElement(`span`);e.oldValue&&n.setAttribute(`style`,e.oldValue);for(let e of Array.from(t.style)){let r=t.style.getPropertyValue(e),a=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||a!==n.style.getPropertyPriority(e)?a===``?i.styleDiff[e]=r:i.styleDiff[e]=[r,a]:i._unchangedStyles[e]=[r,a]}for(let e of Array.from(n.style))t.style.getPropertyValue(e)===``&&(i.styleDiff[e]=!1)}break}case`childList`:if(_w(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=ZS(e.target)?this.mirror.getId(e.target.host):this.mirror.getId(e.target);_w(e.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||yw(t,this.mirror)||!vw(t,this.mirror)||(this.addedSet.has(t)?(Gw(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&n===-1||bw(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Uw(n,r)]?Gw(this.movedSet,t):this.removes.push({parentId:r,id:n,isShadow:ZS(e.target)&&QS(e.target)?!0:void 0})),this.mapRemoves.push(t))});break}},this.genAdds=(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(yw(e,this.mirror))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&n!==-1&&(this.movedMap[Uw(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);_w(e,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(e.childNodes&&e.childNodes.forEach(e=>this.genAdds(e)),Tw(e)&&e.shadowRoot.childNodes.forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}}}init(e){`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`.split(`.`).forEach(t=>{this[t]=e[t]})}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 Gw(e,t){e.delete(t),t.childNodes?.forEach(t=>Gw(e,t))}function Kw(e,t,n){return e.length===0?!1:qw(e,t,n)}function qw(e,t,n){let r=t.parentNode;for(;r;){let t=n.getId(r);if(e.some(e=>e.id===t))return!0;r=r.parentNode}return!1}function Jw(e,t){return e.size===0?!1:Yw(e,t)}function Yw(e,t){let{parentNode:n}=t;return n?e.has(n)?!0:Yw(e,n):!1}var Xw;function Zw(e){Xw=e}function Qw(){Xw=void 0}var Z=e=>Xw?(...t)=>{try{return e(...t)}catch(e){if(Xw&&Xw(e)===!0)return()=>{};throw e}}:e,$w=[];function eT(e){try{if(`composedPath`in e){let t=e.composedPath();if(t.length)return t[0]}else if(`path`in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function tT(e,t){let n=new Ww;$w.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver,i=window?.Zone?.__symbol__?.(`MutationObserver`);i&&window[i]&&(r=window[i]);let a=new r(Z(t=>{e.onMutation&&e.onMutation(t)===!1||n.processMutations.bind(n)(t)}));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function nT({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};let i=typeof t.mousemove==`number`?t.mousemove:50,a=typeof t.mousemoveCallback==`number`?t.mousemoveCallback:500,o=[],s,c=lw(Z(t=>{let n=Date.now()-s;e(o.map(e=>(e.timeOffset-=n,e)),t),o=[],s=null}),a),l=Z(lw(Z(e=>{let t=eT(e),{clientX:n,clientY:i}=xw(e)?e.changedTouches[0]:e;s||=fw(),o.push({x:n,y:i,id:r.getId(t),timeOffset:fw()-s}),c(typeof DragEvent<`u`&&e instanceof DragEvent?X.Drag:e instanceof MouseEvent?X.MouseMove:X.TouchMove)}),i,{trailing:!1})),u=[ow(`mousemove`,l,n),ow(`touchmove`,l,n),ow(`drag`,l,n)];return Z(()=>{u.forEach(e=>e())})}function rT({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){if(o.mouseInteraction===!1)return()=>{};let s=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,c=[],l=null,u=t=>o=>{let s=eT(o);if(_w(s,r,i,a,!0))return;let c=null,u=t;if(`pointerType`in o){switch(o.pointerType){case`mouse`:c=Lw.Mouse;break;case`touch`:c=Lw.Touch;break;case`pen`:c=Lw.Pen;break}c===Lw.Touch?Iw[t]===Iw.MouseDown?u=`TouchStart`:Iw[t]===Iw.MouseUp&&(u=`TouchEnd`):Lw.Pen}else xw(o)&&(c=Lw.Touch);c===null?Iw[t]===Iw.Click&&(c=l,l=null):(l=c,(u.startsWith(`Touch`)&&c===Lw.Touch||u.startsWith(`Mouse`)&&c===Lw.Mouse)&&(c=null));let d=xw(o)?o.changedTouches[0]:o;if(!d)return;let f=n.getId(s),{clientX:p,clientY:m}=d;Z(e)({type:Iw[u],id:f,x:p,y:m,...c!==null&&{pointerType:c}})};return Object.keys(Iw).filter(e=>Number.isNaN(Number(e))&&!e.endsWith(`_Departed`)&&s[e]!==!1).forEach(e=>{let n=dC(e),r=u(e);if(window.PointerEvent)switch(Iw[e]){case Iw.MouseDown:case Iw.MouseUp:n=n.replace(`mouse`,`pointer`);break;case Iw.TouchStart:case Iw.TouchEnd:return}c.push(ow(n,r,t))}),Z(()=>{c.forEach(e=>e())})}function iT({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,sampling:o}){return ow(`scroll`,Z(lw(Z(o=>{let s=eT(o);if(!s||_w(s,r,i,a,!0))return;let c=n.getId(s);if(s===t&&t.defaultView){let n=pw(t.defaultView);e({id:c,x:n.left,y:n.top})}else e({id:c,x:s.scrollLeft,y:s.scrollTop})}),o.scroll||100)),t)}function aT({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return ow(`resize`,Z(lw(Z(()=>{let t=mw(),i=hw();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}var oT=[`INPUT`,`TEXTAREA`,`SELECT`],sT=new WeakMap;function cT({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,ignoreClass:o,ignoreSelector:s,maskInputOptions:c,maskInputFn:l,sampling:u,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:m,unmaskTextSelector:h}){function g(e){let n=eT(e),u=e.isTrusted,g=n&&fC(n.tagName);if(g===`OPTION`&&(n=n.parentElement),!n||!g||oT.indexOf(g)<0||_w(n,r,i,a,!0))return;let v=n;if(v.classList.contains(o)||s&&v.matches(s))return;let y=hC(n),b=gC(v,g,y),x=!1,S=lC({maskInputOptions:c,tagName:g,type:y}),C=XC(n,f,m,p,h,S);(y===`radio`||y===`checkbox`)&&(x=n.checked),b=uC({isMasked:C,element:n,value:b,maskInputFn:l}),_(n,d?{text:b,isChecked:x,userTriggered:u}:{text:b,isChecked:x});let w=n.name;y===`radio`&&w&&x&&t.querySelectorAll(`input[type="radio"][name="${w}"]`).forEach(e=>{if(e!==n){let t=uC({isMasked:C,element:e,value:gC(e,g,y),maskInputFn:l});_(e,d?{text:t,isChecked:!x,userTriggered:!1}:{text:t,isChecked:!x})}})}function _(t,r){let i=sT.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){sT.set(t,r);let i=n.getId(t);Z(e)({...r,id:i})}}let v=(u.input===`last`?[`change`]:[`input`,`change`]).map(e=>ow(e,Z(g),t)),y=t.defaultView;if(!y)return()=>{v.forEach(e=>e())};let b=y.Object.getOwnPropertyDescriptor(y.HTMLInputElement.prototype,`value`),x=[[y.HTMLInputElement.prototype,`value`],[y.HTMLInputElement.prototype,`checked`],[y.HTMLSelectElement.prototype,`value`],[y.HTMLTextAreaElement.prototype,`value`],[y.HTMLSelectElement.prototype,`selectedIndex`],[y.HTMLOptionElement.prototype,`selected`]];return b&&b.set&&v.push(...x.map(e=>uw(e[0],e[1],{set(){Z(g)({target:this,isTrusted:!1})}},!1,y))),Z(()=>{v.forEach(e=>e())})}function lT(e){let t=[];function n(e,t){if(yT(`CSSGroupingRule`)&&e.parentRule instanceof CSSGroupingRule||yT(`CSSMediaRule`)&&e.parentRule instanceof CSSMediaRule||yT(`CSSSupportsRule`)&&e.parentRule instanceof CSSSupportsRule||yT(`CSSConditionRule`)&&e.parentRule instanceof CSSConditionRule){let n=Array.from(e.parentRule.cssRules).indexOf(e);t.unshift(n)}else if(e.parentStyleSheet){let n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}return n(e,t)}function uT(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function dT({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:Z((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=uT(i,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:s}]}),r.apply(i,a)})});let a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:Z((r,i,a)=>{let[o]=a,{id:s,styleId:c}=uT(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:o}]}),r.apply(i,a)})});let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:Z((r,i,a)=>{let[o]=a,{id:s,styleId:c}=uT(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replace:o}),r.apply(i,a)})}));let s;r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:Z((r,i,a)=>{let[o]=a,{id:s,styleId:c}=uT(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replaceSync:o}),r.apply(i,a)})}));let c={};bT(`CSSGroupingRule`)?c.CSSGroupingRule=r.CSSGroupingRule:(bT(`CSSMediaRule`)&&(c.CSSMediaRule=r.CSSMediaRule),bT(`CSSConditionRule`)&&(c.CSSConditionRule=r.CSSConditionRule),bT(`CSSSupportsRule`)&&(c.CSSSupportsRule=r.CSSSupportsRule));let l={};return Object.entries(c).forEach(([r,i])=>{l[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(l[r].insertRule,{apply:Z((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=uT(i.parentStyleSheet,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:[...lT(i),s||0]}]}),r.apply(i,a)})}),i.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:Z((r,i,a)=>{let[o]=a,{id:s,styleId:c}=uT(i.parentStyleSheet,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:[...lT(i),o]}]}),r.apply(i,a)})})}),Z(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=a,o&&(r.CSSStyleSheet.prototype.replace=o),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach(([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule})})}function fT({mirror:e,stylesheetManager:t},n){let r=null;r=n.nodeName===`#document`?e.getId(n):e.getId(n.host);let i=n.nodeName===`#document`?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,a=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,`adoptedStyleSheets`):void 0;return r===null||r===-1||!i||!a?()=>{}:(Object.defineProperty(n,`adoptedStyleSheets`,{configurable:a.configurable,enumerable:a.enumerable,get(){return a.get?.call(this)},set(e){let n=a.set?.call(this,e);if(r!==null&&r!==-1)try{t.adoptStyleSheets(e,r)}catch{}return n}}),Z(()=>{Object.defineProperty(n,`adoptedStyleSheets`,{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function pT({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:Z((i,o,s)=>{let[c,l,u]=s;if(n.has(c))return a.apply(o,[c,l,u]);let{id:d,styleId:f}=uT(o.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,set:{property:c,value:l,priority:u},index:lT(o.parentRule)}),i.apply(o,s)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:Z((i,a,s)=>{let[c]=s;if(n.has(c))return o.apply(a,[c]);let{id:l,styleId:u}=uT(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||u&&u!==-1)&&e({id:l,styleId:u,remove:{property:c},index:lT(a.parentRule)}),i.apply(a,s)})}),Z(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=o})}function mT({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:a,doc:o}){let s=Z(o=>lw(Z(a=>{let s=eT(a);if(!s||_w(s,t,n,r,!0))return;let{currentTime:c,volume:l,muted:u,playbackRate:d}=s;e({type:o,id:i.getId(s),currentTime:c,volume:l,muted:u,playbackRate:d})}),a.media||500)),c=[ow(`play`,s(Rw.Play),o),ow(`pause`,s(Rw.Pause),o),ow(`seeked`,s(Rw.Seeked),o),ow(`volumechange`,s(Rw.VolumeChange),o),ow(`ratechange`,s(Rw.RateChange),o)];return Z(()=>{c.forEach(e=>e())})}function hT({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,n){let r=new a(e,t,n);return i.set(r,{family:e,buffer:typeof t!=`string`,descriptors:n,fontSource:typeof t==`string`?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let o=dw(t.fonts,`add`,function(t){return function(n){return Pw(Z(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=a}),r.push(o),Z(()=>{r.forEach(e=>e())})}function gT(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:a,selectionCb:o}=e,s=!0,c=Z(()=>{let e=t.getSelection();if(!e||s&&e?.isCollapsed)return;s=e.isCollapsed||!1;let c=[],l=e.rangeCount||0;for(let t=0;t<l;t++){let{startContainer:o,startOffset:s,endContainer:l,endOffset:u}=e.getRangeAt(t);_w(o,r,i,a,!0)||_w(l,r,i,a,!0)||c.push({start:n.getId(o),startOffset:s,end:n.getId(l),endOffset:u})}o({ranges:c})});return c(),ow(`selectionchange`,c)}function _T({doc:e,customElementCb:t}){let n=e.defaultView;return!n||!n.customElements?()=>{}:dw(n.customElements,`define`,function(e){return function(n,r,i){try{t({define:{name:n}})}catch{}return e.apply(this,[n,r,i])}})}function vT(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=tT(e,e.doc));let i=nT(e),a=rT(e),o=iT(e),s=aT(e,{win:n}),c=cT(e),l=mT(e),u=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(u=dT(e,{win:n}),d=fT(e,e.doc),f=pT(e,{win:n}),e.collectFonts&&(p=hT(e)));let m=gT(e),h=_T(e),g=[];for(let t of e.plugins)g.push(t.observer(t.callback,n,t.options));return Z(()=>{$w.forEach(e=>e.reset()),r?.disconnect(),i(),a(),o(),s(),c(),l(),u(),d(),f(),p(),m(),h(),g.forEach(e=>e())})}function yT(e){return window[e]!==void 0}function bT(e){return!!(window[e]!==void 0&&window[e].prototype&&`insertRule`in window[e].prototype&&`deleteRule`in window[e].prototype)}for(var xT=class{constructor(e){this.generateIdFn=e,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),a=r||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),a.set(o,t)),o}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);return typeof t==`number`?r.get(t)||-1:t}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}},ST=class{constructor(){this.crossOriginIframeMirror=new xT(EC),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}},CT=class{constructor(e){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new xT(EC),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new xT(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener(`message`,this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&e.contentWindow?.addEventListener(`message`,this.handleMessage.bind(this)),this.loadListener?.(e);let n=zw(e);n&&n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,this.mirror.getId(n))}handleMessage(e){let t=e;if(t.data.type!==`rrweb`||t.origin!==t.data.origin||!e.source)return;let n=this.crossOriginIframeMap.get(e.source);if(!n)return;let r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){switch(t.type){case Y.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:Y.IncrementalSnapshot,data:{source:X.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Y.Meta:case Y.Load:case Y.DomContentLoaded:return!1;case Y.Plugin:return t;case Y.Custom:return this.replaceIds(t.data.payload,e,[`id`,`parentId`,`previousId`,`nextId`]),t;case Y.IncrementalSnapshot:switch(t.data.source){case X.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,[`parentId`,`nextId`,`previousId`]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,[`parentId`,`id`])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,[`id`])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case X.Drag:case X.TouchMove:case X.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case X.ViewportResize:return!1;case X.MediaInteraction:case X.MouseInteraction:case X.Scroll:case X.CanvasMutation:case X.Input:return this.replaceIds(t.data,e,[`id`]),t;case X.StyleSheetRule:case X.StyleDeclaration:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleId`]),t;case X.Font:return t;case X.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,[`start`,`end`])}),t;case X.AdoptedStyleSheet:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleIds`]),t.data.styles?.forEach(t=>{this.replaceStyleIds(t,e,[`styleId`])}),t}}return!1}replace(e,t,n,r){for(let i of r)!Array.isArray(t[i])&&typeof t[i]!=`number`||(Array.isArray(t[i])?t[i]=e.getIds(n,t[i]):t[i]=e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,[`id`,`rootId`]),`childNodes`in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type!==YS.Document&&!e.rootId&&(e.rootId=t),`childNodes`in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}},wT=class{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}},TT=class{constructor(e){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!QS(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e),this.bypassOptions.canvasManager.addShadowRoot(e);let n=tT({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(iT({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),Pw(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(e.host)),this.restoreHandlers.push(fT({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){let t=zw(e),n=Bw(e);!t||!n||this.patchAttachShadow(n.Element,t)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(dw(e.prototype,`attachShadow`,function(e){return function(r){let i=e.call(this,r);return this.shadowRoot&&Aw(this)&&n.addShadowRoot(this.shadowRoot,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}},ET=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,DT=typeof Uint8Array>`u`?[]:new Uint8Array(256),OT=0;OT<ET.length;OT++)DT[ET.charCodeAt(OT)]=OT;var kT=class{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}},AT=class{constructor(e){this.trackedLinkElements=new WeakSet,this.styleMirror=new Ew,this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){`_cssText`in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(e.length===0)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,t)=>({rule:rC(e),index:t}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}},jT=class{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,Nw(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}},MT,NT;try{if(Array.from([1],e=>e*2)[0]!==2){let 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)}var PT=cC();function FT(e={}){let{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i=`rr-block`,blockSelector:a=null,unblockSelector:o=null,ignoreClass:s=`rr-ignore`,ignoreSelector:c=null,maskAllText:l=!1,maskTextClass:u=`rr-mask`,unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:m=!0,maskAllInputs:h,maskInputOptions:g,slimDOMOptions:_,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,maxCanvasSize:x=null,packFn:S,sampling:C={},dataURLOptions:w={},mousemoveWait:T,recordDOM:ee=!0,recordCanvas:te=!1,recordCrossOriginIframes:ne=!1,recordAfter:re=e.recordAfter===`DOMContentLoaded`?e.recordAfter:`load`,userTriggeredOnInput:ie=!1,collectFonts:ae=!1,inlineImages:oe=!1,plugins:se,keepIframeSrcFn:E=()=>!1,ignoreCSSAttributes:ce=new Set([]),errorHandler:le,onMutation:ue,getCanvasManager:de}=e;Zw(le);let fe=ne?window.parent===window:!0,pe=!1;if(!fe)try{window.parent.document&&(pe=!1)}catch{pe=!0}if(fe&&!t)throw Error(`emit function is required`);if(!fe&&!pe)return()=>{};T!==void 0&&C.mousemove===void 0&&(C.mousemove=T),PT.reset();let me=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,radio:!0,checkbox:!0}:g===void 0?{}:g,he=_===!0||_===`all`?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:_===`all`,headMetaDescKeywords:_===`all`}:_||{};Sw();let ge,_e=0,ve=e=>{for(let t of se||[])t.eventProcessor&&(e=t.eventProcessor(e));return S&&!pe&&(e=S(e)),e};MT=(e,i)=>{let a=e;if(a.timestamp=fw(),$w[0]?.isFrozen()&&a.type!==Y.FullSnapshot&&!(a.type===Y.IncrementalSnapshot&&a.data.source===X.Mutation)&&$w.forEach(e=>e.unfreeze()),fe)t?.(ve(a),i);else if(pe){let e={type:`rrweb`,event:ve(a),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,`*`)}if(a.type===Y.FullSnapshot)ge=a,_e=0;else if(a.type===Y.IncrementalSnapshot){if(a.data.source===X.Mutation&&a.data.isAttachIframe)return;_e++;let e=r&&_e>=r,t=n&&ge&&a.timestamp-ge.timestamp>n;(e||t)&&De(!0)}};let ye=e=>{MT({type:Y.IncrementalSnapshot,data:{source:X.Mutation,...e}})},be=e=>MT({type:Y.IncrementalSnapshot,data:{source:X.Scroll,...e}}),xe=e=>MT({type:Y.IncrementalSnapshot,data:{source:X.CanvasMutation,...e}}),Se=new AT({mutationCb:ye,adoptedStyleSheetCb:e=>MT({type:Y.IncrementalSnapshot,data:{source:X.AdoptedStyleSheet,...e}})}),Ce=typeof __RRWEB_EXCLUDE_IFRAME__==`boolean`&&__RRWEB_EXCLUDE_IFRAME__?new ST:new CT({mirror:PT,mutationCb:ye,stylesheetManager:Se,recordCrossOriginIframes:ne,wrappedEmit:MT});for(let e of se||[])e.getMirror&&e.getMirror({nodeMirror:PT,crossOriginIframeMirror:Ce.crossOriginIframeMirror,crossOriginIframeStyleMirror:Ce.crossOriginIframeStyleMirror});let we=new jT,Te=LT(de,{mirror:PT,win:window,mutationCb:e=>MT({type:Y.IncrementalSnapshot,data:{source:X.CanvasMutation,...e}}),recordCanvas:te,blockClass:i,blockSelector:a,unblockSelector:o,maxCanvasSize:x,sampling:C.canvas,dataURLOptions:w,errorHandler:le}),Ee=typeof __RRWEB_EXCLUDE_SHADOW_DOM__==`boolean`&&__RRWEB_EXCLUDE_SHADOW_DOM__?new wT:new TT({mutationCb:ye,scrollCb:be,bypassOptions:{onMutation:ue,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskInputOptions:me,dataURLOptions:w,maskAttributeFn:v,maskTextFn:b,maskInputFn:y,recordCanvas:te,inlineImages:oe,sampling:C,slimDOMOptions:he,iframeManager:Ce,stylesheetManager:Se,canvasManager:Te,keepIframeSrcFn:E,processedNodeManager:we,ignoreCSSAttributes:ce},mirror:PT}),De=(e=!1)=>{if(!ee)return;MT({type:Y.Meta,data:{href:window.location.href,width:hw(),height:mw()}},e),Se.reset(),Ee.init(),$w.forEach(e=>e.lock());let t=aw(document,{mirror:PT,blockClass:i,blockSelector:a,unblockSelector:o,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:m,maskAllInputs:me,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,slimDOM:he,dataURLOptions:w,recordCanvas:te,inlineImages:oe,onSerialize:e=>{Cw(e,PT)&&Ce.addIframe(e),ww(e,PT)&&Se.trackLinkElement(e),Tw(e)&&Ee.addShadowRoot(e.shadowRoot,document)},onIframeLoad:(e,t)=>{Ce.attachIframe(e,t),e.contentWindow&&Te.addWindow(e.contentWindow),Ee.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{Se.attachLinkElement(e,t)},onBlockedImageLoad:(e,t,{width:n,height:r})=>{ye({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:{style:{width:`${n}px`,height:`${r}px`}}}]})},keepIframeSrcFn:E,ignoreCSSAttributes:ce});if(!t)return console.warn(`Failed to snapshot the document`);MT({type:Y.FullSnapshot,data:{node:t,initialOffset:pw(window)}}),$w.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Se.adoptStyleSheets(document.adoptedStyleSheets,PT.getId(document))};NT=De;try{let e=[],t=e=>Z(vT)({onMutation:ue,mutationCb:ye,mousemoveCb:(e,t)=>MT({type:Y.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>MT({type:Y.IncrementalSnapshot,data:{source:X.MouseInteraction,...e}}),scrollCb:be,viewportResizeCb:e=>MT({type:Y.IncrementalSnapshot,data:{source:X.ViewportResize,...e}}),inputCb:e=>MT({type:Y.IncrementalSnapshot,data:{source:X.Input,...e}}),mediaInteractionCb:e=>MT({type:Y.IncrementalSnapshot,data:{source:X.MediaInteraction,...e}}),styleSheetRuleCb:e=>MT({type:Y.IncrementalSnapshot,data:{source:X.StyleSheetRule,...e}}),styleDeclarationCb:e=>MT({type:Y.IncrementalSnapshot,data:{source:X.StyleDeclaration,...e}}),canvasMutationCb:xe,fontCb:e=>MT({type:Y.IncrementalSnapshot,data:{source:X.Font,...e}}),selectionCb:e=>{MT({type:Y.IncrementalSnapshot,data:{source:X.Selection,...e}})},customElementCb:e=>{MT({type:Y.IncrementalSnapshot,data:{source:X.CustomElement,...e}})},blockClass:i,ignoreClass:s,ignoreSelector:c,maskAllText:l,maskTextClass:u,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:me,inlineStylesheet:m,sampling:C,recordDOM:ee,recordCanvas:te,inlineImages:oe,userTriggeredOnInput:ie,collectFonts:ae,doc:e,maskAttributeFn:v,maskInputFn:y,maskTextFn:b,keepIframeSrcFn:E,blockSelector:a,unblockSelector:o,slimDOMOptions:he,dataURLOptions:w,mirror:PT,iframeManager:Ce,stylesheetManager:Se,shadowDomManager:Ee,processedNodeManager:we,canvasManager:Te,ignoreCSSAttributes:ce,plugins:se?.filter(e=>e.observer)?.map(e=>({observer:e.observer,options:e.options,callback:t=>MT({type:Y.Plugin,data:{plugin:e.name,payload:t}})}))||[]},{});Ce.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{De(),e.push(t(document))};return document.readyState===`interactive`||document.readyState===`complete`?n():(e.push(ow(`DOMContentLoaded`,()=>{MT({type:Y.DomContentLoaded,data:{}}),re===`DOMContentLoaded`&&n()})),e.push(ow(`load`,()=>{MT({type:Y.Load,data:{}}),re===`load`&&n()},window))),()=>{e.forEach(e=>e()),we.destroy(),NT=void 0,Qw()}}catch(e){console.warn(e)}}function IT(e){if(!NT)throw Error(`please take full snapshot after start recording`);NT(e)}FT.mirror=PT,FT.takeFullSnapshot=IT;function LT(e,t){try{return e?e(t):new kT}catch{return console.warn(`Unable to initialize CanvasManager`),new kT}}var RT;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`})(RT||={});var zT=3,BT=5;function VT(e){return e>9999999999?e:e*1e3}function HT(e){return e>9999999999?e/1e3:e}function UT(e,t){t.category!==`sentry.transaction`&&([`ui.click`,`ui.input`].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(e.throttledAddEvent({type:Y.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:`breadcrumb`,payload:Yr(t,10,1e3)}}),t.category===`console`)))}var WT=`button,a`;function GT(e){return e.closest(WT)||e}function KT(e){let t=qT(e);return!t||!(t instanceof Element)?t:GT(t)}function qT(e){return JT(e)?e.target:e}function JT(e){return typeof e==`object`&&!!e&&`target`in e}var YT;function XT(e){return YT||(YT=[],ZT()),YT.push(e),()=>{let t=YT?YT.indexOf(e):-1;t>-1&&YT.splice(t,1)}}function ZT(){He(q,`open`,function(e){return function(...t){if(YT)try{YT.forEach(e=>e())}catch{}return e.apply(q,t)}})}var QT=new Set([X.Mutation,X.StyleSheetRule,X.StyleDeclaration,X.AdoptedStyleSheet,X.CanvasMutation,X.Selection,X.MediaInteraction]);function $T(e,t,n){e.handleClick(t,n)}var eE=class{constructor(e,t,n=UT){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scrollTimeout=t.scrollTimeout/1e3,this._replay=e,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=n}addListeners(){let e=XT(()=>{this._lastMutation=iE()});this._teardown=()=>{e(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(e,t){if(nE(t,this._ignoreSelector)||!rE(e))return;let n={timestamp:HT(e.timestamp),clickBreadcrumb:e,clickCount:0,node:t};this._clicks.some(e=>e.node===n.node&&Math.abs(e.timestamp-n.timestamp)<1)||(this._clicks.push(n),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(e=Date.now()){this._lastMutation=HT(e)}registerScroll(e=Date.now()){this._lastScroll=HT(e)}registerClick(e){let t=GT(e);this._handleMultiClick(t)}_handleMultiClick(e){this._getClicks(e).forEach(e=>{e.clickCount++})}_getClicks(e){return this._clicks.filter(t=>t.node===e)}_checkClicks(){let e=[],t=iE();this._clicks.forEach(n=>{!n.mutationAfter&&this._lastMutation&&(n.mutationAfter=n.timestamp<=this._lastMutation?this._lastMutation-n.timestamp:void 0),!n.scrollAfter&&this._lastScroll&&(n.scrollAfter=n.timestamp<=this._lastScroll?this._lastScroll-n.timestamp:void 0),n.timestamp+this._timeout<=t&&e.push(n)});for(let t of e){let e=this._clicks.indexOf(t);e>-1&&(this._generateBreadcrumbs(t),this._clicks.splice(e,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(e){let t=this._replay,n=e.scrollAfter&&e.scrollAfter<=this._scrollTimeout,r=e.mutationAfter&&e.mutationAfter<=this._threshold,i=!n&&!r,{clickCount:a,clickBreadcrumb:o}=e;if(i){let n=Math.min(e.mutationAfter||this._timeout,this._timeout)*1e3,r=n<this._timeout*1e3?`mutation`:`timeout`,i={type:`default`,message:o.message,timestamp:o.timestamp,category:`ui.slowClickDetected`,data:{...o.data,url:q.location.href,route:t.getCurrentRoute(),timeAfterClickMs:n,endReason:r,clickCount:a||1}};this._addBreadcrumbEvent(t,i);return}if(a>1){let e={type:`default`,message:o.message,timestamp:o.timestamp,category:`ui.multiClick`,data:{...o.data,url:q.location.href,route:t.getCurrentRoute(),clickCount:a,metric:!0}};this._addBreadcrumbEvent(t,e)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=ob(()=>this._checkClicks(),1e3)}},tE=[`A`,`BUTTON`,`INPUT`];function nE(e,t){return!!(!tE.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 rE(e){return!!(e.data&&typeof e.data.nodeId==`number`&&e.timestamp)}function iE(){return Date.now()/1e3}function aE(e,t){try{if(!oE(t))return;let{source:n}=t.data;if(QT.has(n)&&e.registerMutation(t.timestamp),n===X.Scroll&&e.registerScroll(t.timestamp),sE(t)){let{type:n,id:r}=t.data,i=FT.mirror.getNode(r);i instanceof HTMLElement&&n===Iw.Click&&e.registerClick(i)}}catch{}}function oE(e){return e.type===zT}function sE(e){return e.data.source===X.MouseInteraction}function cE(e){return{timestamp:Date.now()/1e3,type:`default`,...e}}var lE=(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))(lE||{}),uE=new Set([`id`,`class`,`aria-label`,`role`,`name`,`alt`,`title`,`data-test-id`,`data-testid`,`disabled`,`aria-disabled`,`data-sentry-component`]);function dE(e){let t={};!e[`data-sentry-component`]&&e[`data-sentry-element`]&&(e[`data-sentry-component`]=e[`data-sentry-element`]);for(let n in e)if(uE.has(n)){let r=n;(n===`data-testid`||n===`data-test-id`)&&(r=`testId`),t[r]=e[n]}return t}var fE=e=>t=>{if(!e.isEnabled())return;let n=mE(t);if(!n)return;let r=t.name===`click`,i=r?t.event:void 0;r&&e.clickDetector&&i?.target&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&$T(e.clickDetector,n,KT(t.event)),UT(e,n)};function pE(e,t){let n=FT.mirror.getId(e),r=n&&FT.mirror.getNode(n),i=r&&FT.mirror.getMeta(r),a=i&&gE(i)?i:null;return{message:t,data:a?{nodeId:n,node:{id:n,tagName:a.tagName,textContent:Array.from(a.childNodes).map(e=>e.type===lE.Text&&e.textContent).filter(Boolean).map(e=>e.trim()).join(``),attributes:dE(a.attributes)}}:{}}}function mE(e){let{target:t,message:n}=hE(e);return cE({category:`ui.${e.name}`,...pE(t,n)})}function hE(e){let t=e.name===`click`,n,r=null;try{r=t?KT(e.event):qT(e.event),n=Re(r,{maxStringLength:200})||`<unknown>`}catch{n=`<unknown>`}return{target:r,message:n}}function gE(e){return e.type===lE.Element}function _E(e,t){if(!e.isEnabled())return;e.updateUserActivity();let n=vE(t);n&&UT(e,n)}function vE(e){let{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a,target:o}=e;if(!o||yE(o)||!a)return null;let s=t||r||i,c=a.length===1;if(!s&&c)return null;let l=Re(o,{maxStringLength:200})||`<unknown>`;return cE({category:`ui.keyDown`,message:l,data:{...pE(o,l).data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:a}})}function yE(e){return e.tagName===`INPUT`||e.tagName===`TEXTAREA`||e.isContentEditable}var bE={resource:DE,paint:TE,navigation:EE};function xE(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function SE(e){return e.map(CE).filter(Boolean)}function CE(e){let t=bE[e.entryType];return t?t(e):null}function wE(e){return((St()||q.performance.timeOrigin)+e)/1e3}function TE(e){let{duration:t,entryType:n,name:r,startTime:i}=e,a=wE(i);return{type:n,name:r,start:a,end:a+t,data:void 0}}function EE(e){let{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:a,encodedBodySize:o,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,domInteractive:l,loadEventStart:u,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:m,type:h}=e;return i===0?null:{type:`${t}.${h}`,start:wE(p),end:wE(a),name:n,data:{size:m,decodedBodySize:r,encodedBodySize:o,duration:i,domInteractive:l,domContentLoadedEventStart:s,domContentLoadedEventEnd:c,loadEventStart:u,loadEventEnd:d,domComplete:a,redirectCount:f}}}function DE(e){let{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:a,decodedBodySize:o,encodedBodySize:s,responseStatus:c,transferSize:l}=e;return[`fetch`,`xmlhttprequest`].includes(n)?null:{type:`${t}.${n}`,start:wE(a),end:wE(i),name:r,data:{size:l,statusCode:c,decodedBodySize:o,encodedBodySize:s}}}function OE(e){let t=e.entries[e.entries.length-1];return ME(e,`largest-contentful-paint`,t?.element?[t.element]:void 0)}function kE(e){return e.sources!==void 0}function AE(e){let t=[],n=[];for(let r of e.entries)if(kE(r)){let e=[];for(let t of r.sources)if(t.node){n.push(t.node);let r=FT.mirror.getId(t.node);r&&e.push(r)}t.push({value:r.value,nodeIds:e.length?e:void 0})}return ME(e,`cumulative-layout-shift`,n,t)}function jE(e){let t=e.entries[e.entries.length-1];return ME(e,`interaction-to-next-paint`,t?.target?[t.target]:void 0)}function ME(e,t,n,r){let i=e.value,a=e.rating,o=wE(i);return{type:`web-vital`,name:t,start:o,end:o,data:{value:i,size:i,rating:a,nodeIds:n?n.map(e=>FT.mirror.getId(e)):void 0,attributions:r}}}function NE(e){function t(t){e.performanceEntries.includes(t)||e.performanceEntries.push(t)}function n({entries:e}){e.forEach(t)}let r=[];return[`navigation`,`paint`,`resource`].forEach(e=>{r.push(Dv(e,n))}),r.push(wv(xE(OE,e)),Cv(xE(AE,e)),Ev(xE(jE,e))),()=>{r.forEach(e=>e())}}var Q=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,PE=`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 FE(){let e=new Blob([PE]);return URL.createObjectURL(e)}var IE=[`log`,`warn`,`error`],LE=`[Replay] `;function RE(e,t=`info`){sc({category:`console`,data:{logger:`replay`},level:t,message:`${LE}${e}`},{level:t})}function zE(){let e=!1,t=!1,n={exception:()=>void 0,infoTick:()=>void 0,setConfig:n=>{e=!!n.captureExceptions,t=!!n.traceInternals}};return Q?(IE.forEach(e=>{n[e]=(...n)=>{x[e](LE,...n),t&&RE(n.join(``),zc(e))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),x.error(LE,r),e?I(r,{mechanism:{handled:!0,type:`auto.function.replay.debug`}}):t&&RE(r,`error`)},n.infoTick=(...e)=>{x.log(LE,...e),t&&setTimeout(()=>RE(e[0]),0)}):IE.forEach(e=>{n[e]=()=>void 0}),n}var $=zE(),BE=class extends Error{constructor(){super(`Event buffer exceeded maximum size of ${HS}.`)}},VE=class{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(e){let t=JSON.stringify(e).length;if(this._totalSize+=t,this._totalSize>HS)throw new BE;this.events.push(e)}finish(){return new Promise(e=>{let t=this.events;this.clear(),e(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let e=null;for(let{timestamp:t}of this.events)(e===null||t<e)&&(e=t);return e===null?e:VT(e)}},HE=class{constructor(e){this._worker=e,this._id=0}ensureReady(){return this._ensureReadyPromise||=new Promise((e,t)=>{this._worker.addEventListener(`message`,({data:n})=>{n.success?e():(Q&&$.warn(`Received worker message with unsuccessful status`,n),t(Error(`Received worker message with unsuccessful status`)))},{once:!0}),this._worker.addEventListener(`error`,e=>{Q&&$.warn(`Failed to load Replay compression worker`,e),t(Error(`Failed to load Replay compression worker: ${e instanceof ErrorEvent&&e.message?e.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(){Q&&$.log(`Destroying compression worker`),this._worker.terminate()}postMessage(e,t){let n=this._getAndIncrementId();return new Promise((r,i)=>{let a=({data:t})=>{let o=t;if(o.method===e&&o.id===n){if(this._worker.removeEventListener(`message`,a),!o.success){Q&&$.error(`Error in compression worker: `,o.response),i(Error(`Error in compression worker`));return}r(o.response)}};this._worker.addEventListener(`message`,a),this._worker.postMessage({id:n,method:e,arg:t})})}_getAndIncrementId(){return this._id++}},UE=class{constructor(e){this._worker=new HE(e),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(e){let t=VT(e.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);let n=JSON.stringify(e);return this._totalSize+=n.length,this._totalSize>HS?Promise.reject(new BE):this._sendEventToWorker(n)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage(`clear`).then(null,e=>{Q&&$.exception(e,`Sending "clear" message to worker failed`,e)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(e){return this._worker.postMessage(`addEvent`,e)}async _finishRequest(){let e=await this._worker.postMessage(`finish`);return this._earliestTimestamp=null,this._totalSize=0,e}},WE=class{constructor(e){this._fallback=new VE,this._compression=new UE(e),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(e){this._used.hasCheckout=e}set waitForCheckout(e){this._used.waitForCheckout=e}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(e){return this._used.addEvent(e)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(e){Q&&$.exception(e,`Failed to load the compression worker, falling back to simple buffer`);return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){let{events:e,hasCheckout:t,waitForCheckout:n}=this._fallback,r=[];for(let t of e)r.push(this._compression.addEvent(t));this._compression.hasCheckout=t,this._compression.waitForCheckout=n,this._used=this._compression;try{await Promise.all(r),this._fallback.clear()}catch(e){Q&&$.exception(e,`Failed to add events when switching buffers.`)}}};function GE({useCompression:e,workerUrl:t}){if(e&&window.Worker){let e=KE(t);if(e)return e}return Q&&$.log(`Using simple buffer`),new VE}function KE(e){try{let t=e||qE();return t?(Q&&$.log(`Using compression worker${e?` from ${e}`:``}`),new WE(new Worker(t))):void 0}catch(e){Q&&$.exception(e,`Failed to create compression worker`)}}function qE(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>`u`||!__SENTRY_EXCLUDE_REPLAY_WORKER__?FE():``}function JE(){try{return`sessionStorage`in q&&!!q.sessionStorage}catch{return!1}}function YE(e){XE(),e.session=void 0}function XE(){if(JE())try{q.sessionStorage.removeItem(OS)}catch{}}function ZE(e){return e===void 0?!1:Math.random()<e}function QE(e){if(JE())try{q.sessionStorage.setItem(OS,JSON.stringify(e))}catch{}}function $E(e){let t=Date.now();return{id:e.id||ct(),started:e.started||t,lastActivity:e.lastActivity||t,segmentId:e.segmentId||0,sampled:e.sampled,previousSessionId:e.previousSessionId,dirty:e.dirty||!1}}function eD(e,t){return ZE(e)?`session`:t?`buffer`:!1}function tD({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){let i=$E({sampled:eD(e,t),previousSessionId:r});return n&&QE(i),i}function nD(){if(!JE())return null;try{let e=q.sessionStorage.getItem(OS);if(!e)return null;let t=JSON.parse(e);return Q&&$.infoTick(`Loading existing session`),$E(t)}catch{return null}}function rD(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function iD(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return rD(e.started,t,r)||rD(e.lastActivity,n,r)}function aD(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!iD(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled===`buffer`&&e.segmentId===0)}function oD({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){let i=r.stickySession&&nD();return i?aD(i,{sessionIdleExpire:e,maxReplayDuration:t})?(Q&&$.infoTick(`Session in sessionStorage is expired, creating new one...`),tD(r,{previousSessionId:i.id})):i:(Q&&$.infoTick(`Creating new session`),tD(r,{previousSessionId:n}))}function sD(e){return e.type===Y.Custom}function cD(e,t,n){return dD(e,t)?(uD(e,t,n),!0):!1}function lD(e,t,n){return dD(e,t)?uD(e,t,n):Promise.resolve(null)}async function uD(e,t,n){let{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;let i=e.recordingMode===`buffer`;try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);let a=fD(t,e.getOptions().beforeAddRecordingEvent);return a?await r.addEvent(a):void 0}catch(t){let n=t&&t instanceof BE,a=n?`eventBufferOverflow`:`eventBufferError`,o=A();if(o){let e=n?`buffer_overflow`:`internal_sdk_error`;o.recordDroppedEvent(e,`replay`)}if(n&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(t),await e.stop({reason:a})}}function dD(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;let n=VT(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(Q&&$.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function fD(e,t){try{if(typeof t==`function`&&sD(e))return t(e)}catch(e){return Q&&$.exception(e,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}function pD(e){return!e.type}function mD(e){return e.type===`transaction`}function hD(e){return e.type===`replay_event`}function gD(e){return e.type===`feedback`}function _D(e){return(t,n)=>{if(!e.isEnabled()||!pD(t)&&!mD(t))return;let r=n.statusCode;if(!(!r||r<200||r>=300)){if(mD(t)){vD(e,t);return}yD(e,t)}}}function vD(e,t){let n=e.getContext();t.contexts?.trace?.trace_id&&n.traceIds.size<100&&n.traceIds.add(t.contexts.trace.trace_id)}function yD(e,t){let n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!==`buffer`||!t.tags?.replayId)return;let{beforeErrorSampling:r}=e.getOptions();typeof r==`function`&&!r(t)||ob(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(t){e.handleException(t)}})}function bD(e){return t=>{!e.isEnabled()||!pD(t)||xD(e,t)}}function xD(e,t){let n=t.exception?.values?.[0]?.value;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))&&UT(e,cE({category:`replay.hydrate-error`,data:{url:Be()}}))}function SD(e){let t=A();t&&t.on(`beforeAddBreadcrumb`,t=>CD(e,t))}function CD(e,t){if(!e.isEnabled()||!ED(t))return;let n=wD(t);n&&UT(e,n)}function wD(e){return!ED(e)||[`fetch`,`xhr`,`sentry.event`,`sentry.transaction`].includes(e.category)||e.category.startsWith(`ui.`)?null:e.category===`console`?TD(e):cE(e)}function TD(e){let t=e.data?.arguments;if(!Array.isArray(t)||t.length===0)return cE(e);let n=!1,r=t.map(e=>{if(!e)return e;if(typeof e==`string`)return e.length>zS?(n=!0,`${e.slice(0,zS)}…`):e;if(typeof e==`object`)try{let t=Yr(e,7);return JSON.stringify(t).length>zS?(n=!0,`${JSON.stringify(t,null,2).slice(0,zS)}…`):t}catch{}return e});return cE({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:[`CONSOLE_ARG_TRUNCATED`]}}:{}}})}function ED(e){return!!e.category}function DD(e,t){return e.type||!e.exception?.values?.length?!1:!!t.originalException?.__rrweb__}function OD(){let e=O().getPropagationContext().dsc;e&&delete e.replay_id;let t=F();if(t){let e=Wr(t);delete e.replay_id}}function kD(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:Y.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 AD(e,t){return e.recordingMode!==`buffer`||t.message===AS||!t.exception||t.type?!1:ZE(e.getOptions().errorSampleRate)}function jD(e){return Object.assign((t,n)=>{if(!e.isEnabled()||e.isPaused())return t;if(hD(t))return delete t.breadcrumbs,t;if(!pD(t)&&!mD(t)&&!gD(t))return t;if(!e.checkAndHandleExpiredSession())return OD(),t;if(gD(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),kD(e,t),t;if(DD(t,n)&&!e.getOptions()._experiments.captureExceptions)return Q&&$.log(`Ignoring error from rrweb internals`,t),null;let r=AD(e,t);if((r||e.recordingMode===`session`)&&(t.tags={...t.tags,replayId:e.getSessionId()}),r&&e.recordingMode===`buffer`&&e.session?.sampled===`buffer`){let t=e.session;t.dirty=!0,e.getOptions().stickySession&&QE(t)}return t},{id:`Replay`})}function MD(e,t){return t.map(({type:t,start:n,end:r,name:i,data:a})=>{let o=e.throttledAddEvent({type:Y.Custom,timestamp:n,data:{tag:`performanceSpan`,payload:{op:t,description:i,startTimestamp:n,endTimestamp:r,data:a}}});return typeof o==`string`?Promise.resolve(null):o})}function ND(e){let{from:t,to:n}=e,r=Date.now()/1e3;return{type:`navigation.push`,start:r,end:r,name:n,data:{previous:t}}}function PD(e){return t=>{if(!e.isEnabled())return;let n=ND(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(MD(e,[n]),!1)))}}function FD(e,t){return Q&&e.getOptions()._experiments.traceInternals?!1:Js(t,A())}function ID(e,t){e.isEnabled()&&t!==null&&(FD(e,t.name)||e.addUpdate(()=>(MD(e,[t]),!0)))}function LD(e){if(!e)return;let 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){let n=fb(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function RD(e){if(!e)return;let t=parseInt(e,10);return isNaN(t)?void 0:t}function zD(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};let n={...e._meta};return n.warnings=[...n.warnings||[],t],e._meta=n,e}function BD(e,t){if(!t)return null;let{startTimestamp:n,endTimestamp:r,url:i,method:a,statusCode:o,request:s,response:c}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:{method:a,statusCode:o,request:s,response:c}}}function VD(e){return{headers:{},size:e,_meta:{warnings:[`URL_SKIPPED`]}}}function HD(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};let r={headers:e,size:t},{body:i,warnings:a}=WD(n);return r.body=i,a?.length&&(r._meta={warnings:a}),r}function UD(e,t){return Object.entries(e).reduce((n,[r,i])=>{let a=r.toLowerCase();return t.includes(a)&&e[r]&&(n[a]=i),n},{})}function WD(e){if(!e||typeof e!=`string`)return{body:e};let t=e.length>RS,n=GD(e);if(t){let t=e.slice(0,RS);return n?{body:t,warnings:[`MAYBE_JSON_TRUNCATED`]}:{body:`${t}…`,warnings:[`TEXT_TRUNCATED`]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function GD(e){let t=e[0],n=e[e.length-1];return t===`[`&&n===`]`||t===`{`&&n===`}`}function KD(e,t){return it(qD(e),t)}function qD(e,t=q.document.baseURI){if(e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(q.location.origin))return e;let n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;let r=n.href;return!e.endsWith(`/`)&&r.endsWith(`/`)?r.slice(0,-1):r}async function JD(e,t,n){try{let r=BD(`resource.fetch`,await XD(e,t,n));ID(n.replay,r)}catch(e){Q&&$.exception(e,`Failed to capture fetch breadcrumb`)}}function YD(e,t){let{input:n,response:r}=t,i=LD(n?mb(n):void 0),a=r?RD(r.headers.get(`content-length`)):void 0;i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}async function XD(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r}=t,{url:o,method:s,status_code:c=0,request_body_size:l,response_body_size:u}=e.data,d=KD(o,n.networkDetailAllowUrls)&&!KD(o,n.networkDetailDenyUrls);return{startTimestamp:i,endTimestamp:a,url:o,method:s,statusCode:c,request:d?ZD(n,t.input,l):VD(l),response:await QD(d,n,t.response,u)}}function ZD({networkCaptureBodies:e,networkRequestHeaders:t},n,r){let i=n?nO(n,t):{};if(!e)return HD(i,r,void 0);let[a,o]=pb(mb(n),$),s=HD(i,r,a);return o?zD(s,o):s}async function QD(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&i!==void 0)return VD(i);let a=r?tO(r.headers,n):{};if(!r||!t&&i!==void 0)return HD(a,i,void 0);let[o,s]=await eO(r),c=$D(o,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:a});return s?zD(c,s):c}function $D(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{let a=e?.length&&n===void 0?LD(e):n;return r?t?HD(i,a,e):HD(i,a,void 0):VD(a)}catch(e){return Q&&$.exception(e,`Failed to serialize response body`),HD(i,n,void 0)}}async function eO(e){let t=iO(e);if(!t)return[void 0,`BODY_PARSE_ERROR`];try{return[await aO(t)]}catch(e){return e instanceof Error&&e.message.indexOf(`Timeout`)>-1?(Q&&$.warn(`Parsing text body from response timed out`),[void 0,`BODY_PARSE_TIMEOUT`]):(Q&&$.exception(e,`Failed to get text body from response`),[void 0,`BODY_PARSE_ERROR`])}}function tO(e,t){let n={};return t.forEach(t=>{e.get(t)&&(n[t]=e.get(t))}),n}function nO(e,t){return e.length===1&&typeof e[0]!=`string`?rO(e[0],t):e.length===2?rO(e[1],t):{}}function rO(e,t){if(!e)return{};let n=e.headers;return n?n instanceof Headers?tO(n,t):Array.isArray(n)?{}:UD(n,t):{}}function iO(e){try{return e.clone()}catch(e){Q&&$.exception(e,`Failed to clone response body`)}}function aO(e){return new Promise((t,n)=>{let r=ob(()=>n(Error(`Timeout while trying to read response body`)),500);oO(e).then(e=>t(e),e=>n(e)).finally(()=>clearTimeout(r))})}async function oO(e){return await e.text()}async function sO(e,t,n){try{let r=BD(`resource.xhr`,lO(e,t,n));ID(n.replay,r)}catch(e){Q&&$.exception(e,`Failed to capture xhr breadcrumb`)}}function cO(e,t){let{xhr:n,input:r}=t;if(!n)return;let i=LD(r),a=n.getResponseHeader(`content-length`)?RD(n.getResponseHeader(`content-length`)):fO(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),a!==void 0&&(e.data.response_body_size=a)}function lO(e,t,n){let r=Date.now(),{startTimestamp:i=r,endTimestamp:a=r,input:o,xhr:s}=t,{url:c,method:l,status_code:u=0,request_body_size:d,response_body_size:f}=e.data;if(!c)return null;if(!s||!KD(c,n.networkDetailAllowUrls)||KD(c,n.networkDetailDenyUrls))return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:VD(d),response:VD(f)};let p=s[sb],m=p?UD(p.request_headers,n.networkRequestHeaders):{},h=UD(hb(s),n.networkResponseHeaders),[g,_]=n.networkCaptureBodies?pb(o,$):[void 0],[v,y]=n.networkCaptureBodies?uO(s):[void 0],b=HD(m,d,g),x=HD(h,f,v);return{startTimestamp:i,endTimestamp:a,url:c,method:l,statusCode:u,request:_?zD(b,_):b,response:y?zD(x,y):x}}function uO(e){let t=[];try{return[e.responseText]}catch(e){t.push(e)}try{return dO(e.response,e.responseType)}catch(e){t.push(e)}return Q&&$.warn(`Failed to get xhr response body`,...t),[void 0]}function dO(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(t){return Q&&$.exception(t,`Failed to serialize body`,e),[void 0,`BODY_PARSE_ERROR`]}return Q&&$.log(`Skipping network body because of body type`,e),[void 0,`UNPARSEABLE_BODY_TYPE`]}function fO(e,t){try{return LD(t===`json`&&e&&typeof e==`object`?JSON.stringify(e):e)}catch{return}}function pO(e){let t=A();try{let{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o}=e.getOptions(),s={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:a,networkResponseHeaders:o};t&&t.on(`beforeAddBreadcrumb`,(e,t)=>mO(s,e,t))}catch{}}function mO(e,t,n){if(t.data)try{hO(t)&&_O(n)&&(cO(t,n),sO(t,n,e)),gO(t)&&vO(n)&&(YD(t,n),JD(t,n,e))}catch(e){Q&&$.exception(e,`Error when enriching network breadcrumb`)}}function hO(e){return e.category===`xhr`}function gO(e){return e.category===`fetch`}function _O(e){return e?.xhr}function vO(e){return e?.response}function yO(e){let t=A();qy(fE(e)),eb(PD(e)),SD(e),pO(e),oo(jD(e)),t&&(t.on(`beforeSendEvent`,bD(e)),t.on(`afterSendEvent`,_D(e)),t.on(`createDsc`,t=>{let n=e.getSessionId();n&&e.isEnabled()&&e.recordingMode===`session`&&e.checkAndHandleExpiredSession()&&(t.replay_id=n)}),t.on(`spanStart`,t=>{e.lastActiveSpan=t}),t.on(`spanEnd`,t=>{e.lastActiveSpan=t}),t.on(`beforeSendFeedback`,async(t,n)=>{let r=e.getSessionId();n?.includeReplay&&e.isEnabled()&&r&&t.contexts?.feedback&&(t.contexts.feedback.source===`api`&&await e.sendBufferedReplayOrFlush(),t.contexts.feedback.replay_id=r)}),t.on(`openFeedbackWidget`,async()=>{await e.sendBufferedReplayOrFlush()}))}async function bO(e){try{return Promise.all(MD(e,[xO(q.performance.memory)]))}catch{return[]}}function xO(e){let{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:`memory`,name:`memory`,start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function SO(e,t,n){return ac(e,t,{...n,setTimeoutImpl:ob})}var CO=i.navigator;function wO(){return/iPhone|iPad|iPod/i.test(CO?.userAgent??``)||/Macintosh/i.test(CO?.userAgent??``)&&CO?.maxTouchPoints&&CO?.maxTouchPoints>1?{sampling:{mousemove:!1}}:{}}function TO(e){let t=!1;return(n,r)=>{if(!e.checkAndHandleExpiredSession()){Q&&$.warn(`Received replay event after session expired.`);return}let i=r||!t;t=!0,EO(n),e.clickDetector&&aE(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode===`buffer`&&i&&e.setInitialState(),!cD(e,n,i))return!0;if(!i)return!1;let t=e.session;if(OO(e,i),e.recordingMode===`buffer`&&t&&e.eventBuffer&&!t.dirty){let n=e.eventBuffer.getEarliestTimestamp();n&&(Q&&$.log(`Updating session start time to earliest event in buffer to ${new Date(n)}`),t.started=n,e.getOptions().stickySession&&QE(t))}return t?.previousSessionId||e.recordingMode===`session`&&e.flush(),!0})}}function EO(e){let t=e.data;if(!(e.type!==Y.IncrementalSnapshot||!t||typeof t!=`object`||!(`source`in t)||t.source!==X.Mutation||!(`attributes`in t)||!Array.isArray(t.attributes)))for(let e of t.attributes){let t=FT.mirror.getNode(e.id),n=t&&FT.mirror.getMeta(t);if(n?.type===lE.Element)for(let[t,r]of Object.entries(e.attributes))r===null?delete n.attributes[t]:n.attributes[t]=r}}function DO(e){let t=e.getOptions();return{type:Y.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 OO(e,t){!t||e.session?.segmentId!==0||cD(e,DO(e),!1)}function kO(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function AO(e,t,n,r){return ri(vi(e,_i(e),r,n),[[{type:`replay_event`},e],[{type:`replay_recording`,length:typeof t==`string`?new TextEncoder().encode(t).length:t.length},t]])}function jO({recordingData:e,headers:t}){let n,r=`${JSON.stringify(t)}
|
|
480
|
+
`;if(typeof e==`string`)n=`${r}${e}`;else{let t=new TextEncoder().encode(r);n=new Uint8Array(t.length+e.length),n.set(t),n.set(e,t.length)}return n}async function MO({client:e,scope:t,replayId:n,event:r}){let i={event_id:n,integrations:typeof e._integrations==`object`&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0};e.emit(`preprocessEvent`,r,i);let a=await Fa(e.getOptions(),r,i,t,e,k());if(!a)return null;e.emit(`postprocessEvent`,a,i),a.platform=a.platform||`javascript`;let{name:o,version:s,settings:c}=e.getSdkMetadata()?.sdk||{};return a.sdk={...a.sdk,name:o||`sentry.javascript.unknown`,version:s||`0.0.0`,settings:c},a}async function NO({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:a}){let o=jO({recordingData:e,headers:{segment_id:n}}),{urls:s,errorIds:c,traceIds:l,initialTimestamp:u}=r,d=A(),f=O(),p=d?.getTransport(),m=d?.getDsn();if(!d||!p||!m||!a.sampled)return Promise.resolve({});let h=await MO({scope:f,client:d,replayId:t,event:{type:kS,replay_start_timestamp:u/1e3,timestamp:i/1e3,error_ids:c,trace_ids:l,urls:s,replay_id:t,segment_id:n,replay_type:a.sampled}});if(!h)return d.recordDroppedEvent(`event_processor`,`replay`),Q&&$.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete h.sdkProcessingMetadata;let g=AO(h,o,m,d.getOptions().tunnel),_;try{_=await p.send(g)}catch(e){let t=Error(AS);try{t.cause=e}catch{}throw t}let v=rs({},_);if(ns(v,`replay`))throw new FO(v);if(typeof _.statusCode==`number`&&(_.statusCode<200||_.statusCode>=300))throw new PO(_.statusCode);return _}var PO=class extends Error{constructor(e){super(`Transport returned status code ${e}`)}},FO=class extends Error{constructor(e){super(`Rate limit hit`),this.rateLimits=e}},IO=class extends Error{constructor(){super(`Session is too long, not sending replay`)}};async function LO(e,t={count:0,interval:IS}){let{recordingData:n,onError:r}=e;if(n.length)try{return await NO(e),!0}catch(n){if(n instanceof PO||n instanceof FO)throw n;if(Ja(`Replays`,{_retryCount:t.count}),r&&r(n),t.count>=LS){let e=Error(`${AS} - max retries exceeded`);try{e.cause=n}catch{}throw e}return t.interval*=++t.count,new Promise((n,r)=>{ob(async()=>{try{await LO(e,t),n(!0)}catch(e){r(e)}},t.interval)})}}var RO=`__THROTTLED`,zO=`__SKIPPED`;function BO(e,t,n){let r=new Map,i=e=>{let t=e-n;r.forEach((e,n)=>{n<t&&r.delete(n)})},a=()=>[...r.values()].reduce((e,t)=>e+t,0),o=!1;return(...n)=>{let s=Math.floor(Date.now()/1e3);if(i(s),a()>=t){let e=o;return o=!0,e?zO:RO}o=!1;let c=r.get(s)||0;return r.set(s,c+1),e(...n)}}var VO=class{constructor({options:e,recordingOptions:t}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode=`session`,this.timeouts={sessionIdlePause:jS,sessionIdleExpire:MS},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=t,this._options=e,this._debouncedFlush=SO(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=BO((e,t)=>lD(this,e,t),300,5);let{slowClickTimeout:n,slowClickIgnoreSelectors:r}=this.getOptions(),i=n?{threshold:Math.min(BS,n),timeout:n,scrollTimeout:VS,ignoreSelector:r?r.join(`,`):``}:void 0;if(i&&(this.clickDetector=new eE(this,i)),Q){let t=e._experiments;$.setConfig({captureExceptions:!!t.captureExceptions,traceInternals:!!t.traceInternals})}this._handleVisibilityChange=()=>{q.document.visibilityState===`visible`?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{let e=cE({category:`ui.blur`});this._doChangeToBackgroundTasks(e)},this._handleWindowFocus=()=>{let e=cE({category:`ui.focus`});this._doChangeToForegroundTasks(e)},this._handleKeyboardEvent=e=>{_E(this,e)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(e){Q&&$.exception(e),this._options.onError&&this._options.onError(e)}initializeSampling(e){let{errorSampleRate:t,sessionSampleRate:n}=this._options,r=t<=0&&n<=0;if(this._requiresManualStart=r,!r){if(this._initializeSessionForSampling(e),!this.session){Q&&$.exception(Error(`Unable to initialize and create session`));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled===`buffer`&&this.session.segmentId===0?`buffer`:`session`,Q&&$.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}start(){if(this._isEnabled&&this.recordingMode===`session`){Q&&$.log(`Recording is already in progress`);return}if(this._isEnabled&&this.recordingMode===`buffer`){Q&&$.log("Buffering is in progress, call `flush()` to save the replay");return}Q&&$.infoTick(`Starting replay in session mode`),this._updateUserActivity();let e=oD({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=e,this.recordingMode=`session`,this._initializeRecording()}startBuffering(){if(this._isEnabled){Q&&$.log("Buffering is in progress, call `flush()` to save the replay");return}Q&&$.infoTick(`Starting replay in buffer mode`);let e=oD({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=e,this.recordingMode=`buffer`,this._initializeRecording()}startRecording(){try{let e=this._canvas;this._stopRecording=FT({...this._recordingOptions,...this.recordingMode===`buffer`?{checkoutEveryNms:FS}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:TO(this),...wO(),onMutation:this._onMutationHandler.bind(this),...e?{recordCanvas:e.recordCanvas,getCanvasManager:e.getCanvasManager,sampling:e.sampling,dataURLOptions:e.dataURLOptions}:{}})}catch(e){this.handleException(e)}}stopRecording(){try{return this._stopRecording&&=(this._stopRecording(),void 0),!0}catch(e){return this.handleException(e),!1}}async stop({forceFlush:e=!1,reason:t}={}){if(!this._isEnabled)return;this._isEnabled=!1,this.recordingMode=`buffer`;let n=t??`manual`;A()?.emit(`replayEnd`,{sessionId:this.session?.id,reason:n});try{Q&&$.log(`Stopping Replay triggered by ${n}`),OD(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),e&&await this._flush({force:!0}),this.eventBuffer?.destroy(),this.eventBuffer=null,YE(this)}catch(e){this.handleException(e)}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Q&&$.log(`Pausing replay`))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),Q&&$.log(`Resuming replay`))}async sendBufferedReplayOrFlush({continueRecording:e=!0}={}){if(this.recordingMode===`session`)return this.flushImmediate();let t=Date.now();Q&&$.log(`Converting buffer to session`),await this.flushImmediate();let n=this.stopRecording();!e||!n||this.recordingMode!==`session`&&(this.recordingMode=`session`,this.session&&(this.session.dirty=!1,this._updateUserActivity(t),this._updateSessionActivity(t),this._maybeSaveSession()),this.startRecording())}addUpdate(e){let t=e();this.recordingMode===`buffer`||!this._isEnabled||t!==!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(e){if(!(e&&this.session?.sampled===!1))return this.session?.id}checkAndHandleExpiredSession(){if(this._lastActivity&&rD(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session?.sampled===`session`){this.pause();return}return!!this._checkSession()}setInitialState(){let e=`${q.location.pathname}${q.location.hash}${q.location.search}`,t=`${q.location.origin}${e}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(e,t){let n=this._throttledAddEvent(e,t);if(n===RO){let e=cE({category:`replay.throttled`});this.addUpdate(()=>!cD(this,{type:BT,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e,metric:!0}}))}return n}getCurrentRoute(){let e=this.lastActiveSpan||F(),t=e&&P(e),n=(t&&N(t).data||{})[cn];if(!(!t||!n||![`route`,`custom`].includes(n)))return N(t).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=GE({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&A()?.emit(`replayStart`,{sessionId:this.session.id,recordingMode:this.recordingMode}),this.startRecording()}_initializeSessionForSampling(e){let t=this._options.errorSampleRate>0,n=oD({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:e},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:t});this.session=n}_checkSession(){if(!this.session)return!1;let e=this.session;return aD(e,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(e),!1):!0}async _refreshSession(e){this._isEnabled&&(await this.stop({reason:`sessionExpired`}),this.initializeSampling(e.id))}_addListeners(){try{q.document.addEventListener(`visibilitychange`,this._handleVisibilityChange),q.addEventListener(`blur`,this._handleWindowBlur),q.addEventListener(`focus`,this._handleWindowFocus),q.addEventListener(`keydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||=(yO(this),!0)}catch(e){this.handleException(e)}this._performanceCleanupCallback=NE(this)}_removeListeners(){try{q.document.removeEventListener(`visibilitychange`,this._handleVisibilityChange),q.removeEventListener(`blur`,this._handleWindowBlur),q.removeEventListener(`focus`,this._handleWindowFocus),q.removeEventListener(`keydown`,this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(e){this.handleException(e)}}_doChangeToBackgroundTasks(e){this.session&&(iD(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(e&&this._createCustomBreadcrumb(e),this.conditionalFlush()))}_doChangeToForegroundTasks(e){if(this.session){if(!this.checkAndHandleExpiredSession()){Q&&$.log(`Document has become active, but session has expired`);return}e&&this._createCustomBreadcrumb(e)}}_updateUserActivity(e=Date.now()){this._lastActivity=e}_updateSessionActivity(e=Date.now()){this.session&&(this.session.lastActivity=e,this._maybeSaveSession())}_createCustomBreadcrumb(e){this.addUpdate(()=>{this.throttledAddEvent({type:Y.Custom,timestamp:e.timestamp||0,data:{tag:`breadcrumb`,payload:e}})})}_addPerformanceEntries(){let e=SE(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){let t=this._context.initialTimestamp/1e3;e=e.filter(e=>e.start>=t)}return Promise.all(MD(this,e))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){let{session:e,eventBuffer:t}=this;if(!e||!t||this._requiresManualStart||e.segmentId)return;let n=t.getEarliestTimestamp();n&&n<this._context.initialTimestamp&&(this._context.initialTimestamp=n)}_popEventContext(){let e={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(),e}async _runFlush(){let e=this.getSessionId();if(!this.session||!this.eventBuffer||!e){Q&&$.error(`No session or eventBuffer found to flush.`);return}if(await this._addPerformanceEntries(),this.eventBuffer?.hasEvents&&(await bO(this),this.eventBuffer&&e===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();let t=Date.now();if(t-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new IO;let n=this._popEventContext(),r=this.session.segmentId++;this._maybeSaveSession(),await LO({replayId:e,recordingData:await this.eventBuffer.finish(),segmentId:r,eventContext:n,session:this.session,timestamp:t,onError:e=>this.handleException(e)})}catch(e){this.handleException(e),this.stop({reason:`sendError`});let t=A();if(t){let n;n=e instanceof FO?`ratelimit_backoff`:e instanceof IO?`invalid`:`send_error`,t.recordDroppedEvent(n,`replay`)}}}async _flush({force:e=!1}={}){if(!this._isEnabled&&!e)return;if(!this.checkAndHandleExpiredSession()){Q&&$.error(`Attempting to finish replay event after session expired.`);return}if(!this.session)return;let t=this.session.started,n=Date.now()-t;this._debouncedFlush.cancel();let r=n<this._options.minReplayDuration,i=n>this._options.maxReplayDuration+5e3;if(r||i){Q&&$.log(`Session duration (${Math.floor(n/1e3)}s) is too ${r?`short`:`long`}, not sending replay.`),r&&this._debouncedFlush();return}let a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&Q&&$.log(`Flushing initial segment without checkout.`);let o=!!this._flushLock;this._flushLock||=this._runFlush();try{await this._flushLock}catch(e){this.handleException(e)}finally{this._flushLock=void 0,o&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&QE(this.session)}_onMutationHandler(e){let{ignoreMutations:t}=this._options._experiments;if(t?.length&&e.some(e=>{let n=kO(e.target),r=t.join(`,`);return n?.matches(r)}))return!1;let n=e.length,r=this._options.mutationLimit,i=this._options.mutationBreadcrumbLimit,a=r&&n>r;if(n>i||a){let e=cE({category:`replay.mutations`,data:{count:n,limit:a}});this._createCustomBreadcrumb(e)}return a?(this.stop({reason:`mutationLimit`,forceFlush:this.recordingMode===`session`}),!1):!0}};function HO(e,t){return[...e,...t].join(`,`)}function UO({mask:e,unmask:t,block:n,unblock:r,ignore:i}){return{maskTextSelector:HO(e,[`.sentry-mask`,`[data-sentry-mask]`]),unmaskTextSelector:HO(t,[]),blockSelector:HO(n,[`.sentry-block`,`[data-sentry-block]`,...[`base`,`iframe[srcdoc]:not([src])`]]),unblockSelector:HO(r,[]),ignoreSelector:HO(i,[`.sentry-ignore`,`[data-sentry-ignore]`,`input[type="file"]`])}}function WO({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:a}){return!r||i.unmaskTextSelector&&e.matches(i.unmaskTextSelector)?a:n.includes(t)||t===`value`&&e.tagName===`INPUT`&&[`submit`,`button`].includes(e.getAttribute(`type`)||``)?a.replace(/[\S]/g,`*`):a}var GO=`img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]`,KO=[`content-length`,`content-type`,`accept`],qO=Symbol.for(`sentry__originalRequestBody`),JO=!1,YO=!1;function XO(){if(typeof Request>`u`||YO)return;let e=Request;try{let t=function(t,n){let r=new e(t,n);return n?.body!=null&&(r[qO]=n.body),r};t.prototype=e.prototype,i.Request=t,YO=!0}catch{}}var ZO=(e=>new QO(e)),QO=class{constructor({flushMinDelay:e=NS,flushMaxDelay:t=PS,minReplayDuration:n=US,maxReplayDuration:r=GS,stickySession:i=!0,useCompression:a=!0,workerUrl:o,_experiments:s={},maskAllText:c=!0,maskAllInputs:l=!0,blockAllMedia:u=!0,mutationBreadcrumbLimit:d=750,mutationLimit:f=1e4,slowClickTimeout:p=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:h=[],networkDetailDenyUrls:g=[],networkCaptureBodies:_=!0,networkRequestHeaders:v=[],networkResponseHeaders:y=[],mask:b=[],maskAttributes:x=[`title`,`placeholder`,`aria-label`],unmask:S=[],block:C=[],unblock:w=[],ignore:T=[],maskFn:ee,beforeAddRecordingEvent:te,beforeErrorSampling:ne,onError:re,attachRawBodyFromRequest:ie=!1}={}){this.name=`Replay`;let ae=UO({mask:b,unmask:S,block:C,unblock:w,ignore:T});if(this._recordingOptions={maskAllInputs:l,maskAllText:c,maskInputOptions:{password:!0},maskTextFn:ee,maskInputFn:ee,maskAttributeFn:(e,t,n)=>WO({maskAttributes:x,maskAllText:c,privacyOptions:ae,key:e,value:t,el:n}),...ae,slimDOMOptions:`all`,inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:e=>{try{e.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!s.recordCrossOriginIframes},this._initialOptions={flushMinDelay:e,flushMaxDelay:t,minReplayDuration:Math.min(n,WS),maxReplayDuration:Math.min(r,GS),stickySession:i,useCompression:a,workerUrl:o,blockAllMedia:u,maskAllInputs:l,maskAllText:c,mutationBreadcrumbLimit:d,mutationLimit:f,slowClickTimeout:p,slowClickIgnoreSelectors:m,networkDetailAllowUrls:h,networkDetailDenyUrls:g,networkCaptureBodies:_,networkRequestHeaders:ek(v),networkResponseHeaders:ek(y),beforeAddRecordingEvent:te,beforeErrorSampling:ne,onError:re,attachRawBodyFromRequest:ie,_experiments:s},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${GO}`:GO,this._recordingOptions.ignoreCSSAttributes=new Set([`background-image`])),this._isInitialized&&dm())throw Error(`Multiple Sentry Session Replay instances are not supported`);this._isInitialized=!0}get _isInitialized(){return JO}set _isInitialized(e){JO=e}afterAllSetup(e){!dm()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&XO(),this._setup(e),this._initialize(e))}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(e){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(e):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(e){if(this._replay?.isEnabled())return this._replay.getSessionId(e)}getRecordingMode(){if(this._replay?.isEnabled())return this._replay.recordingMode}_initialize(e){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(e),this._replay.initializeSampling())}_setup(e){let t=$O(this._initialOptions,e);this._replay=new VO({options:t,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(e){try{let t=e.getIntegrationByName(`ReplayCanvas`);if(!t)return;this._replay._canvas=t.getOptions()}catch{}}};function $O(e,t){let n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=$n(n.replaysSessionSampleRate),a=$n(n.replaysOnErrorSampleRate);return i==null&&a==null&&f(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),a!=null&&(r.errorSampleRate=a),r}function ek(e){return[...KO,...e.map(e=>e.toLowerCase())]}function tk(){return A()?.getIntegrationByName(`Replay`)}var nk=Object.defineProperty,rk=(e,t,n)=>t in e?nk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ik=(e,t,n)=>rk(e,typeof t==`symbol`?t:t+``,n),ak=class{constructor(){ik(this,`idNodeMap`,new Map),ik(this,`nodeMetaMap`,new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function ok(){return new ak}function sk(e,t){for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return!1}function ck(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:ck(e.parentNode,t,n,r+1)}function lk(e,t){return n=>{let r=n;if(r===null)return!1;try{if(e){if(typeof e==`string`){if(r.matches(`.${e}`))return!0}else if(sk(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}var uk=`Please stop import mirror directly. Instead of that,\r
|
|
481
|
+
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
482
|
+
or you can use record.mirror to access the mirror instance during recording.`,dk={map:{},getId(){return console.error(uk),-1},getNode(){return console.error(uk),null},removeNodeFromMap(){console.error(uk)},has(){return console.error(uk),!1},reset(){console.error(uk)}};typeof window<`u`&&window.Proxy&&window.Reflect&&(dk=new Proxy(dk,{get(e,t,n){return t===`map`&&console.error(uk),Reflect.get(e,t,n)}}));function fk(e,t,n,r,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){yk(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>fk(e,t,a||{},!0)}function pk(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}Date.now().toString();function mk(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function hk(e,t,n,r,i){if(!e)return!1;let a=mk(e);if(!a)return!1;let o=lk(t,n);if(!i){let e=r&&a.matches(r);return o(a)&&!e}let s=ck(a,o),c=-1;return s<0?!1:(r&&(c=ck(a,lk(null,r))),s>-1&&c<0?!0:s<c)}var gk={};function _k(e){let t=gk[e];if(t)return t;let n=window.document,r=window[e];if(n&&typeof n.createElement==`function`)try{let t=n.createElement(`iframe`);t.hidden=!0,n.head.appendChild(t);let i=t.contentWindow;i&&i[e]&&(r=i[e]),n.head.removeChild(t)}catch{}return gk[e]=r.bind(window)}function vk(...e){return _k(`requestAnimationFrame`)(...e)}function yk(...e){return _k(`setTimeout`)(...e)}var bk=(e=>(e[e[`2D`]=0]=`2D`,e[e.WebGL=1]=`WebGL`,e[e.WebGL2=2]=`WebGL2`,e))(bk||{}),xk;function Sk(e){xk=e}for(var Ck=e=>xk?(...t)=>{try{return e(...t)}catch(e){if(xk&&xk(e)===!0)return()=>{};throw e}}:e,wk=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Tk=typeof Uint8Array>`u`?[]:new Uint8Array(256),Ek=0;Ek<wk.length;Ek++)Tk[wk.charCodeAt(Ek)]=Ek;var Dk=function(e){var t=new Uint8Array(e),n,r=t.length,i=``;for(n=0;n<r;n+=3)i+=wk[t[n]>>2],i+=wk[(t[n]&3)<<4|t[n+1]>>4],i+=wk[(t[n+1]&15)<<2|t[n+2]>>6],i+=wk[t[n+2]&63];return r%3==2?i=i.substring(0,i.length-1)+`=`:r%3==1&&(i=i.substring(0,i.length-2)+`==`),i},Ok=new Map;function kk(e,t){let n=Ok.get(e);return n||(n=new Map,Ok.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}var Ak=(e,t,n)=>{if(!e||!(Nk(e,t)||typeof e==`object`))return;let r=e.constructor.name,i=kk(n,r),a=i.indexOf(e);return a===-1&&(a=i.length,i.push(e)),a};function jk(e,t,n){if(e instanceof Array)return e.map(e=>jk(e,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)return{rr_type:e.constructor.name,base64:Dk(e)};if(e instanceof DataView)return{rr_type:e.constructor.name,args:[jk(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}else if(e instanceof HTMLCanvasElement)return{rr_type:`HTMLImageElement`,src:e.toDataURL()};else if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[jk(e.data,t,n),e.width,e.height]};else if(Nk(e,t)||typeof e==`object`)return{rr_type:e.constructor.name,index:Ak(e,t,n)};return e}var Mk=(e,t,n)=>e.map(e=>jk(e,t,n)),Nk=(e,t)=>!![`WebGLActiveInfo`,`WebGLBuffer`,`WebGLFramebuffer`,`WebGLProgram`,`WebGLRenderbuffer`,`WebGLShader`,`WebGLShaderPrecisionFormat`,`WebGLTexture`,`WebGLUniformLocation`,`WebGLVertexArrayObject`,`WebGLVertexArrayObjectOES`].filter(e=>typeof t[e]==`function`).find(n=>e instanceof t[n]);function Pk(e,t,n,r,i){let a=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let s of o)try{if(typeof t.CanvasRenderingContext2D.prototype[s]!=`function`)continue;let o=pk(t.CanvasRenderingContext2D.prototype,s,function(a){return function(...o){return hk(this.canvas,n,r,i,!0)||yk(()=>{let n=Mk(o,t,this);e(this.canvas,{type:bk[`2D`],property:s,args:n})},0),a.apply(this,o)}});a.push(o)}catch{let n=fk(t.CanvasRenderingContext2D.prototype,s,{set(t){e(this.canvas,{type:bk[`2D`],property:s,args:[t],setter:!0})}});a.push(n)}return()=>{a.forEach(e=>e())}}function Fk(e){return e===`experimental-webgl`?`webgl`:e}function Ik(e,t,n,r,i){let a=[];try{let o=pk(e.HTMLCanvasElement.prototype,`getContext`,function(e){return function(a,...o){if(!hk(this,t,n,r,!0)){let e=Fk(a);if(`__context`in this||(this.__context=e),i&&[`webgl`,`webgl2`].includes(e))if(o[0]&&typeof o[0]==`object`){let e=o[0];e.preserveDrawingBuffer||=!0}else o.splice(0,1,{preserveDrawingBuffer:!0})}return e.apply(this,[a,...o])}});a.push(o)}catch{console.error(`failed to patch HTMLCanvasElement.prototype.getContext`)}return()=>{a.forEach(e=>e())}}function Lk(e,t,n,r,i,a,o,s){let c=[],l=Object.getOwnPropertyNames(e);for(let o of l)if(![`isContextLost`,`canvas`,`drawingBufferWidth`,`drawingBufferHeight`].includes(o))try{if(typeof e[o]!=`function`)continue;let l=pk(e,o,function(e){return function(...c){let l=e.apply(this,c);if(Ak(l,s,this),`tagName`in this.canvas&&!hk(this.canvas,r,i,a,!0)){let e={type:t,property:o,args:Mk(c,s,this)};n(this.canvas,e)}return l}});c.push(l)}catch{let r=fk(e,o,{set(e){n(this.canvas,{type:t,property:o,args:[e],setter:!0})}});c.push(r)}return c}function Rk(e,t,n,r,i,a){let o=[];return o.push(...Lk(t.WebGLRenderingContext.prototype,bk.WebGL,e,n,r,i,a,t)),t.WebGL2RenderingContext!==void 0&&o.push(...Lk(t.WebGL2RenderingContext.prototype,bk.WebGL2,e,n,r,i,a,t)),()=>{o.forEach(e=>e())}}var zk=`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 Bk(){let e=new Blob([zk]);return URL.createObjectURL(e)}var Vk=class{constructor(e){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=(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)};let{enableManualSnapshot:t,sampling:n=`all`,win:r,recordCanvas:i,errorHandler:a}=e;e.sampling=n,this.mutationCb=e.mutationCb,this.mirror=e.mirror,this.options=e,a&&Sk(a),(i&&typeof n==`number`||t)&&(this.worker=this.initFPSWorker()),this.addWindow(r),!t&&Ck(()=>{i&&n===`all`&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),i&&typeof n==`number`&&this.initCanvasFPSObserver()})()}reset(){this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(e=>{try{e()}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(e){let{sampling:t=`all`,blockClass:n,blockSelector:r,unblockSelector:i,recordCanvas:a,enableManualSnapshot:o}=this.options;if(!this.windowsSet.has(e)){if(o){this.windowsSet.add(e),this.windows.push(new WeakRef(e));return}Ck(()=>{if(a&&t===`all`&&this.initCanvasMutationObserver(e,n,r,i),a&&typeof t==`number`){let t=Ik(e,n,r,i,!0);this.restoreHandlers.push(()=>{t()})}})(),this.windowsSet.add(e),this.windows.push(new WeakRef(e))}}addShadowRoot(e){this.shadowDoms.add(new WeakRef(e))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(e,t){if(t?.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,e);return}vk(t=>this.takeSnapshot(t,!0,e))}initFPSWorker(){let e=new Worker(Bk());return e.onmessage=e=>{let t=e.data,{id:n}=t;if(this.snapshotInProgressMap.set(n,!1),!(`base64`in t))return;let{base64:r,type:i,width:a,height:o}=t;this.mutationCb({id:n,type:bk[`2D`],commands:[{property:`clearRect`,args:[0,0,a,o]},{property:`drawImage`,args:[{rr_type:`ImageBitmap`,args:[{rr_type:`Blob`,data:[{rr_type:`ArrayBuffer`,base64:r}],type:i}]},0,0,a,o]}]})},e}initCanvasFPSObserver(){let e;if(!this.windows.length&&!this.shadowDoms.size)return;let t=n=>{this.takeSnapshot(n,!1),e=vk(t)};e=vk(t),this.restoreHandlers.push(()=>{e&&cancelAnimationFrame(e)})}initCanvasMutationObserver(e,t,n,r){let i=Ik(e,t,n,r,!1),a=Pk(this.processMutation.bind(this),e,t,n,r),o=Rk(this.processMutation.bind(this),e,t,n,r,this.mirror);this.restoreHandlers.push(()=>{i(),a(),o()})}getCanvasElements(e,t,n){let r=[],i=i=>{i.querySelectorAll(`canvas`).forEach(i=>{hk(i,e,t,n,!0)||r.push(i)})};for(let e of this.windows){let t=e.deref(),n;try{n=t&&t.document}catch{}n&&i(n)}for(let e of this.shadowDoms){let t=e.deref();t&&i(t)}return r}takeSnapshot(e,t,n){let{sampling:r,blockClass:i,blockSelector:a,unblockSelector:o,dataURLOptions:s,maxCanvasSize:c}=this.options,l=1e3/(r===`all`?2:r||2);return this.lastSnapshotTime&&e-this.lastSnapshotTime<l?!1:(this.lastSnapshotTime=e,(n?[n]:this.getCanvasElements(i,a,o)).forEach(e=>{let n=this.mirror.getId(e);if(!(!this.mirror.hasNode(e)||!e.width||!e.height||this.snapshotInProgressMap.get(n))){if(this.snapshotInProgressMap.set(n,!0),!t&&[`webgl`,`webgl2`].includes(e.__context)){let t=e.getContext(e.__context);t?.getContextAttributes()?.preserveDrawingBuffer===!1&&t.clear(t.COLOR_BUFFER_BIT)}createImageBitmap(e).then(t=>{this.worker?.postMessage({id:n,bitmap:t,width:e.width,height:e.height,dataURLOptions:s,maxCanvasSize:c},[t])}).catch(e=>{Ck(()=>{throw this.snapshotInProgressMap.delete(n),e})()})}}),!0)}startPendingCanvasMutationFlusher(){vk(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,vk(e)};vk(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),vk(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||t===-1)return;let r=n.map(e=>{let{type:t,...n}=e;return n}),{type:i}=n[0];this.mutationCb({id:t,type:i,commands:r}),this.pendingCanvasMutations.delete(e)}};try{if(Array.from([1],e=>e*2)[0]!==2){let 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)}ok();var Hk;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`})(Hk||={});var Uk={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}}},Wk=`ReplayCanvas`,Gk=1280,Kk=L(((e={})=>{let[t,n]=e.maxCanvasSize||[],r={quality:e.quality||`medium`,enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Gk):Gk,n?Math.min(n,Gk):Gk]},i,a,o=new Promise(e=>a=e);return{name:Wk,getOptions(){let{quality:e,enableManualSnapshot:t,maxCanvasSize:n}=r;return{enableManualSnapshot:t,recordCanvas:!0,getCanvasManager:e=>{let r=new Vk({...e,enableManualSnapshot:t,maxCanvasSize:n,errorHandler:e=>{try{typeof e==`object`&&(e.__rrweb__=!0)}catch{}}});return i=r,a(r),r},...Uk[e]||Uk.medium}},async snapshot(e,t){(i||await o).snapshot(e,t)}}}));function qk(e){return e.split(`,`).some(e=>e.trim().startsWith(`sentry-`))}function Jk(e){try{return new URL(e,U.location.origin).href}catch{return}}function Yk(e){return e.entryType===`resource`&&`initiatorType`in e&&typeof e.nextHopProtocol==`string`&&(e.initiatorType===`fetch`||e.initiatorType===`xmlhttprequest`)}function Xk(e){try{return new Headers(e)}catch{return}}var Zk=new WeakMap,Qk=new Map,$k={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function eA(e,t){let{traceFetch:n,traceXHR:r,trackFetchStreamPerformance:i,shouldCreateSpanForRequest:a,enableHTTPTimings:o,tracePropagationTargets:s,onRequestSpanStart:c,onRequestSpanEnd:l}={...$k,...t},u=typeof a==`function`?a:e=>!0,d=e=>rA(e,s),f={},p=e.getOptions().propagateTraceparent;n&&(e.addEventProcessor(e=>(e.type===`transaction`&&e.spans&&e.spans.forEach(e=>{if(e.op===`http.client`){let t=Qk.get(e.span_id);t&&(e.timestamp=t/1e3,Qk.delete(e.span_id))}}),e)),i&&em(e=>{if(e.response){let t=Zk.get(e.response);t&&e.endTimestamp&&Qk.set(t,e.endTimestamp)}}),$p(t=>{let n=Ql(t,u,d,f,{propagateTraceparent:p,onRequestSpanEnd:l});if(t.response&&t.fetchData.__span&&Zk.set(t.response,t.fetchData.__span),n){let r=Jk(t.fetchData.url),i=r?Gs(r).host:void 0;n.setAttributes({"http.url":r?qs(r):void 0,"server.address":i}),o&&nA(n,e),c?.(n,{headers:t.headers})}})),r&&cb(t=>{let n=iA(t,u,d,f,p,l);n&&(o&&nA(n,e),c?.(n,{headers:Xk(t.xhr.__sentry_xhr_v3__?.request_headers)}))})}var tA=300;function nA(e,t){let{url:n}=N(e).data;if(!n||typeof n!=`string`)return;let r=()=>void setTimeout(i);if(Di(t)){let t=e.end.bind(e);e.end=e=>{let n=e??D(),a=!1,o=()=>{a||(a=!0,setTimeout(i),t(n),clearTimeout(s))};r=o;let s=setTimeout(o,tA)}}let i=Dv(`resource`,({entries:t})=>{t.forEach(t=>{Yk(t)&&t.name.endsWith(n)&&(e.setAttributes(Qv(t)),r())})})}function rA(e,t){let n=Be();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}let a=r.origin===i;return t?it(r.toString(),t)||a&&it(r.pathname,t):a}else{let n=!!e.match(/^\/(?!\/)/);return t?it(e,t):n}}function iA(e,t,n,r,i,a){let o=e.xhr,s=o?.[sb];if(!o||o.__sentry_own_request__||!s)return;let{url:c,method:l}=s,u=Pr()&&t(c);if(e.endTimestamp){let t=o.__sentry_xhr_span_id__;if(!t)return;let n=r[t];n&&(u&&s.status_code!==void 0&&(An(n,s.status_code),n.end(),a?.(n,{headers:Xk(hb(o)),error:e.error})),delete r[t]);return}let d=Jk(c),f=Gs(d||c),p=qs(Ks(c)),m=A(),h=!!F(),g=u&&h?Bi({name:`${l} ${p}`,attributes:{url:qs(c),type:`xhr`,"http.method":l,"http.url":d?qs(d):void 0,"server.address":f?.host,[M]:`auto.http.browser`,[j]:`http.client`,...f?.search&&{"http.query":f?.search},...f?.hash&&{"http.fragment":f?.hash}}}):new Kr;return u&&!h&&m?.recordDroppedEvent(`no_parent_span`,`span`),o.__sentry_xhr_span_id__=g.spanContext().spanId,r[o.__sentry_xhr_span_id__]=g,n(c)&&aA(o,Pr()&&h?g:void 0,i),m&&m.emit(`beforeOutgoingRequestSpan`,g,e),g}function aA(e,t,n){let{"sentry-trace":r,baggage:i,traceparent:a}=nc({span:t,propagateTraceparent:n});r&&oA(e,r,i,a)}function oA(e,t,n,r){let i=e.__sentry_xhr_v3__?.request_headers;if(!(i?.[`sentry-trace`]||!e.setRequestHeader))try{if(e.setRequestHeader(`sentry-trace`,t),r&&!i?.traceparent&&e.setRequestHeader(`traceparent`,r),n){let t=i?.baggage;(!t||!qk(t))&&e.setRequestHeader(`baggage`,n)}}catch{}}function sA(){U.document?U.document.addEventListener(`visibilitychange`,()=>{let e=F();if(!e)return;let t=P(e);if(U.document.hidden&&t){let e=`cancelled`,{op:n,status:r}=N(t);K&&x.log(`[Tracing] Transaction: ${e} -> since tab moved to the background, op: ${n}`),r||t.setStatus({code:2,message:e}),t.setAttribute(`sentry.cancellation_reason`,`document.hidden`),t.end()}}):K&&x.warn(`[Tracing] Could not set up background tab detection due to lack of global document`)}var cA=`sentry_previous_trace`,lA=`sentry.previous_trace`;function uA(e,{linkPreviousTrace:t,consistentTraceSampling:n}){let r=t===`session-storage`,i=r?pA():void 0;e.on(`spanStart`,e=>{if(P(e)!==e)return;let t=O().getPropagationContext();i=dA(i,e,t),r&&fA(i)});let a=!0;n&&e.on(`beforeSampling`,e=>{if(!i)return;let t=O(),n=t.getPropagationContext();if(a&&n.parentSpanId){a=!1;return}t.setPropagationContext({...n,dsc:{...n.dsc,sample_rate:String(i.sampleRate),sampled:String(mA(i.spanContext))},sampleRand:i.sampleRand}),e.parentSampled=mA(i.spanContext),e.parentSampleRate=i.sampleRate,e.spanAttributes={...e.spanAttributes,[un]:i.sampleRate}})}function dA(e,t,n){let r=N(t);function i(){try{return Number(n.dsc?.sample_rate)??Number(r.data?.[`sentry.sample_rate`])}catch{return 0}}let a={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return a;let o=e.spanContext;return o.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=3600&&(K&&x.log(`Adding previous_trace \`${JSON.stringify(o)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:o,attributes:{[Dn]:`previous_trace`}}),t.setAttribute(lA,`${o.traceId}-${o.spanId}-${+!!mA(o)}`)),a)}function fA(e){try{U.sessionStorage.setItem(cA,JSON.stringify(e))}catch(e){K&&x.warn(`Could not store previous trace in sessionStorage`,e)}}function pA(){try{let e=U.sessionStorage?.getItem(cA);return JSON.parse(e)}catch{return}}function mA(e){return e.traceFlags===1}var hA=`BrowserTracing`,gA=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function _A(){let e=U.navigator;return e?.userAgent?gA.test(e.userAgent):!1}var vA={...ta,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:`in-memory`,consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...$k},yA=((e={})=>{`enableElementTiming`in e&&f(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});let t={name:void 0,source:void 0},n=U.document,{enableInp:r,enableLongTask:a,enableLongAnimationFrame:o,_experiments:{enableInteractions:s,enableStandaloneClsSpans:c,enableStandaloneLcpSpans:l},beforeStartSpan:u,idleTimeout:d,finalTimeout:p,childSpanTimeout:m,markBackgroundSpan:h,traceFetch:g,traceXHR:_,trackFetchStreamPerformance:v,shouldCreateSpanForRequest:y,enableHTTPTimings:b,ignoreResourceSpans:S,ignorePerformanceApiSpans:C,instrumentPageLoad:w,instrumentNavigation:T,detectRedirects:ee,linkPreviousTrace:te,consistentTraceSampling:ne,enableReportPageLoaded:re,onRequestSpanStart:ie,onRequestSpanEnd:ae}={...vA,...e},oe=_A(),se,E,ce;function le(e,r,i=!0){let a=r.op===`pageload`,o=r.name,s=u?u(r):r,f=s.attributes||{};if(o!==s.name&&(f[cn]=`custom`,s.attributes=f),!i){let e=_t();Bi({...s,startTime:e}).end(e);return}t.name=s.name,t.source=f[cn];let h=oa(s,{idleTimeout:d,finalTimeout:p,childSpanTimeout:m,disableAutoFinish:a,beforeSpanEnd:t=>{se?.();let n=Di(e);fy(t,{recordClsOnPageloadSpan:!n&&!c,recordLcpOnPageloadSpan:!n&&!l,ignoreResourceSpans:S,ignorePerformanceApiSpans:C,spanStreamingEnabled:n}),DA(e,void 0);let r=O(),i=r.getPropagationContext();r.setPropagationContext({...i,traceId:h.spanContext().traceId,sampled:xr(h),dsc:Wr(t)}),a&&(ce=void 0)},trimIdleSpanEndTimestamp:!re});a&&re&&(ce=h),DA(e,h);function g(){n&&[`interactive`,`complete`].includes(n.readyState)&&e.emit(`idleSpanEnableAutoFinish`,h)}a&&!re&&n&&(n.addEventListener(`readystatechange`,()=>{g()}),g())}return{name:hA,setup(e){if(oe){K&&x.log(`[Tracing] Skipping browserTracingIntegration setup for bot user agent.`);return}Nr();let t=Di(e);if(se=ay({recordClsStandaloneSpans:t?void 0:c||!1,recordLcpStandaloneSpans:t?void 0:l||!1,client:e}),t?(Ly(e),zy(e),r&&Vy()):r&&Ay(),o&&i.PerformanceObserver&&PerformanceObserver.supportedEntryTypes?.includes(`long-animation-frame`)?sy():a&&oy(),s&&cy(),ee&&n){let e=()=>{E=D()};addEventListener(`click`,e,{capture:!0}),addEventListener(`keydown`,e,{capture:!0,passive:!0})}function u(){let t=EA(e);t&&!N(t).timestamp&&(K&&x.log(`[Tracing] Finishing current active span with op: ${N(t).op}`),t.setAttribute(dn,`cancelled`),t.end())}e.on(`startNavigationSpan`,(t,n)=>{if(A()!==e)return;if(n?.isRedirect){K&&x.warn(`[Tracing] Detected redirect, navigation span will not be the root span, but a child span.`),le(e,{op:`navigation.redirect`,...t},!1);return}E=void 0,u(),k().setPropagationContext({traceId:Ot(),sampleRand:Math.random(),propagationSpanId:Pr()?void 0:kt()});let r=O();r.setPropagationContext({traceId:Ot(),sampleRand:Math.random(),propagationSpanId:Pr()?void 0:kt()}),r.setSDKProcessingMetadata({normalizedRequest:void 0}),le(e,{op:`navigation`,...t,parentSpan:null,forceTransaction:!0})}),e.on(`startPageLoadSpan`,(t,n={})=>{if(A()!==e)return;u();let r=nr(n.sentryTrace||SA(`sentry-trace`)||CA(`sentry-trace`),n.baggage||SA(`baggage`)||CA(`baggage`)),i=O();i.setPropagationContext(r),Pr()||(i.getPropagationContext().propagationSpanId=kt()),i.setSDKProcessingMetadata({normalizedRequest:Zg()}),le(e,{op:`pageload`,...t})}),e.on(`endPageloadSpan`,()=>{re&&ce&&(ce.setAttribute(dn,`reportPageLoaded`),ce.end())})},afterAllSetup(e){if(oe)return;let n=Be();if(te!==`off`&&uA(e,{linkPreviousTrace:te,consistentTraceSampling:ne}),U.location){if(w){let t=St();bA(e,{name:U.location.pathname,startTime:t?t/1e3:void 0,attributes:{[cn]:`url`,[M]:`auto.pageload.browser`}})}T&&eb(({to:t,from:r})=>{if(r===void 0&&n?.indexOf(t)!==-1){n=void 0;return}n=void 0;let i=Us(t),a=EA(e),o=a&&ee&&kA(a,E);xA(e,{name:i?.pathname||U.location.pathname,attributes:{[cn]:`url`,[M]:`auto.navigation.browser`}},{url:t,isRedirect:o})})}h&&sA(),s&&wA(e,d,p,m,t),r&&Fy(),eA(e,{traceFetch:g,traceXHR:_,trackFetchStreamPerformance:v,tracePropagationTargets:e.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:y,enableHTTPTimings:b,onRequestSpanStart:ie,onRequestSpanEnd:ae})}}});function bA(e,t,n){e.emit(`startPageLoadSpan`,t,n),O().setTransactionName(t.name);let r=EA(e);return r&&e.emit(`afterStartPageLoadSpan`,r),r}function xA(e,t,n){let{url:r,isRedirect:i}=n||{};e.emit(`beforeStartNavigationSpan`,t,{isRedirect:i}),e.emit(`startNavigationSpan`,t,{isRedirect:i});let a=O();return a.setTransactionName(t.name),r&&!i&&a.setSDKProcessingMetadata({normalizedRequest:{...Zg(),url:r}}),EA(e)}function SA(e){return(U.document?.querySelector(`meta[name=${e}]`))?.getAttribute(`content`)||void 0}function CA(e){return(U.performance?.getEntriesByType?.(`navigation`)[0])?.serverTiming?.find(t=>t.name===e)?.description}function wA(e,t,n,r,i){let a=U.document,o;a&&addEventListener(`click`,()=>{let a=`ui.action.click`,s=EA(e);if(s){let e=N(s).op;if([`navigation`,`pageload`].includes(e)){K&&x.warn(`[Tracing] Did not create ${a} span because a pageload or navigation span is in progress.`);return}}if(o&&=(o.setAttribute(dn,`interactionInterrupted`),o.end(),void 0),!i.name){K&&x.warn(`[Tracing] Did not create ${a} transaction because _latestRouteName is missing.`);return}o=oa({name:i.name,op:a,attributes:{[cn]:i.source||`url`}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})},{capture:!0})}var TA=`_sentry_idleSpan`;function EA(e){return e[TA]}function DA(e,t){Ue(e,TA,t)}var OA=1.5;function kA(e,t){let n=N(e),r=_t();return!(r-n.start_timestamp>OA||t&&r-t<=OA)}function AA(e=A()){e?.emit(`endPageloadSpan`)}function jA(e){let t=F();if(t===e)return;let n=O();e.end=new Proxy(e.end,{apply(e,r,i){return jt(n,t),Reflect.apply(e,r,i)}}),jt(n,e)}var MA=L(()=>({name:`SpanStreaming`,beforeSetup(e){let t=e.getOptions();t.traceLifecycle||=(K&&x.log('[SpanStreaming] setting `traceLifecycle` to "stream"'),`stream`)},setup(e){let t=`SpanStreaming integration requires`,n=`Falling back to static trace lifecycle.`,r=e.getOptions();if(!Di(e)){r.traceLifecycle=`static`,K&&x.warn(`${t} \`traceLifecycle\` to be set to "stream"! ${n}`);return}let i=r.beforeSendSpan;if(i&&!Jr(i)){r.traceLifecycle=`static`,K&&x.warn(`${t} a beforeSendSpan callback using \`withStreamedSpan\`! ${n}`);return}let a=new Gp(e);e.on(`afterSpanEnd`,t=>{xr(t)&&a.add(_a(t,e))}),e.on(`afterSegmentSpanEnd`,e=>{let t=e.spanContext().traceId;setTimeout(()=>{a.flush(t)},500)})}}));function NA(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function PA(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=NA(n);return e=>r.then(n=>e(n.transaction(t,`readwrite`).objectStore(t)))}function FA(e){return NA(e.getAllKeys())}function IA(e,t,n){return e(e=>FA(e).then(r=>{if(!(r.length>=n))return e.put(t,Math.max(...r,0)+1),NA(e.transaction)}))}function LA(e,t,n){return e(e=>FA(e).then(r=>{if(!(r.length>=n))return e.put(t,Math.min(...r,0)-1),NA(e.transaction)}))}function RA(e){return e(e=>FA(e).then(t=>{let n=t[0];if(n!=null)return NA(e.get(n)).then(t=>(e.delete(n),NA(e.transaction).then(()=>t)))}))}function zA(e){let t;function n(){return t??=PA(e.dbName||`sentry-offline`,e.storeName||`queue`),t}return{push:async t=>{try{let r=li(t);await IA(n(),r,e.maxQueueSize||30)}catch{}},unshift:async t=>{try{let r=li(t);await LA(n(),r,e.maxQueueSize||30)}catch{}},shift:async()=>{try{let e=await RA(n());if(e)return di(e)}catch{}}}}function BA(e){return t=>{let n=e({...t,createStore:zA});return U.addEventListener(`online`,async e=>{await n.flush()}),n}}function VA(e=_b){return BA(Fs(e))}var HA=1e6,UA=`window`in i&&i.window===i&&typeof importScripts>`u`,WA=`0`,GA=UA?`main`:`worker`,KA=U.navigator,qA=``,JA=``,YA=``,XA=KA?.userAgent||``,ZA=``,QA=KA?.language||KA?.languages?.[0]||``;function $A(e){return typeof e==`object`&&!!e&&`getHighEntropyValues`in e}var ej=KA?.userAgentData;$A(ej)&&ej.getHighEntropyValues([`architecture`,`model`,`platform`,`platformVersion`,`fullVersionList`]).then(e=>{if(qA=e.platform||``,YA=e.architecture||``,ZA=e.model||``,JA=e.platformVersion||``,e.fullVersionList?.length){let t=e.fullVersionList[e.fullVersionList.length-1];XA=`${t.brand} ${t.version}`}}).catch(e=>void 0);function tj(e){return!(`thread_metadata`in e)}function nj(e){return tj(e)?lj(e):e}function rj(e){let t=e.contexts?.trace?.trace_id;return typeof t==`string`&&t.length!==32&&K&&x.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t==`string`?t:``}function ij(e,t,n,r){if(r.type!==`transaction`)throw TypeError(`Profiling events may only be attached to transactions, this should never occur.`);if(n==null)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);let i=rj(r),a=nj(n),o=t||(typeof r.start_timestamp==`number`?r.start_timestamp*1e3:D()*1e3),s=typeof r.timestamp==`number`?r.timestamp*1e3:D()*1e3;return{event_id:e,timestamp:new Date(o).toISOString(),platform:`javascript`,version:`1`,release:r.release||``,environment:r.environment||`production`,runtime:{name:`javascript`,version:U.navigator.userAgent},os:{name:qA,version:JA,build_number:XA},device:{locale:QA,model:ZA,manufacturer:XA,architecture:YA,is_emulator:!1},debug_meta:{images:fj(n.resources)},profile:a,transactions:[{name:r.transaction||``,id:r.event_id||ct(),trace_id:i,active_thread_id:WA,relative_start_ns:`0`,relative_end_ns:((s-o)*1e6).toFixed(0)}]}}function aj(e,t,n){if(e==null)throw TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);let r=sj(e),i=t.getOptions(),a=t.getSdkMetadata?.()?.sdk;return{chunk_id:ct(),client_sdk:{name:a?.name??`sentry.javascript.browser`,version:a?.version??`0.0.0`},profiler_id:n||ct(),platform:`javascript`,version:`2`,release:i.release??``,environment:i.environment??`production`,debug_meta:{images:fj(e.resources)},profile:r}}function oj(e){try{if(!e||typeof e!=`object`)return{reason:`chunk is not an object`};let t=e=>typeof e==`string`&&/^[a-f0-9]{32}$/.test(e);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`};let 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(e){return{reason:`unknown validation error: ${e}`}}}function sj(e){let t=[];for(let n=0;n<e.frames.length;n++){let r=e.frames[n];r&&(t[n]={function:r.name,abs_path:typeof r.resourceId==`number`?e.resources[r.resourceId]:void 0,lineno:r.line,colno:r.column})}let n=[];for(let t=0;t<e.stacks.length;t++){let r=e.stacks[t];if(!r)continue;let i=[],a=r;for(;a;)i.push(a.frameId),a=a.parentId===void 0?void 0:e.stacks[a.parentId];n[t]=i}let r=St(),i=typeof performance.timeOrigin==`number`?performance.timeOrigin:r||0,a=i-(r||i),o=[];for(let t=0;t<e.samples.length;t++){let n=e.samples[t];if(!n)continue;let r=(i+(n.timestamp-a))/1e3;o[t]={stack_id:n.stackId??0,thread_id:WA,timestamp:r}}return{frames:t,stacks:n,samples:o,thread_metadata:{[WA]:{name:GA}}}}function cj(e){return N(e).op===`pageload`}function lj(e){let t,n=0,r={samples:[],stacks:[],frames:[],thread_metadata:{[WA]:{name:GA}}},i=e.samples[0];if(!i)return r;let a=i.timestamp,o=St(),s=typeof performance.timeOrigin==`number`?performance.timeOrigin:o||0,c=s-(o||s);return e.samples.forEach((i,o)=>{if(i.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[o]={elapsed_since_start_ns:((i.timestamp+c-a)*HA).toFixed(0),stack_id:t,thread_id:WA};return}let s=e.stacks[i.stackId],l=[];for(;s;){l.push(s.frameId);let t=e.frames[s.frameId];t&&r.frames[s.frameId]===void 0&&(r.frames[s.frameId]={function:t.name,abs_path:typeof t.resourceId==`number`?e.resources[t.resourceId]:void 0,lineno:t.line,colno:t.column}),s=s.parentId===void 0?void 0:e.stacks[s.parentId]}let u={elapsed_since_start_ns:((i.timestamp+c-a)*HA).toFixed(0),stack_id:n,thread_id:WA};r.stacks[n]=l,r.samples[o]=u,n++}),r}function uj(e,t){if(!t.length)return e;for(let n of t)e[1].push([{type:`profile`},n]);return e}function dj(e){let t=[];return ai(e,(e,n)=>{if(n===`transaction`)for(let n=1;n<e.length;n++)e[n]?.contexts?.profile?.profile_id&&t.push(e[n])}),t}function fj(e){let t=A()?.getOptions()?.stackParser;return t?Pa(t,e):[]}function pj(e){return typeof e!=`number`&&typeof e!=`boolean`||typeof e==`number`&&isNaN(e)?(K&&x.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?(K&&x.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function mj(e){return e.samples.length<2?(K&&x.log(`[Profiling] Discarding profile because it contains less than 2 samples`),!1):e.frames.length?!0:(K&&x.log(`[Profiling] Discarding profile because it contains no frames`),!1)}var hj=!1,gj=3e4;function _j(e){return typeof e==`function`}function vj(){let e=U.Profiler;if(!_j(e)){K&&x.log(`[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.`);return}let t=Math.floor(gj/10);try{return new e({sampleInterval:10,maxBufferSize:t})}catch{K&&(x.log(`[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header.`),x.log(`[Profiling] Disabling profiling for current user session.`)),hj=!0}}function yj(e){if(hj)return K&&x.log(`[Profiling] Profiling has been disabled for the duration of the current user session.`),!1;if(!e.isRecording())return K&&x.log(`[Profiling] Discarding profile because root span was not sampled.`),!1;let t=A()?.getOptions();if(!t)return K&&x.log(`[Profiling] Profiling disabled, no options found.`),!1;let n=t.profilesSampleRate;return pj(n)?n?n===!0||Math.random()<n?!0:(K&&x.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(n)})`),!1):(K&&x.log(`[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0`),!1):(K&&x.warn(`[Profiling] Discarding profile because of invalid sample rate.`),!1)}function bj(e){if(hj)return K&&x.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 K&&x.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;let t=e.profileSessionSampleRate;return pj(t)?t?Math.random()<=t:(K&&x.log(`[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0`),!1):(K&&x.warn(`[Profiling] Discarding profile because of invalid profileSessionSampleRate.`),!1)}function xj(e){return e.profilesSampleRate!==void 0}function Sj(e,t,n,r){return mj(n)?ij(e,t,n,r):null}var Cj=new Map;function wj(){return Cj.size}function Tj(e){let t=Cj.get(e);return t&&Cj.delete(e),t}function Ej(e,t){if(Cj.set(e,t),Cj.size>30){let e=Cj.keys().next().value;e!==void 0&&Cj.delete(e)}}function Dj(e){return!e?.contexts?.profile||!e.contexts?e:(e.contexts.trace?.trace_id&&(e.contexts.trace={...e.contexts.trace,data:{...e.contexts.trace.data??{},"thread.id":WA,"thread.name":GA}}),e.spans?.forEach(e=>{e.data={...e.data||{},"thread.id":WA,"thread.name":GA}}),e)}function Oj(e){let t;cj(e)&&(t=D()*1e3);let n=vj();if(!n)return;K&&x.log(`[Profiling] started profiling span: ${N(e).description}`);let r=ct(),i=null;O().setContext(`profile`,{profile_id:r,start_timestamp:t});async function a(){if(e&&n){if(i){K&&x.log(`[Profiling] profile for:`,N(e).description,`already exists, returning early`);return}return n.stop().then(t=>{if(o&&=(U.clearTimeout(o),void 0),K&&x.log(`[Profiling] stopped profiling of span: ${N(e).description}`),!t){K&&x.log(`[Profiling] profiler returned null profile for: ${N(e).description}`,`this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started`);return}i=t,Ej(r,t)}).catch(e=>{K&&x.log(`[Profiling] error while stopping profiler:`,e)})}}let o=U.setTimeout(()=>{K&&x.log(`[Profiling] max profile duration elapsed, stopping profiling for:`,N(e).description),a()},gj),s=e.end.bind(e);function c(){return e?(a().then(()=>{s()},()=>{s()}),e):s()}e.end=c}var kj=6e4,Aj=3e5,jj=class{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(e){let t=e.getOptions().profileLifecycle,n=bj(e.getOptions());K&&x.log(`[Profiling] Initializing profiler (lifecycle='${t}').`),n||K&&x.log(`[Profiling] Session not sampled. Skipping lifecycle profiler initialization.`),this._profilerId=ct(),this._client=e,this._sessionSampled=n,this._lifecycleMode=t,t===`trace`&&this._setupTraceLifecycleListeners(e)}start(){if(this._lifecycleMode===`trace`){K&&x.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){K&&x.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){K&&x.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if(this._lifecycleMode===`trace`){K&&x.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){K&&x.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(e){if(this._lifecycleMode!==`trace`||!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;n===1&&(K&&x.log(`[Profiling] Detected already active root span during setup. Active root spans now:`,n),this._beginProfiling())}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,K&&x.log(`[Profiling] Started profiling with profiler ID:`,this._profilerId),rn().setContext(`profile`,{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){K&&x.log(`[Profiling] Failed to start JS Profiler; stopping.`),this._resetProfilerInfo();return}this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&=(clearTimeout(this._chunkTimer),void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(e=>{K&&x.error("[Profiling] Failed to collect current profile chunk on `stop()`:",e)}),this._lifecycleMode===`manual`&&rn().setContext(`profile`,{}))}_setupTraceLifecycleListeners(e){e.on(`spanStart`,e=>{if(!this._sessionSampled){K&&x.log(`[Profiling] Span not profiled because of negative sampling decision for user session.`);return}if(e!==P(e))return;if(!e.isRecording()){K&&x.log(`[Profiling] Discarding profile because root span was not sampled.`);return}let t=e.spanContext().spanId;if(!t||this._activeRootSpanIds.has(t))return;this._registerTraceRootSpan(t);let n=this._activeRootSpanIds.size;n===1&&(K&&x.log(`[Profiling] Root span ${t} started. Profiling active while there are active root spans (count=${n}).`),this._beginProfiling())}),e.on(`spanEnd`,e=>{if(!this._sessionSampled)return;let t=e.spanContext().spanId;if(!t||!this._activeRootSpanIds.has(t))return;this._activeRootSpanIds.delete(t);let n=this._activeRootSpanIds.size;K&&x.log(`[Profiling] Root span with ID ${t} ended. Will continue profiling for as long as there are active root spans (currently: ${n}).`),n===0&&(this._collectCurrentChunk().catch(e=>{K&&x.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",e)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,rn().setContext(`profile`,{})}_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(e=>clearTimeout(e)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(e){this._activeRootSpanIds.add(e);let t=setTimeout(()=>this._onRootSpanTimeout(e),Aj);this._rootSpanTimeouts.set(e,t)}_startProfilerInstance(){if(this._profiler?.stopped===!1)return;let e=vj();if(!e){K&&x.log(`[Profiling] Failed to start JS Profiler.`);return}this._profiler=e}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(e=>{K&&x.error(`[Profiling] Failed to collect current profile chunk during periodic chunking:`,e)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler){this._resetProfilerInfo();return}this._startPeriodicChunking()}},kj))}_onRootSpanTimeout(e){this._rootSpanTimeouts.has(e)&&(this._rootSpanTimeouts.delete(e),this._activeRootSpanIds.has(e)&&(K&&x.log(`[Profiling] Reached 5-minute timeout for root span ${e}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(e),this._activeRootSpanIds.size===0&&this._endProfiling()))}async _collectCurrentChunk(){let e=this._profiler;if(this._profiler=void 0,e)try{let t=aj(await e.stop(),this._client,this._profilerId),n=oj(t);if(`reason`in n){K&&x.log(`[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):`,n.reason);return}this._sendProfileChunk(t),K&&x.log(`[Profiling] Collected browser profile chunk.`)}catch(e){K&&x.log(`[Profiling] Error while stopping JS Profiler for chunk:`,e)}}_sendProfileChunk(e){let t=this._client,n=_i(t.getSdkMetadata?.()),r=t.getDsn(),i=t.getOptions().tunnel,a=ri({event_id:ct(),sent_at:new Date().toISOString(),...n&&{sdk:n},...!!i&&r&&{dsn:Kn(r)}},[[{type:`profile_chunk`,platform:`javascript`},e]]);t.sendEnvelope(a).then(null,e=>{K&&x.error(`Error while sending profile chunk envelope:`,e)})}},Mj=`BrowserProfiling`,Nj=L((()=>({name:Mj,setup(e){let t=e.getOptions(),n=new jj;if(!xj(t)&&!t.profileLifecycle&&(t.profileLifecycle=`manual`),xj(t)&&!t.profilesSampleRate){K&&x.log(`[Profiling] Profiling disabled, no profiling options found.`);return}let r=F(),i=r&&P(r);if(xj(t)&&t.profileSessionSampleRate!==void 0&&K&&x.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),xj(t))i&&cj(i)&&yj(i)&&Oj(i),e.on(`spanStart`,e=>{e===P(e)&&yj(e)&&Oj(e)}),e.on(`beforeEnvelope`,e=>{if(!wj())return;let t=dj(e);if(!t.length)return;let n=[];for(let e of t){let t=e?.contexts,r=t?.profile?.profile_id,i=t?.profile?.start_timestamp;if(typeof r!=`string`){K&&x.log(`[Profiling] cannot find profile for a span without a profile context`);continue}if(!r){K&&x.log(`[Profiling] cannot find profile for a span without a profile context`);continue}t?.profile&&delete t.profile;let a=Tj(r);if(!a){K&&x.log(`[Profiling] Could not retrieve profile for span: ${r}`);continue}let o=Sj(r,i,a,e);o&&n.push(o)}uj(e,n)});else{let r=t.profileLifecycle;if(e.on(`startUIProfiler`,()=>n.start()),e.on(`stopUIProfiler`,()=>n.stop()),r===`manual`)n.initialize(e);else if(r===`trace`){if(!Pr(t)){K&&x.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}n.initialize(e),i&&n.notifyRootSpanActive(i),U.setTimeout(()=>{let e=F(),t=e&&P(e);t&&n.notifyRootSpanActive(t)},0)}}},processEvent(e){return Dj(e)}}))),Pj=L(()=>({name:`LaunchDarkly`,processEvent(e,t,n){return Ul(e)}}));function Fj(){return{name:`sentry-flag-auditor`,type:`flag-used`,synchronous:!0,method:(e,t,n)=>{Wl(e,t.value),Kl(e,t.value)}}}var Ij=L(()=>({name:`OpenFeature`,processEvent(e,t,n){return Ul(e)}})),Lj=class{after(e,t){Wl(t.flagKey,t.value),Kl(t.flagKey,t.value)}error(e,t,n){Wl(e.flagKey,e.defaultValue),Kl(e.flagKey,e.defaultValue)}},Rj=L(({featureFlagClientClass:e})=>({name:`Unleash`,setupOnce(){let t=e.prototype;He(t,`isEnabled`,zj)},processEvent(e,t,n){return Ul(e)}}));function zj(e){return function(...t){let n=t[0],r=e.apply(this,t);return typeof n==`string`&&typeof r==`boolean`?(Wl(n,r),Kl(n,r)):K&&x.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}var Bj=(({growthbookClass:e})=>Jl({growthbookClass:e})),Vj=L(({featureFlagClient:e})=>({name:`Statsig`,setup(t){e.on(`gate_evaluation`,e=>{Wl(e.gate.name,e.gate.value),Kl(e.gate.name,e.gate.value)})},processEvent(e,t,n){return Ul(e)}}));async function Hj(){let e=A();if(!e)return`no-client-active`;if(!e.getDsn())return`no-dsn-configured`;let t=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 Ui(()=>fetch(t,{body:`{}`,method:`POST`,mode:`cors`,credentials:`omit`}))}catch{return`sentry-unreachable`}}var Uj=`WebWorker`,Wj=L(({worker:e})=>({name:Uj,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(e=>Gj(e))},addWorker:e=>Gj(e)}));function Gj(e){e.addEventListener(`message`,e=>{if(Jj(e.data)){if(e.stopImmediatePropagation(),e.data._sentryDebugIds&&(K&&x.log(`Sentry debugId web worker message received`,e.data),U._sentryDebugIds={...e.data._sentryDebugIds,...U._sentryDebugIds}),e.data._sentryModuleMetadata&&(K&&x.log(`Sentry module metadata web worker message received`,e.data),U._sentryModuleMetadata={...e.data._sentryModuleMetadata,...U._sentryModuleMetadata}),e.data._sentryWasmImages){K&&x.log(`Sentry WASM images web worker message received`,e.data);let t=U._sentryWasmImages||[],n=e.data._sentryWasmImages.filter(e=>De(e)&&typeof e.code_file==`string`&&!t.some(t=>t.code_file===e.code_file));U._sentryWasmImages=[...t,...n]}e.data._sentryWorkerError&&(K&&x.log(`Sentry worker rejection message received`,e.data._sentryWorkerError),Kj(e.data._sentryWorkerError))}})}function Kj(e){let t=A();if(!t)return;let n=t.getOptions().stackParser,r=t.getOptions().attachStacktrace,i=e.reason,a=Ee(i)?bx(i):v_(n,i,void 0,r,!0);a.level=`error`,e.filename&&(a.contexts={...a.contexts,worker:{filename:e.filename}}),qa(a,{originalException:i,mechanism:{handled:!1,type:`auto.browser.web_worker.onunhandledrejection`}}),K&&x.log(`Captured worker unhandled rejection`,i)}function qj({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener(`unhandledrejection`,t=>{let n={reason:yx(t),filename:e.location?.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:n}),K&&x.log(`[Sentry Worker] Forwarding unhandled rejection to parent`,n)}),K&&x.log(`[Sentry Worker] Registered worker with unhandled rejection handling`)}function Jj(e){if(!De(e)||e._sentryMessage!==!0)return!1;let t=`_sentryDebugIds`in e,n=`_sentryModuleMetadata`in e,r=`_sentryWorkerError`in e,i=`_sentryWasmImages`in e;return!(!t&&!n&&!r&&!i||t&&!(De(e._sentryDebugIds)||e._sentryDebugIds===void 0)||n&&!(De(e._sentryModuleMetadata)||e._sentryModuleMetadata===void 0)||r&&!De(e._sentryWorkerError)||i&&(!Array.isArray(e._sentryWasmImages)||!e._sentryWasmImages.every(e=>De(e)&&typeof e.code_file==`string`)))}var Yj=`BrowserTracing`;function Xj(e){e.integrations&&Array.isArray(e.integrations)&&e.integrations.some(e=>e.name===Yj)&&f(()=>{console.warn(`browserTracingIntegration is not fully compatible with @sentry/react-router. Please use reactRouterTracingIntegration instead.`)}),tc(e,`react-router`,[`react-router`,`browser`]);let t=Rx(e);return Qa(`runtime`,`browser`),t}var Zj=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__;function Qj(e){try{return new URL(e.url).pathname}catch{try{return new URL(e.url,`http://example.com`).pathname}catch(t){return Zj&&x.warn(`Failed to parse URL from request:`,e.url,t),`<unknown>`}}}function $j(e){return e.pattern??e.unstable_pattern}function eM(e){if(e)return e.startsWith(`/`)?e:`/${e}`}function tM(e,t,n,r){t&&I(e.error,{mechanism:{type:n,handled:!1,data:r}})}function nM(e){if(typeof e!=`object`||!e)return String(e);let t=e.pathname;return typeof t==`string`?t||`/`:i.location?.pathname||`/`}var rM=i,iM,aM=new WeakMap,oM=`__sentryReactRouterClientInstrumentationUsed`,sM=`__sentryReactRouterNavigateHookInvoked`,cM=`__sentryReactRouterPopstateListenerAdded`,lM=i;function uM(e={}){let{captureErrors:t=!0}=e;return Zj&&x.log(`React Router client instrumentation API created.`),{router(e){lM[oM]=!0,Zj&&x.log(`React Router client instrumentation API router hook registered.`),!lM[cM]&&rM.addEventListener&&(lM[cM]=!0,rM.addEventListener(`popstate`,()=>{let e=A();if(!e){iM=void 0;return}let t=rM.location?.pathname||`/`;if(iM){iM.isRecording()&&iM.updateName(t),iM=void 0;return}xA(e,{name:t,attributes:{[cn]:`url`,[j]:`navigation`,[M]:`auto.navigation.react_router.instrumentation_api`,"navigation.type":`browser.popstate`}})}),Zj&&x.log(`React Router popstate listener registered for browser back/forward navigation.`)),e.instrument({async navigate(e,n){if(n.to===0){let r=await e();r.status===`error`&&r.error instanceof Error&&tM(r,t,`react_router.navigate`,{"http.url":n.currentUrl});return}if(lM[sM]=!0,typeof n.to==`number`){let r=A(),i;if(r){let e=n.to<0?`router.back`:`router.forward`;i=xA(r,{name:rM.location?.pathname||n.currentUrl,attributes:{[cn]:`url`,[j]:`navigation`,[M]:`auto.navigation.react_router.instrumentation_api`,"navigation.type":e}}),iM=i}try{let r=await e();i&&rM.location&&i.updateName(rM.location.pathname),r.status===`error`&&r.error instanceof Error&&(i&&i.setStatus({code:2,message:`internal_error`}),tM(r,t,`react_router.navigate`,{"http.url":rM.location?.pathname||n.currentUrl}))}finally{iM=void 0}return}let r=A(),i=nM(n.to),a;r&&(a=xA(r,{name:i,attributes:{[cn]:`url`,[j]:`navigation`,[M]:`auto.navigation.react_router.instrumentation_api`,"navigation.type":`router.navigate`}}));let o=await e();o.status===`error`&&o.error instanceof Error&&(a&&a.setStatus({code:2,message:`internal_error`}),tM(o,t,`react_router.navigate`,{"http.url":i}))},async fetch(e,n){await Ri({name:`Fetcher ${n.fetcherKey}`,attributes:{[j]:`function.react_router.fetcher`,[M]:`auto.function.react_router.instrumentation_api`}},async r=>{let i=await e();i.status===`error`&&i.error instanceof Error&&(r.setStatus({code:2,message:`internal_error`}),tM(i,t,`react_router.fetcher`,{"http.url":n.href}))})}})},route(e){let n=e.id;e.instrument({async loader(e,n){let r=Qj(n.request);await Ri({name:eM($j(n))||r,attributes:{[j]:`function.react_router.client_loader`,[M]:`auto.function.react_router.instrumentation_api`}},async n=>{let i=await e();i.status===`error`&&i.error instanceof Error&&(n.setStatus({code:2,message:`internal_error`}),tM(i,t,`react_router.client_loader`,{"http.url":r}))})},async action(e,n){let r=Qj(n.request);await Ri({name:eM($j(n))||r,attributes:{[j]:`function.react_router.client_action`,[M]:`auto.function.react_router.instrumentation_api`}},async n=>{let i=await e();i.status===`error`&&i.error instanceof Error&&(n.setStatus({code:2,message:`internal_error`}),tM(i,t,`react_router.client_action`,{"http.url":r}))})},async middleware(e,r){let i=Qj(r.request),a=eM($j(r))||i,o=aM.get(r.request);o||(o={},aM.set(r.request,o));let s=o[n]??0;o[n]=s+1,await Ri({name:`middleware ${n}`,attributes:{[j]:`function.react_router.client_middleware`,[M]:`auto.function.react_router.instrumentation_api`,"react_router.route.id":n,"http.route":a,"react_router.middleware.index":s}},async n=>{let r=await e();r.status===`error`&&r.error instanceof Error&&(n.setStatus({code:2,message:`internal_error`}),tM(r,t,`react_router.client_middleware`,{"http.url":i}))})},async lazy(e){await Ri({name:`Lazy Route Load`,attributes:{[j]:`function.react_router.client_lazy`,[M]:`auto.function.react_router.instrumentation_api`}},async n=>{let r=await e();r.status===`error`&&r.error instanceof Error&&(n.setStatus({code:2,message:`internal_error`}),tM(r,t,`react_router.client_lazy`,{}))})}})}}}function dM(){return!!lM[oM]}function fM(){return!!lM[sM]}var pM=i,mM=40;function hM(){function e(){let e=pM.__reactRouterDataRouter;if(e){let t=_M();if(t){let n=N(t).description,r=vM(e.state);n&&yM(e.state.location.pathname)===yM(n)&&(t.updateName(r),t.setAttributes({[cn]:`route`,[M]:`auto.pageload.react_router`}))}if(typeof e.navigate==`function`){let t=e.navigate.bind(e);e.navigate=function(...e){return dM()||gM(nM(e[0])||`<unknown route>`,`url`),t(...e)}}return e.subscribe(e=>{let t=_M();if(!t)return;let n=N(t).description,r=vM(e);n&&e.navigation.state===`idle`&&yM(e.location.pathname)===yM(n)&&(t.updateName(r),t.setAttributes({[cn]:`route`,[M]:`auto.navigation.react_router`}))}),!0}return!1}if(!e()){let t=0,n=setInterval(()=>{(e()||t>=mM)&&(t>=mM&&Zj&&x.warn(`Unable to instrument React Router: router not found after hydration.`),clearInterval(n)),t++},50)}}function gM(e,t){let n=A();if(n)return xA(n,{name:e,attributes:{[cn]:t,[j]:`navigation`,[M]:`auto.navigation.react_router`}})}function _M(){let e=F();if(!e)return;let t=P(e),n=N(t).op;return n===`navigation`||n===`pageload`?t:void 0}function vM(e){let t=e.matches[e.matches.length-1];return yM(t?.route.path??e.location.pathname)}function yM(e){let t=e.startsWith(`/`)?e:`/${e}`;return t.length>1&&t.endsWith(`/`)&&(t=t.slice(0,-1)),t}function bM(e={}){let t=yA({instrumentNavigation:!1}),n;(e.useInstrumentationAPI||e.instrumentationOptions)&&(n=uM(e.instrumentationOptions));let r=()=>(n||=uM(e.instrumentationOptions),n);return{...t,name:`ReactRouterTracingIntegration`,afterAllSetup(e){t.afterAllSetup(e),hM()},get clientInstrumentation(){return r()}}}var xM=e(n());function SM(e){let t=e.match(/^([^.]+)/);return t!==null&&parseInt(t[0])>=17}function CM(e,t){let n=new WeakSet;function r(e,t){if(!n.has(e)){if(e.cause)return n.add(e),r(e.cause,t);e.cause=t}}r(e,t)}function wM(e,{componentStack:t},n){if(SM(xM.version)&&ye(e)&&t){let n=Error(e.message);n.name=`React ErrorBoundary ${e.name}`,n.stack=t,CM(e,n)}return an(r=>(r.setContext(`react`,{componentStack:t}),I(e,n)))}function TM(e){return(t,n)=>{let r=!!e,i=wM(t,n,{mechanism:{handled:r,type:`auto.function.react.error_handler`}});r&&e(t,n,i)}}var EM=`ui.react.render`,DM=`ui.react.update`,OM=`ui.react.mount`,kM={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},AM={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},jM={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MM={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},NM=Symbol.for(`react.forward_ref`),PM=Symbol.for(`react.memo`);function FM(e){return typeof e==`object`&&!!e&&e.$$typeof===PM}var IM={};IM[NM]=jM,IM[PM]=MM;function LM(e){if(FM(e))return MM;let t=e.$$typeof;return t&&IM[t]||kM}var RM=Object.defineProperty.bind(Object),zM=Object.getOwnPropertyNames.bind(Object),BM=Object.getOwnPropertySymbols?.bind(Object),VM=Object.getOwnPropertyDescriptor.bind(Object),HM=Object.getPrototypeOf.bind(Object),UM=Object.prototype;function WM(e,t,n){if(typeof t!=`string`){if(UM){let n=HM(t);n&&n!==UM&&WM(e,n)}let n=zM(t);BM&&(n=n.concat(BM(t)));let r=LM(e),i=LM(t);for(let a of n)if(!AM[a]&&!i?.[a]&&!r?.[a]&&!VM(e,a)){let n=VM(t,a);if(n)try{RM(e,a,n)}catch{}}}return e}var GM=class extends xM.Component{constructor(e){super(e);let{name:t,disabled:n=!1}=this.props;n||(this._mountSpan=Bi({name:`<${t}>`,onlyIfParent:!0,op:OM,attributes:{[M]:`auto.ui.react.profiler`,"ui.component_name":t}}))}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:e,includeUpdates:t=!0}){if(t&&this._mountSpan&&e!==this.props.updateProps){let t=Object.keys(e).filter(t=>e[t]!==this.props.updateProps[t]);if(t.length>0){let e=D();this._updateSpan=Hi(this._mountSpan,()=>Bi({name:`<${this.props.name}>`,onlyIfParent:!0,op:DM,startTime:e,attributes:{[M]:`auto.ui.react.profiler`,"ui.component_name":this.props.name,"ui.react.changed_props":t}}))}}return!0}componentDidUpdate(){this._updateSpan&&=(this._updateSpan.end(),void 0)}componentWillUnmount(){let e=D(),{name:t,includeRender:n=!0}=this.props;if(this._mountSpan&&n){let n=N(this._mountSpan).timestamp;Hi(this._mountSpan,()=>{let r=Bi({onlyIfParent:!0,name:`<${t}>`,op:EM,startTime:n,attributes:{[M]:`auto.ui.react.profiler`,"ui.component_name":t}});r&&r.end(e)})}}render(){return this.props.children}};Object.assign(GM,{defaultProps:{disabled:!1,includeRender:!0,includeUpdates:!0}});function KM(e,t){let n=t?.name||e.displayName||e.name||`unknown`,r=r=>xM.createElement(GM,{...t,name:n,updateProps:r},xM.createElement(e,{...r}));return r.displayName=`profiler(${n})`,WM(r,e),r}function qM(e,t={disabled:!1,hasRenderSpan:!0}){let[n]=xM.useState(()=>{if(!t?.disabled)return Bi({name:`<${e}>`,onlyIfParent:!0,op:OM,attributes:{[M]:`auto.ui.react.profiler`,"ui.component_name":e}})});xM.useEffect(()=>(n&&n.end(),()=>{if(n&&t.hasRenderSpan){let t=N(n).timestamp,r=D(),i=Bi({name:`<${e}>`,onlyIfParent:!0,op:EM,startTime:t,attributes:{[M]:`auto.ui.react.profiler`,"ui.component_name":e}});i&&i.end(r)}}),[])}var JM=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,YM={componentStack:null,error:null,eventId:null},XM=class extends xM.Component{constructor(e){super(e),this.state=YM,this._openFallbackReportDialog=!0;let t=A();t&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=t.on(`afterSendEvent`,t=>{!t.type&&this._lastEventId&&t.event_id===this._lastEventId&&Vx({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,t){let{componentStack:n}=t,{beforeCapture:r,onError:i,showDialog:a,dialogOptions:o}=this.props;an(s=>{r&&r(s,e,n);let c=wM(e,t,{mechanism:{handled:this.props.handled==null?!!this.props.fallback:this.props.handled,type:`auto.function.react.error_boundary`}});i&&i(e,n,c),a&&(this._lastEventId=c,this._openFallbackReportDialog&&Vx({...o,eventId:c})),this.setState({error:e,componentStack:n,eventId:c})})}componentDidMount(){let{onMount:e}=this.props;e&&e()}componentWillUnmount(){let{error:e,componentStack:t,eventId:n}=this.state,{onUnmount:r}=this.props;r&&(this.state===YM?r(null,null,null):r(e,t,n)),this._cleanupHook&&=(this._cleanupHook(),void 0)}resetErrorBoundary(){let{onReset:e}=this.props,{error:t,componentStack:n,eventId:r}=this.state;e&&e(t,n,r),this.setState(YM)}render(){let{fallback:e,children:t}=this.props,n=this.state;if(n.componentStack===null)return typeof t==`function`?t():t;let r=typeof e==`function`?xM.createElement(e,{error:n.error,componentStack:n.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:n.eventId}):e;return xM.isValidElement(r)?r:(e&&JM&&x.warn(`fallback did not produce a valid ReactElement`),null)}};function ZM(e,t){let n=e.displayName||e.name||`unknown`,r=xM.memo(n=>xM.createElement(XM,{...t},xM.createElement(e,{...n})));return r.displayName=`errorBoundary(${n})`,WM(r,e),r}function QM(e,{errorInfo:t}){let n={handled:!1,type:`auto.function.react_router.on_error`};t?wM(e,t,{mechanism:n}):I(e,{mechanism:n})}export{C_ as BrowserClient,XM as ErrorBoundary,Is as MULTIPLEXED_TRANSPORT_EXTRA_KEY,Lj as OpenFeatureIntegrationHook,GM as Profiler,a as SDK_VERSION,j as SEMANTIC_ATTRIBUTE_SENTRY_OP,M as SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,ln as SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,cn as SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,Pt as Scope,U as WINDOW,sc as addBreadcrumb,oo as addEventProcessor,Co as addIntegration,Jb as breadcrumbsIntegration,ix as browserApiErrorsIntegration,Nj as browserProfilingIntegration,dx as browserSessionIntegration,yA as browserTracingIntegration,Fj as buildLaunchDarklyFlagUsedHandler,Vc as captureConsoleIntegration,qa as captureEvent,I as captureException,su as captureFeedback,Ka as captureMessage,wM as captureReactException,uo as captureSession,jb as chromeStackLineParser,ro as close,Su as consoleLoggingIntegration,fS as contextLinesIntegration,Vi as continueTrace,ku as createConsolaReporter,Ap as createLangChainCallbackHandler,uM as createSentryClientInstrumentation,is as createTransport,Wb as createUserFeedbackEnvelope,px as cultureContextIntegration,Wc as dedupeIntegration,$k as defaultRequestInstrumentationOptions,Vb as defaultStackLineParsers,Hb as defaultStackParser,Hj as diagnoseSdkConnectivity,Ey as elementTimingIntegration,co as endSession,mc as eventFiltersIntegration,g_ as eventFromException,__ as eventFromMessage,o_ as exceptionFromError,Qc as extraErrorDataIntegration,ql as featureFlagsIntegration,i_ as feedbackAsyncIntegration,a_ as feedbackIntegration,a_ as feedbackSyncIntegration,no as flush,zx as forceLoad,dc as functionToStringIntegration,Pb as geckoStackLineParser,F as getActiveSpan,A as getClient,O as getCurrentScope,Lx as getDefaultIntegrations,nh as getFeedback,rn as getGlobalScope,k as getIsolationScope,tk as getReplay,P as getRootSpan,Or as getSpanDescendants,kn as getSpanStatusFromHttpCode,nc as getTraceData,gx as globalHandlersIntegration,ES as graphqlClientIntegration,Bj as growthbookIntegration,qx as httpClientIntegration,Tx as httpContextIntegration,hc as inboundFiltersIntegration,Xj as init,Xf as instrumentAnthropicAiClient,fp as instrumentGoogleGenAIClient,gm as instrumentLangChainEmbeddings,zp as instrumentLangGraph,Ef as instrumentOpenAiClient,eA as instrumentOutgoingRequests,wl as instrumentSupabaseClient,_A as isBotUserAgent,dM as isClientInstrumentationApiUsed,ao as isEnabled,io as isInitialized,fM as isNavigateHookInvoked,to as lastEventId,Pj as launchDarklyIntegration,n_ as lazyLoadIntegration,kx as linkedErrorsIntegration,cu as logger,VA as makeBrowserOfflineTransport,_b as makeFetchTransport,Bs as makeMultiplexedTransport,Cu as metrics,Ic as moduleMetadataIntegration,Bx as onLoad,Ij as openFeatureIntegration,Rb as opera10StackLineParser,Bb as opera11StackLineParser,Qs as parameterize,TM as reactErrorHandler,bM as reactRouterTracingIntegration,Nr as registerSpanErrorInstrumentation,qj as registerWebWorker,Kk as replayCanvasIntegration,ZO as replayIntegration,AA as reportPageLoaded,Gx as reportingObserverIntegration,ll as rewriteFramesIntegration,Bm as sendFeedback,QM as sentryOnError,jA as setActiveSpanInBrowser,Ja as setContext,eo as setConversationId,Ms as setCurrentClient,Xa as setExtra,Ya as setExtras,An as setHttpStatus,Ti as setMeasurement,Qa as setTag,Za as setTags,$a as setUser,Vx as showReportDialog,MA as spanStreamingIntegration,Gr as spanToBaggageHeader,N as spanToJSON,ur as spanToTraceHeader,Nx as spotlightBrowserIntegration,xA as startBrowserTracingNavigationSpan,bA as startBrowserTracingPageLoadSpan,Bi as startInactiveSpan,Wi as startNewTrace,so as startSession,Ri as startSpan,zi as startSpanManual,Vj as statsigIntegration,Dl as supabaseIntegration,Ui as suppressTracing,Il as thirdPartyErrorFilterIntegration,bb as uiProfiler,Rj as unleashIntegration,jr as updateSpanName,qM as useProfiler,DS as viewHierarchyIntegration,Wj as webWorkerIntegration,Ib as winjsStackLineParser,Hi as withActiveSpan,ZM as withErrorBoundary,on as withIsolationScope,KM as withProfiler,an as withScope,qr as withStreamedSpan,Fl as zodErrorsIntegration};
|
|
483
|
+
//# sourceMappingURL=index.client-YaShKz_S.js.map
|