@utk09/ui-observability 0.11.0 → 0.12.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 (383) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/README.md +273 -102
  3. package/bin/uiobs.mjs +1 -1
  4. package/dist/{batch-CL9uWYY3.js → batch-BjQUwjA6.js} +4 -4
  5. package/dist/batch-BjQUwjA6.js.map +1 -0
  6. package/dist/{batch-C8OcWR2L.cjs → batch-D5LlU4Q9.cjs} +2 -2
  7. package/dist/batch-D5LlU4Q9.cjs.map +1 -0
  8. package/dist/bus/bus.d.ts +48 -47
  9. package/dist/bus/links.d.ts +4 -4
  10. package/dist/bus/validation.d.ts +1 -1
  11. package/dist/bus-D_7pd7RN.cjs +2 -0
  12. package/dist/bus-D_7pd7RN.cjs.map +1 -0
  13. package/dist/{bus-BZ0GldpT.js → bus-ecxUNTja.js} +91 -91
  14. package/dist/bus-ecxUNTja.js.map +1 -0
  15. package/dist/capture/console.d.ts +10 -10
  16. package/dist/capture/errors.d.ts +6 -6
  17. package/dist/capture/interactions.d.ts +14 -14
  18. package/dist/capture/lifecycle.d.ts +3 -3
  19. package/dist/capture/long-frames.d.ts +6 -6
  20. package/dist/capture/network.d.ts +17 -17
  21. package/dist/capture/profiler-frames.d.ts +44 -0
  22. package/dist/capture/replay-buffer.d.ts +46 -0
  23. package/dist/capture/replay-upload.d.ts +74 -0
  24. package/dist/capture/replay.d.ts +114 -0
  25. package/dist/capture/reports.d.ts +2 -2
  26. package/dist/capture/resource-timing.d.ts +1 -1
  27. package/dist/capture/server-timing.d.ts +3 -3
  28. package/dist/capture/storm.d.ts +3 -3
  29. package/dist/capture/types.d.ts +45 -33
  30. package/dist/capture/unclean-exit.d.ts +8 -8
  31. package/dist/capture/user-timing.d.ts +3 -3
  32. package/dist/capture/web-socket.d.ts +11 -11
  33. package/dist/capture/web-vitals.d.ts +20 -7
  34. package/dist/compression-AJJCMBOa.js +11 -0
  35. package/dist/compression-AJJCMBOa.js.map +1 -0
  36. package/dist/compression-lD9abCcO.cjs +2 -0
  37. package/dist/compression-lD9abCcO.cjs.map +1 -0
  38. package/dist/{console-BPZCuSLc.cjs → console-CLz_PvFn.cjs} +2 -2
  39. package/dist/console-CLz_PvFn.cjs.map +1 -0
  40. package/dist/{console-BeCF7n59.js → console-cwgHKXvM.js} +4 -4
  41. package/dist/console-cwgHKXvM.js.map +1 -0
  42. package/dist/constants-Bwl_YtQi.js +349 -0
  43. package/dist/constants-Bwl_YtQi.js.map +1 -0
  44. package/dist/constants-DakMxVB2.cjs +2 -0
  45. package/dist/constants-DakMxVB2.cjs.map +1 -0
  46. package/dist/constants.d.ts +150 -103
  47. package/dist/context-storage-BjzeBSxH.cjs.map +1 -1
  48. package/dist/context-storage-BzkoHzkQ.js.map +1 -1
  49. package/dist/core/breadcrumbs.d.ts +16 -15
  50. package/dist/core/config.d.ts +3 -3
  51. package/dist/core/context.d.ts +7 -7
  52. package/dist/core/debug-buffer.d.ts +10 -10
  53. package/dist/core/debug-bundle.d.ts +3 -3
  54. package/dist/core/deferred.d.ts +2 -2
  55. package/dist/core/diagnostics.d.ts +24 -21
  56. package/dist/core/drops.d.ts +7 -7
  57. package/dist/core/hold-buffer.d.ts +1 -1
  58. package/dist/core/journey.d.ts +22 -23
  59. package/dist/core/logger.d.ts +22 -21
  60. package/dist/core/measure.d.ts +7 -7
  61. package/dist/core/meter.d.ts +25 -21
  62. package/dist/core/pipeline.d.ts +42 -41
  63. package/dist/core/profile-buckets.d.ts +31 -0
  64. package/dist/core/profiler.d.ts +218 -0
  65. package/dist/core/record.d.ts +23 -23
  66. package/dist/core/remote-rules.d.ts +4 -4
  67. package/dist/core/remote-sampling.d.ts +21 -20
  68. package/dist/core/runtime.d.ts +206 -137
  69. package/dist/core/sampling.d.ts +18 -18
  70. package/dist/core/sender.d.ts +22 -20
  71. package/dist/core/spans.d.ts +5 -5
  72. package/dist/{deadline-BOjOxNHj.js → deadline-C4ccAuk5.js} +3 -6
  73. package/dist/deadline-C4ccAuk5.js.map +1 -0
  74. package/dist/deadline-CUGbto-y.cjs +2 -0
  75. package/dist/deadline-CUGbto-y.cjs.map +1 -0
  76. package/dist/{debug-bundle-C7UkHZ-q.js → debug-bundle-BOdYmCeV.js} +10 -3
  77. package/dist/debug-bundle-BOdYmCeV.js.map +1 -0
  78. package/dist/debug-bundle-Ex4L_LSP.cjs +2 -0
  79. package/dist/debug-bundle-Ex4L_LSP.cjs.map +1 -0
  80. package/dist/doctor.cjs +1 -1
  81. package/dist/doctor.cjs.map +1 -1
  82. package/dist/doctor.d.ts +16 -6
  83. package/dist/doctor.js +147 -52
  84. package/dist/doctor.js.map +1 -1
  85. package/dist/{emergency-queue-Zy6lNafo.js → emergency-queue-B9WZxanZ.js} +4 -4
  86. package/dist/emergency-queue-B9WZxanZ.js.map +1 -0
  87. package/dist/{emergency-queue-CNTRui5t.cjs → emergency-queue-HBpL5r3V.cjs} +2 -2
  88. package/dist/emergency-queue-HBpL5r3V.cjs.map +1 -0
  89. package/dist/error-like-B11pB4aL.js.map +1 -1
  90. package/dist/error-like-gGRx2s36.cjs.map +1 -1
  91. package/dist/{errors-Dh7kef0i.js → errors-D6bwgJtO.js} +3 -3
  92. package/dist/errors-D6bwgJtO.js.map +1 -0
  93. package/dist/{errors-tfEr48bS.cjs → errors-DCOCRdSi.cjs} +2 -2
  94. package/dist/errors-DCOCRdSi.cjs.map +1 -0
  95. package/dist/{factory-CJXVYp0R.cjs → factory-DLFDjdLv.cjs} +2 -2
  96. package/dist/factory-DLFDjdLv.cjs.map +1 -0
  97. package/dist/{factory-BonqI3NL.js → factory-e9Qo3K0z.js} +13 -13
  98. package/dist/factory-e9Qo3K0z.js.map +1 -0
  99. package/dist/fixed-window-CvESpFYV.cjs.map +1 -1
  100. package/dist/fixed-window-Dq3MLUUv.js.map +1 -1
  101. package/dist/global-scope-BN-Io_yv.cjs.map +1 -1
  102. package/dist/global-scope-D9I8s-oN.js.map +1 -1
  103. package/dist/guards-Cidk71ME.js.map +1 -1
  104. package/dist/guards-nJ70syPt.cjs.map +1 -1
  105. package/dist/{identity-Cxgj6pZX.cjs → identity-BlvlgjrU.cjs} +2 -2
  106. package/dist/identity-BlvlgjrU.cjs.map +1 -0
  107. package/dist/{identity-DT5VmvXy.js → identity-BrQp_5J5.js} +19 -19
  108. package/dist/identity-BrQp_5J5.js.map +1 -0
  109. package/dist/index.cjs +1 -1
  110. package/dist/index.cjs.map +1 -1
  111. package/dist/index.d.ts +112 -79
  112. package/dist/index.js +783 -635
  113. package/dist/index.js.map +1 -1
  114. package/dist/{indexeddb-storage-CIoW21Xd.cjs → indexeddb-storage-CtLvZH1r.cjs} +2 -2
  115. package/dist/indexeddb-storage-CtLvZH1r.cjs.map +1 -0
  116. package/dist/{indexeddb-storage-BJVtiQKm.js → indexeddb-storage-DLXQzAGh.js} +4 -4
  117. package/dist/indexeddb-storage-DLXQzAGh.js.map +1 -0
  118. package/dist/{interactions-DTgKy_6K.js → interactions-B6z2I4tU.js} +3 -3
  119. package/dist/interactions-B6z2I4tU.js.map +1 -0
  120. package/dist/{interactions-fEN6FbVo.cjs → interactions-P6pz08Jn.cjs} +2 -2
  121. package/dist/interactions-P6pz08Jn.cjs.map +1 -0
  122. package/dist/{journey-CuJrHzEg.js → journey-35yCMNFo.js} +20 -19
  123. package/dist/journey-35yCMNFo.js.map +1 -0
  124. package/dist/journey-DAGh5h9k.cjs +2 -0
  125. package/dist/journey-DAGh5h9k.cjs.map +1 -0
  126. package/dist/keys-BHhw_0Wh.cjs.map +1 -1
  127. package/dist/keys-BU9j5YqW.js.map +1 -1
  128. package/dist/{library-console-D2GY9Or6.cjs → library-console-BFWEuQsl.cjs} +2 -2
  129. package/dist/library-console-BFWEuQsl.cjs.map +1 -0
  130. package/dist/{library-console-C1m6g1BR.js → library-console-Dl_Ly6DQ.js} +2 -2
  131. package/dist/library-console-Dl_Ly6DQ.js.map +1 -0
  132. package/dist/{library-request-1BX_UlaX.cjs → library-request-Da-CHKzT.cjs} +2 -2
  133. package/dist/library-request-Da-CHKzT.cjs.map +1 -0
  134. package/dist/{library-request-BQBT9N9Q.js → library-request-nI6pvI6I.js} +2 -2
  135. package/dist/library-request-nI6pvI6I.js.map +1 -0
  136. package/dist/{lifecycle-2EtUaRpo.cjs → lifecycle-BGGOcN4N.cjs} +2 -2
  137. package/dist/lifecycle-BGGOcN4N.cjs.map +1 -0
  138. package/dist/{lifecycle-BaKx_-32.js → lifecycle-CZ6RRXc6.js} +2 -2
  139. package/dist/lifecycle-CZ6RRXc6.js.map +1 -0
  140. package/dist/{log-record-i9zOTkpQ.cjs → log-record-D7bA1RPb.cjs} +2 -2
  141. package/dist/log-record-D7bA1RPb.cjs.map +1 -0
  142. package/dist/{log-record-CAoGBBf3.js → log-record-DIA6McNr.js} +2 -2
  143. package/dist/log-record-DIA6McNr.js.map +1 -0
  144. package/dist/{long-frames-Czk7IupC.js → long-frames-430_85Da.js} +8 -6
  145. package/dist/long-frames-430_85Da.js.map +1 -0
  146. package/dist/long-frames-Dd8tsi2U.cjs +2 -0
  147. package/dist/long-frames-Dd8tsi2U.cjs.map +1 -0
  148. package/dist/models/batch.d.ts +14 -15
  149. package/dist/models/bus.d.ts +24 -24
  150. package/dist/models/config.d.ts +402 -216
  151. package/dist/models/drop.d.ts +13 -11
  152. package/dist/models/health.d.ts +13 -13
  153. package/dist/models/log-record.d.ts +13 -14
  154. package/dist/models/metric.d.ts +82 -17
  155. package/dist/models/plugin.d.ts +13 -13
  156. package/dist/models/replay.d.ts +60 -0
  157. package/dist/models/serializer.d.ts +2 -3
  158. package/dist/models/stats.d.ts +2 -2
  159. package/dist/models/storage.d.ts +12 -11
  160. package/dist/{network-DBNwApoF.js → network-C7SkLf4v.js} +12 -12
  161. package/dist/network-C7SkLf4v.js.map +1 -0
  162. package/dist/{network-xbbuvG_6.cjs → network-pEX3PAJv.cjs} +2 -2
  163. package/dist/network-pEX3PAJv.cjs.map +1 -0
  164. package/dist/openfin-Bxelt0yg.js.map +1 -1
  165. package/dist/openfin-DtH2f7zX.cjs.map +1 -1
  166. package/dist/otlp-2MCrC3kd.cjs +2 -0
  167. package/dist/otlp-2MCrC3kd.cjs.map +1 -0
  168. package/dist/{otlp-BTJdIa6F.js → otlp-COq033e3.js} +25 -32
  169. package/dist/otlp-COq033e3.js.map +1 -0
  170. package/dist/patch-BX8KrPCT.cjs.map +1 -1
  171. package/dist/patch-UdPz1ea8.js.map +1 -1
  172. package/dist/{platform-C2Ez5kDc.cjs → platform-12uR7kBQ.cjs} +2 -2
  173. package/dist/platform-12uR7kBQ.cjs.map +1 -0
  174. package/dist/{platform-DkcuXwe-.js → platform-CVewe4wQ.js} +7 -7
  175. package/dist/platform-CVewe4wQ.js.map +1 -0
  176. package/dist/profiler-BVWIOgnq.js +310 -0
  177. package/dist/profiler-BVWIOgnq.js.map +1 -0
  178. package/dist/profiler-eVCknCzS.cjs +2 -0
  179. package/dist/profiler-eVCknCzS.cjs.map +1 -0
  180. package/dist/profiler-frames-CLXlT_xL.js +86 -0
  181. package/dist/profiler-frames-CLXlT_xL.js.map +1 -0
  182. package/dist/profiler-frames-Dg2OebB2.cjs +2 -0
  183. package/dist/profiler-frames-Dg2OebB2.cjs.map +1 -0
  184. package/dist/{remote-rules-Cfb4K-Nl.js → remote-rules-BJGDJGwA.js} +27 -27
  185. package/dist/remote-rules-BJGDJGwA.js.map +1 -0
  186. package/dist/{remote-rules-vzvk7aKf.cjs → remote-rules-CJD3ToVk.cjs} +2 -2
  187. package/dist/remote-rules-CJD3ToVk.cjs.map +1 -0
  188. package/dist/replay-0zAJv9T3.js +338 -0
  189. package/dist/replay-0zAJv9T3.js.map +1 -0
  190. package/dist/replay-DomJpXqW.cjs +2 -0
  191. package/dist/replay-DomJpXqW.cjs.map +1 -0
  192. package/dist/{reports-Dk2YhKIh.cjs → reports-BsbqmP8h.cjs} +2 -2
  193. package/dist/reports-BsbqmP8h.cjs.map +1 -0
  194. package/dist/{reports-TA-zInnq.js → reports-BuXekPOS.js} +3 -3
  195. package/dist/reports-BuXekPOS.js.map +1 -0
  196. package/dist/{resource-timing-BLv3EA2A.js → resource-timing-CXGHwFRD.js} +4 -4
  197. package/dist/resource-timing-CXGHwFRD.js.map +1 -0
  198. package/dist/{resource-timing-Cysw1S1f.cjs → resource-timing-DkycFGDa.cjs} +2 -2
  199. package/dist/resource-timing-DkycFGDa.cjs.map +1 -0
  200. package/dist/{sampling-Ckh2yW9k.cjs → sampling-Dd0wllyq.cjs} +2 -2
  201. package/dist/sampling-Dd0wllyq.cjs.map +1 -0
  202. package/dist/{sampling-C4VV-1MS.js → sampling-UUDbi3K0.js} +9 -9
  203. package/dist/sampling-UUDbi3K0.js.map +1 -0
  204. package/dist/{sanitize-6ymPlVvP.js → sanitize-CNmsD9r3.js} +2 -2
  205. package/dist/sanitize-CNmsD9r3.js.map +1 -0
  206. package/dist/{sanitize-BAWzkZt0.cjs → sanitize-ChLn97Ch.cjs} +2 -2
  207. package/dist/sanitize-ChLn97Ch.cjs.map +1 -0
  208. package/dist/{select-ZF4by-lF.cjs → select-CTk-K5mG.cjs} +3 -3
  209. package/dist/select-CTk-K5mG.cjs.map +1 -0
  210. package/dist/{select-xtQaenIi.js → select-DPv_j6wq.js} +61 -61
  211. package/dist/select-DPv_j6wq.js.map +1 -0
  212. package/dist/{sender-CiMHC9YG.js → sender-15zEsZpr.js} +61 -60
  213. package/dist/sender-15zEsZpr.js.map +1 -0
  214. package/dist/sender-Bfpv9tad.cjs +2 -0
  215. package/dist/sender-Bfpv9tad.cjs.map +1 -0
  216. package/dist/storage/context-storage.d.ts +34 -33
  217. package/dist/storage/emergency-queue.d.ts +9 -9
  218. package/dist/storage/eviction.d.ts +12 -12
  219. package/dist/storage/factory.d.ts +8 -7
  220. package/dist/storage/gap.d.ts +6 -6
  221. package/dist/storage/idb-driver.d.ts +31 -32
  222. package/dist/storage/indexeddb-storage.d.ts +26 -27
  223. package/dist/storage/keys.d.ts +7 -7
  224. package/dist/storage/local-storage.d.ts +38 -38
  225. package/dist/storage/memory-storage.d.ts +21 -22
  226. package/dist/storage/persistence.d.ts +1 -1
  227. package/dist/storage-BA9RqRO-.cjs.map +1 -1
  228. package/dist/storage-DZwed89z.js.map +1 -1
  229. package/dist/{storm-VR024_QN.js → storm-BTSNTIWI.js} +2 -2
  230. package/dist/storm-BTSNTIWI.js.map +1 -0
  231. package/dist/{storm-CYi9Swpx.cjs → storm-D0_qZOEg.cjs} +2 -2
  232. package/dist/storm-D0_qZOEg.cjs.map +1 -0
  233. package/dist/transport/compression.d.ts +2 -2
  234. package/dist/transport/errors.d.ts +7 -7
  235. package/dist/transport/exit-flush.d.ts +39 -39
  236. package/dist/transport/headers.d.ts +2 -2
  237. package/dist/transport/http-transport.d.ts +28 -27
  238. package/dist/transport/memory-transport.d.ts +6 -6
  239. package/dist/transport/retry-engine.d.ts +35 -34
  240. package/dist/transport/serializers/ecs.d.ts +1 -1
  241. package/dist/transport/serializers/otlp-metrics.d.ts +1 -1
  242. package/dist/transport/serializers/otlp-traces.d.ts +1 -1
  243. package/dist/transport/serializers/otlp.d.ts +16 -16
  244. package/dist/transport/serializers/select.d.ts +7 -7
  245. package/dist/transport/status-transport.d.ts +20 -20
  246. package/dist/transport/worker-protocol.d.ts +3 -3
  247. package/dist/types-BAerHgCq.js.map +1 -1
  248. package/dist/types-C7WNpnG1.cjs.map +1 -1
  249. package/dist/{unclean-exit-DFUN57wY.cjs → unclean-exit-ClGzrc2A.cjs} +2 -2
  250. package/dist/unclean-exit-ClGzrc2A.cjs.map +1 -0
  251. package/dist/{unclean-exit-CwcUhFOn.js → unclean-exit-Cob_jyTv.js} +2 -2
  252. package/dist/unclean-exit-Cob_jyTv.js.map +1 -0
  253. package/dist/unref-CU9Nyz_9.cjs +2 -0
  254. package/dist/unref-CU9Nyz_9.cjs.map +1 -0
  255. package/dist/unref-DgHPQeWv.js +7 -0
  256. package/dist/unref-DgHPQeWv.js.map +1 -0
  257. package/dist/user-timing-CdYqx3PF.cjs +2 -0
  258. package/dist/user-timing-CdYqx3PF.cjs.map +1 -0
  259. package/dist/{user-timing-_jZIhDKI.js → user-timing-DgHubxCI.js} +5 -3
  260. package/dist/user-timing-DgHubxCI.js.map +1 -0
  261. package/dist/utils/console.d.ts +2 -2
  262. package/dist/utils/deadline.d.ts +4 -4
  263. package/dist/utils/error-like.d.ts +7 -7
  264. package/dist/utils/fixed-window.d.ts +9 -8
  265. package/dist/utils/global-scope.d.ts +8 -8
  266. package/dist/utils/guards.d.ts +2 -2
  267. package/dist/utils/identity.d.ts +17 -17
  268. package/dist/utils/library-console.d.ts +4 -4
  269. package/dist/utils/library-request.d.ts +10 -10
  270. package/dist/utils/lock.d.ts +10 -9
  271. package/dist/utils/openfin.d.ts +5 -5
  272. package/dist/utils/patch.d.ts +6 -6
  273. package/dist/utils/platform.d.ts +13 -11
  274. package/dist/utils/sanitize.d.ts +4 -4
  275. package/dist/utils/timer.d.ts +1 -1
  276. package/dist/utils/tracing.d.ts +38 -38
  277. package/dist/utils/unref.d.ts +3 -3
  278. package/dist/{web-socket-BWUoqBh8.cjs → web-socket-BTuvYoJI.cjs} +2 -2
  279. package/dist/web-socket-BTuvYoJI.cjs.map +1 -0
  280. package/dist/{web-socket-CV7yIMnm.js → web-socket-DthJuSAg.js} +4 -4
  281. package/dist/web-socket-DthJuSAg.js.map +1 -0
  282. package/dist/web-vitals-Ch5BpDmo.cjs +2 -0
  283. package/dist/web-vitals-Ch5BpDmo.cjs.map +1 -0
  284. package/dist/web-vitals-CsGCWnUr.js +77 -0
  285. package/dist/web-vitals-CsGCWnUr.js.map +1 -0
  286. package/dist/{worker-protocol-CrsdSDLn.js → worker-protocol-B0_8rWy5.js} +4 -4
  287. package/dist/worker-protocol-B0_8rWy5.js.map +1 -0
  288. package/dist/{worker-protocol-Bai7GAIA.cjs → worker-protocol-BjzFORfq.cjs} +2 -2
  289. package/dist/worker-protocol-BjzFORfq.cjs.map +1 -0
  290. package/dist/worker-server-4en-Lt-3.cjs +2 -0
  291. package/dist/worker-server-4en-Lt-3.cjs.map +1 -0
  292. package/dist/{worker-server-Dp5HYm4b.js → worker-server-Cne9MX9I.js} +8 -8
  293. package/dist/{worker-server-Dp5HYm4b.js.map → worker-server-Cne9MX9I.js.map} +1 -1
  294. package/dist/worker-transport-B-GF4Aqn.cjs +2 -0
  295. package/dist/worker-transport-B-GF4Aqn.cjs.map +1 -0
  296. package/dist/{worker-transport-D6jtgpqN.js → worker-transport-C3SjJAEC.js} +62 -61
  297. package/dist/worker-transport-C3SjJAEC.js.map +1 -0
  298. package/package.json +8 -2
  299. package/dist/batch-C8OcWR2L.cjs.map +0 -1
  300. package/dist/batch-CL9uWYY3.js.map +0 -1
  301. package/dist/bus-BZ0GldpT.js.map +0 -1
  302. package/dist/bus-VWlmM5xs.cjs +0 -2
  303. package/dist/bus-VWlmM5xs.cjs.map +0 -1
  304. package/dist/console-BPZCuSLc.cjs.map +0 -1
  305. package/dist/console-BeCF7n59.js.map +0 -1
  306. package/dist/constants-DqKJH_MP.cjs +0 -2
  307. package/dist/constants-DqKJH_MP.cjs.map +0 -1
  308. package/dist/constants-zyrqveN4.js +0 -304
  309. package/dist/constants-zyrqveN4.js.map +0 -1
  310. package/dist/deadline-BOjOxNHj.js.map +0 -1
  311. package/dist/deadline-XSnm95pg.cjs +0 -2
  312. package/dist/deadline-XSnm95pg.cjs.map +0 -1
  313. package/dist/debug-bundle-BzJNpbF0.cjs +0 -2
  314. package/dist/debug-bundle-BzJNpbF0.cjs.map +0 -1
  315. package/dist/debug-bundle-C7UkHZ-q.js.map +0 -1
  316. package/dist/emergency-queue-CNTRui5t.cjs.map +0 -1
  317. package/dist/emergency-queue-Zy6lNafo.js.map +0 -1
  318. package/dist/errors-Dh7kef0i.js.map +0 -1
  319. package/dist/errors-tfEr48bS.cjs.map +0 -1
  320. package/dist/factory-BonqI3NL.js.map +0 -1
  321. package/dist/factory-CJXVYp0R.cjs.map +0 -1
  322. package/dist/identity-Cxgj6pZX.cjs.map +0 -1
  323. package/dist/identity-DT5VmvXy.js.map +0 -1
  324. package/dist/indexeddb-storage-BJVtiQKm.js.map +0 -1
  325. package/dist/indexeddb-storage-CIoW21Xd.cjs.map +0 -1
  326. package/dist/interactions-DTgKy_6K.js.map +0 -1
  327. package/dist/interactions-fEN6FbVo.cjs.map +0 -1
  328. package/dist/journey-CuJrHzEg.js.map +0 -1
  329. package/dist/journey-pffMVMfa.cjs +0 -2
  330. package/dist/journey-pffMVMfa.cjs.map +0 -1
  331. package/dist/library-console-C1m6g1BR.js.map +0 -1
  332. package/dist/library-console-D2GY9Or6.cjs.map +0 -1
  333. package/dist/library-request-1BX_UlaX.cjs.map +0 -1
  334. package/dist/library-request-BQBT9N9Q.js.map +0 -1
  335. package/dist/lifecycle-2EtUaRpo.cjs.map +0 -1
  336. package/dist/lifecycle-BaKx_-32.js.map +0 -1
  337. package/dist/log-record-CAoGBBf3.js.map +0 -1
  338. package/dist/log-record-i9zOTkpQ.cjs.map +0 -1
  339. package/dist/long-frames-BVg4i5SC.cjs +0 -2
  340. package/dist/long-frames-BVg4i5SC.cjs.map +0 -1
  341. package/dist/long-frames-Czk7IupC.js.map +0 -1
  342. package/dist/network-DBNwApoF.js.map +0 -1
  343. package/dist/network-xbbuvG_6.cjs.map +0 -1
  344. package/dist/otlp-BDvFrLnc.cjs +0 -2
  345. package/dist/otlp-BDvFrLnc.cjs.map +0 -1
  346. package/dist/otlp-BTJdIa6F.js.map +0 -1
  347. package/dist/platform-C2Ez5kDc.cjs.map +0 -1
  348. package/dist/platform-DkcuXwe-.js.map +0 -1
  349. package/dist/remote-rules-Cfb4K-Nl.js.map +0 -1
  350. package/dist/remote-rules-vzvk7aKf.cjs.map +0 -1
  351. package/dist/reports-Dk2YhKIh.cjs.map +0 -1
  352. package/dist/reports-TA-zInnq.js.map +0 -1
  353. package/dist/resource-timing-BLv3EA2A.js.map +0 -1
  354. package/dist/resource-timing-Cysw1S1f.cjs.map +0 -1
  355. package/dist/sampling-C4VV-1MS.js.map +0 -1
  356. package/dist/sampling-Ckh2yW9k.cjs.map +0 -1
  357. package/dist/sanitize-6ymPlVvP.js.map +0 -1
  358. package/dist/sanitize-BAWzkZt0.cjs.map +0 -1
  359. package/dist/select-ZF4by-lF.cjs.map +0 -1
  360. package/dist/select-xtQaenIi.js.map +0 -1
  361. package/dist/sender-CiMHC9YG.js.map +0 -1
  362. package/dist/sender-D5wBoXA8.cjs +0 -2
  363. package/dist/sender-D5wBoXA8.cjs.map +0 -1
  364. package/dist/storm-CYi9Swpx.cjs.map +0 -1
  365. package/dist/storm-VR024_QN.js.map +0 -1
  366. package/dist/unclean-exit-CwcUhFOn.js.map +0 -1
  367. package/dist/unclean-exit-DFUN57wY.cjs.map +0 -1
  368. package/dist/user-timing-C9kfRq3J.cjs +0 -2
  369. package/dist/user-timing-C9kfRq3J.cjs.map +0 -1
  370. package/dist/user-timing-_jZIhDKI.js.map +0 -1
  371. package/dist/web-socket-BWUoqBh8.cjs.map +0 -1
  372. package/dist/web-socket-CV7yIMnm.js.map +0 -1
  373. package/dist/web-vitals-Bq4WFHQo.js +0 -52
  374. package/dist/web-vitals-Bq4WFHQo.js.map +0 -1
  375. package/dist/web-vitals-DFuoTQbZ.cjs +0 -2
  376. package/dist/web-vitals-DFuoTQbZ.cjs.map +0 -1
  377. package/dist/worker-protocol-Bai7GAIA.cjs.map +0 -1
  378. package/dist/worker-protocol-CrsdSDLn.js.map +0 -1
  379. package/dist/worker-server-BrIYkfoa.cjs +0 -2
  380. package/dist/worker-server-BrIYkfoa.cjs.map +0 -1
  381. package/dist/worker-transport-Bwej4N2e.cjs +0 -2
  382. package/dist/worker-transport-Bwej4N2e.cjs.map +0 -1
  383. package/dist/worker-transport-D6jtgpqN.js.map +0 -1
