n8n-editor-ui 1.119.1 → 1.120.0
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/dist/assets/{AddDataTableModal-78UiDOZ6.js → AddDataTableModal-CNPce2MK.js} +17 -17
- package/dist/assets/AddDataTableModal-legacy-D_q2DsYi.js +165 -0
- package/dist/assets/AnimatedSpinner-legacy-a37yY0a9.js +35 -0
- package/dist/assets/{AnnotationTagsDropdown.ee-B5SGfmxY.js → AnnotationTagsDropdown.ee-B3a6ceTY.js} +2 -2
- package/dist/assets/AnnotationTagsDropdown.ee-legacy-LINSaq2v.js +90 -0
- package/dist/assets/{AuthView-CaCXt20h.js → AuthView-BksSCUt6.js} +6 -6
- package/dist/assets/AuthView-legacy-CfV1HZE_.js +170 -0
- package/dist/assets/{ChangePasswordView-sh87mWR6.js → ChangePasswordView-Cvxj1PRp.js} +15 -15
- package/dist/assets/ChangePasswordView-legacy-xsAfjRRg.js +165 -0
- package/dist/assets/{ChatAgentsView-4SiYQ9YJ.js → ChatAgentsView-DJypCGml.js} +22 -22
- package/dist/assets/ChatAgentsView-legacy-BaECHABU.js +418 -0
- package/dist/assets/{ChatSidebar-C0XXqw3v.js → ChatSidebar-C13q9zqk.js} +29 -24
- package/dist/assets/ChatSidebar-legacy-DIt4TcYH.js +485 -0
- package/dist/assets/{ChatView-BlkLzP1X.js → ChatView-D2xZRN42.js} +26 -26
- package/dist/assets/ChatView-legacy-CFToQG1U.js +1192 -0
- package/dist/assets/CollectionParameter-legacy-IavnknS_.js +16 -0
- package/dist/assets/CollectionParameter-uuFxXssR.js +58 -0
- package/dist/assets/{CommunityNodeUpdateInfo-Egv665vx.js → CommunityNodeUpdateInfo-CLRP_8wC.js} +8 -8
- package/dist/assets/CommunityNodeUpdateInfo-legacy-DS8roZW5.js +395 -0
- package/dist/assets/{CopyInput-DX-FL085.js → CopyInput-Bn1XwSA8.js} +4 -4
- package/dist/assets/CopyInput-legacy-CiWOPgga.js +141 -0
- package/dist/assets/{CredentialIcon-DS3l06t2.js → CredentialIcon-BYz55hZ1.js} +2 -2
- package/dist/assets/CredentialIcon-legacy-Dj_Wwpq8.js +110 -0
- package/dist/assets/{CredentialsView-C3SKDwtI.js → CredentialsView-DAHDYrLs.js} +36 -36
- package/dist/assets/CredentialsView-legacy-DLPPpy9f.js +562 -0
- package/dist/assets/{DataTableActions-lgRuMb9F.js → DataTableActions-C64c3Y8N.js} +7 -7
- package/dist/assets/DataTableActions-legacy-DBVf0Yyo.js +113 -0
- package/dist/assets/{DataTableDetailsView-CoWw-4gy.js → DataTableDetailsView-ByMD0P9u.js} +23 -23
- package/dist/assets/DataTableDetailsView-legacy-DaV5zS6D.js +46280 -0
- package/dist/assets/{DataTableView-hUsgVnZS.js → DataTableView-7hlUIGsV.js} +33 -33
- package/dist/assets/DataTableView-legacy-CI8bni3b.js +348 -0
- package/dist/assets/DemoFooter-CXKoC-C4.js +70 -0
- package/dist/assets/DemoFooter-legacy-C9jTq-mk.js +39 -0
- package/dist/assets/{Draggable-DFf4aD-Y.js → Draggable-FGSUZI7J.js} +1 -1
- package/dist/assets/Draggable-legacy-DrwbjxUV.js +158 -0
- package/dist/assets/{EmptySharedSectionActionBox-BkPu0yI0.js → EmptySharedSectionActionBox-DC-L1kVD.js} +4 -4
- package/dist/assets/EmptySharedSectionActionBox-legacy-CcDbu4Qz.js +68 -0
- package/dist/assets/{EnterpriseEdition.ee-BoNEV-MB.js → EnterpriseEdition.ee-BLnkG_vb.js} +1 -1
- package/dist/assets/EnterpriseEdition.ee-legacy-qbLE7866.js +44 -0
- package/dist/assets/{EntityNotFound-Bs-aLs3W.js → EntityNotFound-BEd7ip46.js} +7 -7
- package/dist/assets/EntityNotFound-legacy-DYBNYDT_.js +116 -0
- package/dist/assets/{EntityUnAuthorised-BwhGn6eD.js → EntityUnAuthorised-BwJ3qYPD.js} +7 -7
- package/dist/assets/EntityUnAuthorised-legacy-igjo60QA.js +97 -0
- package/dist/assets/{ErrorView-Cvlb8nm0.js → ErrorView-BpDaPgmW.js} +9 -9
- package/dist/assets/ErrorView-legacy-DapUi98L.js +100 -0
- package/dist/assets/{EvaluationsRootView-DdOZORFr.js → EvaluationsRootView-BeKeeOoI.js} +26 -26
- package/dist/assets/EvaluationsRootView-legacy-CKVE58to.js +633 -0
- package/dist/assets/{EvaluationsView-DxiPOlGL.js → EvaluationsView-BWf7BQC4.js} +20 -20
- package/dist/assets/EvaluationsView-legacy-DhlbC0Ea.js +612 -0
- package/dist/assets/{ExecutionsTime-DwXL-TY4.js → ExecutionsTime-EA00RsW3.js} +9 -9
- package/dist/assets/ExecutionsTime-legacy-DrbsbtIP.js +618 -0
- package/dist/assets/ExecutionsView-legacy-Dgt_HcPK.js +941 -0
- package/dist/assets/{ExecutionsView-B4XGhWmY.js → ExecutionsView-nE3nEcsV.js} +37 -37
- package/dist/assets/{ExternalSecretsProviderConnectionSwitch.ee-DCTg0mdX.js → ExternalSecretsProviderConnectionSwitch.ee-BWc-RcA5.js} +4 -4
- package/dist/assets/ExternalSecretsProviderConnectionSwitch.ee-legacy-vUb1CeAz.js +269 -0
- package/dist/assets/FileSaver.min-legacy-BTN44Z38.js +100 -0
- package/dist/assets/{FixedCollectionParameter-DjdDaH5s.js → FixedCollectionParameter-B1yXNe91.js} +48 -48
- package/dist/assets/FixedCollectionParameter-legacy-D_uQ0vSg.js +346 -0
- package/dist/assets/{ForgotMyPasswordView-KkAVBYit.js → ForgotMyPasswordView-D7LLNbRv.js} +15 -15
- package/dist/assets/ForgotMyPasswordView-legacy-DftsnpqL.js +118 -0
- package/dist/assets/{InsightsChartAverageRuntime-D5Gh8Rz5.js → InsightsChartAverageRuntime-C7rtAGGH.js} +8 -8
- package/dist/assets/InsightsChartAverageRuntime-legacy-C8eNILht.js +91 -0
- package/dist/assets/{InsightsChartFailed-D7PZ_ctV.js → InsightsChartFailed-BVvAmkiO.js} +7 -7
- package/dist/assets/InsightsChartFailed-legacy-BrgEC_aN.js +82 -0
- package/dist/assets/{InsightsChartFailureRate-CpPU5Kwd.js → InsightsChartFailureRate-DwY4ZV2Q.js} +8 -8
- package/dist/assets/InsightsChartFailureRate-legacy-BOkyqauQ.js +85 -0
- package/dist/assets/{InsightsChartTimeSaved-DYrv2t2N.js → InsightsChartTimeSaved-g3dzoVe5.js} +8 -8
- package/dist/assets/InsightsChartTimeSaved-legacy-CRXGQDed.js +99 -0
- package/dist/assets/{InsightsChartTotal-CNqL-Qn3.js → InsightsChartTotal-BUzsVTHL.js} +7 -7
- package/dist/assets/InsightsChartTotal-legacy-BJMAB7NO.js +82 -0
- package/dist/assets/{InsightsDashboard-CrJZtNDS.js → InsightsDashboard-Z46a8mLm.js} +36 -36
- package/dist/assets/InsightsDashboard-legacy-BsKYh6Zu.js +562 -0
- package/dist/assets/{InsightsPaywall-DxgcxZ5z.js → InsightsPaywall-CM-5Wo37.js} +16 -16
- package/dist/assets/InsightsPaywall-legacy-Db6t4x-1.js +83 -0
- package/dist/assets/{InsightsSummary-Bew3_p6D.js → InsightsSummary-BKDZRj8q.js} +8 -8
- package/dist/assets/InsightsSummary-legacy-e5z3TegQ.js +225 -0
- package/dist/assets/{InsightsTableWorkflows-TAIASHgR.js → InsightsTableWorkflows-BNelOen0.js} +16 -16
- package/dist/assets/InsightsTableWorkflows-legacy-BDjUKHj8.js +269 -0
- package/dist/assets/{ItemsRenderer-BfXptelN.js → ItemsRenderer-DG_0Q-Gb.js} +8 -8
- package/dist/assets/ItemsRenderer-legacy-BcFXv3rI.js +1178 -0
- package/dist/assets/{KeyboardShortcutTooltip-y1pBqAge.js → KeyboardShortcutTooltip-BYhbaXL9.js} +1 -1
- package/dist/assets/KeyboardShortcutTooltip-legacy-DFhofumE.js +81 -0
- package/dist/assets/LogsPanel-Cr7P14px.js +57 -0
- package/dist/assets/{LogsPanel-Uc0E6yn-.js → LogsPanel-abfXyH7Y.js} +28 -30
- package/dist/assets/LogsPanel-legacy-BjPVIpZg.js +2951 -0
- package/dist/assets/LogsPanel-legacy-BjVvE6Y0.js +16 -0
- package/dist/assets/{MainHeader-M-D-hY8c.js → MainHeader-CsSHhx5_.js} +241 -65
- package/dist/assets/{MainHeader-Dz9UViYg.css → MainHeader-Csdi9iXJ.css} +177 -29
- package/dist/assets/MainHeader-legacy-CvmcTj8J.js +2193 -0
- package/dist/assets/MainSidebar-legacy-YxLN5JqH.js +1306 -0
- package/dist/assets/{MainSidebar-Bf52gQzU.js → MainSidebar-rOTUtkBP.js} +26 -26
- package/dist/assets/{MainSidebarUserArea-UHX8ACa4.js → MainSidebarUserArea-BJPw39X0.js} +5 -5
- package/dist/assets/MainSidebarUserArea-legacy-D6AOIGgS.js +172 -0
- package/dist/assets/{Modal-DwutFKNY.js → Modal-DCqr4mja.js} +5 -5
- package/dist/assets/Modal-legacy-JHEaiPBD.js +265 -0
- package/dist/assets/ModalDrawer-legacy-BJmqm_oA.js +308 -0
- package/dist/assets/{ModalDrawer-B2sNzJVm.js → ModalDrawer-tIdfksn8.js} +6 -6
- package/dist/assets/{NDVEmptyState-DdpBamQ9.js → NDVEmptyState-BHecevNV.js} +1 -1
- package/dist/assets/NDVEmptyState-legacy-MP5RoBw5.js +19819 -0
- package/dist/assets/{NodeCreation-BRIx8Ei9.js → NodeCreation-D55e03Og.js} +46 -46
- package/dist/assets/NodeCreation-legacy-C2W0brGN.js +273 -0
- package/dist/assets/NodeCreator-legacy-CTnRoQSx.js +1670 -0
- package/dist/assets/{NodeCreator-DDG2GQ-C.js → NodeCreator-s6kndVrv.js} +31 -31
- package/dist/assets/{NodeDetailsView-4jVeGvDi.js → NodeDetailsView-Bob_UNcq.js} +64 -64
- package/dist/assets/NodeDetailsView-legacy-DDTRIVzE.js +1116 -0
- package/dist/assets/{NodeDetailsViewV2-MeaPvImX.js → NodeDetailsViewV2-B9XEZfhu.js} +65 -65
- package/dist/assets/NodeDetailsViewV2-legacy-CK4dIDeL.js +1060 -0
- package/dist/assets/{NodeIcon-C-rkj6sB.js → NodeIcon-lOuyYMGN.js} +2 -2
- package/dist/assets/NodeIcon-legacy-DG2J9mhW.js +127 -0
- package/dist/assets/{NodeSettings-gAtnSv8q.js → NodeSettings-B_ICqwDQ.js} +19 -19
- package/dist/assets/NodeSettings-legacy-CF2CaCzs.js +2811 -0
- package/dist/assets/NodeView-legacy-BMkGVdkr.js +2660 -0
- package/dist/assets/{NodeView-jjqmiYDP.js → NodeView-ph9FnUki.js} +69 -69
- package/dist/assets/{SettingsProvisioningView-Dhfda99J.css → OAuthConsentView-CXZbBKS5.css} +74 -32
- package/dist/assets/OAuthConsentView-CtUbmPEv.js +225 -0
- package/dist/assets/OAuthConsentView-legacy-V4pqsJpk.js +292 -0
- package/dist/assets/PageViewLayout-legacy-B1As2gDz.js +44 -0
- package/dist/assets/{ParameterInputList-kEoD9fc7.js → ParameterInputList-CVOMMAVC.js} +29 -29
- package/dist/assets/ParameterInputList-legacy-D0lnTah6.js +38124 -0
- package/dist/assets/{PrebuiltAgentTemplatesView-Dd6IJD_W.js → PrebuiltAgentTemplatesView-C66v0Rfw.js} +18 -18
- package/dist/assets/PrebuiltAgentTemplatesView-legacy-no2dr8dA.js +205 -0
- package/dist/assets/{ProjectBreadcrumb-scGlGqYf.js → ProjectBreadcrumb-CVitESde.js} +4 -4
- package/dist/assets/ProjectBreadcrumb-legacy-DuIjFcuf.js +140 -0
- package/dist/assets/{ProjectCardBadge-p4AY0ubu.js → ProjectCardBadge-RcG3IuSv.js} +5 -5
- package/dist/assets/ProjectCardBadge-legacy-Ckl-RNYt.js +251 -0
- package/dist/assets/{ProjectHeader-BZeiGuD6.js → ProjectHeader-BTxr_uZx.js} +12 -11
- package/dist/assets/ProjectHeader-legacy-CpJwWF0C.js +710 -0
- package/dist/assets/{ProjectIcon-DqKjDNbR.js → ProjectIcon-CfC5ZMJ_.js} +1 -1
- package/dist/assets/ProjectIcon-legacy-CCWF7GdT.js +109 -0
- package/dist/assets/{ProjectRoleView-ByzrSQP-.js → ProjectRoleView-CRCohRyJ.js} +16 -16
- package/dist/assets/ProjectRoleView-legacy-B73c7qRW.js +469 -0
- package/dist/assets/{ProjectRolesView-DclD8eEm.js → ProjectRolesView-BqZGQgVw.js} +19 -19
- package/dist/assets/ProjectRolesView-legacy-dTN29nao.js +316 -0
- package/dist/assets/{ProjectSettings-4wa93sE4.js → ProjectSettings-C29Ztobq.js} +26 -26
- package/dist/assets/ProjectSettings-legacy-B5WM8UM_.js +1069 -0
- package/dist/assets/{ProjectSharing-BVPUxo_M.js → ProjectSharing-DUdqsKIb.js} +5 -5
- package/dist/assets/ProjectSharing-legacy-DAHRQcVy.js +307 -0
- package/dist/assets/{ProjectVariables-x9spBaqX.js → ProjectVariables-k94KpZjl.js} +34 -34
- package/dist/assets/ProjectVariables-legacy-BtPtS2zC.js +572 -0
- package/dist/assets/{PushConnectionTracker-ByNVqY0h.js → PushConnectionTracker-BRETfc_U.js} +3 -3
- package/dist/assets/PushConnectionTracker-legacy-C4k814hh.js +65 -0
- package/dist/assets/{ResourcesListLayout-UXbxK1S7.js → ResourcesListLayout-CgQqKl0f.js} +10 -10
- package/dist/assets/ResourcesListLayout-legacy-BLQXYEmh.js +938 -0
- package/dist/assets/RunDataHtml-B1O-g3bi.js +7 -0
- package/dist/assets/{RunDataHtml-DdtrEw19.js → RunDataHtml-BNcvZDMJ.js} +1 -1
- package/dist/assets/RunDataHtml-legacy-DopSvQCJ.js +63 -0
- package/dist/assets/RunDataHtml-legacy-h0qPMlWv.js +16 -0
- package/dist/assets/{RunDataJson-CxLotBq-.js → RunDataJson-CVLzOWUM.js} +14 -17
- package/dist/assets/RunDataJson-legacy-dGOOBvFu.js +253 -0
- package/dist/assets/{RunDataJsonActions-qylVa2u8.js → RunDataJsonActions-T_9PWIUO.js} +15 -15
- package/dist/assets/RunDataJsonActions-legacy-bMw-SnSs.js +5126 -0
- package/dist/assets/{RunDataParsedAiContent-Cs80jq_q.js → RunDataParsedAiContent-BTi5LXv5.js} +7 -7
- package/dist/assets/RunDataParsedAiContent-lLVWzL_j.js +25 -0
- package/dist/assets/RunDataParsedAiContent-legacy-BP9-BZ9y.js +234 -0
- package/dist/assets/RunDataParsedAiContent-legacy-Be3V5vPH.js +16 -0
- package/dist/assets/{RunDataSearch-BvoYWH8W.js → RunDataSearch-CfgrUp1Q.js} +10 -10
- package/dist/assets/RunDataSearch-legacy-Gct_MnP9.js +194 -0
- package/dist/assets/{RunDataTable-d3eXUdSg.js → RunDataTable-gBcLds6g.js} +16 -16
- package/dist/assets/RunDataTable-legacy-C3okH-2I.js +724 -0
- package/dist/assets/{SamlOnboarding-CRtDDWqf.js → SamlOnboarding-B9GmsTCa.js} +15 -15
- package/dist/assets/SamlOnboarding-legacy-DOsu-pYe.js +92 -0
- package/dist/assets/{SaveButton-D1iDaopV.js → SaveButton-DMlAg6iF.js} +3 -3
- package/dist/assets/SaveButton-legacy-D7IEJ_Eb.js +123 -0
- package/dist/assets/{SelectedItemsInfo-CSzniBOD.js → SelectedItemsInfo-BxomzONZ.js} +2 -2
- package/dist/assets/SelectedItemsInfo-legacy-Df4orSkP.js +95 -0
- package/dist/assets/{SettingsApiView-DqnHEaAj.js → SettingsApiView-C2JaCEY4.js} +20 -20
- package/dist/assets/SettingsApiView-legacy-C6d8TfWr.js +409 -0
- package/dist/assets/{SettingsCommunityNodesView-C7JC1VAK.js → SettingsCommunityNodesView-_kOJvcAb.js} +34 -34
- package/dist/assets/SettingsCommunityNodesView-legacy-DWWeuTG5.js +443 -0
- package/dist/assets/{SettingsExternalSecrets-CqTHs6zk.js → SettingsExternalSecrets-C99m8ABz.js} +18 -18
- package/dist/assets/SettingsExternalSecrets-legacy-BzZ4XIFG.js +315 -0
- package/dist/assets/{SettingsLdapView-zifHhZKy.js → SettingsLdapView-C9WjBc7I.js} +21 -21
- package/dist/assets/SettingsLdapView-legacy-_AcWgHUq.js +2246 -0
- package/dist/assets/{SettingsLogStreamingView-CQwuqSl8.js → SettingsLogStreamingView-DHsRuyjZ.js} +20 -20
- package/dist/assets/SettingsLogStreamingView-legacy-tDLLJ44w.js +479 -0
- package/dist/assets/SettingsMCPView-51n0OMXD.js +936 -0
- package/dist/assets/SettingsMCPView-BGXq9o_x.css +1248 -0
- package/dist/assets/SettingsMCPView-legacy-i3kndEib.js +1111 -0
- package/dist/assets/{SettingsPersonalView-C1NF8zuk.js → SettingsPersonalView-D446WlNq.js} +16 -16
- package/dist/assets/SettingsPersonalView-legacy-BIKKlcFP.js +484 -0
- package/dist/assets/SettingsProvisioningView-C4D0a4Kz.css +303 -0
- package/dist/assets/SettingsProvisioningView-CMxF-qBt.js +448 -0
- package/dist/assets/SettingsProvisioningView-legacy-Dgc-3R2G.js +530 -0
- package/dist/assets/{SettingsSourceControl-CZryQCqT.js → SettingsSourceControl-CdGLap-v.js} +20 -20
- package/dist/assets/SettingsSourceControl-legacy-CRO9lIt0.js +580 -0
- package/dist/assets/{SettingsSso-CeeFO_Pv.js → SettingsSso-CRUwWu73.js} +21 -21
- package/dist/assets/SettingsSso-legacy-pdNyjmak.js +507 -0
- package/dist/assets/{SettingsUsageAndPlan-DMMd5WcZ.js → SettingsUsageAndPlan-B6x8zZXr.js} +19 -19
- package/dist/assets/SettingsUsageAndPlan-legacy-DFV0qoLH.js +505 -0
- package/dist/assets/{SettingsUsersView-DWVyE4hY.js → SettingsUsersView-Dsbnghnu.js} +21 -21
- package/dist/assets/SettingsUsersView-legacy-u0Fwqh1l.js +931 -0
- package/dist/assets/{SettingsView-trF6L-tM.js → SettingsView-cK0an9QH.js} +13 -12
- package/dist/assets/SettingsView-legacy-4r_N7Sjz.js +346 -0
- package/dist/assets/{SetupTemplateFormStep-BsgzR5CN.js → SetupTemplateFormStep-0WNtoZGl.js} +6 -6
- package/dist/assets/SetupTemplateFormStep-legacy-OcWvmzbf.js +548 -0
- package/dist/assets/{SetupView-Bx4ZLcja.js → SetupView-BLVZ5AeU.js} +15 -15
- package/dist/assets/SetupView-legacy-CRn9XSyo.js +126 -0
- package/dist/assets/{SetupWorkflowCredentialsButton-DR_aufFd.js → SetupWorkflowCredentialsButton-C0LFoT-P.js} +12 -12
- package/dist/assets/SetupWorkflowCredentialsButton-legacy-QokrFtZ-.js +84 -0
- package/dist/assets/{SetupWorkflowFromTemplateView-Ded77Ph-.js → SetupWorkflowFromTemplateView-B9OOt2hJ.js} +21 -21
- package/dist/assets/SetupWorkflowFromTemplateView-legacy-CaJODj15.js +376 -0
- package/dist/assets/{SigninView-DXPofyPm.js → SigninView-BpvLJPl1.js} +16 -16
- package/dist/assets/SigninView-legacy-DvW5NQXx.js +441 -0
- package/dist/assets/{SignoutView-B7H_dRJO.js → SignoutView-BWZuW4X2.js} +10 -10
- package/dist/assets/SignoutView-legacy-Clx351-m.js +56 -0
- package/dist/assets/{SignupView-BHWVvwh8.js → SignupView-Bf89NmFx.js} +15 -15
- package/dist/assets/SignupView-legacy-y9mI7y_i.js +154 -0
- package/dist/assets/{TagsDropdown-D6CYk5R8.js → TagsDropdown-BGeOVful.js} +4 -4
- package/dist/assets/TagsDropdown-legacy-C4hvzF0m.js +285 -0
- package/dist/assets/{TemplateDetails-ezK9JOOl.js → TemplateDetails-B6qqstGY.js} +7 -7
- package/dist/assets/TemplateDetails-legacy-DJ5AmpDn.js +197 -0
- package/dist/assets/{TemplateList-DztR2yKa.js → TemplateList-BGEW-ffb.js} +5 -5
- package/dist/assets/TemplateList-legacy-DK9daXlW.js +411 -0
- package/dist/assets/{TemplatesCollectionView-Bu_YRd84.js → TemplatesCollectionView-CotElubt.js} +23 -23
- package/dist/assets/TemplatesCollectionView-legacy-BLpP7qpC.js +248 -0
- package/dist/assets/{TemplatesSearchView-C7zBEV2b.js → TemplatesSearchView-CF_JB0Nl.js} +21 -21
- package/dist/assets/TemplatesSearchView-legacy-D5-BrZSe.js +1427 -0
- package/dist/assets/{TemplatesView-BnozPkTX.js → TemplatesView-KjV1fZuK.js} +3 -3
- package/dist/assets/TemplatesView-legacy-BR7FfPHI.js +113 -0
- package/dist/assets/{TemplatesWorkflowView-BTyHc3MG.js → TemplatesWorkflowView-D3dhsGtS.js} +25 -25
- package/dist/assets/TemplatesWorkflowView-legacy-BwhS7Lp6.js +220 -0
- package/dist/assets/{TestRunDetailView-B76TM9u8.js → TestRunDetailView-CwCkkxlL.js} +18 -18
- package/dist/assets/TestRunDetailView-legacy-B8xeQdn3.js +500 -0
- package/dist/assets/TextWithHighlights-legacy-CVW5NpX4.js +108 -0
- package/dist/assets/{TimeAgo-Gv5h1Utx.js → TimeAgo-CxNgd8gh.js} +2 -2
- package/dist/assets/TimeAgo-legacy-C6dJd_gm.js +200 -0
- package/dist/assets/{TriggerPanel-Dx9LpA4p.js → TriggerPanel-BGFaLV08.js} +80 -28
- package/dist/assets/{TriggerPanel-BQveVt6Q.css → TriggerPanel-jKx3Ut66.css} +31 -10
- package/dist/assets/TriggerPanel-legacy-B2UgkRPw.js +1519 -0
- package/dist/assets/VirtualSchema-BANmgn2J.js +43 -0
- package/dist/assets/{VirtualSchema-CUUzo795.js → VirtualSchema-CQeMCJz2.js} +16 -16
- package/dist/assets/VirtualSchema-legacy-DgLao-iv.js +16 -0
- package/dist/assets/VirtualSchema-legacy-DxxDcdpp.js +2655 -0
- package/dist/assets/{VueMarkdown-CiR4a0gO.js → VueMarkdown-BVDHDwjC.js} +1 -1
- package/dist/assets/VueMarkdown-legacy-C7HrPz2N.js +50 -0
- package/dist/assets/{WorkerView-D7h4pmTk.js → WorkerView-DaMext16.js} +39 -39
- package/dist/assets/WorkerView-legacy-BHcVajFe.js +636 -0
- package/dist/assets/{WorkflowActivator-k3HTYXbc.js → WorkflowActivator-B_HRrCra.js} +8 -8
- package/dist/assets/WorkflowActivator-legacy-DwUgfsYm.js +473 -0
- package/dist/assets/{WorkflowExecutionsInfoAccordion-DL5cBkbK.js → WorkflowExecutionsInfoAccordion-B9s5Q7yu.js} +7 -7
- package/dist/assets/WorkflowExecutionsInfoAccordion-legacy-BP2sx7KH.js +226 -0
- package/dist/assets/WorkflowExecutionsLandingPage-legacy-Bc8Pv97E.js +136 -0
- package/dist/assets/{WorkflowExecutionsLandingPage-DlXz9Jry.js → WorkflowExecutionsLandingPage-q-oTzfKu.js} +21 -21
- package/dist/assets/{WorkflowExecutionsPreview-DJWD2i74.js → WorkflowExecutionsPreview-LAeONz_V.js} +25 -25
- package/dist/assets/WorkflowExecutionsPreview-legacy-DYnU2VEN.js +745 -0
- package/dist/assets/{WorkflowExecutionsView-CK-2WqY7.js → WorkflowExecutionsView-CfFjhYz4.js} +38 -38
- package/dist/assets/WorkflowExecutionsView-legacy-DKAzbr8n.js +880 -0
- package/dist/assets/WorkflowHistory-legacy-Csdiq5NP.js +881 -0
- package/dist/assets/{WorkflowHistory-Cb-ZoRBp.js → WorkflowHistory-n0uzAdZE.js} +19 -19
- package/dist/assets/{WorkflowOnboardingView-CguOMlib.js → WorkflowOnboardingView-CHSk719X.js} +9 -9
- package/dist/assets/WorkflowOnboardingView-legacy-B9zP9lMz.js +95 -0
- package/dist/assets/{WorkflowPreview-DY79uYFw.js → WorkflowPreview-BRS-DBzm.js} +5 -5
- package/dist/assets/WorkflowPreview-legacy-DA2H3NgE.js +249 -0
- package/dist/assets/{WorkflowTagsDropdown-CdEFZM1A.js → WorkflowTagsDropdown-CxVnfj8H.js} +2 -2
- package/dist/assets/WorkflowTagsDropdown-legacy-DHfnvOJY.js +90 -0
- package/dist/assets/{WorkflowsView-BnxQSw3m.js → WorkflowsView-CypeB-OF.js} +98 -80
- package/dist/assets/{WorkflowsView-2XTsT7zB.css → WorkflowsView-M8ExG7Q2.css} +22 -19
- package/dist/assets/WorkflowsView-legacy-DMyidvQo.js +3521 -0
- package/dist/assets/{_MapCache-Byd-DTfo.js → _MapCache-Y29RpBXS.js} +50 -10
- package/dist/assets/_MapCache-legacy-GeIax_zP.js +11061 -0
- package/dist/assets/_plugin-vue_export-helper-legacy-DZMI5HPp.js +19 -0
- package/dist/assets/apiKeys.store-legacy-CpmQpacT.js +76 -0
- package/dist/assets/{apiKeys.store-CPsBJKkq.js → apiKeys.store-uglU3Z3p.js} +1 -1
- package/dist/assets/{assistant.store-DvuxtpS4.js → assistant.store-CxWBk3OU.js} +6 -6
- package/dist/assets/assistant.store-legacy-BM5rx1Eo.js +1313 -0
- package/dist/assets/{auth.eventBus-YsWbuB84.js → auth.eventBus-6li5BYVU.js} +1 -1
- package/dist/assets/auth.eventBus-legacy-BMxxHZ6c.js +22 -0
- package/dist/assets/{banners.store-BQPwuqhn.js → banners.store-DtwO0jVD.js} +3 -3
- package/dist/assets/banners.store-legacy-CpyAILCk.js +260 -0
- package/dist/assets/buttons.esm-legacy-BLrJSt1Z.js +419 -0
- package/dist/assets/chart-legacy-DbW-cf8m.js +12055 -0
- package/dist/assets/{chartjs.utils-Bf07Y-P-.js → chartjs.utils-BCpB09lQ.js} +3 -3
- package/dist/assets/chartjs.utils-legacy-DkVdV-lK.js +208 -0
- package/dist/assets/{chatPanel.store-fM-8PK9i.js → chatPanel.store-CB1RbrcJ.js} +4 -4
- package/dist/assets/chatPanel.store-legacy-BKAXbpla.js +153 -0
- package/dist/assets/chunk-legacy-Re9CbdfL.js +59 -0
- package/dist/assets/cloudPlan.store-legacy-BpTKyznI.js +208 -0
- package/dist/assets/{cloudPlan.store-DrraBpZJ.js → cloudPlan.store-oTKMV1Bw.js} +2 -2
- package/dist/assets/{col-DK_GtMhM.js → col-dYShDiWC.js} +3 -3
- package/dist/assets/col-legacy-BmizH2a4.js +186 -0
- package/dist/assets/{constants-DvlTm3U4.js → constants-COt-IPHd.js} +362 -356
- package/dist/assets/constants-legacy-D22nGw-a.js +26 -0
- package/dist/assets/constants-legacy-DiqA0Pu_.js +61343 -0
- package/dist/assets/{core-6lPsS9S5.js → core-CH2Kku_3.js} +1 -1
- package/dist/assets/core-legacy-BVoFM47F.js +1857 -0
- package/dist/assets/core-legacy-De470jmW.js +20 -0
- package/dist/assets/{dataTable.store-u9fGWest.js → dataTable.store-DIXUyEMT.js} +2 -2
- package/dist/assets/dataTable.store-legacy-CmwyMqOI.js +199 -0
- package/dist/assets/{date-picker-CVSd-BRt.js → date-picker-CTXxgDjF.js} +3 -3
- package/dist/assets/date-picker-legacy-igcU0G4D.js +4508 -0
- package/dist/assets/{dateFormatter-BD73Za8B.js → dateFormatter-DICwd3T9.js} +1 -1
- package/dist/assets/dateFormatter-legacy-DQcBot5g.js +53 -0
- package/dist/assets/dateformat-legacy-Xt1X-tys.js +161 -0
- package/dist/assets/{dialog-BMoy5MDa.js → dialog-B4B-qXLz.js} +4 -4
- package/dist/assets/dialog-legacy-CqQ_Lwls.js +518 -0
- package/dist/assets/{dist-CWw8iddm.js → dist-D33xoYUY.js} +1 -1
- package/dist/assets/dist-legacy-8f5owWm6.js +204 -0
- package/dist/assets/{empty-BuGRxzl4.js → empty-RTEMfF4N.js} +1 -1
- package/dist/assets/empty-legacy-DnVUoqbC.js +2409 -0
- package/dist/assets/en-legacy-Bgme8Vbm.js +98 -0
- package/dist/assets/en-legacy-BwVJMmMW.js +16 -0
- package/dist/assets/{es-BazDU8Wd.js → es-Cjns9o4Y.js} +1 -1
- package/dist/assets/es-legacy-8dRs2C3P.js +16006 -0
- package/dist/assets/{evaluation.constants-CIiAC2dT.js → evaluation.constants-CCdKPNue.js} +3 -3
- package/dist/assets/evaluation.constants-legacy-Cb1ghpxc.js +363 -0
- package/dist/assets/{executions.store-IU9p1s46.js → executions.store-CLBytlL8.js} +1 -1
- package/dist/assets/executions.store-legacy-b_Dcfsqp.js +246 -0
- package/dist/assets/exports-legacy-RTRnyI4R.js +3103 -0
- package/dist/assets/{externalSecrets.ee.store-1z63wMHN.js → externalSecrets.ee.store-DSLmsq-8.js} +2 -2
- package/dist/assets/externalSecrets.ee.store-legacy-DaQgDltD.js +145 -0
- package/dist/assets/{focusPanel.store-BJpwjMIG.js → focusPanel.store-DX5ouusK.js} +4 -4
- package/dist/assets/focusPanel.store-legacy-DwBTeIg0.js +264 -0
- package/dist/assets/{folders.store-Db975T-w.js → folders.store-ReN2UdkF.js} +2 -2
- package/dist/assets/folders.store-legacy-DpbE1pFn.js +267 -0
- package/dist/assets/{icon-DhADuA9N.js → icon-OKik-N-d.js} +1 -1
- package/dist/assets/icon-legacy-CdX_ytdJ.js +458 -0
- package/dist/assets/{index-C8erHZ_Y.css → index-4I6DPmNr.css} +1 -1
- package/dist/assets/{index-C25i7qsE.js → index-BN-GABJS.js} +184 -1622
- package/dist/assets/index-legacy-Bah3XJ83.js +28424 -0
- package/dist/assets/insights.constants-legacy-D5Y8YhR_.js +64 -0
- package/dist/assets/{insights.store-DC_enAA-.js → insights.store-Bb-LzcON.js} +4 -4
- package/dist/assets/insights.store-legacy-CVTSLRio.js +89 -0
- package/dist/assets/{insights.utils-ClJRVRAK.js → insights.utils-CxISkct3.js} +8 -8
- package/dist/assets/insights.utils-legacy-Cmg92kBM.js +96 -0
- package/dist/assets/isEmpty-legacy-MFqoebb1.js +43393 -0
- package/dist/assets/{isEmpty-DrZRN4lR.js → isEmpty-wmU6JYi-.js} +30 -31
- package/dist/assets/{languageModules-CNluY7w0.js → languageModules-BF7Ga1Pj.js} +1 -1
- package/dist/assets/languageModules-legacy-BaU1eOK3.js +7184 -0
- package/dist/assets/{logStreaming.store-CPvxjcQB.js → logStreaming.store-Fc_T_-nj.js} +1 -1
- package/dist/assets/logStreaming.store-legacy-DWvVitNv.js +209 -0
- package/dist/assets/mcp.constants-BCNosk1p.js +5 -0
- package/dist/assets/mcp.constants-legacy-CZfk8DW2.js +18 -0
- package/dist/assets/{mcp.store-YGfe2oZU.js → mcp.store-C8IcP4Ke.js} +23 -3
- package/dist/assets/mcp.store-legacy-DdS8xt5B.js +125 -0
- package/dist/assets/{merge-CKEa8BM2.js → merge-B2-guEpy.js} +1 -1
- package/dist/assets/merge-legacy-qdjRv-L4.js +1529 -0
- package/dist/assets/{nodeCreator.store-DHz0Nc1Y.js → nodeCreator.store-D147rfwl.js} +8 -8
- package/dist/assets/nodeCreator.store-legacy-DTmylsCF.js +4758 -0
- package/dist/assets/{nodeIcon-ry_JIpAT.js → nodeIcon-C5u0jQvj.js} +2 -2
- package/dist/assets/nodeIcon-legacy-BV5Z8WOV.js +122 -0
- package/dist/assets/{nodeTransforms-PeZUYiCs.js → nodeTransforms-DUsdQQqR.js} +2 -2
- package/dist/assets/nodeTransforms-legacy-CuPizwtt.js +86 -0
- package/dist/assets/{npsSurvey.store-BTpA4Bdf.js → npsSurvey.store-afUgQwnO.js} +2 -2
- package/dist/assets/npsSurvey.store-legacy-BbzLkX9z.js +123 -0
- package/dist/assets/{orderBy-CMVxNao4.js → orderBy-HPnqXwF2.js} +2 -2
- package/dist/assets/orderBy-legacy-soMIYLFU.js +63 -0
- package/dist/assets/{overlay-B8MMvNgs.js → overlay-DZyfhUVh.js} +2 -2
- package/dist/assets/overlay-legacy-CIUzKIyX.js +218 -0
- package/dist/assets/{path-browserify-DsmB_HMK.js → path-browserify-CTmc1OxV.js} +1 -1
- package/dist/assets/path-browserify-legacy-DJbEMZcd.js +328 -0
- package/dist/assets/{personalizedTemplatesV3.store-C0D2WZuq.js → personalizedTemplatesV3.store-01UVhq2y.js} +4 -4
- package/dist/assets/personalizedTemplatesV3.store-legacy-ZhQVYOUB.js +313 -0
- package/dist/assets/{pickBy-DWZbVA0W.js → pickBy-CknAbwMC.js} +2 -2
- package/dist/assets/pickBy-legacy-BBHSGJRx.js +59 -0
- package/dist/assets/polyfills-legacy-B4O_IIb-.js +4836 -0
- package/dist/assets/preload-helper-legacy-CXRjoQ0T.js +73 -0
- package/dist/assets/{radio-5XOrKEP7.js → radio-CYQWX3C9.js} +3 -3
- package/dist/assets/radio-legacy-cLdtGPV3.js +323 -0
- package/dist/assets/{readyToRunWorkflows.store-C23cIyhu.js → readyToRunWorkflows.store-B8_GmfI4.js} +5 -5
- package/dist/assets/readyToRunWorkflows.store-legacy-aejFCZX5.js +2086 -0
- package/dist/assets/{readyToRunWorkflowsV2.store-BxZUJyXQ.js → readyToRunWorkflowsV2.store-CuI-qJ95.js} +7 -7
- package/dist/assets/readyToRunWorkflowsV2.store-legacy-B_dd69MT.js +549 -0
- package/dist/assets/retry-legacy-CkXCWkMV.js +48 -0
- package/dist/assets/{roles.store-Bk6Eo7y8.js → roles.store-XKf-4ViI.js} +2 -2
- package/dist/assets/roles.store-legacy-Kp040fXj.js +67 -0
- package/dist/assets/{router-D4zIcC5W.js → router-D93aC8Os.js} +93 -84
- package/dist/assets/router-legacy-FVND-nAr.js +1705 -0
- package/dist/assets/{sanitize-html-BuXr7o4T.js → sanitize-html-Cfxibw1n.js} +2 -2
- package/dist/assets/sanitize-html-legacy-DfOUEbdf.js +9987 -0
- package/dist/assets/{schemaPreview.store-BVhugjbw.js → schemaPreview.store-CpV1sUpD.js} +2 -2
- package/dist/assets/schemaPreview.store-legacy-CVGvdvdr.js +153 -0
- package/dist/assets/{semver-lN9oCZPq.js → semver-Did-vdFS.js} +2 -2
- package/dist/assets/semver-legacy-Bddl7qjT.js +1499 -0
- package/dist/assets/smartDecimal-legacy-BeOdMR2z.js +19 -0
- package/dist/assets/sortByProperty-legacy-CgPLoqtk.js +21 -0
- package/dist/assets/{sourceControl.eventBus-BkPwCZw_.js → sourceControl.eventBus-N8j1xdTf.js} +1 -1
- package/dist/assets/sourceControl.eventBus-legacy-eIVV95jW.js +17 -0
- package/dist/assets/{src-D6S9Khji.js → src-FybnR12q.js} +648 -600
- package/dist/assets/src-legacy-CpFWWEWr.js +64208 -0
- package/dist/assets/{sso.store-qzj82Xj4.js → sso.store-BBQEezoi.js} +1 -1
- package/dist/assets/sso.store-legacy-BAxqS36V.js +185 -0
- package/dist/assets/{table-s-zqHExs.js → table-B__ElSXJ.js} +3 -3
- package/dist/assets/table-legacy-BfKy4v-Q.js +4957 -0
- package/dist/assets/{templateActions-BeIpzgaa.js → templateActions-DgyOHFG1.js} +4 -4
- package/dist/assets/templateActions-legacy-P4q_vvOZ.js +134 -0
- package/dist/assets/{templateTransforms-Cgy40V1P.js → templateTransforms-BcdsUZmX.js} +1 -1
- package/dist/assets/templateTransforms-legacy-Cam0KIvq.js +84 -0
- package/dist/assets/{templates.store-COjIpQaS.js → templates.store-BFnRGJH7.js} +3 -3
- package/dist/assets/templates.store-legacy-ofk_8E3C.js +459 -0
- package/dist/assets/truncate-legacy-B1qmzcuB.js +5763 -0
- package/dist/assets/{truncate-DGRsht-H.js → truncate-mIB0DVrK.js} +1 -1
- package/dist/assets/{uniqBy-BUNHbbw3.js → uniqBy-BruAENgo.js} +1 -1
- package/dist/assets/uniqBy-legacy-Zm0uD9jw.js +52 -0
- package/dist/assets/{usage.store-EBmhHKPv.js → usage.store-l7Do-93n.js} +1 -1
- package/dist/assets/usage.store-legacy-DQDWAXO_.js +126 -0
- package/dist/assets/{useActions-CqdsN2GH.js → useActions-CrswNkaq.js} +5 -5
- package/dist/assets/useActions-legacy-CbWvUxft.js +330 -0
- package/dist/assets/{useAgent-BHJHCfap.js → useAgent-C-QepMEq.js} +1 -1
- package/dist/assets/useAgent-legacy-USOKw7So.js +28 -0
- package/dist/assets/{useBeforeUnload-BPhnlPrH.js → useBeforeUnload-Wtg7mRCZ.js} +3 -3
- package/dist/assets/useBeforeUnload-legacy-uZWtAsqr.js +69 -0
- package/dist/assets/{useBugReporting-oDEHgPM1.js → useBugReporting-9AU3y7Z8.js} +9 -9
- package/dist/assets/useBugReporting-legacy-0ADndwuR.js +383 -0
- package/dist/assets/{useCanvasMapping-DWlYBxgN.js → useCanvasMapping-C7uzjCWC.js} +19 -19
- package/dist/assets/useCanvasMapping-legacy-BUdFWQtI.js +14179 -0
- package/dist/assets/{useCanvasOperations-CFsSFVcO.js → useCanvasOperations-DzLHi0LA.js} +13 -13
- package/dist/assets/useCanvasOperations-legacy-CuiWyxvs.js +1992 -0
- package/dist/assets/{useChatCredentials-CMV_NA0l.js → useChatCredentials-CXFcbFXx.js} +24 -12
- package/dist/assets/useChatCredentials-legacy-BMZumVNM.js +717 -0
- package/dist/assets/useChatHubSidebarState-legacy-BWvNeC2H.js +733 -0
- package/dist/assets/{useChatHubSidebarState-CM9tokIj.js → useChatHubSidebarState-rgjEM3H6.js} +14 -7
- package/dist/assets/{useClipboard-fRnZpGbX.js → useClipboard-CfXsW13v.js} +2 -2
- package/dist/assets/useClipboard-legacy-C5rVUk4S.js +78 -0
- package/dist/assets/{useCommandBar-_c6cO-zw.js → useCommandBar-C1qIX-PQ.js} +29 -25
- package/dist/assets/useCommandBar-legacy-RBZZ3P2i.js +2100 -0
- package/dist/assets/{useDebounce-BgcdaJ78.js → useDebounce-CETVIuiZ.js} +2 -2
- package/dist/assets/useDebounce-legacy-G9H-ixfO.js +326 -0
- package/dist/assets/{useExecutionData-Bk540rxU.js → useExecutionData-BVzhcmq6.js} +1 -1
- package/dist/assets/useExecutionData-legacy-BGiu76RX.js +42 -0
- package/dist/assets/{useExecutionDebugging-BNrxsZTN.js → useExecutionDebugging-Cx7SuR0i.js} +7 -7
- package/dist/assets/useExecutionDebugging-legacy-jpoCoaFv.js +152 -0
- package/dist/assets/{useExecutionHelpers-DrFWi6u7.js → useExecutionHelpers--Vys-PWr.js} +5 -5
- package/dist/assets/useExecutionHelpers-legacy-CE3q6ePz.js +120 -0
- package/dist/assets/useExternalHooks-legacy-CtWM2ToU.js +53 -0
- package/dist/assets/{useExternalHooks-SxBXYVNW.js → useExternalHooks-q8smeo6K.js} +1 -1
- package/dist/assets/{useImportCurlCommand-obipPNWg.js → useImportCurlCommand-BLpnR8N2.js} +11 -11
- package/dist/assets/useImportCurlCommand-legacy-DCbH-i63.js +8269 -0
- package/dist/assets/useIntersectionObserver-legacy-CQWXa295.js +69 -0
- package/dist/assets/{useKeybindings-DlmwtVDN.js → useKeybindings-CDJKqPsl.js} +4 -4
- package/dist/assets/useKeybindings-legacy-B9KbjAsp.js +118 -0
- package/dist/assets/{useLogsTreeExpand-gKLCILZL.js → useLogsTreeExpand-BdGrNW1V.js} +11 -11
- package/dist/assets/useLogsTreeExpand-legacy-DXkemvCE.js +1039 -0
- package/dist/assets/{useMcp-_gyuyL1x.js → useMcp-CZmhzw91.js} +3 -7
- package/dist/assets/useMcp-legacy-DvW-r8YQ.js +46 -0
- package/dist/assets/{useMessage-Ceo97RRX.js → useMessage-Dtn5nLnt.js} +5 -5
- package/dist/assets/useMessage-legacy-DST2kUuY.js +683 -0
- package/dist/assets/{usePageRedirectionHelper-C_ctyI4O.js → usePageRedirectionHelper-50R23u-V.js} +4 -4
- package/dist/assets/usePageRedirectionHelper-legacy-C-71VW-Y.js +95 -0
- package/dist/assets/{usePinnedData-Csij2qN3.js → usePinnedData-DixE-21D.js} +5 -5
- package/dist/assets/usePinnedData-legacy-BsjuUA_c.js +283 -0
- package/dist/assets/{usePushConnection-XZibrqm8.js → usePushConnection-C_hAm9wG.js} +11 -11
- package/dist/assets/usePushConnection-legacy-CXZhl2wR.js +763 -0
- package/dist/assets/{useRecentResources-FhIOba0w.js → useRecentResources-CKX-UtMk.js} +7 -7
- package/dist/assets/useRecentResources-legacy-BXsoflsL.js +159 -0
- package/dist/assets/{useRunWorkflow-_-_hUnHE.js → useRunWorkflow-C9HukKMl.js} +9 -9
- package/dist/assets/useRunWorkflow-legacy-C7-J9SJI.js +1136 -0
- package/dist/assets/{useTelemetry-EOV0Llso.js → useTelemetry-CWnh4Zlh.js} +89 -54
- package/dist/assets/useTelemetry-legacy-BDIroahM.js +31004 -0
- package/dist/assets/{useTelemetryContext-CSMUQPEW.js → useTelemetryContext-PE8JU_Iv.js} +1 -1
- package/dist/assets/useTelemetryContext-legacy-E2rB8GXt.js +81 -0
- package/dist/assets/{useToast-BlMNYwds.js → useToast-BxclFB6W.js} +6 -6
- package/dist/assets/useToast-legacy-B7FuM_6n.js +610 -0
- package/dist/assets/{useWorkflowActivate-OfPMIBJ5.js → useWorkflowActivate-Cmog1_-j.js} +8 -8
- package/dist/assets/useWorkflowActivate-legacy-5SOzZU7C.js +125 -0
- package/dist/assets/{useWorkflowSaving-CWyt929n.js → useWorkflowSaving-DSJgdRoP.js} +9 -9
- package/dist/assets/useWorkflowSaving-legacy-C5sOlXzQ.js +328 -0
- package/dist/assets/{useWorkflowsCache-BSXTJC8C.js → useWorkflowsCache-DKCw8FH2.js} +1 -1
- package/dist/assets/useWorkflowsCache-legacy-1OAIoSYM.js +217 -0
- package/dist/assets/{versions.store-Dx98n6R_.js → versions.store-Dh42EsAx.js} +3 -3
- package/dist/assets/versions.store-legacy-DeA4olF0.js +244 -0
- package/dist/assets/vue-json-pretty-BAtqAAV1.js +1130 -0
- package/dist/assets/vue-json-pretty-legacy-Dk5EQofb.js +1282 -0
- package/dist/assets/vue-legacy-Cj7LJTPA.js +4579 -0
- package/dist/assets/vue.runtime.esm-bundler-legacy-Bq05oSFs.js +8050 -0
- package/dist/assets/xml-legacy-Cyrxa7r6.js +1245 -0
- package/dist/index.html +107 -103
- package/dist/static/openChat.png +0 -0
- package/package.json +1 -1
- package/vite.config.mts +0 -2
- package/dist/assets/CollectionParameter-CizL_Xml.js +0 -58
- package/dist/assets/DemoFooter-D8E8sLCS.js +0 -71
- package/dist/assets/LogsPanel-sLas9qHQ.js +0 -58
- package/dist/assets/RunDataHtml-X9lzUZaX.js +0 -7
- package/dist/assets/RunDataParsedAiContent-DBP5JHe4.js +0 -25
- package/dist/assets/SettingsMCPView-BBO_ZyBU.css +0 -552
- package/dist/assets/SettingsMCPView-Chjl8-hw.js +0 -584
- package/dist/assets/SettingsProvisioningView-BFUB6c2Z.js +0 -252
- package/dist/assets/VirtualSchema-5T21Yyqx.js +0 -43
- package/dist/assets/vue-json-pretty-BltKoWq2.js +0 -681
- /package/dist/assets/{AnimatedSpinner-Dd4F9nQ8.js → AnimatedSpinner-4ie3BOLv.js} +0 -0
- /package/dist/assets/{PageViewLayout-Ccqeja5V.js → PageViewLayout-kj_BBPfv.js} +0 -0
- /package/dist/assets/{buttons.esm-Euf82NbC.js → buttons.esm-CT4flsfB.js} +0 -0
- /package/dist/assets/{chart-BI8B7UPV.js → chart-CE3HWIkr.js} +0 -0
- /package/dist/assets/{constants-CPQyU8WO.js → constants-9ReQTHaF.js} +0 -0
- /package/dist/assets/{core-CIkXL_1D.js → core-CzunNfUb.js} +0 -0
- /package/dist/assets/{insights.constants-NogjFJ3a.js → insights.constants-DK2g3nnD.js} +0 -0
- /package/dist/assets/{smartDecimal-5rgLDM96.js → smartDecimal-e9uPsnJa.js} +0 -0
- /package/dist/assets/{sortByProperty-0UtqPmvJ.js → sortByProperty-CUhVU03p.js} +0 -0
- /package/dist/assets/{useIntersectionObserver-BkAtQAzK.js → useIntersectionObserver-C8Bz3yon.js} +0 -0
- /package/dist/assets/{vue-LyXhKoPx.js → vue-RAk0R0Jn.js} +0 -0
- /package/dist/assets/{xml-F7krcG3E.js → xml-B_gYdkaU.js} +0 -0
|
@@ -0,0 +1,3103 @@
|
|
|
1
|
+
;
|
|
2
|
+
(function () {
|
|
3
|
+
System.register(["./vue.runtime.esm-bundler-legacy-Bq05oSFs.js"], function (_export, _context) {
|
|
4
|
+
"use strict";
|
|
5
|
+
|
|
6
|
+
var init_dist, global, DEBUG_BUILD, GLOBAL_OBJ, SDK_VERSION, CONSOLE_LEVELS, PREFIX, originalConsoleMethods, debug, STACKTRACE_FRAME_LIMIT, UNKNOWN_FUNCTION, WEBPACK_ERROR_REGEXP, STRIP_FRAME_REGEXP, defaultFunctionName, objectToString, WINDOW, DEFAULT_MAX_STRING_LENGTH, ONE_SECOND_IN_MS, _cachedTimestampInSeconds, SCOPE_SPAN_FIELD, DEFAULT_MAX_BREADCRUMBS, Scope, AsyncContextStack, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE, SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT, SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE, SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME, SEMANTIC_ATTRIBUTE_PROFILE_ID, SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME, SPAN_STATUS_UNSET, SPAN_STATUS_OK, SCOPE_ON_START_SPAN_FIELD, ISOLATION_SCOPE_ON_START_SPAN_FIELD, SENTRY_BAGGAGE_KEY_PREFIX_REGEX, TRACE_FLAG_NONE, TRACE_FLAG_SAMPLED, hasShownSpanDropWarning, CHILD_SPANS_FIELD, ROOT_SPAN_FIELD, DEFAULT_ENVIRONMENT, ORG_ID_REGEX, DSN_REGEX, FROZEN_DSC_FIELD, STATE_PENDING, STATE_RESOLVED, STATE_REJECTED, SyncPromise, parsedStackResults, lastKeysCount, cachedFilenameDebugIds, captureContextKeys;
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/carrier.js
|
|
9
|
+
/**
|
|
10
|
+
* An object that contains globally accessible properties and maintains a scope stack.
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Returns the global shim registry.
|
|
15
|
+
*
|
|
16
|
+
* FIXME: This function is problematic, because despite always returning a valid Carrier,
|
|
17
|
+
* it has an optional `__SENTRY__` property, which then in turn requires us to always perform an unnecessary check
|
|
18
|
+
* at the call-site. We always access the carrier through this function, so we can guarantee that `__SENTRY__` is there.
|
|
19
|
+
**/
|
|
20
|
+
function getMainCarrier() {
|
|
21
|
+
getSentryCarrier(GLOBAL_OBJ);
|
|
22
|
+
return GLOBAL_OBJ;
|
|
23
|
+
}
|
|
24
|
+
/** Will either get the existing sentry carrier, or create a new one. */
|
|
25
|
+
function getSentryCarrier(carrier) {
|
|
26
|
+
const __SENTRY__ = carrier.__SENTRY__ = carrier.__SENTRY__ || {};
|
|
27
|
+
__SENTRY__.version = __SENTRY__.version || "9.42.1";
|
|
28
|
+
return __SENTRY__[SDK_VERSION] = __SENTRY__["9.42.1"] || {};
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Returns a global singleton contained in the global `__SENTRY__[]` object.
|
|
32
|
+
*
|
|
33
|
+
* If the singleton doesn't already exist in `__SENTRY__`, it will be created using the given factory
|
|
34
|
+
* function and added to the `__SENTRY__` object.
|
|
35
|
+
*
|
|
36
|
+
* @param name name of the global singleton on __SENTRY__
|
|
37
|
+
* @param creator creator Factory function to create the singleton if it doesn't already exist on `__SENTRY__`
|
|
38
|
+
* @param obj (Optional) The global object on which to look for `__SENTRY__`, if not `GLOBAL_OBJ`'s return value
|
|
39
|
+
* @returns the singleton
|
|
40
|
+
*/
|
|
41
|
+
function getGlobalSingleton(name, creator, obj = GLOBAL_OBJ) {
|
|
42
|
+
const __SENTRY__ = obj.__SENTRY__ = obj.__SENTRY__ || {};
|
|
43
|
+
const carrier = __SENTRY__[SDK_VERSION] = __SENTRY__["9.42.1"] || {};
|
|
44
|
+
return carrier[name] || (carrier[name] = creator());
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/debug-logger.js
|
|
49
|
+
/**
|
|
50
|
+
* A Sentry Logger instance.
|
|
51
|
+
*
|
|
52
|
+
* @deprecated Use {@link debug} instead with the {@link SentryDebugLogger} type.
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Temporarily disable sentry console instrumentations.
|
|
57
|
+
*
|
|
58
|
+
* @param callback The function to run against the original `console` messages
|
|
59
|
+
* @returns The results of the callback
|
|
60
|
+
*/
|
|
61
|
+
function consoleSandbox(callback) {
|
|
62
|
+
if (!("console" in GLOBAL_OBJ)) return callback();
|
|
63
|
+
const console$1 = GLOBAL_OBJ.console;
|
|
64
|
+
const wrappedFuncs = {};
|
|
65
|
+
const wrappedLevels = Object.keys(originalConsoleMethods);
|
|
66
|
+
wrappedLevels.forEach(level => {
|
|
67
|
+
const originalConsoleMethod = originalConsoleMethods[level];
|
|
68
|
+
wrappedFuncs[level] = console$1[level];
|
|
69
|
+
console$1[level] = originalConsoleMethod;
|
|
70
|
+
});
|
|
71
|
+
try {
|
|
72
|
+
return callback();
|
|
73
|
+
} finally {
|
|
74
|
+
wrappedLevels.forEach(level => {
|
|
75
|
+
console$1[level] = wrappedFuncs[level];
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
function enable() {
|
|
80
|
+
_getLoggerSettings().enabled = true;
|
|
81
|
+
}
|
|
82
|
+
function disable() {
|
|
83
|
+
_getLoggerSettings().enabled = false;
|
|
84
|
+
}
|
|
85
|
+
function isEnabled() {
|
|
86
|
+
return _getLoggerSettings().enabled;
|
|
87
|
+
}
|
|
88
|
+
function log(...args) {
|
|
89
|
+
_maybeLog("log", ...args);
|
|
90
|
+
}
|
|
91
|
+
function warn(...args) {
|
|
92
|
+
_maybeLog("warn", ...args);
|
|
93
|
+
}
|
|
94
|
+
function error(...args) {
|
|
95
|
+
_maybeLog("error", ...args);
|
|
96
|
+
}
|
|
97
|
+
function _maybeLog(level, ...args) {
|
|
98
|
+
if (!DEBUG_BUILD) return;
|
|
99
|
+
if (isEnabled()) consoleSandbox(() => {
|
|
100
|
+
GLOBAL_OBJ.console[level](`${PREFIX}[${level}]:`, ...args);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
function _getLoggerSettings() {
|
|
104
|
+
if (!DEBUG_BUILD) return {
|
|
105
|
+
enabled: false
|
|
106
|
+
};
|
|
107
|
+
return getGlobalSingleton("loggerSettings", () => ({
|
|
108
|
+
enabled: false
|
|
109
|
+
}));
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* This is a logger singleton which either logs things or no-ops if logging is not enabled.
|
|
113
|
+
*/
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Creates a stack parser with the supplied line parsers
|
|
117
|
+
*
|
|
118
|
+
* StackFrames are returned in the correct order for Sentry Exception
|
|
119
|
+
* frames and with Sentry SDK internal frames removed from the top and bottom
|
|
120
|
+
*
|
|
121
|
+
*/
|
|
122
|
+
function createStackParser(...parsers) {
|
|
123
|
+
const sortedParsers = parsers.sort((a, b) => a[0] - b[0]).map(p => p[1]);
|
|
124
|
+
return (stack, skipFirstLines = 0, framesToPop = 0) => {
|
|
125
|
+
const frames = [];
|
|
126
|
+
const lines = stack.split("\n");
|
|
127
|
+
for (let i = skipFirstLines; i < lines.length; i++) {
|
|
128
|
+
const line = lines[i];
|
|
129
|
+
if (line.length > 1024) continue;
|
|
130
|
+
const cleanedLine = WEBPACK_ERROR_REGEXP.test(line) ? line.replace(WEBPACK_ERROR_REGEXP, "$1") : line;
|
|
131
|
+
if (cleanedLine.match(/\S*Error: /)) continue;
|
|
132
|
+
for (const parser of sortedParsers) {
|
|
133
|
+
const frame = parser(cleanedLine);
|
|
134
|
+
if (frame) {
|
|
135
|
+
frames.push(frame);
|
|
136
|
+
break;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
if (frames.length >= STACKTRACE_FRAME_LIMIT + framesToPop) break;
|
|
140
|
+
}
|
|
141
|
+
return stripSentryFramesAndReverse(frames.slice(framesToPop));
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Gets a stack parser implementation from Options.stackParser
|
|
146
|
+
* @see Options
|
|
147
|
+
*
|
|
148
|
+
* If options contains an array of line parsers, it is converted into a parser
|
|
149
|
+
*/
|
|
150
|
+
function stackParserFromStackParserOptions(stackParser) {
|
|
151
|
+
if (Array.isArray(stackParser)) return createStackParser(...stackParser);
|
|
152
|
+
return stackParser;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Removes Sentry frames from the top and bottom of the stack if present and enforces a limit of max number of frames.
|
|
156
|
+
* Assumes stack input is ordered from top to bottom and returns the reverse representation so call site of the
|
|
157
|
+
* function that caused the crash is the last frame in the array.
|
|
158
|
+
* @hidden
|
|
159
|
+
*/
|
|
160
|
+
function stripSentryFramesAndReverse(stack) {
|
|
161
|
+
if (!stack.length) return [];
|
|
162
|
+
const localStack = Array.from(stack);
|
|
163
|
+
if (/sentryWrapped/.test(getLastStackFrame(localStack).function || "")) localStack.pop();
|
|
164
|
+
localStack.reverse();
|
|
165
|
+
if (STRIP_FRAME_REGEXP.test(getLastStackFrame(localStack).function || "")) {
|
|
166
|
+
localStack.pop();
|
|
167
|
+
if (STRIP_FRAME_REGEXP.test(getLastStackFrame(localStack).function || "")) localStack.pop();
|
|
168
|
+
}
|
|
169
|
+
return localStack.slice(0, STACKTRACE_FRAME_LIMIT).map(frame => ({
|
|
170
|
+
...frame,
|
|
171
|
+
filename: frame.filename || getLastStackFrame(localStack).filename,
|
|
172
|
+
function: frame.function || "?"
|
|
173
|
+
}));
|
|
174
|
+
}
|
|
175
|
+
function getLastStackFrame(arr) {
|
|
176
|
+
return arr[arr.length - 1] || {};
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Safely extract function name from itself
|
|
180
|
+
*/
|
|
181
|
+
function getFunctionName(fn) {
|
|
182
|
+
try {
|
|
183
|
+
if (!fn || typeof fn !== "function") return defaultFunctionName;
|
|
184
|
+
return fn.name || defaultFunctionName;
|
|
185
|
+
} catch {
|
|
186
|
+
return defaultFunctionName;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Get's stack frames from an event without needing to check for undefined properties.
|
|
191
|
+
*/
|
|
192
|
+
function getFramesFromEvent(event) {
|
|
193
|
+
const exception = event.exception;
|
|
194
|
+
if (exception) {
|
|
195
|
+
const frames = [];
|
|
196
|
+
try {
|
|
197
|
+
exception.values.forEach(value => {
|
|
198
|
+
if (value.stacktrace.frames) frames.push(...value.stacktrace.frames);
|
|
199
|
+
});
|
|
200
|
+
return frames;
|
|
201
|
+
} catch {
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
//#endregion
|
|
208
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/is.js
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Checks whether given value's type is one of a few Error or Error-like
|
|
212
|
+
* {@link isError}.
|
|
213
|
+
*
|
|
214
|
+
* @param wat A value to be checked.
|
|
215
|
+
* @returns A boolean representing the result.
|
|
216
|
+
*/
|
|
217
|
+
function isError(wat) {
|
|
218
|
+
switch (objectToString.call(wat)) {
|
|
219
|
+
case "[object Error]":
|
|
220
|
+
case "[object Exception]":
|
|
221
|
+
case "[object DOMException]":
|
|
222
|
+
case "[object WebAssembly.Exception]":
|
|
223
|
+
return true;
|
|
224
|
+
default:
|
|
225
|
+
return isInstanceOf(wat, Error);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Checks whether given value is an instance of the given built-in class.
|
|
230
|
+
*
|
|
231
|
+
* @param wat The value to be checked
|
|
232
|
+
* @param className
|
|
233
|
+
* @returns A boolean representing the result.
|
|
234
|
+
*/
|
|
235
|
+
function isBuiltin(wat, className) {
|
|
236
|
+
return objectToString.call(wat) === `[object ${className}]`;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Checks whether given value's type is ErrorEvent
|
|
240
|
+
* {@link isErrorEvent}.
|
|
241
|
+
*
|
|
242
|
+
* @param wat A value to be checked.
|
|
243
|
+
* @returns A boolean representing the result.
|
|
244
|
+
*/
|
|
245
|
+
function isErrorEvent(wat) {
|
|
246
|
+
return isBuiltin(wat, "ErrorEvent");
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Checks whether given value's type is DOMError
|
|
250
|
+
* {@link isDOMError}.
|
|
251
|
+
*
|
|
252
|
+
* @param wat A value to be checked.
|
|
253
|
+
* @returns A boolean representing the result.
|
|
254
|
+
*/
|
|
255
|
+
function isDOMError(wat) {
|
|
256
|
+
return isBuiltin(wat, "DOMError");
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Checks whether given value's type is DOMException
|
|
260
|
+
* {@link isDOMException}.
|
|
261
|
+
*
|
|
262
|
+
* @param wat A value to be checked.
|
|
263
|
+
* @returns A boolean representing the result.
|
|
264
|
+
*/
|
|
265
|
+
function isDOMException(wat) {
|
|
266
|
+
return isBuiltin(wat, "DOMException");
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Checks whether given value's type is a string
|
|
270
|
+
* {@link isString}.
|
|
271
|
+
*
|
|
272
|
+
* @param wat A value to be checked.
|
|
273
|
+
* @returns A boolean representing the result.
|
|
274
|
+
*/
|
|
275
|
+
function isString(wat) {
|
|
276
|
+
return isBuiltin(wat, "String");
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Checks whether given string is parameterized
|
|
280
|
+
* {@link isParameterizedString}.
|
|
281
|
+
*
|
|
282
|
+
* @param wat A value to be checked.
|
|
283
|
+
* @returns A boolean representing the result.
|
|
284
|
+
*/
|
|
285
|
+
function isParameterizedString(wat) {
|
|
286
|
+
return typeof wat === "object" && wat !== null && "__sentry_template_string__" in wat && "__sentry_template_values__" in wat;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Checks whether given value is a primitive (undefined, null, number, boolean, string, bigint, symbol)
|
|
290
|
+
* {@link isPrimitive}.
|
|
291
|
+
*
|
|
292
|
+
* @param wat A value to be checked.
|
|
293
|
+
* @returns A boolean representing the result.
|
|
294
|
+
*/
|
|
295
|
+
function isPrimitive(wat) {
|
|
296
|
+
return wat === null || isParameterizedString(wat) || typeof wat !== "object" && typeof wat !== "function";
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Checks whether given value's type is an object literal, or a class instance.
|
|
300
|
+
* {@link isPlainObject}.
|
|
301
|
+
*
|
|
302
|
+
* @param wat A value to be checked.
|
|
303
|
+
* @returns A boolean representing the result.
|
|
304
|
+
*/
|
|
305
|
+
function isPlainObject(wat) {
|
|
306
|
+
return isBuiltin(wat, "Object");
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Checks whether given value's type is an Event instance
|
|
310
|
+
* {@link isEvent}.
|
|
311
|
+
*
|
|
312
|
+
* @param wat A value to be checked.
|
|
313
|
+
* @returns A boolean representing the result.
|
|
314
|
+
*/
|
|
315
|
+
function isEvent(wat) {
|
|
316
|
+
return typeof Event !== "undefined" && isInstanceOf(wat, Event);
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Checks whether given value's type is an Element instance
|
|
320
|
+
* {@link isElement}.
|
|
321
|
+
*
|
|
322
|
+
* @param wat A value to be checked.
|
|
323
|
+
* @returns A boolean representing the result.
|
|
324
|
+
*/
|
|
325
|
+
function isElement(wat) {
|
|
326
|
+
return typeof Element !== "undefined" && isInstanceOf(wat, Element);
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Checks whether given value's type is an regexp
|
|
330
|
+
* {@link isRegExp}.
|
|
331
|
+
*
|
|
332
|
+
* @param wat A value to be checked.
|
|
333
|
+
* @returns A boolean representing the result.
|
|
334
|
+
*/
|
|
335
|
+
function isRegExp(wat) {
|
|
336
|
+
return isBuiltin(wat, "RegExp");
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Checks whether given value has a then function.
|
|
340
|
+
* @param wat A value to be checked.
|
|
341
|
+
*/
|
|
342
|
+
function isThenable(wat) {
|
|
343
|
+
return Boolean(wat?.then && typeof wat.then === "function");
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Checks whether given value's type is a SyntheticEvent
|
|
347
|
+
* {@link isSyntheticEvent}.
|
|
348
|
+
*
|
|
349
|
+
* @param wat A value to be checked.
|
|
350
|
+
* @returns A boolean representing the result.
|
|
351
|
+
*/
|
|
352
|
+
function isSyntheticEvent(wat) {
|
|
353
|
+
return isPlainObject(wat) && "nativeEvent" in wat && "preventDefault" in wat && "stopPropagation" in wat;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Checks whether given value's type is an instance of provided constructor.
|
|
357
|
+
* {@link isInstanceOf}.
|
|
358
|
+
*
|
|
359
|
+
* @param wat A value to be checked.
|
|
360
|
+
* @param base A constructor to be used in a check.
|
|
361
|
+
* @returns A boolean representing the result.
|
|
362
|
+
*/
|
|
363
|
+
function isInstanceOf(wat, base) {
|
|
364
|
+
try {
|
|
365
|
+
return wat instanceof base;
|
|
366
|
+
} catch {
|
|
367
|
+
return false;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Checks whether given value's type is a Vue ViewModel.
|
|
372
|
+
*
|
|
373
|
+
* @param wat A value to be checked.
|
|
374
|
+
* @returns A boolean representing the result.
|
|
375
|
+
*/
|
|
376
|
+
function isVueViewModel(wat) {
|
|
377
|
+
return !!(typeof wat === "object" && wat !== null && (wat.__isVue || wat._isVue));
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Checks whether the given parameter is a Standard Web API Request instance.
|
|
381
|
+
*
|
|
382
|
+
* Returns false if Request is not available in the current runtime.
|
|
383
|
+
*/
|
|
384
|
+
function isRequest(request) {
|
|
385
|
+
return typeof Request !== "undefined" && isInstanceOf(request, Request);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
//#endregion
|
|
389
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/browser.js
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Given a child DOM element, returns a query-selector statement describing that
|
|
393
|
+
* and its ancestors
|
|
394
|
+
* e.g. [HTMLElement] => body > div > input#foo.btn[name=baz]
|
|
395
|
+
* @returns generated DOM path
|
|
396
|
+
*/
|
|
397
|
+
function htmlTreeAsString(elem, options = {}) {
|
|
398
|
+
if (!elem) return "<unknown>";
|
|
399
|
+
try {
|
|
400
|
+
let currentElem = elem;
|
|
401
|
+
const MAX_TRAVERSE_HEIGHT = 5;
|
|
402
|
+
const out = [];
|
|
403
|
+
let height = 0;
|
|
404
|
+
let len = 0;
|
|
405
|
+
const separator = " > ";
|
|
406
|
+
const sepLength = 3;
|
|
407
|
+
let nextStr;
|
|
408
|
+
const keyAttrs = Array.isArray(options) ? options : options.keyAttrs;
|
|
409
|
+
const maxStringLength = !Array.isArray(options) && options.maxStringLength || DEFAULT_MAX_STRING_LENGTH;
|
|
410
|
+
while (currentElem && height++ < MAX_TRAVERSE_HEIGHT) {
|
|
411
|
+
nextStr = _htmlElementAsString(currentElem, keyAttrs);
|
|
412
|
+
if (nextStr === "html" || height > 1 && len + out.length * sepLength + nextStr.length >= maxStringLength) break;
|
|
413
|
+
out.push(nextStr);
|
|
414
|
+
len += nextStr.length;
|
|
415
|
+
currentElem = currentElem.parentNode;
|
|
416
|
+
}
|
|
417
|
+
return out.reverse().join(separator);
|
|
418
|
+
} catch {
|
|
419
|
+
return "<unknown>";
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Returns a simple, query-selector representation of a DOM element
|
|
424
|
+
* e.g. [HTMLElement] => input#foo.btn[name=baz]
|
|
425
|
+
* @returns generated DOM path
|
|
426
|
+
*/
|
|
427
|
+
function _htmlElementAsString(el, keyAttrs) {
|
|
428
|
+
const elem = el;
|
|
429
|
+
const out = [];
|
|
430
|
+
if (!elem?.tagName) return "";
|
|
431
|
+
if (WINDOW.HTMLElement) {
|
|
432
|
+
if (elem instanceof HTMLElement && elem.dataset) {
|
|
433
|
+
if (elem.dataset["sentryComponent"]) return elem.dataset["sentryComponent"];
|
|
434
|
+
if (elem.dataset["sentryElement"]) return elem.dataset["sentryElement"];
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
out.push(elem.tagName.toLowerCase());
|
|
438
|
+
const keyAttrPairs = keyAttrs?.length ? keyAttrs.filter(keyAttr => elem.getAttribute(keyAttr)).map(keyAttr => [keyAttr, elem.getAttribute(keyAttr)]) : null;
|
|
439
|
+
if (keyAttrPairs?.length) keyAttrPairs.forEach(keyAttrPair => {
|
|
440
|
+
out.push(`[${keyAttrPair[0]}="${keyAttrPair[1]}"]`);
|
|
441
|
+
});else {
|
|
442
|
+
if (elem.id) out.push(`#${elem.id}`);
|
|
443
|
+
const className = elem.className;
|
|
444
|
+
if (className && isString(className)) {
|
|
445
|
+
const classes = className.split(/\s+/);
|
|
446
|
+
for (const c of classes) out.push(`.${c}`);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
for (const k of ["aria-label", "type", "name", "title", "alt"]) {
|
|
450
|
+
const attr = elem.getAttribute(k);
|
|
451
|
+
if (attr) out.push(`[${k}="${attr}"]`);
|
|
452
|
+
}
|
|
453
|
+
return out.join("");
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* A safe form of location.href
|
|
457
|
+
*/
|
|
458
|
+
function getLocationHref() {
|
|
459
|
+
try {
|
|
460
|
+
return WINDOW.document.location.href;
|
|
461
|
+
} catch {
|
|
462
|
+
return "";
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* Given a DOM element, traverses up the tree until it finds the first ancestor node
|
|
467
|
+
* that has the `data-sentry-component` or `data-sentry-element` attribute with `data-sentry-component` taking
|
|
468
|
+
* precedence. This attribute is added at build-time by projects that have the component name annotation plugin installed.
|
|
469
|
+
*
|
|
470
|
+
* @returns a string representation of the component for the provided DOM element, or `null` if not found
|
|
471
|
+
*/
|
|
472
|
+
function getComponentName(elem) {
|
|
473
|
+
if (!WINDOW.HTMLElement) return null;
|
|
474
|
+
let currentElem = elem;
|
|
475
|
+
const MAX_TRAVERSE_HEIGHT = 5;
|
|
476
|
+
for (let i = 0; i < MAX_TRAVERSE_HEIGHT; i++) {
|
|
477
|
+
if (!currentElem) return null;
|
|
478
|
+
if (currentElem instanceof HTMLElement) {
|
|
479
|
+
if (currentElem.dataset["sentryComponent"]) return currentElem.dataset["sentryComponent"];
|
|
480
|
+
if (currentElem.dataset["sentryElement"]) return currentElem.dataset["sentryElement"];
|
|
481
|
+
}
|
|
482
|
+
currentElem = currentElem.parentNode;
|
|
483
|
+
}
|
|
484
|
+
return null;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
//#endregion
|
|
488
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/string.js
|
|
489
|
+
/**
|
|
490
|
+
* Truncates given string to the maximum characters count
|
|
491
|
+
*
|
|
492
|
+
* @param str An object that contains serializable values
|
|
493
|
+
* @param max Maximum number of characters in truncated string (0 = unlimited)
|
|
494
|
+
* @returns string Encoded
|
|
495
|
+
*/
|
|
496
|
+
function truncate(str, max = 0) {
|
|
497
|
+
if (typeof str !== "string" || max === 0) return str;
|
|
498
|
+
return str.length <= max ? str : `${str.slice(0, max)}...`;
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* Join values in array
|
|
502
|
+
* @param input array of values to be joined together
|
|
503
|
+
* @param delimiter string to be placed in-between values
|
|
504
|
+
* @returns Joined values
|
|
505
|
+
*/
|
|
506
|
+
function safeJoin(input, delimiter) {
|
|
507
|
+
if (!Array.isArray(input)) return "";
|
|
508
|
+
const output = [];
|
|
509
|
+
for (let i = 0; i < input.length; i++) {
|
|
510
|
+
const value = input[i];
|
|
511
|
+
try {
|
|
512
|
+
if (isVueViewModel(value)) output.push("[VueViewModel]");else output.push(String(value));
|
|
513
|
+
} catch {
|
|
514
|
+
output.push("[value cannot be serialized]");
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
return output.join(delimiter);
|
|
518
|
+
}
|
|
519
|
+
/**
|
|
520
|
+
* Checks if the given value matches a regex or string
|
|
521
|
+
*
|
|
522
|
+
* @param value The string to test
|
|
523
|
+
* @param pattern Either a regex or a string against which `value` will be matched
|
|
524
|
+
* @param requireExactStringMatch If true, `value` must match `pattern` exactly. If false, `value` will match
|
|
525
|
+
* `pattern` if it contains `pattern`. Only applies to string-type patterns.
|
|
526
|
+
*/
|
|
527
|
+
function isMatchingPattern(value, pattern, requireExactStringMatch = false) {
|
|
528
|
+
if (!isString(value)) return false;
|
|
529
|
+
if (isRegExp(pattern)) return pattern.test(value);
|
|
530
|
+
if (isString(pattern)) return requireExactStringMatch ? value === pattern : value.includes(pattern);
|
|
531
|
+
return false;
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* Test the given string against an array of strings and regexes. By default, string matching is done on a
|
|
535
|
+
* substring-inclusion basis rather than a strict equality basis
|
|
536
|
+
*
|
|
537
|
+
* @param testString The string to test
|
|
538
|
+
* @param patterns The patterns against which to test the string
|
|
539
|
+
* @param requireExactStringMatch If true, `testString` must match one of the given string patterns exactly in order to
|
|
540
|
+
* count. If false, `testString` will match a string pattern if it contains that pattern.
|
|
541
|
+
* @returns
|
|
542
|
+
*/
|
|
543
|
+
function stringMatchesSomePattern(testString, patterns = [], requireExactStringMatch = false) {
|
|
544
|
+
return patterns.some(pattern => isMatchingPattern(testString, pattern, requireExactStringMatch));
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
//#endregion
|
|
548
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/object.js
|
|
549
|
+
/**
|
|
550
|
+
* Replace a method in an object with a wrapped version of itself.
|
|
551
|
+
*
|
|
552
|
+
* If the method on the passed object is not a function, the wrapper will not be applied.
|
|
553
|
+
*
|
|
554
|
+
* @param source An object that contains a method to be wrapped.
|
|
555
|
+
* @param name The name of the method to be wrapped.
|
|
556
|
+
* @param replacementFactory A higher-order function that takes the original version of the given method and returns a
|
|
557
|
+
* wrapped version. Note: The function returned by `replacementFactory` needs to be a non-arrow function, in order to
|
|
558
|
+
* preserve the correct value of `this`, and the original method must be called using `origMethod.call(this, <other
|
|
559
|
+
* args>)` or `origMethod.apply(this, [<other args>])` (rather than being called directly), again to preserve `this`.
|
|
560
|
+
* @returns void
|
|
561
|
+
*/
|
|
562
|
+
function fill(source, name, replacementFactory) {
|
|
563
|
+
if (!(name in source)) return;
|
|
564
|
+
const original = source[name];
|
|
565
|
+
if (typeof original !== "function") return;
|
|
566
|
+
const wrapped = replacementFactory(original);
|
|
567
|
+
if (typeof wrapped === "function") markFunctionWrapped(wrapped, original);
|
|
568
|
+
try {
|
|
569
|
+
source[name] = wrapped;
|
|
570
|
+
} catch {
|
|
571
|
+
DEBUG_BUILD && debug.log(`Failed to replace method "${name}" in object`, source);
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
/**
|
|
575
|
+
* Defines a non-enumerable property on the given object.
|
|
576
|
+
*
|
|
577
|
+
* @param obj The object on which to set the property
|
|
578
|
+
* @param name The name of the property to be set
|
|
579
|
+
* @param value The value to which to set the property
|
|
580
|
+
*/
|
|
581
|
+
function addNonEnumerableProperty(obj, name, value) {
|
|
582
|
+
try {
|
|
583
|
+
Object.defineProperty(obj, name, {
|
|
584
|
+
value,
|
|
585
|
+
writable: true,
|
|
586
|
+
configurable: true
|
|
587
|
+
});
|
|
588
|
+
} catch {
|
|
589
|
+
DEBUG_BUILD && debug.log(`Failed to add non-enumerable property "${name}" to object`, obj);
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* Remembers the original function on the wrapped function and
|
|
594
|
+
* patches up the prototype.
|
|
595
|
+
*
|
|
596
|
+
* @param wrapped the wrapper function
|
|
597
|
+
* @param original the original function that gets wrapped
|
|
598
|
+
*/
|
|
599
|
+
function markFunctionWrapped(wrapped, original) {
|
|
600
|
+
try {
|
|
601
|
+
wrapped.prototype = original.prototype = original.prototype || {};
|
|
602
|
+
addNonEnumerableProperty(wrapped, "__sentry_original__", original);
|
|
603
|
+
} catch {}
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
* This extracts the original function if available. See
|
|
607
|
+
* `markFunctionWrapped` for more information.
|
|
608
|
+
*
|
|
609
|
+
* @param func the function to unwrap
|
|
610
|
+
* @returns the unwrapped version of the function if available.
|
|
611
|
+
*/
|
|
612
|
+
function getOriginalFunction(func) {
|
|
613
|
+
return func.__sentry_original__;
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* Transforms any `Error` or `Event` into a plain object with all of their enumerable properties, and some of their
|
|
617
|
+
* non-enumerable properties attached.
|
|
618
|
+
*
|
|
619
|
+
* @param value Initial source that we have to transform in order for it to be usable by the serializer
|
|
620
|
+
* @returns An Event or Error turned into an object - or the value argument itself, when value is neither an Event nor
|
|
621
|
+
* an Error.
|
|
622
|
+
*/
|
|
623
|
+
function convertToPlainObject(value) {
|
|
624
|
+
if (isError(value)) return {
|
|
625
|
+
message: value.message,
|
|
626
|
+
name: value.name,
|
|
627
|
+
stack: value.stack,
|
|
628
|
+
...getOwnProperties(value)
|
|
629
|
+
};else if (isEvent(value)) {
|
|
630
|
+
const newObj = {
|
|
631
|
+
type: value.type,
|
|
632
|
+
target: serializeEventTarget(value.target),
|
|
633
|
+
currentTarget: serializeEventTarget(value.currentTarget),
|
|
634
|
+
...getOwnProperties(value)
|
|
635
|
+
};
|
|
636
|
+
if (typeof CustomEvent !== "undefined" && isInstanceOf(value, CustomEvent)) newObj.detail = value.detail;
|
|
637
|
+
return newObj;
|
|
638
|
+
} else return value;
|
|
639
|
+
}
|
|
640
|
+
/** Creates a string representation of the target of an `Event` object */
|
|
641
|
+
function serializeEventTarget(target) {
|
|
642
|
+
try {
|
|
643
|
+
return isElement(target) ? htmlTreeAsString(target) : Object.prototype.toString.call(target);
|
|
644
|
+
} catch {
|
|
645
|
+
return "<unknown>";
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
/** Filters out all but an object's own properties */
|
|
649
|
+
function getOwnProperties(obj) {
|
|
650
|
+
if (typeof obj === "object" && obj !== null) {
|
|
651
|
+
const extractedProps = {};
|
|
652
|
+
for (const property in obj) if (Object.prototype.hasOwnProperty.call(obj, property)) extractedProps[property] = obj[property];
|
|
653
|
+
return extractedProps;
|
|
654
|
+
} else return {};
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* Given any captured exception, extract its keys and create a sorted
|
|
658
|
+
* and truncated list that will be used inside the event message.
|
|
659
|
+
* eg. `Non-error exception captured with keys: foo, bar, baz`
|
|
660
|
+
*/
|
|
661
|
+
function extractExceptionKeysForMessage(exception, maxLength = 40) {
|
|
662
|
+
const keys = Object.keys(convertToPlainObject(exception));
|
|
663
|
+
keys.sort();
|
|
664
|
+
const firstKey = keys[0];
|
|
665
|
+
if (!firstKey) return "[object has no keys]";
|
|
666
|
+
if (firstKey.length >= maxLength) return truncate(firstKey, maxLength);
|
|
667
|
+
for (let includedKeys = keys.length; includedKeys > 0; includedKeys--) {
|
|
668
|
+
const serialized = keys.slice(0, includedKeys).join(", ");
|
|
669
|
+
if (serialized.length > maxLength) continue;
|
|
670
|
+
if (includedKeys === keys.length) return serialized;
|
|
671
|
+
return truncate(serialized, maxLength);
|
|
672
|
+
}
|
|
673
|
+
return "";
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
//#endregion
|
|
677
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/misc.js
|
|
678
|
+
function getCrypto() {
|
|
679
|
+
const gbl = GLOBAL_OBJ;
|
|
680
|
+
return gbl.crypto || gbl.msCrypto;
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* UUID4 generator
|
|
684
|
+
* @param crypto Object that provides the crypto API.
|
|
685
|
+
* @returns string Generated UUID4.
|
|
686
|
+
*/
|
|
687
|
+
function uuid4(crypto = getCrypto()) {
|
|
688
|
+
let getRandomByte = () => Math.random() * 16;
|
|
689
|
+
try {
|
|
690
|
+
if (crypto?.randomUUID) return crypto.randomUUID().replace(/-/g, "");
|
|
691
|
+
if (crypto?.getRandomValues) getRandomByte = () => {
|
|
692
|
+
const typedArray = new Uint8Array(1);
|
|
693
|
+
crypto.getRandomValues(typedArray);
|
|
694
|
+
return typedArray[0];
|
|
695
|
+
};
|
|
696
|
+
} catch {}
|
|
697
|
+
return "10000000100040008000100000000000".replace(/[018]/g, c => (c ^ (getRandomByte() & 15) >> c / 4).toString(16));
|
|
698
|
+
}
|
|
699
|
+
function getFirstException(event) {
|
|
700
|
+
return event.exception?.values?.[0];
|
|
701
|
+
}
|
|
702
|
+
/**
|
|
703
|
+
* Extracts either message or type+value from an event that can be used for user-facing logs
|
|
704
|
+
* @returns event's description
|
|
705
|
+
*/
|
|
706
|
+
function getEventDescription(event) {
|
|
707
|
+
const {
|
|
708
|
+
message,
|
|
709
|
+
event_id: eventId
|
|
710
|
+
} = event;
|
|
711
|
+
if (message) return message;
|
|
712
|
+
const firstException = getFirstException(event);
|
|
713
|
+
if (firstException) {
|
|
714
|
+
if (firstException.type && firstException.value) return `${firstException.type}: ${firstException.value}`;
|
|
715
|
+
return firstException.type || firstException.value || eventId || "<unknown>";
|
|
716
|
+
}
|
|
717
|
+
return eventId || "<unknown>";
|
|
718
|
+
}
|
|
719
|
+
/**
|
|
720
|
+
* Adds exception values, type and value to an synthetic Exception.
|
|
721
|
+
* @param event The event to modify.
|
|
722
|
+
* @param value Value of the exception.
|
|
723
|
+
* @param type Type of the exception.
|
|
724
|
+
* @hidden
|
|
725
|
+
*/
|
|
726
|
+
function addExceptionTypeValue(event, value, type) {
|
|
727
|
+
const exception = event.exception = event.exception || {};
|
|
728
|
+
const values = exception.values = exception.values || [];
|
|
729
|
+
const firstException = values[0] = values[0] || {};
|
|
730
|
+
if (!firstException.value) firstException.value = value || "";
|
|
731
|
+
if (!firstException.type) firstException.type = type || "Error";
|
|
732
|
+
}
|
|
733
|
+
/**
|
|
734
|
+
* Adds exception mechanism data to a given event. Uses defaults if the second parameter is not passed.
|
|
735
|
+
*
|
|
736
|
+
* @param event The event to modify.
|
|
737
|
+
* @param newMechanism Mechanism data to add to the event.
|
|
738
|
+
* @hidden
|
|
739
|
+
*/
|
|
740
|
+
function addExceptionMechanism(event, newMechanism) {
|
|
741
|
+
const firstException = getFirstException(event);
|
|
742
|
+
if (!firstException) return;
|
|
743
|
+
const defaultMechanism = {
|
|
744
|
+
type: "generic",
|
|
745
|
+
handled: true
|
|
746
|
+
};
|
|
747
|
+
const currentMechanism = firstException.mechanism;
|
|
748
|
+
firstException.mechanism = {
|
|
749
|
+
...defaultMechanism,
|
|
750
|
+
...currentMechanism,
|
|
751
|
+
...newMechanism
|
|
752
|
+
};
|
|
753
|
+
if (newMechanism && "data" in newMechanism) {
|
|
754
|
+
const mergedData = {
|
|
755
|
+
...currentMechanism?.data,
|
|
756
|
+
...newMechanism.data
|
|
757
|
+
};
|
|
758
|
+
firstException.mechanism.data = mergedData;
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* Checks whether or not we've already captured the given exception (note: not an identical exception - the very object
|
|
763
|
+
* in question), and marks it captured if not.
|
|
764
|
+
*
|
|
765
|
+
* This is useful because it's possible for an error to get captured by more than one mechanism. After we intercept and
|
|
766
|
+
* record an error, we rethrow it (assuming we've intercepted it before it's reached the top-level global handlers), so
|
|
767
|
+
* that we don't interfere with whatever effects the error might have had were the SDK not there. At that point, because
|
|
768
|
+
* the error has been rethrown, it's possible for it to bubble up to some other code we've instrumented. If it's not
|
|
769
|
+
* caught after that, it will bubble all the way up to the global handlers (which of course we also instrument). This
|
|
770
|
+
* function helps us ensure that even if we encounter the same error more than once, we only record it the first time we
|
|
771
|
+
* see it.
|
|
772
|
+
*
|
|
773
|
+
* Note: It will ignore primitives (always return `false` and not mark them as seen), as properties can't be set on
|
|
774
|
+
* them. {@link: Object.objectify} can be used on exceptions to convert any that are primitives into their equivalent
|
|
775
|
+
* object wrapper forms so that this check will always work. However, because we need to flag the exact object which
|
|
776
|
+
* will get rethrown, and because that rethrowing happens outside of the event processing pipeline, the objectification
|
|
777
|
+
* must be done before the exception captured.
|
|
778
|
+
*
|
|
779
|
+
* @param A thrown exception to check or flag as having been seen
|
|
780
|
+
* @returns `true` if the exception has already been captured, `false` if not (with the side effect of marking it seen)
|
|
781
|
+
*/
|
|
782
|
+
function checkOrSetAlreadyCaught(exception) {
|
|
783
|
+
if (isAlreadyCaptured(exception)) return true;
|
|
784
|
+
try {
|
|
785
|
+
addNonEnumerableProperty(exception, "__sentry_captured__", true);
|
|
786
|
+
} catch {}
|
|
787
|
+
return false;
|
|
788
|
+
}
|
|
789
|
+
function isAlreadyCaptured(exception) {
|
|
790
|
+
try {
|
|
791
|
+
return exception.__sentry_captured__;
|
|
792
|
+
} catch {}
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
//#endregion
|
|
796
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/time.js
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* A partial definition of the [Performance Web API]{@link https://developer.mozilla.org/en-US/docs/Web/API/Performance}
|
|
800
|
+
* for accessing a high-resolution monotonic clock.
|
|
801
|
+
*/
|
|
802
|
+
/**
|
|
803
|
+
* Returns a timestamp in seconds since the UNIX epoch using the Date API.
|
|
804
|
+
*/
|
|
805
|
+
function dateTimestampInSeconds() {
|
|
806
|
+
return Date.now() / ONE_SECOND_IN_MS;
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* Returns a wrapper around the native Performance API browser implementation, or undefined for browsers that do not
|
|
810
|
+
* support the API.
|
|
811
|
+
*
|
|
812
|
+
* Wrapping the native API works around differences in behavior from different browsers.
|
|
813
|
+
*/
|
|
814
|
+
function createUnixTimestampInSecondsFunc() {
|
|
815
|
+
const {
|
|
816
|
+
performance
|
|
817
|
+
} = GLOBAL_OBJ;
|
|
818
|
+
if (!performance?.now || !performance.timeOrigin) return dateTimestampInSeconds;
|
|
819
|
+
const timeOrigin = performance.timeOrigin;
|
|
820
|
+
return () => {
|
|
821
|
+
return (timeOrigin + performance.now()) / ONE_SECOND_IN_MS;
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
/**
|
|
825
|
+
* Returns a timestamp in seconds since the UNIX epoch using either the Performance or Date APIs, depending on the
|
|
826
|
+
* availability of the Performance API.
|
|
827
|
+
*
|
|
828
|
+
* BUG: Note that because of how browsers implement the Performance API, the clock might stop when the computer is
|
|
829
|
+
* asleep. This creates a skew between `dateTimestampInSeconds` and `timestampInSeconds`. The
|
|
830
|
+
* skew can grow to arbitrary amounts like days, weeks or months.
|
|
831
|
+
* See https://github.com/getsentry/sentry-javascript/issues/2590.
|
|
832
|
+
*/
|
|
833
|
+
function timestampInSeconds() {
|
|
834
|
+
return (_cachedTimestampInSeconds ?? (_cachedTimestampInSeconds = createUnixTimestampInSecondsFunc()))();
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
//#endregion
|
|
838
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/session.js
|
|
839
|
+
/**
|
|
840
|
+
* Creates a new `Session` object by setting certain default parameters. If optional @param context
|
|
841
|
+
* is passed, the passed properties are applied to the session object.
|
|
842
|
+
*
|
|
843
|
+
* @param context (optional) additional properties to be applied to the returned session object
|
|
844
|
+
*
|
|
845
|
+
* @returns a new `Session` object
|
|
846
|
+
*/
|
|
847
|
+
function makeSession(context) {
|
|
848
|
+
const startingTime = timestampInSeconds();
|
|
849
|
+
const session = {
|
|
850
|
+
sid: uuid4(),
|
|
851
|
+
init: true,
|
|
852
|
+
timestamp: startingTime,
|
|
853
|
+
started: startingTime,
|
|
854
|
+
duration: 0,
|
|
855
|
+
status: "ok",
|
|
856
|
+
errors: 0,
|
|
857
|
+
ignoreDuration: false,
|
|
858
|
+
toJSON: () => sessionToJSON(session)
|
|
859
|
+
};
|
|
860
|
+
if (context) updateSession(session, context);
|
|
861
|
+
return session;
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
* Updates a session object with the properties passed in the context.
|
|
865
|
+
*
|
|
866
|
+
* Note that this function mutates the passed object and returns void.
|
|
867
|
+
* (Had to do this instead of returning a new and updated session because closing and sending a session
|
|
868
|
+
* makes an update to the session after it was passed to the sending logic.
|
|
869
|
+
* @see Client.captureSession )
|
|
870
|
+
*
|
|
871
|
+
* @param session the `Session` to update
|
|
872
|
+
* @param context the `SessionContext` holding the properties that should be updated in @param session
|
|
873
|
+
*/
|
|
874
|
+
function updateSession(session, context = {}) {
|
|
875
|
+
if (context.user) {
|
|
876
|
+
if (!session.ipAddress && context.user.ip_address) session.ipAddress = context.user.ip_address;
|
|
877
|
+
if (!session.did && !context.did) session.did = context.user.id || context.user.email || context.user.username;
|
|
878
|
+
}
|
|
879
|
+
session.timestamp = context.timestamp || timestampInSeconds();
|
|
880
|
+
if (context.abnormal_mechanism) session.abnormal_mechanism = context.abnormal_mechanism;
|
|
881
|
+
if (context.ignoreDuration) session.ignoreDuration = context.ignoreDuration;
|
|
882
|
+
if (context.sid) session.sid = context.sid.length === 32 ? context.sid : uuid4();
|
|
883
|
+
if (context.init !== void 0) session.init = context.init;
|
|
884
|
+
if (!session.did && context.did) session.did = `${context.did}`;
|
|
885
|
+
if (typeof context.started === "number") session.started = context.started;
|
|
886
|
+
if (session.ignoreDuration) session.duration = void 0;else if (typeof context.duration === "number") session.duration = context.duration;else {
|
|
887
|
+
const duration = session.timestamp - session.started;
|
|
888
|
+
session.duration = duration >= 0 ? duration : 0;
|
|
889
|
+
}
|
|
890
|
+
if (context.release) session.release = context.release;
|
|
891
|
+
if (context.environment) session.environment = context.environment;
|
|
892
|
+
if (!session.ipAddress && context.ipAddress) session.ipAddress = context.ipAddress;
|
|
893
|
+
if (!session.userAgent && context.userAgent) session.userAgent = context.userAgent;
|
|
894
|
+
if (typeof context.errors === "number") session.errors = context.errors;
|
|
895
|
+
if (context.status) session.status = context.status;
|
|
896
|
+
}
|
|
897
|
+
/**
|
|
898
|
+
* Closes a session by setting its status and updating the session object with it.
|
|
899
|
+
* Internally calls `updateSession` to update the passed session object.
|
|
900
|
+
*
|
|
901
|
+
* Note that this function mutates the passed session (@see updateSession for explanation).
|
|
902
|
+
*
|
|
903
|
+
* @param session the `Session` object to be closed
|
|
904
|
+
* @param status the `SessionStatus` with which the session was closed. If you don't pass a status,
|
|
905
|
+
* this function will keep the previously set status, unless it was `'ok'` in which case
|
|
906
|
+
* it is changed to `'exited'`.
|
|
907
|
+
*/
|
|
908
|
+
function closeSession(session, status) {
|
|
909
|
+
let context = {};
|
|
910
|
+
if (status) context = {
|
|
911
|
+
status
|
|
912
|
+
};else if (session.status === "ok") context = {
|
|
913
|
+
status: "exited"
|
|
914
|
+
};
|
|
915
|
+
updateSession(session, context);
|
|
916
|
+
}
|
|
917
|
+
/**
|
|
918
|
+
* Serializes a passed session object to a JSON object with a slightly different structure.
|
|
919
|
+
* This is necessary because the Sentry backend requires a slightly different schema of a session
|
|
920
|
+
* than the one the JS SDKs use internally.
|
|
921
|
+
*
|
|
922
|
+
* @param session the session to be converted
|
|
923
|
+
*
|
|
924
|
+
* @returns a JSON object of the passed session
|
|
925
|
+
*/
|
|
926
|
+
function sessionToJSON(session) {
|
|
927
|
+
return {
|
|
928
|
+
sid: `${session.sid}`,
|
|
929
|
+
init: session.init,
|
|
930
|
+
started: (/* @__PURE__ */new Date(session.started * 1e3)).toISOString(),
|
|
931
|
+
timestamp: (/* @__PURE__ */new Date(session.timestamp * 1e3)).toISOString(),
|
|
932
|
+
status: session.status,
|
|
933
|
+
errors: session.errors,
|
|
934
|
+
did: typeof session.did === "number" || typeof session.did === "string" ? `${session.did}` : void 0,
|
|
935
|
+
duration: session.duration,
|
|
936
|
+
abnormal_mechanism: session.abnormal_mechanism,
|
|
937
|
+
attrs: {
|
|
938
|
+
release: session.release,
|
|
939
|
+
environment: session.environment,
|
|
940
|
+
ip_address: session.ipAddress,
|
|
941
|
+
user_agent: session.userAgent
|
|
942
|
+
}
|
|
943
|
+
};
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
//#endregion
|
|
947
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/merge.js
|
|
948
|
+
/**
|
|
949
|
+
* Shallow merge two objects.
|
|
950
|
+
* Does not mutate the passed in objects.
|
|
951
|
+
* Undefined/empty values in the merge object will overwrite existing values.
|
|
952
|
+
*
|
|
953
|
+
* By default, this merges 2 levels deep.
|
|
954
|
+
*/
|
|
955
|
+
function merge(initialObj, mergeObj, levels = 2) {
|
|
956
|
+
if (!mergeObj || typeof mergeObj !== "object" || levels <= 0) return mergeObj;
|
|
957
|
+
if (initialObj && Object.keys(mergeObj).length === 0) return initialObj;
|
|
958
|
+
const output = {
|
|
959
|
+
...initialObj
|
|
960
|
+
};
|
|
961
|
+
for (const key in mergeObj) if (Object.prototype.hasOwnProperty.call(mergeObj, key)) output[key] = merge(output[key], mergeObj[key], levels - 1);
|
|
962
|
+
return output;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
//#endregion
|
|
966
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/propagationContext.js
|
|
967
|
+
/**
|
|
968
|
+
* Generate a random, valid trace ID.
|
|
969
|
+
*/
|
|
970
|
+
function generateTraceId() {
|
|
971
|
+
return uuid4();
|
|
972
|
+
}
|
|
973
|
+
/**
|
|
974
|
+
* Generate a random, valid span ID.
|
|
975
|
+
*/
|
|
976
|
+
function generateSpanId() {
|
|
977
|
+
return uuid4().substring(16);
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
//#endregion
|
|
981
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/spanOnScope.js
|
|
982
|
+
|
|
983
|
+
/**
|
|
984
|
+
* Set the active span for a given scope.
|
|
985
|
+
* NOTE: This should NOT be used directly, but is only used internally by the trace methods.
|
|
986
|
+
*/
|
|
987
|
+
function _setSpanForScope(scope, span) {
|
|
988
|
+
if (span) addNonEnumerableProperty(scope, SCOPE_SPAN_FIELD, span);else delete scope[SCOPE_SPAN_FIELD];
|
|
989
|
+
}
|
|
990
|
+
/**
|
|
991
|
+
* Get the active span for a given scope.
|
|
992
|
+
* NOTE: This should NOT be used directly, but is only used internally by the trace methods.
|
|
993
|
+
*/
|
|
994
|
+
function _getSpanForScope(scope) {
|
|
995
|
+
return scope[SCOPE_SPAN_FIELD];
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
//#endregion
|
|
999
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/scope.js
|
|
1000
|
+
/**
|
|
1001
|
+
* Default value for maximum number of breadcrumbs added to an event.
|
|
1002
|
+
*/
|
|
1003
|
+
|
|
1004
|
+
//#endregion
|
|
1005
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/defaultScopes.js
|
|
1006
|
+
/** Get the default current scope. */
|
|
1007
|
+
function getDefaultCurrentScope() {
|
|
1008
|
+
return getGlobalSingleton("defaultCurrentScope", () => new Scope());
|
|
1009
|
+
}
|
|
1010
|
+
/** Get the default isolation scope. */
|
|
1011
|
+
function getDefaultIsolationScope() {
|
|
1012
|
+
return getGlobalSingleton("defaultIsolationScope", () => new Scope());
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
//#endregion
|
|
1016
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/asyncContext/stackStrategy.js
|
|
1017
|
+
/**
|
|
1018
|
+
* This is an object that holds a stack of scopes.
|
|
1019
|
+
*/
|
|
1020
|
+
|
|
1021
|
+
/**
|
|
1022
|
+
* Get the global async context stack.
|
|
1023
|
+
* This will be removed during the v8 cycle and is only here to make migration easier.
|
|
1024
|
+
*/
|
|
1025
|
+
function getAsyncContextStack() {
|
|
1026
|
+
const sentry = getSentryCarrier(getMainCarrier());
|
|
1027
|
+
return sentry.stack = sentry.stack || new AsyncContextStack(getDefaultCurrentScope(), getDefaultIsolationScope());
|
|
1028
|
+
}
|
|
1029
|
+
function withScope$1(callback) {
|
|
1030
|
+
return getAsyncContextStack().withScope(callback);
|
|
1031
|
+
}
|
|
1032
|
+
function withSetScope(scope, callback) {
|
|
1033
|
+
const stack = getAsyncContextStack();
|
|
1034
|
+
return stack.withScope(() => {
|
|
1035
|
+
stack.getStackTop().scope = scope;
|
|
1036
|
+
return callback(scope);
|
|
1037
|
+
});
|
|
1038
|
+
}
|
|
1039
|
+
function withIsolationScope$1(callback) {
|
|
1040
|
+
return getAsyncContextStack().withScope(() => {
|
|
1041
|
+
return callback(getAsyncContextStack().getIsolationScope());
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
/**
|
|
1045
|
+
* Get the stack-based async context strategy.
|
|
1046
|
+
*/
|
|
1047
|
+
function getStackAsyncContextStrategy() {
|
|
1048
|
+
return {
|
|
1049
|
+
withIsolationScope: withIsolationScope$1,
|
|
1050
|
+
withScope: withScope$1,
|
|
1051
|
+
withSetScope,
|
|
1052
|
+
withSetIsolationScope: (_isolationScope, callback) => {
|
|
1053
|
+
return withIsolationScope$1(callback);
|
|
1054
|
+
},
|
|
1055
|
+
getCurrentScope: () => getAsyncContextStack().getScope(),
|
|
1056
|
+
getIsolationScope: () => getAsyncContextStack().getIsolationScope()
|
|
1057
|
+
};
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
//#endregion
|
|
1061
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/asyncContext/index.js
|
|
1062
|
+
/**
|
|
1063
|
+
* Get the current async context strategy.
|
|
1064
|
+
* If none has been setup, the default will be used.
|
|
1065
|
+
*/
|
|
1066
|
+
function getAsyncContextStrategy(carrier) {
|
|
1067
|
+
const sentry = getSentryCarrier(carrier);
|
|
1068
|
+
if (sentry.acs) return sentry.acs;
|
|
1069
|
+
return getStackAsyncContextStrategy();
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
//#endregion
|
|
1073
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/currentScopes.js
|
|
1074
|
+
/**
|
|
1075
|
+
* Get the currently active scope.
|
|
1076
|
+
*/
|
|
1077
|
+
function getCurrentScope() {
|
|
1078
|
+
return getAsyncContextStrategy(getMainCarrier()).getCurrentScope();
|
|
1079
|
+
}
|
|
1080
|
+
/**
|
|
1081
|
+
* Get the currently active isolation scope.
|
|
1082
|
+
* The isolation scope is active for the current execution context.
|
|
1083
|
+
*/
|
|
1084
|
+
function getIsolationScope() {
|
|
1085
|
+
return getAsyncContextStrategy(getMainCarrier()).getIsolationScope();
|
|
1086
|
+
}
|
|
1087
|
+
/**
|
|
1088
|
+
* Get the global scope.
|
|
1089
|
+
* This scope is applied to _all_ events.
|
|
1090
|
+
*/
|
|
1091
|
+
function getGlobalScope() {
|
|
1092
|
+
return getGlobalSingleton("globalScope", () => new Scope());
|
|
1093
|
+
}
|
|
1094
|
+
/**
|
|
1095
|
+
* Creates a new scope with and executes the given operation within.
|
|
1096
|
+
* The scope is automatically removed once the operation
|
|
1097
|
+
* finishes or throws.
|
|
1098
|
+
*/
|
|
1099
|
+
/**
|
|
1100
|
+
* Either creates a new active scope, or sets the given scope as active scope in the given callback.
|
|
1101
|
+
*/
|
|
1102
|
+
function withScope(...rest) {
|
|
1103
|
+
const acs = getAsyncContextStrategy(getMainCarrier());
|
|
1104
|
+
if (rest.length === 2) {
|
|
1105
|
+
const [scope, callback] = rest;
|
|
1106
|
+
if (!scope) return acs.withScope(callback);
|
|
1107
|
+
return acs.withSetScope(scope, callback);
|
|
1108
|
+
}
|
|
1109
|
+
return acs.withScope(rest[0]);
|
|
1110
|
+
}
|
|
1111
|
+
/**
|
|
1112
|
+
* Get the currently active client.
|
|
1113
|
+
*/
|
|
1114
|
+
function getClient() {
|
|
1115
|
+
return getCurrentScope().getClient();
|
|
1116
|
+
}
|
|
1117
|
+
/**
|
|
1118
|
+
* Get a trace context for the given scope.
|
|
1119
|
+
*/
|
|
1120
|
+
function getTraceContextFromScope(scope) {
|
|
1121
|
+
const {
|
|
1122
|
+
traceId,
|
|
1123
|
+
parentSpanId,
|
|
1124
|
+
propagationSpanId
|
|
1125
|
+
} = scope.getPropagationContext();
|
|
1126
|
+
const traceContext = {
|
|
1127
|
+
trace_id: traceId,
|
|
1128
|
+
span_id: propagationSpanId || generateSpanId()
|
|
1129
|
+
};
|
|
1130
|
+
if (parentSpanId) traceContext.parent_span_id = parentSpanId;
|
|
1131
|
+
return traceContext;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
//#endregion
|
|
1135
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/semanticAttributes.js
|
|
1136
|
+
/**
|
|
1137
|
+
* Use this attribute to represent the source of a span.
|
|
1138
|
+
* Should be one of: custom, url, route, view, component, task, unknown
|
|
1139
|
+
*
|
|
1140
|
+
*/
|
|
1141
|
+
|
|
1142
|
+
/** Store the scope & isolation scope for a span, which can the be used when it is finished. */
|
|
1143
|
+
function setCapturedScopesOnSpan(span, scope, isolationScope) {
|
|
1144
|
+
if (span) {
|
|
1145
|
+
addNonEnumerableProperty(span, ISOLATION_SCOPE_ON_START_SPAN_FIELD, isolationScope);
|
|
1146
|
+
addNonEnumerableProperty(span, SCOPE_ON_START_SPAN_FIELD, scope);
|
|
1147
|
+
}
|
|
1148
|
+
}
|
|
1149
|
+
/**
|
|
1150
|
+
* Grabs the scope and isolation scope off a span that were active when the span was started.
|
|
1151
|
+
*/
|
|
1152
|
+
function getCapturedScopesOnSpan(span) {
|
|
1153
|
+
return {
|
|
1154
|
+
scope: span[SCOPE_ON_START_SPAN_FIELD],
|
|
1155
|
+
isolationScope: span[ISOLATION_SCOPE_ON_START_SPAN_FIELD]
|
|
1156
|
+
};
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
//#endregion
|
|
1160
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/baggage.js
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* Takes a baggage header and turns it into Dynamic Sampling Context, by extracting all the "sentry-" prefixed values
|
|
1164
|
+
* from it.
|
|
1165
|
+
*
|
|
1166
|
+
* @param baggageHeader A very bread definition of a baggage header as it might appear in various frameworks.
|
|
1167
|
+
* @returns The Dynamic Sampling Context that was found on `baggageHeader`, if there was any, `undefined` otherwise.
|
|
1168
|
+
*/
|
|
1169
|
+
function baggageHeaderToDynamicSamplingContext(baggageHeader) {
|
|
1170
|
+
const baggageObject = parseBaggageHeader(baggageHeader);
|
|
1171
|
+
if (!baggageObject) return;
|
|
1172
|
+
const dynamicSamplingContext = Object.entries(baggageObject).reduce((acc, [key, value]) => {
|
|
1173
|
+
if (key.match(SENTRY_BAGGAGE_KEY_PREFIX_REGEX)) {
|
|
1174
|
+
const nonPrefixedKey = key.slice(7);
|
|
1175
|
+
acc[nonPrefixedKey] = value;
|
|
1176
|
+
}
|
|
1177
|
+
return acc;
|
|
1178
|
+
}, {});
|
|
1179
|
+
if (Object.keys(dynamicSamplingContext).length > 0) return dynamicSamplingContext;else return;
|
|
1180
|
+
}
|
|
1181
|
+
/**
|
|
1182
|
+
* Take a baggage header and parse it into an object.
|
|
1183
|
+
*/
|
|
1184
|
+
function parseBaggageHeader(baggageHeader) {
|
|
1185
|
+
if (!baggageHeader || !isString(baggageHeader) && !Array.isArray(baggageHeader)) return;
|
|
1186
|
+
if (Array.isArray(baggageHeader)) return baggageHeader.reduce((acc, curr) => {
|
|
1187
|
+
const currBaggageObject = baggageHeaderToObject(curr);
|
|
1188
|
+
Object.entries(currBaggageObject).forEach(([key, value]) => {
|
|
1189
|
+
acc[key] = value;
|
|
1190
|
+
});
|
|
1191
|
+
return acc;
|
|
1192
|
+
}, {});
|
|
1193
|
+
return baggageHeaderToObject(baggageHeader);
|
|
1194
|
+
}
|
|
1195
|
+
/**
|
|
1196
|
+
* Will parse a baggage header, which is a simple key-value map, into a flat object.
|
|
1197
|
+
*
|
|
1198
|
+
* @param baggageHeader The baggage header to parse.
|
|
1199
|
+
* @returns a flat object containing all the key-value pairs from `baggageHeader`.
|
|
1200
|
+
*/
|
|
1201
|
+
function baggageHeaderToObject(baggageHeader) {
|
|
1202
|
+
return baggageHeader.split(",").map(baggageEntry => baggageEntry.split("=").map(keyOrValue => {
|
|
1203
|
+
try {
|
|
1204
|
+
return decodeURIComponent(keyOrValue.trim());
|
|
1205
|
+
} catch {
|
|
1206
|
+
return;
|
|
1207
|
+
}
|
|
1208
|
+
})).reduce((acc, [key, value]) => {
|
|
1209
|
+
if (key && value) acc[key] = value;
|
|
1210
|
+
return acc;
|
|
1211
|
+
}, {});
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
//#endregion
|
|
1215
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/spanUtils.js
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* Convert a span to a trace context, which can be sent as the `trace` context in an event.
|
|
1219
|
+
* By default, this will only include trace_id, span_id & parent_span_id.
|
|
1220
|
+
* If `includeAllData` is true, it will also include data, op, status & origin.
|
|
1221
|
+
*/
|
|
1222
|
+
function spanToTransactionTraceContext(span) {
|
|
1223
|
+
const {
|
|
1224
|
+
spanId: span_id,
|
|
1225
|
+
traceId: trace_id
|
|
1226
|
+
} = span.spanContext();
|
|
1227
|
+
const {
|
|
1228
|
+
data,
|
|
1229
|
+
op,
|
|
1230
|
+
parent_span_id,
|
|
1231
|
+
status,
|
|
1232
|
+
origin,
|
|
1233
|
+
links
|
|
1234
|
+
} = spanToJSON(span);
|
|
1235
|
+
return {
|
|
1236
|
+
parent_span_id,
|
|
1237
|
+
span_id,
|
|
1238
|
+
trace_id,
|
|
1239
|
+
data,
|
|
1240
|
+
op,
|
|
1241
|
+
status,
|
|
1242
|
+
origin,
|
|
1243
|
+
links
|
|
1244
|
+
};
|
|
1245
|
+
}
|
|
1246
|
+
/**
|
|
1247
|
+
* Convert a span to a trace context, which can be sent as the `trace` context in a non-transaction event.
|
|
1248
|
+
*/
|
|
1249
|
+
function spanToTraceContext(span) {
|
|
1250
|
+
const {
|
|
1251
|
+
spanId,
|
|
1252
|
+
traceId: trace_id,
|
|
1253
|
+
isRemote
|
|
1254
|
+
} = span.spanContext();
|
|
1255
|
+
const parent_span_id = isRemote ? spanId : spanToJSON(span).parent_span_id;
|
|
1256
|
+
const scope = getCapturedScopesOnSpan(span).scope;
|
|
1257
|
+
return {
|
|
1258
|
+
parent_span_id,
|
|
1259
|
+
span_id: isRemote ? scope?.getPropagationContext().propagationSpanId || generateSpanId() : spanId,
|
|
1260
|
+
trace_id
|
|
1261
|
+
};
|
|
1262
|
+
}
|
|
1263
|
+
/**
|
|
1264
|
+
* Converts the span links array to a flattened version to be sent within an envelope.
|
|
1265
|
+
*
|
|
1266
|
+
* If the links array is empty, it returns `undefined` so the empty value can be dropped before it's sent.
|
|
1267
|
+
*/
|
|
1268
|
+
function convertSpanLinksForEnvelope(links) {
|
|
1269
|
+
if (links && links.length > 0) return links.map(({
|
|
1270
|
+
context: {
|
|
1271
|
+
spanId,
|
|
1272
|
+
traceId,
|
|
1273
|
+
traceFlags,
|
|
1274
|
+
...restContext
|
|
1275
|
+
},
|
|
1276
|
+
attributes
|
|
1277
|
+
}) => ({
|
|
1278
|
+
span_id: spanId,
|
|
1279
|
+
trace_id: traceId,
|
|
1280
|
+
sampled: traceFlags === 1,
|
|
1281
|
+
attributes,
|
|
1282
|
+
...restContext
|
|
1283
|
+
}));else return;
|
|
1284
|
+
}
|
|
1285
|
+
/**
|
|
1286
|
+
* Convert a span time input into a timestamp in seconds.
|
|
1287
|
+
*/
|
|
1288
|
+
function spanTimeInputToSeconds(input) {
|
|
1289
|
+
if (typeof input === "number") return ensureTimestampInSeconds(input);
|
|
1290
|
+
if (Array.isArray(input)) return input[0] + input[1] / 1e9;
|
|
1291
|
+
if (input instanceof Date) return ensureTimestampInSeconds(input.getTime());
|
|
1292
|
+
return timestampInSeconds();
|
|
1293
|
+
}
|
|
1294
|
+
/**
|
|
1295
|
+
* Converts a timestamp to second, if it was in milliseconds, or keeps it as second.
|
|
1296
|
+
*/
|
|
1297
|
+
function ensureTimestampInSeconds(timestamp) {
|
|
1298
|
+
return timestamp > 9999999999 ? timestamp / 1e3 : timestamp;
|
|
1299
|
+
}
|
|
1300
|
+
/**
|
|
1301
|
+
* Convert a span to a JSON representation.
|
|
1302
|
+
*/
|
|
1303
|
+
function spanToJSON(span) {
|
|
1304
|
+
if (spanIsSentrySpan(span)) return span.getSpanJSON();
|
|
1305
|
+
const {
|
|
1306
|
+
spanId: span_id,
|
|
1307
|
+
traceId: trace_id
|
|
1308
|
+
} = span.spanContext();
|
|
1309
|
+
if (spanIsOpenTelemetrySdkTraceBaseSpan(span)) {
|
|
1310
|
+
const {
|
|
1311
|
+
attributes,
|
|
1312
|
+
startTime,
|
|
1313
|
+
name,
|
|
1314
|
+
endTime,
|
|
1315
|
+
status,
|
|
1316
|
+
links
|
|
1317
|
+
} = span;
|
|
1318
|
+
return {
|
|
1319
|
+
span_id,
|
|
1320
|
+
trace_id,
|
|
1321
|
+
data: attributes,
|
|
1322
|
+
description: name,
|
|
1323
|
+
parent_span_id: "parentSpanId" in span ? span.parentSpanId : "parentSpanContext" in span ? span.parentSpanContext?.spanId : void 0,
|
|
1324
|
+
start_timestamp: spanTimeInputToSeconds(startTime),
|
|
1325
|
+
timestamp: spanTimeInputToSeconds(endTime) || void 0,
|
|
1326
|
+
status: getStatusMessage(status),
|
|
1327
|
+
op: attributes[SEMANTIC_ATTRIBUTE_SENTRY_OP],
|
|
1328
|
+
origin: attributes[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN],
|
|
1329
|
+
links: convertSpanLinksForEnvelope(links)
|
|
1330
|
+
};
|
|
1331
|
+
}
|
|
1332
|
+
return {
|
|
1333
|
+
span_id,
|
|
1334
|
+
trace_id,
|
|
1335
|
+
start_timestamp: 0,
|
|
1336
|
+
data: {}
|
|
1337
|
+
};
|
|
1338
|
+
}
|
|
1339
|
+
function spanIsOpenTelemetrySdkTraceBaseSpan(span) {
|
|
1340
|
+
const castSpan = span;
|
|
1341
|
+
return !!castSpan.attributes && !!castSpan.startTime && !!castSpan.name && !!castSpan.endTime && !!castSpan.status;
|
|
1342
|
+
}
|
|
1343
|
+
/** Exported only for tests. */
|
|
1344
|
+
/**
|
|
1345
|
+
* Sadly, due to circular dependency checks we cannot actually import the Span class here and check for instanceof.
|
|
1346
|
+
* :( So instead we approximate this by checking if it has the `getSpanJSON` method.
|
|
1347
|
+
*/
|
|
1348
|
+
function spanIsSentrySpan(span) {
|
|
1349
|
+
return typeof span.getSpanJSON === "function";
|
|
1350
|
+
}
|
|
1351
|
+
/**
|
|
1352
|
+
* Returns true if a span is sampled.
|
|
1353
|
+
* In most cases, you should just use `span.isRecording()` instead.
|
|
1354
|
+
* However, this has a slightly different semantic, as it also returns false if the span is finished.
|
|
1355
|
+
* So in the case where this distinction is important, use this method.
|
|
1356
|
+
*/
|
|
1357
|
+
function spanIsSampled(span) {
|
|
1358
|
+
const {
|
|
1359
|
+
traceFlags
|
|
1360
|
+
} = span.spanContext();
|
|
1361
|
+
return traceFlags === 1;
|
|
1362
|
+
}
|
|
1363
|
+
/** Get the status message to use for a JSON representation of a span. */
|
|
1364
|
+
function getStatusMessage(status) {
|
|
1365
|
+
if (!status || status.code === 0) return;
|
|
1366
|
+
if (status.code === 1) return "ok";
|
|
1367
|
+
return status.message || "unknown_error";
|
|
1368
|
+
}
|
|
1369
|
+
/**
|
|
1370
|
+
* Adds an opaque child span reference to a span.
|
|
1371
|
+
*/
|
|
1372
|
+
function addChildSpanToSpan(span, childSpan) {
|
|
1373
|
+
addNonEnumerableProperty(childSpan, ROOT_SPAN_FIELD, span[ROOT_SPAN_FIELD] || span);
|
|
1374
|
+
if (span[CHILD_SPANS_FIELD]) span[CHILD_SPANS_FIELD].add(childSpan);else addNonEnumerableProperty(span, CHILD_SPANS_FIELD, new Set([childSpan]));
|
|
1375
|
+
}
|
|
1376
|
+
/**
|
|
1377
|
+
* Returns an array of the given span and all of its descendants.
|
|
1378
|
+
*/
|
|
1379
|
+
function getSpanDescendants(span) {
|
|
1380
|
+
const resultSet = /* @__PURE__ */new Set();
|
|
1381
|
+
function addSpanChildren(span$1) {
|
|
1382
|
+
if (resultSet.has(span$1)) return;else if (spanIsSampled(span$1)) {
|
|
1383
|
+
resultSet.add(span$1);
|
|
1384
|
+
const childSpans = span$1[CHILD_SPANS_FIELD] ? Array.from(span$1[CHILD_SPANS_FIELD]) : [];
|
|
1385
|
+
for (const childSpan of childSpans) addSpanChildren(childSpan);
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
addSpanChildren(span);
|
|
1389
|
+
return Array.from(resultSet);
|
|
1390
|
+
}
|
|
1391
|
+
/**
|
|
1392
|
+
* Returns the root span of a given span.
|
|
1393
|
+
*/
|
|
1394
|
+
function getRootSpan(span) {
|
|
1395
|
+
return span[ROOT_SPAN_FIELD] || span;
|
|
1396
|
+
}
|
|
1397
|
+
/**
|
|
1398
|
+
* Returns the currently active span.
|
|
1399
|
+
*/
|
|
1400
|
+
function getActiveSpan() {
|
|
1401
|
+
const acs = getAsyncContextStrategy(getMainCarrier());
|
|
1402
|
+
if (acs.getActiveSpan) return acs.getActiveSpan();
|
|
1403
|
+
return _getSpanForScope(getCurrentScope());
|
|
1404
|
+
}
|
|
1405
|
+
/**
|
|
1406
|
+
* Logs a warning once if `beforeSendSpan` is used to drop spans.
|
|
1407
|
+
*/
|
|
1408
|
+
function showSpanDropWarning() {
|
|
1409
|
+
if (!hasShownSpanDropWarning) {
|
|
1410
|
+
consoleSandbox(() => {
|
|
1411
|
+
console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly.");
|
|
1412
|
+
});
|
|
1413
|
+
hasShownSpanDropWarning = true;
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
//#endregion
|
|
1418
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/hasSpansEnabled.js
|
|
1419
|
+
/**
|
|
1420
|
+
* Determines if span recording is currently enabled.
|
|
1421
|
+
*
|
|
1422
|
+
* Spans are recorded when at least one of `tracesSampleRate` and `tracesSampler`
|
|
1423
|
+
* is defined in the SDK config. This function does not make any assumption about
|
|
1424
|
+
* sampling decisions, it only checks if the SDK is configured to record spans.
|
|
1425
|
+
*
|
|
1426
|
+
* Important: This function only determines if span recording is enabled. Trace
|
|
1427
|
+
* continuation and propagation is separately controlled and not covered by this function.
|
|
1428
|
+
* If this function returns `false`, traces can still be propagated (which is what
|
|
1429
|
+
* we refer to by "Tracing without Performance")
|
|
1430
|
+
* @see https://develop.sentry.dev/sdk/telemetry/traces/tracing-without-performance/
|
|
1431
|
+
*
|
|
1432
|
+
* @param maybeOptions An SDK options object to be passed to this function.
|
|
1433
|
+
* If this option is not provided, the function will use the current client's options.
|
|
1434
|
+
*/
|
|
1435
|
+
function hasSpansEnabled(maybeOptions) {
|
|
1436
|
+
if (typeof __SENTRY_TRACING__ === "boolean" && !__SENTRY_TRACING__) return false;
|
|
1437
|
+
const options = maybeOptions || getClient()?.getOptions();
|
|
1438
|
+
return !!options && (options.tracesSampleRate != null || !!options.tracesSampler);
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
//#endregion
|
|
1442
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/constants.js
|
|
1443
|
+
|
|
1444
|
+
function isValidProtocol(protocol) {
|
|
1445
|
+
return protocol === "http" || protocol === "https";
|
|
1446
|
+
}
|
|
1447
|
+
/**
|
|
1448
|
+
* Renders the string representation of this Dsn.
|
|
1449
|
+
*
|
|
1450
|
+
* By default, this will render the public representation without the password
|
|
1451
|
+
* component. To get the deprecated private representation, set `withPassword`
|
|
1452
|
+
* to true.
|
|
1453
|
+
*
|
|
1454
|
+
* @param withPassword When set to true, the password will be included.
|
|
1455
|
+
*/
|
|
1456
|
+
function dsnToString(dsn, withPassword = false) {
|
|
1457
|
+
const {
|
|
1458
|
+
host,
|
|
1459
|
+
path,
|
|
1460
|
+
pass,
|
|
1461
|
+
port,
|
|
1462
|
+
projectId,
|
|
1463
|
+
protocol,
|
|
1464
|
+
publicKey
|
|
1465
|
+
} = dsn;
|
|
1466
|
+
return `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ""}@${host}${port ? `:${port}` : ""}/${path ? `${path}/` : path}${projectId}`;
|
|
1467
|
+
}
|
|
1468
|
+
/**
|
|
1469
|
+
* Parses a Dsn from a given string.
|
|
1470
|
+
*
|
|
1471
|
+
* @param str A Dsn as string
|
|
1472
|
+
* @returns Dsn as DsnComponents or undefined if @param str is not a valid DSN string
|
|
1473
|
+
*/
|
|
1474
|
+
function dsnFromString(str) {
|
|
1475
|
+
const match = DSN_REGEX.exec(str);
|
|
1476
|
+
if (!match) {
|
|
1477
|
+
consoleSandbox(() => {
|
|
1478
|
+
console.error(`Invalid Sentry Dsn: ${str}`);
|
|
1479
|
+
});
|
|
1480
|
+
return;
|
|
1481
|
+
}
|
|
1482
|
+
const [protocol, publicKey, pass = "", host = "", port = "", lastPath = ""] = match.slice(1);
|
|
1483
|
+
let path = "";
|
|
1484
|
+
let projectId = lastPath;
|
|
1485
|
+
const split = projectId.split("/");
|
|
1486
|
+
if (split.length > 1) {
|
|
1487
|
+
path = split.slice(0, -1).join("/");
|
|
1488
|
+
projectId = split.pop();
|
|
1489
|
+
}
|
|
1490
|
+
if (projectId) {
|
|
1491
|
+
const projectMatch = projectId.match(/^\d+/);
|
|
1492
|
+
if (projectMatch) projectId = projectMatch[0];
|
|
1493
|
+
}
|
|
1494
|
+
return dsnFromComponents({
|
|
1495
|
+
host,
|
|
1496
|
+
pass,
|
|
1497
|
+
path,
|
|
1498
|
+
projectId,
|
|
1499
|
+
port,
|
|
1500
|
+
protocol,
|
|
1501
|
+
publicKey
|
|
1502
|
+
});
|
|
1503
|
+
}
|
|
1504
|
+
function dsnFromComponents(components) {
|
|
1505
|
+
return {
|
|
1506
|
+
protocol: components.protocol,
|
|
1507
|
+
publicKey: components.publicKey || "",
|
|
1508
|
+
pass: components.pass || "",
|
|
1509
|
+
host: components.host,
|
|
1510
|
+
port: components.port || "",
|
|
1511
|
+
path: components.path || "",
|
|
1512
|
+
projectId: components.projectId
|
|
1513
|
+
};
|
|
1514
|
+
}
|
|
1515
|
+
function validateDsn(dsn) {
|
|
1516
|
+
if (!DEBUG_BUILD) return true;
|
|
1517
|
+
const {
|
|
1518
|
+
port,
|
|
1519
|
+
projectId,
|
|
1520
|
+
protocol
|
|
1521
|
+
} = dsn;
|
|
1522
|
+
if (["protocol", "publicKey", "host", "projectId"].find(component => {
|
|
1523
|
+
if (!dsn[component]) {
|
|
1524
|
+
debug.error(`Invalid Sentry Dsn: ${component} missing`);
|
|
1525
|
+
return true;
|
|
1526
|
+
}
|
|
1527
|
+
return false;
|
|
1528
|
+
})) return false;
|
|
1529
|
+
if (!projectId.match(/^\d+$/)) {
|
|
1530
|
+
debug.error(`Invalid Sentry Dsn: Invalid projectId ${projectId}`);
|
|
1531
|
+
return false;
|
|
1532
|
+
}
|
|
1533
|
+
if (!isValidProtocol(protocol)) {
|
|
1534
|
+
debug.error(`Invalid Sentry Dsn: Invalid protocol ${protocol}`);
|
|
1535
|
+
return false;
|
|
1536
|
+
}
|
|
1537
|
+
if (port && isNaN(parseInt(port, 10))) {
|
|
1538
|
+
debug.error(`Invalid Sentry Dsn: Invalid port ${port}`);
|
|
1539
|
+
return false;
|
|
1540
|
+
}
|
|
1541
|
+
return true;
|
|
1542
|
+
}
|
|
1543
|
+
/**
|
|
1544
|
+
* Extract the org ID from a DSN host.
|
|
1545
|
+
*
|
|
1546
|
+
* @param host The host from a DSN
|
|
1547
|
+
* @returns The org ID if found, undefined otherwise
|
|
1548
|
+
*/
|
|
1549
|
+
function extractOrgIdFromDsnHost(host) {
|
|
1550
|
+
return host.match(ORG_ID_REGEX)?.[1];
|
|
1551
|
+
}
|
|
1552
|
+
/**
|
|
1553
|
+
* Creates a valid Sentry Dsn object, identifying a Sentry instance and project.
|
|
1554
|
+
* @returns a valid DsnComponents object or `undefined` if @param from is an invalid DSN source
|
|
1555
|
+
*/
|
|
1556
|
+
function makeDsn(from) {
|
|
1557
|
+
const components = typeof from === "string" ? dsnFromString(from) : dsnFromComponents(from);
|
|
1558
|
+
if (!components || !validateDsn(components)) return;
|
|
1559
|
+
return components;
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
//#endregion
|
|
1563
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/tracing/dynamicSamplingContext.js
|
|
1564
|
+
/**
|
|
1565
|
+
* If you change this value, also update the terser plugin config to
|
|
1566
|
+
* avoid minification of the object property!
|
|
1567
|
+
*/
|
|
1568
|
+
|
|
1569
|
+
/**
|
|
1570
|
+
* Freeze the given DSC on the given span.
|
|
1571
|
+
*/
|
|
1572
|
+
function freezeDscOnSpan(span, dsc) {
|
|
1573
|
+
addNonEnumerableProperty(span, FROZEN_DSC_FIELD, dsc);
|
|
1574
|
+
}
|
|
1575
|
+
/**
|
|
1576
|
+
* Creates a dynamic sampling context from a client.
|
|
1577
|
+
*
|
|
1578
|
+
* Dispatches the `createDsc` lifecycle hook as a side effect.
|
|
1579
|
+
*/
|
|
1580
|
+
function getDynamicSamplingContextFromClient(trace_id, client) {
|
|
1581
|
+
const options = client.getOptions();
|
|
1582
|
+
const {
|
|
1583
|
+
publicKey: public_key,
|
|
1584
|
+
host
|
|
1585
|
+
} = client.getDsn() || {};
|
|
1586
|
+
let org_id;
|
|
1587
|
+
if (options.orgId) org_id = String(options.orgId);else if (host) org_id = extractOrgIdFromDsnHost(host);
|
|
1588
|
+
const dsc = {
|
|
1589
|
+
environment: options.environment || "production",
|
|
1590
|
+
release: options.release,
|
|
1591
|
+
public_key,
|
|
1592
|
+
trace_id,
|
|
1593
|
+
org_id
|
|
1594
|
+
};
|
|
1595
|
+
client.emit("createDsc", dsc);
|
|
1596
|
+
return dsc;
|
|
1597
|
+
}
|
|
1598
|
+
/**
|
|
1599
|
+
* Get the dynamic sampling context for the currently active scopes.
|
|
1600
|
+
*/
|
|
1601
|
+
function getDynamicSamplingContextFromScope(client, scope) {
|
|
1602
|
+
const propagationContext = scope.getPropagationContext();
|
|
1603
|
+
return propagationContext.dsc || getDynamicSamplingContextFromClient(propagationContext.traceId, client);
|
|
1604
|
+
}
|
|
1605
|
+
/**
|
|
1606
|
+
* Creates a dynamic sampling context from a span (and client and scope)
|
|
1607
|
+
*
|
|
1608
|
+
* @param span the span from which a few values like the root span name and sample rate are extracted.
|
|
1609
|
+
*
|
|
1610
|
+
* @returns a dynamic sampling context
|
|
1611
|
+
*/
|
|
1612
|
+
function getDynamicSamplingContextFromSpan(span) {
|
|
1613
|
+
const client = getClient();
|
|
1614
|
+
if (!client) return {};
|
|
1615
|
+
const rootSpan = getRootSpan(span);
|
|
1616
|
+
const rootSpanJson = spanToJSON(rootSpan);
|
|
1617
|
+
const rootSpanAttributes = rootSpanJson.data;
|
|
1618
|
+
const traceState = rootSpan.spanContext().traceState;
|
|
1619
|
+
const rootSpanSampleRate = traceState?.get("sentry.sample_rate") ?? rootSpanAttributes["sentry.sample_rate"] ?? rootSpanAttributes["sentry.previous_trace_sample_rate"];
|
|
1620
|
+
function applyLocalSampleRateToDsc(dsc$1) {
|
|
1621
|
+
if (typeof rootSpanSampleRate === "number" || typeof rootSpanSampleRate === "string") dsc$1.sample_rate = `${rootSpanSampleRate}`;
|
|
1622
|
+
return dsc$1;
|
|
1623
|
+
}
|
|
1624
|
+
const frozenDsc = rootSpan[FROZEN_DSC_FIELD];
|
|
1625
|
+
if (frozenDsc) return applyLocalSampleRateToDsc(frozenDsc);
|
|
1626
|
+
const traceStateDsc = traceState?.get("sentry.dsc");
|
|
1627
|
+
const dscOnTraceState = traceStateDsc && baggageHeaderToDynamicSamplingContext(traceStateDsc);
|
|
1628
|
+
if (dscOnTraceState) return applyLocalSampleRateToDsc(dscOnTraceState);
|
|
1629
|
+
const dsc = getDynamicSamplingContextFromClient(span.spanContext().traceId, client);
|
|
1630
|
+
const source = rootSpanAttributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];
|
|
1631
|
+
const name = rootSpanJson.description;
|
|
1632
|
+
if (source !== "url" && name) dsc.transaction = name;
|
|
1633
|
+
if (hasSpansEnabled()) {
|
|
1634
|
+
dsc.sampled = String(spanIsSampled(rootSpan));
|
|
1635
|
+
dsc.sample_rand = traceState?.get("sentry.sample_rand") ?? getCapturedScopesOnSpan(rootSpan).scope?.getPropagationContext().sampleRand.toString();
|
|
1636
|
+
}
|
|
1637
|
+
applyLocalSampleRateToDsc(dsc);
|
|
1638
|
+
client.emit("createDsc", dsc, rootSpan);
|
|
1639
|
+
return dsc;
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
//#endregion
|
|
1643
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/normalize.js
|
|
1644
|
+
|
|
1645
|
+
/**
|
|
1646
|
+
* Recursively normalizes the given object.
|
|
1647
|
+
*
|
|
1648
|
+
* - Creates a copy to prevent original input mutation
|
|
1649
|
+
* - Skips non-enumerable properties
|
|
1650
|
+
* - When stringifying, calls `toJSON` if implemented
|
|
1651
|
+
* - Removes circular references
|
|
1652
|
+
* - Translates non-serializable values (`undefined`/`NaN`/functions) to serializable format
|
|
1653
|
+
* - Translates known global objects/classes to a string representations
|
|
1654
|
+
* - Takes care of `Error` object serialization
|
|
1655
|
+
* - Optionally limits depth of final output
|
|
1656
|
+
* - Optionally limits number of properties/elements included in any single object/array
|
|
1657
|
+
*
|
|
1658
|
+
* @param input The object to be normalized.
|
|
1659
|
+
* @param depth The max depth to which to normalize the object. (Anything deeper stringified whole.)
|
|
1660
|
+
* @param maxProperties The max number of elements or properties to be included in any single array or
|
|
1661
|
+
* object in the normalized output.
|
|
1662
|
+
* @returns A normalized version of the object, or `"**non-serializable**"` if any errors are thrown during normalization.
|
|
1663
|
+
*/
|
|
1664
|
+
function normalize(input, depth = 100, maxProperties = Infinity) {
|
|
1665
|
+
try {
|
|
1666
|
+
return visit("", input, depth, maxProperties);
|
|
1667
|
+
} catch (err) {
|
|
1668
|
+
return {
|
|
1669
|
+
ERROR: `**non-serializable** (${err})`
|
|
1670
|
+
};
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
/** JSDoc */
|
|
1674
|
+
function normalizeToSize(object, depth = 3, maxSize = 100 * 1024) {
|
|
1675
|
+
const normalized = normalize(object, depth);
|
|
1676
|
+
if (jsonSize(normalized) > maxSize) return normalizeToSize(object, depth - 1, maxSize);
|
|
1677
|
+
return normalized;
|
|
1678
|
+
}
|
|
1679
|
+
/**
|
|
1680
|
+
* Visits a node to perform normalization on it
|
|
1681
|
+
*
|
|
1682
|
+
* @param key The key corresponding to the given node
|
|
1683
|
+
* @param value The node to be visited
|
|
1684
|
+
* @param depth Optional number indicating the maximum recursion depth
|
|
1685
|
+
* @param maxProperties Optional maximum number of properties/elements included in any single object/array
|
|
1686
|
+
* @param memo Optional Memo class handling decycling
|
|
1687
|
+
*/
|
|
1688
|
+
function visit(key, value, depth = Infinity, maxProperties = Infinity, memo = memoBuilder()) {
|
|
1689
|
+
const [memoize, unmemoize] = memo;
|
|
1690
|
+
if (value == null || ["boolean", "string"].includes(typeof value) || typeof value === "number" && Number.isFinite(value)) return value;
|
|
1691
|
+
const stringified = stringifyValue(key, value);
|
|
1692
|
+
if (!stringified.startsWith("[object ")) return stringified;
|
|
1693
|
+
if (value["__sentry_skip_normalization__"]) return value;
|
|
1694
|
+
const remainingDepth = typeof value["__sentry_override_normalization_depth__"] === "number" ? value["__sentry_override_normalization_depth__"] : depth;
|
|
1695
|
+
if (remainingDepth === 0) return stringified.replace("object ", "");
|
|
1696
|
+
if (memoize(value)) return "[Circular ~]";
|
|
1697
|
+
const valueWithToJSON = value;
|
|
1698
|
+
if (valueWithToJSON && typeof valueWithToJSON.toJSON === "function") try {
|
|
1699
|
+
return visit("", valueWithToJSON.toJSON(), remainingDepth - 1, maxProperties, memo);
|
|
1700
|
+
} catch {}
|
|
1701
|
+
const normalized = Array.isArray(value) ? [] : {};
|
|
1702
|
+
let numAdded = 0;
|
|
1703
|
+
const visitable = convertToPlainObject(value);
|
|
1704
|
+
for (const visitKey in visitable) {
|
|
1705
|
+
if (!Object.prototype.hasOwnProperty.call(visitable, visitKey)) continue;
|
|
1706
|
+
if (numAdded >= maxProperties) {
|
|
1707
|
+
normalized[visitKey] = "[MaxProperties ~]";
|
|
1708
|
+
break;
|
|
1709
|
+
}
|
|
1710
|
+
const visitValue = visitable[visitKey];
|
|
1711
|
+
normalized[visitKey] = visit(visitKey, visitValue, remainingDepth - 1, maxProperties, memo);
|
|
1712
|
+
numAdded++;
|
|
1713
|
+
}
|
|
1714
|
+
unmemoize(value);
|
|
1715
|
+
return normalized;
|
|
1716
|
+
}
|
|
1717
|
+
/**
|
|
1718
|
+
* Stringify the given value. Handles various known special values and types.
|
|
1719
|
+
*
|
|
1720
|
+
* Not meant to be used on simple primitives which already have a string representation, as it will, for example, turn
|
|
1721
|
+
* the number 1231 into "[Object Number]", nor on `null`, as it will throw.
|
|
1722
|
+
*
|
|
1723
|
+
* @param value The value to stringify
|
|
1724
|
+
* @returns A stringified representation of the given value
|
|
1725
|
+
*/
|
|
1726
|
+
function stringifyValue(key, value) {
|
|
1727
|
+
try {
|
|
1728
|
+
if (key === "domain" && value && typeof value === "object" && value._events) return "[Domain]";
|
|
1729
|
+
if (key === "domainEmitter") return "[DomainEmitter]";
|
|
1730
|
+
if (typeof global !== "undefined" && value === global) return "[Global]";
|
|
1731
|
+
if (typeof window !== "undefined" && value === window) return "[Window]";
|
|
1732
|
+
if (typeof document !== "undefined" && value === document) return "[Document]";
|
|
1733
|
+
if (isVueViewModel(value)) return "[VueViewModel]";
|
|
1734
|
+
if (isSyntheticEvent(value)) return "[SyntheticEvent]";
|
|
1735
|
+
if (typeof value === "number" && !Number.isFinite(value)) return `[${value}]`;
|
|
1736
|
+
if (typeof value === "function") return `[Function: ${getFunctionName(value)}]`;
|
|
1737
|
+
if (typeof value === "symbol") return `[${String(value)}]`;
|
|
1738
|
+
if (typeof value === "bigint") return `[BigInt: ${String(value)}]`;
|
|
1739
|
+
const objName = getConstructorName(value);
|
|
1740
|
+
if (/^HTML(\w*)Element$/.test(objName)) return `[HTMLElement: ${objName}]`;
|
|
1741
|
+
return `[object ${objName}]`;
|
|
1742
|
+
} catch (err) {
|
|
1743
|
+
return `**non-serializable** (${err})`;
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
function getConstructorName(value) {
|
|
1747
|
+
const prototype = Object.getPrototypeOf(value);
|
|
1748
|
+
return prototype?.constructor ? prototype.constructor.name : "null prototype";
|
|
1749
|
+
}
|
|
1750
|
+
/** Calculates bytes size of input string */
|
|
1751
|
+
function utf8Length(value) {
|
|
1752
|
+
return ~-encodeURI(value).split(/%..|./).length;
|
|
1753
|
+
}
|
|
1754
|
+
/** Calculates bytes size of input object */
|
|
1755
|
+
function jsonSize(value) {
|
|
1756
|
+
return utf8Length(JSON.stringify(value));
|
|
1757
|
+
}
|
|
1758
|
+
/**
|
|
1759
|
+
* Helper to decycle json objects
|
|
1760
|
+
*/
|
|
1761
|
+
function memoBuilder() {
|
|
1762
|
+
const inner = /* @__PURE__ */new WeakSet();
|
|
1763
|
+
function memoize(obj) {
|
|
1764
|
+
if (inner.has(obj)) return true;
|
|
1765
|
+
inner.add(obj);
|
|
1766
|
+
return false;
|
|
1767
|
+
}
|
|
1768
|
+
function unmemoize(obj) {
|
|
1769
|
+
inner.delete(obj);
|
|
1770
|
+
}
|
|
1771
|
+
return [memoize, unmemoize];
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
//#endregion
|
|
1775
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/syncpromise.js
|
|
1776
|
+
/** SyncPromise internal states */
|
|
1777
|
+
|
|
1778
|
+
/**
|
|
1779
|
+
* Creates a resolved sync promise.
|
|
1780
|
+
*
|
|
1781
|
+
* @param value the value to resolve the promise with
|
|
1782
|
+
* @returns the resolved sync promise
|
|
1783
|
+
*/
|
|
1784
|
+
function resolvedSyncPromise(value) {
|
|
1785
|
+
return new SyncPromise(resolve => {
|
|
1786
|
+
resolve(value);
|
|
1787
|
+
});
|
|
1788
|
+
}
|
|
1789
|
+
/**
|
|
1790
|
+
* Creates a rejected sync promise.
|
|
1791
|
+
*
|
|
1792
|
+
* @param value the value to reject the promise with
|
|
1793
|
+
* @returns the rejected sync promise
|
|
1794
|
+
*/
|
|
1795
|
+
function rejectedSyncPromise(reason) {
|
|
1796
|
+
return new SyncPromise((_, reject) => {
|
|
1797
|
+
reject(reason);
|
|
1798
|
+
});
|
|
1799
|
+
}
|
|
1800
|
+
/**
|
|
1801
|
+
* Thenable class that behaves like a Promise and follows it's interface
|
|
1802
|
+
* but is not async internally
|
|
1803
|
+
*/
|
|
1804
|
+
|
|
1805
|
+
//#endregion
|
|
1806
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/eventProcessors.js
|
|
1807
|
+
/**
|
|
1808
|
+
* Process an array of event processors, returning the processed event (or `null` if the event was dropped).
|
|
1809
|
+
*/
|
|
1810
|
+
function notifyEventProcessors(processors, event, hint, index = 0) {
|
|
1811
|
+
return new SyncPromise((resolve, reject) => {
|
|
1812
|
+
const processor = processors[index];
|
|
1813
|
+
if (event === null || typeof processor !== "function") resolve(event);else {
|
|
1814
|
+
const result = processor({
|
|
1815
|
+
...event
|
|
1816
|
+
}, hint);
|
|
1817
|
+
DEBUG_BUILD && processor.id && result === null && debug.log(`Event processor "${processor.id}" dropped event`);
|
|
1818
|
+
if (isThenable(result)) result.then(final => notifyEventProcessors(processors, final, hint, index + 1).then(resolve)).then(null, reject);else notifyEventProcessors(processors, result, hint, index + 1).then(resolve).then(null, reject);
|
|
1819
|
+
}
|
|
1820
|
+
});
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
//#endregion
|
|
1824
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/applyScopeDataToEvent.js
|
|
1825
|
+
/**
|
|
1826
|
+
* Applies data from the scope to the event and runs all event processors on it.
|
|
1827
|
+
*/
|
|
1828
|
+
function applyScopeDataToEvent(event, data) {
|
|
1829
|
+
const {
|
|
1830
|
+
fingerprint,
|
|
1831
|
+
span,
|
|
1832
|
+
breadcrumbs,
|
|
1833
|
+
sdkProcessingMetadata
|
|
1834
|
+
} = data;
|
|
1835
|
+
applyDataToEvent(event, data);
|
|
1836
|
+
if (span) applySpanToEvent(event, span);
|
|
1837
|
+
applyFingerprintToEvent(event, fingerprint);
|
|
1838
|
+
applyBreadcrumbsToEvent(event, breadcrumbs);
|
|
1839
|
+
applySdkMetadataToEvent(event, sdkProcessingMetadata);
|
|
1840
|
+
}
|
|
1841
|
+
/** Merge data of two scopes together. */
|
|
1842
|
+
function mergeScopeData(data, mergeData) {
|
|
1843
|
+
const {
|
|
1844
|
+
extra,
|
|
1845
|
+
tags,
|
|
1846
|
+
user,
|
|
1847
|
+
contexts,
|
|
1848
|
+
level,
|
|
1849
|
+
sdkProcessingMetadata,
|
|
1850
|
+
breadcrumbs,
|
|
1851
|
+
fingerprint,
|
|
1852
|
+
eventProcessors,
|
|
1853
|
+
attachments,
|
|
1854
|
+
propagationContext,
|
|
1855
|
+
transactionName,
|
|
1856
|
+
span
|
|
1857
|
+
} = mergeData;
|
|
1858
|
+
mergeAndOverwriteScopeData(data, "extra", extra);
|
|
1859
|
+
mergeAndOverwriteScopeData(data, "tags", tags);
|
|
1860
|
+
mergeAndOverwriteScopeData(data, "user", user);
|
|
1861
|
+
mergeAndOverwriteScopeData(data, "contexts", contexts);
|
|
1862
|
+
data.sdkProcessingMetadata = merge(data.sdkProcessingMetadata, sdkProcessingMetadata, 2);
|
|
1863
|
+
if (level) data.level = level;
|
|
1864
|
+
if (transactionName) data.transactionName = transactionName;
|
|
1865
|
+
if (span) data.span = span;
|
|
1866
|
+
if (breadcrumbs.length) data.breadcrumbs = [...data.breadcrumbs, ...breadcrumbs];
|
|
1867
|
+
if (fingerprint.length) data.fingerprint = [...data.fingerprint, ...fingerprint];
|
|
1868
|
+
if (eventProcessors.length) data.eventProcessors = [...data.eventProcessors, ...eventProcessors];
|
|
1869
|
+
if (attachments.length) data.attachments = [...data.attachments, ...attachments];
|
|
1870
|
+
data.propagationContext = {
|
|
1871
|
+
...data.propagationContext,
|
|
1872
|
+
...propagationContext
|
|
1873
|
+
};
|
|
1874
|
+
}
|
|
1875
|
+
/**
|
|
1876
|
+
* Merges certain scope data. Undefined values will overwrite any existing values.
|
|
1877
|
+
* Exported only for tests.
|
|
1878
|
+
*/
|
|
1879
|
+
function mergeAndOverwriteScopeData(data, prop, mergeVal) {
|
|
1880
|
+
data[prop] = merge(data[prop], mergeVal, 1);
|
|
1881
|
+
}
|
|
1882
|
+
function applyDataToEvent(event, data) {
|
|
1883
|
+
const {
|
|
1884
|
+
extra,
|
|
1885
|
+
tags,
|
|
1886
|
+
user,
|
|
1887
|
+
contexts,
|
|
1888
|
+
level,
|
|
1889
|
+
transactionName
|
|
1890
|
+
} = data;
|
|
1891
|
+
if (Object.keys(extra).length) event.extra = {
|
|
1892
|
+
...extra,
|
|
1893
|
+
...event.extra
|
|
1894
|
+
};
|
|
1895
|
+
if (Object.keys(tags).length) event.tags = {
|
|
1896
|
+
...tags,
|
|
1897
|
+
...event.tags
|
|
1898
|
+
};
|
|
1899
|
+
if (Object.keys(user).length) event.user = {
|
|
1900
|
+
...user,
|
|
1901
|
+
...event.user
|
|
1902
|
+
};
|
|
1903
|
+
if (Object.keys(contexts).length) event.contexts = {
|
|
1904
|
+
...contexts,
|
|
1905
|
+
...event.contexts
|
|
1906
|
+
};
|
|
1907
|
+
if (level) event.level = level;
|
|
1908
|
+
if (transactionName && event.type !== "transaction") event.transaction = transactionName;
|
|
1909
|
+
}
|
|
1910
|
+
function applyBreadcrumbsToEvent(event, breadcrumbs) {
|
|
1911
|
+
const mergedBreadcrumbs = [...(event.breadcrumbs || []), ...breadcrumbs];
|
|
1912
|
+
event.breadcrumbs = mergedBreadcrumbs.length ? mergedBreadcrumbs : void 0;
|
|
1913
|
+
}
|
|
1914
|
+
function applySdkMetadataToEvent(event, sdkProcessingMetadata) {
|
|
1915
|
+
event.sdkProcessingMetadata = {
|
|
1916
|
+
...event.sdkProcessingMetadata,
|
|
1917
|
+
...sdkProcessingMetadata
|
|
1918
|
+
};
|
|
1919
|
+
}
|
|
1920
|
+
function applySpanToEvent(event, span) {
|
|
1921
|
+
event.contexts = {
|
|
1922
|
+
trace: spanToTraceContext(span),
|
|
1923
|
+
...event.contexts
|
|
1924
|
+
};
|
|
1925
|
+
event.sdkProcessingMetadata = {
|
|
1926
|
+
dynamicSamplingContext: getDynamicSamplingContextFromSpan(span),
|
|
1927
|
+
...event.sdkProcessingMetadata
|
|
1928
|
+
};
|
|
1929
|
+
const transactionName = spanToJSON(getRootSpan(span)).description;
|
|
1930
|
+
if (transactionName && !event.transaction && event.type === "transaction") event.transaction = transactionName;
|
|
1931
|
+
}
|
|
1932
|
+
/**
|
|
1933
|
+
* Applies fingerprint from the scope to the event if there's one,
|
|
1934
|
+
* uses message if there's one instead or get rid of empty fingerprint
|
|
1935
|
+
*/
|
|
1936
|
+
function applyFingerprintToEvent(event, fingerprint) {
|
|
1937
|
+
event.fingerprint = event.fingerprint ? Array.isArray(event.fingerprint) ? event.fingerprint : [event.fingerprint] : [];
|
|
1938
|
+
if (fingerprint) event.fingerprint = event.fingerprint.concat(fingerprint);
|
|
1939
|
+
if (!event.fingerprint.length) delete event.fingerprint;
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
//#endregion
|
|
1943
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/debug-ids.js
|
|
1944
|
+
|
|
1945
|
+
/**
|
|
1946
|
+
* Returns a map of filenames to debug identifiers.
|
|
1947
|
+
*/
|
|
1948
|
+
function getFilenameToDebugIdMap(stackParser) {
|
|
1949
|
+
const debugIdMap = GLOBAL_OBJ._sentryDebugIds;
|
|
1950
|
+
if (!debugIdMap) return {};
|
|
1951
|
+
const debugIdKeys = Object.keys(debugIdMap);
|
|
1952
|
+
if (cachedFilenameDebugIds && debugIdKeys.length === lastKeysCount) return cachedFilenameDebugIds;
|
|
1953
|
+
lastKeysCount = debugIdKeys.length;
|
|
1954
|
+
cachedFilenameDebugIds = debugIdKeys.reduce((acc, stackKey) => {
|
|
1955
|
+
if (!parsedStackResults) parsedStackResults = {};
|
|
1956
|
+
const result = parsedStackResults[stackKey];
|
|
1957
|
+
if (result) acc[result[0]] = result[1];else {
|
|
1958
|
+
const parsedStack = stackParser(stackKey);
|
|
1959
|
+
for (let i = parsedStack.length - 1; i >= 0; i--) {
|
|
1960
|
+
const filename = parsedStack[i]?.filename;
|
|
1961
|
+
const debugId = debugIdMap[stackKey];
|
|
1962
|
+
if (filename && debugId) {
|
|
1963
|
+
acc[filename] = debugId;
|
|
1964
|
+
parsedStackResults[stackKey] = [filename, debugId];
|
|
1965
|
+
break;
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
return acc;
|
|
1970
|
+
}, {});
|
|
1971
|
+
return cachedFilenameDebugIds;
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1974
|
+
//#endregion
|
|
1975
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/prepareEvent.js
|
|
1976
|
+
/**
|
|
1977
|
+
* This type makes sure that we get either a CaptureContext, OR an EventHint.
|
|
1978
|
+
* It does not allow mixing them, which could lead to unexpected outcomes, e.g. this is disallowed:
|
|
1979
|
+
* { user: { id: '123' }, mechanism: { handled: false } }
|
|
1980
|
+
*/
|
|
1981
|
+
/**
|
|
1982
|
+
* Adds common information to events.
|
|
1983
|
+
*
|
|
1984
|
+
* The information includes release and environment from `options`,
|
|
1985
|
+
* breadcrumbs and context (extra, tags and user) from the scope.
|
|
1986
|
+
*
|
|
1987
|
+
* Information that is already present in the event is never overwritten. For
|
|
1988
|
+
* nested objects, such as the context, keys are merged.
|
|
1989
|
+
*
|
|
1990
|
+
* @param event The original event.
|
|
1991
|
+
* @param hint May contain additional information about the original exception.
|
|
1992
|
+
* @param scope A scope containing event metadata.
|
|
1993
|
+
* @returns A new event with more information.
|
|
1994
|
+
* @hidden
|
|
1995
|
+
*/
|
|
1996
|
+
function prepareEvent(options, event, hint, scope, client, isolationScope) {
|
|
1997
|
+
const {
|
|
1998
|
+
normalizeDepth = 3,
|
|
1999
|
+
normalizeMaxBreadth = 1e3
|
|
2000
|
+
} = options;
|
|
2001
|
+
const prepared = {
|
|
2002
|
+
...event,
|
|
2003
|
+
event_id: event.event_id || hint.event_id || uuid4(),
|
|
2004
|
+
timestamp: event.timestamp || dateTimestampInSeconds()
|
|
2005
|
+
};
|
|
2006
|
+
const integrations = hint.integrations || options.integrations.map(i => i.name);
|
|
2007
|
+
applyClientOptions(prepared, options);
|
|
2008
|
+
applyIntegrationsMetadata(prepared, integrations);
|
|
2009
|
+
if (client) client.emit("applyFrameMetadata", event);
|
|
2010
|
+
if (event.type === void 0) applyDebugIds(prepared, options.stackParser);
|
|
2011
|
+
const finalScope = getFinalScope(scope, hint.captureContext);
|
|
2012
|
+
if (hint.mechanism) addExceptionMechanism(prepared, hint.mechanism);
|
|
2013
|
+
const clientEventProcessors = client ? client.getEventProcessors() : [];
|
|
2014
|
+
const data = getGlobalScope().getScopeData();
|
|
2015
|
+
if (isolationScope) mergeScopeData(data, isolationScope.getScopeData());
|
|
2016
|
+
if (finalScope) mergeScopeData(data, finalScope.getScopeData());
|
|
2017
|
+
const attachments = [...(hint.attachments || []), ...data.attachments];
|
|
2018
|
+
if (attachments.length) hint.attachments = attachments;
|
|
2019
|
+
applyScopeDataToEvent(prepared, data);
|
|
2020
|
+
return notifyEventProcessors([...clientEventProcessors, ...data.eventProcessors], prepared, hint).then(evt => {
|
|
2021
|
+
if (evt) applyDebugMeta(evt);
|
|
2022
|
+
if (typeof normalizeDepth === "number" && normalizeDepth > 0) return normalizeEvent(evt, normalizeDepth, normalizeMaxBreadth);
|
|
2023
|
+
return evt;
|
|
2024
|
+
});
|
|
2025
|
+
}
|
|
2026
|
+
/**
|
|
2027
|
+
* Enhances event using the client configuration.
|
|
2028
|
+
* It takes care of all "static" values like environment, release and `dist`,
|
|
2029
|
+
* as well as truncating overly long values.
|
|
2030
|
+
*
|
|
2031
|
+
* Only exported for tests.
|
|
2032
|
+
*
|
|
2033
|
+
* @param event event instance to be enhanced
|
|
2034
|
+
*/
|
|
2035
|
+
function applyClientOptions(event, options) {
|
|
2036
|
+
const {
|
|
2037
|
+
environment,
|
|
2038
|
+
release,
|
|
2039
|
+
dist,
|
|
2040
|
+
maxValueLength = 250
|
|
2041
|
+
} = options;
|
|
2042
|
+
event.environment = event.environment || environment || "production";
|
|
2043
|
+
if (!event.release && release) event.release = release;
|
|
2044
|
+
if (!event.dist && dist) event.dist = dist;
|
|
2045
|
+
const request = event.request;
|
|
2046
|
+
if (request?.url) request.url = truncate(request.url, maxValueLength);
|
|
2047
|
+
}
|
|
2048
|
+
/**
|
|
2049
|
+
* Puts debug IDs into the stack frames of an error event.
|
|
2050
|
+
*/
|
|
2051
|
+
function applyDebugIds(event, stackParser) {
|
|
2052
|
+
const filenameDebugIdMap = getFilenameToDebugIdMap(stackParser);
|
|
2053
|
+
event.exception?.values?.forEach(exception => {
|
|
2054
|
+
exception.stacktrace?.frames?.forEach(frame => {
|
|
2055
|
+
if (frame.filename) frame.debug_id = filenameDebugIdMap[frame.filename];
|
|
2056
|
+
});
|
|
2057
|
+
});
|
|
2058
|
+
}
|
|
2059
|
+
/**
|
|
2060
|
+
* Moves debug IDs from the stack frames of an error event into the debug_meta field.
|
|
2061
|
+
*/
|
|
2062
|
+
function applyDebugMeta(event) {
|
|
2063
|
+
const filenameDebugIdMap = {};
|
|
2064
|
+
event.exception?.values?.forEach(exception => {
|
|
2065
|
+
exception.stacktrace?.frames?.forEach(frame => {
|
|
2066
|
+
if (frame.debug_id) {
|
|
2067
|
+
if (frame.abs_path) filenameDebugIdMap[frame.abs_path] = frame.debug_id;else if (frame.filename) filenameDebugIdMap[frame.filename] = frame.debug_id;
|
|
2068
|
+
delete frame.debug_id;
|
|
2069
|
+
}
|
|
2070
|
+
});
|
|
2071
|
+
});
|
|
2072
|
+
if (Object.keys(filenameDebugIdMap).length === 0) return;
|
|
2073
|
+
event.debug_meta = event.debug_meta || {};
|
|
2074
|
+
event.debug_meta.images = event.debug_meta.images || [];
|
|
2075
|
+
const images = event.debug_meta.images;
|
|
2076
|
+
Object.entries(filenameDebugIdMap).forEach(([filename, debug_id]) => {
|
|
2077
|
+
images.push({
|
|
2078
|
+
type: "sourcemap",
|
|
2079
|
+
code_file: filename,
|
|
2080
|
+
debug_id
|
|
2081
|
+
});
|
|
2082
|
+
});
|
|
2083
|
+
}
|
|
2084
|
+
/**
|
|
2085
|
+
* This function adds all used integrations to the SDK info in the event.
|
|
2086
|
+
* @param event The event that will be filled with all integrations.
|
|
2087
|
+
*/
|
|
2088
|
+
function applyIntegrationsMetadata(event, integrationNames) {
|
|
2089
|
+
if (integrationNames.length > 0) {
|
|
2090
|
+
event.sdk = event.sdk || {};
|
|
2091
|
+
event.sdk.integrations = [...(event.sdk.integrations || []), ...integrationNames];
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
/**
|
|
2095
|
+
* Applies `normalize` function on necessary `Event` attributes to make them safe for serialization.
|
|
2096
|
+
* Normalized keys:
|
|
2097
|
+
* - `breadcrumbs.data`
|
|
2098
|
+
* - `user`
|
|
2099
|
+
* - `contexts`
|
|
2100
|
+
* - `extra`
|
|
2101
|
+
* @param event Event
|
|
2102
|
+
* @returns Normalized event
|
|
2103
|
+
*/
|
|
2104
|
+
function normalizeEvent(event, depth, maxBreadth) {
|
|
2105
|
+
if (!event) return null;
|
|
2106
|
+
const normalized = {
|
|
2107
|
+
...event,
|
|
2108
|
+
...(event.breadcrumbs && {
|
|
2109
|
+
breadcrumbs: event.breadcrumbs.map(b => ({
|
|
2110
|
+
...b,
|
|
2111
|
+
...(b.data && {
|
|
2112
|
+
data: normalize(b.data, depth, maxBreadth)
|
|
2113
|
+
})
|
|
2114
|
+
}))
|
|
2115
|
+
}),
|
|
2116
|
+
...(event.user && {
|
|
2117
|
+
user: normalize(event.user, depth, maxBreadth)
|
|
2118
|
+
}),
|
|
2119
|
+
...(event.contexts && {
|
|
2120
|
+
contexts: normalize(event.contexts, depth, maxBreadth)
|
|
2121
|
+
}),
|
|
2122
|
+
...(event.extra && {
|
|
2123
|
+
extra: normalize(event.extra, depth, maxBreadth)
|
|
2124
|
+
})
|
|
2125
|
+
};
|
|
2126
|
+
if (event.contexts?.trace && normalized.contexts) {
|
|
2127
|
+
normalized.contexts.trace = event.contexts.trace;
|
|
2128
|
+
if (event.contexts.trace.data) normalized.contexts.trace.data = normalize(event.contexts.trace.data, depth, maxBreadth);
|
|
2129
|
+
}
|
|
2130
|
+
if (event.spans) normalized.spans = event.spans.map(span => {
|
|
2131
|
+
return {
|
|
2132
|
+
...span,
|
|
2133
|
+
...(span.data && {
|
|
2134
|
+
data: normalize(span.data, depth, maxBreadth)
|
|
2135
|
+
})
|
|
2136
|
+
};
|
|
2137
|
+
});
|
|
2138
|
+
if (event.contexts?.flags && normalized.contexts) normalized.contexts.flags = normalize(event.contexts.flags, 3, maxBreadth);
|
|
2139
|
+
return normalized;
|
|
2140
|
+
}
|
|
2141
|
+
function getFinalScope(scope, captureContext) {
|
|
2142
|
+
if (!captureContext) return scope;
|
|
2143
|
+
const finalScope = scope ? scope.clone() : new Scope();
|
|
2144
|
+
finalScope.update(captureContext);
|
|
2145
|
+
return finalScope;
|
|
2146
|
+
}
|
|
2147
|
+
/**
|
|
2148
|
+
* Parse either an `EventHint` directly, or convert a `CaptureContext` to an `EventHint`.
|
|
2149
|
+
* This is used to allow to update method signatures that used to accept a `CaptureContext` but should now accept an `EventHint`.
|
|
2150
|
+
*/
|
|
2151
|
+
function parseEventHintOrCaptureContext(hint) {
|
|
2152
|
+
if (!hint) return;
|
|
2153
|
+
if (hintIsScopeOrFunction(hint)) return {
|
|
2154
|
+
captureContext: hint
|
|
2155
|
+
};
|
|
2156
|
+
if (hintIsScopeContext(hint)) return {
|
|
2157
|
+
captureContext: hint
|
|
2158
|
+
};
|
|
2159
|
+
return hint;
|
|
2160
|
+
}
|
|
2161
|
+
function hintIsScopeOrFunction(hint) {
|
|
2162
|
+
return hint instanceof Scope || typeof hint === "function";
|
|
2163
|
+
}
|
|
2164
|
+
function hintIsScopeContext(hint) {
|
|
2165
|
+
return Object.keys(hint).some(key => captureContextKeys.includes(key));
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2168
|
+
//#endregion
|
|
2169
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/exports.js
|
|
2170
|
+
/**
|
|
2171
|
+
* Captures an exception event and sends it to Sentry.
|
|
2172
|
+
*
|
|
2173
|
+
* @param exception The exception to capture.
|
|
2174
|
+
* @param hint Optional additional data to attach to the Sentry event.
|
|
2175
|
+
* @returns the id of the captured Sentry event.
|
|
2176
|
+
*/
|
|
2177
|
+
function captureException(exception, hint) {
|
|
2178
|
+
return getCurrentScope().captureException(exception, parseEventHintOrCaptureContext(hint));
|
|
2179
|
+
}
|
|
2180
|
+
/**
|
|
2181
|
+
* Captures a message event and sends it to Sentry.
|
|
2182
|
+
*
|
|
2183
|
+
* @param message The message to send to Sentry.
|
|
2184
|
+
* @param captureContext Define the level of the message or pass in additional data to attach to the message.
|
|
2185
|
+
* @returns the id of the captured message.
|
|
2186
|
+
*/
|
|
2187
|
+
function captureMessage(message, captureContext) {
|
|
2188
|
+
const level = typeof captureContext === "string" ? captureContext : void 0;
|
|
2189
|
+
const context = typeof captureContext !== "string" ? {
|
|
2190
|
+
captureContext
|
|
2191
|
+
} : void 0;
|
|
2192
|
+
return getCurrentScope().captureMessage(message, level, context);
|
|
2193
|
+
}
|
|
2194
|
+
/**
|
|
2195
|
+
* Captures a manually created event and sends it to Sentry.
|
|
2196
|
+
*
|
|
2197
|
+
* @param event The event to send to Sentry.
|
|
2198
|
+
* @param hint Optional additional data to attach to the Sentry event.
|
|
2199
|
+
* @returns the id of the captured event.
|
|
2200
|
+
*/
|
|
2201
|
+
function captureEvent(event, hint) {
|
|
2202
|
+
return getCurrentScope().captureEvent(event, hint);
|
|
2203
|
+
}
|
|
2204
|
+
/**
|
|
2205
|
+
* Set key:value that will be sent as tags data with the event.
|
|
2206
|
+
*
|
|
2207
|
+
* Can also be used to unset a tag, by passing `undefined`.
|
|
2208
|
+
*
|
|
2209
|
+
* @param key String key of tag
|
|
2210
|
+
* @param value Value of tag
|
|
2211
|
+
*/
|
|
2212
|
+
function setTag(key, value) {
|
|
2213
|
+
getIsolationScope().setTag(key, value);
|
|
2214
|
+
}
|
|
2215
|
+
/**
|
|
2216
|
+
* Start a session on the current isolation scope.
|
|
2217
|
+
*
|
|
2218
|
+
* @param context (optional) additional properties to be applied to the returned session object
|
|
2219
|
+
*
|
|
2220
|
+
* @returns the new active session
|
|
2221
|
+
*/
|
|
2222
|
+
function startSession(context) {
|
|
2223
|
+
const isolationScope = getIsolationScope();
|
|
2224
|
+
const currentScope = getCurrentScope();
|
|
2225
|
+
const {
|
|
2226
|
+
userAgent
|
|
2227
|
+
} = GLOBAL_OBJ.navigator || {};
|
|
2228
|
+
const session = makeSession({
|
|
2229
|
+
user: currentScope.getUser() || isolationScope.getUser(),
|
|
2230
|
+
...(userAgent && {
|
|
2231
|
+
userAgent
|
|
2232
|
+
}),
|
|
2233
|
+
...context
|
|
2234
|
+
});
|
|
2235
|
+
const currentSession = isolationScope.getSession();
|
|
2236
|
+
if (currentSession?.status === "ok") updateSession(currentSession, {
|
|
2237
|
+
status: "exited"
|
|
2238
|
+
});
|
|
2239
|
+
endSession();
|
|
2240
|
+
isolationScope.setSession(session);
|
|
2241
|
+
return session;
|
|
2242
|
+
}
|
|
2243
|
+
/**
|
|
2244
|
+
* End the session on the current isolation scope.
|
|
2245
|
+
*/
|
|
2246
|
+
function endSession() {
|
|
2247
|
+
const isolationScope = getIsolationScope();
|
|
2248
|
+
const session = getCurrentScope().getSession() || isolationScope.getSession();
|
|
2249
|
+
if (session) closeSession(session);
|
|
2250
|
+
_sendSessionUpdate();
|
|
2251
|
+
isolationScope.setSession();
|
|
2252
|
+
}
|
|
2253
|
+
/**
|
|
2254
|
+
* Sends the current Session on the scope
|
|
2255
|
+
*/
|
|
2256
|
+
function _sendSessionUpdate() {
|
|
2257
|
+
const isolationScope = getIsolationScope();
|
|
2258
|
+
const client = getClient();
|
|
2259
|
+
const session = isolationScope.getSession();
|
|
2260
|
+
if (session && client) client.captureSession(session);
|
|
2261
|
+
}
|
|
2262
|
+
/**
|
|
2263
|
+
* Sends the current session on the scope to Sentry
|
|
2264
|
+
*
|
|
2265
|
+
* @param end If set the session will be marked as exited and removed from the scope.
|
|
2266
|
+
* Defaults to `false`.
|
|
2267
|
+
*/
|
|
2268
|
+
function captureSession(end = false) {
|
|
2269
|
+
if (end) {
|
|
2270
|
+
endSession();
|
|
2271
|
+
return;
|
|
2272
|
+
}
|
|
2273
|
+
_sendSessionUpdate();
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
//#endregion
|
|
2277
|
+
_export({
|
|
2278
|
+
$: generateTraceId,
|
|
2279
|
+
A: spanTimeInputToSeconds,
|
|
2280
|
+
At: isThenable,
|
|
2281
|
+
Bt: getGlobalSingleton,
|
|
2282
|
+
C: convertSpanLinksForEnvelope,
|
|
2283
|
+
Ct: isEvent,
|
|
2284
|
+
D: getStatusMessage,
|
|
2285
|
+
Dt: isPrimitive,
|
|
2286
|
+
E: getSpanDescendants,
|
|
2287
|
+
Et: isPlainObject,
|
|
2288
|
+
Ft: stackParserFromStackParserOptions,
|
|
2289
|
+
G: getCurrentScope,
|
|
2290
|
+
Ht: getSentryCarrier,
|
|
2291
|
+
J: withScope,
|
|
2292
|
+
K: getIsolationScope,
|
|
2293
|
+
Lt: consoleSandbox,
|
|
2294
|
+
M: spanToTransactionTraceContext,
|
|
2295
|
+
Mt: createStackParser,
|
|
2296
|
+
N: getCapturedScopesOnSpan,
|
|
2297
|
+
Nt: getFramesFromEvent,
|
|
2298
|
+
O: showSpanDropWarning,
|
|
2299
|
+
Ot: isRequest,
|
|
2300
|
+
P: setCapturedScopesOnSpan,
|
|
2301
|
+
Pt: getFunctionName,
|
|
2302
|
+
Q: generateSpanId,
|
|
2303
|
+
S: addChildSpanToSpan,
|
|
2304
|
+
St: isErrorEvent,
|
|
2305
|
+
T: getRootSpan,
|
|
2306
|
+
Tt: isParameterizedString,
|
|
2307
|
+
Vt: getMainCarrier,
|
|
2308
|
+
W: getClient,
|
|
2309
|
+
X: _getSpanForScope,
|
|
2310
|
+
Y: getAsyncContextStrategy,
|
|
2311
|
+
Z: _setSpanForScope,
|
|
2312
|
+
_: makeDsn,
|
|
2313
|
+
_t: getLocationHref,
|
|
2314
|
+
a: setTag,
|
|
2315
|
+
at: addExceptionTypeValue,
|
|
2316
|
+
bt: isDOMException,
|
|
2317
|
+
ct: uuid4,
|
|
2318
|
+
d: normalize,
|
|
2319
|
+
dt: fill,
|
|
2320
|
+
et: merge,
|
|
2321
|
+
f: normalizeToSize,
|
|
2322
|
+
ft: getOriginalFunction,
|
|
2323
|
+
g: dsnToString,
|
|
2324
|
+
gt: getComponentName,
|
|
2325
|
+
h: getDynamicSamplingContextFromSpan,
|
|
2326
|
+
ht: stringMatchesSomePattern,
|
|
2327
|
+
i: captureSession,
|
|
2328
|
+
it: addExceptionMechanism,
|
|
2329
|
+
j: spanToJSON,
|
|
2330
|
+
k: spanIsSampled,
|
|
2331
|
+
kt: isString,
|
|
2332
|
+
l: rejectedSyncPromise,
|
|
2333
|
+
lt: addNonEnumerableProperty,
|
|
2334
|
+
m: getDynamicSamplingContextFromScope,
|
|
2335
|
+
mt: safeJoin,
|
|
2336
|
+
n: captureException,
|
|
2337
|
+
nt: dateTimestampInSeconds,
|
|
2338
|
+
o: startSession,
|
|
2339
|
+
ot: checkOrSetAlreadyCaught,
|
|
2340
|
+
p: freezeDscOnSpan,
|
|
2341
|
+
pt: markFunctionWrapped,
|
|
2342
|
+
q: getTraceContextFromScope,
|
|
2343
|
+
r: captureMessage,
|
|
2344
|
+
rt: timestampInSeconds,
|
|
2345
|
+
s: prepareEvent,
|
|
2346
|
+
st: getEventDescription,
|
|
2347
|
+
t: captureEvent,
|
|
2348
|
+
tt: updateSession,
|
|
2349
|
+
u: resolvedSyncPromise,
|
|
2350
|
+
ut: extractExceptionKeysForMessage,
|
|
2351
|
+
vt: htmlTreeAsString,
|
|
2352
|
+
w: getActiveSpan,
|
|
2353
|
+
wt: isInstanceOf,
|
|
2354
|
+
xt: isError,
|
|
2355
|
+
y: hasSpansEnabled,
|
|
2356
|
+
yt: isDOMError
|
|
2357
|
+
});
|
|
2358
|
+
return {
|
|
2359
|
+
setters: [function (_vueRuntimeEsmBundlerLegacy003Js) {
|
|
2360
|
+
init_dist = _vueRuntimeEsmBundlerLegacy003Js.En;
|
|
2361
|
+
global = _vueRuntimeEsmBundlerLegacy003Js.Tn;
|
|
2362
|
+
}],
|
|
2363
|
+
execute: function () {
|
|
2364
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/debug-build.js
|
|
2365
|
+
/**
|
|
2366
|
+
* This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.
|
|
2367
|
+
*
|
|
2368
|
+
* ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.
|
|
2369
|
+
*/
|
|
2370
|
+
_export("Gt", DEBUG_BUILD = typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__); //#endregion
|
|
2371
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/worldwide.js
|
|
2372
|
+
/** Internal global with common properties and Sentry extensions */
|
|
2373
|
+
/** Get's the global object for the current JavaScript runtime */
|
|
2374
|
+
_export("Wt", GLOBAL_OBJ = globalThis); //#endregion
|
|
2375
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/version.js
|
|
2376
|
+
_export("Ut", SDK_VERSION = "9.42.1");
|
|
2377
|
+
_export("It", CONSOLE_LEVELS = ["debug", "info", "warn", "error", "log", "assert", "trace"]);
|
|
2378
|
+
/** Prefix for logging strings */
|
|
2379
|
+
PREFIX = "Sentry Logger ";
|
|
2380
|
+
/** This may be mutated by the console instrumentation. */
|
|
2381
|
+
_export("zt", originalConsoleMethods = {});
|
|
2382
|
+
_export("Rt", debug = {
|
|
2383
|
+
enable,
|
|
2384
|
+
disable,
|
|
2385
|
+
isEnabled,
|
|
2386
|
+
log,
|
|
2387
|
+
warn,
|
|
2388
|
+
error
|
|
2389
|
+
}); //#endregion
|
|
2390
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/stacktrace.js
|
|
2391
|
+
STACKTRACE_FRAME_LIMIT = 50;
|
|
2392
|
+
_export("jt", UNKNOWN_FUNCTION = "?");
|
|
2393
|
+
WEBPACK_ERROR_REGEXP = /\(error: (.*)\)/;
|
|
2394
|
+
STRIP_FRAME_REGEXP = /captureMessage|captureException/;
|
|
2395
|
+
defaultFunctionName = "<anonymous>";
|
|
2396
|
+
objectToString = Object.prototype.toString;
|
|
2397
|
+
WINDOW = GLOBAL_OBJ;
|
|
2398
|
+
DEFAULT_MAX_STRING_LENGTH = 80;
|
|
2399
|
+
ONE_SECOND_IN_MS = 1e3;
|
|
2400
|
+
SCOPE_SPAN_FIELD = "_sentrySpan";
|
|
2401
|
+
DEFAULT_MAX_BREADCRUMBS = 100;
|
|
2402
|
+
/**
|
|
2403
|
+
* A context to be used for capturing an event.
|
|
2404
|
+
* This can either be a Scope, or a partial ScopeContext,
|
|
2405
|
+
* or a callback that receives the current scope and returns a new scope to use.
|
|
2406
|
+
*/
|
|
2407
|
+
/**
|
|
2408
|
+
* Holds additional event information.
|
|
2409
|
+
*/
|
|
2410
|
+
Scope = class Scope {
|
|
2411
|
+
/** Flag if notifying is happening. */
|
|
2412
|
+
/** Callback for client to receive scope changes. */
|
|
2413
|
+
/** Callback list that will be called during event processing. */
|
|
2414
|
+
/** Array of breadcrumbs. */
|
|
2415
|
+
/** User */
|
|
2416
|
+
/** Tags */
|
|
2417
|
+
/** Extra */
|
|
2418
|
+
/** Contexts */
|
|
2419
|
+
/** Attachments */
|
|
2420
|
+
/** Propagation Context for distributed tracing */
|
|
2421
|
+
/**
|
|
2422
|
+
* A place to stash data which is needed at some point in the SDK's event processing pipeline but which shouldn't get
|
|
2423
|
+
* sent to Sentry
|
|
2424
|
+
*/
|
|
2425
|
+
/** Fingerprint */
|
|
2426
|
+
/** Severity */
|
|
2427
|
+
/**
|
|
2428
|
+
* Transaction Name
|
|
2429
|
+
*
|
|
2430
|
+
* IMPORTANT: The transaction name on the scope has nothing to do with root spans/transaction objects.
|
|
2431
|
+
* It's purpose is to assign a transaction to the scope that's added to non-transaction events.
|
|
2432
|
+
*/
|
|
2433
|
+
/** Session */
|
|
2434
|
+
/** The client on this scope */
|
|
2435
|
+
/** Contains the last event id of a captured event. */
|
|
2436
|
+
constructor() {
|
|
2437
|
+
this._notifyingListeners = false;
|
|
2438
|
+
this._scopeListeners = [];
|
|
2439
|
+
this._eventProcessors = [];
|
|
2440
|
+
this._breadcrumbs = [];
|
|
2441
|
+
this._attachments = [];
|
|
2442
|
+
this._user = {};
|
|
2443
|
+
this._tags = {};
|
|
2444
|
+
this._extra = {};
|
|
2445
|
+
this._contexts = {};
|
|
2446
|
+
this._sdkProcessingMetadata = {};
|
|
2447
|
+
this._propagationContext = {
|
|
2448
|
+
traceId: generateTraceId(),
|
|
2449
|
+
sampleRand: Math.random()
|
|
2450
|
+
};
|
|
2451
|
+
}
|
|
2452
|
+
/**
|
|
2453
|
+
* Clone all data from this scope into a new scope.
|
|
2454
|
+
*/
|
|
2455
|
+
clone() {
|
|
2456
|
+
const newScope = new Scope();
|
|
2457
|
+
newScope._breadcrumbs = [...this._breadcrumbs];
|
|
2458
|
+
newScope._tags = {
|
|
2459
|
+
...this._tags
|
|
2460
|
+
};
|
|
2461
|
+
newScope._extra = {
|
|
2462
|
+
...this._extra
|
|
2463
|
+
};
|
|
2464
|
+
newScope._contexts = {
|
|
2465
|
+
...this._contexts
|
|
2466
|
+
};
|
|
2467
|
+
if (this._contexts.flags) newScope._contexts.flags = {
|
|
2468
|
+
values: [...this._contexts.flags.values]
|
|
2469
|
+
};
|
|
2470
|
+
newScope._user = this._user;
|
|
2471
|
+
newScope._level = this._level;
|
|
2472
|
+
newScope._session = this._session;
|
|
2473
|
+
newScope._transactionName = this._transactionName;
|
|
2474
|
+
newScope._fingerprint = this._fingerprint;
|
|
2475
|
+
newScope._eventProcessors = [...this._eventProcessors];
|
|
2476
|
+
newScope._attachments = [...this._attachments];
|
|
2477
|
+
newScope._sdkProcessingMetadata = {
|
|
2478
|
+
...this._sdkProcessingMetadata
|
|
2479
|
+
};
|
|
2480
|
+
newScope._propagationContext = {
|
|
2481
|
+
...this._propagationContext
|
|
2482
|
+
};
|
|
2483
|
+
newScope._client = this._client;
|
|
2484
|
+
newScope._lastEventId = this._lastEventId;
|
|
2485
|
+
_setSpanForScope(newScope, _getSpanForScope(this));
|
|
2486
|
+
return newScope;
|
|
2487
|
+
}
|
|
2488
|
+
/**
|
|
2489
|
+
* Update the client assigned to this scope.
|
|
2490
|
+
* Note that not every scope will have a client assigned - isolation scopes & the global scope will generally not have a client,
|
|
2491
|
+
* as well as manually created scopes.
|
|
2492
|
+
*/
|
|
2493
|
+
setClient(client) {
|
|
2494
|
+
this._client = client;
|
|
2495
|
+
}
|
|
2496
|
+
/**
|
|
2497
|
+
* Set the ID of the last captured error event.
|
|
2498
|
+
* This is generally only captured on the isolation scope.
|
|
2499
|
+
*/
|
|
2500
|
+
setLastEventId(lastEventId) {
|
|
2501
|
+
this._lastEventId = lastEventId;
|
|
2502
|
+
}
|
|
2503
|
+
/**
|
|
2504
|
+
* Get the client assigned to this scope.
|
|
2505
|
+
*/
|
|
2506
|
+
getClient() {
|
|
2507
|
+
return this._client;
|
|
2508
|
+
}
|
|
2509
|
+
/**
|
|
2510
|
+
* Get the ID of the last captured error event.
|
|
2511
|
+
* This is generally only available on the isolation scope.
|
|
2512
|
+
*/
|
|
2513
|
+
lastEventId() {
|
|
2514
|
+
return this._lastEventId;
|
|
2515
|
+
}
|
|
2516
|
+
/**
|
|
2517
|
+
* @inheritDoc
|
|
2518
|
+
*/
|
|
2519
|
+
addScopeListener(callback) {
|
|
2520
|
+
this._scopeListeners.push(callback);
|
|
2521
|
+
}
|
|
2522
|
+
/**
|
|
2523
|
+
* Add an event processor that will be called before an event is sent.
|
|
2524
|
+
*/
|
|
2525
|
+
addEventProcessor(callback) {
|
|
2526
|
+
this._eventProcessors.push(callback);
|
|
2527
|
+
return this;
|
|
2528
|
+
}
|
|
2529
|
+
/**
|
|
2530
|
+
* Set the user for this scope.
|
|
2531
|
+
* Set to `null` to unset the user.
|
|
2532
|
+
*/
|
|
2533
|
+
setUser(user) {
|
|
2534
|
+
this._user = user || {
|
|
2535
|
+
email: void 0,
|
|
2536
|
+
id: void 0,
|
|
2537
|
+
ip_address: void 0,
|
|
2538
|
+
username: void 0
|
|
2539
|
+
};
|
|
2540
|
+
if (this._session) updateSession(this._session, {
|
|
2541
|
+
user
|
|
2542
|
+
});
|
|
2543
|
+
this._notifyScopeListeners();
|
|
2544
|
+
return this;
|
|
2545
|
+
}
|
|
2546
|
+
/**
|
|
2547
|
+
* Get the user from this scope.
|
|
2548
|
+
*/
|
|
2549
|
+
getUser() {
|
|
2550
|
+
return this._user;
|
|
2551
|
+
}
|
|
2552
|
+
/**
|
|
2553
|
+
* Set an object that will be merged into existing tags on the scope,
|
|
2554
|
+
* and will be sent as tags data with the event.
|
|
2555
|
+
*/
|
|
2556
|
+
setTags(tags) {
|
|
2557
|
+
this._tags = {
|
|
2558
|
+
...this._tags,
|
|
2559
|
+
...tags
|
|
2560
|
+
};
|
|
2561
|
+
this._notifyScopeListeners();
|
|
2562
|
+
return this;
|
|
2563
|
+
}
|
|
2564
|
+
/**
|
|
2565
|
+
* Set a single tag that will be sent as tags data with the event.
|
|
2566
|
+
*/
|
|
2567
|
+
setTag(key, value) {
|
|
2568
|
+
this._tags = {
|
|
2569
|
+
...this._tags,
|
|
2570
|
+
[key]: value
|
|
2571
|
+
};
|
|
2572
|
+
this._notifyScopeListeners();
|
|
2573
|
+
return this;
|
|
2574
|
+
}
|
|
2575
|
+
/**
|
|
2576
|
+
* Set an object that will be merged into existing extra on the scope,
|
|
2577
|
+
* and will be sent as extra data with the event.
|
|
2578
|
+
*/
|
|
2579
|
+
setExtras(extras) {
|
|
2580
|
+
this._extra = {
|
|
2581
|
+
...this._extra,
|
|
2582
|
+
...extras
|
|
2583
|
+
};
|
|
2584
|
+
this._notifyScopeListeners();
|
|
2585
|
+
return this;
|
|
2586
|
+
}
|
|
2587
|
+
/**
|
|
2588
|
+
* Set a single key:value extra entry that will be sent as extra data with the event.
|
|
2589
|
+
*/
|
|
2590
|
+
setExtra(key, extra) {
|
|
2591
|
+
this._extra = {
|
|
2592
|
+
...this._extra,
|
|
2593
|
+
[key]: extra
|
|
2594
|
+
};
|
|
2595
|
+
this._notifyScopeListeners();
|
|
2596
|
+
return this;
|
|
2597
|
+
}
|
|
2598
|
+
/**
|
|
2599
|
+
* Sets the fingerprint on the scope to send with the events.
|
|
2600
|
+
* @param {string[]} fingerprint Fingerprint to group events in Sentry.
|
|
2601
|
+
*/
|
|
2602
|
+
setFingerprint(fingerprint) {
|
|
2603
|
+
this._fingerprint = fingerprint;
|
|
2604
|
+
this._notifyScopeListeners();
|
|
2605
|
+
return this;
|
|
2606
|
+
}
|
|
2607
|
+
/**
|
|
2608
|
+
* Sets the level on the scope for future events.
|
|
2609
|
+
*/
|
|
2610
|
+
setLevel(level) {
|
|
2611
|
+
this._level = level;
|
|
2612
|
+
this._notifyScopeListeners();
|
|
2613
|
+
return this;
|
|
2614
|
+
}
|
|
2615
|
+
/**
|
|
2616
|
+
* Sets the transaction name on the scope so that the name of e.g. taken server route or
|
|
2617
|
+
* the page location is attached to future events.
|
|
2618
|
+
*
|
|
2619
|
+
* IMPORTANT: Calling this function does NOT change the name of the currently active
|
|
2620
|
+
* root span. If you want to change the name of the active root span, use
|
|
2621
|
+
* `Sentry.updateSpanName(rootSpan, 'new name')` instead.
|
|
2622
|
+
*
|
|
2623
|
+
* By default, the SDK updates the scope's transaction name automatically on sensible
|
|
2624
|
+
* occasions, such as a page navigation or when handling a new request on the server.
|
|
2625
|
+
*/
|
|
2626
|
+
setTransactionName(name) {
|
|
2627
|
+
this._transactionName = name;
|
|
2628
|
+
this._notifyScopeListeners();
|
|
2629
|
+
return this;
|
|
2630
|
+
}
|
|
2631
|
+
/**
|
|
2632
|
+
* Sets context data with the given name.
|
|
2633
|
+
* Data passed as context will be normalized. You can also pass `null` to unset the context.
|
|
2634
|
+
* Note that context data will not be merged - calling `setContext` will overwrite an existing context with the same key.
|
|
2635
|
+
*/
|
|
2636
|
+
setContext(key, context) {
|
|
2637
|
+
if (context === null) delete this._contexts[key];else this._contexts[key] = context;
|
|
2638
|
+
this._notifyScopeListeners();
|
|
2639
|
+
return this;
|
|
2640
|
+
}
|
|
2641
|
+
/**
|
|
2642
|
+
* Set the session for the scope.
|
|
2643
|
+
*/
|
|
2644
|
+
setSession(session) {
|
|
2645
|
+
if (!session) delete this._session;else this._session = session;
|
|
2646
|
+
this._notifyScopeListeners();
|
|
2647
|
+
return this;
|
|
2648
|
+
}
|
|
2649
|
+
/**
|
|
2650
|
+
* Get the session from the scope.
|
|
2651
|
+
*/
|
|
2652
|
+
getSession() {
|
|
2653
|
+
return this._session;
|
|
2654
|
+
}
|
|
2655
|
+
/**
|
|
2656
|
+
* Updates the scope with provided data. Can work in three variations:
|
|
2657
|
+
* - plain object containing updatable attributes
|
|
2658
|
+
* - Scope instance that'll extract the attributes from
|
|
2659
|
+
* - callback function that'll receive the current scope as an argument and allow for modifications
|
|
2660
|
+
*/
|
|
2661
|
+
update(captureContext) {
|
|
2662
|
+
if (!captureContext) return this;
|
|
2663
|
+
const scopeToMerge = typeof captureContext === "function" ? captureContext(this) : captureContext;
|
|
2664
|
+
const {
|
|
2665
|
+
tags,
|
|
2666
|
+
extra,
|
|
2667
|
+
user,
|
|
2668
|
+
contexts,
|
|
2669
|
+
level,
|
|
2670
|
+
fingerprint = [],
|
|
2671
|
+
propagationContext
|
|
2672
|
+
} = (scopeToMerge instanceof Scope ? scopeToMerge.getScopeData() : isPlainObject(scopeToMerge) ? captureContext : void 0) || {};
|
|
2673
|
+
this._tags = {
|
|
2674
|
+
...this._tags,
|
|
2675
|
+
...tags
|
|
2676
|
+
};
|
|
2677
|
+
this._extra = {
|
|
2678
|
+
...this._extra,
|
|
2679
|
+
...extra
|
|
2680
|
+
};
|
|
2681
|
+
this._contexts = {
|
|
2682
|
+
...this._contexts,
|
|
2683
|
+
...contexts
|
|
2684
|
+
};
|
|
2685
|
+
if (user && Object.keys(user).length) this._user = user;
|
|
2686
|
+
if (level) this._level = level;
|
|
2687
|
+
if (fingerprint.length) this._fingerprint = fingerprint;
|
|
2688
|
+
if (propagationContext) this._propagationContext = propagationContext;
|
|
2689
|
+
return this;
|
|
2690
|
+
}
|
|
2691
|
+
/**
|
|
2692
|
+
* Clears the current scope and resets its properties.
|
|
2693
|
+
* Note: The client will not be cleared.
|
|
2694
|
+
*/
|
|
2695
|
+
clear() {
|
|
2696
|
+
this._breadcrumbs = [];
|
|
2697
|
+
this._tags = {};
|
|
2698
|
+
this._extra = {};
|
|
2699
|
+
this._user = {};
|
|
2700
|
+
this._contexts = {};
|
|
2701
|
+
this._level = void 0;
|
|
2702
|
+
this._transactionName = void 0;
|
|
2703
|
+
this._fingerprint = void 0;
|
|
2704
|
+
this._session = void 0;
|
|
2705
|
+
_setSpanForScope(this, void 0);
|
|
2706
|
+
this._attachments = [];
|
|
2707
|
+
this.setPropagationContext({
|
|
2708
|
+
traceId: generateTraceId(),
|
|
2709
|
+
sampleRand: Math.random()
|
|
2710
|
+
});
|
|
2711
|
+
this._notifyScopeListeners();
|
|
2712
|
+
return this;
|
|
2713
|
+
}
|
|
2714
|
+
/**
|
|
2715
|
+
* Adds a breadcrumb to the scope.
|
|
2716
|
+
* By default, the last 100 breadcrumbs are kept.
|
|
2717
|
+
*/
|
|
2718
|
+
addBreadcrumb(breadcrumb, maxBreadcrumbs) {
|
|
2719
|
+
const maxCrumbs = typeof maxBreadcrumbs === "number" ? maxBreadcrumbs : DEFAULT_MAX_BREADCRUMBS;
|
|
2720
|
+
if (maxCrumbs <= 0) return this;
|
|
2721
|
+
const mergedBreadcrumb = {
|
|
2722
|
+
timestamp: dateTimestampInSeconds(),
|
|
2723
|
+
...breadcrumb,
|
|
2724
|
+
message: breadcrumb.message ? truncate(breadcrumb.message, 2048) : breadcrumb.message
|
|
2725
|
+
};
|
|
2726
|
+
this._breadcrumbs.push(mergedBreadcrumb);
|
|
2727
|
+
if (this._breadcrumbs.length > maxCrumbs) {
|
|
2728
|
+
this._breadcrumbs = this._breadcrumbs.slice(-maxCrumbs);
|
|
2729
|
+
this._client?.recordDroppedEvent("buffer_overflow", "log_item");
|
|
2730
|
+
}
|
|
2731
|
+
this._notifyScopeListeners();
|
|
2732
|
+
return this;
|
|
2733
|
+
}
|
|
2734
|
+
/**
|
|
2735
|
+
* Get the last breadcrumb of the scope.
|
|
2736
|
+
*/
|
|
2737
|
+
getLastBreadcrumb() {
|
|
2738
|
+
return this._breadcrumbs[this._breadcrumbs.length - 1];
|
|
2739
|
+
}
|
|
2740
|
+
/**
|
|
2741
|
+
* Clear all breadcrumbs from the scope.
|
|
2742
|
+
*/
|
|
2743
|
+
clearBreadcrumbs() {
|
|
2744
|
+
this._breadcrumbs = [];
|
|
2745
|
+
this._notifyScopeListeners();
|
|
2746
|
+
return this;
|
|
2747
|
+
}
|
|
2748
|
+
/**
|
|
2749
|
+
* Add an attachment to the scope.
|
|
2750
|
+
*/
|
|
2751
|
+
addAttachment(attachment) {
|
|
2752
|
+
this._attachments.push(attachment);
|
|
2753
|
+
return this;
|
|
2754
|
+
}
|
|
2755
|
+
/**
|
|
2756
|
+
* Clear all attachments from the scope.
|
|
2757
|
+
*/
|
|
2758
|
+
clearAttachments() {
|
|
2759
|
+
this._attachments = [];
|
|
2760
|
+
return this;
|
|
2761
|
+
}
|
|
2762
|
+
/**
|
|
2763
|
+
* Get the data of this scope, which should be applied to an event during processing.
|
|
2764
|
+
*/
|
|
2765
|
+
getScopeData() {
|
|
2766
|
+
return {
|
|
2767
|
+
breadcrumbs: this._breadcrumbs,
|
|
2768
|
+
attachments: this._attachments,
|
|
2769
|
+
contexts: this._contexts,
|
|
2770
|
+
tags: this._tags,
|
|
2771
|
+
extra: this._extra,
|
|
2772
|
+
user: this._user,
|
|
2773
|
+
level: this._level,
|
|
2774
|
+
fingerprint: this._fingerprint || [],
|
|
2775
|
+
eventProcessors: this._eventProcessors,
|
|
2776
|
+
propagationContext: this._propagationContext,
|
|
2777
|
+
sdkProcessingMetadata: this._sdkProcessingMetadata,
|
|
2778
|
+
transactionName: this._transactionName,
|
|
2779
|
+
span: _getSpanForScope(this)
|
|
2780
|
+
};
|
|
2781
|
+
}
|
|
2782
|
+
/**
|
|
2783
|
+
* Add data which will be accessible during event processing but won't get sent to Sentry.
|
|
2784
|
+
*/
|
|
2785
|
+
setSDKProcessingMetadata(newData) {
|
|
2786
|
+
this._sdkProcessingMetadata = merge(this._sdkProcessingMetadata, newData, 2);
|
|
2787
|
+
return this;
|
|
2788
|
+
}
|
|
2789
|
+
/**
|
|
2790
|
+
* Add propagation context to the scope, used for distributed tracing
|
|
2791
|
+
*/
|
|
2792
|
+
setPropagationContext(context) {
|
|
2793
|
+
this._propagationContext = context;
|
|
2794
|
+
return this;
|
|
2795
|
+
}
|
|
2796
|
+
/**
|
|
2797
|
+
* Get propagation context from the scope, used for distributed tracing
|
|
2798
|
+
*/
|
|
2799
|
+
getPropagationContext() {
|
|
2800
|
+
return this._propagationContext;
|
|
2801
|
+
}
|
|
2802
|
+
/**
|
|
2803
|
+
* Capture an exception for this scope.
|
|
2804
|
+
*
|
|
2805
|
+
* @returns {string} The id of the captured Sentry event.
|
|
2806
|
+
*/
|
|
2807
|
+
captureException(exception, hint) {
|
|
2808
|
+
const eventId = hint?.event_id || uuid4();
|
|
2809
|
+
if (!this._client) {
|
|
2810
|
+
DEBUG_BUILD && debug.warn("No client configured on scope - will not capture exception!");
|
|
2811
|
+
return eventId;
|
|
2812
|
+
}
|
|
2813
|
+
const syntheticException = /* @__PURE__ */new Error("Sentry syntheticException");
|
|
2814
|
+
this._client.captureException(exception, {
|
|
2815
|
+
originalException: exception,
|
|
2816
|
+
syntheticException,
|
|
2817
|
+
...hint,
|
|
2818
|
+
event_id: eventId
|
|
2819
|
+
}, this);
|
|
2820
|
+
return eventId;
|
|
2821
|
+
}
|
|
2822
|
+
/**
|
|
2823
|
+
* Capture a message for this scope.
|
|
2824
|
+
*
|
|
2825
|
+
* @returns {string} The id of the captured message.
|
|
2826
|
+
*/
|
|
2827
|
+
captureMessage(message, level, hint) {
|
|
2828
|
+
const eventId = hint?.event_id || uuid4();
|
|
2829
|
+
if (!this._client) {
|
|
2830
|
+
DEBUG_BUILD && debug.warn("No client configured on scope - will not capture message!");
|
|
2831
|
+
return eventId;
|
|
2832
|
+
}
|
|
2833
|
+
const syntheticException = new Error(message);
|
|
2834
|
+
this._client.captureMessage(message, level, {
|
|
2835
|
+
originalException: message,
|
|
2836
|
+
syntheticException,
|
|
2837
|
+
...hint,
|
|
2838
|
+
event_id: eventId
|
|
2839
|
+
}, this);
|
|
2840
|
+
return eventId;
|
|
2841
|
+
}
|
|
2842
|
+
/**
|
|
2843
|
+
* Capture a Sentry event for this scope.
|
|
2844
|
+
*
|
|
2845
|
+
* @returns {string} The id of the captured event.
|
|
2846
|
+
*/
|
|
2847
|
+
captureEvent(event, hint) {
|
|
2848
|
+
const eventId = hint?.event_id || uuid4();
|
|
2849
|
+
if (!this._client) {
|
|
2850
|
+
DEBUG_BUILD && debug.warn("No client configured on scope - will not capture event!");
|
|
2851
|
+
return eventId;
|
|
2852
|
+
}
|
|
2853
|
+
this._client.captureEvent(event, {
|
|
2854
|
+
...hint,
|
|
2855
|
+
event_id: eventId
|
|
2856
|
+
}, this);
|
|
2857
|
+
return eventId;
|
|
2858
|
+
}
|
|
2859
|
+
/**
|
|
2860
|
+
* This will be called on every set call.
|
|
2861
|
+
*/
|
|
2862
|
+
_notifyScopeListeners() {
|
|
2863
|
+
if (!this._notifyingListeners) {
|
|
2864
|
+
this._notifyingListeners = true;
|
|
2865
|
+
this._scopeListeners.forEach(callback => {
|
|
2866
|
+
callback(this);
|
|
2867
|
+
});
|
|
2868
|
+
this._notifyingListeners = false;
|
|
2869
|
+
}
|
|
2870
|
+
}
|
|
2871
|
+
};
|
|
2872
|
+
AsyncContextStack = class {
|
|
2873
|
+
constructor(scope, isolationScope) {
|
|
2874
|
+
let assignedScope;
|
|
2875
|
+
if (!scope) assignedScope = new Scope();else assignedScope = scope;
|
|
2876
|
+
let assignedIsolationScope;
|
|
2877
|
+
if (!isolationScope) assignedIsolationScope = new Scope();else assignedIsolationScope = isolationScope;
|
|
2878
|
+
this._stack = [{
|
|
2879
|
+
scope: assignedScope
|
|
2880
|
+
}];
|
|
2881
|
+
this._isolationScope = assignedIsolationScope;
|
|
2882
|
+
}
|
|
2883
|
+
/**
|
|
2884
|
+
* Fork a scope for the stack.
|
|
2885
|
+
*/
|
|
2886
|
+
withScope(callback) {
|
|
2887
|
+
const scope = this._pushScope();
|
|
2888
|
+
let maybePromiseResult;
|
|
2889
|
+
try {
|
|
2890
|
+
maybePromiseResult = callback(scope);
|
|
2891
|
+
} catch (e) {
|
|
2892
|
+
this._popScope();
|
|
2893
|
+
throw e;
|
|
2894
|
+
}
|
|
2895
|
+
if (isThenable(maybePromiseResult)) return maybePromiseResult.then(res => {
|
|
2896
|
+
this._popScope();
|
|
2897
|
+
return res;
|
|
2898
|
+
}, e => {
|
|
2899
|
+
this._popScope();
|
|
2900
|
+
throw e;
|
|
2901
|
+
});
|
|
2902
|
+
this._popScope();
|
|
2903
|
+
return maybePromiseResult;
|
|
2904
|
+
}
|
|
2905
|
+
/**
|
|
2906
|
+
* Get the client of the stack.
|
|
2907
|
+
*/
|
|
2908
|
+
getClient() {
|
|
2909
|
+
return this.getStackTop().client;
|
|
2910
|
+
}
|
|
2911
|
+
/**
|
|
2912
|
+
* Returns the scope of the top stack.
|
|
2913
|
+
*/
|
|
2914
|
+
getScope() {
|
|
2915
|
+
return this.getStackTop().scope;
|
|
2916
|
+
}
|
|
2917
|
+
/**
|
|
2918
|
+
* Get the isolation scope for the stack.
|
|
2919
|
+
*/
|
|
2920
|
+
getIsolationScope() {
|
|
2921
|
+
return this._isolationScope;
|
|
2922
|
+
}
|
|
2923
|
+
/**
|
|
2924
|
+
* Returns the topmost scope layer in the order domain > local > process.
|
|
2925
|
+
*/
|
|
2926
|
+
getStackTop() {
|
|
2927
|
+
return this._stack[this._stack.length - 1];
|
|
2928
|
+
}
|
|
2929
|
+
/**
|
|
2930
|
+
* Push a scope to the stack.
|
|
2931
|
+
*/
|
|
2932
|
+
_pushScope() {
|
|
2933
|
+
const scope = this.getScope().clone();
|
|
2934
|
+
this._stack.push({
|
|
2935
|
+
client: this.getClient(),
|
|
2936
|
+
scope
|
|
2937
|
+
});
|
|
2938
|
+
return scope;
|
|
2939
|
+
}
|
|
2940
|
+
/**
|
|
2941
|
+
* Pop a scope from the stack.
|
|
2942
|
+
*/
|
|
2943
|
+
_popScope() {
|
|
2944
|
+
if (this._stack.length <= 1) return false;
|
|
2945
|
+
return !!this._stack.pop();
|
|
2946
|
+
}
|
|
2947
|
+
};
|
|
2948
|
+
_export("U", SEMANTIC_ATTRIBUTE_SENTRY_SOURCE = "sentry.source");
|
|
2949
|
+
/**
|
|
2950
|
+
* Attributes that holds the sample rate that was locally applied to a span.
|
|
2951
|
+
* If this attribute is not defined, it means that the span inherited a sampling decision.
|
|
2952
|
+
*
|
|
2953
|
+
* NOTE: Is only defined on root spans.
|
|
2954
|
+
*/
|
|
2955
|
+
_export("H", SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE = "sentry.sample_rate");
|
|
2956
|
+
/**
|
|
2957
|
+
* Attribute holding the sample rate of the previous trace.
|
|
2958
|
+
* This is used to sample consistently across subsequent traces in the browser SDK.
|
|
2959
|
+
*
|
|
2960
|
+
* Note: Only defined on root spans, if opted into consistent sampling
|
|
2961
|
+
*/
|
|
2962
|
+
SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE = "sentry.previous_trace_sample_rate";
|
|
2963
|
+
/**
|
|
2964
|
+
* Use this attribute to represent the operation of a span.
|
|
2965
|
+
*/
|
|
2966
|
+
_export("B", SEMANTIC_ATTRIBUTE_SENTRY_OP = "sentry.op");
|
|
2967
|
+
/**
|
|
2968
|
+
* Use this attribute to represent the origin of a span.
|
|
2969
|
+
*/
|
|
2970
|
+
_export("V", SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = "sentry.origin");
|
|
2971
|
+
/** The unit of a measurement, which may be stored as a TimedEvent. */
|
|
2972
|
+
_export("R", SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT = "sentry.measurement_unit");
|
|
2973
|
+
/** The value of a measurement, which may be stored as a TimedEvent. */
|
|
2974
|
+
_export("z", SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE = "sentry.measurement_value");
|
|
2975
|
+
/**
|
|
2976
|
+
* A custom span name set by users guaranteed to be taken over any automatically
|
|
2977
|
+
* inferred name. This attribute is removed before the span is sent.
|
|
2978
|
+
*
|
|
2979
|
+
* @internal only meant for internal SDK usage
|
|
2980
|
+
* @hidden
|
|
2981
|
+
*/
|
|
2982
|
+
_export("L", SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME = "sentry.custom_span_name");
|
|
2983
|
+
/**
|
|
2984
|
+
* The id of the profile that this span occurred in.
|
|
2985
|
+
*/
|
|
2986
|
+
_export("I", SEMANTIC_ATTRIBUTE_PROFILE_ID = "sentry.profile_id");
|
|
2987
|
+
_export("F", SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME = "sentry.exclusive_time"); //#endregion
|
|
2988
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/tracing/spanstatus.js
|
|
2989
|
+
SPAN_STATUS_UNSET = 0;
|
|
2990
|
+
SPAN_STATUS_OK = 1; //#endregion
|
|
2991
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/tracing/utils.js
|
|
2992
|
+
SCOPE_ON_START_SPAN_FIELD = "_sentryScope";
|
|
2993
|
+
ISOLATION_SCOPE_ON_START_SPAN_FIELD = "_sentryIsolationScope";
|
|
2994
|
+
SENTRY_BAGGAGE_KEY_PREFIX_REGEX = /^sentry-/;
|
|
2995
|
+
_export("b", TRACE_FLAG_NONE = 0);
|
|
2996
|
+
_export("x", TRACE_FLAG_SAMPLED = 1);
|
|
2997
|
+
hasShownSpanDropWarning = false;
|
|
2998
|
+
CHILD_SPANS_FIELD = "_sentryChildSpans";
|
|
2999
|
+
ROOT_SPAN_FIELD = "_sentryRootSpan";
|
|
3000
|
+
_export("v", DEFAULT_ENVIRONMENT = "production"); //#endregion
|
|
3001
|
+
//#region ../../../node_modules/.pnpm/@sentry+core@9.42.1/node_modules/@sentry/core/build/esm/utils/dsn.js
|
|
3002
|
+
/** Regular expression used to extract org ID from a DSN host. */
|
|
3003
|
+
ORG_ID_REGEX = /^o(\d+)\./;
|
|
3004
|
+
/** Regular expression used to parse a Dsn. */
|
|
3005
|
+
DSN_REGEX = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;
|
|
3006
|
+
FROZEN_DSC_FIELD = "_frozenDsc";
|
|
3007
|
+
init_dist();
|
|
3008
|
+
STATE_PENDING = 0;
|
|
3009
|
+
STATE_RESOLVED = 1;
|
|
3010
|
+
STATE_REJECTED = 2;
|
|
3011
|
+
_export("c", SyncPromise = class SyncPromise {
|
|
3012
|
+
constructor(executor) {
|
|
3013
|
+
this._state = STATE_PENDING;
|
|
3014
|
+
this._handlers = [];
|
|
3015
|
+
this._runExecutor(executor);
|
|
3016
|
+
}
|
|
3017
|
+
/** @inheritdoc */
|
|
3018
|
+
then(onfulfilled, onrejected) {
|
|
3019
|
+
return new SyncPromise((resolve, reject) => {
|
|
3020
|
+
this._handlers.push([false, result => {
|
|
3021
|
+
if (!onfulfilled) resolve(result);else try {
|
|
3022
|
+
resolve(onfulfilled(result));
|
|
3023
|
+
} catch (e) {
|
|
3024
|
+
reject(e);
|
|
3025
|
+
}
|
|
3026
|
+
}, reason => {
|
|
3027
|
+
if (!onrejected) reject(reason);else try {
|
|
3028
|
+
resolve(onrejected(reason));
|
|
3029
|
+
} catch (e) {
|
|
3030
|
+
reject(e);
|
|
3031
|
+
}
|
|
3032
|
+
}]);
|
|
3033
|
+
this._executeHandlers();
|
|
3034
|
+
});
|
|
3035
|
+
}
|
|
3036
|
+
/** @inheritdoc */
|
|
3037
|
+
catch(onrejected) {
|
|
3038
|
+
return this.then(val => val, onrejected);
|
|
3039
|
+
}
|
|
3040
|
+
/** @inheritdoc */
|
|
3041
|
+
finally(onfinally) {
|
|
3042
|
+
return new SyncPromise((resolve, reject) => {
|
|
3043
|
+
let val;
|
|
3044
|
+
let isRejected;
|
|
3045
|
+
return this.then(value => {
|
|
3046
|
+
isRejected = false;
|
|
3047
|
+
val = value;
|
|
3048
|
+
if (onfinally) onfinally();
|
|
3049
|
+
}, reason => {
|
|
3050
|
+
isRejected = true;
|
|
3051
|
+
val = reason;
|
|
3052
|
+
if (onfinally) onfinally();
|
|
3053
|
+
}).then(() => {
|
|
3054
|
+
if (isRejected) {
|
|
3055
|
+
reject(val);
|
|
3056
|
+
return;
|
|
3057
|
+
}
|
|
3058
|
+
resolve(val);
|
|
3059
|
+
});
|
|
3060
|
+
});
|
|
3061
|
+
}
|
|
3062
|
+
/** Excute the resolve/reject handlers. */
|
|
3063
|
+
_executeHandlers() {
|
|
3064
|
+
if (this._state === STATE_PENDING) return;
|
|
3065
|
+
const cachedHandlers = this._handlers.slice();
|
|
3066
|
+
this._handlers = [];
|
|
3067
|
+
cachedHandlers.forEach(handler => {
|
|
3068
|
+
if (handler[0]) return;
|
|
3069
|
+
if (this._state === STATE_RESOLVED) handler[1](this._value);
|
|
3070
|
+
if (this._state === STATE_REJECTED) handler[2](this._value);
|
|
3071
|
+
handler[0] = true;
|
|
3072
|
+
});
|
|
3073
|
+
}
|
|
3074
|
+
/** Run the executor for the SyncPromise. */
|
|
3075
|
+
_runExecutor(executor) {
|
|
3076
|
+
const setResult = (state, value) => {
|
|
3077
|
+
if (this._state !== STATE_PENDING) return;
|
|
3078
|
+
if (isThenable(value)) {
|
|
3079
|
+
value.then(resolve, reject);
|
|
3080
|
+
return;
|
|
3081
|
+
}
|
|
3082
|
+
this._state = state;
|
|
3083
|
+
this._value = value;
|
|
3084
|
+
this._executeHandlers();
|
|
3085
|
+
};
|
|
3086
|
+
const resolve = value => {
|
|
3087
|
+
setResult(STATE_RESOLVED, value);
|
|
3088
|
+
};
|
|
3089
|
+
const reject = reason => {
|
|
3090
|
+
setResult(STATE_REJECTED, reason);
|
|
3091
|
+
};
|
|
3092
|
+
try {
|
|
3093
|
+
executor(resolve, reject);
|
|
3094
|
+
} catch (e) {
|
|
3095
|
+
reject(e);
|
|
3096
|
+
}
|
|
3097
|
+
}
|
|
3098
|
+
});
|
|
3099
|
+
captureContextKeys = ["user", "level", "extra", "contexts", "tags", "fingerprint", "propagationContext"];
|
|
3100
|
+
}
|
|
3101
|
+
};
|
|
3102
|
+
});
|
|
3103
|
+
})();
|