@utk09/ui-observability 1.1.0 → 1.2.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 (271) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/{batch-D3NHhF9L.js → batch-120Kc9jr.js} +3 -3
  3. package/dist/{batch-D3NHhF9L.js.map → batch-120Kc9jr.js.map} +1 -1
  4. package/dist/{batch-DnYRJqhU.cjs → batch-C3uNp5kU.cjs} +2 -2
  5. package/dist/{batch-DnYRJqhU.cjs.map → batch-C3uNp5kU.cjs.map} +1 -1
  6. package/dist/bus/bus.d.cts +5 -0
  7. package/dist/bus/bus.d.ts +5 -0
  8. package/dist/bus-Dj8IEVcC.cjs +2 -0
  9. package/dist/bus-Dj8IEVcC.cjs.map +1 -0
  10. package/dist/{bus-dw7T92sO.js → bus-DyNafxZN.js} +104 -94
  11. package/dist/bus-DyNafxZN.js.map +1 -0
  12. package/dist/capture/errors.d.cts +10 -0
  13. package/dist/capture/errors.d.ts +10 -0
  14. package/dist/capture/replay.d.cts +1 -1
  15. package/dist/capture/replay.d.ts +1 -1
  16. package/dist/capture/types.d.cts +5 -0
  17. package/dist/capture/types.d.ts +5 -0
  18. package/dist/capture/web-vitals.d.cts +1 -0
  19. package/dist/capture/web-vitals.d.ts +1 -0
  20. package/dist/{compression-SHPAvS4U.js → compression-BWkDWY3v.js} +2 -2
  21. package/dist/{compression-SHPAvS4U.js.map → compression-BWkDWY3v.js.map} +1 -1
  22. package/dist/{compression-C0hUHKR-.cjs → compression-CEVe7NPX.cjs} +2 -2
  23. package/dist/{compression-C0hUHKR-.cjs.map → compression-CEVe7NPX.cjs.map} +1 -1
  24. package/dist/config-C0PtemvC.cjs +2 -0
  25. package/dist/config-C0PtemvC.cjs.map +1 -0
  26. package/dist/{config-CSNcS7OZ.js → config-DK1Zf7jn.js} +83 -85
  27. package/dist/config-DK1Zf7jn.js.map +1 -0
  28. package/dist/{console-BsM-fSCQ.js → console-CAyCQOpm.js} +5 -5
  29. package/dist/{console-BsM-fSCQ.js.map → console-CAyCQOpm.js.map} +1 -1
  30. package/dist/{console-Dkxs6IVQ.cjs → console-Dk6GH4yj.cjs} +2 -2
  31. package/dist/{console-Dkxs6IVQ.cjs.map → console-Dk6GH4yj.cjs.map} +1 -1
  32. package/dist/{constants-BwJDXzj6.js → constants-CEHN6KuY.js} +42 -21
  33. package/dist/constants-CEHN6KuY.js.map +1 -0
  34. package/dist/constants-NtiQDWL_.cjs +2 -0
  35. package/dist/constants-NtiQDWL_.cjs.map +1 -0
  36. package/dist/constants.d.cts +11 -0
  37. package/dist/constants.d.ts +11 -0
  38. package/dist/core/config.d.cts +9 -3
  39. package/dist/core/config.d.ts +9 -3
  40. package/dist/core/diagnostics.d.cts +1 -1
  41. package/dist/core/diagnostics.d.ts +1 -1
  42. package/dist/core/pipeline.d.cts +11 -0
  43. package/dist/core/pipeline.d.ts +11 -0
  44. package/dist/core/record.d.cts +2 -2
  45. package/dist/core/record.d.ts +2 -2
  46. package/dist/core/sender.d.cts +3 -2
  47. package/dist/core/sender.d.ts +3 -2
  48. package/dist/{debug-bundle-B2v6Cym-.cjs → debug-bundle-DMzUfiQc.cjs} +2 -2
  49. package/dist/{debug-bundle-B2v6Cym-.cjs.map → debug-bundle-DMzUfiQc.cjs.map} +1 -1
  50. package/dist/{debug-bundle-Cs_YWzTa.js → debug-bundle-w78W46zr.js} +4 -4
  51. package/dist/{debug-bundle-Cs_YWzTa.js.map → debug-bundle-w78W46zr.js.map} +1 -1
  52. package/dist/doctor.cjs +1 -1
  53. package/dist/doctor.js +22 -22
  54. package/dist/doctor.js.map +1 -1
  55. package/dist/errors-07pmZ7VY.cjs +3 -0
  56. package/dist/errors-07pmZ7VY.cjs.map +1 -0
  57. package/dist/{errors-Q3Ng1ciC.js → errors-C-LYbqyB.js} +27 -24
  58. package/dist/errors-C-LYbqyB.js.map +1 -0
  59. package/dist/{factory-DV17sm2p.js → factory-BHYrcSaU.js} +42 -31
  60. package/dist/factory-BHYrcSaU.js.map +1 -0
  61. package/dist/factory-DsaNdcXp.cjs +2 -0
  62. package/dist/factory-DsaNdcXp.cjs.map +1 -0
  63. package/dist/{identity-BgtHyY4u.js → identity-Byh3gCdT.js} +11 -11
  64. package/dist/{identity-BgtHyY4u.js.map → identity-Byh3gCdT.js.map} +1 -1
  65. package/dist/{identity-CvuyqZk7.cjs → identity-BzAzdQyv.cjs} +2 -2
  66. package/dist/{identity-CvuyqZk7.cjs.map → identity-BzAzdQyv.cjs.map} +1 -1
  67. package/dist/index.cjs +1 -1
  68. package/dist/index.cjs.map +1 -1
  69. package/dist/index.js +539 -534
  70. package/dist/index.js.map +1 -1
  71. package/dist/{indexeddb-storage-e-13ZLWm.js → indexeddb-storage-BYywz-v6.js} +4 -4
  72. package/dist/{indexeddb-storage-e-13ZLWm.js.map → indexeddb-storage-BYywz-v6.js.map} +1 -1
  73. package/dist/{indexeddb-storage-D4KVcqdD.cjs → indexeddb-storage-BfqGkLFe.cjs} +2 -2
  74. package/dist/{indexeddb-storage-D4KVcqdD.cjs.map → indexeddb-storage-BfqGkLFe.cjs.map} +1 -1
  75. package/dist/{interactions-OK85T-Dk.cjs → interactions-BXzEel4F.cjs} +2 -2
  76. package/dist/interactions-BXzEel4F.cjs.map +1 -0
  77. package/dist/{interactions-Byxf1C82.js → interactions-DdKPMWIN.js} +12 -12
  78. package/dist/interactions-DdKPMWIN.js.map +1 -0
  79. package/dist/{journey-nMbob3OB.cjs → journey-BUmsrgaw.cjs} +2 -2
  80. package/dist/{journey-nMbob3OB.cjs.map → journey-BUmsrgaw.cjs.map} +1 -1
  81. package/dist/{journey-C93FTYcs.js → journey-Nu655gEO.js} +3 -3
  82. package/dist/{journey-C93FTYcs.js.map → journey-Nu655gEO.js.map} +1 -1
  83. package/dist/{library-console-DJUQzcgM.cjs → library-console-DdIlzzph.cjs} +2 -2
  84. package/dist/{library-console-DJUQzcgM.cjs.map → library-console-DdIlzzph.cjs.map} +1 -1
  85. package/dist/{library-console-DklSmucS.js → library-console-amePMnP8.js} +2 -2
  86. package/dist/{library-console-DklSmucS.js.map → library-console-amePMnP8.js.map} +1 -1
  87. package/dist/{library-request-UGEwOHpf.js → library-request-Cv7C05jf.js} +2 -2
  88. package/dist/{library-request-UGEwOHpf.js.map → library-request-Cv7C05jf.js.map} +1 -1
  89. package/dist/{library-request-kY9iTpIF.cjs → library-request-DO3Ec7KE.cjs} +2 -2
  90. package/dist/{library-request-kY9iTpIF.cjs.map → library-request-DO3Ec7KE.cjs.map} +1 -1
  91. package/dist/{lifecycle-DaMdH_X7.cjs → lifecycle-B5yfH5is.cjs} +2 -2
  92. package/dist/{lifecycle-DaMdH_X7.cjs.map → lifecycle-B5yfH5is.cjs.map} +1 -1
  93. package/dist/{lifecycle-B2PlIuQu.js → lifecycle-CMHz2Zbs.js} +2 -2
  94. package/dist/{lifecycle-B2PlIuQu.js.map → lifecycle-CMHz2Zbs.js.map} +1 -1
  95. package/dist/{log-record-DSt2P-Sr.js → log-record-B_nSqxoe.js} +2 -2
  96. package/dist/{log-record-DSt2P-Sr.js.map → log-record-B_nSqxoe.js.map} +1 -1
  97. package/dist/{log-record-Bmx6etMh.cjs → log-record-Bdywwg0k.cjs} +2 -2
  98. package/dist/{log-record-Bmx6etMh.cjs.map → log-record-Bdywwg0k.cjs.map} +1 -1
  99. package/dist/{long-frames-Bamjs1WV.js → long-frames-6NGl1-uN.js} +3 -3
  100. package/dist/{long-frames-Bamjs1WV.js.map → long-frames-6NGl1-uN.js.map} +1 -1
  101. package/dist/{long-frames-lhtONgGt.cjs → long-frames-D9DfSWqv.cjs} +2 -2
  102. package/dist/{long-frames-lhtONgGt.cjs.map → long-frames-D9DfSWqv.cjs.map} +1 -1
  103. package/dist/models/config.d.cts +4 -3
  104. package/dist/models/config.d.ts +4 -3
  105. package/dist/{network-BCn8Gn47.cjs → network-BNHBI0Fc.cjs} +2 -2
  106. package/dist/{network-BCn8Gn47.cjs.map → network-BNHBI0Fc.cjs.map} +1 -1
  107. package/dist/{network-Cg1L2w2r.js → network-Cc3tSB7e.js} +13 -13
  108. package/dist/{network-Cg1L2w2r.js.map → network-Cc3tSB7e.js.map} +1 -1
  109. package/dist/{observed-windows-BrwaJNlj.js → observed-windows-8JtCsIr1.js} +3 -3
  110. package/dist/{observed-windows-BrwaJNlj.js.map → observed-windows-8JtCsIr1.js.map} +1 -1
  111. package/dist/{observed-windows-B3gJkdql.cjs → observed-windows-BlE25nrn.cjs} +2 -2
  112. package/dist/{observed-windows-B3gJkdql.cjs.map → observed-windows-BlE25nrn.cjs.map} +1 -1
  113. package/dist/openfin-Bxelt0yg.js.map +1 -1
  114. package/dist/openfin-DtH2f7zX.cjs.map +1 -1
  115. package/dist/{otlp-D6dRZyB8.js → otlp-Btix3EBa.js} +7 -7
  116. package/dist/{otlp-D6dRZyB8.js.map → otlp-Btix3EBa.js.map} +1 -1
  117. package/dist/{otlp-CrAWkQdO.cjs → otlp-CFSW-Dno.cjs} +2 -2
  118. package/dist/{otlp-CrAWkQdO.cjs.map → otlp-CFSW-Dno.cjs.map} +1 -1
  119. package/dist/patch-DlcKzIi-.cjs +2 -0
  120. package/dist/patch-DlcKzIi-.cjs.map +1 -0
  121. package/dist/patch-Sr1wKg7W.js +9 -0
  122. package/dist/patch-Sr1wKg7W.js.map +1 -0
  123. package/dist/platform-BZjp9wp1.cjs +2 -0
  124. package/dist/platform-BZjp9wp1.cjs.map +1 -0
  125. package/dist/{platform-8DLhjddo.js → platform-Dba6R3Hp.js} +22 -9
  126. package/dist/platform-Dba6R3Hp.js.map +1 -0
  127. package/dist/{profiler-BaXSqCfz.js → profiler-DNKcqu09.js} +19 -19
  128. package/dist/{profiler-BaXSqCfz.js.map → profiler-DNKcqu09.js.map} +1 -1
  129. package/dist/{profiler-BvWW2kNM.cjs → profiler-DpoPi1hH.cjs} +2 -2
  130. package/dist/{profiler-BvWW2kNM.cjs.map → profiler-DpoPi1hH.cjs.map} +1 -1
  131. package/dist/{profiler-frames-DeaBiB-5.cjs → profiler-frames-C9zJNd8_.cjs} +2 -2
  132. package/dist/{profiler-frames-DeaBiB-5.cjs.map → profiler-frames-C9zJNd8_.cjs.map} +1 -1
  133. package/dist/{profiler-frames-C4ySHN0X.js → profiler-frames-CGXZeZ_3.js} +4 -4
  134. package/dist/{profiler-frames-C4ySHN0X.js.map → profiler-frames-CGXZeZ_3.js.map} +1 -1
  135. package/dist/{remote-rules-Dq9xe7Qn.js → remote-rules-DNK96vLa.js} +15 -15
  136. package/dist/{remote-rules-Dq9xe7Qn.js.map → remote-rules-DNK96vLa.js.map} +1 -1
  137. package/dist/{remote-rules-D7L6D_D2.cjs → remote-rules-DuMFRlit.cjs} +2 -2
  138. package/dist/{remote-rules-D7L6D_D2.cjs.map → remote-rules-DuMFRlit.cjs.map} +1 -1
  139. package/dist/replay-Cab-lSit.cjs +2 -0
  140. package/dist/replay-Cab-lSit.cjs.map +1 -0
  141. package/dist/{replay-B0M8kWz_.js → replay-Dy6OiaOZ.js} +89 -62
  142. package/dist/replay-Dy6OiaOZ.js.map +1 -0
  143. package/dist/{reports-ojuMKGO7.cjs → reports-CGK9YQch.cjs} +2 -2
  144. package/dist/{reports-ojuMKGO7.cjs.map → reports-CGK9YQch.cjs.map} +1 -1
  145. package/dist/{reports--8APRLa-.js → reports-CX57-S9s.js} +3 -3
  146. package/dist/{reports--8APRLa-.js.map → reports-CX57-S9s.js.map} +1 -1
  147. package/dist/{resource-timing-BzR05rE-.js → resource-timing-CWVDCbrY.js} +4 -4
  148. package/dist/{resource-timing-BzR05rE-.js.map → resource-timing-CWVDCbrY.js.map} +1 -1
  149. package/dist/{resource-timing-pAG3ZhB5.cjs → resource-timing-DalulXiR.cjs} +2 -2
  150. package/dist/{resource-timing-pAG3ZhB5.cjs.map → resource-timing-DalulXiR.cjs.map} +1 -1
  151. package/dist/response-body-Cpz5__4g.cjs +3 -0
  152. package/dist/response-body-Cpz5__4g.cjs.map +1 -0
  153. package/dist/{response-body-BWvwKQ2p.js → response-body-yi92Rpvo.js} +100 -100
  154. package/dist/response-body-yi92Rpvo.js.map +1 -0
  155. package/dist/{rotation-BylN1B9e.js → rotation-ChBbNDE2.js} +24 -24
  156. package/dist/rotation-ChBbNDE2.js.map +1 -0
  157. package/dist/rotation-fTnNJcfH.cjs +2 -0
  158. package/dist/rotation-fTnNJcfH.cjs.map +1 -0
  159. package/dist/{sampling-zXA6r-Nw.js → sampling-DZTOD28D.js} +6 -6
  160. package/dist/{sampling-zXA6r-Nw.js.map → sampling-DZTOD28D.js.map} +1 -1
  161. package/dist/{sampling-B46LW0cy.cjs → sampling-wAVJIZXp.cjs} +2 -2
  162. package/dist/{sampling-B46LW0cy.cjs.map → sampling-wAVJIZXp.cjs.map} +1 -1
  163. package/dist/{sanitize-DjnR6RXR.js → sanitize-B2GKlSFp.js} +2 -2
  164. package/dist/{sanitize-DjnR6RXR.js.map → sanitize-B2GKlSFp.js.map} +1 -1
  165. package/dist/{sanitize-Qj6LuZqp.cjs → sanitize-BZdhoghq.cjs} +2 -2
  166. package/dist/{sanitize-Qj6LuZqp.cjs.map → sanitize-BZdhoghq.cjs.map} +1 -1
  167. package/dist/{sender-Bdp-TAS4.js → sender-BRSpc7R8.js} +175 -161
  168. package/dist/sender-BRSpc7R8.js.map +1 -0
  169. package/dist/sender-CFu98DAB.cjs +2 -0
  170. package/dist/sender-CFu98DAB.cjs.map +1 -0
  171. package/dist/storage/emergency-queue.d.cts +3 -1
  172. package/dist/storage/emergency-queue.d.ts +3 -1
  173. package/dist/storage/stored-context.d.cts +3 -2
  174. package/dist/storage/stored-context.d.ts +3 -2
  175. package/dist/stored-context-CPLlzgpm.cjs +2 -0
  176. package/dist/stored-context-CPLlzgpm.cjs.map +1 -0
  177. package/dist/{stored-context-CSttrAsw.js → stored-context-df1dEnht.js} +10 -8
  178. package/dist/stored-context-df1dEnht.js.map +1 -0
  179. package/dist/{storm-DKlpv0FL.js → storm-U3_ek1nA.js} +2 -2
  180. package/dist/{storm-DKlpv0FL.js.map → storm-U3_ek1nA.js.map} +1 -1
  181. package/dist/{storm-BHgI12iS.cjs → storm-qiE_AMC7.cjs} +2 -2
  182. package/dist/{storm-BHgI12iS.cjs.map → storm-qiE_AMC7.cjs.map} +1 -1
  183. package/dist/transport/exit-flush.d.cts +23 -0
  184. package/dist/transport/exit-flush.d.ts +23 -0
  185. package/dist/transport/http-transport.d.cts +3 -2
  186. package/dist/transport/http-transport.d.ts +3 -2
  187. package/dist/transport/retry-engine.d.cts +11 -3
  188. package/dist/transport/retry-engine.d.ts +11 -3
  189. package/dist/types-BAerHgCq.js.map +1 -1
  190. package/dist/types-C7WNpnG1.cjs.map +1 -1
  191. package/dist/{unclean-exit-BcOB8A2e.js → unclean-exit-Bj6gYHeL.js} +2 -2
  192. package/dist/{unclean-exit-BcOB8A2e.js.map → unclean-exit-Bj6gYHeL.js.map} +1 -1
  193. package/dist/{unclean-exit-BYPYYkQ5.cjs → unclean-exit-CuBh-ee5.cjs} +2 -2
  194. package/dist/{unclean-exit-BYPYYkQ5.cjs.map → unclean-exit-CuBh-ee5.cjs.map} +1 -1
  195. package/dist/{user-timing-BsU2wQKE.cjs → user-timing-BWqzYF2Q.cjs} +2 -2
  196. package/dist/{user-timing-BsU2wQKE.cjs.map → user-timing-BWqzYF2Q.cjs.map} +1 -1
  197. package/dist/{user-timing-4KIJ74Vi.js → user-timing-Duz0d-OA.js} +2 -2
  198. package/dist/{user-timing-4KIJ74Vi.js.map → user-timing-Duz0d-OA.js.map} +1 -1
  199. package/dist/utils/lock.d.cts +3 -2
  200. package/dist/utils/lock.d.ts +3 -2
  201. package/dist/utils/openfin.d.cts +18 -6
  202. package/dist/utils/openfin.d.ts +18 -6
  203. package/dist/utils/patch.d.cts +1 -1
  204. package/dist/utils/patch.d.ts +1 -1
  205. package/dist/utils/platform.d.cts +6 -0
  206. package/dist/utils/platform.d.ts +6 -0
  207. package/dist/{web-socket-Zg0hj1LB.js → web-socket-CE_9Q22z.js} +5 -5
  208. package/dist/{web-socket-Zg0hj1LB.js.map → web-socket-CE_9Q22z.js.map} +1 -1
  209. package/dist/{web-socket-Cs1ZbmmN.cjs → web-socket-sm3rD-A_.cjs} +2 -2
  210. package/dist/{web-socket-Cs1ZbmmN.cjs.map → web-socket-sm3rD-A_.cjs.map} +1 -1
  211. package/dist/{web-vitals-4pWACwaR.js → web-vitals-CGwXGF-M.js} +4 -4
  212. package/dist/web-vitals-CGwXGF-M.js.map +1 -0
  213. package/dist/web-vitals-Df4Wsfx9.cjs +2 -0
  214. package/dist/web-vitals-Df4Wsfx9.cjs.map +1 -0
  215. package/dist/{worker-protocol-DFYXIFus.cjs → worker-protocol-D5VnCdWY.cjs} +2 -2
  216. package/dist/{worker-protocol-DFYXIFus.cjs.map → worker-protocol-D5VnCdWY.cjs.map} +1 -1
  217. package/dist/{worker-protocol-CYpAbrVl.js → worker-protocol-h4-tRWqy.js} +6 -6
  218. package/dist/{worker-protocol-CYpAbrVl.js.map → worker-protocol-h4-tRWqy.js.map} +1 -1
  219. package/dist/{worker-server--yGTadTA.cjs → worker-server-CF1yatXq.cjs} +2 -2
  220. package/dist/{worker-server--yGTadTA.cjs.map → worker-server-CF1yatXq.cjs.map} +1 -1
  221. package/dist/worker-server-FYfKHQhJ.js +94 -0
  222. package/dist/{worker-server-BokySIII.js.map → worker-server-FYfKHQhJ.js.map} +1 -1
  223. package/dist/{worker-transport-BdEvh_-a.cjs → worker-transport-COgY4RX8.cjs} +2 -2
  224. package/dist/{worker-transport-BdEvh_-a.cjs.map → worker-transport-COgY4RX8.cjs.map} +1 -1
  225. package/dist/{worker-transport-JK-Fby9J.js → worker-transport-jzX1IusG.js} +34 -34
  226. package/dist/{worker-transport-JK-Fby9J.js.map → worker-transport-jzX1IusG.js.map} +1 -1
  227. package/llms.txt +1 -2
  228. package/package.json +1 -1
  229. package/dist/bus-B__467mL.cjs +0 -2
  230. package/dist/bus-B__467mL.cjs.map +0 -1
  231. package/dist/bus-dw7T92sO.js.map +0 -1
  232. package/dist/config-CSNcS7OZ.js.map +0 -1
  233. package/dist/config-CybPP5VM.cjs +0 -2
  234. package/dist/config-CybPP5VM.cjs.map +0 -1
  235. package/dist/constants-BwJDXzj6.js.map +0 -1
  236. package/dist/constants-CtF52hIV.cjs +0 -2
  237. package/dist/constants-CtF52hIV.cjs.map +0 -1
  238. package/dist/errors-DP2RUm4V.cjs +0 -3
  239. package/dist/errors-DP2RUm4V.cjs.map +0 -1
  240. package/dist/errors-Q3Ng1ciC.js.map +0 -1
  241. package/dist/factory-DV17sm2p.js.map +0 -1
  242. package/dist/factory-K8O6gpux.cjs +0 -2
  243. package/dist/factory-K8O6gpux.cjs.map +0 -1
  244. package/dist/interactions-Byxf1C82.js.map +0 -1
  245. package/dist/interactions-OK85T-Dk.cjs.map +0 -1
  246. package/dist/patch-BX8KrPCT.cjs +0 -2
  247. package/dist/patch-BX8KrPCT.cjs.map +0 -1
  248. package/dist/patch-UdPz1ea8.js +0 -8
  249. package/dist/patch-UdPz1ea8.js.map +0 -1
  250. package/dist/platform-8DLhjddo.js.map +0 -1
  251. package/dist/platform-BqRc-7RO.cjs +0 -2
  252. package/dist/platform-BqRc-7RO.cjs.map +0 -1
  253. package/dist/replay-B0M8kWz_.js.map +0 -1
  254. package/dist/replay-QOFBpAXh.cjs +0 -2
  255. package/dist/replay-QOFBpAXh.cjs.map +0 -1
  256. package/dist/response-body-BWvwKQ2p.js.map +0 -1
  257. package/dist/response-body-CKEJ5itk.cjs +0 -3
  258. package/dist/response-body-CKEJ5itk.cjs.map +0 -1
  259. package/dist/rotation-BylN1B9e.js.map +0 -1
  260. package/dist/rotation-E2eKClIs.cjs +0 -2
  261. package/dist/rotation-E2eKClIs.cjs.map +0 -1
  262. package/dist/sender-Bdp-TAS4.js.map +0 -1
  263. package/dist/sender-DR7ZycZY.cjs +0 -2
  264. package/dist/sender-DR7ZycZY.cjs.map +0 -1
  265. package/dist/stored-context-BOu54M8Y.cjs +0 -2
  266. package/dist/stored-context-BOu54M8Y.cjs.map +0 -1
  267. package/dist/stored-context-CSttrAsw.js.map +0 -1
  268. package/dist/web-vitals-4pWACwaR.js.map +0 -1
  269. package/dist/web-vitals-__X7t4pj.cjs +0 -2
  270. package/dist/web-vitals-__X7t4pj.cjs.map +0 -1
  271. package/dist/worker-server-BokySIII.js +0 -94