@@ -1,21 +1,22 @@
1
- import { B as e, Cn as t, Ht as n, Ut as r, Y as i, ct as a, dt as o, ft as s, g as c, l, lt as u, ot as d, st as f, tt as p, ut as m } from "./constants-zyrqveN4.js";
1
+ import { B as e, Fn as t, Qt as n, Y as r, Zt as i, ct as a, dt as o, ft as s, g as c, l, lt as u, ot as d, st as f, tt as p, ut as m } from "./constants-Bwl_YtQi.js";
2
2
  import { storageLimits as h } from "./storage-DZwed89z.js";
3
- import { clearEmergencyContext as g, drainEmergencyQueue as _, n as v, saveToEmergencyQueue as y, t as b } from "./emergency-queue-Zy6lNafo.js";
4
- import { createStorage as ee, storageName as te } from "./factory-BonqI3NL.js";
5
- import { ContextStorage as x } from "./context-storage-BzkoHzkQ.js";
6
- import { n as S, r as C, t as w } from "./deadline-BOjOxNHj.js";
7
- import { i as T, r as E } from "./library-request-BQBT9N9Q.js";
3
+ import { clearEmergencyContext as g, drainEmergencyQueue as _, n as v, saveToEmergencyQueue as y, t as b } from "./emergency-queue-B9WZxanZ.js";
4
+ import { createStorage as ee, storageName as x } from "./factory-e9Qo3K0z.js";
5
+ import { ContextStorage as S } from "./context-storage-BzkoHzkQ.js";
6
+ import { n as C, t as w } from "./deadline-C4ccAuk5.js";
7
+ import { i as T, r as E } from "./library-request-nI6pvI6I.js";
8
8
  import { t as D } from "./openfin-Bxelt0yg.js";
