@qonto/embed-sdk 0.65.0 → 0.67.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.
Files changed (479) hide show
  1. package/dist/_virtual/Observable.js +1 -0
  2. package/dist/_virtual/index2.js +1 -1
  3. package/dist/_virtual/index3.js +1 -0
  4. package/dist/auth-links/auth-links.d.ts +7 -7
  5. package/dist/auth-links/auth-links.d.ts.map +1 -1
  6. package/dist/auth-links/client/auth-links.client.d.ts +5 -6
  7. package/dist/auth-links/client/auth-links.client.d.ts.map +1 -1
  8. package/dist/auth-links/index.d.ts +6 -4
  9. package/dist/auth-links/index.d.ts.map +1 -1
  10. package/dist/beneficiaries/beneficiaries.d.ts +10 -10
  11. package/dist/beneficiaries/beneficiaries.d.ts.map +1 -1
  12. package/dist/beneficiaries/client/beneficiaries.client.d.ts +11 -13
  13. package/dist/beneficiaries/client/beneficiaries.client.d.ts.map +1 -1
  14. package/dist/beneficiaries/index.d.ts +1 -1
  15. package/dist/cards/client/cards.client.d.ts +11 -11
  16. package/dist/cards/client/cards.client.d.ts.map +1 -1
  17. package/dist/cards/index.d.ts +6 -3
  18. package/dist/cards/index.d.ts.map +1 -1
  19. package/dist/index.umd.js +5 -5
  20. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/attribution/helpers.js +1 -0
  21. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/attribution/web-attribution.js +1 -0
  22. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/browser-client-factory.js +1 -0
  23. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/browser-client.js +1 -0
  24. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/config/joined-config.js +1 -0
  25. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/config.js +1 -0
  26. package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/cookie-migration/index.js +1 -1
  27. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/default-tracking.js +1 -0
  28. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/index.js +1 -0
  29. package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/plugins/context.js +1 -1
  30. package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/plugins/file-download-tracking.js +1 -1
  31. package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/plugins/form-interaction-tracking.js +1 -1
  32. package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/plugins/network-connectivity-checker.js +1 -1
  33. package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/storage/local-storage.js +1 -1
  34. package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/storage/session-storage.js +1 -1
  35. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/transports/fetch.js +1 -0
  36. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/transports/send-beacon.js +1 -0
  37. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/transports/xhr.js +1 -0
  38. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/types.js +1 -0
  39. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/version.js +1 -0
  40. package/dist/{server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1 → node_modules/.pnpm/@amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/messenger/constants.js +1 -1
  41. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js +1 -0
  42. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/remote-config/remote-config.js +1 -0
  43. package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/revenue.js +1 -1
  44. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/storage/cookie.js +1 -0
  45. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js +1 -0
  46. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/transports/gzip.js +1 -0
  47. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/config/browser-config.js +1 -0
  48. package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js +1 -1
  49. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js +1 -0
  50. package/dist/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.22.2 → @amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-action-click.js +1 -1
  51. package/dist/{server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2 → node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-dead-click.js +1 -1
  52. package/dist/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.22.2 → @amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-error-click.js +1 -1
  53. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-exposure.js +1 -0
  54. package/dist/{server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2 → node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-rage-click.js +1 -1
  55. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-scroll.js +1 -0
  56. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-thrashed-cursor.js +1 -0
  57. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-viewport-content-updated.js +1 -0
  58. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture-plugin.js +1 -0
  59. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/constants.js +1 -0
  60. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/data-extractor.js +1 -0
  61. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/frustration-plugin.js +1 -0
  62. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/helpers.js +1 -0
  63. package/dist/{server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2 → node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/hierarchy.js +1 -1
  64. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/libs/element-path.js +1 -0
  65. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/observables.js +1 -0
  66. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/version.js +1 -0
  67. package/dist/node_modules/.pnpm/@amplitude_plugin-custom-enrichment-browser@0.1.1/node_modules/@amplitude/plugin-custom-enrichment-browser/lib/esm/custom-enrichment.js +1 -0
  68. package/dist/node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.9.10/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/network-capture-plugin.js +1 -0
  69. package/dist/{server/node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.8.2 → node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.9.10}/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/track-network-event.js +1 -1
  70. package/dist/node_modules/.pnpm/@amplitude_plugin-page-url-enrichment-browser@0.7.2/node_modules/@amplitude/plugin-page-url-enrichment-browser/lib/esm/page-url-enrichment.js +1 -0
  71. package/dist/node_modules/.pnpm/@amplitude_plugin-page-view-tracking-browser@2.9.3/node_modules/@amplitude/plugin-page-view-tracking-browser/lib/esm/page-view-tracking.js +1 -0
  72. package/dist/node_modules/.pnpm/{@amplitude_plugin-web-vitals-browser@1.1.13 → @amplitude_plugin-web-vitals-browser@1.1.25}/node_modules/@amplitude/plugin-web-vitals-browser/lib/esm/web-vitals-plugin.js +1 -1
  73. package/dist/node_modules/.pnpm/{@sentry-internal_browser-utils@10.39.0 → @sentry-internal_browser-utils@10.45.0}/node_modules/@sentry-internal/browser-utils/build/esm/getNativeImplementation.js +1 -1
  74. package/dist/node_modules/.pnpm/{@sentry-internal_browser-utils@10.39.0 → @sentry-internal_browser-utils@10.45.0}/node_modules/@sentry-internal/browser-utils/build/esm/instrument/dom.js +1 -1
  75. package/dist/node_modules/.pnpm/{@sentry-internal_browser-utils@10.39.0 → @sentry-internal_browser-utils@10.45.0}/node_modules/@sentry-internal/browser-utils/build/esm/instrument/history.js +1 -1
  76. package/dist/node_modules/.pnpm/{@sentry-internal_browser-utils@10.39.0 → @sentry-internal_browser-utils@10.45.0}/node_modules/@sentry-internal/browser-utils/build/esm/instrument/xhr.js +1 -1
  77. package/dist/node_modules/.pnpm/{@sentry-internal_browser-utils@10.39.0 → @sentry-internal_browser-utils@10.45.0}/node_modules/@sentry-internal/browser-utils/build/esm/types.js +1 -1
  78. package/dist/node_modules/.pnpm/{@sentry_browser@10.39.0 → @sentry_browser@10.45.0}/node_modules/@sentry/browser/build/npm/esm/prod/client.js +1 -1
  79. package/dist/node_modules/.pnpm/{@sentry_browser@10.39.0 → @sentry_browser@10.45.0}/node_modules/@sentry/browser/build/npm/esm/prod/eventbuilder.js +1 -1
  80. package/dist/node_modules/.pnpm/{@sentry_browser@10.39.0 → @sentry_browser@10.45.0}/node_modules/@sentry/browser/build/npm/esm/prod/helpers.js +1 -1
  81. package/dist/node_modules/.pnpm/{@sentry_browser@10.39.0 → @sentry_browser@10.45.0}/node_modules/@sentry/browser/build/npm/esm/prod/integrations/breadcrumbs.js +1 -1
  82. package/dist/node_modules/.pnpm/{@sentry_browser@10.39.0 → @sentry_browser@10.45.0}/node_modules/@sentry/browser/build/npm/esm/prod/integrations/browserapierrors.js +1 -1
  83. package/dist/node_modules/.pnpm/@sentry_browser@10.45.0/node_modules/@sentry/browser/build/npm/esm/prod/integrations/browsersession.js +1 -0
  84. package/dist/node_modules/.pnpm/{@sentry_browser@10.39.0 → @sentry_browser@10.45.0}/node_modules/@sentry/browser/build/npm/esm/prod/integrations/culturecontext.js +1 -1
  85. package/dist/node_modules/.pnpm/{@sentry_browser@10.39.0 → @sentry_browser@10.45.0}/node_modules/@sentry/browser/build/npm/esm/prod/integrations/globalhandlers.js +1 -1
  86. package/dist/node_modules/.pnpm/{@sentry_browser@10.39.0 → @sentry_browser@10.45.0}/node_modules/@sentry/browser/build/npm/esm/prod/integrations/httpcontext.js +1 -1
  87. package/dist/node_modules/.pnpm/{@sentry_browser@10.39.0 → @sentry_browser@10.45.0}/node_modules/@sentry/browser/build/npm/esm/prod/integrations/linkederrors.js +1 -1
  88. package/dist/node_modules/.pnpm/{@sentry_browser@10.39.0 → @sentry_browser@10.45.0}/node_modules/@sentry/browser/build/npm/esm/prod/sdk.js +1 -1
  89. package/dist/node_modules/.pnpm/@sentry_browser@10.45.0/node_modules/@sentry/browser/build/npm/esm/prod/stack-parsers.js +1 -0
  90. package/dist/node_modules/.pnpm/{@sentry_browser@10.39.0 → @sentry_browser@10.45.0}/node_modules/@sentry/browser/build/npm/esm/prod/transports/fetch.js +1 -1
  91. package/dist/node_modules/.pnpm/{@sentry_browser@10.39.0 → @sentry_browser@10.45.0}/node_modules/@sentry/browser/build/npm/esm/prod/utils/detectBrowserExtension.js +1 -1
  92. package/dist/node_modules/.pnpm/@sentry_core@10.45.0/node_modules/@sentry/core/build/esm/client.js +1 -0
  93. package/dist/node_modules/.pnpm/@sentry_core@10.45.0/node_modules/@sentry/core/build/esm/exports.js +1 -0
  94. package/dist/node_modules/.pnpm/@sentry_core@10.45.0/node_modules/@sentry/core/build/esm/integrations/eventFilters.js +1 -0
  95. package/dist/node_modules/.pnpm/@sentry_core@10.45.0/node_modules/@sentry/core/build/esm/utils/baggage.js +1 -0
  96. package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/browser.js +1 -1
  97. package/dist/node_modules/.pnpm/@sentry_core@10.45.0/node_modules/@sentry/core/build/esm/utils/envelope.js +1 -0
  98. package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/misc.js +1 -1
  99. package/dist/node_modules/.pnpm/@sentry_core@10.45.0/node_modules/@sentry/core/build/esm/utils/object.js +1 -0
  100. package/dist/node_modules/.pnpm/@sentry_core@10.45.0/node_modules/@sentry/core/build/esm/utils/version.js +1 -0
  101. package/dist/node_modules/.pnpm/safe-json-stringify@1.2.0/node_modules/safe-json-stringify/index.js +1 -1
  102. package/dist/node_modules/.pnpm/zen-observable@0.10.0/node_modules/zen-observable/index.js +1 -0
  103. package/dist/node_modules/.pnpm/zen-observable@0.10.0/node_modules/zen-observable/lib/Observable.js +1 -0
  104. package/dist/payment-links/client/payment-links.client.d.ts +4 -40
  105. package/dist/payment-links/client/payment-links.client.d.ts.map +1 -1
  106. package/dist/payment-links/index.d.ts +1 -1
  107. package/dist/sca/sca.d.ts.map +1 -1
  108. package/dist/sepa-transfers/bulk-transfers/bulk-transfers.d.ts +4 -4
  109. package/dist/sepa-transfers/bulk-transfers/client/bulk-transfers.client.d.ts +3 -3
  110. package/dist/sepa-transfers/bulk-transfers/client/bulk-transfers.client.d.ts.map +1 -1
  111. package/dist/sepa-transfers/bulk-transfers/index.d.ts +1 -1
  112. package/dist/sepa-transfers/client/sepa-transfers.client.d.ts +8 -9
  113. package/dist/sepa-transfers/client/sepa-transfers.client.d.ts.map +1 -1
  114. package/dist/sepa-transfers/index.d.ts +3 -3
  115. package/dist/sepa-transfers/sepa-transfers.d.ts +10 -10
  116. package/dist/sepa-transfers/sepa-transfers.d.ts.map +1 -1
  117. package/dist/server/_virtual/Observable.js +1 -0
  118. package/dist/server/_virtual/index.js +1 -1
  119. package/dist/server/_virtual/index2.js +1 -1
  120. package/dist/server/_virtual/index3.js +1 -0
  121. package/dist/server/auth-links/auth-links.d.ts +7 -7
  122. package/dist/server/auth-links/auth-links.d.ts.map +1 -1
  123. package/dist/server/auth-links/client/auth-links.client.d.ts +5 -6
  124. package/dist/server/auth-links/client/auth-links.client.d.ts.map +1 -1
  125. package/dist/server/auth-links/index.d.ts +6 -4
  126. package/dist/server/auth-links/index.d.ts.map +1 -1
  127. package/dist/server/beneficiaries/beneficiaries.d.ts +10 -10
  128. package/dist/server/beneficiaries/beneficiaries.d.ts.map +1 -1
  129. package/dist/server/beneficiaries/client/beneficiaries.client.d.ts +11 -13
  130. package/dist/server/beneficiaries/client/beneficiaries.client.d.ts.map +1 -1
  131. package/dist/server/beneficiaries/index.d.ts +1 -1
  132. package/dist/server/cards/client/cards.client.d.ts +11 -11
  133. package/dist/server/cards/client/cards.client.d.ts.map +1 -1
  134. package/dist/server/cards/index.d.ts +6 -3
  135. package/dist/server/cards/index.d.ts.map +1 -1
  136. package/dist/server/index.server.umd.js +1 -1
  137. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/attribution/helpers.js +1 -0
  138. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/attribution/web-attribution.js +1 -0
  139. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/browser-client-factory.js +1 -0
  140. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/browser-client.js +1 -0
  141. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/config/joined-config.js +1 -0
  142. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/config.js +1 -0
  143. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/cookie-migration/index.js +1 -1
  144. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/default-tracking.js +1 -0
  145. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/index.js +1 -0
  146. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/plugins/context.js +1 -1
  147. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/plugins/file-download-tracking.js +1 -1
  148. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/plugins/form-interaction-tracking.js +1 -1
  149. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/plugins/network-connectivity-checker.js +1 -1
  150. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/storage/local-storage.js +1 -1
  151. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/storage/session-storage.js +1 -1
  152. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/transports/fetch.js +1 -0
  153. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/transports/send-beacon.js +1 -0
  154. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/transports/xhr.js +1 -0
  155. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/types.js +1 -0
  156. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.37.2/node_modules/@amplitude/analytics-browser/lib/esm/version.js +1 -0
  157. package/dist/{node_modules/.pnpm/@amplitude_analytics-core@2.40.1 → server/node_modules/.pnpm/@amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/messenger/constants.js +1 -1
  158. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js +1 -0
  159. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/remote-config/remote-config.js +1 -0
  160. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/revenue.js +1 -1
  161. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/storage/cookie.js +1 -0
  162. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js +1 -0
  163. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/transports/gzip.js +1 -0
  164. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/config/browser-config.js +1 -0
  165. package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js +1 -1
  166. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js +1 -0
  167. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/safe-stringify.js +1 -0
  168. package/dist/server/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.22.2 → @amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-action-click.js +1 -1
  169. package/dist/{node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2 → server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-dead-click.js +1 -1
  170. package/dist/server/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.22.2 → @amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-error-click.js +1 -1
  171. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-exposure.js +1 -0
  172. package/dist/{node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2 → server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-rage-click.js +1 -1
  173. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-scroll.js +1 -0
  174. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-thrashed-cursor.js +1 -0
  175. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-viewport-content-updated.js +1 -0
  176. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture-plugin.js +1 -0
  177. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/constants.js +1 -0
  178. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/data-extractor.js +1 -0
  179. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/frustration-plugin.js +1 -0
  180. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/helpers.js +1 -0
  181. package/dist/{node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2 → server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/hierarchy.js +1 -1
  182. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/libs/element-path.js +1 -0
  183. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/observables.js +1 -0
  184. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/version.js +1 -0
  185. package/dist/server/node_modules/.pnpm/@amplitude_plugin-custom-enrichment-browser@0.1.1/node_modules/@amplitude/plugin-custom-enrichment-browser/lib/esm/custom-enrichment.js +1 -0
  186. package/dist/server/node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.9.10/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/network-capture-plugin.js +1 -0
  187. package/dist/{node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.8.2 → server/node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.9.10}/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/track-network-event.js +1 -1
  188. package/dist/server/node_modules/.pnpm/@amplitude_plugin-page-url-enrichment-browser@0.7.2/node_modules/@amplitude/plugin-page-url-enrichment-browser/lib/esm/page-url-enrichment.js +1 -0
  189. package/dist/server/node_modules/.pnpm/@amplitude_plugin-page-view-tracking-browser@2.9.3/node_modules/@amplitude/plugin-page-view-tracking-browser/lib/esm/page-view-tracking.js +1 -0
  190. package/dist/server/node_modules/.pnpm/{@amplitude_plugin-web-vitals-browser@1.1.13 → @amplitude_plugin-web-vitals-browser@1.1.25}/node_modules/@amplitude/plugin-web-vitals-browser/lib/esm/web-vitals-plugin.js +1 -1
  191. package/dist/server/node_modules/.pnpm/safe-json-stringify@1.2.0/node_modules/safe-json-stringify/index.js +1 -1
  192. package/dist/server/node_modules/.pnpm/zen-observable@0.10.0/node_modules/zen-observable/index.js +1 -0
  193. package/dist/server/node_modules/.pnpm/zen-observable@0.10.0/node_modules/zen-observable/lib/Observable.js +1 -0
  194. package/dist/server/payment-links/client/payment-links.client.d.ts +4 -40
  195. package/dist/server/payment-links/client/payment-links.client.d.ts.map +1 -1
  196. package/dist/server/payment-links/index.d.ts +1 -1
  197. package/dist/server/sca/sca.d.ts.map +1 -1
  198. package/dist/server/sepa-transfers/bulk-transfers/bulk-transfers.d.ts +4 -4
  199. package/dist/server/sepa-transfers/bulk-transfers/client/bulk-transfers.client.d.ts +3 -3
  200. package/dist/server/sepa-transfers/bulk-transfers/client/bulk-transfers.client.d.ts.map +1 -1
  201. package/dist/server/sepa-transfers/bulk-transfers/index.d.ts +1 -1
  202. package/dist/server/sepa-transfers/client/sepa-transfers.client.d.ts +8 -9
  203. package/dist/server/sepa-transfers/client/sepa-transfers.client.d.ts.map +1 -1
  204. package/dist/server/sepa-transfers/index.d.ts +3 -3
  205. package/dist/server/sepa-transfers/sepa-transfers.d.ts +10 -10
  206. package/dist/server/sepa-transfers/sepa-transfers.d.ts.map +1 -1
  207. package/dist/server/src/auth-links/auth-links.js +1 -1
  208. package/dist/server/src/beneficiaries/beneficiaries.js +1 -1
  209. package/dist/server/src/common/analytics/amplitude-manager.js +1 -1
  210. package/dist/src/auth-links/client/auth-links.client.js +1 -1
  211. package/dist/src/beneficiaries/beneficiaries.js +1 -1
  212. package/dist/src/beneficiaries/client/beneficiaries.client.js +1 -1
  213. package/dist/src/cards/client/cards.client.js +1 -1
  214. package/dist/src/common/analytics/amplitude-manager.js +1 -1
  215. package/dist/src/common/sentry/sentry-manager.js +1 -1
  216. package/dist/src/payment-links/client/payment-links.client.js +1 -1
  217. package/dist/src/sca/sca.js +1 -1
  218. package/dist/src/sepa-transfers/bulk-transfers/client/bulk-transfers.client.js +1 -1
  219. package/dist/src/sepa-transfers/client/sepa-transfers.client.js +1 -1
  220. package/dist/src/sepa-transfers/sepa-transfers.js +1 -1
  221. package/package.json +5 -5
  222. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/attribution/helpers.js +0 -1
  223. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/attribution/web-attribution.js +0 -1
  224. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/browser-client-factory.js +0 -1
  225. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/browser-client.js +0 -1
  226. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/config/joined-config.js +0 -1
  227. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/config.js +0 -1
  228. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/default-tracking.js +0 -1
  229. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/index.js +0 -1
  230. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/transports/send-beacon.js +0 -1
  231. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/transports/xhr.js +0 -1
  232. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/types.js +0 -1
  233. package/dist/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/version.js +0 -1
  234. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js +0 -1
  235. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/remote-config/remote-config.js +0 -1
  236. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/storage/cookie.js +0 -1
  237. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js +0 -1
  238. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/transports/fetch.js +0 -1
  239. package/dist/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js +0 -1
  240. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-thrashed-cursor.js +0 -1
  241. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture-plugin.js +0 -1
  242. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/constants.js +0 -1
  243. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/data-extractor.js +0 -1
  244. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/frustration-plugin.js +0 -1
  245. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/helpers.js +0 -1
  246. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/observables.js +0 -1
  247. package/dist/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/version.js +0 -1
  248. package/dist/node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.8.2/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/network-capture-plugin.js +0 -1
  249. package/dist/node_modules/.pnpm/@amplitude_plugin-page-url-enrichment-browser@0.6.2/node_modules/@amplitude/plugin-page-url-enrichment-browser/lib/esm/page-url-enrichment.js +0 -1
  250. package/dist/node_modules/.pnpm/@amplitude_plugin-page-view-tracking-browser@2.7.2/node_modules/@amplitude/plugin-page-view-tracking-browser/lib/esm/page-view-tracking.js +0 -1
  251. package/dist/node_modules/.pnpm/@sentry_browser@10.39.0/node_modules/@sentry/browser/build/npm/esm/prod/integrations/browsersession.js +0 -1
  252. package/dist/node_modules/.pnpm/@sentry_browser@10.39.0/node_modules/@sentry/browser/build/npm/esm/prod/stack-parsers.js +0 -1
  253. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/client.js +0 -1
  254. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/exports.js +0 -1
  255. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/integrations/eventFilters.js +0 -1
  256. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/baggage.js +0 -1
  257. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/envelope.js +0 -1
  258. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/object.js +0 -1
  259. package/dist/node_modules/.pnpm/@sentry_core@10.39.0/node_modules/@sentry/core/build/esm/utils/version.js +0 -1
  260. package/dist/node_modules/.pnpm/zen-observable-ts@1.1.0/node_modules/zen-observable-ts/module.js +0 -1
  261. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/attribution/helpers.js +0 -1
  262. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/attribution/web-attribution.js +0 -1
  263. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/browser-client-factory.js +0 -1
  264. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/browser-client.js +0 -1
  265. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/config/joined-config.js +0 -1
  266. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/config.js +0 -1
  267. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/default-tracking.js +0 -1
  268. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/index.js +0 -1
  269. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/transports/send-beacon.js +0 -1
  270. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/transports/xhr.js +0 -1
  271. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/types.js +0 -1
  272. package/dist/server/node_modules/.pnpm/@amplitude_analytics-browser@2.35.3/node_modules/@amplitude/analytics-browser/lib/esm/version.js +0 -1
  273. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js +0 -1
  274. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/remote-config/remote-config.js +0 -1
  275. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/storage/cookie.js +0 -1
  276. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js +0 -1
  277. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/transports/fetch.js +0 -1
  278. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js +0 -1
  279. package/dist/server/node_modules/.pnpm/@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/utils/safe-stringify.js +0 -1
  280. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-thrashed-cursor.js +0 -1
  281. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture-plugin.js +0 -1
  282. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/constants.js +0 -1
  283. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/data-extractor.js +0 -1
  284. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/frustration-plugin.js +0 -1
  285. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/helpers.js +0 -1
  286. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/observables.js +0 -1
  287. package/dist/server/node_modules/.pnpm/@amplitude_plugin-autocapture-browser@1.22.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/version.js +0 -1
  288. package/dist/server/node_modules/.pnpm/@amplitude_plugin-network-capture-browser@1.8.2/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/network-capture-plugin.js +0 -1
  289. package/dist/server/node_modules/.pnpm/@amplitude_plugin-page-url-enrichment-browser@0.6.2/node_modules/@amplitude/plugin-page-url-enrichment-browser/lib/esm/page-url-enrichment.js +0 -1
  290. package/dist/server/node_modules/.pnpm/@amplitude_plugin-page-view-tracking-browser@2.7.2/node_modules/@amplitude/plugin-page-view-tracking-browser/lib/esm/page-view-tracking.js +0 -1
  291. package/dist/server/node_modules/.pnpm/zen-observable-ts@1.1.0/node_modules/zen-observable-ts/module.js +0 -1
  292. /package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/constants.js +0 -0
  293. /package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/det-notification.js +0 -0
  294. /package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/lib-prefix.js +0 -0
  295. /package/dist/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/utils/snippet-helper.js +0 -0
  296. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/analytics-connector.js +0 -0
  297. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/campaign/campaign-parser.js +0 -0
  298. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/config.js +0 -0
  299. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/cookie-name.js +0 -0
  300. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/core-client.js +0 -0
  301. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/diagnostics-client.js +0 -0
  302. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/diagnostics-storage.js +0 -0
  303. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/uncaught-sdk-errors.js +0 -0
  304. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js +0 -0
  305. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/identify.js +0 -0
  306. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/language.js +0 -0
  307. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/logger.js +0 -0
  308. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/messenger/background-capture.js +0 -0
  309. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/messenger/base-window-messenger.js +0 -0
  310. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/messenger/utils.js +0 -0
  311. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/network-request-event.js +0 -0
  312. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/observers/console.js +0 -0
  313. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/observers/network.js +0 -0
  314. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/plugins/helpers.js +0 -0
  315. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/plugins/identity.js +0 -0
  316. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/query-params.js +0 -0
  317. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/remote-config/remote-config-localstorage.js +0 -0
  318. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/session.js +0 -0
  319. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/storage/browser-storage.js +0 -0
  320. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/storage/helpers.js +0 -0
  321. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/storage/memory.js +0 -0
  322. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/timeline.js +0 -0
  323. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js +0 -0
  324. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js +0 -0
  325. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/types/frustration-interactions.js +0 -0
  326. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js +0 -0
  327. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js +0 -0
  328. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js +0 -0
  329. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js +0 -0
  330. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/types/status.js +0 -0
  331. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js +0 -0
  332. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js +0 -0
  333. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js +0 -0
  334. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/json-query.js +0 -0
  335. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js +0 -0
  336. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js +0 -0
  337. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/safe-stringify.js +0 -0
  338. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/sampling.js +0 -0
  339. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js +0 -0
  340. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/url-utils.js +0 -0
  341. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js +0 -0
  342. /package/dist/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js +0 -0
  343. /package/dist/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.22.2 → @amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-change.js +0 -0
  344. /package/dist/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.22.2 → @amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-click.js +0 -0
  345. /package/dist/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.22.2 → @amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/libs/messenger.js +0 -0
  346. /package/dist/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.22.2 → @amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/pageActions/actions.js +0 -0
  347. /package/dist/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.22.2 → @amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/pageActions/matchEventToFilter.js +0 -0
  348. /package/dist/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.22.2 → @amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/pageActions/triggers.js +0 -0
  349. /package/dist/node_modules/.pnpm/{@amplitude_plugin-network-capture-browser@1.8.2 → @amplitude_plugin-network-capture-browser@1.9.10}/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/constants.js +0 -0
  350. /package/dist/node_modules/.pnpm/{@amplitude_plugin-page-view-tracking-browser@2.7.2 → @amplitude_plugin-page-view-tracking-browser@2.9.3}/node_modules/@amplitude/plugin-page-view-tracking-browser/lib/esm/utils.js +0 -0
  351. /package/dist/node_modules/.pnpm/{@amplitude_plugin-web-vitals-browser@1.1.13 → @amplitude_plugin-web-vitals-browser@1.1.25}/node_modules/@amplitude/plugin-web-vitals-browser/lib/esm/constants.js +0 -0
  352. /package/dist/node_modules/.pnpm/{@sentry-internal_browser-utils@10.39.0 → @sentry-internal_browser-utils@10.45.0}/node_modules/@sentry-internal/browser-utils/build/esm/debug-build.js +0 -0
  353. /package/dist/node_modules/.pnpm/{@sentry_browser@10.39.0 → @sentry_browser@10.45.0}/node_modules/@sentry/browser/build/npm/esm/prod/debug-build.js +0 -0
  354. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/api.js +0 -0
  355. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/asyncContext/index.js +0 -0
  356. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/asyncContext/stackStrategy.js +0 -0
  357. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/breadcrumbs.js +0 -0
  358. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/carrier.js +0 -0
  359. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/constants.js +0 -0
  360. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/currentScopes.js +0 -0
  361. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/debug-build.js +0 -0
  362. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/defaultScopes.js +0 -0
  363. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/envelope.js +0 -0
  364. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/eventProcessors.js +0 -0
  365. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/instrument/console.js +0 -0
  366. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/instrument/fetch.js +0 -0
  367. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/instrument/globalError.js +0 -0
  368. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/instrument/globalUnhandledRejection.js +0 -0
  369. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/instrument/handlers.js +0 -0
  370. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/integration.js +0 -0
  371. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/integrations/conversationId.js +0 -0
  372. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/integrations/dedupe.js +0 -0
  373. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/integrations/functiontostring.js +0 -0
  374. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/logs/envelope.js +0 -0
  375. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/logs/internal.js +0 -0
  376. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/metrics/envelope.js +0 -0
  377. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/metrics/internal.js +0 -0
  378. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/scope.js +0 -0
  379. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/sdk.js +0 -0
  380. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/semanticAttributes.js +0 -0
  381. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/session.js +0 -0
  382. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/tracing/dynamicSamplingContext.js +0 -0
  383. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/tracing/spanstatus.js +0 -0
  384. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/tracing/utils.js +0 -0
  385. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/transports/base.js +0 -0
  386. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/aggregate-errors.js +0 -0
  387. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/breadcrumb-log-level.js +0 -0
  388. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/clientreport.js +0 -0
  389. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/debug-ids.js +0 -0
  390. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/debug-logger.js +0 -0
  391. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/dsn.js +0 -0
  392. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/env.js +0 -0
  393. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/eventUtils.js +0 -0
  394. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/eventbuilder.js +0 -0
  395. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/hasSpansEnabled.js +0 -0
  396. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/ipAddress.js +0 -0
  397. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/is.js +0 -0
  398. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/merge.js +0 -0
  399. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/normalize.js +0 -0
  400. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/parseSampleRate.js +0 -0
  401. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/prepareEvent.js +0 -0
  402. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/promisebuffer.js +0 -0
  403. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/propagationContext.js +0 -0
  404. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/randomSafeContext.js +0 -0
  405. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/ratelimit.js +0 -0
  406. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/scopeData.js +0 -0
  407. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/sdkMetadata.js +0 -0
  408. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/severity.js +0 -0
  409. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/should-ignore-span.js +0 -0
  410. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/spanOnScope.js +0 -0
  411. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/spanUtils.js +0 -0
  412. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/stacktrace.js +0 -0
  413. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/string.js +0 -0
  414. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/supports.js +0 -0
  415. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/syncpromise.js +0 -0
  416. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/time.js +0 -0
  417. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/timer.js +0 -0
  418. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/transactionEvent.js +0 -0
  419. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/url.js +0 -0
  420. /package/dist/node_modules/.pnpm/{@sentry_core@10.39.0 → @sentry_core@10.45.0}/node_modules/@sentry/core/build/esm/utils/worldwide.js +0 -0
  421. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/constants.js +0 -0
  422. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/det-notification.js +0 -0
  423. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/lib-prefix.js +0 -0
  424. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-browser@2.35.3 → @amplitude_analytics-browser@2.37.2}/node_modules/@amplitude/analytics-browser/lib/esm/utils/snippet-helper.js +0 -0
  425. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/analytics-connector.js +0 -0
  426. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/campaign/campaign-parser.js +0 -0
  427. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/config.js +0 -0
  428. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/cookie-name.js +0 -0
  429. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/core-client.js +0 -0
  430. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/diagnostics-client.js +0 -0
  431. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/diagnostics-storage.js +0 -0
  432. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/uncaught-sdk-errors.js +0 -0
  433. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js +0 -0
  434. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/identify.js +0 -0
  435. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/language.js +0 -0
  436. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/logger.js +0 -0
  437. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/messenger/background-capture.js +0 -0
  438. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/messenger/base-window-messenger.js +0 -0
  439. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/messenger/utils.js +0 -0
  440. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/network-request-event.js +0 -0
  441. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/observers/console.js +0 -0
  442. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/observers/network.js +0 -0
  443. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/plugins/helpers.js +0 -0
  444. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/plugins/identity.js +0 -0
  445. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/query-params.js +0 -0
  446. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/remote-config/remote-config-localstorage.js +0 -0
  447. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/session.js +0 -0
  448. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/storage/browser-storage.js +0 -0
  449. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/storage/helpers.js +0 -0
  450. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/storage/memory.js +0 -0
  451. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/timeline.js +0 -0
  452. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js +0 -0
  453. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js +0 -0
  454. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/types/frustration-interactions.js +0 -0
  455. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js +0 -0
  456. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js +0 -0
  457. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js +0 -0
  458. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js +0 -0
  459. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/types/status.js +0 -0
  460. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js +0 -0
  461. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js +0 -0
  462. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js +0 -0
  463. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/json-query.js +0 -0
  464. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js +0 -0
  465. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js +0 -0
  466. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/sampling.js +0 -0
  467. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js +0 -0
  468. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/url-utils.js +0 -0
  469. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js +0 -0
  470. /package/dist/server/node_modules/.pnpm/{@amplitude_analytics-core@2.40.1 → @amplitude_analytics-core@2.43.1}/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js +0 -0
  471. /package/dist/server/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.22.2 → @amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-change.js +0 -0
  472. /package/dist/server/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.22.2 → @amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture/track-click.js +0 -0
  473. /package/dist/server/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.22.2 → @amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/libs/messenger.js +0 -0
  474. /package/dist/server/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.22.2 → @amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/pageActions/actions.js +0 -0
  475. /package/dist/server/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.22.2 → @amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/pageActions/matchEventToFilter.js +0 -0
  476. /package/dist/server/node_modules/.pnpm/{@amplitude_plugin-autocapture-browser@1.22.2 → @amplitude_plugin-autocapture-browser@1.24.2}/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/pageActions/triggers.js +0 -0
  477. /package/dist/server/node_modules/.pnpm/{@amplitude_plugin-network-capture-browser@1.8.2 → @amplitude_plugin-network-capture-browser@1.9.10}/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/constants.js +0 -0
  478. /package/dist/server/node_modules/.pnpm/{@amplitude_plugin-page-view-tracking-browser@2.7.2 → @amplitude_plugin-page-view-tracking-browser@2.9.3}/node_modules/@amplitude/plugin-page-view-tracking-browser/lib/esm/utils.js +0 -0
  479. /package/dist/server/node_modules/.pnpm/{@amplitude_plugin-web-vitals-browser@1.1.13 → @amplitude_plugin-web-vitals-browser@1.1.25}/node_modules/@amplitude/plugin-web-vitals-browser/lib/esm/constants.js +0 -0
@@ -0,0 +1 @@
1
+ import{__rest as e,__assign as r,__read as n}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as t}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{BASE_CAMPAIGN as i}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js";import{Identify as o}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/identify.js";import{createIdentifyEvent as a}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js";import{EXCLUDE_INTERNAL_REFERRERS_CONDITIONS as c}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/config/browser-config.js";var s=function(e){var r=e.split(".");return r.length<=2?e:r.slice(r.length-2,r.length).join(".")},u=function(n,t,i,o,a,c){void 0===a&&(a=!0),n.referrer;var u=n.referring_domain,m=e(n,["referrer","referring_domain"]),g=t||{};g.referrer;var d,v=g.referring_domain,h=e(g,["referrer","referring_domain"]),y=i.excludeInternalReferrers;if(y){var _=p(y,o);if(!(_ instanceof TypeError)&&n.referring_domain&&b(n.referring_domain,c)){if("always"===_)return f(_,n.referring_domain,o),!1;if("ifEmptyCampaign"===_&&(d=r(r({},n),{referring_domain:void 0,referrer:void 0}),Object.values(d).every((function(e){return!e}))))return f(_,n.referring_domain,o),!1}}if(l(i.excludeReferrers,n.referring_domain))return o.debug("This is not a new campaign because ".concat(n.referring_domain," is in the exclude referrer list.")),!1;if(!a&&function(e){return Object.values(e).every((function(e){return!e}))}(n)&&t)return o.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var k=JSON.stringify(m)!==JSON.stringify(h),w=s(u||"")!==s(v||""),j=!t||k||w;return j?o.debug("This is a new campaign. An $identify event will be sent."):o.debug("This is not a new campaign because it's the same as the previous one."),j},l=function(e,r){return void 0===e&&(e=[]),void 0===r&&(r=""),e.some((function(e){return e instanceof RegExp?e.test(r):e===r}))},m=function(e,r){var n=r.startsWith(".")?r:".".concat(r);return!!(e.startsWith(".")?e:".".concat(e)).endsWith(n)},g=function(e,t){var c=r(r({},i),e),s=Object.entries(c).reduce((function(e,r){var i,o=n(r,2),a=o[0],c=o[1];return e.setOnce("initial_".concat(a),null!==(i=null!=c?c:t.initialEmptyValue)&&void 0!==i?i:"EMPTY"),c?e.set(a,c):e.unset(a)}),new o);return a(s)},d=function(e){var r=e;return r?(r.startsWith(".")&&(r=r.substring(1)),[new RegExp("".concat(r.replace(".","\\."),"$"))]):[]},p=function(e,r){if(!0===e)return c.always;if("object"==typeof e){var n=e.condition;if("string"==typeof n&&Object.keys(c).includes(n))return n;if(void 0===n)return c.always}var t="Invalid configuration provided for attribution.excludeInternalReferrers: ".concat(JSON.stringify(e));return r.error(t),new TypeError(t)};function f(e,r,n){var t="This is not a new campaign because referring_domain=".concat(r," is on the same domain as the current page and it is configured to exclude internal referrers");"always"===e?n.debug(t):"ifEmptyCampaign"===e&&n.debug("".concat(t," with empty campaign parameters"))}var v=["ac.in","ac.jp","ac.kr","ac.th","ac.uk","ac.za","appspot.com","asn.au","azurewebsites.net","cloudfront.net","myshopify.com","blogspot.com","co.ca","co.in","co.jp","co.kr","co.nz","co.th","co.uk","co.za","com.ar","com.au","com.br","com.cn","com.hk","com.in","com.jp","com.kr","com.mx","com.pl","com.sg","com.tr","com.tw","ed.jp","edu.au","edu.br","edu.cn","edu.hk","edu.sg","edu.th","edu.tr","edu.tw","firebaseapp.com","fly.dev","gc.ca","geek.nz","github.io","gitlab.io","go.jp","go.kr","go.th","gob.ar","gob.mx","gov.au","gov.br","gov.cn","gov.hk","gov.in","gov.pl","gov.sg","gov.tr","gov.tw","gov.uk","gov.za","govt.nz","gr.jp","herokuapp.com","id.au","idv.hk","iwi.nz","lg.jp","ltd.uk","maori.nz","me.uk","mil.kr","ne.jp","ne.kr","net.au","net.br","net.cn","net.hk","net.in","net.nz","net.pl","net.sg","net.tr","net.tw","net.za","onrender.com","or.jp","or.kr","or.th","org.ar","org.au","org.br","org.cn","org.hk","org.in","org.mx","org.nz","org.pl","org.sg","org.tw","org.uk","org.za","pages.dev","pe.kr","plc.uk","re.kr","res.in","sch.uk","vercel.app","netlify.app","workers.dev"],h=function(e){var r,n,i=e||(null===(n=null===(r=t())||void 0===r?void 0:r.location)||void 0===n?void 0:n.hostname);if(!i)return"";var o=i.split("."),a=o[o.length-1],c=o[o.length-2];return v.find((function(e){return i.endsWith(".".concat(e))}))&&(a=o[o.length-2]+"."+o[o.length-1],c=o[o.length-3]),c?"".concat(c,".").concat(a):a},b=function(e,r){var n=t();if(!n)return!1;var i=(r||"").trim()||h(n.location.hostname);return m(e,i)};export{v as KNOWN_2LDS,g as createCampaignEvent,d as getDefaultExcludedReferrers,h as getDomain,l as isExcludedReferrer,u as isNewCampaign,m as isSubdomainOf};
@@ -0,0 +1 @@
1
+ import{__assign as t,__awaiter as e,__generator as i,__read as s}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getDefaultExcludedReferrers as o,isNewCampaign as a,createCampaignEvent as n}from"./helpers.js";import{getStorageKey as r}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/storage/helpers.js";import{BASE_CAMPAIGN as p}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js";import{isNewSession as l}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/session.js";import{CampaignParser as m}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/campaign/campaign-parser.js";var u=function(){function u(e,i){var s;this.shouldTrackNewCampaign=!1,this.options=t({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:o((null===(s=i.cookieOptions)||void 0===s?void 0:s.domain)||i.topLevelDomain),optOut:i.optOut},e),this.storage=i.cookieStorage,this.storageKey=r(i.apiKey,"MKTG"),this.webExpStorageKey=r(i.apiKey,"MKTG_ORIGINAL"),this.currentCampaign=p,this.sessionTimeout=i.sessionTimeout,this.lastEventTime=i.lastEventTime,this.logger=i.loggerProvider,this.topLevelDomain=i.topLevelDomain,i.loggerProvider.log("Installing web attribution tracking.")}return u.prototype.init=function(){return e(this,void 0,void 0,(function(){var t,e;return i(this,(function(i){switch(i.label){case 0:return this.options.optOut?[2]:[4,this.fetchCampaign()];case 1:return e=s.apply(void 0,[i.sent(),2]),this.currentCampaign=e[0],this.previousCampaign=e[1],t=!this.lastEventTime||l(this.sessionTimeout,this.lastEventTime),a(this.currentCampaign,this.previousCampaign,this.options,this.logger,t,this.topLevelDomain)?(this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)]):[3,3];case 2:i.sent(),i.label=3;case 3:return[2]}}))}))},u.prototype.fetchCampaign=function(){return e(this,void 0,void 0,(function(){var t;return i(this,(function(e){switch(e.label){case 0:return[4,this.storage.get(this.webExpStorageKey)];case 1:return(t=e.sent())?[4,this.storage.remove(this.webExpStorageKey)]:[3,3];case 2:e.sent(),e.label=3;case 3:return[4,Promise.all([t||(new m).parse(),this.storage.get(this.storageKey)])];case 4:return[2,e.sent()]}}))}))},u.prototype.generateCampaignEvent=function(t){this.shouldTrackNewCampaign=!1;var e=n(this.currentCampaign,this.options);return t&&(e.event_id=t),e},u.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},u}();export{u as WebAttribution};
@@ -0,0 +1 @@
1
+ import{AmplitudeBrowser as e}from"./browser-client.js";import{debugWrapper as i,getClientStates as n,getClientLogConfig as t}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js";var s=function(){var s=new e;return{init:i(s.init.bind(s),"init",t(s),n(s,["config"])),add:i(s.add.bind(s),"add",t(s),n(s,["config.apiKey","timeline.plugins"])),remove:i(s.remove.bind(s),"remove",t(s),n(s,["config.apiKey","timeline.plugins"])),track:i(s.track.bind(s),"track",t(s),n(s,["config.apiKey","timeline.queue.length"])),logEvent:i(s.logEvent.bind(s),"logEvent",t(s),n(s,["config.apiKey","timeline.queue.length"])),identify:i(s.identify.bind(s),"identify",t(s),n(s,["config.apiKey","timeline.queue.length"])),groupIdentify:i(s.groupIdentify.bind(s),"groupIdentify",t(s),n(s,["config.apiKey","timeline.queue.length"])),setGroup:i(s.setGroup.bind(s),"setGroup",t(s),n(s,["config.apiKey","timeline.queue.length"])),revenue:i(s.revenue.bind(s),"revenue",t(s),n(s,["config.apiKey","timeline.queue.length"])),flush:i(s.flush.bind(s),"flush",t(s),n(s,["config.apiKey","timeline.queue.length"])),getUserId:i(s.getUserId.bind(s),"getUserId",t(s),n(s,["config","config.userId"])),setUserId:i(s.setUserId.bind(s),"setUserId",t(s),n(s,["config","config.userId"])),getDeviceId:i(s.getDeviceId.bind(s),"getDeviceId",t(s),n(s,["config","config.deviceId"])),setDeviceId:i(s.setDeviceId.bind(s),"setDeviceId",t(s),n(s,["config","config.deviceId"])),reset:i(s.reset.bind(s),"reset",t(s),n(s,["config","config.userId","config.deviceId"])),getSessionId:i(s.getSessionId.bind(s),"getSessionId",t(s),n(s,["config"])),setSessionId:i(s.setSessionId.bind(s),"setSessionId",t(s),n(s,["config"])),extendSession:i(s.extendSession.bind(s),"extendSession",t(s),n(s,["config"])),setOptOut:i(s.setOptOut.bind(s),"setOptOut",t(s),n(s,["config"])),setTransport:i(s.setTransport.bind(s),"setTransport",t(s),n(s,["config"])),getIdentity:i(s.getIdentity.bind(s),"getIdentity",t(s),n(s,["config"])),setIdentity:i(s.setIdentity.bind(s),"setIdentity",t(s),n(s,["config","config.userId","config.deviceId"])),getOptOut:i(s.getOptOut.bind(s),"getOptOut",t(s),n(s,["config"])),_setDiagnosticsSampleRate:i(s._setDiagnosticsSampleRate.bind(s),"_setDiagnosticsSampleRate",t(s),n(s,["config"])),_enableRequestBodyCompressionExperimental:i(s._enableRequestBodyCompressionExperimental.bind(s),"_enableRequestBodyCompressionExperimental",t(s),n(s,["config"]))}},d=s();export{s as createInstance,d as default};
@@ -0,0 +1 @@
1
+ import{__extends as e,__assign as i,__awaiter as t,__values as s,__read as o,__generator as n,__rest as r}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{isSessionTrackingEnabled as a,isCustomEnrichmentEnabled as d,isPageUrlEnrichmentEnabled as l,isWebVitalsEnabled as c,isNetworkTrackingEnabled as u,getNetworkTrackingConfig as p,isFrustrationInteractionsEnabled as g,getFrustrationInteractionsConfig as m,isElementInteractionsEnabled as f,getElementInteractionsConfig as h,getPageViewTrackingConfig as v,isPageViewTrackingEnabled as b,isFormInteractionTrackingEnabled as y,isFileDownloadTrackingEnabled as _,isAttributionTrackingEnabled as I,getAttributionTrackingConfig as w}from"./default-tracking.js";import{isInstanceProxy as j,convertProxyObjectToRealObject as S}from"./utils/snippet-helper.js";import{Context as P}from"./plugins/context.js";import{createTransport as k,useBrowserConfig as C,shouldFetchRemoteConfig as T}from"./config.js";import{formInteractionTracking as A}from"./plugins/form-interaction-tracking.js";import{fileDownloadTracking as D}from"./plugins/file-download-tracking.js";import{DEFAULT_SESSION_END_EVENT as O,DEFAULT_SESSION_START_EVENT as N,DEFAULT_SERVER_ZONE as E}from"./constants.js";import{detNotify as q}from"./det-notification.js";import{networkConnectivityCheckerPlugin as R}from"./plugins/network-connectivity-checker.js";import{updateBrowserConfigWithRemoteConfig as x}from"./config/joined-config.js";import{WebAttribution as U}from"./attribution/web-attribution.js";import{LIBPREFIX as K}from"./lib-prefix.js";import{VERSION as B}from"./version.js";import{returnWrapper as z}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js";import{setConnectorUserId as L,setConnectorDeviceId as F,getAnalyticsConnector as J}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/analytics-connector.js";import{UUID as Q}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js";import{Identify as V}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/identify.js";import{createIdentifyEvent as Z}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js";import{safeJsonStringify as W}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/safe-stringify.js";import{AmplitudeCore as G}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/core-client.js";import{customEnrichmentPlugin as H}from"../../../../../../@amplitude_plugin-custom-enrichment-browser@0.1.1/node_modules/@amplitude/plugin-custom-enrichment-browser/lib/esm/custom-enrichment.js";import{pageUrlEnrichmentPlugin as M}from"../../../../../../@amplitude_plugin-page-url-enrichment-browser@0.7.2/node_modules/@amplitude/plugin-page-url-enrichment-browser/lib/esm/page-url-enrichment.js";import{webVitalsPlugin as X}from"../../../../../../@amplitude_plugin-web-vitals-browser@1.1.25/node_modules/@amplitude/plugin-web-vitals-browser/lib/esm/web-vitals-plugin.js";import{networkCapturePlugin as Y}from"../../../../../../@amplitude_plugin-network-capture-browser@1.9.10/node_modules/@amplitude/plugin-network-capture-browser/lib/esm/network-capture-plugin.js";import{frustrationPlugin as $}from"../../../../../../@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/frustration-plugin.js";import{autocapturePlugin as ee}from"../../../../../../@amplitude_plugin-autocapture-browser@1.24.2/node_modules/@amplitude/plugin-autocapture-browser/lib/esm/autocapture-plugin.js";import{pageViewTrackingPlugin as ie}from"../../../../../../@amplitude_plugin-page-view-tracking-browser@2.9.3/node_modules/@amplitude/plugin-page-view-tracking-browser/lib/esm/page-view-tracking.js";import{IdentityEventSender as te}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/identity.js";import{Destination as se}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js";import{getQueryParams as oe}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/query-params.js";import{OfflineDisabled as ne}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js";import{DiagnosticsClient as re}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/diagnostics/diagnostics-client.js";import{Logger as ae}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/logger.js";import{LogLevel as de}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js";import{RemoteConfigClient as le}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/remote-config/remote-config.js";import{Revenue as ce}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/revenue.js";import{isNewSession as ue}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/session.js";var pe=function(G){function pe(){var e=null!==G&&G.apply(this,arguments)||this;return e._diagnosticsSampleRate=0,e._enableRequestBodyCompressionExperimentalValue=!1,e}return e(pe,G),pe.prototype.init=function(e,t,s){var o,n;return void 0===e&&(e=""),arguments.length>2?(o=t,n=s):"string"==typeof t?(o=t,n=void 0):(o=null==t?void 0:t.userId,n=t),z(this._init(i(i({},n),{userId:o,apiKey:e})))},pe.prototype._init=function(e){var i,s,o,a,j,S,k,O;return t(this,void 0,void 0,(function(){var N,z,L,F,Q,V,Z,W,ce,ue,pe,ge,me,fe,he,ve=this;return n(this,(function(be){switch(be.label){case 0:return this.initializing?[2]:(this.initializing=!0,N=T(e),z=null!==(i=e.loggerProvider)&&void 0!==i?i:new ae,e.loggerProvider||z.enable(null!==(s=e.logLevel)&&void 0!==s?s:de.Warn),L=null!==(o=e.serverZone)&&void 0!==o?o:E,Q=this._diagnosticsSampleRate,V=null===(a=e.enableDiagnostics)||void 0===a||a,N?(F=new le(e.apiKey,z,L,null===(j=e.remoteConfig)||void 0===j?void 0:j.serverUrl),[4,new Promise((function(e){null==F||F.subscribe("configs.diagnostics.browserSDK","all",(function(i,t,s){if(z.debug("Diagnostics remote configuration received:",JSON.stringify({remoteConfig:i,source:t,lastFetch:s},null,2)),i){var o=i.sampleRate;"number"!=typeof o||isNaN(o)||(Q=o);var n=i.enabled;"boolean"==typeof n&&(V=n)}e()}))}))]):[3,2]);case 1:be.sent(),be.label=2;case 2:return(Z=new re(e.apiKey,z,L,{enabled:V,sampleRate:Q})).setTag("library","".concat(K,"/").concat(B)),"undefined"!=typeof navigator&&Z.setTag("user_agent",navigator.userAgent),[4,C(e.apiKey,e,this,Z,{loggerProvider:z,serverZone:L,enableDiagnostics:V,diagnosticsSampleRate:Q})];case 3:return W=be.sent(),N&&F?[4,new Promise((function(e){null==F||F.subscribe("configs.analyticsSDK.browserSDK","all",(function(i,t,s){W.loggerProvider.debug("Remote configuration received:",JSON.stringify({remoteConfig:i,source:t,lastFetch:s},null,2)),i&&x(i,W),e()}))}))]:[3,5];case 4:be.sent(),be.label=5;case 5:return[4,G.prototype._init.call(this,W)];case 6:return be.sent(),this.logBrowserOptions(W),this.config.remoteConfigClient=F,I(this.config.defaultTracking)?(this.config.optOut&&this.timeline.addOptOutListener((function(e){return t(ve,void 0,void 0,(function(){var i;return n(this,(function(t){switch(t.label){case 0:return e?[3,2]:(i=w(this.config),this.webAttribution=new U(i,this.config),[4,this.webAttribution.init()]);case 1:t.sent(),t.label=2;case 2:return[2]}}))}))})),ce=w(this.config),this.webAttribution=new U(ce,this.config),[4,this.webAttribution.init()]):[3,8];case 7:be.sent(),be.label=8;case 8:return ue=oe(),pe=ue.ampTimestamp?Number(ue.ampTimestamp):void 0,ge=!pe||Date.now()<pe,me=ge&&!Number.isNaN(Number(ue.ampSessionId))?Number(ue.ampSessionId):void 0,-1!==(fe=this.config.deferredSessionId)||this.config.optOut||(fe=Date.now()),this.setSessionId(null!==(O=null!==(k=null!==(S=e.sessionId)&&void 0!==S?S:me)&&void 0!==k?k:fe)&&void 0!==O?O:this.config.sessionId),this.config.optOut&&this.timeline.addOptOutListener((function(e){return t(ve,void 0,void 0,(function(){return n(this,(function(i){return!e&&this.config.deferredSessionId&&(-1===this.config.deferredSessionId?this.setSessionId(void 0):this.setSessionId(this.config.deferredSessionId)),[2]}))}))})),(he=J(e.instanceName)).identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),this.config.offline===ne?[3,10]:[4,this.add(R()).promise];case 9:be.sent(),be.label=10;case 10:return[4,this.add(new se({diagnosticsClient:Z})).promise];case 11:return be.sent(),[4,this.add(new P).promise];case 12:return be.sent(),[4,this.add(new te).promise];case 13:return be.sent(),q(this.config),_(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(D()).promise]):[3,15];case 14:be.sent(),be.label=15;case 15:return y(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(A()).promise]):[3,17];case 16:be.sent(),be.label=17;case 17:return b(this.config.defaultTracking)?this.config.optOut?[3,19]:(this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(ie(v(this.config))).promise]):[3,20];case 18:return be.sent(),[3,20];case 19:this.timeline.addOptOutListener((function(e){return t(ve,void 0,void 0,(function(){return n(this,(function(i){switch(i.label){case 0:return e?[2]:(this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(ie(v(this.config))).promise]);case 1:return i.sent(),[2]}}))}))})),be.label=20;case 20:return f(this.config.autocapture)?(this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(ee(h(this.config),{diagnosticsClient:Z})).promise]):[3,22];case 21:be.sent(),be.label=22;case 22:return g(this.config.autocapture)?(this.config.loggerProvider.debug("Adding frustration interactions plugin"),[4,this.add($(m(this.config))).promise]):[3,24];case 23:be.sent(),be.label=24;case 24:return u(this.config.autocapture)?(this.config.loggerProvider.debug("Adding network tracking plugin"),[4,this.add(Y(p(this.config))).promise]):[3,26];case 25:be.sent(),be.label=26;case 26:return c(this.config.autocapture)?(this.config.loggerProvider.debug("Adding web vitals plugin"),[4,this.add(X()).promise]):[3,28];case 27:be.sent(),be.label=28;case 28:return l(this.config.autocapture)?(this.config.loggerProvider.debug("Adding referrer page url plugin"),[4,this.add(M()).promise]):[3,30];case 29:be.sent(),be.label=30;case 30:return d(this.config.customEnrichment)?(this.config.loggerProvider.debug("Adding custom enrichment plugin"),[4,this.add(H()).promise]):[3,32];case 31:be.sent(),be.label=32;case 32:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 33:return be.sent(),he.eventBridge.setEventReceiver((function(e){var i=e.eventProperties||{},t=i.time,s=r(i,["time"]),o="number"==typeof t?{time:t}:void 0;ve.track(e.eventType,s,o)})),[2]}}))}))},pe.prototype.getUserId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.userId},pe.prototype.setUserId=function(e){this.config?(this.config.loggerProvider.debug("function setUserId: ",e),e===this.config.userId&&void 0!==e||(this.config.userId=e,this.timeline.onIdentityChanged({userId:e}),L(e,this.config.instanceName))):this.q.push(this.setUserId.bind(this,e))},pe.prototype.getDeviceId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.deviceId},pe.prototype.setDeviceId=function(e){this.config?(this.config.loggerProvider.debug("function setDeviceId: ",e),e!==this.config.deviceId&&(this.config.deviceId=e,this.timeline.onIdentityChanged({deviceId:e}),F(e,this.config.instanceName))):this.q.push(this.setDeviceId.bind(this,e))},pe.prototype.reset=function(){this.setDeviceId(Q()),this.setUserId(void 0),this.timeline.onReset()},pe.prototype.getIdentity=function(){var e,i;return{deviceId:null===(e=this.config)||void 0===e?void 0:e.deviceId,userId:null===(i=this.config)||void 0===i?void 0:i.userId,userProperties:this.userProperties}},pe.prototype.setIdentity=function(e){var i,t,n;if("userId"in e&&this.setUserId(e.userId),"deviceId"in e&&e.deviceId&&this.setDeviceId(e.deviceId),"userProperties"in e){this.userProperties=e.userProperties;var r=new V,a=null!==(n=e.userProperties)&&void 0!==n?n:{};try{for(var d=s(Object.entries(a)),l=d.next();!l.done;l=d.next()){var c=o(l.value,2),u=c[0],p=c[1];r.set(u,p)}}catch(e){i={error:e}}finally{try{l&&!l.done&&(t=d.return)&&t.call(d)}finally{if(i)throw i.error}}this.identify(r)}},pe.prototype.getOptOut=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.optOut},pe.prototype.getSessionId=function(){var e;return null===(e=this.config)||void 0===e?void 0:e.sessionId},pe.prototype.setSessionId=function(e){var i,t=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,e)),z(Promise.resolve());if(this.config.optOut)return this.config.deferredSessionId=null!=e?e:-1,z(Promise.resolve());if(void 0===e&&(e=Date.now()),e===this.config.sessionId)return z(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",e);var s=this.getSessionId();s!==e&&this.timeline.onSessionIdChanged(e);var o=this.config.lastEventTime,n=null!==(i=this.config.lastEventId)&&void 0!==i?i:-1;this.config.sessionId=e,this.config.lastEventTime=void 0,this.config.pageCounter=0,a(this.config.defaultTracking)&&(s&&o&&t.push(this.track(O,void 0,{device_id:this.previousSessionDeviceId,event_id:++n,session_id:s,time:o+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var r=this.trackCampaignEventIfNeeded(++n,t);return this.config.identify&&t.push(this.track(Z(this.config.identify)).promise),a(this.config.defaultTracking)&&t.push(this.track(N,void 0,{event_id:r?++n:n,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,z(Promise.all(t))},pe.prototype.extendSession=function(){this.config?this.config.lastEventTime=Date.now():this.q.push(this.extendSession.bind(this))},pe.prototype.setTransport=function(e){this.config?this.config.transportProvider=k(e):this.q.push(this.setTransport.bind(this,e))},pe.prototype.identify=function(e,i){if(j(e)){var t=e._q;e._q=[],e=S(new V,t)}return(null==i?void 0:i.user_id)&&this.setUserId(i.user_id),(null==i?void 0:i.device_id)&&this.setDeviceId(i.device_id),G.prototype.identify.call(this,e,i)},pe.prototype.groupIdentify=function(e,i,t,s){if(j(t)){var o=t._q;t._q=[],t=S(new V,o)}return G.prototype.groupIdentify.call(this,e,i,t,s)},pe.prototype.revenue=function(e,i){if(j(e)){var t=e._q;e._q=[],e=S(new ce,t)}return G.prototype.revenue.call(this,e,i)},pe.prototype.trackCampaignEventIfNeeded=function(e,i){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var t=this.webAttribution.generateCampaignEvent(e);return i?i.push(this.track(t).promise):this.track(t),this.config.loggerProvider.log("Tracking attribution."),!0},pe.prototype.process=function(e){return t(this,void 0,void 0,(function(){var i,t,s;return n(this,(function(o){return i=Date.now(),t=ue(this.config.sessionTimeout,this.config.lastEventTime),s=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),e.event_type===N||e.event_type===O||e.session_id&&e.session_id!==this.getSessionId()||(t||s?(this.setSessionId(i),s&&this.config.loggerProvider.log("Created a new session for new campaign.")):t||this.trackCampaignEventIfNeeded()),[2,G.prototype.process.call(this,e)]}))}))},pe.prototype.logBrowserOptions=function(e){try{var t=i(i({},e),{apiKey:e.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",W(t))}catch(e){this.config.loggerProvider.error("Error logging browser config",e)}},pe.prototype._setDiagnosticsSampleRate=function(e){e>1||e<0||this.config||(this._diagnosticsSampleRate=e)},pe.prototype._enableRequestBodyCompressionExperimental=function(e){this.config||(this._enableRequestBodyCompressionExperimentalValue=e)},pe}(G);export{pe as AmplitudeBrowser};
@@ -0,0 +1 @@
1
+ import{__assign as e,__values as t,__spreadArray as r,__read as a}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{SAFE_HEADERS as o}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js";function l(e){var n,u,c,i,p,s,d,f,v,g,y;if("object"==typeof e&&null!==e&&!Array.isArray(e)){var m=Object.keys(e);try{for(var k=t(m),w=k.next();!w.done;w=k.next()){var h=w.value;try{var b=e[h];"boolean"==typeof(null==b?void 0:b.enabled)&&(b.enabled?(delete b.enabled,0===Object.keys(b).length&&(e[h]=!0)):e[h]=!1),l(b)}catch(e){}}}catch(e){n={error:e}}finally{try{w&&!w.done&&(u=k.return)&&u.call(k)}finally{if(n)throw n.error}}try{if(null===(v=null===(f=null===(d=e.autocapture)||void 0===d?void 0:d.networkTracking)||void 0===f?void 0:f.captureRules)||void 0===v?void 0:v.length)try{for(var x=t(e.autocapture.networkTracking.captureRules),I=x.next();!I.done;I=x.next()){var R=I.value;try{for(var j=(p=void 0,t(["responseHeaders","requestHeaders"])),A=j.next();!A.done;A=j.next()){var T=A.value,C=null!==(g=R[T])&&void 0!==g?g:{},_=C.captureSafeHeaders,U=C.allowlist;(_||U)&&(void 0===U||Array.isArray(U)?R[T]=r(r([],a(_?o:[]),!1),a(null!=U?U:[]),!1):delete R[T])}}catch(e){p={error:e}}finally{try{A&&!A.done&&(s=j.return)&&s.call(j)}finally{if(p)throw p.error}}}}catch(e){c={error:e}}finally{try{I&&!I.done&&(i=x.return)&&i.call(x)}finally{if(c)throw c.error}}}catch(e){}var E=null===(y=e.autocapture)||void 0===y?void 0:y.frustrationInteractions;E&&(E.rageClick&&(E.rageClicks=E.rageClick,delete E.rageClick),E.deadClick&&(E.deadClicks=E.deadClick,delete E.deadClick))}}function n(e,r,a){var o,l,n=[];try{for(var u=t(null!=r?r:[]),c=u.next();!c.done;c=u.next()){var i=c.value;try{n.push(new RegExp(i))}catch(e){a.loggerProvider.warn("Invalid regex pattern: ".concat(i),e)}}}catch(e){o={error:e}}finally{try{c&&!c.done&&(l=u.return)&&l.call(u)}finally{if(o)throw o.error}}return e.concat(n)}function u(r,a){var o,u,c,i,p,s,d;if(r){l(r);try{a.loggerProvider.debug("Update browser config with remote configuration:",JSON.stringify(r));var f=r;if(f&&"autocapture"in f){if("boolean"==typeof f.autocapture&&(a.autocapture=f.autocapture),"object"==typeof f.autocapture&&null!==f.autocapture){var v=e({},f.autocapture);if(void 0===a.autocapture&&(a.autocapture=f.autocapture),"object"==typeof f.autocapture.elementInteractions&&null!==f.autocapture.elementInteractions&&(null===(c=f.autocapture.elementInteractions.pageUrlAllowlistRegex)||void 0===c?void 0:c.length)){v.elementInteractions=e({},f.autocapture.elementInteractions);var g=v.elementInteractions,y=null!==(i=g.pageUrlAllowlist)&&void 0!==i?i:[],m=f.autocapture.elementInteractions.pageUrlAllowlistRegex;g.pageUrlAllowlist=n(y,m,a),delete g.pageUrlAllowlistRegex}if("object"==typeof f.autocapture.networkTracking&&null!==f.autocapture.networkTracking&&(null===(p=f.autocapture.networkTracking.captureRules)||void 0===p?void 0:p.length)){v.networkTracking=e({},f.autocapture.networkTracking);var k=null!==(s=v.networkTracking.captureRules)&&void 0!==s?s:[];try{for(var w=t(k),h=w.next();!h.done;h=w.next()){var b=h.value;b.urls=n(null!==(d=b.urls)&&void 0!==d?d:[],b.urlsRegex,a),delete b.urlsRegex}}catch(e){o={error:e}}finally{try{h&&!h.done&&(u=w.return)&&u.call(w)}finally{if(o)throw o.error}}}"boolean"==typeof a.autocapture&&(a.autocapture=e({attribution:a.autocapture,fileDownloads:a.autocapture,formInteractions:a.autocapture,pageViews:a.autocapture,sessions:a.autocapture,elementInteractions:a.autocapture,webVitals:a.autocapture,frustrationInteractions:a.autocapture},v)),"object"==typeof a.autocapture&&(a.autocapture=e(e({},a.autocapture),v))}a.defaultTracking=a.autocapture}"customEnrichment"in f&&null!==f.customEnrichment&&(a.customEnrichment=f.customEnrichment),a.loggerProvider.debug("Browser config after remote config update:",JSON.stringify(a))}catch(e){a.loggerProvider.error("Failed to apply remote configuration because of error: ",e)}}}export{l as translateRemoteConfigToLocal,u as updateBrowserConfigWithRemoteConfig};
@@ -0,0 +1 @@
1
+ import{__extends as e,__awaiter as o,__generator as t,__assign as i}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{LocalStorage as n}from"./storage/local-storage.js";import{SessionStorage as r}from"./storage/session-storage.js";import{XHRTransport as s}from"./transports/xhr.js";import{FetchTransport as a}from"./transports/fetch.js";import{SendBeaconTransport as d}from"./transports/send-beacon.js";import{parseLegacyCookies as l}from"./cookie-migration/index.js";import{DEFAULT_IDENTITY_STORAGE as u,DEFAULT_SERVER_ZONE as c}from"./constants.js";import{VERSION as p}from"./version.js";import{getDomain as v,KNOWN_2LDS as m}from"./attribution/helpers.js";import{Logger as g}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/logger.js";import{LogLevel as f}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js";import{CookieStorage as h,decodeCookieValue as b,isDomainEqual as _}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/storage/cookie.js";import{getCookieName as I}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/cookie-name.js";import{Config as y}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/config.js";import{MemoryStorage as S}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/storage/memory.js";import{getQueryParams as k}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/query-params.js";import{UUID as O}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js";var E=function(o){function t(e,t,i,r,s,a,d,l,m,h,b,_,I,y,k,O,E,C,j,P,T,R,L,x,D,M,B,q,N,U,A,K,V,W,Z,z,F,Q,J,G,H,X,Y,$,ee){void 0===i&&(i=new S),void 0===r&&(r={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),void 0===l&&(l=1e3),void 0===m&&(m=5),void 0===h&&(h=30),void 0===b&&(b=u),void 0===O&&(O=new g),void 0===E&&(E=f.Warn),void 0===j&&(j=!1),void 0===P&&(P=!1),void 0===L&&(L=""),void 0===x&&(x=c),void 0===B&&(B=18e5),void 0===q&&(q=new n({loggerProvider:O})),void 0===N&&(N={ipAddress:!0,language:!0,platform:!0}),void 0===U&&(U="fetch"),void 0===A&&(A=!1),void 0===K&&(K=!0),void 0===Q&&(Q=!0),void 0===J&&(J=0),void 0===Y&&(Y=!1),void 0===$&&($=!1);var oe,te=this;(te=o.call(this,{apiKey:e,storageProvider:q,transportProvider:w(U)})||this).apiKey=e,te.appVersion=t,te.cookieOptions=r,te.defaultTracking=s,te.autocapture=a,te.flushIntervalMillis=l,te.flushMaxRetries=m,te.flushQueueSize=h,te.identityStorage=b,te.ingestionMetadata=_,te.instanceName=I,te.loggerProvider=O,te.logLevel=E,te.minIdLength=C,te.offline=j,te.partnerId=T,te.plan=R,te.serverUrl=L,te.serverZone=x,te.sessionTimeout=B,te.storageProvider=q,te.trackingOptions=N,te.transport=U,te.useBatch=A,te.fetchRemoteConfig=K,te.networkTrackingOptions=z,te.identify=F,te.enableDiagnostics=Q,te.diagnosticsSampleRate=J,te.diagnosticsClient=G,te.remoteConfig=H,te.topLevelDomain=X,te.enableRequestBodyCompression=Y,te._enableRequestBodyCompressionExperimental=$,te.customEnrichment=ee,te.version=p,te._optOut=!1,te._cookieStorage=i,te.deviceId=d,te.lastEventId=y,te.lastEventTime=k,te.optOut=P,te.deferredSessionId=M,te.sessionId=D,te.pageCounter=W,te.userId=V,te.debugLogsEnabled=Z,te.loggerProvider.enable(Z?f.Debug:te.logLevel),te.networkTrackingOptions=z,te.identify=F,te.enableDiagnostics=Q,te.diagnosticsSampleRate=J,te.diagnosticsClient=G;var ie=null!==(oe=null==H?void 0:H.fetchRemoteConfig)&&void 0!==oe?oe:K;return te.remoteConfig=te.remoteConfig||{},te.remoteConfig.fetchRemoteConfig=ie,te.fetchRemoteConfig=ie,te.topLevelDomain=X||v(),te}return e(t,o),Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(e){this._cookieStorage!==e&&(this._cookieStorage=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(e){this._deviceId!==e&&(this._deviceId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(e){this._userId!==e&&(this._userId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(e){this._sessionId!==e&&(this._sessionId=e,void 0!==e&&void 0!==this._deferredSessionId&&(this._deferredSessionId=void 0),this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deferredSessionId",{get:function(){return this._deferredSessionId},set:function(e){this._deferredSessionId!==e&&e!==this.sessionId&&(this._deferredSessionId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(e){this._optOut!==e&&(this._optOut=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(e){this._lastEventTime!==e&&(this._lastEventTime=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(e){this._lastEventId!==e&&(this._lastEventId=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(e){this._pageCounter!==e&&(this._pageCounter=e,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(e){this._debugLogsEnabled!==e&&(this._debugLogsEnabled=e,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var e={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,deferredSessionId:this._deferredSessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled,cookieDomain:void 0};this.cookieStorage instanceof h&&(e.cookieDomain=this.cookieStorage.options.domain),this.cookieStorage.set(I(this.apiKey),e)},t}(y),C=function(e,n,r,s,a){return void 0===n&&(n={}),o(void 0,void 0,void 0,(function(){var o,d,c,p,v,m,g,f,h,y,C,P,w,R,L,x,D,M,B,q,N,U,A,K,V,W,Z,z,F,Q,J,G,H,X,Y,$,ee,oe,te,ie,ne,re,se,ae,de,le,ue,ce,pe,ve,me;return t(this,(function(t){switch(t.label){case 0:return o=n.identityStorage||u,d="",o!==u||(null===(U=n.cookieOptions)||void 0===U?void 0:U.domain)||""===(null===(A=n.cookieOptions)||void 0===A?void 0:A.domain)?[3,2]:[4,T(void 0,s)];case 1:d=t.sent(),t.label=2;case 2:return c=i({domain:null!==(V=null===(K=n.cookieOptions)||void 0===K?void 0:K.domain)&&void 0!==V?V:d,expiration:365,sameSite:"Lax",secure:!1,upgrade:!0},n.cookieOptions),p={duplicateResolverFn:function(e){var o=b(e);if(!o)return!1;var t=JSON.parse(o);return _(t.cookieDomain,c.domain)},diagnosticsClient:s},v=j(n.identityStorage,c,p),[4,l(e,v,null===(Z=null===(W=n.cookieOptions)||void 0===W?void 0:W.upgrade)||void 0===Z||Z)];case 3:return m=t.sent(),[4,v.get(I(e))];case 4:return g=t.sent(),f=k(),h=f.ampTimestamp?Number(f.ampTimestamp):void 0,y=!h||Date.now()<h,C=null!==(G=null!==(J=null!==(Q=null!==(z=n.deviceId)&&void 0!==z?z:y?null!==(F=f.ampDeviceId)&&void 0!==F?F:f.deviceId:void 0)&&void 0!==Q?Q:null==g?void 0:g.deviceId)&&void 0!==J?J:m.deviceId)&&void 0!==G?G:O(),P=null!==(H=null==g?void 0:g.lastEventId)&&void 0!==H?H:m.lastEventId,w=null!==(X=null==g?void 0:g.lastEventTime)&&void 0!==X?X:m.lastEventTime,R=null!==($=null!==(Y=n.optOut)&&void 0!==Y?Y:null==g?void 0:g.optOut)&&void 0!==$?$:m.optOut,L=null!==(ee=null==g?void 0:g.sessionId)&&void 0!==ee?ee:m.sessionId,x=null==g?void 0:g.deferredSessionId,D=null!==(te=null!==(oe=n.userId)&&void 0!==oe?oe:null==g?void 0:g.userId)&&void 0!==te?te:m.userId,r.previousSessionDeviceId=null!==(ie=null==g?void 0:g.deviceId)&&void 0!==ie?ie:m.deviceId,r.previousSessionUserId=null!==(ne=null==g?void 0:g.userId)&&void 0!==ne?ne:m.userId,M={ipAddress:null===(se=null===(re=n.trackingOptions)||void 0===re?void 0:re.ipAddress)||void 0===se||se,language:null===(de=null===(ae=n.trackingOptions)||void 0===ae?void 0:ae.language)||void 0===de||de,platform:null===(ue=null===(le=n.trackingOptions)||void 0===le?void 0:le.platform)||void 0===ue||ue},B=null==g?void 0:g.pageCounter,q=null==g?void 0:g.debugLogsEnabled,void 0!==n.autocapture&&(n.defaultTracking=n.autocapture),[4,(N=new E(e,n.appVersion,v,c,n.defaultTracking,n.autocapture,C,n.flushIntervalMillis,n.flushMaxRetries,n.flushQueueSize,o,n.ingestionMetadata,n.instanceName,P,w,null!==(ce=null==a?void 0:a.loggerProvider)&&void 0!==ce?ce:n.loggerProvider,n.logLevel,n.minIdLength,n.offline,R,n.partnerId,n.plan,n.serverUrl,null!==(pe=null==a?void 0:a.serverZone)&&void 0!==pe?pe:n.serverZone,L,x,n.sessionTimeout,n.storageProvider,M,n.transport,n.useBatch,n.fetchRemoteConfig,D,B,q,n.networkTrackingOptions,n.identify,null!==(ve=null==a?void 0:a.enableDiagnostics)&&void 0!==ve?ve:n.enableDiagnostics,null!==(me=null==a?void 0:a.diagnosticsSampleRate)&&void 0!==me?me:r._diagnosticsSampleRate,s,n.remoteConfig,d,n.enableRequestBodyCompression,r._enableRequestBodyCompressionExperimentalValue,n.customEnrichment)).storageProvider.isEnabled()];case 5:return t.sent()||(N.loggerProvider.warn("Storage provider ".concat(N.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),N.storageProvider=new S),[2,N]}}))}))},j=function(e,o,t){switch(void 0===e&&(e=u),void 0===o&&(o={}),e){case"localStorage":return new n;case"sessionStorage":return new r;case"none":return new S;default:return new h(i(i({},o),{expirationDays:o.expiration}),t)}},P=function(e){var o,t;return void 0===e&&(e={}),!0===(null===(o=e.remoteConfig)||void 0===o?void 0:o.fetchRemoteConfig)||!1!==(null===(t=e.remoteConfig)||void 0===t?void 0:t.fetchRemoteConfig)&&!1!==e.fetchRemoteConfig},w=function(e){var o="object"==typeof e?e.type:e,t="object"==typeof e?e.headers:void 0;return"xhr"===o?new s(t):"beacon"===o?new d:new a(t)},T=function(e,i){return o(void 0,void 0,void 0,(function(){var e,o,n,r,s,a,d;return t(this,(function(t){switch(t.label){case 0:return[4,new h(void 0,{diagnosticsClient:i}).isEnabled()];case 1:if(!t.sent()||"undefined"==typeof location||!location.hostname)return[2,""];if(e=location.hostname,1===(o=e.split(".")).length)return[2,""];for(n=[],r=1,m.find((function(o){return e.endsWith(".".concat(o))}))&&(r=2),s=o.length-r-1;s>=0;--s)n.push(o.slice(s).join("."));s=0,t.label=2;case 2:if(!(s<n.length))return[3,7];a=n[s],t.label=3;case 3:return t.trys.push([3,5,,6]),[4,h.isDomainWritable(a)];case 4:return t.sent()?[2,"."+a]:[3,6];case 5:return d=t.sent(),i&&i.recordEvent("cookies.tld.failure",{reason:"Unexpected exception checking domain is writable: ".concat(a),error:d instanceof Error?d.message:String(d)}),[3,6];case 6:return s++,[3,2];case 7:return i&&i.recordEvent("cookies.tld.failure",{reason:"Could not determine TLD for host ".concat(e)}),[2,""]}}))}))};export{E as BrowserConfig,j as createCookieStorage,w as createTransport,T as getTopLevelDomain,P as shouldFetchRemoteConfig,C as useBrowserConfig};
@@ -1 +1 @@
1
- import{__awaiter as e,__generator as t,__read as o}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getOldCookieName as r}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/cookie-name.js";var n=function(n,a,c){return void 0===c&&(c=!0),e(void 0,void 0,void 0,(function(){var e,l,u,p,d,m,v,f,b;return t(this,(function(t){switch(t.label){case 0:return e=r(n),[4,a.getRaw(e)];case 1:return(l=t.sent())?c?[4,a.remove(e)]:[3,3]:[2,{optOut:!1}];case 2:t.sent(),t.label=3;case 3:return u=o(l.split("."),6),p=u[0],d=u[1],m=u[2],v=u[3],f=u[4],b=u[5],[2,{deviceId:p,userId:s(d),sessionId:i(v),lastEventId:i(b),lastEventTime:i(f),optOut:Boolean(m)}]}}))}))},i=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},s=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}};export{s as decode,n as parseLegacyCookies,i as parseTime};
1
+ import{__awaiter as e,__generator as t,__read as o}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getOldCookieName as r}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/cookie-name.js";var n=function(n,a,c){return void 0===c&&(c=!0),e(void 0,void 0,void 0,(function(){var e,l,u,p,d,m,v,f,b;return t(this,(function(t){switch(t.label){case 0:return e=r(n),[4,a.getRaw(e)];case 1:return(l=t.sent())?c?[4,a.remove(e)]:[3,3]:[2,{optOut:!1}];case 2:t.sent(),t.label=3;case 3:return u=o(l.split("."),6),p=u[0],d=u[1],m=u[2],v=u[3],f=u[4],b=u[5],[2,{deviceId:p,userId:s(d),sessionId:i(v),lastEventId:i(b),lastEventTime:i(f),optOut:Boolean(m)}]}}))}))},i=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},s=function(e){if(atob&&escape&&e)try{return decodeURIComponent(escape(atob(e)))}catch(e){return}};export{s as decode,n as parseLegacyCookies,i as parseTime};
@@ -0,0 +1 @@
1
+ import{__assign as t}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";var e=function(t,e){return"boolean"==typeof t?t:!1!==(null==t?void 0:t[e])},n=function(t){return e(t,"attribution")},o=function(t){return e(t,"fileDownloads")},r=function(t){return e(t,"formInteractions")},a=function(t){return e(t,"pageViews")},i=function(t){return e(t,"sessions")},u=function(t){return e(t,"pageUrlEnrichment")},c=function(t){return"boolean"==typeof t?t:"object"==typeof t&&(!0===t.networkTracking||"object"==typeof t.networkTracking)},f=function(t){return"boolean"==typeof t?t:"object"==typeof t&&(!0===t.elementInteractions||"object"==typeof t.elementInteractions)},l=function(t){return"boolean"==typeof t?t:"object"==typeof t&&!0===t.webVitals},p=function(t){return"boolean"==typeof t?t:"object"==typeof t&&(!0===t.frustrationInteractions||"object"==typeof t.frustrationInteractions)},s=function(t){return"boolean"==typeof t?t:"object"==typeof t&&null!==t&&!1!==t.enabled},g=function(t){if(f(t.autocapture)&&"object"==typeof t.autocapture&&"object"==typeof t.autocapture.elementInteractions)return t.autocapture.elementInteractions},d=function(t){if(p(t.autocapture)&&"object"==typeof t.autocapture&&"object"==typeof t.autocapture.frustrationInteractions)return t.autocapture.frustrationInteractions},k=function(e){var n;if(c(e.autocapture)){var o=void 0;return"object"==typeof e.autocapture&&"object"==typeof e.autocapture.networkTracking?o=e.autocapture.networkTracking:e.networkTrackingOptions&&(o=e.networkTrackingOptions),t(t({},o),{captureRules:null===(n=null==o?void 0:o.captureRules)||void 0===n?void 0:n.map((function(n){var o,r,a;if((null===(o=n.urls)||void 0===o?void 0:o.length)&&(null===(r=n.hosts)||void 0===r?void 0:r.length)){var i=JSON.stringify(n.hosts),u=JSON.stringify(n.urls);return null===(a=e.loggerProvider)||void 0===a||a.warn("Found network capture rule with both urls='".concat(u,"' and hosts='").concat(i,"' set. ")+"Definition of urls takes precedence over hosts, so ignoring hosts."),t(t({},n),{hosts:void 0})}return n}))})}},y=function(t){var e,n=function(){return!1},o=void 0,r=t.pageCounter;return a(t.defaultTracking)&&(n=void 0,e=void 0,t.defaultTracking&&"object"==typeof t.defaultTracking&&t.defaultTracking.pageViews&&"object"==typeof t.defaultTracking.pageViews&&("trackOn"in t.defaultTracking.pageViews&&(n=t.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in t.defaultTracking.pageViews&&(o=t.defaultTracking.pageViews.trackHistoryChanges),"eventType"in t.defaultTracking.pageViews&&t.defaultTracking.pageViews.eventType&&(e=t.defaultTracking.pageViews.eventType))),{trackOn:n,trackHistoryChanges:o,eventType:e,pageCounter:r}},b=function(e){return n(e.defaultTracking)&&e.defaultTracking&&"object"==typeof e.defaultTracking&&e.defaultTracking.attribution&&"object"==typeof e.defaultTracking.attribution?t({},e.defaultTracking.attribution):{}},T=function(t){if(r(t.defaultTracking)&&t.defaultTracking&&"object"==typeof t.defaultTracking&&"object"==typeof t.defaultTracking.formInteractions)return t.defaultTracking.formInteractions};export{b as getAttributionTrackingConfig,g as getElementInteractionsConfig,T as getFormInteractionsConfig,d as getFrustrationInteractionsConfig,k as getNetworkTrackingConfig,y as getPageViewTrackingConfig,n as isAttributionTrackingEnabled,s as isCustomEnrichmentEnabled,f as isElementInteractionsEnabled,o as isFileDownloadTrackingEnabled,r as isFormInteractionTrackingEnabled,p as isFrustrationInteractionsEnabled,c as isNetworkTrackingEnabled,u as isPageUrlEnrichmentEnabled,a as isPageViewTrackingEnabled,i as isSessionTrackingEnabled,l as isWebVitalsEnabled};
@@ -0,0 +1 @@
1
+ import e from"./browser-client-factory.js";export{createInstance}from"./browser-client-factory.js";export{AmplitudeBrowser}from"./browser-client.js";export{runQueuedFunctions}from"./utils/snippet-helper.js";import*as t from"./types.js";export{t as Types};export{Identify}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/identify.js";export{Revenue}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/revenue.js";var s=e.add,r=e.extendSession,o=e.flush,i=e.getDeviceId,n=e.getIdentity,a=e.getOptOut,p=e.getSessionId,d=e.getUserId,l=e.groupIdentify,m=e.identify,u=e.init,c=e.logEvent,y=e.remove,f=e.reset,I=e.revenue,x=e.setDeviceId,g=e.setGroup,v=e.setIdentity,j=e.setOptOut,b=e.setSessionId,_=e.setTransport,w=e.setUserId,O=e.track,S=e._setDiagnosticsSampleRate,D=e._enableRequestBodyCompressionExperimental;export{D as _enableRequestBodyCompressionExperimental,S as _setDiagnosticsSampleRate,s as add,r as extendSession,o as flush,i as getDeviceId,n as getIdentity,a as getOptOut,p as getSessionId,d as getUserId,l as groupIdentify,m as identify,u as init,c as logEvent,y as remove,f as reset,I as revenue,x as setDeviceId,g as setGroup,v as setIdentity,j as setOptOut,b as setSessionId,_ as setTransport,w as setUserId,O as track};
@@ -1 +1 @@
1
- import{__awaiter as i,__generator as t,__assign as e}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{VERSION as n}from"../version.js";import{LIBPREFIX as o}from"../lib-prefix.js";import{getLanguage as s}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/language.js";import{UUID as r}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js";var a=function(){function a(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat(o,"/").concat(n),"undefined"!=typeof navigator&&(this.userAgent=navigator.userAgent)}return a.prototype.setup=function(i){return this.config=i,Promise.resolve(void 0)},a.prototype.execute=function(n){var o,a;return i(this,void 0,void 0,(function(){var i,c,p;return t(this,(function(t){return i=(new Date).getTime(),c=null!==(o=this.config.lastEventId)&&void 0!==o?o:-1,p=null!==(a=n.event_id)&&void 0!==a?a:c+1,this.config.lastEventId=p,n.time||(this.config.lastEventTime=i),[2,e(e(e(e(e(e(e(e({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:i},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.language&&{language:s()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:r(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),n),{event_id:p,library:this.library,user_agent:this.userAgent})]}))}))},a}();export{a as Context};
1
+ import{__awaiter as i,__generator as t,__assign as e}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{VERSION as n}from"../version.js";import{LIBPREFIX as o}from"../lib-prefix.js";import{getLanguage as s}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/language.js";import{UUID as r}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js";var a=function(){function a(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat(o,"/").concat(n),"undefined"!=typeof navigator&&(this.userAgent=navigator.userAgent)}return a.prototype.setup=function(i){return this.config=i,Promise.resolve(void 0)},a.prototype.execute=function(n){var o,a;return i(this,void 0,void 0,(function(){var i,c,p;return t(this,(function(t){return i=(new Date).getTime(),c=null!==(o=this.config.lastEventId)&&void 0!==o?o:-1,p=null!==(a=n.event_id)&&void 0!==a?a:c+1,this.config.lastEventId=p,n.time||(this.config.lastEventTime=i),[2,e(e(e(e(e(e(e(e({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:i},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:"Web"}),this.config.trackingOptions.language&&{language:s()}),this.config.trackingOptions.ipAddress&&{ip:"$remote"}),{insert_id:r(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),n),{event_id:p,library:this.library,user_agent:this.userAgent})]}))}))},a}();export{a as Context};
@@ -1 +1 @@
1
- import{__awaiter as e,__generator as t}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{DEFAULT_FILE_DOWNLOAD_EVENT as n,FILE_EXTENSION as r,FILE_NAME as o,LINK_ID as i,LINK_TEXT as a,LINK_URL as d}from"../constants.js";import{getGlobalScope as l}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";var u=function(){var u,c=[];return{name:"@amplitude/plugin-file-download-tracking-browser",type:"enrichment",setup:function(s,f){return e(void 0,void 0,void 0,(function(){var e,m;return t(this,(function(t){return e=function(){if(f){if("undefined"!=typeof document){var e=function(e){var l;try{l=new URL(e.href,window.location.href)}catch(e){return}var u=t.exec(l.href),s=null==u?void 0:u[1];s&&function(e,t,n){e.addEventListener(t,n),c.push({element:e,type:t,handler:n})}(e,"click",(function(){var t;s&&f.track(n,((t={})[r]=s,t[o]=l.pathname,t[i]=e.id,t[a]=e.text,t[d]=e.href,t))}))},t=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/;Array.from(document.getElementsByTagName("a")).forEach(e),"undefined"!=typeof MutationObserver&&(u=new MutationObserver((function(t){t.forEach((function(t){t.addedNodes.forEach((function(t){"A"===t.nodeName&&e(t),"querySelectorAll"in t&&"function"==typeof t.querySelectorAll&&Array.from(t.querySelectorAll("a")).map(e)}))}))}))).observe(document.body,{subtree:!0,childList:!0})}}else s.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.")},"complete"===document.readyState?e():(m=l())?m.addEventListener("load",e):s.loggerProvider.debug("File download tracking is not installed because global is undefined."),[2]}))}))},execute:function(n){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){return[2,n]}))}))},teardown:function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){return null==u||u.disconnect(),c.forEach((function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)})),c=[],[2]}))}))}}};export{u as fileDownloadTracking};
1
+ import{__awaiter as e,__generator as t}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{DEFAULT_FILE_DOWNLOAD_EVENT as n,FILE_EXTENSION as r,FILE_NAME as o,LINK_ID as i,LINK_TEXT as a,LINK_URL as d}from"../constants.js";import{getGlobalScope as l}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";var u=function(){var u,c=[];return{name:"@amplitude/plugin-file-download-tracking-browser",type:"enrichment",setup:function(s,f){return e(void 0,void 0,void 0,(function(){var e,m;return t(this,(function(t){return e=function(){if(f){if("undefined"!=typeof document){var e=function(e){var l;try{l=new URL(e.href,window.location.href)}catch(e){return}var u=t.exec(l.href),s=null==u?void 0:u[1];s&&function(e,t,n){e.addEventListener(t,n),c.push({element:e,type:t,handler:n})}(e,"click",(function(){var t;s&&f.track(n,((t={})[r]=s,t[o]=l.pathname,t[i]=e.id,t[a]=e.text,t[d]=e.href,t))}))},t=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/;Array.from(document.getElementsByTagName("a")).forEach(e),"undefined"!=typeof MutationObserver&&(u=new MutationObserver((function(t){t.forEach((function(t){t.addedNodes.forEach((function(t){"A"===t.nodeName&&e(t),"querySelectorAll"in t&&"function"==typeof t.querySelectorAll&&Array.from(t.querySelectorAll("a")).map(e)}))}))}))).observe(document.body,{subtree:!0,childList:!0})}}else s.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.")},"complete"===document.readyState?e():(m=l())?m.addEventListener("load",e):s.loggerProvider.debug("File download tracking is not installed because global is undefined."),[2]}))}))},execute:function(n){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){return[2,n]}))}))},teardown:function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){return null==u||u.disconnect(),c.forEach((function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)})),c=[],[2]}))}))}}};export{u as fileDownloadTracking};
@@ -1 +1 @@
1
- import{__awaiter as e,__generator as t}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{DEFAULT_FORM_START_EVENT as n,FORM_ID as r,FORM_NAME as o,FORM_DESTINATION as i,DEFAULT_FORM_SUBMIT_EVENT as a}from"../constants.js";import{getFormInteractionsConfig as u}from"../default-tracking.js";import{getGlobalScope as c}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";var d=function(){var d,s,m=[],v=function(e,t,n){e.addEventListener(t,n),m.push({element:e,type:t,handler:n})};return{name:"@amplitude/plugin-form-interaction-tracking-browser",type:"enrichment",setup:function(m,p){return e(void 0,void 0,void 0,(function(){var e,b;return t(this,(function(t){return s=u(m),e=function(){if(p){if("undefined"!=typeof document){var e=new WeakSet,t=function(t){if(!e.has(t)){e.add(t);var u=!1;v(t,"change",(function(){var e,a=f(t);u||p.track(n,((e={})[r]=l(t.id),e[o]=l(t.name),e[i]=a,e)),u=!0})),v(t,"submit",(function(e){var c,d,v=f(t);if(u||p.track(n,((c={})[r]=l(t.id),c[o]=l(t.name),c[i]=v,c)),u=!0,void 0!==(null==s?void 0:s.shouldTrackSubmit))if("function"==typeof s.shouldTrackSubmit&&"undefined"!=typeof SubmitEvent&&e instanceof SubmitEvent)try{if(!s.shouldTrackSubmit(e))return}catch(e){m.loggerProvider.warn("shouldTrackSubmit callback threw an error, proceeding with tracking.")}else m.loggerProvider.warn("shouldTrackSubmit is ignored because it is not a function or event is not a SubmitEvent.");p.track(a,((d={})[r]=l(t.id),d[o]=l(t.name),d[i]=v,d)),u=!1}))}};Array.from(document.getElementsByTagName("form")).forEach(t),"undefined"!=typeof MutationObserver&&(d=new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){"FORM"===e.nodeName&&t(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("form")).map(t)}))}))}))).observe(document.body,{subtree:!0,childList:!0})}}else m.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.")},"complete"===document.readyState?e():(b=c())?b.addEventListener("load",e):m.loggerProvider.debug("Form interaction tracking is not installed because global is undefined."),[2]}))}))},execute:function(n){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){return[2,n]}))}))},teardown:function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){return null==d||d.disconnect(),m.forEach((function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)})),m=[],[2]}))}))}}},l=function(e){if("string"==typeof e)return e},f=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(null!=t?t:""),window.location.href).href}catch(e){}return t};export{f as extractFormAction,d as formInteractionTracking,l as stringOrUndefined};
1
+ import{__awaiter as e,__generator as t}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{DEFAULT_FORM_START_EVENT as n,FORM_ID as r,FORM_NAME as o,FORM_DESTINATION as i,DEFAULT_FORM_SUBMIT_EVENT as a}from"../constants.js";import{getFormInteractionsConfig as u}from"../default-tracking.js";import{getGlobalScope as c}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";var d=function(){var d,s,m=[],v=function(e,t,n){e.addEventListener(t,n),m.push({element:e,type:t,handler:n})};return{name:"@amplitude/plugin-form-interaction-tracking-browser",type:"enrichment",setup:function(m,p){return e(void 0,void 0,void 0,(function(){var e,b;return t(this,(function(t){return s=u(m),e=function(){if(p){if("undefined"!=typeof document){var e=new WeakSet,t=function(t){if(!e.has(t)){e.add(t);var u=!1;v(t,"change",(function(){var e,a=f(t);u||p.track(n,((e={})[r]=l(t.id),e[o]=l(t.name),e[i]=a,e)),u=!0})),v(t,"submit",(function(e){var c,d,v=f(t);if(u||p.track(n,((c={})[r]=l(t.id),c[o]=l(t.name),c[i]=v,c)),u=!0,void 0!==(null==s?void 0:s.shouldTrackSubmit))if("function"==typeof s.shouldTrackSubmit&&"undefined"!=typeof SubmitEvent&&e instanceof SubmitEvent)try{if(!s.shouldTrackSubmit(e))return}catch(e){m.loggerProvider.warn("shouldTrackSubmit callback threw an error, proceeding with tracking.")}else m.loggerProvider.warn("shouldTrackSubmit is ignored because it is not a function or event is not a SubmitEvent.");p.track(a,((d={})[r]=l(t.id),d[o]=l(t.name),d[i]=v,d)),u=!1}))}};Array.from(document.getElementsByTagName("form")).forEach(t),"undefined"!=typeof MutationObserver&&(d=new MutationObserver((function(e){e.forEach((function(e){e.addedNodes.forEach((function(e){"FORM"===e.nodeName&&t(e),"querySelectorAll"in e&&"function"==typeof e.querySelectorAll&&Array.from(e.querySelectorAll("form")).map(t)}))}))}))).observe(document.body,{subtree:!0,childList:!0})}}else m.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.")},"complete"===document.readyState?e():(b=c())?b.addEventListener("load",e):m.loggerProvider.debug("Form interaction tracking is not installed because global is undefined."),[2]}))}))},execute:function(n){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){return[2,n]}))}))},teardown:function(){return e(void 0,void 0,void 0,(function(){return t(this,(function(e){return null==d||d.disconnect(),m.forEach((function(e){var t=e.element,n=e.type,r=e.handler;null==t||t.removeEventListener(n,r)})),m=[],[2]}))}))}}},l=function(e){if("string"==typeof e)return e},f=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(null!=t?t:""),window.location.href).href}catch(e){}return t};export{f as extractFormAction,d as formInteractionTracking,l as stringOrUndefined};
@@ -1 +1 @@
1
- import{__awaiter as e,__generator as n}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as i}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";var o=function(){var o=i(),t=[],r=function(e,n){(null==o?void 0:o.addEventListener)&&(null==o||o.addEventListener(e,n),t.push({type:e,handler:n}))};return{name:"@amplitude/plugin-network-checker-browser",type:"before",setup:function(i,o){return e(void 0,void 0,void 0,(function(){return n(this,(function(e){return"undefined"==typeof navigator?(i.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),i.offline=!1,[2]):(i.offline=!navigator.onLine,r("online",(function(){i.loggerProvider.debug("Network connectivity changed to online."),i.offline=!1,setTimeout((function(){o.flush()}),i.flushIntervalMillis)})),r("offline",(function(){i.loggerProvider.debug("Network connectivity changed to offline."),i.offline=!0})),[2])}))}))},teardown:function(){return e(void 0,void 0,void 0,(function(){return n(this,(function(e){return t.forEach((function(e){var n=e.type,i=e.handler;null==o||o.removeEventListener(n,i)})),t=[],[2]}))}))}}};export{o as networkConnectivityCheckerPlugin};
1
+ import{__awaiter as e,__generator as n}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as i}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";var o=function(){var o=i(),t=[],r=function(e,n){(null==o?void 0:o.addEventListener)&&(null==o||o.addEventListener(e,n),t.push({type:e,handler:n}))};return{name:"@amplitude/plugin-network-checker-browser",type:"before",setup:function(i,o){return e(void 0,void 0,void 0,(function(){return n(this,(function(e){return"undefined"==typeof navigator?(i.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),i.offline=!1,[2]):(i.offline=!navigator.onLine,r("online",(function(){i.loggerProvider.debug("Network connectivity changed to online."),i.offline=!1,setTimeout((function(){o.flush()}),i.flushIntervalMillis)})),r("offline",(function(){i.loggerProvider.debug("Network connectivity changed to offline."),i.offline=!0})),[2])}))}))},teardown:function(){return e(void 0,void 0,void 0,(function(){return n(this,(function(e){return t.forEach((function(e){var n=e.type,i=e.handler;null==o||o.removeEventListener(n,i)})),t=[],[2]}))}))}}};export{o as networkConnectivityCheckerPlugin};
@@ -1 +1 @@
1
- import{__extends as e,__awaiter as t,__generator as r}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as o}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{BrowserStorage as l}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/storage/browser-storage.js";var i=1e3,s=function(l){function s(e){var t,r,i,s=this;try{i=null===(t=o())||void 0===t?void 0:t.localStorage}catch(t){null===(r=null==e?void 0:e.loggerProvider)||void 0===r||r.debug("Failed to access localStorage. error=".concat(JSON.stringify(t))),i=void 0}return(s=l.call(this,i)||this).loggerProvider=null==e?void 0:e.loggerProvider,s}return e(s,l),s.prototype.set=function(e,o){var s;return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return Array.isArray(o)&&o.length>i?(t=o.length-i,[4,l.prototype.set.call(this,e,o.slice(0,i))]):[3,2];case 1:return r.sent(),null===(s=this.loggerProvider)||void 0===s||s.error("Failed to save ".concat(t," events because the queue length exceeded ").concat(i,".")),[3,4];case 2:return[4,l.prototype.set.call(this,e,o)];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))},s}(l);export{s as LocalStorage};
1
+ import{__extends as e,__awaiter as t,__generator as r}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as o}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{BrowserStorage as l}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/storage/browser-storage.js";var i=1e3,s=function(l){function s(e){var t,r,i,s=this;try{i=null===(t=o())||void 0===t?void 0:t.localStorage}catch(t){null===(r=null==e?void 0:e.loggerProvider)||void 0===r||r.debug("Failed to access localStorage. error=".concat(JSON.stringify(t))),i=void 0}return(s=l.call(this,i)||this).loggerProvider=null==e?void 0:e.loggerProvider,s}return e(s,l),s.prototype.set=function(e,o){var s;return t(this,void 0,void 0,(function(){var t;return r(this,(function(r){switch(r.label){case 0:return Array.isArray(o)&&o.length>i?(t=o.length-i,[4,l.prototype.set.call(this,e,o.slice(0,i))]):[3,2];case 1:return r.sent(),null===(s=this.loggerProvider)||void 0===s||s.error("Failed to save ".concat(t," events because the queue length exceeded ").concat(i,".")),[3,4];case 2:return[4,l.prototype.set.call(this,e,o)];case 3:r.sent(),r.label=4;case 4:return[2]}}))}))},s}(l);export{s as LocalStorage};
@@ -1 +1 @@
1
- import{__extends as o}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as e}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{BrowserStorage as t}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/storage/browser-storage.js";var l=function(t){function l(){var o;return t.call(this,null===(o=e())||void 0===o?void 0:o.sessionStorage)||this}return o(l,t),l}(t);export{l as SessionStorage};
1
+ import{__extends as o}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as e}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{BrowserStorage as t}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/storage/browser-storage.js";var l=function(t){function l(){var o;return t.call(this,null===(o=e())||void 0===o?void 0:o.sessionStorage)||this}return o(l,t),l}(t);export{l as SessionStorage};
@@ -0,0 +1 @@
1
+ import{__extends as t,__awaiter as e,__generator as s,__assign as r}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{BaseTransport as n}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js";import{MIN_GZIP_UPLOAD_BODY_SIZE_BYTES as o,isCompressionStreamAvailable as i,compressToGzipArrayBuffer as a}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/transports/gzip.js";var c=function(n){function c(t){void 0===t&&(t={});var e=n.call(this)||this;return e.customHeaders=t,e}return t(c,n),c.prototype.send=function(t,n,c){return void 0===c&&(c=!1),e(this,void 0,void 0,(function(){var e,p,u,l,d,m,h;return s(this,(function(s){switch(s.label){case 0:if("undefined"==typeof fetch)throw new Error("FetchTransport is not supported");return e=JSON.stringify(n),p=c&&e.length>=o&&i(),u=e,l={"Content-Type":"application/json",Accept:"*/*"},p?[4,a(e)]:[3,2];case 1:(d=s.sent())&&(l["Content-Encoding"]="gzip",u=d),s.label=2;case 2:return l=r(r({},this.customHeaders),l),[4,fetch(t,{headers:l,body:u,method:"POST"})];case 3:return[4,(m=s.sent()).text()];case 4:h=s.sent();try{return[2,this.buildResponse(JSON.parse(h))]}catch(t){return[2,this.buildResponse({code:m.status})]}return[2]}}))}))},c}(n);export{c as FetchTransport};
@@ -0,0 +1 @@
1
+ import{__extends as e,__awaiter as t,__generator as o}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{BaseTransport as n}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js";import{getGlobalScope as r}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";var i=function(n){function i(){return n.call(this)||this}return e(i,n),i.prototype.send=function(e,n,i){return t(this,void 0,void 0,(function(){var t=this;return o(this,(function(o){return[2,new Promise((function(o,i){var s=r();if(!(null==s?void 0:s.navigator.sendBeacon))throw new Error("SendBeaconTransport is not supported");try{var a=JSON.stringify(n);return o(s.navigator.sendBeacon(e,a)?t.buildResponse({code:200,events_ingested:n.events.length,payload_size_bytes:a.length,server_upload_time:Date.now()}):t.buildResponse({code:500}))}catch(e){i(e)}}))]}))}))},i}(n);export{i as SendBeaconTransport};
@@ -0,0 +1 @@
1
+ import{__extends as t,__awaiter as e,__generator as r,__assign as n,__values as o,__read as s}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{BaseTransport as i}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js";import{MIN_GZIP_UPLOAD_BODY_SIZE_BYTES as a,isCompressionStreamAvailable as c,compressToGzipArrayBuffer as u}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/transports/gzip.js";var l=function(i){function l(t){void 0===t&&(t={});var e=i.call(this)||this;return e.state={done:4},e.customHeaders=t,e}return t(l,i),l.prototype.send=function(t,i,l){return void 0===l&&(l=!1),e(this,void 0,void 0,(function(){var p=this;return r(this,(function(d){return[2,new Promise((function(d,f){"undefined"==typeof XMLHttpRequest&&f(new Error("XHRTransport is not supported."));var m=new XMLHttpRequest;m.open("POST",t,!0),m.onreadystatechange=function(){if(m.readyState===p.state.done){var t=m.responseText;try{d(p.buildResponse(JSON.parse(t)))}catch(t){d(p.buildResponse({code:m.status}))}}};var v={"Content-Type":"application/json",Accept:"*/*"},y=JSON.stringify(i),h=l&&y.length>=a&&c(),b=function(t){var e,r;v=n(n({},p.customHeaders),v);try{for(var i=o(Object.entries(v)),a=i.next();!a.done;a=i.next()){var c=s(a.value,2),u=c[0],l=c[1];m.setRequestHeader(u,l)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(e)throw e.error}}m.send(t)};e(p,void 0,void 0,(function(){var t;return r(this,(function(e){switch(e.label){case 0:return h?[4,u(y)]:[3,2];case 1:return(t=e.sent())?(v["Content-Encoding"]="gzip",b(t)):b(y),[3,3];case 2:b(y),e.label=3;case 3:return[2]}}))})).catch(f)}))]}))}))},l}(i);export{l as XHRTransport};
@@ -0,0 +1 @@
1
+ export{DEFAULT_ACTION_CLICK_ALLOWLIST,DEFAULT_CSS_SELECTOR_ALLOWLIST,DEFAULT_DATA_ATTRIBUTE_PREFIX}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js";export{EXCLUDE_INTERNAL_REFERRERS_CONDITIONS}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/config/browser-config.js";export{IdentifyOperation,SpecialEventType}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js";export{LogLevel}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js";export{OfflineDisabled}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js";export{RevenueProperty}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/revenue.js";export{ServerZone}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js";
@@ -1 +1 @@
1
- var p="https://app.amplitude.com",t="https://app.eu.amplitude.com",a="https://apps.stag2.amplitude.com",m={US:p,EU:t,STAGING:a},s="https://cdn.amplitude.com/libs/background-capture-1.0.0-alpha.1.js.gz";export{s as AMPLITUDE_BACKGROUND_CAPTURE_SCRIPT_URL,p as AMPLITUDE_ORIGIN,m as AMPLITUDE_ORIGINS_MAP,t as AMPLITUDE_ORIGIN_EU,a as AMPLITUDE_ORIGIN_STAGING};
1
+ var p="https://app.amplitude.com",t="https://app.eu.amplitude.com",a="https://apps.stag2.amplitude.com",m={US:p,EU:t,STAGING:a},s="https://cdn.amplitude.com/libs/background-capture-1.0.0-alpha.3.js.gz";export{s as AMPLITUDE_BACKGROUND_CAPTURE_SCRIPT_URL,p as AMPLITUDE_ORIGIN,m as AMPLITUDE_ORIGINS_MAP,t as AMPLITUDE_ORIGIN_EU,a as AMPLITUDE_ORIGIN_STAGING};
@@ -0,0 +1 @@
1
+ import{__awaiter as e,__generator as t,__rest as s,__spreadArray as i,__read as n}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{Status as o}from"../types/status.js";import{MAX_RETRIES_EXCEEDED_MESSAGE as r,UNEXPECTED_ERROR_MESSAGE as u,MISSING_API_KEY_MESSAGE as l,SUCCESS_MESSAGE as a,INVALID_API_KEY as c}from"../types/messages.js";import{STORAGE_PREFIX as h,AMPLITUDE_SERVER_URL as d,EU_AMPLITUDE_SERVER_URL as f,AMPLITUDE_BATCH_SERVER_URL as v,EU_AMPLITUDE_BATCH_SERVER_URL as p}from"../types/constants.js";import{chunk as g}from"../utils/chunk.js";import{buildResult as m}from"../utils/result-builder.js";import{createServerConfig as y,RequestMetadata as b}from"../config.js";import{UUID as R}from"../utils/uuid.js";import{isSuccessStatusCode as E}from"../utils/status-code.js";import{getStacktrace as _}from"../utils/debug.js";var q=new Set([d,f,v,p]);function I(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch(e){}return t}var S=function(){function d(e){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[],this.diagnosticsClient=null==e?void 0:e.diagnosticsClient}return d.prototype.setup=function(s){var i;return e(this,void 0,void 0,(function(){var e,n=this;return t(this,(function(t){switch(t.label){case 0:return this.config=s,this.storageKey="".concat(h,"_").concat(this.config.apiKey.substring(0,10)),[4,null===(i=this.config.storageProvider)||void 0===i?void 0:i.get(this.storageKey)];case 1:return(e=t.sent())&&e.length>0&&Promise.all(e.map((function(e){return n.execute(e)}))).catch(),[2,Promise.resolve(void 0)]}}))}))},d.prototype.execute=function(e){var t=this;return e.insert_id||(e.insert_id=R()),new Promise((function(s){var i={event:e,attempts:0,callback:function(e){return s(e)},timeout:0};t.queue.push(i),t.schedule(t.config.flushIntervalMillis),t.saveEvents()}))},d.prototype.removeEventsExceedFlushMaxRetries=function(e){var t=this;return e.filter((function(e){return e.attempts+=1,e.attempts<t.config.flushMaxRetries||(t.fulfillRequest([e],500,r),!1)}))},d.prototype.scheduleEvents=function(e){var t=this;e.forEach((function(e){t.schedule(0===e.timeout?t.config.flushIntervalMillis:e.timeout)}))},d.prototype.schedule=function(e){var t=this;if(!this.config.offline)return null===this.scheduleId||this.scheduleId&&e>this.scheduledTimeout?(this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=e,void(this.scheduleId=setTimeout((function(){t.queue=t.queue.map((function(e){return e.timeout=0,e})),t.flush(!0)}),e))):void 0},d.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},d.prototype.flush=function(s){return void 0===s&&(s=!1),e(this,void 0,void 0,(function(){var i,n,o=this;return t(this,(function(r){switch(r.label){case 0:return this.config.offline?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2]):this.flushId?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2]):(this.flushId=this.scheduleId,this.resetSchedule(),i=[],n=[],this.queue.forEach((function(e){return 0===e.timeout?i.push(e):n.push(e)})),[4,g(i,this.config.flushQueueSize).reduce((function(i,n){return e(o,void 0,void 0,(function(){return t(this,(function(e){switch(e.label){case 0:return[4,i];case 1:return e.sent(),[4,this.send(n,s)];case 2:return[2,e.sent()]}}))}))}),Promise.resolve())]);case 1:return r.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}}))}))},d.prototype.send=function(i,n){var r;return void 0===n&&(n=!0),e(this,void 0,void 0,(function(){var e,a,c,h,d,f;return t(this,(function(t){switch(t.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(i,400,l)];e={api_key:this.config.apiKey,events:i.map((function(e){var t=e.event;return t.extra,s(t,["extra"])})),options:{min_id_length:this.config.minIdLength},client_upload_time:(new Date).toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new b,t.label=1;case 1:return t.trys.push([1,3,,4]),a=y(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,c=function(e,t){return void 0===t&&(t=!1),!!q.has(e)||t}(a,this.config.enableRequestBodyCompression),[4,this.config.transportProvider.send(a,e,this.config._enableRequestBodyCompressionExperimental&&c)];case 2:return null===(h=t.sent())?(this.fulfillRequest(i,0,u),[2]):n?(this.handleResponse(h,i),[3,4]):("body"in h?this.fulfillRequest(i,h.statusCode,"".concat(h.status,": ").concat(I(h))):this.fulfillRequest(i,h.statusCode,h.status),[2]);case 3:return d=t.sent(),f=(v=d)instanceof Error?v.message:String(v),this.config.loggerProvider.error(f),null===(r=this.diagnosticsClient)||void 0===r||r.recordEvent("analytics.events.unsuccessful.from.catch.error",{events:i.map((function(e){return e.event.event_type})),message:f,stack_trace:_()}),this.handleResponse({status:o.Failed,statusCode:0},i),[3,4];case 4:return[2]}var v}))}))},d.prototype.handleResponse=function(e,t){var s;E(e.statusCode)||null===(s=this.diagnosticsClient)||void 0===s||s.recordEvent("analytics.events.unsuccessful",{events:t.map((function(e){return e.event.event_type})),code:e.statusCode,status:e.status,body:I(e),stack_trace:_()});var i=e.status;switch(i){case o.Success:this.handleSuccessResponse(e,t);break;case o.Invalid:this.handleInvalidResponse(e,t);break;case o.PayloadTooLarge:this.handlePayloadTooLargeResponse(e,t);break;case o.RateLimit:this.handleRateLimitResponse(e,t);break;default:this.config.loggerProvider.warn("{code: 0, error: \"Status '".concat(i,"' provided for ").concat(t.length,' events"}')),this.handleOtherResponse(t)}},d.prototype.handleSuccessResponse=function(e,t){this.fulfillRequest(t,e.statusCode,a)},d.prototype.handleInvalidResponse=function(e,t){var s=this;if(e.body.missingField||e.body.error.startsWith(c))this.fulfillRequest(t,e.statusCode,e.body.error);else{var o=i(i(i(i([],n(Object.values(e.body.eventsWithInvalidFields)),!1),n(Object.values(e.body.eventsWithMissingFields)),!1),n(Object.values(e.body.eventsWithInvalidIdLengths)),!1),n(e.body.silencedEvents),!1).flat(),r=new Set(o),u=t.filter((function(t,i){if(!r.has(i))return!0;s.fulfillRequest([t],e.statusCode,e.body.error)}));u.length>0&&this.config.loggerProvider.warn(I(e));var l=this.removeEventsExceedFlushMaxRetries(u);this.scheduleEvents(l)}},d.prototype.handlePayloadTooLargeResponse=function(e,t){if(1!==t.length){this.config.loggerProvider.warn(I(e)),this.config.flushQueueSize/=2;var s=this.removeEventsExceedFlushMaxRetries(t);this.scheduleEvents(s)}else this.fulfillRequest(t,e.statusCode,e.body.error)},d.prototype.handleRateLimitResponse=function(e,t){var s=this,i=Object.keys(e.body.exceededDailyQuotaUsers),n=Object.keys(e.body.exceededDailyQuotaDevices),o=e.body.throttledEvents,r=new Set(i),u=new Set(n),l=new Set(o),a=t.filter((function(t,i){if(!(t.event.user_id&&r.has(t.event.user_id)||t.event.device_id&&u.has(t.event.device_id)))return l.has(i)&&(t.timeout=s.throttleTimeout),!0;s.fulfillRequest([t],e.statusCode,e.body.error)}));a.length>0&&this.config.loggerProvider.warn(I(e));var c=this.removeEventsExceedFlushMaxRetries(a);this.scheduleEvents(c)},d.prototype.handleOtherResponse=function(e){var t=this,s=e.map((function(e){return e.timeout=e.attempts*t.retryTimeout,e})),i=this.removeEventsExceedFlushMaxRetries(s);this.scheduleEvents(i)},d.prototype.fulfillRequest=function(e,t,s){var i,n,o;E(t)?null===(o=this.diagnosticsClient)||void 0===o||o.increment("analytics.events.sent",e.length):(null===(i=this.diagnosticsClient)||void 0===i||i.increment("analytics.events.dropped",e.length),null===(n=this.diagnosticsClient)||void 0===n||n.recordEvent("analytics.events.dropped",{events:e.map((function(e){return e.event.event_type})),code:t,message:s,stack_trace:_()})),this.removeEvents(e),e.forEach((function(e){return e.callback(m(e.event,t,s))}))},d.prototype.saveEvents=function(){if(this.config.storageProvider){var e=this.queue.map((function(e){return e.event}));this.config.storageProvider.set(this.storageKey,e)}},d.prototype.removeEvents=function(e){this.queue=this.queue.filter((function(t){return!e.some((function(e){return e.event.insert_id===t.event.insert_id}))})),this.saveEvents()},d}();export{S as Destination,I as getResponseBodyString};
@@ -0,0 +1 @@
1
+ import{__awaiter as e,__generator as t}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{RemoteConfigLocalStorage as i}from"./remote-config-localstorage.js";import{UUID as r}from"../utils/uuid.js";var o="https://sr-client-cfg.amplitude.com/config",n="https://sr-client-cfg.eu.amplitude.com/config",s=3,c=401,a=403,l=429,u=function(){function s(e,t,r,s){void 0===r&&(r="US"),this.callbackInfos=[],this.lastSuccessfulFetch=null,this.fetchPromise=null,this.isLastFetchInvalidApiKey=!1,this.apiKey=e,this.serverUrl=s||("US"===r?o:n),this.logger=t,this.storage=new i(e,t)}return s.prototype.subscribe=function(e,t,i){var o=r(),n={id:o,key:e,deliveryMode:t,callback:i};return this.callbackInfos.push(n),"all"===t?this.subscribeAll(n):this.subscribeWaitForRemote(n,t.timeout),o},s.prototype.unsubscribe=function(e){var t=this.callbackInfos.findIndex((function(t){return t.id===e}));return-1===t?(this.logger.debug("Remote config client unsubscribe failed because callback with id ".concat(e," doesn't exist.")),!1):(this.callbackInfos.splice(t,1),this.logger.debug("Remote config client unsubscribe succeeded removing callback with id ".concat(e,".")),!0)},s.prototype.updateConfigs=function(){return e(this,void 0,void 0,(function(){var e,i=this;return t(this,(function(t){switch(t.label){case 0:return this.lastSuccessfulFetch&&Date.now()-this.lastSuccessfulFetch<3e5?(this.logger.debug("Remote config client skipping updateConfigs: Too recent"),[2]):[4,this.getOrCreateFetchPromise()];case 1:return e=t.sent(),this.storage.setConfig(e),this.callbackInfos.forEach((function(t){i.sendCallback(t,e,"remote")})),[2]}}))}))},s.prototype.getOrCreateFetchPromise=function(){var e=this;return this.fetchPromise?this.fetchPromise:this.isLastFetchInvalidApiKey?(this.logger.debug("Remote config client skipping fetch: Invalid API key"),this.fetchPromise=Promise.resolve({remoteConfig:null,lastFetch:new Date}).finally((function(){e.fetchPromise=null})),this.fetchPromise):(this.fetchPromise=this.fetch().then((function(t){return null!==t.remoteConfig&&(e.lastSuccessfulFetch=Date.now()),t})).finally((function(){e.fetchPromise=null})),this.fetchPromise)},s.prototype.subscribeAll=function(i){return e(this,void 0,void 0,(function(){var e,r,o,n=this;return t(this,(function(t){switch(t.label){case 0:return e=this.getOrCreateFetchPromise().then((function(e){n.logger.debug("Remote config client subscription all mode fetched from remote: ".concat(JSON.stringify(e))),n.sendCallback(i,e,"remote"),n.storage.setConfig(e)})),r=this.storage.fetchConfig().then((function(e){return e})),[4,Promise.race([e,r])];case 1:return void 0!==(o=t.sent())&&(this.logger.debug("Remote config client subscription all mode fetched from cache: ".concat(JSON.stringify(o))),null!==o.remoteConfig?this.sendCallback(i,o,"cache"):this.logger.debug("Remote config client skips sending callback because cache is empty (first time user).")),[4,e];case 2:return t.sent(),[2]}}))}))},s.prototype.subscribeWaitForRemote=function(i,r){return e(this,void 0,void 0,(function(){var e,o;return t(this,(function(t){switch(t.label){case 0:e=new Promise((function(e,t){setTimeout((function(){t("Timeout exceeded")}),r)})),t.label=1;case 1:return t.trys.push([1,3,,5]),[4,Promise.race([this.getOrCreateFetchPromise(),e])];case 2:return o=t.sent(),this.logger.debug("Remote config client subscription wait for remote mode returns from remote."),this.sendCallback(i,o,"remote"),this.storage.setConfig(o),[3,5];case 3:return t.sent(),this.logger.debug("Remote config client subscription wait for remote mode exceeded timeout. Try to fetch from cache."),[4,this.storage.fetchConfig()];case 4:return null!==(o=t.sent()).remoteConfig?(this.logger.debug("Remote config client subscription wait for remote mode returns a cached copy."),this.sendCallback(i,o,"cache")):(this.logger.debug("Remote config client subscription wait for remote mode failed to fetch cache."),this.sendCallback(i,o,"remote")),[3,5];case 5:return[2]}}))}))},s.prototype.sendCallback=function(e,t,i){var r;e.lastCallback=new Date,r=e.key?e.key.split(".").reduce((function(e,t){return null===e?e:t in e?e[t]:null}),t.remoteConfig):t.remoteConfig,e.callback(r,i,t.lastFetch)},s.prototype.fetch=function(i,r){return void 0===i&&(i=3),void 0===r&&(r=1e3),e(this,void 0,void 0,(function(){var e,o,n,s,u,h,f=this;return t(this,(function(g){switch(g.label){case 0:e=r/i,o={remoteConfig:null,lastFetch:new Date},n=function(o){var n,u,h,g,m,d;return t(this,(function(t){switch(t.label){case 0:n=!0,u=new AbortController,h=setTimeout((function(){return u.abort()}),r),t.label=1;case 1:return t.trys.push([1,7,8,9]),[4,fetch(s.getUrlParams(),{method:"GET",headers:{Accept:"*/*"},signal:u.signal})];case 2:return(g=t.sent()).ok?[3,4]:[4,g.text()];case 3:return m=t.sent(),s.logger.debug("Remote config client fetch with retry time ".concat(i," failed with ").concat(g.status,": ").concat(m)),g.status===c||g.status===a?(s.logger.error("Remote config client fetch failed with ".concat(g.status,". Invalid API key; future fetches will be skipped.")),s.isLastFetchInvalidApiKey=!0,n=!1):g.status>=400&&g.status<500&&g.status!==l&&(n=!1),[3,6];case 4:return[4,g.json()];case 5:return[2,{value:{remoteConfig:t.sent(),lastFetch:new Date}}];case 6:return[3,9];case 7:return(d=t.sent())instanceof Error&&"AbortError"===d.name?s.logger.debug("Remote config client fetch with retry time ".concat(i," timed out after ").concat(r,"ms")):s.logger.debug("Remote config client fetch with retry time ".concat(i," is rejected because: "),d),[3,9];case 8:return clearTimeout(h),[7];case 9:return n?o<i-1?[4,new Promise((function(t){return setTimeout(t,f.getJitterDelay(e))}))]:[3,11]:[2,"break"];case 10:t.sent(),t.label=11;case 11:return[2]}}))},s=this,u=0,g.label=1;case 1:return u<i?[5,n(u)]:[3,4];case 2:if("object"==typeof(h=g.sent()))return[2,h.value];if("break"===h)return[3,4];g.label=3;case 3:return u++,[3,1];case 4:return[2,o]}}))}))},s.prototype.getJitterDelay=function(e){return Math.floor(Math.random()*e)},s.prototype.getUrlParams=function(){var e=encodeURIComponent(this.apiKey),t=new URLSearchParams;return t.append("config_group",s.CONFIG_GROUP),"".concat(this.serverUrl,"/").concat(e,"?").concat(t.toString())},s.CONFIG_GROUP="browser",s}();export{s as DEFAULT_MAX_RETRIES,n as EU_SERVER_URL,u as RemoteConfigClient,o as US_SERVER_URL};
@@ -1 +1 @@
1
- import{__assign as t}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{isValidObject as e}from"./utils/valid-properties.js";var r,i=function(){function i(){this.productId="",this.quantity=1,this.price=0}return i.prototype.setProductId=function(t){return this.productId=t,this},i.prototype.setQuantity=function(t){return t>0&&(this.quantity=t),this},i.prototype.setPrice=function(t){return this.price=t,this},i.prototype.setRevenueType=function(t){return this.revenueType=t,this},i.prototype.setCurrency=function(t){return this.currency=t,this},i.prototype.setRevenue=function(t){return this.revenue=t,this},i.prototype.setReceipt=function(t){return this.receipt=t,this},i.prototype.setReceiptSig=function(t){return this.receiptSig=t,this},i.prototype.setEventProperties=function(t){return e(t)&&(this.properties=t),this},i.prototype.getEventProperties=function(){var e=this.properties?t({},this.properties):{};return e[r.REVENUE_PRODUCT_ID]=this.productId,e[r.REVENUE_QUANTITY]=this.quantity,e[r.REVENUE_PRICE]=this.price,e[r.REVENUE_TYPE]=this.revenueType,e[r.REVENUE_CURRENCY]=this.currency,e[r.REVENUE]=this.revenue,e[r.RECEIPT]=this.receipt,e[r.RECEIPT_SIG]=this.receiptSig,e},i}();!function(t){t.REVENUE_PRODUCT_ID="$productId",t.REVENUE_QUANTITY="$quantity",t.REVENUE_PRICE="$price",t.REVENUE_TYPE="$revenueType",t.REVENUE_CURRENCY="$currency",t.REVENUE="$revenue",t.RECEIPT="$receipt",t.RECEIPT_SIG="$receiptSig"}(r||(r={}));export{i as Revenue,r as RevenueProperty};
1
+ import{__assign as t}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{isValidObject as e}from"./utils/valid-properties.js";var r,i=function(){function i(){this.productId="",this.quantity=1,this.price=0}return i.prototype.setProductId=function(t){return this.productId=t,this},i.prototype.setQuantity=function(t){return t>0&&(this.quantity=t),this},i.prototype.setPrice=function(t){return this.price=t,this},i.prototype.setRevenueType=function(t){return this.revenueType=t,this},i.prototype.setCurrency=function(t){return this.currency=t,this},i.prototype.setRevenue=function(t){return this.revenue=t,this},i.prototype.setReceipt=function(t){return this.receipt=t,this},i.prototype.setReceiptSig=function(t){return this.receiptSig=t,this},i.prototype.setEventProperties=function(t){try{var r=JSON.parse(JSON.stringify(t));e(r)&&(this.properties=r)}catch(t){}return this},i.prototype.getEventProperties=function(){var e=this.properties?t({},this.properties):{};return e[r.REVENUE_PRODUCT_ID]=this.productId,e[r.REVENUE_QUANTITY]=this.quantity,e[r.REVENUE_PRICE]=this.price,e[r.REVENUE_TYPE]=this.revenueType,e[r.REVENUE_CURRENCY]=this.currency,e[r.REVENUE]=this.revenue,e[r.RECEIPT]=this.receipt,e[r.RECEIPT_SIG]=this.receiptSig,e},i}();!function(t){t.REVENUE_PRODUCT_ID="$productId",t.REVENUE_QUANTITY="$quantity",t.REVENUE_PRICE="$price",t.REVENUE_TYPE="$revenueType",t.REVENUE_CURRENCY="$currency",t.REVENUE="$revenue",t.RECEIPT="$receipt",t.RECEIPT_SIG="$receiptSig"}(r||(r={}));export{i as Revenue,r as RevenueProperty};
@@ -0,0 +1 @@
1
+ import{__assign as t,__awaiter as e,__generator as n,__values as o}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{getGlobalScope as r}from"../global-scope.js";var i=function(){function i(e,n){void 0===n&&(n={}),this.options=t({},e),this.config=n}return i.prototype.isEnabled=function(){return e(this,void 0,void 0,(function(){var e,o,r,c,s=this;return n(this,(function(n){switch(n.label){case 0:return e="AMP_TEST",o=t({},this.options),r=new i(o),c=String(Date.now()),[4,r.transaction(e,(function(t){var n,o;try{t.set(c);var r=t.get()===c;return!r&&s.config.diagnosticsClient&&(null===(n=s.config.diagnosticsClient)||void 0===n||n.recordEvent("cookies.isEnabled.failure",{reason:"Test Value mismatch",testKey:e,testValue:c,sync:!0})),r}catch(t){if(s.config.diagnosticsClient){var i=t instanceof Error?t.message:String(t);null===(o=s.config.diagnosticsClient)||void 0===o||o.recordEvent("cookies.isEnabled.failure",{reason:"Cookie getter/setter failed",testKey:e,testValue:c,error:i,sync:!0})}return!1}finally{t.set(null)}}))];case 1:return[2,n.sent()]}}))}))},i.prototype.get=function(t){return e(this,void 0,void 0,(function(){var e;return n(this,(function(n){switch(n.label){case 0:return[4,this.getRaw(t)];case 1:return e=n.sent(),[2,this.decodeCookieValue(t,e)]}}))}))},i.prototype.decodeCookieValue=function(t,e){if(e)try{var n=c(e);return void 0===n?void console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(t,", value: ").concat(e)):JSON.parse(n)}catch(n){return void console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(t,", value: ").concat(e))}},i.prototype.getSync=function(t){var e=this.getRawSync(t);return this.decodeCookieValue(t,e)},i.prototype.getRaw=function(t){var i,c;return e(this,void 0,void 0,(function(){var e,u,a,l,d,f,v,h,p;return n(this,(function(n){switch(n.label){case 0:e=r(),u=e,n.label=1;case 1:return n.trys.push([1,4,,5]),(a=null==u?void 0:u.cookieStore)?[4,a.getAll(t)]:[3,3];case 2:if(l=n.sent()){l.length>1&&(null===(i=this.config.diagnosticsClient)||void 0===i||i.recordEvent("cookies.duplicate",{cookies:l.map((function(t){return t.domain}))}),null===(c=this.config.diagnosticsClient)||void 0===c||c.increment("cookies.duplicate.occurrence.cookieStore"));try{for(d=o(l),f=d.next();!f.done;f=d.next())if(v=f.value,s(v.domain,this.options.domain))return[2,v.value]}catch(t){h={error:t}}finally{try{f&&!f.done&&(p=d.return)&&p.call(d)}finally{if(h)throw h.error}}}n.label=3;case 3:return[3,5];case 4:return n.sent(),[3,5];case 5:return[2,this.getRawSync(t)]}}))}))},i.prototype.getRawSync=function(t){var e,n,o=this,i=r(),c=(null!==(n=null===(e=null==i?void 0:i.document)||void 0===e?void 0:e.cookie.split("; "))&&void 0!==n?n:[]).filter((function(e){return 0===e.indexOf(t+"=")})),s=void 0,u=this.config.duplicateResolverFn;if("function"==typeof u&&c.length>1&&(s=c.find((function(e){var n;try{var r=u(e.substring(t.length+1));return r||null===(n=o.config.diagnosticsClient)||void 0===n||n.increment("cookies.duplicate.occurrence.document.cookie"),r}catch(t){return!1}}))),s||(s=c[0]),s)return s.substring(t.length+1)},i.prototype.set=function(t,o){return e(this,void 0,void 0,(function(){return n(this,(function(e){return this.setSync(t,o),[2]}))}))},i.prototype.setSync=function(t,e){var n;try{var o=null!==(n=this.options.expirationDays)&&void 0!==n?n:0,i=null!==e?o:-1,c=void 0;if(i){var s=new Date;s.setTime(s.getTime()+24*i*60*60*1e3),c=s}var u="".concat(t,"=").concat(btoa(encodeURIComponent(JSON.stringify(e))));c&&(u+="; expires=".concat(c.toUTCString())),u+="; path=/",this.options.domain&&(u+="; domain=".concat(this.options.domain)),this.options.secure&&(u+="; Secure"),this.options.sameSite&&(u+="; SameSite=".concat(this.options.sameSite));var a=r();(null==a?void 0:a.document)&&(a.document.cookie=u)}catch(e){var l=e instanceof Error?e.message:String(e);console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(t,". Error: ").concat(l))}},i.prototype.remove=function(t){return e(this,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,this.set(t,null)];case 1:return e.sent(),[2]}}))}))},i.prototype.reset=function(){return e(this,void 0,void 0,(function(){return n(this,(function(t){return[2]}))}))},i.isDomainWritable=function(t){return e(this,void 0,void 0,(function(){var e,o;return n(this,(function(n){switch(n.label){case 0:if(i.cachedTlds[t])return[2,!0];e="AMP_TLDTEST",o=new i({domain:"."+t}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,o.transaction(e,(function(e){if(i.cachedTlds[t])return!0;try{e.set(1);var n=!!e.get();return n&&(i.cachedTlds[t]=!0),n}finally{e.set(null)}}))];case 2:return[2,!!n.sent()];case 3:return n.sent(),[2,!1];case 4:return[2]}}))}))},i.prototype.transaction=function(t,o){return e(this,void 0,void 0,(function(){var e,i,c=this;return n(this,(function(n){switch(n.label){case 0:if(e=function(){var t,e=r();return null===(t=null==e?void 0:e.navigator)||void 0===t?void 0:t.locks}(),i=function(){return o({get:function(){return c.getSync(t)},set:function(e){return c.setSync(t,e)}})},!e)return[2,i()];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,e.request("com.amplitude:cookie-lock:".concat(t),i)];case 2:return[2,n.sent()];case 3:return n.sent(),[2,i()];case 4:return[2]}}))}))},i.cachedTlds={},i}(),c=function(t){var e;return null!==(e=function(t){try{return decodeURIComponent(atob(t))}catch(t){return}}(t))&&void 0!==e?e:function(t){try{return decodeURIComponent(atob(decodeURIComponent(t)))}catch(t){return}}(t)},s=function(t,e){if(""===t&&""===e)return!0;if(!t||!e)return!1;var n=t.startsWith(".")?t.substring(1):t,o=e.startsWith(".")?e.substring(1):e;return n.toLowerCase()===o.toLowerCase()};export{i as CookieStorage,c as decodeCookieValue,s as isDomainEqual};
@@ -0,0 +1 @@
1
+ import{Status as e}from"../types/status.js";import{isSuccessStatusCode as t}from"../utils/status-code.js";var s=function(){function s(){}return s.prototype.send=function(e,t,s){return Promise.resolve(null)},s.prototype.buildResponse=function(t){var s,d,i,l,o,n,r,u,v,a,c,_,h,y,p,m,f,g,b,D,x,T;if("object"!=typeof t)return null;var I=t.code||0,w=this.buildStatus(I);switch(w){case e.Success:return{status:w,statusCode:I,body:{eventsIngested:null!==(s=t.events_ingested)&&void 0!==s?s:0,payloadSizeBytes:null!==(d=t.payload_size_bytes)&&void 0!==d?d:0,serverUploadTime:null!==(i=t.server_upload_time)&&void 0!==i?i:0}};case e.Invalid:return{status:w,statusCode:I,body:{error:null!==(l=t.error)&&void 0!==l?l:"",missingField:null!==(o=t.missing_field)&&void 0!==o?o:"",eventsWithInvalidFields:null!==(n=t.events_with_invalid_fields)&&void 0!==n?n:{},eventsWithMissingFields:null!==(r=t.events_with_missing_fields)&&void 0!==r?r:{},eventsWithInvalidIdLengths:null!==(u=t.events_with_invalid_id_lengths)&&void 0!==u?u:{},epsThreshold:null!==(v=t.eps_threshold)&&void 0!==v?v:0,exceededDailyQuotaDevices:null!==(a=t.exceeded_daily_quota_devices)&&void 0!==a?a:{},silencedDevices:null!==(c=t.silenced_devices)&&void 0!==c?c:[],silencedEvents:null!==(_=t.silenced_events)&&void 0!==_?_:[],throttledDevices:null!==(h=t.throttled_devices)&&void 0!==h?h:{},throttledEvents:null!==(y=t.throttled_events)&&void 0!==y?y:[]}};case e.PayloadTooLarge:return{status:w,statusCode:I,body:{error:null!==(p=t.error)&&void 0!==p?p:""}};case e.RateLimit:return{status:w,statusCode:I,body:{error:null!==(m=t.error)&&void 0!==m?m:"",epsThreshold:null!==(f=t.eps_threshold)&&void 0!==f?f:0,throttledDevices:null!==(g=t.throttled_devices)&&void 0!==g?g:{},throttledUsers:null!==(b=t.throttled_users)&&void 0!==b?b:{},exceededDailyQuotaDevices:null!==(D=t.exceeded_daily_quota_devices)&&void 0!==D?D:{},exceededDailyQuotaUsers:null!==(x=t.exceeded_daily_quota_users)&&void 0!==x?x:{},throttledEvents:null!==(T=t.throttled_events)&&void 0!==T?T:[]}};case e.Timeout:default:return{status:w,statusCode:I}}},s.prototype.buildStatus=function(s){return t(s)?e.Success:429===s?e.RateLimit:413===s?e.PayloadTooLarge:408===s?e.Timeout:s>=400&&s<500?e.Invalid:s>=500?e.Failed:e.Unknown},s}();export{s as BaseTransport};
@@ -0,0 +1 @@
1
+ import{__awaiter as e,__generator as r}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";var t=2048;function n(){return"undefined"!=typeof CompressionStream}function s(t){return e(this,void 0,void 0,(function(){var e,n;return r(this,(function(r){switch(r.label){case 0:if(void 0===(e=CompressionStream))return[2,void 0];r.label=1;case 1:return r.trys.push([1,3,,4]),n=new Blob([t]).stream().pipeThrough(new e("gzip")),[4,new Response(n).arrayBuffer()];case 2:return[2,r.sent()];case 3:return r.sent(),[2,void 0];case 4:return[2]}}))}))}export{t as MIN_GZIP_UPLOAD_BODY_SIZE_BYTES,s as compressToGzipArrayBuffer,n as isCompressionStreamAvailable};
@@ -0,0 +1 @@
1
+ var a={always:"always",ifEmptyCampaign:"ifEmptyCampaign"};export{a as EXCLUDE_INTERNAL_REFERRERS_CONDITIONS};
@@ -1 +1 @@
1
- var a=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],t="data-amp-track-",e=["div","span","h1","h2","h3","h4","h5","h6"];export{e as DEFAULT_ACTION_CLICK_ALLOWLIST,a as DEFAULT_CSS_SELECTOR_ALLOWLIST,t as DEFAULT_DATA_ATTRIBUTE_PREFIX};
1
+ var a=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],t="data-amp-track-",e=["div","span","h1","h2","h3","h4","h5","h6"],d=150;export{e as DEFAULT_ACTION_CLICK_ALLOWLIST,a as DEFAULT_CSS_SELECTOR_ALLOWLIST,t as DEFAULT_DATA_ATTRIBUTE_PREFIX,d as DEFAULT_EXPOSURE_DURATION};
@@ -0,0 +1 @@
1
+ import{__values as r}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import n from"../../../../../../../../../_virtual/index.js";function e(r,e){return new n((function(n){r.subscribe({next:function(r){e(r).then((function(r){return n.next(r)})).catch((function(r){return n.error(r)}))},error:function(r){n.error(r)},complete:function(){n.complete()}})}))}function t(e,t){return new n((function(n){var l=!1,o=new Set,u=function(){var n,e;l=!0;try{for(var t=r(o),u=t.next();!u.done;u=t.next()){var c=u.value;try{c.unsubscribe()}catch(r){}}}catch(r){n={error:r}}finally{try{u&&!u.done&&(e=t.return)&&e.call(t)}finally{if(n)throw n.error}}o.clear()},c=function(r){var e=r.subscribe({next:function(r){l||n.next(r)},error:function(r){l||(l=!0,n.error(r),u())},complete:function(){o.delete(e),l||0!==o.size||(n.complete(),u(),l=!0)}});o.add(e)};return c(e),c(t),u}))}function l(e){var t=new Set,l=null;function o(){null==l||l.unsubscribe(),l=null,t.clear()}return new n((function(n){return t.add(n),null===l&&(l=e.subscribe({next:function(n){var e,l,o;try{for(var u=r(t),c=u.next();!c.done;c=u.next()){var i=c.value;null===(o=i.next)||void 0===o||o.call(i,n)}}catch(r){e={error:r}}finally{try{c&&!c.done&&(l=u.return)&&l.call(u)}finally{if(e)throw e.error}}},error:function(n){var e,l,u;try{for(var c=r(t),i=c.next();!i.done;i=c.next()){var a=i.value;null===(u=a.error)||void 0===u||u.call(a,n)}}catch(r){e={error:r}}finally{try{i&&!i.done&&(l=c.return)&&l.call(c)}finally{if(e)throw e.error}}o()},complete:function(){var n,e,l;try{for(var u=r(t),c=u.next();!c.done;c=u.next()){var i=c.value;null===(l=i.complete)||void 0===l||l.call(i)}}catch(r){n={error:r}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(n)throw n.error}}o()}})),function(){t.delete(n),0===t.size&&l&&(l.unsubscribe(),l=null)}}))}export{n as Observable,e as asyncMap,t as merge,l as multicast};
@@ -0,0 +1 @@
1
+ import*as r from"../../../../../../../../../_virtual/index2.js";import i from"../../../../../../../../../_virtual/index2.js";var o=i||r;export{o as safeJsonStringify};
@@ -1 +1 @@
1
- import{getClosestElement as e,filterOutNonTrackableEvents as t}from"../helpers.js";import{AMPLITUDE_ELEMENT_CLICKED_EVENT as r}from"../constants.js";import{merge as l,asyncMap as n}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";function o(o){var s=o.amplitude,c=o.allObservables,i=o.options,u=o.getEventProperties,a=o.shouldTrackEvent,m=o.shouldTrackActionClick,k=c.clickObservable,f=c.mutationObservable,v=c.navigateObservable,p=k.filter((function(e){return!a("click",e.closestTrackedAncestor)})).map((function(t){var r=e(t.event.target,i.actionClickAllowlist);return t.closestTrackedAncestor=r,null!==t.closestTrackedAncestor&&(t.targetElementProperties=u(t.type,t.closestTrackedAncestor)),t})).filter(t).filter((function(e){return m("click",e.closestTrackedAncestor)})),b=v?l(f,v):f,d=l(p,b),T=null,A=null;return n(d,(function(e){if(T&&(clearTimeout(T),T=null),"click"===e.type)return A=e,T=setTimeout((function(){T=null,A=null}),500),Promise.resolve(null);if(A){var t=A;return A=null,Promise.resolve(t)}return Promise.resolve(null)})).subscribe((function(e){e&&(null==s||s.track(r,u("click",e.closestTrackedAncestor)))}))}export{o as trackActionClick};
1
+ import{getClosestElement as e,filterOutNonTrackableEvents as t}from"../helpers.js";import{AMPLITUDE_ELEMENT_CLICKED_EVENT as r}from"../constants.js";import{merge as l,asyncMap as n}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";function o(o){var s=o.amplitude,c=o.allObservables,i=o.options,u=o.getEventProperties,a=o.shouldTrackEvent,m=o.shouldTrackActionClick,k=c.clickObservable,f=c.mutationObservable,v=c.navigateObservable,p=k.filter((function(e){return!a("click",e.closestTrackedAncestor)})).map((function(t){var r=e(t.event.target,i.actionClickAllowlist);return t.closestTrackedAncestor=r,null!==t.closestTrackedAncestor&&(t.targetElementProperties=u(t.type,t.closestTrackedAncestor)),t})).filter(t).filter((function(e){return m("click",e.closestTrackedAncestor)})),b=v?l(f,v):f,d=l(p,b),T=null,A=null;return n(d,(function(e){if(T&&(clearTimeout(T),T=null),"click"===e.type)return A=e,T=setTimeout((function(){T=null,A=null}),500),Promise.resolve(null);if(A){var t=A;return A=null,Promise.resolve(t)}return Promise.resolve(null)})).subscribe((function(e){e&&(null==s||s.track(r,u("click",e.closestTrackedAncestor)))}))}export{o as trackActionClick};
@@ -1 +1 @@
1
- import{__assign as e}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{filterOutNonTrackableEvents as t,MouseButton as l}from"../helpers.js";import{AMPLITUDE_ELEMENT_DEAD_CLICKED_EVENT as r}from"../constants.js";import{merge as i,asyncMap as n}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";var s=["mutation","navigate"];function o(o){var c=o.amplitude,a=o.allObservables,u=o.getEventProperties,m=o.shouldTrackDeadClick,p=a.clickObservable,v=a.mutationObservable,b=a.navigateObservable,d=p.filter((function(e){return t(e)&&m("click",e.closestTrackedAncestor)&&e.event.target instanceof Element&&null===e.event.target.closest('a[target="_blank"]')&&e.event.button===l.LEFT_OR_TOUCH_CONTACT})),f=b?i(v,b):v,_=i(d,f),k=null;return n(_,(function(e){return k&&s.includes(e.type)?(clearTimeout(k),k=null,Promise.resolve(null)):"click"===e.type?k?Promise.resolve(null):new Promise((function(t){k=setTimeout((function(){t(e),k=null}),3e3)})):Promise.resolve(null)})).subscribe((function(t){if(t){var l={"[Amplitude] X":t.event.clientX,"[Amplitude] Y":t.event.clientY};c.track(r,e(e({},u("click",t.closestTrackedAncestor)),l),{time:t.timestamp})}}))}export{o as trackDeadClick};
1
+ import{__assign as e}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{filterOutNonTrackableEvents as t,MouseButton as l}from"../helpers.js";import{AMPLITUDE_ELEMENT_DEAD_CLICKED_EVENT as r}from"../constants.js";import{merge as i,asyncMap as n}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";var s=["mutation","navigate"];function o(o){var c=o.amplitude,a=o.allObservables,u=o.getEventProperties,m=o.shouldTrackDeadClick,p=a.clickObservable,v=a.mutationObservable,b=a.navigateObservable,d=p.filter((function(e){return t(e)&&m("click",e.closestTrackedAncestor)&&e.event.target instanceof Element&&null===e.event.target.closest('a[target="_blank"]')&&e.event.button===l.LEFT_OR_TOUCH_CONTACT})),f=b?i(v,b):v,_=i(d,f),k=null;return n(_,(function(e){return k&&s.includes(e.type)?(clearTimeout(k),k=null,Promise.resolve(null)):"click"===e.type?k?Promise.resolve(null):new Promise((function(t){k=setTimeout((function(){t(e),k=null}),3e3)})):Promise.resolve(null)})).subscribe((function(t){if(t){var l={"[Amplitude] X":t.event.clientX,"[Amplitude] Y":t.event.clientY};c.track(r,e(e({},u("click",t.closestTrackedAncestor)),l),{time:t.timestamp})}}))}export{o as trackDeadClick};
@@ -1 +1 @@
1
- import{__assign as e}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{filterOutNonTrackableEvents as t,MouseButton as l}from"../helpers.js";import{AMPLITUDE_ELEMENT_ERROR_CLICKED_EVENT as r}from"../constants.js";import{merge as n}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";function i(i){var s=i.amplitude,o=i.allObservables,u=i.shouldTrackErrorClick,m=o.clickObservable,a=o.browserErrorObservable,c=m.filter((function(e){return t(e)&&u("click",e.closestTrackedAncestor)&&e.event.target instanceof Element&&null===e.event.target.closest('a[target="_blank"]')&&e.event.button===l.LEFT_OR_TOUCH_CONTACT})),p=null,b=null,d=function(){null!==p&&(clearTimeout(p),p=null),b=null};return n(c,a).subscribe((function(t){var l;if("click"===t.type)return d(),b=t,void(p=setTimeout(d,2e3));"error"===t.type&&b&&(s.track(r,e(((l={})["[Amplitude] Kind"]=t.event.kind,l["[Amplitude] Message"]=t.event.message,l["[Amplitude] Stack"]=t.event.stack,l["[Amplitude] Filename"]=t.event.filename,l["[Amplitude] Line Number"]=t.event.lineNumber,l["[Amplitude] Column Number"]=t.event.columnNumber,l),b.targetElementProperties)),d())}))}export{i as trackErrorClicks};
1
+ import{__assign as e}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{filterOutNonTrackableEvents as t,MouseButton as l}from"../helpers.js";import{AMPLITUDE_ELEMENT_ERROR_CLICKED_EVENT as r}from"../constants.js";import{merge as n}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";function i(i){var s=i.amplitude,o=i.allObservables,u=i.shouldTrackErrorClick,m=o.clickObservable,a=o.browserErrorObservable,c=m.filter((function(e){return t(e)&&u("click",e.closestTrackedAncestor)&&e.event.target instanceof Element&&null===e.event.target.closest('a[target="_blank"]')&&e.event.button===l.LEFT_OR_TOUCH_CONTACT})),p=null,b=null,d=function(){null!==p&&(clearTimeout(p),p=null),b=null};return n(c,a).subscribe((function(t){var l;if("click"===t.type)return d(),b=t,void(p=setTimeout(d,2e3));"error"===t.type&&b&&(s.track(r,e(((l={})["[Amplitude] Kind"]=t.event.kind,l["[Amplitude] Message"]=t.event.message,l["[Amplitude] Stack"]=t.event.stack,l["[Amplitude] Filename"]=t.event.filename,l["[Amplitude] Line Number"]=t.event.lineNumber,l["[Amplitude] Column Number"]=t.event.columnNumber,l),b.targetElementProperties)),d())}))}export{i as trackErrorClicks};
@@ -0,0 +1 @@
1
+ import{DEFAULT_EXPOSURE_DURATION as e}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js";function t(t){var n=t.allObservables,r=t.onExposure,i=t.dataExtractor,s=t.exposureDuration,a=void 0===s?e:s,o=new Map,u=new Map,c=n.exposureObservable.subscribe((function(e){var t=e,n=t.target;if(t.isIntersecting){if(!o.get(n)){var s=setTimeout((function(){o.set(n,!0);var e=i.getElementPath(n);r(e),u.set(n,null)}),a);u.set(n,s)}}else if(!t.isIntersecting&&t.intersectionRatio<1){(s=u.get(n))&&(clearTimeout(s),u.set(n,null))}}));return{unsubscribe:function(){c.unsubscribe()},reset:function(){u.forEach((function(e){e&&clearTimeout(e)})),u.clear(),o.clear()}}}export{t as trackExposure};
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e,__assign as n}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{AMPLITUDE_ELEMENT_RAGE_CLICKED_EVENT as i}from"../constants.js";import{asyncMap as l}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";import{DEFAULT_RAGE_CLICK_WINDOW_MS as r,DEFAULT_RAGE_CLICK_THRESHOLD as u,DEFAULT_RAGE_CLICK_OUT_OF_BOUNDS_THRESHOLD as s}from"../../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/types/frustration-interactions.js";var a=u,o=r,m=s;function c(t,e){var n,i,l,r,u=e.event,s=u.pageX,a=u.pageY;t.yMin=Math.min(null!==(n=t.yMin)&&void 0!==n?n:a,a),t.yMax=Math.max(null!==(i=t.yMax)&&void 0!==i?i:a,a),t.xMin=Math.min(null!==(l=t.xMin)&&void 0!==l?l:s,s),t.xMax=Math.max(null!==(r=t.xMax)&&void 0!==r?r:s,s),t.isOutOfBounds=t.yMax-t.yMin>m||t.xMax-t.xMin>m}function p(t){if(0===t.length)return null;var e=t[0],i=t[t.length-1];return{rageClickEvent:n({"[Amplitude] Begin Time":new Date(e.timestamp).toISOString(),"[Amplitude] End Time":new Date(i.timestamp).toISOString(),"[Amplitude] Duration":i.timestamp-e.timestamp,"[Amplitude] Clicks":t.map((function(t){return{X:t.event.pageX,Y:t.event.pageY,Time:t.timestamp}})),"[Amplitude] Click Count":t.length},e.targetElementProperties),time:e.timestamp}}function d(n){var r=this,u=n.amplitude,s=n.allObservables,m=n.shouldTrackRageClick,d=s.clickObservable,f=s.selectionObservable,v=[],b={},g=null;function h(t){v=[],b={},t&&(c(b,t),v.push(t))}var M=l(d.filter((function(t){return m("click",t.closestTrackedAncestor)})),(function(n){return t(r,void 0,void 0,(function(){var t;return e(this,(function(e){return c(b,n),t=null,0===v.length||function(t,e){return t.length>0&&t[t.length-1].closestTrackedAncestor!==e.closestTrackedAncestor}(v,n)||function(t,e){var n=t[Math.max(0,t.length-a+1)];return e.timestamp-n.timestamp>=o}(v,n)||b.isOutOfBounds?(g&&(t=p(v)),h(n)):v.push(n),g&&(clearTimeout(g.timerId),g.resolve(t),g=null),v.length>=a?[2,new Promise((function(t){g={resolve:t,timerId:setTimeout((function(){t(p(v))}),o)}}))]:[2,null]}))}))})),x=null==f?void 0:f.subscribe((function(){h()})),y=M.subscribe((function(t){null!==t&&u.track(i,t.rageClickEvent,{time:t.time})}));return{unsubscribe:function(){y.unsubscribe(),null==x||x.unsubscribe()}}}export{d as trackRageClicks};
1
+ import{__awaiter as t,__generator as e,__assign as n}from"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{AMPLITUDE_ELEMENT_RAGE_CLICKED_EVENT as i}from"../constants.js";import{asyncMap as l}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";import{DEFAULT_RAGE_CLICK_WINDOW_MS as r,DEFAULT_RAGE_CLICK_THRESHOLD as u,DEFAULT_RAGE_CLICK_OUT_OF_BOUNDS_THRESHOLD as s}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/frustration-interactions.js";var a=u,o=r,m=s;function c(t,e){var n,i,l,r,u=e.event,s=u.pageX,a=u.pageY;t.yMin=Math.min(null!==(n=t.yMin)&&void 0!==n?n:a,a),t.yMax=Math.max(null!==(i=t.yMax)&&void 0!==i?i:a,a),t.xMin=Math.min(null!==(l=t.xMin)&&void 0!==l?l:s,s),t.xMax=Math.max(null!==(r=t.xMax)&&void 0!==r?r:s,s),t.isOutOfBounds=t.yMax-t.yMin>m||t.xMax-t.xMin>m}function p(t){if(0===t.length)return null;var e=t[0],i=t[t.length-1];return{rageClickEvent:n({"[Amplitude] Begin Time":new Date(e.timestamp).toISOString(),"[Amplitude] End Time":new Date(i.timestamp).toISOString(),"[Amplitude] Duration":i.timestamp-e.timestamp,"[Amplitude] Clicks":t.map((function(t){return{X:t.event.pageX,Y:t.event.pageY,Time:t.timestamp}})),"[Amplitude] Click Count":t.length},e.targetElementProperties),time:e.timestamp}}function d(n){var r=this,u=n.amplitude,s=n.allObservables,m=n.shouldTrackRageClick,d=s.clickObservable,f=s.selectionObservable,v=[],b={},g=null;function h(t){v=[],b={},t&&(c(b,t),v.push(t))}var M=l(d.filter((function(t){return m("click",t.closestTrackedAncestor)})),(function(n){return t(r,void 0,void 0,(function(){var t;return e(this,(function(e){return c(b,n),t=null,0===v.length||function(t,e){return t.length>0&&t[t.length-1].closestTrackedAncestor!==e.closestTrackedAncestor}(v,n)||function(t,e){var n=t[Math.max(0,t.length-a+1)];return e.timestamp-n.timestamp>=o}(v,n)||b.isOutOfBounds?(g&&(t=p(v)),h(n)):v.push(n),g&&(clearTimeout(g.timerId),g.resolve(t),g=null),v.length>=a?[2,new Promise((function(t){g={resolve:t,timerId:setTimeout((function(){t(p(v))}),o)}}))]:[2,null]}))}))})),x=null==f?void 0:f.subscribe((function(){h()})),y=M.subscribe((function(t){null!==t&&u.track(i,t.rageClickEvent,{time:t.time})}));return{unsubscribe:function(){y.unsubscribe(),null==x||x.unsubscribe()}}}export{d as trackRageClicks};
@@ -0,0 +1 @@
1
+ import{getGlobalScope as l}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";function a(a){var o=a.allObservables.scrollObservable,e={maxX:0,maxY:0},n=o.subscribe((function(){var a,o,n,t,u=l(),i=Math.floor(null!==(o=null!==(a=null==u?void 0:u.scrollX)&&void 0!==a?a:null==u?void 0:u.pageXOffset)&&void 0!==o?o:0),r=Math.floor(null!==(t=null!==(n=null==u?void 0:u.scrollY)&&void 0!==n?n:null==u?void 0:u.pageYOffset)&&void 0!==t?t:0);e.maxX=Math.max(e.maxX,i),e.maxY=Math.max(e.maxY,r)}));return{unsubscribe:function(){n.unsubscribe()},getState:function(){return e},reset:function(){e.maxX=0,e.maxY=0}}}export{a as trackScroll};
@@ -0,0 +1 @@
1
+ import{AMPLITUDE_THRASHED_CURSOR_EVENT as e}from"../constants.js";import{isUrlAllowed as n}from"../helpers.js";import t from"../../../../../../../../../_virtual/index.js";import"../../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";var r,i;!function(e){e.INCREASING="increasing",e.DECREASING="decreasing"}(r||(r={})),function(e){e.X="x",e.Y="y"}(i||(i={}));var s=function(e){var n=e.allWindowObservables.mouseMoveObservable;return new t((function(e){var t=null,s=null,o=null;return n.subscribe((function(n){var l={x:n.clientX,y:n.clientY};null!==t?(l.x>t.x?(s===r.DECREASING&&e.next(i.X),s=r.INCREASING):l.x<t.x&&(s===r.INCREASING&&e.next(i.X),s=r.DECREASING),l.y>t.y?(o===r.DECREASING&&e.next(i.Y),o=r.INCREASING):l.y<t.y&&(o===r.INCREASING&&e.next(i.Y),o=r.DECREASING),t=l):t=l}))}))};function o(e){var n=e.changes,t=e.changesThreshold,r=e.thresholdMs;return!(n.length<t)&&n[n.length-1]-n[0]<r}function l(e){e.changes=[],e.startTime=void 0}function a(e){for(var n=e.changes,t=e.thresholdMs,r=0,i=n[n.length-1];r<n.length;r++){if(i-n[r]<t)break}0!==r&&(e.startTime=n[r],e.changes.splice(0,r))}var u=function(e){var n=e.mouseDirectionChangeObservable,r=e.directionChanges,s=void 0===r?20:r,u=e.thresholdMs,c=void 0===u?2e3:u;return new t((function(e){var t={changes:[],changesThreshold:s,thresholdMs:c},r={changes:[],changesThreshold:s,thresholdMs:c},u=void 0,h=null;function v(){void 0!==u&&(e.next(u),u=void 0,null!==h&&clearTimeout(h),l(t),l(r))}return n.subscribe((function(e){null!==h&&clearTimeout(h),function(e){var n=+Date.now();e.startTime=e.startTime||n;var t=e.changes,r=e.changesThreshold;t.push(n),t.length>r&&t.shift()}(e===i.X?t:r);var n=function(e,n){var t=void 0;if(o(e)&&(t=e.startTime),o(n)){var r=n.startTime;r&&(!t||r<t)&&(t=r)}return t}(t,r);return n?(u=u||n,h=setTimeout((function(){v(),h=null}),c)):v(),a(t),a(r),function(){null!==h&&(clearTimeout(h),h=null)}}))}))},c=function(t){var r=t.amplitude,i=t.options,o=t.allObservables,l=t.directionChanges,a=void 0===l?20:l,c=t.thresholdMs,h=void 0===c?2e3:c,v=s({allWindowObservables:o});return u({mouseDirectionChangeObservable:v,directionChanges:a,thresholdMs:h}).subscribe((function(t){n(i)&&r.track(e,void 0,{time:t})}))};export{s as createMouseDirectionChangeObservable,u as createThrashedCursorObservable,c as trackThrashedCursor};
@@ -0,0 +1 @@
1
+ import{AMPLITUDE_EVENT_PROP_PAGE_URL as e,AMPLITUDE_EVENT_PROP_MAX_PAGE_X as l,AMPLITUDE_EVENT_PROP_MAX_PAGE_Y as r,AMPLITUDE_EVENT_PROP_VIEWPORT_HEIGHT as a,AMPLITUDE_EVENT_PROP_VIEWPORT_WIDTH as t,AMPLITUDE_EVENT_PROP_PAGE_VIEW_ID as o,MAX_ELEMENT_EXPOSED_STR_LENGTH as n}from"../constants.js";import{getCurrentPageViewId as i}from"../helpers.js";import{getGlobalScope as m}from"../../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";function d(n){var d,s,u,c,p=n.amplitude,x=n.scrollTracker,f=n.currentElementExposed,v=n.elementExposedForPage,g=n.exposureTracker,h=n.isPageEnd,E=n.lastScroll,y=x.getState(),X=m(),Y=null!==(s=null==X?void 0:X.innerWidth)&&void 0!==s?s:0,A=null!==(u=null==X?void 0:X.innerHeight)&&void 0!==u?u:0,j=((d={})[e]=null===(c=null==X?void 0:X.location)||void 0===c?void 0:c.href,d[l]=y.maxX+Y,d[r]=y.maxY+A,d[a]=A,d[t]=Y,d["[Amplitude] Element Exposed"]=Array.from(f),d),k=i();k&&(j[o]=k),0!==f.size||y.maxX!==E.maxX||y.maxY!==E.maxY?(null==p||p.track("[Amplitude] Viewport Content Updated",j),E.maxX=y.maxX,E.maxY=y.maxY,f.clear(),h&&(x.reset(),v.clear(),null==g||g.reset())):h&&(x.reset(),v.clear(),null==g||g.reset())}function s(e,l,r,a){if(!l.has(e)){l.add(e),r.add(e);var t=Array.from(r);JSON.stringify(t).length>=n&&a(!1)}}export{d as fireViewportContentUpdated,s as onExposure};
@@ -0,0 +1 @@
1
+ import{__assign as e,__awaiter as t,__generator as o,__values as r,__read as n,__spreadArray as i}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{VERSION as l}from"./version.js";import{PLUGIN_NAME as s}from"./constants.js";import{createShouldTrackEvent as a}from"./helpers.js";import{enableVisualTagging as u}from"./libs/messenger.js";import{trackClicks as c}from"./autocapture/track-click.js";import{trackChange as d}from"./autocapture/track-change.js";import{trackActionClick as p}from"./autocapture/track-action-click.js";import{trackScroll as v}from"./autocapture/track-scroll.js";import{createClickObservable as b,createMutationObservable as m,createScrollObservable as f,createExposureObservable as g}from"./observables.js";import{groupLabeledEventIdsByEventType as h,createLabeledEventToTriggerMap as w,createTriggerEvaluator as E}from"./pageActions/triggers.js";import{DataExtractor as y}from"./data-extractor.js";import{trackExposure as x}from"./autocapture/track-exposure.js";import{fireViewportContentUpdated as O,onExposure as A}from"./autocapture/track-viewport-content-updated.js";import{DEFAULT_CSS_SELECTOR_ALLOWLIST as k,DEFAULT_ACTION_CLICK_ALLOWLIST as j,DEFAULT_EXPOSURE_DURATION as S,DEFAULT_DATA_ATTRIBUTE_PREFIX as C}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js";import{getOrCreateWindowMessenger as _}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/base-window-messenger.js";import{enableBackgroundCapture as P}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/background-capture.js";import{getGlobalScope as T}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{multicast as L}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";import D from"../../../../../../../../_virtual/index.js";import{AMPLITUDE_ORIGINS_MAP as M}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/messenger/constants.js";var U;!function(e){e.ClickObservable="clickObservable",e.ChangeObservable="changeObservable",e.NavigateObservable="navigateObservable",e.MutationObservable="mutationObservable",e.ScrollObservable="scrollObservable",e.ExposureObservable="exposureObservable",e.BrowserErrorObservable="browserErrorObservable",e.SelectionObservable="selectionObservable",e.MouseMoveObservable="mouseMoveObservable"}(U||(U={}));var R=function(R,N){var Z,B,F,I,K,X,Y,q,z,G,H;void 0===R&&(R={}),null==N||N.diagnosticsClient.setTag("plugin.autocapture.version",l);var J=R.dataAttributePrefix,Q=void 0===J?C:J,V=R.visualTaggingOptions,W=void 0===V?{enabled:!0}:V;R.cssSelectorAllowlist=null!==(Z=R.cssSelectorAllowlist)&&void 0!==Z?Z:k,R.actionClickAllowlist=null!==(B=R.actionClickAllowlist)&&void 0!==B?B:j,R.debounceTime=null!==(F=R.debounceTime)&&void 0!==F?F:0;var $=null!==(X=null!==(K=null===(I=R.viewportContentUpdated)||void 0===I?void 0:I.exposureDuration)&&void 0!==K?K:R.exposureDuration)&&void 0!==X?X:S;R.viewportContentUpdated=e(e({},R.viewportContentUpdated),{exposureDuration:$}),R.pageUrlExcludelist=null===(Y=R.pageUrlExcludelist)||void 0===Y?void 0:Y.reduce((function(e,t){if("string"==typeof t&&e.push(t),t instanceof RegExp&&e.push(t),"object"==typeof t&&null!==t&&"pattern"in t)try{e.push(new RegExp(t.pattern))}catch(o){return console.warn("Invalid regex pattern: ".concat(t.pattern),o),e}return e}),[]);var ee,te=s,oe=[],re=new y(R,N),ne=new Set,ie=new Set,le=h(Object.values(null!==(z=null===(q=R.pageActions)||void 0===q?void 0:q.labeledEvents)&&void 0!==z?z:{})),se=w(null!==(H=null===(G=R.pageActions)||void 0===G?void 0:G.triggers)&&void 0!==H?H:[]),ae=E(le,se,re,R);return{name:te,type:"enrichment",setup:function(r,l){return t(void 0,void 0,void 0,(function(){var t,s,E,y,k,j,S,C,N,Z,B,F,I,K,X,Y,q,z,G,H,J;return o(this,(function(o){return"undefined"==typeof document||(t=!1,s={maxX:void 0,maxY:void 0},r.fetchRemoteConfig&&(r.remoteConfigClient?r.remoteConfigClient.subscribe("configs.analyticsSDK.pageActions","all",(function(t){!function(t){var o,r;t&&(R.pageActions=e(e({},R.pageActions),t),le=h(Object.values(null!==(o=R.pageActions.labeledEvents)&&void 0!==o?o:{})),se=w(null!==(r=R.pageActions.triggers)&&void 0!==r?r:[]),ae.update(le,se,R))}(t)})):r.loggerProvider.debug("Remote config client is not provided, skipping remote config fetch")),E=a(R,R.cssSelectorAllowlist),y=a(R,R.actionClickAllowlist),k=function(){var e,t,o=L(b().map((function(e){return re.addAdditionalEventProperties(e,"click",R.cssSelectorAllowlist,Q)}))),r=L(new D((function(e){var t,o=function(t){var o=re.addAdditionalEventProperties(t,"change",R.cssSelectorAllowlist,Q);e.next(o)};return null===(t=T())||void 0===t||t.document.addEventListener("change",o,{capture:!0}),function(){var e;return null===(e=T())||void 0===e?void 0:e.document.removeEventListener("change",o)}})));window.navigation&&(t=L(new D((function(e){var t=function(t){var o=re.addAdditionalEventProperties(t,"navigate",R.cssSelectorAllowlist,Q);e.next(o)};return window.navigation.addEventListener("navigate",t),function(){window.navigation.removeEventListener("navigate",t)}}))));var n=L(m().map((function(e){return re.addAdditionalEventProperties(e,"mutation",R.cssSelectorAllowlist,Q)}))),i=f(),l=g(n,R.cssSelectorAllowlist);return(e={})[U.ChangeObservable]=r,e[U.ClickObservable]=o,e[U.MutationObservable]=n,e[U.NavigateObservable]=t,e[U.ScrollObservable]=i,e[U.ExposureObservable]=l,e}(),j=c({allObservables:k,amplitude:l,shouldTrackEvent:E,evaluateTriggers:ae.evaluate.bind(ae)}),oe.push(j),S=d({allObservables:k,getEventProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return re.getEventProperties.apply(re,i(i([],n(e),!1),[Q],!1))},amplitude:l,shouldTrackEvent:E,evaluateTriggers:ae.evaluate.bind(ae)}),oe.push(S),C=p({allObservables:k,options:R,getEventProperties:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return re.getEventProperties.apply(re,i(i([],n(e),!1),[Q],!1))},amplitude:l,shouldTrackEvent:E,shouldTrackActionClick:y}),C&&oe.push(C),N=v({allObservables:k}),oe.push(N),Z={},B=T(),F=function(e){e&&t||(setTimeout((function(){t=!1}),100),t=!0,O({amplitude:l,scrollTracker:N,currentElementExposed:ie,elementExposedForPage:ne,exposureTracker:Z.exposure,isPageEnd:e,lastScroll:s}))},I=function(e){A(e,ne,ie,F)},Z.exposure=x({allObservables:k,onExposure:I,dataExtractor:re,exposureDuration:$}),Z.exposure&&oe.push(Z.exposure),K=function(){F(!0)},null==B||B.addEventListener("beforeunload",K),ee=function(){null==B||B.removeEventListener("beforeunload",K)},oe.push({unsubscribe:function(){return ee()}}),(X=k[U.NavigateObservable])?oe.push(X.subscribe((function(){F(!0)}))):B&&(Y=function(){F(!0)},B.addEventListener("popstate",Y),q=B.history.pushState,B.history&&q&&(B.history.pushState=new Proxy(q,{apply:function(e,t,o){var r=n(o,3),i=r[0],l=r[1],s=r[2];e.apply(t,[i,l,s]),F(!0)}})),oe.push({unsubscribe:function(){B.removeEventListener("popstate",Y),B.history&&q&&(B.history.pushState=q)}})),null===(J=null==r?void 0:r.loggerProvider)||void 0===J||J.log("".concat(te," has been successfully added.")),window.opener&&W.enabled&&(z=R.cssSelectorAllowlist,G=R.actionClickAllowlist,H=_(),u(H,{dataExtractor:re,isElementSelectable:a(R,i(i([],n(z),!1),n(G),!1)),cssSelectorAllowlist:z,actionClickAllowlist:G}),P(H),H.setup(e({logger:null==r?void 0:r.loggerProvider},(null==r?void 0:r.serverZone)&&{endpoint:M[r.serverZone]})))),[2]}))}))},execute:function(e){return t(void 0,void 0,void 0,(function(){return o(this,(function(t){return[2,e]}))}))},teardown:function(){return t(void 0,void 0,void 0,(function(){var e,t,n,i;return o(this,(function(o){try{for(e=r(oe),t=e.next();!t.done;t=e.next())t.value.unsubscribe()}catch(e){n={error:e}}finally{try{t&&!t.done&&(i=e.return)&&i.call(e)}finally{if(n)throw n.error}}return[2]}))}))}}};export{U as ObservablesEnum,R as autocapturePlugin};
@@ -0,0 +1 @@
1
+ var e="@amplitude/plugin-autocapture-browser",t="@amplitude/plugin-frustration-browser",l="[Amplitude] Element Clicked",i="[Amplitude] Dead Click",m="[Amplitude] Rage Click",p="[Amplitude] Error Click",a="[Amplitude] Element Changed",u="[Amplitude] Thrashed Cursor",d="[Amplitude] Element ID",A="[Amplitude] Element Class",r="[Amplitude] Element Tag",n="[Amplitude] Element Text",g="[Amplitude] Element Hierarchy",s="[Amplitude] Element Href",o="[Amplitude] Element Position Left",E="[Amplitude] Element Position Top",h="[Amplitude] Element Aria Label",P="[Amplitude] Element Attributes",c="[Amplitude] Element Path",b="[Amplitude] Element Parent Label",C="[Amplitude] Page URL",k="[Amplitude] Page Title",w="[Amplitude] Viewport Height",T="[Amplitude] Viewport Width",x="[Amplitude] Max Page X",L="[Amplitude] Max Page Y",V="[Amplitude] Page View ID",f="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",v="amp-visual-tagging-selector-highlight",D="data-amp-mask-attributes",H=25,I=128,M="AMP_PAGE_VIEW",R=18e3;export{a as AMPLITUDE_ELEMENT_CHANGED_EVENT,l as AMPLITUDE_ELEMENT_CLICKED_EVENT,i as AMPLITUDE_ELEMENT_DEAD_CLICKED_EVENT,p as AMPLITUDE_ELEMENT_ERROR_CLICKED_EVENT,m as AMPLITUDE_ELEMENT_RAGE_CLICKED_EVENT,h as AMPLITUDE_EVENT_PROP_ELEMENT_ARIA_LABEL,P as AMPLITUDE_EVENT_PROP_ELEMENT_ATTRIBUTES,A as AMPLITUDE_EVENT_PROP_ELEMENT_CLASS,g as AMPLITUDE_EVENT_PROP_ELEMENT_HIERARCHY,s as AMPLITUDE_EVENT_PROP_ELEMENT_HREF,d as AMPLITUDE_EVENT_PROP_ELEMENT_ID,b as AMPLITUDE_EVENT_PROP_ELEMENT_PARENT_LABEL,c as AMPLITUDE_EVENT_PROP_ELEMENT_PATH,o as AMPLITUDE_EVENT_PROP_ELEMENT_POSITION_LEFT,E as AMPLITUDE_EVENT_PROP_ELEMENT_POSITION_TOP,r as AMPLITUDE_EVENT_PROP_ELEMENT_TAG,n as AMPLITUDE_EVENT_PROP_ELEMENT_TEXT,x as AMPLITUDE_EVENT_PROP_MAX_PAGE_X,L as AMPLITUDE_EVENT_PROP_MAX_PAGE_Y,k as AMPLITUDE_EVENT_PROP_PAGE_TITLE,C as AMPLITUDE_EVENT_PROP_PAGE_URL,V as AMPLITUDE_EVENT_PROP_PAGE_VIEW_ID,w as AMPLITUDE_EVENT_PROP_VIEWPORT_HEIGHT,T as AMPLITUDE_EVENT_PROP_VIEWPORT_WIDTH,u as AMPLITUDE_THRASHED_CURSOR_EVENT,v as AMPLITUDE_VISUAL_TAGGING_HIGHLIGHT_CLASS,f as AMPLITUDE_VISUAL_TAGGING_SELECTOR_SCRIPT_URL,D as DATA_AMP_MASK_ATTRIBUTES,t as FRUSTRATION_PLUGIN_NAME,I as MAX_ATTRIBUTE_LENGTH,R as MAX_ELEMENT_EXPOSED_STR_LENGTH,H as MAX_MASK_TEXT_PATTERNS,M as PAGE_VIEW_SESSION_STORAGE_KEY,e as PLUGIN_NAME};
@@ -0,0 +1 @@
1
+ import{__spreadArray as t,__read as e,__values as r}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{DATA_AMP_MASK_ATTRIBUTES as n,AMPLITUDE_EVENT_PROP_ELEMENT_HIERARCHY as i,AMPLITUDE_EVENT_PROP_ELEMENT_TAG as a,AMPLITUDE_EVENT_PROP_ELEMENT_TEXT as o,AMPLITUDE_EVENT_PROP_ELEMENT_POSITION_LEFT as l,AMPLITUDE_EVENT_PROP_ELEMENT_POSITION_TOP as s,AMPLITUDE_EVENT_PROP_ELEMENT_ATTRIBUTES as c,AMPLITUDE_EVENT_PROP_ELEMENT_PATH as u,AMPLITUDE_EVENT_PROP_ELEMENT_PARENT_LABEL as d,AMPLITUDE_EVENT_PROP_PAGE_URL as p,AMPLITUDE_EVENT_PROP_PAGE_TITLE as f,AMPLITUDE_EVENT_PROP_VIEWPORT_HEIGHT as v,AMPLITUDE_EVENT_PROP_VIEWPORT_WIDTH as g,AMPLITUDE_EVENT_PROP_PAGE_VIEW_ID as h,AMPLITUDE_EVENT_PROP_ELEMENT_ID as m,AMPLITUDE_EVENT_PROP_ELEMENT_CLASS as y,AMPLITUDE_EVENT_PROP_ELEMENT_ARIA_LABEL as T,MAX_ATTRIBUTE_LENGTH as x,AMPLITUDE_EVENT_PROP_ELEMENT_HREF as b,MAX_MASK_TEXT_PATTERNS as E}from"./constants.js";import{parseAttributesToMask as w,extractPrefixedAttributes as S,getCurrentPageViewId as A,removeEmptyProperties as P,isElementBasedEvent as k,isElementPointerCursor as M,getClosestElement as _}from"./helpers.js";import{getAncestors as j,getElementProperties as C}from"./hierarchy.js";import{getDataSource as N}from"./pageActions/actions.js";import{cssPath as D}from"./libs/element-path.js";import{replaceSensitiveString as H,getPageTitle as L,TEXT_MASK_ATTRIBUTE as R,MASKED_TEXT_VALUE as W}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/helpers.js";import{getDecodeURI as q}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/url-utils.js";var B=function(B,O){var X,F,I,U=this;this.replaceSensitiveString=function(t){return H(t,U.additionalMaskTextPatterns)},this.getHierarchy=function(i){var a,o,l,s,c,u=performance.now();if(!i)return[];for(var d=j(i),p=new Map,f=d.length-1;f>=0;f--){var v=d[f];if(v){var g=w(v.getAttribute(n)),h=f===d.length-1?[]:null!==(l=p.get(d[f+1]))&&void 0!==l?l:new Set,m=new Set(t(t([],e(h),!1),e(g),!1));p.set(v,m)}}c=d.map((function(t){var e;return C(t,null!==(e=p.get(t))&&void 0!==e?e:new Set)}));var y=function(t){(null==t?void 0:t.attrs)&&Object.entries(t.attrs).forEach((function(r){var n=e(r,2),i=n[0],a=n[1];t.attrs&&(t.attrs[i]=U.replaceSensitiveString(a))}))};try{for(var T=r(c),x=T.next();!x.done;x=T.next())y(x.value)}catch(t){a={error:t}}finally{try{x&&!x.done&&(o=T.return)&&o.call(T)}finally{if(a)throw a.error}}var b=performance.now();return null===(s=U.diagnosticsClient)||void 0===s||s.recordHistogram("autocapturePlugin.getHierarchy",b-u),c},this.getNearestLabel=function(t){var e,r=t.parentElement;if(!r)return"";try{e=r.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch(t){e=null}return e?U.getText(e):U.getNearestLabel(r)},this.getElementPath=function(t){var e;if(!t)return"";var r=performance.now(),n=D(t),i=performance.now();return null===(e=U.diagnosticsClient)||void 0===e||e.recordHistogram("autocapturePlugin.getElementPath",i-r),n},this.getEventProperties=function(t,e,r){var n,E,w,k,M=null===(w=null===(E=null==e?void 0:e.tagName)||void 0===E?void 0:E.toLowerCase)||void 0===w?void 0:w.call(E),_="function"==typeof e.getBoundingClientRect?e.getBoundingClientRect():{left:null,top:null},j=U.getHierarchy(e),C=null===(k=j[0])||void 0===k?void 0:k.attrs,N=U.getNearestLabel(e),D=S(null!=C?C:{},r),H=((n={})[i]=j,n[a]=M,n[o]=U.getText(e),n[l]=null==_.left?null:Math.round(_.left),n[s]=null==_.top?null:Math.round(_.top),n[c]=D,n[u]=U.getElementPath(e),n[d]=N,n[p]=q(window.location.href.split("?")[0]),n[f]=L(U.replaceSensitiveString),n[v]=window.innerHeight,n[g]=window.innerWidth,n),R=A();if(R&&(H[h]=R),H[m]=e.getAttribute("id")||"",H[y]=e.getAttribute("class"),H[T]=null==C?void 0:C["aria-label"],"a"===M&&"click"===t&&e instanceof HTMLAnchorElement){var W=e.href.substring(0,x);H[b]=U.replaceSensitiveString(W)}return P(H)},this.addTypeAndTimestamp=function(t,e){return{event:t,timestamp:Date.now(),type:e}},this.addAdditionalEventProperties=function(t,e,r,n,i){void 0===i&&(i=!1);var a=U.addTypeAndTimestamp(t,e);if(k(a)&&null!==a.event.target){if(i&&M(a.event.target,a.type))return a.closestTrackedAncestor=a.event.target,a.targetElementProperties=U.getEventProperties(a.type,a.closestTrackedAncestor,n),a;var o=_(a.event.target,r);return o&&(a.closestTrackedAncestor=o,a.targetElementProperties=U.getEventProperties(a.type,o,n)),a}return a},this.extractDataFromDataSource=function(t,e){if("DOM_ELEMENT"===t.sourceType){var r=N(t,e);if(!r)return;return"TEXT"===t.elementExtractType?U.getText(r):"ATTRIBUTE"===t.elementExtractType&&t.attribute?r.getAttribute(t.attribute):void 0}},this.getTextWithMaskedDescendants=function(t){var e,n,i="[".concat(R,"], [contenteditable]");if(!t.querySelector(i))return t.innerText;var a="",o=Array.from(t.childNodes);try{for(var l=r(o),s=l.next();!s.done;s=l.next()){var c=s.value;c.nodeType!==Node.TEXT_NODE?c instanceof Element&&(c.hasAttribute(R)||c.hasAttribute("contenteditable")?a+=W:a+=U.getTextWithMaskedDescendants(c)):a+=c.textContent||""}}catch(t){e={error:t}}finally{try{s&&!s.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}return a},this.getText=function(t){if(null!==t.closest("[".concat(R,"]")))return W;var e="";return e=t.querySelector("[".concat(R,"], [contenteditable]"))?U.getTextWithMaskedDescendants(t):t.innerText||"",U.replaceSensitiveString(e.substring(0,255)).replace(/\s+/g," ").trim()},this.getEventTagProps=function(t){var e,r,n;if(!t)return{};var i=null===(n=null===(r=null==t?void 0:t.tagName)||void 0===r?void 0:r.toLowerCase)||void 0===n?void 0:n.call(r),l=((e={})[a]=i,e[o]=U.getText(t),e[p]=window.location.href.split("?")[0],e);return P(l)},this.diagnosticsClient=null==O?void 0:O.diagnosticsClient;var z=null!==(I=B.maskTextRegex)&&void 0!==I?I:[],G=[];try{for(var J=r(z),K=J.next();!K.done;K=J.next()){var Q=K.value;if(G.length>=E)break;if(Q instanceof RegExp)G.push(Q);else if("pattern"in Q&&"string"==typeof Q.pattern)try{G.push(new RegExp(Q.pattern,"i"))}catch(t){}}}catch(t){X={error:t}}finally{try{K&&!K.done&&(F=J.return)&&F.call(J)}finally{if(X)throw X.error}}this.additionalMaskTextPatterns=G};export{B as DataExtractor};
@@ -0,0 +1 @@
1
+ import{__spreadArray as e,__read as r,__awaiter as t,__generator as o,__values as n,__assign as i}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{FRUSTRATION_PLUGIN_NAME as a}from"./constants.js";import{createShouldTrackEvent as s}from"./helpers.js";import{trackDeadClick as l}from"./autocapture/track-dead-click.js";import{trackRageClicks as c}from"./autocapture/track-rage-click.js";import{ObservablesEnum as u}from"./autocapture-plugin.js";import{createClickObservable as d,createErrorObservable as m,createMutationObservable as v,createMouseMoveObservable as p}from"./observables.js";import{DataExtractor as f}from"./data-extractor.js";import{trackErrorClicks as h}from"./autocapture/track-error-click.js";import{trackThrashedCursor as b}from"./autocapture/track-thrashed-cursor.js";import{DEFAULT_DATA_ATTRIBUTE_PREFIX as g}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/element-interactions.js";import{DEFAULT_RAGE_CLICK_ALLOWLIST as w,DEFAULT_DEAD_CLICK_ALLOWLIST as C,DEFAULT_ERROR_CLICK_ALLOWLIST as k}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/types/frustration-interactions.js";import{multicast as y}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/observable.js";import j from"../../../../../../../../_virtual/index.js";function E(e,r,t,o){if(!o)return[];var n=e[r];return"object"==typeof n&&null!==n&&"cssSelectorAllowlist"in n&&Array.isArray(n.cssSelectorAllowlist)?n.cssSelectorAllowlist:t}var A=4e3,_=function(_){var x;void 0===_&&(_={});var O=a,P=[],T=!1!==_.errorClicks;_.errorClicks||(T=!1);var S=!1!==_.deadClicks&&null!==_.deadClicks,L=!1!==_.rageClicks&&null!==_.rageClicks,M=!1!==_.thrashedCursor&&null!==_.thrashedCursor;_.thrashedCursor||(M=!1);var N=E(_,"rageClicks",w,L),R=E(_,"deadClicks",C,S),B=E(_,"errorClicks",k,T),D=null!==(x=_.dataAttributePrefix)&&void 0!==x?x:g,I=new f(_),U=e([],r(new Set(e(e(e([],r(N),!1),r(R),!1),r(B),!1))),!1);return{name:O,type:"enrichment",setup:function(e,r){return t(void 0,void 0,void 0,(function(){var t,n,a,f,g,w,C,k,E,x,X;return o(this,(function(o){return"undefined"==typeof document||(t=function(){var e,r,t=y(d("pointerdown").map((function(e){return I.addAdditionalEventProperties(e,"click",U,D,!0)}))),o=y(m().map((function(e){return I.addTypeAndTimestamp(e,"error")}))),n=y(v().map((function(e){return I.addAdditionalEventProperties(e,"mutation",U,D)})));if(window.navigation){var a=new j((function(e){var r=function(r){e.next(i(i({},r),{type:"navigate"}))};return window.navigation.addEventListener("navigate",r),function(){window.navigation.removeEventListener("navigate",r)}}));r=y(a.map((function(e){return I.addAdditionalEventProperties(e,"navigate",U,D)})))}var s=y(new j((function(e){var r=function(){var r=document.activeElement;if(r&&("TEXTAREA"===r.tagName||"INPUT"===r.tagName)){try{if(r.selectionStart===r.selectionEnd)return}catch(e){return}return e.next()}var t=window.getSelection();if(t&&!t.isCollapsed)return e.next()};return window.document.addEventListener("selectionchange",r),function(){window.document.removeEventListener("selectionchange",r)}}))),l=y(p());return(e={})[u.ClickObservable]=t,e[u.MutationObservable]=n,e[u.NavigateObservable]=r,e[u.BrowserErrorObservable]=o,e[u.SelectionObservable]=s,e[u.MouseMoveObservable]=l,e}(),L&&(n=s(_,N),a=c({allObservables:t,amplitude:r,shouldTrackRageClick:n}),P.push(a)),S&&(f=s(_,R),g=l({amplitude:r,allObservables:t,getEventProperties:function(e,r){return I.getEventProperties(e,r,D)},shouldTrackDeadClick:f}),P.push(g)),T&&(w=s(_,B),C=h({amplitude:r,allObservables:t,shouldTrackErrorClick:w}),P.push(C)),M&&(k=void 0,E=void 0,"object"==typeof _.thrashedCursor&&(k=_.thrashedCursor.directionChanges,E=_.thrashedCursor.threshold,k&&k<5&&(e.loggerProvider.warn("'thrashedCursor.directionChanges' of ".concat(k," is below the minimum of ").concat(5,", setting to ").concat(5)),k=5),E&&E>A&&(e.loggerProvider.warn("'thrashedCursor.threshold' of ".concat(E," is above the maximum of ").concat(A,", setting to ").concat(A)),E=A)),x=b({amplitude:r,options:_,allObservables:t,directionChanges:k,thresholdMs:E}),P.push(x)),null===(X=null==e?void 0:e.loggerProvider)||void 0===X||X.log("".concat(O," has been successfully added."))),[2]}))}))},execute:function(e){return t(void 0,void 0,void 0,(function(){return o(this,(function(r){return[2,e]}))}))},teardown:function(){return t(void 0,void 0,void 0,(function(){var e,r,t,i;return o(this,(function(o){try{for(e=n(P),r=e.next();!r.done;r=e.next())r.value.unsubscribe()}catch(e){t={error:e}}finally{try{r&&!r.done&&(i=e.return)&&i.call(e)}finally{if(t)throw t.error}}return[2]}))}))}}};export{_ as frustrationPlugin};
@@ -0,0 +1 @@
1
+ import{__read as t}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{PAGE_VIEW_SESSION_STORAGE_KEY as e}from"./constants.js";import{getGlobalScope as n}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js";import{isUrlMatchAllowlist as r}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/utils/url-utils.js";var i,o=["input","select","textarea"],l=function(t,e){var n,r=null===(n=null===window||void 0===window?void 0:window.getComputedStyle)||void 0===n?void 0:n.call(window,t);return"pointer"===(null==r?void 0:r.getPropertyValue("cursor"))&&"click"===e},u=function(t){var e=t.pageUrlAllowlist,n=t.pageUrlExcludelist;return!(n&&n.length>0&&r(window.location.href,n))&&!!r(window.location.href,e)},c=function(t,e,n){return void 0===n&&(n=!1),function(r,i){var o,c,a=t.shouldTrackEventResolver,s=null===(c=null===(o=null==i?void 0:i.tagName)||void 0===o?void 0:o.toLowerCase)||void 0===c?void 0:c.call(o);if(!s)return!1;if(a)return a(r,i);if(!u(t))return!1;var d=String(null==i?void 0:i.getAttribute("type"))||"";if("string"==typeof d)switch(d.toLowerCase()){case"hidden":case"password":return!1}var v=l(i,r);if(n&&v)return!0;if(e){var f=e.some((function(t){var e;return!!(null===(e=null==i?void 0:i.matches)||void 0===e?void 0:e.call(i,t))}));if(!f)return!1}switch(s){case"input":case"select":case"textarea":return"change"===r||"click"===r;default:return!!v||"click"===r}}},a=function(t){var e,n,r,i=null===(n=null===(e=null==t?void 0:t.tagName)||void 0===e?void 0:e.toLowerCase)||void 0===n?void 0:n.call(e),l=t instanceof HTMLElement&&"true"===(null===(r=t.getAttribute("contenteditable"))||void 0===r?void 0:r.toLowerCase());return!o.includes(i)&&!l},s=function(t){return t?t.split(",").map((function(t){return t.trim()})).filter((function(t){return t.length>0&&"id"!==t&&"class"!==t})):[]},d=function(e,n){return Object.entries(e).reduce((function(e,r){var i=t(r,2),o=i[0],l=i[1];if(o.startsWith(n)){var u=o.replace(n,"");u&&(e[u]=l||"")}return e}),{})},v=function(t){return null==t||"object"==typeof t&&0===Object.keys(t).length||"string"==typeof t&&0===t.trim().length},f=function(t){return Object.keys(t).reduce((function(e,n){var r=t[n];return v(r)||(e[n]=r),e}),{})},p=function(){var t;try{var r=n(),i=null===(t=null==r?void 0:r.sessionStorage)||void 0===t?void 0:t.getItem(e);if(!i)return;var o=JSON.parse(i);if("string"==typeof o.pageViewId)return o.pageViewId}catch(t){}},m=function(t,e){return t?e.some((function(e){var n;return null===(n=null==t?void 0:t.matches)||void 0===n?void 0:n.call(t,e)}))?t:m(null==t?void 0:t.parentElement,e):null},g=function(t){return!(null===t.event.target||!t.closestTrackedAncestor)};function w(t){return"click"===t.type||"change"===t.type}!function(t){t[t.LEFT_OR_TOUCH_CONTACT=0]="LEFT_OR_TOUCH_CONTACT",t[t.MIDDLE=1]="MIDDLE",t[t.RIGHT=2]="RIGHT"}(i||(i={}));export{i as MouseButton,c as createShouldTrackEvent,d as extractPrefixedAttributes,g as filterOutNonTrackableEvents,m as getClosestElement,p as getCurrentPageViewId,w as isElementBasedEvent,l as isElementPointerCursor,v as isEmpty,a as isNonSensitiveElement,u as isUrlAllowed,s as parseAttributesToMask,f as removeEmptyProperties};
@@ -1 +1 @@
1
- import{__values as e}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{isNonSensitiveElement as t}from"./helpers.js";import{MAX_ATTRIBUTE_LENGTH as r,DATA_AMP_MASK_ATTRIBUTES as n}from"./constants.js";import{MASKED_TEXT_VALUE as a,TEXT_MASK_ATTRIBUTE as i}from"../../../../../../@amplitude_analytics-core@2.40.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/helpers.js";var l=new Set(["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot",n,i]),o=["type"],s=["svg","path","g"],u=["password","hidden"];function d(n,i){var d,m,p,c,f,v;if(null===n)return null;var g=String(n.tagName).toLowerCase(),y={tag:g},h=Array.from(null!==(c=null===(p=n.parentElement)||void 0===p?void 0:p.children)&&void 0!==c?c:[]);h.length&&(y.index=h.indexOf(n),y.indexOfType=h.filter((function(e){return e.tagName===n.tagName})).indexOf(n));var b=null===(v=null===(f=n.previousElementSibling)||void 0===f?void 0:f.tagName)||void 0===v?void 0:v.toLowerCase();b&&(y.prevSib=String(b));var S=n.getAttribute("id");S&&(y.id=String(S));var x=Array.from(n.classList);x.length&&(y.classes=x);var _={},k=Array.from(n.attributes).filter((function(e){return!l.has(e.name)})),w=!t(n);if(!u.includes(String(n.getAttribute("type")))&&!s.includes(g))try{for(var j=e(k),A=j.next();!A.done;A=j.next()){var N=A.value;w&&!o.includes(N.name)||(i.has(N.name)?_[N.name]=a:_[N.name]=String(N.value).substring(0,r))}}catch(e){d={error:e}}finally{try{A&&!A.done&&(m=j.return)&&m.call(j)}finally{if(d)throw d.error}}return Object.keys(_).length&&(y.attrs=_),y}function m(e){var t=[];if(!e)return t;t.push(e);for(var r=e.parentElement;r&&"HTML"!==r.tagName;)t.push(r),r=r.parentElement;return t}export{m as getAncestors,d as getElementProperties};
1
+ import{__values as e}from"../../../../../../@rollup_plugin-typescript@12.3.0_rollup@4.57.1_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js";import{isNonSensitiveElement as t}from"./helpers.js";import{MAX_ATTRIBUTE_LENGTH as r,DATA_AMP_MASK_ATTRIBUTES as n}from"./constants.js";import{MASKED_TEXT_VALUE as a,TEXT_MASK_ATTRIBUTE as i}from"../../../../../../@amplitude_analytics-core@2.43.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/helpers.js";var l=new Set(["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot",n,i]),o=["type"],s=["svg","path","g"],u=["password","hidden"];function d(n,i){var d,m,p,c,f,v;if(null===n)return null;var g=String(n.tagName).toLowerCase(),y={tag:g},h=Array.from(null!==(c=null===(p=n.parentElement)||void 0===p?void 0:p.children)&&void 0!==c?c:[]);h.length&&(y.index=h.indexOf(n),y.indexOfType=h.filter((function(e){return e.tagName===n.tagName})).indexOf(n));var b=null===(v=null===(f=n.previousElementSibling)||void 0===f?void 0:f.tagName)||void 0===v?void 0:v.toLowerCase();b&&(y.prevSib=String(b));var S=n.getAttribute("id");S&&(y.id=String(S));var x=Array.from(n.classList);x.length&&(y.classes=x);var _={},k=Array.from(n.attributes).filter((function(e){return!l.has(e.name)})),w=!t(n);if(!u.includes(String(n.getAttribute("type")))&&!s.includes(g))try{for(var j=e(k),A=j.next();!A.done;A=j.next()){var N=A.value;w&&!o.includes(N.name)||(i.has(N.name)?_[N.name]=a:_[N.name]=String(N.value).substring(0,r))}}catch(e){d={error:e}}finally{try{A&&!A.done&&(m=j.return)&&m.call(j)}finally{if(d)throw d.error}}return Object.keys(_).length&&(y.attrs=_),y}function m(e){var t=[];if(!e)return t;t.push(e);for(var r=e.parentElement;r&&"HTML"!==r.tagName;)t.push(r),r=r.parentElement;return t}export{m as getAncestors,d as getElementProperties};