@@ -1,9 +1,9 @@
1
- import { A as e, Fn as t, M as n, N as r, O as i, Wn as a, at as o, k as s, pn as c } from "./constants-BwJDXzj6.js";
2
- import { r as l } from "./journey-C93FTYcs.js";
3
- import { n as u, t as d } from "./remote-rules-Dq9xe7Qn.js";
4
- import { n as f, t as p } from "./log-record-DSt2P-Sr.js";
1
+ import { A as e, Gn as t, In as n, M as r, N as i, O as a, at as o, k as s, mn as c } from "./constants-CEHN6KuY.js";
2
+ import { r as l } from "./journey-Nu655gEO.js";
3
+ import { n as u, t as d } from "./remote-rules-DNK96vLa.js";
4
+ import { n as f, t as p } from "./log-record-B_nSqxoe.js";
5
5
  import { n as m } from "./guards-BlYGRK4l.js";
6
- import { i as h } from "./identity-BgtHyY4u.js";
6
+ import { i as h } from "./identity-Byh3gCdT.js";
7
7
  import { t as g } from "./openfin-Bxelt0yg.js";
8
8
  import { n as _, t as v } from "./fixed-window-Dq3MLUUv.js";
9
9
  import { t as y } from "./unref-DgHPQeWv.js";