9
- import { t as O } from "./sanitize-6ymPlVvP.js";
10
- import { n as k } from "./library-console-C1m6g1BR.js";
11
- import { c as A, n as j, r as M, s as N, t as P } from "./select-xtQaenIi.js";
12
- import { r as F } from "./platform-DkcuXwe-.js";
13
- import { a as ne } from "./otlp-BTJdIa6F.js";
14
- import { a as re } from "./batch-CL9uWYY3.js";
15
- import { r as ie } from "./log-record-CAoGBBf3.js";
16
- import { i as ae } from "./identity-DT5VmvXy.js";
17
- import { t as oe } from "./sampling-C4VV-1MS.js";
18
- import { n as I, t as L } from "./remote-rules-Cfb4K-Nl.js";
9
+ import { t as O } from "./sanitize-CNmsD9r3.js";
10
+ import { n as te } from "./library-console-Dl_Ly6DQ.js";
11
+ import { c as k, n as A, r as j, s as M, t as N } from "./select-DPv_j6wq.js";
12
+ import { r as P } from "./platform-CVewe4wQ.js";
13
+ import { t as F } from "./unref-DgHPQeWv.js";
14
+ import { t as ne } from "./compression-AJJCMBOa.js";
15
+ import { a as re } from "./batch-BjQUwjA6.js";
16
+ import { r as ie } from "./log-record-DIA6McNr.js";
17
+ import { i as ae } from "./identity-BrQp_5J5.js";
18
+ import { t as oe } from "./sampling-UUDbi3K0.js";
19
+ import { n as I, t as L } from "./remote-rules-BJGDJGwA.js";
19
20
  // src/storage/persistence.ts
20
21
  async function R(e) {
21
22
  let t = globalThis.navigator?.storage;
@@ -37,13 +38,13 @@ var B = class {
37
38
  this.cancellation.abort();
38
39
  }
39
40
  assertContext(e) {
40
- if (this.cancellation.signal.aborted || this.config.securityContext.isolation && this.config.securityContext.id && e.routingContextId !== this.config.securityContext.id) throw this.diagnostics.count("security.context_mismatch"), new N("permanent", "The delivery context is inactive or does not match the batch.");
41
+ if (this.cancellation.signal.aborted || this.config.securityContext.isolation && this.config.securityContext.id && e.routingContextId !== this.config.securityContext.id) throw this.diagnostics.count("security.context_mismatch"), new M("permanent", "The delivery context is inactive or does not match the batch.");
41
42
  }
42
43
  async untilCancelled(e) {
43
- if (this.cancellation.signal.aborted) throw new N("permanent", "The delivery context retired.");
44
+ if (this.cancellation.signal.aborted) throw new M("permanent", "The delivery context retired.");
44
45
  let t, n = new Promise((e, n) => {
45
46
  t = () => {
46
- n(new N("permanent", "The delivery context retired."));
47
+ n(new M("permanent", "The delivery context retired."));
47
48
  }, this.cancellation.signal.addEventListener("abort", t, { once: !0 });
48
49
  });
49
50
  try {
@@ -62,13 +63,13 @@ var B = class {
62
63
  this.config = e, this.diagnostics = t, this.onSampling = n, this.onLoss = r, this.onClock = i;
63
64
  }
64
65
  throttledForMs(e) {
65
- return Math.max(0, this.throttledUntil[P(e, this.config)] - Date.now());
66
+ return Math.max(0, this.throttledUntil[N(e, this.config)] - Date.now());
66
67
  }
67
68
  lastSendAt() {
68
69
  return this.acceptedAt;
69
70
  }
70
71
  serialize(e) {
71
- let t = M(this.config, e, this.diagnostics, "The serializer threw an error. The library dropped the batch.");
72
+ let t = j(this.config, e, this.diagnostics, "The serializer threw an error. The library dropped the batch.");
72
73
  return t || this.onLoss("unserializable", e.records, [e.id]), t;
73
74
  }
74
75
  accept(e, t, n) {
@@ -82,18 +83,18 @@ var B = class {
82
83
  let t = r.advice === void 0 ? "" : ` ${r.advice}`;
83
84
  return this.diagnostics.report("transport.rejected_credentials", `The server returned ${i}.${t}`, {
84
85
  status: e,
85
- endpoint: j(n, this.config)
86
- }), new N("permanent", `The server rejected the batch with ${i}.`, e);
86
+ endpoint: A(n, this.config)
87
+ }), new M("permanent", `The server rejected the batch with ${i}.`, e);
87
88
  }
88
- if (e === 413) return new N("too_large", "The payload is too large.", e, void 0, r.maxBytes);
89
+ if (e === 413) return new M("too_large", "The payload is too large.", e, void 0, r.maxBytes);
89
90
  if (e === 429 || e === 503) {
90
91
  let t = e === 429, i = r.retryAfterMs === void 0 ? void 0 : Math.min(r.retryAfterMs, this.config.delivery.retryMaxDelayMs);
91
- return this.throttledUntil[n] = Date.now() + (i ?? this.config.delivery.retryBaseDelayMs), t && this.diagnostics.report("transport.throttled", "The server throttles the requests.", { retryAfterMs: i }), new N("throttled", t ? "The server throttles the requests." : "The service is not available.", e, i);
92
+ return this.throttledUntil[n] = Date.now() + (i ?? this.config.delivery.retryBaseDelayMs), t && this.diagnostics.report("transport.throttled", "The server throttles the requests.", { retryAfterMs: i }), new M("throttled", t ? "The server throttles the requests." : "The service is not available.", e, i);
92
93
  }
93
- return e === 408 || e >= 500 ? new N("transient", `The server returned the error ${i}.`, e) : (this.diagnostics.report("transport.dropped_permanent", `The server rejected the batch with ${i}. The library dropped it.`, {
94
+ return e === 408 || e >= 500 ? new M("transient", `The server returned the error ${i}.`, e) : (this.diagnostics.report("transport.dropped_permanent", `The server rejected the batch with ${i}. The library dropped it.`, {
94
95
  batchId: t,
95
96
  status: e
96
- }), new N("permanent", `The server rejected the batch with ${i}.`, e));
97
+ }), new M("permanent", `The server rejected the batch with ${i}.`, e));
97
98
  }
98
99
  };