@@ -16,21 +16,21 @@ var x = [
16
16
  ];
17
17
  function S(e) {
18
18
  if (typeof e != "object" || !e) return !1;
19
- let t = e;
20
- if (typeof t.from != "string" || !t.from || typeof t.t != "string") return !1;
21
- let n = (e) => typeof t[e] == "string";
22
- switch (t.t) {
23
- case r.hello: return n("tabId");
24
- case r.tab: return n("tabId") && (t.since === void 0 || Number.isFinite(t.since));
25
- case r.welcome: return n("to") && n("tabId") && (t.routingContextId === void 0 || n("routingContextId"));
26
- case r.journeyRequest:
27
- case r.samplingRequest: return !0;
28
- case r.securityContext: return n("id") && t.id !== "";
29
- case r.journey: return (t.to === void 0 || n("to")) && "journey" in t;
30
- case r.sampling: return n("to") && "rules" in t;
31
- case r.flushRequest: return n("id") && typeof t.timeoutMs == "number";
32
- case r.flushResult: return n("id") && "result" in t;
33
- case r.records: return Array.isArray(t.records) && (t.routingContextId === void 0 || n("routingContextId")) && t.records.every((e) => !f(e) || !p(e.severityText) ? !1 : !Array.isArray(e.attributes) && !Array.isArray(e.resource) && /^\d+$/.test(e.timeUnixNano) && (e.observedTimeUnixNano === void 0 || /^\d+$/.test(e.observedTimeUnixNano)) && typeof e.traceId == "string" && /^(?:[a-f\d]{32})?$/.test(e.traceId) && typeof e.spanId == "string" && /^(?:[a-f\d]{16})?$/.test(e.spanId) && Number.isInteger(e.traceFlags) && e.traceFlags >= 0 && e.traceFlags <= 255 && e.severityNumber === a[e.severityText]);
19
+ let n = e;
20
+ if (typeof n.from != "string" || !n.from || typeof n.t != "string") return !1;
21
+ let r = (e) => typeof n[e] == "string";
22
+ switch (n.t) {
23
+ case i.hello: return r("tabId");
24
+ case i.tab: return r("tabId") && (n.since === void 0 || Number.isFinite(n.since));
25
+ case i.welcome: return r("to") && r("tabId") && (n.routingContextId === void 0 || r("routingContextId"));
26
+ case i.journeyRequest:
27
+ case i.samplingRequest: return !0;
28
+ case i.securityContext: return r("id") && n.id !== "";
29
+ case i.journey: return (n.to === void 0 || r("to")) && "journey" in n;
30
+ case i.sampling: return r("to") && "rules" in n;
31
+ case i.flushRequest: return r("id") && typeof n.timeoutMs == "number";
32
+ case i.flushResult: return r("id") && "result" in n;
33
+ case i.records: return Array.isArray(n.records) && (n.routingContextId === void 0 || r("routingContextId")) && n.records.every((e) => !f(e) || !p(e.severityText) ? !1 : !Array.isArray(e.attributes) && !Array.isArray(e.resource) && /^\d+$/.test(e.timeUnixNano) && (e.observedTimeUnixNano === void 0 || /^\d+$/.test(e.observedTimeUnixNano)) && typeof e.traceId == "string" && /^(?:[a-f\d]{32})?$/.test(e.traceId) && typeof e.spanId == "string" && /^(?:[a-f\d]{16})?$/.test(e.spanId) && Number.isInteger(e.traceFlags) && e.traceFlags >= 0 && e.traceFlags <= 255 && e.severityNumber === t[e.severityText]);
34
34
  default: return !1;
35
35
  }
36
36
  }
@@ -55,7 +55,7 @@ function C(e) {
55
55
  // src/models/bus.ts
56
56
  function w(e) {
57
57
  return {
58
- p: n,
58
+ p: r,
59
59
  m: e
60
60
  };
61
61
  }
@@ -67,7 +67,7 @@ function T(e) {
67
67
  return typeof n.t == "string" ? n : null;
68
68
  }
69
69
  // src/bus/links.ts
70
- var E = Symbol.for(t), D = "null", O = "ui-observability/2";
70
+ var E = Symbol.for(n), D = "null", O = "ui-observability/2";
71
71
  function k(e, t) {
72
72
  return e === D ? `The bus ignored ${t} from a sandboxed frame. The frame has an opaque origin. Set bus.mode: "sender" in the frame. Add allow-same-origin to the sandbox attribute only for content that you trust.` : `The bus ignored ${t} from ${e}. If you own this origin, add it to bus.trustedOrigins.`;
73
73
  }
@@ -100,24 +100,24 @@ function N() {
100
100
  }
101
101
  function P(e, t) {
102
102
  if (typeof window > "u" || window.parent === window) return null;
103
- let r;
103
+ let n;
104
104
  try {
105
- r = window.parent[E];
105
+ n = window.parent[E];
106
106
  } catch {
107
107
  return null;
108
108
  }
109
- if (typeof r?.busAccept != "function") return null;
110
- let i = r.protocol, a = r.busCanAccept, o = typeof a == "function", s = i === void 0 && o ? O : i;
109
+ if (typeof n?.busAccept != "function") return null;
110
+ let i = n.protocol, a = n.busCanAccept, o = typeof a == "function", s = i === void 0 && o ? O : i;
111
111
  if (s !== "ui-observability/2") {
112
112
  let e = typeof s == "string" ? s.slice(0, 48) : "none";
113
113
  return t.report("bus.protocol_mismatch", "The same-origin parent runtime uses another bus protocol. This context tries a message link instead of a direct call.", {
114
114
  found: e,
115
- own: n
115
+ own: r
116
116
  }), null;
117
117
  }
118
118
  let c = N();
119
- if (o && !a.call(r, window, c)) return null;
120
- let l = r, u = !0;
119
+ if (o && !a.call(n, window, c)) return null;
120
+ let l = n, u = !0;
121
121
  return {
122
122
  kind: "direct",
123
123
  post(n) {
@@ -238,39 +238,47 @@ function R(e, t, n, r) {
238
238
  let i = g()?.InterApplicationBus;
239
239
  if (!i) return null;
240
240
  if (!t) return r.report("openfin.unavailable", "OpenFin gives no application uuid. The InterApplicationBus link stays closed."), null;
241
- let a = `${e}.${t}`;
242
- return r.guardAsync("bus.send_failed", "The InterApplicationBus.subscribe call failed.", () => i.subscribe({ uuid: t }, a, (e, t, r) => {
241
+ let a = `${e}.${t}`, o = { uuid: t }, s = (e, t, r) => {
243
242
  let i = T(e);
244
243
  i && n(i, {
245
244
  link: "openfin",
246
245
  origin: "openfin",
247
246
  peer: t && r ? `${t}:${r}` : void 0
248
247
  });
249
- })), {
248
+ };
249
+ return r.guardAsync("bus.send_failed", "The InterApplicationBus.subscribe call failed.", () => i.subscribe(o, a, s)), {
250
250
  kind: "openfin",
251
251
  post(e) {
252
- r.guardAsync("bus.send_failed", "The InterApplicationBus.publish call failed.", () => i.publish(a, w(e)));
252
+ r.guardAsync("bus.send_failed", "The InterApplicationBus.send call failed.", () => i.send(o, a, w(e)));
253
253
  },
254
- close() {}
254
+ close() {
255
+ r.guardAsync("bus.send_failed", "The InterApplicationBus.unsubscribe call failed.", async () => {
256
+ await i.unsubscribe?.(o, a, s);
257
+ });
258
+ }
255
259
  };
256
260
  }
257
261
  function z(e, t) {
258
262
  let n = globalThis, r = n.postMessage;
259
- return n.WorkerGlobalScope === void 0 || !r ? null : (n.addEventListener?.("message", (t) => {
263
+ if (n.WorkerGlobalScope === void 0 || !r) return null;
264
+ let i = (t) => {
260
265
  let n = T(t.data);
261
266
  n && e(n, {
262
267
  link: "owner",
263
268
  origin: "same-origin"
264
269
  });
265
- }), {
270
+ };
271
+ return n.addEventListener?.("message", i), {
266
272
  kind: "owner",
267
273
  post(e) {
268
274
  t.guard("bus.send_failed", "The postMessage call of the worker failed.", () => {
269
275
  r(w(e));
270
276
  });
271
277
  },
272
- close() {}
273
- });
278
+ close() {
279
+ n.removeEventListener?.("message", i);
280
+ }
281
+ };
274
282
  }
275
283
  function B(e, t, n) {
276
284
  let r = (n) => {
@@ -304,7 +312,7 @@ var V = {
304
312
  ], U = class {
305
313
  mayPost(e, t) {
306
314
  let n = this.sources.get(t)?.permissions;
307
- return n ? e.t === r.journey ? n.includes("journey:read") : e.t === r.journeyRequest ? n.includes("journey:write") : e.t !== r.sampling || n.includes("sampling:read") : this.config.bus.sourcePolicy === "trusted-origin";
315
+ return n ? e.t === i.journey ? n.includes("journey:read") : e.t === i.journeyRequest ? n.includes("journey:write") : e.t !== i.sampling || n.includes("sampling:read") : this.config.bus.sourcePolicy === "trusted-origin";
308
316
  }
309
317
  registerFrame(e, t) {
310
318
  let n = typeof HTMLIFrameElement > "u" ? void 0 : HTMLIFrameElement, r = n && e instanceof n ? e.contentWindow : e;
@@ -330,7 +338,7 @@ var V = {
330
338
  }
331
339
  passContext(e) {
332
340
  let t = {
333
- t: r.securityContext,
341
+ t: i.securityContext,
334
342
  from: this.contextId,
335
343
  id: this.config.securityContext.id
336
344
  };
@@ -354,7 +362,7 @@ var V = {
354
362
  this.directReplies.set(e, new WeakRef(t));
355
363
  }
356
364
  constructor(e, t, n, r, i, a, o = V) {
357
- b(this, "config", void 0), b(this, "diagnostics", void 0), b(this, "platform", void 0), b(this, "contextId", void 0), b(this, "tabId", void 0), b(this, "handlers", void 0), b(this, "handshakeOptions", void 0), b(this, "sources", /* @__PURE__ */ new Map()), b(this, "rates", /* @__PURE__ */ new WeakMap()), b(this, "channelRates", /* @__PURE__ */ new Map()), b(this, "directReplies", /* @__PURE__ */ new Map()), b(this, "role", "sender"), b(this, "upstream", null), b(this, "links", []), b(this, "openFinLink", null), b(this, "isOpenFinProvider", !1), b(this, "rulesPoll", void 0), b(this, "destroyed", !1), b(this, "ownerId", null), b(this, "ownerPeer", void 0), b(this, "awaitingWelcome", null), b(this, "flushAnswers", /* @__PURE__ */ new Map()), b(this, "flushQueue", []), b(this, "flushing", !1), b(this, "flushedAt", 0), b(this, "since", void 0), b(this, "receive", (e, t) => {
365
+ b(this, "config", void 0), b(this, "diagnostics", void 0), b(this, "platform", void 0), b(this, "contextId", void 0), b(this, "tabId", void 0), b(this, "handlers", void 0), b(this, "handshakeOptions", void 0), b(this, "sources", /* @__PURE__ */ new Map()), b(this, "rates", /* @__PURE__ */ new WeakMap()), b(this, "channelRates", /* @__PURE__ */ new Map()), b(this, "directReplies", /* @__PURE__ */ new Map()), b(this, "role", "sender"), b(this, "upstream", null), b(this, "links", []), b(this, "openFinLink", null), b(this, "isOpenFinProvider", !1), b(this, "rulesPoll", void 0), b(this, "destroyed", !1), b(this, "ownerId", null), b(this, "ownerPeer", void 0), b(this, "handshakeLink", null), b(this, "awaitingWelcome", null), b(this, "flushAnswers", /* @__PURE__ */ new Map()), b(this, "flushQueue", []), b(this, "flushing", !1), b(this, "flushedAt", 0), b(this, "since", void 0), b(this, "receive", (e, t) => {
358
366
  let n = t.link === "children" || t.link === "worker";
359
367
  this.acceptsMessage(e, t, n) && this.routeMessage(e, t);
360
368
  }), this.config = e, this.diagnostics = t, this.platform = n, this.contextId = r, this.tabId = i, this.handlers = a, this.handshakeOptions = o;
@@ -376,19 +384,21 @@ var V = {
376
384
  }), this.announce(), this.role;
377
385
  let n = this.candidateUpstream();
378
386
  if (!n) return this.role = "sender", this.diagnostics.report("bus.role_resolved", "No owner exists. This context sends its own records.", { role: "sender" }), this.announce(), this.role;
379
- let r = this.orphanPolicy() === "retry" ? this.handshakeOptions.maxAttempts : 1, i = !1;
380
- for (let e = 0; e < r && !i; e++) i = await this.handshake(n);
381
- return this.role = i ? "forwarder" : "sender", this.upstream = i ? n : null, i || (n !== this.openFinLink && n.close(), this.diagnostics.report("bus.handshake_timeout", `No owner answered after ${String(r)} attempt(s) of ${String(this.handshakeOptions.timeoutMs)} ms. This context becomes the sender.`, {
387
+ let r = this.orphanPolicy() === "retry" ? this.handshakeOptions.maxAttempts : 1;
388
+ this.handshakeLink = n;
389
+ let i = !1;
390
+ for (let e = 0; e < r && !i && !this.destroyed; e++) i = await this.handshake(n);
391
+ return this.handshakeLink = null, this.destroyed || (this.role = i ? "forwarder" : "sender", this.upstream = i ? n : null, i || (n !== this.openFinLink && n.close(), this.diagnostics.report("bus.handshake_timeout", `No owner answered after ${String(r)} attempt(s) of ${String(this.handshakeOptions.timeoutMs)} ms. This context becomes the sender.`, {
382
392
  via: n.kind,
383
393
  crossOrigin: this.isCrossOriginFrame()
384
394
  })), this.diagnostics.report("bus.role_resolved", `The bus role is ${this.role}.`, {
385
395
  role: this.role,
386
396
  via: i ? n.kind : "none"
387
- }), this.announce(), this.role;
397
+ }), this.announce()), this.role;
388
398
  }
389
399
  sendRecords(e) {
390
- let { maxRecordsPerMessage: t, maxMessageBytes: n } = this.config.bus, i = new TextEncoder(), a = (e) => n === null ? 0 : i.encode(JSON.stringify(e)).length, o = (e) => ({
391
- t: r.records,
400
+ let { maxRecordsPerMessage: t, maxMessageBytes: n } = this.config.bus, r = new TextEncoder(), a = (e) => n === null ? 0 : r.encode(JSON.stringify(e)).length, o = (e) => ({
401
+ t: i.records,
392
402
  from: this.contextId,
393
403
  records: e,
394
404
  routingContextId: this.config.securityContext.id || void 0
@@ -407,37 +417,37 @@ var V = {
407
417
  async requestFlush(e, t) {
408
418
  let { upstream: n } = this;
409
419
  if (!n) return null;
410
- let i = h(this.diagnostics), a, o = new Promise((e) => {
420
+ let r = h(this.diagnostics), a, o = new Promise((e) => {
411
421
  a = e;
412
422
  });
413
- this.flushAnswers.set(i, a), n.post({
414
- t: r.flushRequest,
423
+ this.flushAnswers.set(r, a), n.post({
424
+ t: i.flushRequest,
415
425
  from: this.contextId,
416
- id: i,
426
+ id: r,
417
427
  timeoutMs: e
418
428
  });
419
429
  try {
420
430
  return await Promise.race([o, t.then(() => null)]);
421
431
  } finally {
422
- this.flushAnswers.delete(i);
432
+ this.flushAnswers.delete(r);
423
433
  }
424
434
  }
425
435
  acceptDirect(e, t, n) {
426
- let i = {
436
+ let r = {
427
437
  link: "direct",
428
438
  origin: "same-origin",
429
439
  peer: n
430
440
  }, a = {
431
- ...i,
441
+ ...r,
432
442
  reply: (e) => {
433
- t(e, i);
443
+ t(e, r);
434
444
  }
435
445
  };
436
- this.acceptsMessage(e, a, !0) && e.from !== this.contextId && (n && this.keepDirectReply(n, t), e.t === r.samplingRequest ? t(this.rulesAnswer(e.from), i) : (e.t === r.records && !this.awaitingWelcome && e.routingContextId !== this.config.securityContext.id && t({
437
- t: r.securityContext,
446
+ this.acceptsMessage(e, a, !0) && e.from !== this.contextId && (n && this.keepDirectReply(n, t), e.t === i.samplingRequest ? t(this.rulesAnswer(e.from), r) : (e.t === i.records && !this.awaitingWelcome && e.routingContextId !== this.config.securityContext.id && t({
447
+ t: i.securityContext,
438
448
  from: this.contextId,
439
449
  id: this.config.securityContext.id
440
- }, i), this.routeMessage(e, a)));
450
+ }, r), this.routeMessage(e, a)));
441
451
  }
442
452
  attachWorker(e, t = {}) {
443
453
  let n = {
@@ -466,7 +476,7 @@ var V = {
466
476
  }
467
477
  broadcastJourney(e) {
468
478
  this.postJourney({
469
- t: r.journey,
479
+ t: i.journey,
470
480
  from: this.contextId,
471
481
  journey: e
472
482
  });
@@ -474,7 +484,7 @@ var V = {
474
484
  destroy() {
475
485
  this.sources.clear(), this.directReplies.clear(), this.flushQueue = [], this.destroyed = !0, clearInterval(this.rulesPoll), this.rulesPoll = void 0;
476
486
  for (let e of this.allLinks()) e.close();
477
- this.links.length = 0, this.upstream = null, this.ownerId = null, this.openFinLink = null;
487
+ this.handshakeLink && this.handshakeLink !== this.openFinLink && this.handshakeLink.close(), this.awaitingWelcome?.settle(!1), this.links.length = 0, this.upstream = null, this.ownerId = null, this.openFinLink = null;
478
488
  }
479
489
  allLinks() {
480
490
  return !this.upstream || this.links.includes(this.upstream) ? this.links : [...this.links, this.upstream];
@@ -496,8 +506,8 @@ var V = {
496
506
  return r === "journey_denied" ? (this.diagnostics.count("bus.journey_denied"), !1) : (r || this.diagnostics.count("bus.rejected_message"), r);
497
507
  }
498
508
  passesChecks(e, t, n) {
499
- let { bus: i } = this.config, a = typeof t.peer == "object" ? this.sources.get(t.peer) : void 0;
500
- if (n && i.sourcePolicy === "registered" && !a) return !1;
509
+ let { bus: r } = this.config, a = typeof t.peer == "object" ? this.sources.get(t.peer) : void 0;
510
+ if (n && r.sourcePolicy === "registered" && !a) return !1;
501
511
  let o = typeof t.peer == "object" ? t.peer : void 0, s = typeof t.peer == "string" ? t.peer : t.link, c = Date.now(), l = (o ? this.rates.get(o) : this.channelRates.get(s)) ?? {
502
512
  start: c,
503
513
  count: 0
@@ -508,30 +518,30 @@ var V = {
508
518
  if (this.channelRates.size >= 256 && !this.channelRates.has(s)) return !1;
509
519
  this.channelRates.set(s, l);
510
520
  }
511
- if (!v(l, i.maxMessagesPerSecond ?? Infinity, 1e3)) return !1;
521
+ if (!v(l, r.maxMessagesPerSecond ?? Infinity, 1e3)) return !1;
512
522
  let u = JSON.stringify(e, (e, t) => {
513
523
  if (typeof t == "number" && !Number.isFinite(t)) throw Error("Non-finite value");
514
524
  return t;
515
525
  });
516
- if (i.maxMessageBytes !== null && new TextEncoder().encode(u).length > i.maxMessageBytes || !S(e) || e.t === r.records && i.maxRecordsPerMessage !== null && e.records.length > i.maxRecordsPerMessage) return !1;
526
+ if (r.maxMessageBytes !== null && new TextEncoder().encode(u).length > r.maxMessageBytes || !S(e) || e.t === i.records && r.maxRecordsPerMessage !== null && e.records.length > r.maxRecordsPerMessage) return !1;
517
527
  if (a) {
518
- let t = e.t === r.records || e.t === r.flushRequest ? "records" : e.t === r.journey ? "journey:write" : e.t === r.journeyRequest ? "journey:read" : e.t === r.samplingRequest ? "sampling:read" : void 0;
528
+ let t = e.t === i.records || e.t === i.flushRequest ? "records" : e.t === i.journey ? "journey:write" : e.t === i.journeyRequest ? "journey:read" : e.t === i.samplingRequest ? "sampling:read" : void 0;
519
529
  if (t && !a.permissions?.includes(t)) return t === "journey:read" && "journey_denied";
520
530
  }
521
- return n && (e.t === r.sampling || e.t === r.securityContext || e.t === r.flushResult) || t.link === "broadcast" && e.t === r.flushRequest ? !1 : i.sourcePolicy !== "registered" || t.link !== "broadcast" || e.t !== r.records;
531
+ return n && (e.t === i.sampling || e.t === i.securityContext || e.t === i.flushResult) || t.link === "broadcast" && e.t === i.flushRequest ? !1 : r.sourcePolicy !== "registered" || t.link !== "broadcast" || e.t !== i.records;
522
532
  }
523
533
  routeMessage(e, t) {
524
534
  if (e.from !== this.contextId) switch (e.t) {
525
- case r.hello:
535
+ case i.hello:
526
536
  this.canOwn(t.link) && this.answer(t, {
527
- t: r.welcome,
537
+ t: i.welcome,
528
538
  from: this.contextId,
529
539
  to: e.from,
530
540
  tabId: this.tabId,
531
541
  routingContextId: this.awaitingWelcome ? void 0 : this.config.securityContext.id || void 0
532
542
  });
533
543
  break;
534
- case r.welcome:
544
+ case i.welcome:
535
545
  if (e.to !== this.contextId) break;
536
546
  if (this.awaitingWelcome?.link === t.link || this.upstream?.kind === t.link && this.ownerId === null) {
537
547
  this.ownerId = e.from, this.ownerPeer = t.peer;
@@ -540,42 +550,42 @@ var V = {
540
550
  this.config.securityContext.id !== n && this.passContext(!1), this.awaitingWelcome?.settle(!0);
541
551
  }
542
552
  break;
543
- case r.records:
553
+ case i.records:
544
554
  if (this.config.securityContext.isolation && this.config.securityContext.id && e.routingContextId !== this.config.securityContext.id) {
545
555
  this.diagnostics.count("security.context_mismatch");
546
556
  break;
547
557
  }
548
558
  this.role === "sender" || this.handlers.paused?.() && this.canRelay(t.link) ? this.handlers.onRecords(e.records) : this.upstream && this.canRelay(t.link) && this.upstream.post(e);
549
559
  break;
550
- case r.securityContext:
560
+ case i.securityContext:
551
561
  t.link === this.upstream?.kind && this.ownerId === e.from && this.ownerPeer === t.peer && this.handlers.onSecurityContext?.(e.id) !== !1 && this.rotateContext();
552
562
  break;
553
- case r.journey:
563
+ case i.journey:
554
564
  this.acceptsJourney(e, t) && this.applyJourney(e.journey);
555
565
  break;
556
- case r.journeyRequest: {
566
+ case i.journeyRequest: {
557
567
  let n = this.handlers.onJourneyRequest();
558
568
  n && this.journeyLink(t.link) && this.answer(t, {
559
- t: r.journey,
569
+ t: i.journey,
560
570
  from: this.contextId,
561
571
  to: e.from,
562
572
  journey: n
563
573
  });
564
574
  break;
565
575
  }
566
- case r.samplingRequest:
576
+ case i.samplingRequest:
567
577
  (this.role === "forwarder" ? t.link !== this.upstream?.kind : this.canOwn(t.link)) && this.answer(t, this.rulesAnswer(e.from));
568
578
  break;
569
- case r.sampling:
579
+ case i.sampling:
570
580
  this.acceptsRules(e.to, t) && this.applyRules(e.rules);
571
581
  break;
572
- case r.flushRequest:
582
+ case i.flushRequest:
573
583
  (this.role === "sender" || this.canRelay(t.link)) && this.queueFlush(e, t);
574
584
  break;
575
- case r.flushResult:
585
+ case i.flushResult:
576
586
  this.settleFlush(e, t);
577
587
  break;
578
- case r.tab: t.link === "broadcast" && e.tabId === this.tabId && this.settleTabClaim(e);
588
+ case i.tab: t.link === "broadcast" && e.tabId === this.tabId && this.settleTabClaim(e);
579
589
  }
580
590
  }
581
591
  settleTabClaim(e) {
@@ -583,8 +593,8 @@ var V = {
583
593
  t === void 0 || this.since === void 0 || t === this.since ? this.contextId > e.from && this.handlers.onTabConflict() : t < this.since ? this.handlers.onTabConflict() : this.postOver("broadcast", this.tabClaim());
584
594
  }
585
595
  queueFlush(e, t) {
586
- let n = t.peer ?? t.link, i = this.flushQueue.filter((e) => e.source === n).length;
587
- if (this.flushQueue.length >= 100 || i >= 4) {
596
+ let n = t.peer ?? t.link, r = this.flushQueue.filter((e) => e.source === n).length;
597
+ if (this.flushQueue.length >= 100 || r >= 4) {
588
598
  this.diagnostics.count("bus.rejected_message");
589
599
  return;
590
600
  }
@@ -594,7 +604,7 @@ var V = {
594
604
  ends: Date.now() + a,
595
605
  answer: (n) => {
596
606
  this.answer(t, {
597
- t: r.flushResult,
607
+ t: i.flushResult,
598
608
  from: this.contextId,
599
609
  id: e.id,
600
610
  result: n
@@ -667,7 +677,7 @@ var V = {
667
677
  let e = (e) => {
668
678
  e && this.links.push(e);
669
679
  };
670
- this.platform.isWorker || this.ensureChildrenLink(), this.platform.isTopLevelDocument && e(L(i, this.receive, this.diagnostics)), (this.platform.platform === "openfin" || this.platform.platform === "openfin_web") && e(this.ensureOpenFinLink());
680
+ this.platform.isWorker || this.ensureChildrenLink(), this.platform.isTopLevelDocument && e(L(a, this.receive, this.diagnostics)), (this.platform.platform === "openfin" || this.platform.platform === "openfin_web") && e(this.ensureOpenFinLink());
671
681
  }
672
682
  ensureChildrenLink() {
673
683
  if (this.links.some((e) => e.kind === "children")) return;
@@ -683,22 +693,22 @@ var V = {
683
693
  e && this.links.push(e);
684
694
  }
685
695
  ensureOpenFinLink() {
686
- return this.openFinLink ??= R(i, this.platform.openfinUuid, this.receive, this.diagnostics), this.openFinLink;
696
+ return this.openFinLink ??= R(a, this.platform.openfinUuid, this.receive, this.diagnostics), this.openFinLink;
687
697
  }
688
698
  handshake(e) {
689
699
  return new Promise((t) => {
690
- let n = !1, i = (e) => {
700
+ let n = !1, r = (e) => {
691
701
  n || (n = !0, this.awaitingWelcome = null, clearTimeout(a), t(e));
692
702
  };
693
703
  this.awaitingWelcome = {
694
704
  link: e.kind,
695
- settle: i
705
+ settle: r
696
706
  };
697
707
  let a = setTimeout(() => {
698
- i(!1);
708
+ r(!1);
699
709
  }, this.handshakeOptions.timeoutMs);
700
710
  y(a), e.post({
701
- t: r.hello,
711
+ t: i.hello,
702
712
  from: this.contextId,
703
713
  tabId: this.tabId
704
714
  });
@@ -706,7 +716,7 @@ var V = {
706
716
  }
707
717
  tabClaim() {
708
718
  return {
709
- t: r.tab,
719
+ t: i.tab,
710
720
  from: this.contextId,
711
721
  tabId: this.tabId,
712
722
  ...this.since === void 0 ? {} : { since: this.since }
@@ -714,11 +724,11 @@ var V = {
714
724
  }
715
725
  announce() {
716
726
  this.postOver("broadcast", this.tabClaim()), this.upstream && this.ownerId === null && this.upstream.post({
717
- t: r.hello,
727
+ t: i.hello,
718
728
  from: this.contextId,
719
729
  tabId: this.tabId
720
730
  }), this.postJourney({
721
- t: r.journeyRequest,
731
+ t: i.journeyRequest,
722
732
  from: this.contextId
723
733
  }), this.pollRules(), this.passContext(!1);
724
734
  }
@@ -749,7 +759,7 @@ var V = {
749
759
  rulesAnswer(e) {
750
760
  let t = this.handlers.remote.sampling?.wire() ?? null;
751
761
  return {
752
- t: r.sampling,
762
+ t: i.sampling,
753
763
  from: this.contextId,
754
764
  to: e,
755
765
  rules: t
@@ -776,7 +786,7 @@ var V = {
776
786
  if (this.destroyed || this.role !== "forwarder" || !e) return;
777
787
  let t = () => {
778
788
  this.config.sampling.remote && e.post({
779
- t: r.samplingRequest,
789
+ t: i.samplingRequest,
780
790
  from: this.contextId
781
791
  });
782
792
  };
@@ -785,4 +795,4 @@ var V = {
785
795
  };
786
796
  export { U as Bus };
787
797
 
788
- //# sourceMappingURL=bus-dw7T92sO.js.map
798
+ //# sourceMappingURL=bus-DyNafxZN.js.map