99
100
  // src/transport/custom-transport.ts
@@ -123,16 +124,16 @@ var W = class extends B {
123
124
  if (!t || e.records.length === 0) return;
124
125
  let n = this.serialize(e);
125
126
  if (!n) return;
126
- let r = P(e, this.config), i = V(e, n, r);
127
+ let r = N(e, this.config), i = V(e, n, r);
127
128
  i.signal = this.cancellation.signal;
128
129
  let a;
129
130
  try {
130
- a = await S(this.untilCancelled(T(() => E(() => k(() => t(i))))), this.config.delivery.requestTimeoutMs);
131
+ a = await C(this.untilCancelled(T(() => E(() => te(() => t(i))))), this.config.delivery.requestTimeoutMs);
131
132
  } catch (e) {
132
133
  let t = e instanceof w ? e : void 0, n = t ? "timeout" : "transient", r = t?.message ?? "The custom transport failed.";
133
- throw new N(n, r, void 0, void 0, void 0, e);
134
+ throw new M(n, r, void 0, void 0, void 0, e);
134
135
  }
135
- if (this.assertContext(e), !H(a)) throw this.diagnostics.report("transport.http_error", "The custom transport returned no valid status. The library sends the batch again later.", { batchId: e.id }), new N("transient", "The custom transport returned no valid status.");
136
+ if (this.assertContext(e), !H(a)) throw this.diagnostics.report("transport.http_error", "The custom transport returned no valid status. The library sends the batch again later.", { batchId: e.id }), new M("transient", "The custom transport returned no valid status.");
136
137
  let { status: o } = a;
137
138
  if (o >= 200 && o < 300) this.accept(r, a.sampling, a.date);
138
139
  else throw this.reject(o, e.id, r, {
@@ -191,24 +192,24 @@ var W = class extends B {
191
192
  if (r !== null) {
192
193
  this.keepaliveBytes = 0;
193
194
  for (let i of this.deps.drainForExit()) {
194
- let a = P(i, t), o = a === "logs" ? r.href : j(a, t);
195
+ let a = N(i, t), o = a === "logs" ? r.href : A(a, t);
195
196
  o ? this.flushBatch(i, e, new URL(o)) : n.count("record.dropped_no_destination");
196
197
  }
197
198
  }
198
199
  }
199
- flushBatch(t, i, a) {
200
+ flushBatch(t, r, a) {
200
201
  let { config: o } = this.deps;
201
202
  if (t.records.length === 0) return;
202
- let s = this.serialize(t, i);
203
+ let s = this.serialize(t, r);
203
204
  if (!s) return;
204
205
  if (O(s.body) > 6e4) {
205
206
  this.park(t);
206
207
  return;
207
208
  }
208
- a.searchParams.set(n, t.id), a.searchParams.set(r, i);
209
+ a.searchParams.set(i, t.id), a.searchParams.set(n, r);
209
210
  let c = a.toString(), l = this.deps.exitHeaders();
210
211
  if (l) {
211
- this.keepaliveFetch(c, t, s.body, i, () => {
212
+ this.keepaliveFetch(c, t, s.body, r, () => {
212
213
  let e = new Headers(l);
213
214
  return e.set(u, s.contentType), e.set(f, t.id), e;
214
215
  });
@@ -219,7 +220,7 @@ var W = class extends B {
219
220
  return;
220
221
  }
221
222
  let d = this.beacon(c, s.body);
222
- d !== "sent" && (d === "refused" ? this.park(t) : this.keepaliveFetch(c, t, s.body, i, () => new Headers({ [u]: e })));
223
+ d !== "sent" && (d === "refused" ? this.park(t) : this.keepaliveFetch(c, t, s.body, r, () => new Headers({ [u]: e })));
223
224
  }
224
225
  flushAlive() {
225
226
  let { diagnostics: e } = this.deps, t = "The flush of the hidden document failed.";
@@ -234,7 +235,7 @@ var W = class extends B {
234
235
  for (let i of this.deps.drainForExit()) {
235
236
  let a = this.serialize(i, e);
236
237
  if (!a) continue;
237
- let o = V(i, a, P(i, n));
238
+ let o = V(i, a, N(i, n));
238
239
  (t === void 0 || r.guard("transport.http_error", "The transportOnExit hook threw an error.", () => E(() => t(o))) !== !0) && this.park(i);
239
240
  }
240
241
  }
@@ -243,7 +244,7 @@ var W = class extends B {
243
244
  t.storage === "memory" || t.storage === "none" ? r?.("not_stored", e.records, [e.id]) : y(e, n, r);
244
245
  }
245
246
  serialize(e, t) {
246
- let n = M(this.deps.config, e, this.deps.diagnostics, `The ${t} exit flush could not serialize its batch.`);
247
+ let n = j(this.deps.config, e, this.deps.diagnostics, `The ${t} exit flush could not serialize its batch.`);
247
248
  return n || this.deps.onLoss?.("unserializable", e.records, [e.id]), n;
248
249
  }
249
250
  endpointUrl() {
@@ -298,7 +299,7 @@ function J(e) {
298
299
  var Y = "In a cross-origin iframe, the session cookie is a third-party cookie. The browser often blocks it. Forward the records to the platform document. As an alternative, issue the cookie with the Partitioned attribute.", X = class extends B {
299
300
  async send(e, t) {
300
301
  this.assertContext(e);
301
- let { config: n } = this, r = P(e, n), i = j(r, n);
302
+ let { config: n } = this, r = N(e, n), i = A(r, n);
302
303
  i ? e.records.length !== 0 && await this.post(e, r, i, t) : this.diagnostics.count("record.dropped_no_destination");
303
304
  }
304
305
  lastHeaders() {
@@ -313,7 +314,7 @@ var Y = "In a cross-origin iframe, the session cookie is a third-party cookie. T
313
314
  this.accept(t, e.get(s), e.get(m));
314
315
  return;
315
316
  }
316
- let c = a.status, l = A(a.headers.get(o)), u = c === 413 ? await this.readMaxBytes(a) : void 0;
317
+ let c = a.status, l = k(a.headers.get(o)), u = c === 413 ? await this.readMaxBytes(a) : void 0;
317
318
  throw this.reject(c, e.id, t, {
318
319
  retryAfterMs: l,
319
320
  maxBytes: u,
@@ -333,14 +334,14 @@ var Y = "In a cross-origin iframe, the session cookie is a third-party cookie. T
333
334
  }
334
335
  async before(e, t, n) {
335
336
  try {
336
- return await S(this.untilCancelled(e), Math.max(0, t - Date.now()));
337
+ return await C(this.untilCancelled(e), Math.max(0, t - Date.now()));
337
338
  } catch {
338
- throw this.cancellation.signal.aborted ? new N("permanent", "The delivery context retired.") : this.timeout(n);
339
+ throw this.cancellation.signal.aborted ? new M("permanent", "The delivery context retired.") : this.timeout(n);
339
340
  }
340
341
  }
341
342
  timeout(e) {
342
343
  let t = `The request took longer than ${String(this.config.delivery.requestTimeoutMs)} ms.`;
343
- return this.diagnostics.report("transport.timeout", t, { endpoint: e }), new N("timeout", t);
344
+ return this.diagnostics.report("transport.timeout", t, { endpoint: e }), new M("timeout", t);
344
345
  }
345
346
  async encodeBody(e) {
346
347
  let { config: t } = this;
@@ -354,7 +355,7 @@ var Y = "In a cross-origin iframe, the session cookie is a third-party cookie. T
354
355
  let c = setTimeout(() => {
355
356
  o.abort();
356
357
  }, Math.max(0, r - Date.now()));
357
- C(c);
358
+ F(c);
358
359
  try {
359
360
  return await E(() => fetch(e, {
360
361
  method: "POST",
@@ -367,7 +368,7 @@ var Y = "In a cross-origin iframe, the session cookie is a third-party cookie. T
367
368
  priority: i ? "auto" : a.delivery.priority
368
369
  }));
369
370
  } catch {
370
- throw this.cancellation.signal.aborted ? new N("permanent", "The delivery context retired.") : o.signal.aborted ? this.timeout(e) : new N(F() ? "transient" : "offline", "A network error occurred.");
371
+ throw this.cancellation.signal.aborted ? new M("permanent", "The delivery context retired.") : o.signal.aborted ? this.timeout(e) : new M(P() ? "transient" : "offline", "A network error occurred.");
371
372
  } finally {
372
373
  this.cancellation.signal.removeEventListener("abort", s), clearTimeout(c);
373
374
  }
@@ -431,10 +432,10 @@ var Y = "In a cross-origin iframe, the session cookie is a third-party cookie. T
431
432
  let t = setTimeout(() => {
432
433
  this.drain();
433
434
  }, e);
434
- this.timer = t, C(t);
435
+ this.timer = t, F(t);
435
436
  }
436
437
  bounded(e) {
437
- return S(e, t);
438
+ return C(e, t);
438
439
  }
439
440
  clearTimer() {
440
441
  this.timer !== null && (clearTimeout(this.timer), this.timer = null);
@@ -447,7 +448,7 @@ var Y = "In a cross-origin iframe, the session cookie is a third-party cookie. T
447
448
  if (!this.draining) {
448
449
  this.draining = !0;
449
450
  try {
450
- let e = b(i, this.config.persistence.namespace);
451
+ let e = b(r, this.config.persistence.namespace);
451
452
  await v(e, this.diagnostics, () => this.drainLocked()) !== !0 && this.schedule(this.config.delivery.retryIdleDelayMs);
452
453
  } finally {
453
454
  this.draining = !1;
@@ -456,13 +457,13 @@ var Y = "In a cross-origin iframe, the session cookie is a third-party cookie. T
456
457
  }
457
458
  async drainLocked() {
458
459
  try {
459
- if (!F()) return this.schedule(this.config.delivery.retryIdleDelayMs), !0;
460
+ if (!P()) return this.schedule(this.config.delivery.retryIdleDelayMs), !0;
460
461
  let e = await this.bounded(this.storage.take(this.batchesPerDrain ?? this.config.delivery.batchesPerDrain));
461
462
  if (e.length === 0) return this.schedule(this.config.delivery.retryIdleDelayMs), !0;
462
463
  let t = /* @__PURE__ */ new Set(), n = 0;
463
464
  for (let r of e) {
464
465
  if (this.stopped) return !0;
465
- let e = P(r, this.config);
466
+ let e = N(r, this.config);
466
467
  if (t.has(e)) continue;
467
468
  let i = await this.deliver(r);
468
469
  if (i === "stop") return !0;
@@ -482,7 +483,7 @@ var Y = "In a cross-origin iframe, the session cookie is a third-party cookie. T
482
483
  return await this.transport.send(e), await this.bounded(this.storage.remove(e.id)), this.attempt = 0, "next";
483
484
  } catch (t) {
484
485
  if (this.stopped) return "stop";
485
- let n = t instanceof N ? t : void 0;
486
+ let n = t instanceof M ? t : void 0;
486
487
  return n?.kind === "permanent" || n?.kind === "too_large" ? (await this.replaceStored(e, t), "next") : n?.kind === "offline" ? (this.schedule(this.config.delivery.retryIdleDelayMs), "stop") : n?.kind === "throttled" ? (this.attempt++, n.retryAfterMs ?? this.backoffMs()) : (await this.bounded(this.storage.bumpAttempts(e.id, e.attempts + 1)), this.attempt++, n?.retryAfterMs ?? this.backoffMs());
487
488
  }
488
489
  }
@@ -492,7 +493,7 @@ var Y = "In a cross-origin iframe, the session cookie is a third-party cookie. T
492
493
  for (let e of n) await this.bounded(this.storage.save(e));
493
494
  }
494
495
  toStorable(e, t) {
495
- let n = t instanceof N ? t : void 0;
496
+ let n = t instanceof M ? t : void 0;
496
497
  if (n?.kind === "permanent") return this.onLoss("rejected", e.records, [e.id]), [];
497
498
  if (n?.kind !== "too_large") return [e];
498
499
  let r = re(e, this.diagnostics);
@@ -541,7 +542,7 @@ var $ = class {
541
542
  let e = setTimeout(() => {
542
543
  this.timer = null, this.onFlush(this);
543
544
  }, this.options.flushIntervalMs);
544
- this.timer = e, C(e);
545
+ this.timer = e, F(e);
545
546
  }
546
547
  clearTimer() {
547
548
  this.timer !== null && (clearTimeout(this.timer), this.timer = null);
@@ -742,7 +743,7 @@ var $ = class {
742
743
  }
743
744
  async store(e) {
744
745
  await this.diagnostics.guardAsync("storage.degraded", "The library could not store an undelivered batch.", async () => {
745
- await S(this.storage.save(e), t), this.retry.nudge();
746
+ await C(this.storage.save(e), t), this.retry.nudge();
746
747
  });
747
748
  }
748
749
  }, ue = class e {
@@ -758,14 +759,14 @@ var $ = class {
758
759
  this.storage = e, this.retry = t, this.pipeline = n, this.exitFlush = r, this.diagnostics = i, this.transport = a;
759
760
  }
760
761
  static async create(t) {
761
- let { config: n, diagnostics: r } = t, i = t.storage ?? await ee(n.storage, te(n.persistence.namespace), h(n.retention), r, t.onGap, n.persistence.namespace);
762
+ let { config: n, diagnostics: r } = t, i = t.storage ?? await ee(n.storage, x(n.persistence.namespace), h(n.retention), r, t.onGap, n.persistence.namespace);
762
763
  t.onStorage?.(i), n.persistence.requestPersistent && (i.name === "indexeddb" || i.name === "localstorage") && (t.onPersistence?.("pending"), R(r).then(t.onPersistence));
763
- let a = new x(i, n.securityContext, n.persistence.namespace), o = (e) => {
764
+ let a = new S(i, n.securityContext, n.persistence.namespace), o = (e) => {
764
765
  let i = I(e, r);
765
766
  i && L(t.remote, n, i);
766
767
  }, s, c = (e) => {
767
768
  s = e;
768
- }, { onLoss: l } = t, u = !n.transport && n.transportWorker ? await r.guardAsync("transport.http_error", "The transport worker module did not load. The library uses HTTP.", async () => (await import("./worker-transport-D6jtgpqN.js")).createWorkerTransport(n, r, o, l, c)) : void 0, d = n.transport !== void 0 || u !== void 0 ? void 0 : new X(n, r, o, l, c), f = u?.transport ?? d ?? new W(n, r, o, l, c), p = new ce(a, f, r, n, void 0, l), { batching: m } = n, g = new le(f, a, p, r, {
769
+ }, { onLoss: l } = t, u = !n.transport && n.transportWorker ? await r.guardAsync("transport.http_error", "The transport worker module did not load. The library uses HTTP.", async () => (await import("./worker-transport-C3SjJAEC.js")).createWorkerTransport(n, r, o, l, c)) : void 0, d = n.transport !== void 0 || u !== void 0 ? void 0 : new X(n, r, o, l, c), f = u?.transport ?? d ?? new W(n, r, o, l, c), p = new ce(a, f, r, n, void 0, l), { batching: m } = n, g = new le(f, a, p, r, {
769
770
  logs: {
770
771
  flushIntervalMs: m.logFlushIntervalMs,
771
772
  batchSize: m.logBatchSize
@@ -818,7 +819,7 @@ var $ = class {
818
819
  }
819
820
  async retire(e, t, n) {
820
821
  if (this.retired = !0, this.exitFlush.uninstall(), this.retry.stop(), e === "flush") try {
821
- await S(Promise.all([this.flush(), this.retry.flush()]), t);
822
+ await C(Promise.all([this.flush(), this.retry.flush()]), t);
822
823
  } catch (e) {
823
824
  this.diagnostics.report("transport.timeout", "The flush of the old security context did not complete before its time limit.", void 0, e);
824
825
  }
@@ -853,4 +854,4 @@ var $ = class {
853
854
  };
854
855
  export { ue as Sender, B as a, q as i, X as n, J as r, Y as t };
855
856
 
856
- //# sourceMappingURL=sender-CiMHC9YG.js.map
857
+ //# sourceMappingURL=sender-15zEsZpr.js.map