@openclaw/matrix 2026.7.2-beta.5 → 2026.7.33

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 (1206) hide show
  1. package/README.md +1 -1
  2. package/dist/.setup/account-selection-BOQeTqax.mjs +159 -0
  3. package/dist/.setup/approval-handler.runtime-CEXm9_-p.mjs +378 -0
  4. package/dist/.setup/approval-ids-DdFnDB3h.mjs +7 -0
  5. package/dist/.setup/approval-reaction-auth-CREvd7S7.mjs +27 -0
  6. package/dist/.setup/approval-reactions-Cltyp8nL.mjs +113 -0
  7. package/dist/.setup/async-lock-BcLS4KOc.mjs +19 -0
  8. package/dist/.setup/channel-an4umty1.mjs +1387 -0
  9. package/dist/.setup/channel.runtime-GHcIBJ7H.mjs +258 -0
  10. package/dist/.setup/cli-B3WYmv5U.mjs +1347 -0
  11. package/dist/.setup/cli-metadata-RUKCn0wJ.mjs +22 -0
  12. package/dist/.setup/client-Ct0bUHCo.mjs +25 -0
  13. package/dist/.setup/client-DFBQtzCe.mjs +916 -0
  14. package/dist/.setup/client-bootstrap-Be8jvNle.mjs +74 -0
  15. package/dist/.setup/config-schema-D9J_vUF6.mjs +321 -0
  16. package/dist/.setup/credentials-BhZlA0kL.mjs +56 -0
  17. package/dist/.setup/credentials-read-CRHg6XPm.mjs +114 -0
  18. package/dist/.setup/credentials-write.runtime-dWuLafsk.mjs +14 -0
  19. package/dist/.setup/crypto-runtime-D-cZa8P0.mjs +1184 -0
  20. package/dist/.setup/crypto-state-store-B43k3z3W.mjs +352 -0
  21. package/dist/.setup/deps-Dy6yreL4.mjs +236 -0
  22. package/dist/.setup/device-health-D4LBxuPq.mjs +16 -0
  23. package/dist/.setup/directory-live-BTEYxMwy.mjs +151 -0
  24. package/dist/.setup/doctor-BGnvMzOR.mjs +169 -0
  25. package/dist/.setup/doctor-contract-DNJw0fdq.mjs +246 -0
  26. package/dist/.setup/draft-stream-C-_OhpE8.mjs +146 -0
  27. package/dist/.setup/encryption-guidance-CpuuwmjL.mjs +16 -0
  28. package/dist/.setup/env-auth-CYJL1jNl.mjs +63 -0
  29. package/dist/.setup/env-vars-KzaYveuy.mjs +63 -0
  30. package/dist/.setup/exec-approval-resolver-f9j6staN.mjs +15 -0
  31. package/dist/.setup/file-sync-store-DU0cnYAz.mjs +420 -0
  32. package/dist/.setup/http-client-C954In2D.mjs +390 -0
  33. package/dist/.setup/idb-persistence-_HKTXkVC.mjs +230 -0
  34. package/dist/.setup/idb-persistence-lock-B3fZXyF_.mjs +32 -0
  35. package/dist/.setup/legacy-crypto-inspector-Byp8LCys.mjs +42 -0
  36. package/dist/.setup/legacy-crypto-restore-YQVoK1B2.mjs +93 -0
  37. package/dist/.setup/logger-DpoogOgz.mjs +78 -0
  38. package/dist/.setup/logging-CgxQOJJP.mjs +92 -0
  39. package/dist/.setup/matrix-migration.runtime-BDH5c3fN.mjs +530 -0
  40. package/dist/.setup/media-text-Cib-dxkn.mjs +146 -0
  41. package/dist/.setup/messages-D4DYGHYX.mjs +202 -0
  42. package/dist/.setup/migration-snapshot-backup-CpgYhiUp.mjs +70 -0
  43. package/dist/.setup/migration-snapshot.runtime-O8qkMVaC.mjs +2 -0
  44. package/dist/.setup/monitor-DNcW_oAN.mjs +4945 -0
  45. package/dist/.setup/probe.runtime-CMPh0mFk.mjs +2 -0
  46. package/dist/.setup/profile-update-DzOL3Wiw.mjs +69 -0
  47. package/dist/.setup/reaction-events-BcvgXxHb.mjs +114 -0
  48. package/dist/.setup/resolve-targets-Bq80X9Sn.mjs +140 -0
  49. package/dist/.setup/resolver.runtime-CeBHR9-T.mjs +5 -0
  50. package/dist/.setup/runtime-api-CEsWNdil.mjs +21 -0
  51. package/dist/.setup/runtime-setter-api-DGMubGUq.mjs +3 -0
  52. package/dist/.setup/sdk-He1quVAq.mjs +1604 -0
  53. package/dist/.setup/secret-contract-api-CiTJ7pd5.mjs +3 -0
  54. package/dist/.setup/secret-contract-phPvlNfV.mjs +120 -0
  55. package/dist/.setup/send-CGgl0uTn.mjs +1550 -0
  56. package/dist/.setup/setup-bootstrap-DUXBC8X2.mjs +62 -0
  57. package/dist/.setup/setup-core-bhdcEo7v.mjs +699 -0
  58. package/dist/.setup/setup-plugin-api-CAwZ_Bi7.mjs +43 -0
  59. package/dist/.setup/setup-plugin-api-DIFVsOs3.mjs +2 -0
  60. package/dist/.setup/setup-surface-05_G-MnT.mjs +544 -0
  61. package/dist/.setup/startup-verification-BTwIGu1J.mjs +233 -0
  62. package/dist/.setup/storage-NGZq5zet.mjs +432 -0
  63. package/dist/.setup/storage-paths-BWo_ZEMC.mjs +52 -0
  64. package/dist/.setup/subagent-hooks-BSWPJEmo.mjs +143 -0
  65. package/dist/.setup/thread-binding-api-B7UaOoKv.mjs +17 -0
  66. package/dist/.setup/thread-bindings-DqmjG2on.mjs +436 -0
  67. package/dist/.setup/tool-actions.runtime-CXDLk2jg.mjs +601 -0
  68. package/dist/.setup/verification-DeWOtZJr.mjs +346 -0
  69. package/dist/api.js +9 -9
  70. package/dist/auth-presence.js +21 -13
  71. package/dist/channel-plugin-api.js +1 -1
  72. package/dist/cli-metadata.js +1 -1
  73. package/dist/contract-api.js +2 -2
  74. package/dist/doctor-contract-api.js +99 -524
  75. package/dist/helper-api.js +4 -4
  76. package/dist/index.js +1 -1
  77. package/dist/plugin-entry.handlers.runtime.js +2 -2
  78. package/dist/runtime-api.js +8 -8
  79. package/dist/runtime-heavy-api.js +3 -0
  80. package/dist/runtime-setter-api.js +1 -1
  81. package/dist/secret-contract-api.js +1 -1
  82. package/dist/session-binding-contract-api.js +3 -3
  83. package/dist/setup-entry.js +4 -3
  84. package/dist/setup-plugin-api.js +1 -43
  85. package/dist/subagent-hooks-api.js +1 -1
  86. package/dist/thread-binding-api.js +1 -1
  87. package/dist/thread-bindings-runtime.js +1 -1
  88. package/node_modules/markdown-it/README.md +18 -294
  89. package/node_modules/markdown-it/bin/markdown-it.mjs +2 -2
  90. package/node_modules/markdown-it/dist/browser/markdown-it.esm.min.mjs +3013 -0
  91. package/node_modules/markdown-it/dist/browser/markdown-it.esm.min.mjs.map +1 -0
  92. package/node_modules/markdown-it/dist/browser/markdown-it.umd.min.js +14 -0
  93. package/node_modules/markdown-it/dist/browser/markdown-it.umd.min.js.map +1 -0
  94. package/node_modules/markdown-it/dist/markdown-it.cjs.js +4420 -0
  95. package/node_modules/markdown-it/dist/markdown-it.cjs.js.map +1 -0
  96. package/node_modules/markdown-it/dist/markdown-it.d.cts +19 -0
  97. package/node_modules/markdown-it/dist/markdown-it.d.mts +950 -0
  98. package/node_modules/markdown-it/dist/markdown-it.mjs +3880 -0
  99. package/node_modules/markdown-it/dist/markdown-it.mjs.map +1 -0
  100. package/node_modules/markdown-it/node_modules/argparse/LICENSE +47 -0
  101. package/node_modules/markdown-it/node_modules/argparse/README.md +89 -0
  102. package/node_modules/markdown-it/node_modules/argparse/lib/_colorize.js +72 -0
  103. package/node_modules/markdown-it/node_modules/argparse/lib/argparse.d.ts +292 -0
  104. package/node_modules/markdown-it/node_modules/argparse/lib/argparse.js +3820 -0
  105. package/node_modules/markdown-it/node_modules/argparse/lib/difflib.js +190 -0
  106. package/node_modules/markdown-it/node_modules/argparse/lib/sub.js +67 -0
  107. package/node_modules/markdown-it/node_modules/argparse/lib/textwrap.js +440 -0
  108. package/node_modules/markdown-it/node_modules/argparse/package.json +38 -0
  109. package/node_modules/markdown-it/node_modules/entities/dist/decode-codepoint.d.ts +8 -0
  110. package/node_modules/markdown-it/node_modules/entities/dist/decode-codepoint.d.ts.map +1 -0
  111. package/node_modules/markdown-it/node_modules/entities/dist/decode-codepoint.js +46 -0
  112. package/node_modules/markdown-it/node_modules/entities/dist/decode-codepoint.js.map +1 -0
  113. package/node_modules/markdown-it/node_modules/entities/dist/decode.d.ts +194 -0
  114. package/node_modules/markdown-it/node_modules/entities/dist/decode.d.ts.map +1 -0
  115. package/node_modules/markdown-it/node_modules/entities/dist/decode.js +544 -0
  116. package/node_modules/markdown-it/node_modules/entities/dist/decode.js.map +1 -0
  117. package/node_modules/markdown-it/node_modules/entities/dist/encode.d.ts +24 -0
  118. package/node_modules/markdown-it/node_modules/entities/dist/encode.d.ts.map +1 -0
  119. package/node_modules/markdown-it/node_modules/entities/dist/encode.js +90 -0
  120. package/node_modules/markdown-it/node_modules/entities/dist/encode.js.map +1 -0
  121. package/node_modules/markdown-it/node_modules/entities/dist/escape.d.ts +48 -0
  122. package/node_modules/markdown-it/node_modules/entities/dist/escape.d.ts.map +1 -0
  123. package/node_modules/markdown-it/node_modules/entities/dist/escape.js +132 -0
  124. package/node_modules/markdown-it/node_modules/entities/dist/escape.js.map +1 -0
  125. package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-html.d.ts +3 -0
  126. package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-html.d.ts.map +1 -0
  127. package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-html.js +5 -0
  128. package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-html.js.map +1 -0
  129. package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-xml.d.ts +3 -0
  130. package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-xml.d.ts.map +1 -0
  131. package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-xml.js +5 -0
  132. package/node_modules/markdown-it/node_modules/entities/dist/generated/decode-data-xml.js.map +1 -0
  133. package/node_modules/markdown-it/node_modules/entities/dist/generated/encode-html.d.ts +5 -0
  134. package/node_modules/markdown-it/node_modules/entities/dist/generated/encode-html.d.ts.map +1 -0
  135. package/node_modules/markdown-it/node_modules/entities/dist/generated/encode-html.js +12 -0
  136. package/node_modules/markdown-it/node_modules/entities/dist/generated/encode-html.js.map +1 -0
  137. package/node_modules/markdown-it/node_modules/entities/dist/index.d.ts +89 -0
  138. package/node_modules/markdown-it/node_modules/entities/dist/index.d.ts.map +1 -0
  139. package/node_modules/markdown-it/node_modules/entities/dist/index.js +91 -0
  140. package/node_modules/markdown-it/node_modules/entities/dist/index.js.map +1 -0
  141. package/node_modules/markdown-it/node_modules/entities/dist/internal/bin-trie-flags.d.ts +17 -0
  142. package/node_modules/markdown-it/node_modules/entities/dist/internal/bin-trie-flags.d.ts.map +1 -0
  143. package/node_modules/markdown-it/node_modules/entities/dist/internal/bin-trie-flags.js +18 -0
  144. package/node_modules/markdown-it/node_modules/entities/dist/internal/bin-trie-flags.js.map +1 -0
  145. package/node_modules/markdown-it/node_modules/entities/dist/internal/decode-shared.d.ts +7 -0
  146. package/node_modules/markdown-it/node_modules/entities/dist/internal/decode-shared.d.ts.map +1 -0
  147. package/node_modules/markdown-it/node_modules/entities/dist/internal/decode-shared.js +17 -0
  148. package/node_modules/markdown-it/node_modules/entities/dist/internal/decode-shared.js.map +1 -0
  149. package/node_modules/markdown-it/node_modules/entities/dist/internal/encode-shared.d.ts +33 -0
  150. package/node_modules/markdown-it/node_modules/entities/dist/internal/encode-shared.d.ts.map +1 -0
  151. package/node_modules/markdown-it/node_modules/entities/dist/internal/encode-shared.js +93 -0
  152. package/node_modules/markdown-it/node_modules/entities/dist/internal/encode-shared.js.map +1 -0
  153. package/node_modules/markdown-it/node_modules/entities/package.json +83 -0
  154. package/node_modules/markdown-it/node_modules/entities/readme.md +131 -0
  155. package/node_modules/markdown-it/node_modules/entities/src/decode-codepoint.ts +50 -0
  156. package/node_modules/markdown-it/node_modules/entities/src/decode.ts +671 -0
  157. package/node_modules/markdown-it/node_modules/entities/src/encode.ts +95 -0
  158. package/node_modules/markdown-it/node_modules/entities/src/escape.ts +160 -0
  159. package/node_modules/markdown-it/node_modules/entities/src/generated/decode-data-html.ts +7 -0
  160. package/node_modules/markdown-it/node_modules/entities/src/generated/decode-data-xml.ts +7 -0
  161. package/node_modules/markdown-it/node_modules/entities/src/generated/encode-html.ts +18 -0
  162. package/node_modules/markdown-it/node_modules/entities/src/index.ts +162 -0
  163. package/node_modules/markdown-it/node_modules/entities/src/internal/bin-trie-flags.ts +16 -0
  164. package/node_modules/markdown-it/node_modules/entities/src/internal/decode-shared.ts +18 -0
  165. package/node_modules/markdown-it/node_modules/entities/src/internal/encode-shared.ts +123 -0
  166. package/node_modules/markdown-it/node_modules/linkify-it/README.md +158 -0
  167. package/node_modules/markdown-it/node_modules/linkify-it/build/index.cjs.js +651 -0
  168. package/node_modules/markdown-it/node_modules/linkify-it/build/index.cjs.js.map +1 -0
  169. package/node_modules/markdown-it/node_modules/linkify-it/build/index.d.ts +236 -0
  170. package/node_modules/markdown-it/node_modules/linkify-it/build/index.mjs +538 -0
  171. package/node_modules/markdown-it/node_modules/linkify-it/build/index.mjs.map +1 -0
  172. package/node_modules/markdown-it/node_modules/linkify-it/package.json +66 -0
  173. package/node_modules/markdown-it/node_modules/mdurl/lib/index.d.ts +28 -0
  174. package/node_modules/markdown-it/node_modules/mdurl/package.json +43 -0
  175. package/node_modules/markdown-it/node_modules/uc.micro/README.md +31 -0
  176. package/node_modules/markdown-it/node_modules/uc.micro/build/index.cjs.js +15 -0
  177. package/node_modules/markdown-it/node_modules/uc.micro/build/index.d.ts +6 -0
  178. package/node_modules/markdown-it/node_modules/uc.micro/build/index.mjs +8 -0
  179. package/node_modules/markdown-it/node_modules/uc.micro/package.json +32 -0
  180. package/node_modules/markdown-it/package.json +47 -30
  181. package/node_modules/music-metadata/lib/common/Util.d.ts +1 -1
  182. package/node_modules/music-metadata/lib/common/Util.js +1 -7
  183. package/node_modules/music-metadata/lib/id3v2/FrameHeader.js +3 -23
  184. package/node_modules/music-metadata/lib/id3v2/FrameParser.js +2 -2
  185. package/node_modules/music-metadata/lib/id3v2/ID3v2Token.js +1 -1
  186. package/node_modules/music-metadata/lib/mp4/AtomToken.js +13 -38
  187. package/node_modules/music-metadata/lib/mpeg/MpegParser.js +1 -1
  188. package/node_modules/music-metadata/node_modules/content-type/LICENSE +22 -0
  189. package/node_modules/music-metadata/node_modules/content-type/README.md +69 -0
  190. package/node_modules/music-metadata/node_modules/content-type/dist/index.d.ts +26 -0
  191. package/node_modules/music-metadata/node_modules/content-type/dist/index.js +170 -0
  192. package/node_modules/music-metadata/node_modules/content-type/dist/index.js.map +1 -0
  193. package/node_modules/music-metadata/node_modules/content-type/package.json +52 -0
  194. package/node_modules/music-metadata/node_modules/debug/LICENSE +20 -0
  195. package/node_modules/music-metadata/node_modules/debug/README.md +481 -0
  196. package/node_modules/music-metadata/node_modules/debug/package.json +64 -0
  197. package/node_modules/music-metadata/node_modules/debug/src/browser.js +272 -0
  198. package/node_modules/music-metadata/node_modules/debug/src/common.js +292 -0
  199. package/node_modules/music-metadata/node_modules/debug/src/index.js +10 -0
  200. package/node_modules/music-metadata/node_modules/debug/src/node.js +263 -0
  201. package/node_modules/music-metadata/node_modules/ms/index.js +162 -0
  202. package/node_modules/music-metadata/node_modules/ms/license.md +21 -0
  203. package/node_modules/music-metadata/node_modules/ms/package.json +38 -0
  204. package/node_modules/music-metadata/node_modules/ms/readme.md +59 -0
  205. package/node_modules/music-metadata/package.json +6 -6
  206. package/node_modules/typebox/build/compile/validator.d.mts +4 -1
  207. package/node_modules/typebox/build/guard/guard.d.mts +1 -1
  208. package/node_modules/typebox/build/guard/guard.mjs +2 -5
  209. package/node_modules/typebox/build/guard/string.mjs +4 -16
  210. package/node_modules/typebox/build/schema/engine/_functions.mjs +15 -34
  211. package/node_modules/typebox/build/type/action/readonly_object.d.mts +0 -5
  212. package/node_modules/typebox/build/type/action/readonly_object.mjs +0 -8
  213. package/node_modules/typebox/build/typebox.d.mts +1 -1
  214. package/node_modules/typebox/build/typebox.mjs +1 -1
  215. package/node_modules/typebox/package.json +1 -1
  216. package/node_modules/typebox/readme.md +32 -29
  217. package/openclaw.plugin.json +145 -143
  218. package/package.json +30 -113
  219. package/dist/account-selection-kqquRzCf.js +0 -158
  220. package/dist/active-client-DXvz2gCo.js +0 -20
  221. package/dist/approval-handler.runtime-D1ibJgSk.js +0 -388
  222. package/dist/approval-ids-2OQj32-K.js +0 -7
  223. package/dist/approval-reaction-auth-CCAWWkbu.js +0 -27
  224. package/dist/approval-reactions-D-BxBK_L.js +0 -202
  225. package/dist/channel-Cmi248PA.js +0 -1344
  226. package/dist/channel.runtime-BaPXFRgT.js +0 -252
  227. package/dist/cli-0CNHkps5.js +0 -1365
  228. package/dist/cli-metadata-DnXxNCoj.js +0 -22
  229. package/dist/client-BFRg0kd4.js +0 -30
  230. package/dist/client-CitERujx.js +0 -25
  231. package/dist/client-bootstrap-CkAnkzB6.js +0 -110
  232. package/dist/config-schema-BShrVROw.js +0 -302
  233. package/dist/create-client-f-CkRllE.js +0 -61
  234. package/dist/credentials-W2EmwRhu.js +0 -65
  235. package/dist/credentials-read-DVmFCm7X.js +0 -77
  236. package/dist/credentials-write.runtime-Be9zNSUw.js +0 -14
  237. package/dist/crypto-runtime-D9_6J5tZ.js +0 -1138
  238. package/dist/deps-CcVJfvRM.js +0 -169
  239. package/dist/device-health-B4-YXtJR.js +0 -21
  240. package/dist/directory-live-YRgYDx2w.js +0 -150
  241. package/dist/doctor-CM8ijNpW.js +0 -64
  242. package/dist/doctor-contract-BMSJkkAE.js +0 -167
  243. package/dist/draft-stream-CIjafRr0.js +0 -146
  244. package/dist/encryption-guidance-CbEFe38F.js +0 -15
  245. package/dist/env-auth-CQsYbz-p.js +0 -63
  246. package/dist/env-vars-B0NxQnPk.js +0 -65
  247. package/dist/exec-approval-resolver-BCgqRtZS.js +0 -16
  248. package/dist/file-sync-store-DiiFsayX.js +0 -415
  249. package/dist/http-client-CycYxU9-.js +0 -370
  250. package/dist/idb-persistence-B6x7dMsF.js +0 -232
  251. package/dist/idb-persistence-lock-DAJ49nZX.js +0 -32
  252. package/dist/inbound-dedupe-CaBLblef.js +0 -48
  253. package/dist/logger-D0GCSDQq.js +0 -78
  254. package/dist/logging-DV-p52N0.js +0 -99
  255. package/dist/media-text-DlQC_k_K.js +0 -146
  256. package/dist/messages-Bf_s--M9.js +0 -202
  257. package/dist/monitor-s--XqoxF.js +0 -4653
  258. package/dist/probe.runtime-BJOvCHnZ.js +0 -3
  259. package/dist/profile-update-z3aM46KS.js +0 -68
  260. package/dist/reaction-events-DrK9Zua7.js +0 -164
  261. package/dist/record-shared-CWWx6fvI.js +0 -2
  262. package/dist/recovery-key-store-BNnHvXdk.js +0 -275
  263. package/dist/resolve-targets-nNMcrV3W.js +0 -140
  264. package/dist/resolver.runtime-BvaFlVLg.js +0 -5
  265. package/dist/room-info-CAFZ3Z9J.js +0 -87
  266. package/dist/route-DY6at4qJ.js +0 -161
  267. package/dist/runtime-api-D1xI_cvh.js +0 -21
  268. package/dist/sdk-UzPd8tst.js +0 -1273
  269. package/dist/secret-contract-M3hRmGO-.js +0 -95
  270. package/dist/send-C9Ssx-iV.js +0 -2069
  271. package/dist/setup-bootstrap-BBGpPKgy.js +0 -62
  272. package/dist/setup-core-a542Ernq.js +0 -772
  273. package/dist/setup-surface-BJrCI6KT.js +0 -542
  274. package/dist/shared-CUH5otj8.js +0 -663
  275. package/dist/startup-verification-wm3_i88s.js +0 -232
  276. package/dist/storage-BvAkgzvT.js +0 -685
  277. package/dist/storage-paths-gUmSydsW.js +0 -41
  278. package/dist/subagent-hooks-dkPAF6Et.js +0 -143
  279. package/dist/thread-binding-api-DRbBZlhS.js +0 -17
  280. package/dist/thread-bindings-D3RfVgAF.js +0 -436
  281. package/dist/tool-actions.runtime-Dh5ow2EK.js +0 -725
  282. package/dist/verification-ZdAXdmuh.js +0 -345
  283. package/node_modules/argparse/CHANGELOG.md +0 -216
  284. package/node_modules/argparse/LICENSE +0 -254
  285. package/node_modules/argparse/README.md +0 -84
  286. package/node_modules/argparse/argparse.js +0 -3707
  287. package/node_modules/argparse/lib/sub.js +0 -67
  288. package/node_modules/argparse/lib/textwrap.js +0 -440
  289. package/node_modules/argparse/package.json +0 -31
  290. package/node_modules/entities/lib/decode.d.ts +0 -211
  291. package/node_modules/entities/lib/decode.d.ts.map +0 -1
  292. package/node_modules/entities/lib/decode.js +0 -536
  293. package/node_modules/entities/lib/decode.js.map +0 -1
  294. package/node_modules/entities/lib/decode_codepoint.d.ts +0 -19
  295. package/node_modules/entities/lib/decode_codepoint.d.ts.map +0 -1
  296. package/node_modules/entities/lib/decode_codepoint.js +0 -76
  297. package/node_modules/entities/lib/decode_codepoint.js.map +0 -1
  298. package/node_modules/entities/lib/encode.d.ts +0 -22
  299. package/node_modules/entities/lib/encode.d.ts.map +0 -1
  300. package/node_modules/entities/lib/encode.js +0 -77
  301. package/node_modules/entities/lib/encode.js.map +0 -1
  302. package/node_modules/entities/lib/escape.d.ts +0 -43
  303. package/node_modules/entities/lib/escape.d.ts.map +0 -1
  304. package/node_modules/entities/lib/escape.js +0 -122
  305. package/node_modules/entities/lib/escape.js.map +0 -1
  306. package/node_modules/entities/lib/esm/decode.d.ts +0 -211
  307. package/node_modules/entities/lib/esm/decode.d.ts.map +0 -1
  308. package/node_modules/entities/lib/esm/decode.js +0 -496
  309. package/node_modules/entities/lib/esm/decode.js.map +0 -1
  310. package/node_modules/entities/lib/esm/decode_codepoint.d.ts +0 -19
  311. package/node_modules/entities/lib/esm/decode_codepoint.d.ts.map +0 -1
  312. package/node_modules/entities/lib/esm/decode_codepoint.js +0 -71
  313. package/node_modules/entities/lib/esm/decode_codepoint.js.map +0 -1
  314. package/node_modules/entities/lib/esm/encode.d.ts +0 -22
  315. package/node_modules/entities/lib/esm/encode.d.ts.map +0 -1
  316. package/node_modules/entities/lib/esm/encode.js +0 -69
  317. package/node_modules/entities/lib/esm/encode.js.map +0 -1
  318. package/node_modules/entities/lib/esm/escape.d.ts +0 -43
  319. package/node_modules/entities/lib/esm/escape.d.ts.map +0 -1
  320. package/node_modules/entities/lib/esm/escape.js +0 -116
  321. package/node_modules/entities/lib/esm/escape.js.map +0 -1
  322. package/node_modules/entities/lib/esm/generated/decode-data-html.d.ts +0 -3
  323. package/node_modules/entities/lib/esm/generated/decode-data-html.d.ts.map +0 -1
  324. package/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -7
  325. package/node_modules/entities/lib/esm/generated/decode-data-html.js.map +0 -1
  326. package/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts +0 -3
  327. package/node_modules/entities/lib/esm/generated/decode-data-xml.d.ts.map +0 -1
  328. package/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -7
  329. package/node_modules/entities/lib/esm/generated/decode-data-xml.js.map +0 -1
  330. package/node_modules/entities/lib/esm/generated/encode-html.d.ts +0 -8
  331. package/node_modules/entities/lib/esm/generated/encode-html.d.ts.map +0 -1
  332. package/node_modules/entities/lib/esm/generated/encode-html.js +0 -10
  333. package/node_modules/entities/lib/esm/generated/encode-html.js.map +0 -1
  334. package/node_modules/entities/lib/esm/index.d.ts +0 -96
  335. package/node_modules/entities/lib/esm/index.d.ts.map +0 -1
  336. package/node_modules/entities/lib/esm/index.js +0 -99
  337. package/node_modules/entities/lib/esm/index.js.map +0 -1
  338. package/node_modules/entities/lib/esm/package.json +0 -1
  339. package/node_modules/entities/lib/generated/decode-data-html.d.ts +0 -3
  340. package/node_modules/entities/lib/generated/decode-data-html.d.ts.map +0 -1
  341. package/node_modules/entities/lib/generated/decode-data-html.js +0 -9
  342. package/node_modules/entities/lib/generated/decode-data-html.js.map +0 -1
  343. package/node_modules/entities/lib/generated/decode-data-xml.d.ts +0 -3
  344. package/node_modules/entities/lib/generated/decode-data-xml.d.ts.map +0 -1
  345. package/node_modules/entities/lib/generated/decode-data-xml.js +0 -9
  346. package/node_modules/entities/lib/generated/decode-data-xml.js.map +0 -1
  347. package/node_modules/entities/lib/generated/encode-html.d.ts +0 -8
  348. package/node_modules/entities/lib/generated/encode-html.d.ts.map +0 -1
  349. package/node_modules/entities/lib/generated/encode-html.js +0 -12
  350. package/node_modules/entities/lib/generated/encode-html.js.map +0 -1
  351. package/node_modules/entities/lib/index.d.ts +0 -96
  352. package/node_modules/entities/lib/index.d.ts.map +0 -1
  353. package/node_modules/entities/lib/index.js +0 -126
  354. package/node_modules/entities/lib/index.js.map +0 -1
  355. package/node_modules/entities/package.json +0 -90
  356. package/node_modules/entities/readme.md +0 -122
  357. package/node_modules/linkify-it/README.md +0 -195
  358. package/node_modules/linkify-it/build/index.cjs.js +0 -840
  359. package/node_modules/linkify-it/index.mjs +0 -646
  360. package/node_modules/linkify-it/lib/re.mjs +0 -193
  361. package/node_modules/linkify-it/package.json +0 -63
  362. package/node_modules/markdown-it/dist/index.cjs.js +0 -3901
  363. package/node_modules/markdown-it/dist/index.cjs.js.map +0 -1
  364. package/node_modules/markdown-it/dist/markdown-it.js +0 -3975
  365. package/node_modules/markdown-it/dist/markdown-it.js.map +0 -1
  366. package/node_modules/markdown-it/dist/markdown-it.min.js +0 -3
  367. package/node_modules/markdown-it/dist/markdown-it.min.js.map +0 -1
  368. package/node_modules/markdown-it/index.mjs +0 -1
  369. package/node_modules/markdown-it/lib/common/html_blocks.mjs +0 -67
  370. package/node_modules/markdown-it/lib/common/html_re.mjs +0 -25
  371. package/node_modules/markdown-it/lib/common/utils.mjs +0 -324
  372. package/node_modules/markdown-it/lib/helpers/index.mjs +0 -11
  373. package/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +0 -77
  374. package/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +0 -49
  375. package/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +0 -66
  376. package/node_modules/markdown-it/lib/index.mjs +0 -565
  377. package/node_modules/markdown-it/lib/parser_block.mjs +0 -134
  378. package/node_modules/markdown-it/lib/parser_core.mjs +0 -62
  379. package/node_modules/markdown-it/lib/parser_inline.mjs +0 -197
  380. package/node_modules/markdown-it/lib/presets/commonmark.mjs +0 -88
  381. package/node_modules/markdown-it/lib/presets/default.mjs +0 -47
  382. package/node_modules/markdown-it/lib/presets/zero.mjs +0 -70
  383. package/node_modules/markdown-it/lib/renderer.mjs +0 -322
  384. package/node_modules/markdown-it/lib/ruler.mjs +0 -340
  385. package/node_modules/markdown-it/lib/rules_block/blockquote.mjs +0 -209
  386. package/node_modules/markdown-it/lib/rules_block/code.mjs +0 -30
  387. package/node_modules/markdown-it/lib/rules_block/fence.mjs +0 -94
  388. package/node_modules/markdown-it/lib/rules_block/heading.mjs +0 -51
  389. package/node_modules/markdown-it/lib/rules_block/hr.mjs +0 -40
  390. package/node_modules/markdown-it/lib/rules_block/html_block.mjs +0 -80
  391. package/node_modules/markdown-it/lib/rules_block/lheading.mjs +0 -85
  392. package/node_modules/markdown-it/lib/rules_block/list.mjs +0 -331
  393. package/node_modules/markdown-it/lib/rules_block/paragraph.mjs +0 -48
  394. package/node_modules/markdown-it/lib/rules_block/reference.mjs +0 -212
  395. package/node_modules/markdown-it/lib/rules_block/state_block.mjs +0 -220
  396. package/node_modules/markdown-it/lib/rules_block/table.mjs +0 -228
  397. package/node_modules/markdown-it/lib/rules_core/block.mjs +0 -13
  398. package/node_modules/markdown-it/lib/rules_core/inline.mjs +0 -11
  399. package/node_modules/markdown-it/lib/rules_core/linkify.mjs +0 -134
  400. package/node_modules/markdown-it/lib/rules_core/normalize.mjs +0 -17
  401. package/node_modules/markdown-it/lib/rules_core/replacements.mjs +0 -101
  402. package/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +0 -209
  403. package/node_modules/markdown-it/lib/rules_core/state_core.mjs +0 -17
  404. package/node_modules/markdown-it/lib/rules_core/text_join.mjs +0 -43
  405. package/node_modules/markdown-it/lib/rules_inline/autolink.mjs +0 -72
  406. package/node_modules/markdown-it/lib/rules_inline/backticks.mjs +0 -60
  407. package/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +0 -124
  408. package/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +0 -123
  409. package/node_modules/markdown-it/lib/rules_inline/entity.mjs +0 -51
  410. package/node_modules/markdown-it/lib/rules_inline/escape.mjs +0 -83
  411. package/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs +0 -38
  412. package/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +0 -50
  413. package/node_modules/markdown-it/lib/rules_inline/image.mjs +0 -138
  414. package/node_modules/markdown-it/lib/rules_inline/link.mjs +0 -139
  415. package/node_modules/markdown-it/lib/rules_inline/linkify.mjs +0 -63
  416. package/node_modules/markdown-it/lib/rules_inline/newline.mjs +0 -42
  417. package/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +0 -154
  418. package/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +0 -127
  419. package/node_modules/markdown-it/lib/rules_inline/text.mjs +0 -86
  420. package/node_modules/markdown-it/lib/token.mjs +0 -191
  421. package/node_modules/mdurl/package.json +0 -37
  422. package/node_modules/uc.micro/README.md +0 -14
  423. package/node_modules/uc.micro/build/index.cjs.js +0 -20
  424. package/node_modules/uc.micro/categories/Cc/regex.mjs +0 -1
  425. package/node_modules/uc.micro/categories/Cf/regex.mjs +0 -1
  426. package/node_modules/uc.micro/categories/P/regex.mjs +0 -1
  427. package/node_modules/uc.micro/categories/S/regex.mjs +0 -1
  428. package/node_modules/uc.micro/categories/Z/regex.mjs +0 -1
  429. package/node_modules/uc.micro/index.mjs +0 -8
  430. package/node_modules/uc.micro/package.json +0 -37
  431. package/node_modules/uc.micro/properties/Any/regex.mjs +0 -1
  432. /package/dist/{account-config-BZWN9tGS.js → .setup/account-config-BZWN9tGS.mjs} +0 -0
  433. /package/dist/{backup-health-Dm_YMVFT.js → .setup/backup-health-Dm_YMVFT.mjs} +0 -0
  434. /package/dist/{config-paths-CnREYb1Y.js → .setup/config-paths-CnREYb1Y.mjs} +0 -0
  435. /package/dist/{config-secret-input.runtime-CwsP3--c.js → .setup/config-secret-input.runtime-CwsP3--c.mjs} +0 -0
  436. /package/dist/{crypto-node.runtime-6Aj_ltHQ.js → .setup/crypto-node.runtime-6Aj_ltHQ.mjs} +0 -0
  437. /package/dist/{errors-C47hvAF8.js → .setup/errors-C47hvAF8.mjs} +0 -0
  438. /package/dist/{preflight-audio.runtime-BZxxQsxY.js → .setup/preflight-audio.runtime-BZxxQsxY.mjs} +0 -0
  439. /package/dist/{reaction-common-DkrQdBSZ.js → .setup/reaction-common-DkrQdBSZ.mjs} +0 -0
  440. /package/dist/{rolldown-runtime-8H4AJuhK.js → .setup/rolldown-runtime-8H4AJuhK.mjs} +0 -0
  441. /package/dist/{runtime-6S3DNFNv.js → .setup/runtime-6S3DNFNv.mjs} +0 -0
  442. /package/dist/{runtime-BefyhPWv.js → .setup/runtime-BefyhPWv.mjs} +0 -0
  443. /package/dist/{sync-state-CWbp0QSY.js → .setup/sync-state-CWbp0QSY.mjs} +0 -0
  444. /package/dist/{target-ids-B-5aQxwn.js → .setup/target-ids-B-5aQxwn.mjs} +0 -0
  445. /package/dist/{thread-bindings-shared-CKnY4LSd.js → .setup/thread-bindings-shared-CKnY4LSd.mjs} +0 -0
  446. /package/dist/{timeout-abort-signal-DMrgRFIy.js → .setup/timeout-abort-signal-DMrgRFIy.mjs} +0 -0
  447. /package/dist/{url-validation-GRHde6lq.js → .setup/url-validation-GRHde6lq.mjs} +0 -0
  448. /package/node_modules/{agent-base → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base}/LICENSE +0 -0
  449. /package/node_modules/{agent-base → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base}/README.md +0 -0
  450. /package/node_modules/{agent-base → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base}/dist/helpers.d.ts +0 -0
  451. /package/node_modules/{agent-base → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base}/dist/helpers.d.ts.map +0 -0
  452. /package/node_modules/{agent-base → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base}/dist/helpers.js +0 -0
  453. /package/node_modules/{agent-base → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base}/dist/helpers.js.map +0 -0
  454. /package/node_modules/{agent-base → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base}/dist/index.d.ts +0 -0
  455. /package/node_modules/{agent-base → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base}/dist/index.d.ts.map +0 -0
  456. /package/node_modules/{agent-base → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base}/dist/index.js +0 -0
  457. /package/node_modules/{agent-base → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base}/dist/index.js.map +0 -0
  458. /package/node_modules/{agent-base → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base}/package.json +0 -0
  459. /package/node_modules/{debug → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/debug}/LICENSE +0 -0
  460. /package/node_modules/{debug → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/debug}/README.md +0 -0
  461. /package/node_modules/{debug → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/debug}/package.json +0 -0
  462. /package/node_modules/{debug → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/debug}/src/browser.js +0 -0
  463. /package/node_modules/{debug → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/debug}/src/common.js +0 -0
  464. /package/node_modules/{debug → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/debug}/src/index.js +0 -0
  465. /package/node_modules/{debug → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/debug}/src/node.js +0 -0
  466. /package/node_modules/{https-proxy-agent → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent}/LICENSE +0 -0
  467. /package/node_modules/{https-proxy-agent → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent}/README.md +0 -0
  468. /package/node_modules/{https-proxy-agent → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent}/dist/index.d.ts +0 -0
  469. /package/node_modules/{https-proxy-agent → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent}/dist/index.d.ts.map +0 -0
  470. /package/node_modules/{https-proxy-agent → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent}/dist/index.js +0 -0
  471. /package/node_modules/{https-proxy-agent → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent}/dist/index.js.map +0 -0
  472. /package/node_modules/{https-proxy-agent → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent}/dist/parse-proxy-response.d.ts +0 -0
  473. /package/node_modules/{https-proxy-agent → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent}/dist/parse-proxy-response.d.ts.map +0 -0
  474. /package/node_modules/{https-proxy-agent → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent}/dist/parse-proxy-response.js +0 -0
  475. /package/node_modules/{https-proxy-agent → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent}/dist/parse-proxy-response.js.map +0 -0
  476. /package/node_modules/{https-proxy-agent → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent}/package.json +0 -0
  477. /package/node_modules/{ms → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/ms}/index.js +0 -0
  478. /package/node_modules/{ms → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/ms}/license.md +0 -0
  479. /package/node_modules/{ms → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/ms}/package.json +0 -0
  480. /package/node_modules/{ms → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/ms}/readme.md +0 -0
  481. /package/node_modules/{node-downloader-helper → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/node-downloader-helper}/LICENSE +0 -0
  482. /package/node_modules/{node-downloader-helper → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/node-downloader-helper}/README.md +0 -0
  483. /package/node_modules/{node-downloader-helper → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/node-downloader-helper}/bin/helpers.js +0 -0
  484. /package/node_modules/{node-downloader-helper → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/node-downloader-helper}/bin/ndh +0 -0
  485. /package/node_modules/{node-downloader-helper → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/node-downloader-helper}/dist/index.js +0 -0
  486. /package/node_modules/{node-downloader-helper → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/node-downloader-helper}/package.json +0 -0
  487. /package/node_modules/{node-downloader-helper → @matrix-org/matrix-sdk-crypto-nodejs/node_modules/node-downloader-helper}/types/index.d.ts +0 -0
  488. /package/node_modules/{entities → markdown-it/node_modules/entities}/LICENSE +0 -0
  489. /package/node_modules/{linkify-it → markdown-it/node_modules/linkify-it}/LICENSE +0 -0
  490. /package/node_modules/{mdurl → markdown-it/node_modules/mdurl}/LICENSE +0 -0
  491. /package/node_modules/{mdurl → markdown-it/node_modules/mdurl}/README.md +0 -0
  492. /package/node_modules/{mdurl → markdown-it/node_modules/mdurl}/build/index.cjs.js +0 -0
  493. /package/node_modules/{mdurl → markdown-it/node_modules/mdurl}/index.mjs +0 -0
  494. /package/node_modules/{mdurl → markdown-it/node_modules/mdurl}/lib/decode.mjs +0 -0
  495. /package/node_modules/{mdurl → markdown-it/node_modules/mdurl}/lib/encode.mjs +0 -0
  496. /package/node_modules/{mdurl → markdown-it/node_modules/mdurl}/lib/format.mjs +0 -0
  497. /package/node_modules/{mdurl → markdown-it/node_modules/mdurl}/lib/parse.mjs +0 -0
  498. /package/node_modules/{punycode.js → markdown-it/node_modules/punycode.js}/LICENSE-MIT.txt +0 -0
  499. /package/node_modules/{punycode.js → markdown-it/node_modules/punycode.js}/README.md +0 -0
  500. /package/node_modules/{punycode.js → markdown-it/node_modules/punycode.js}/package.json +0 -0
  501. /package/node_modules/{punycode.js → markdown-it/node_modules/punycode.js}/punycode.es6.js +0 -0
  502. /package/node_modules/{punycode.js → markdown-it/node_modules/punycode.js}/punycode.js +0 -0
  503. /package/node_modules/{uc.micro → markdown-it/node_modules/uc.micro}/LICENSE.txt +0 -0
  504. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/LICENSE +0 -0
  505. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/README.md +0 -0
  506. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/OverloadYield.js +0 -0
  507. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/applyDecoratedDescriptor.js +0 -0
  508. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/applyDecs2311.js +0 -0
  509. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/arrayLikeToArray.js +0 -0
  510. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/arrayWithHoles.js +0 -0
  511. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/arrayWithoutHoles.js +0 -0
  512. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/assertClassBrand.js +0 -0
  513. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/assertThisInitialized.js +0 -0
  514. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/asyncGeneratorDelegate.js +0 -0
  515. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/asyncIterator.js +0 -0
  516. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/asyncToGenerator.js +0 -0
  517. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/awaitAsyncGenerator.js +0 -0
  518. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/callSuper.js +0 -0
  519. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/checkInRHS.js +0 -0
  520. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/checkPrivateRedeclaration.js +0 -0
  521. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/classCallCheck.js +0 -0
  522. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/classNameTDZError.js +0 -0
  523. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/classPrivateFieldGet2.js +0 -0
  524. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/classPrivateFieldInitSpec.js +0 -0
  525. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/classPrivateFieldLooseBase.js +0 -0
  526. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/classPrivateFieldLooseKey.js +0 -0
  527. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/classPrivateFieldSet2.js +0 -0
  528. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/classPrivateGetter.js +0 -0
  529. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/classPrivateMethodInitSpec.js +0 -0
  530. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/classPrivateSetter.js +0 -0
  531. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/classStaticPrivateMethodGet.js +0 -0
  532. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/construct.js +0 -0
  533. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/createClass.js +0 -0
  534. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/createForOfIteratorHelper.js +0 -0
  535. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/createForOfIteratorHelperLoose.js +0 -0
  536. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/createSuper.js +0 -0
  537. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/defaults.js +0 -0
  538. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/defineAccessor.js +0 -0
  539. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/defineProperty.js +0 -0
  540. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/OverloadYield.js +0 -0
  541. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/applyDecoratedDescriptor.js +0 -0
  542. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/applyDecs2311.js +0 -0
  543. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/arrayLikeToArray.js +0 -0
  544. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/arrayWithHoles.js +0 -0
  545. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/arrayWithoutHoles.js +0 -0
  546. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/assertClassBrand.js +0 -0
  547. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/assertThisInitialized.js +0 -0
  548. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/asyncGeneratorDelegate.js +0 -0
  549. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/asyncIterator.js +0 -0
  550. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/asyncToGenerator.js +0 -0
  551. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/awaitAsyncGenerator.js +0 -0
  552. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/callSuper.js +0 -0
  553. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/checkInRHS.js +0 -0
  554. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/checkPrivateRedeclaration.js +0 -0
  555. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/classCallCheck.js +0 -0
  556. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/classNameTDZError.js +0 -0
  557. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/classPrivateFieldGet2.js +0 -0
  558. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/classPrivateFieldInitSpec.js +0 -0
  559. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/classPrivateFieldLooseBase.js +0 -0
  560. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/classPrivateFieldLooseKey.js +0 -0
  561. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/classPrivateFieldSet2.js +0 -0
  562. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/classPrivateGetter.js +0 -0
  563. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/classPrivateMethodInitSpec.js +0 -0
  564. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/classPrivateSetter.js +0 -0
  565. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/classStaticPrivateMethodGet.js +0 -0
  566. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/construct.js +0 -0
  567. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/createClass.js +0 -0
  568. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/createForOfIteratorHelper.js +0 -0
  569. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/createForOfIteratorHelperLoose.js +0 -0
  570. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/createSuper.js +0 -0
  571. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/defaults.js +0 -0
  572. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/defineAccessor.js +0 -0
  573. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/defineProperty.js +0 -0
  574. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/extends.js +0 -0
  575. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/get.js +0 -0
  576. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/getPrototypeOf.js +0 -0
  577. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/identity.js +0 -0
  578. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/importDeferProxy.js +0 -0
  579. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/inherits.js +0 -0
  580. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/inheritsLoose.js +0 -0
  581. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/initializerDefineProperty.js +0 -0
  582. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/initializerWarningHelper.js +0 -0
  583. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/instanceof.js +0 -0
  584. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/interopRequireDefault.js +0 -0
  585. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/interopRequireWildcard.js +0 -0
  586. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/isNativeFunction.js +0 -0
  587. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/isNativeReflectConstruct.js +0 -0
  588. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/iterableToArray.js +0 -0
  589. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/iterableToArrayLimit.js +0 -0
  590. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/jsx.js +0 -0
  591. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/maybeArrayLike.js +0 -0
  592. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/newArrowCheck.js +0 -0
  593. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/nonIterableRest.js +0 -0
  594. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/nonIterableSpread.js +0 -0
  595. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/nullishReceiverError.js +0 -0
  596. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/objectDestructuringEmpty.js +0 -0
  597. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/objectSpread2.js +0 -0
  598. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/objectWithoutProperties.js +0 -0
  599. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -0
  600. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/package.json +0 -0
  601. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/possibleConstructorReturn.js +0 -0
  602. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/readOnlyError.js +0 -0
  603. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/regenerator.js +0 -0
  604. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/regeneratorAsync.js +0 -0
  605. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/regeneratorAsyncGen.js +0 -0
  606. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/regeneratorAsyncIterator.js +0 -0
  607. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/regeneratorDefine.js +0 -0
  608. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/regeneratorKeys.js +0 -0
  609. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/regeneratorValues.js +0 -0
  610. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/set.js +0 -0
  611. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/setFunctionName.js +0 -0
  612. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/setPrototypeOf.js +0 -0
  613. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/skipFirstGeneratorNext.js +0 -0
  614. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/slicedToArray.js +0 -0
  615. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/superPropBase.js +0 -0
  616. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/superPropGet.js +0 -0
  617. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/superPropSet.js +0 -0
  618. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/taggedTemplateLiteral.js +0 -0
  619. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/taggedTemplateLiteralLoose.js +0 -0
  620. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/tdz.js +0 -0
  621. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/temporalRef.js +0 -0
  622. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/temporalUndefined.js +0 -0
  623. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/toArray.js +0 -0
  624. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/toConsumableArray.js +0 -0
  625. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/toPrimitive.js +0 -0
  626. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/toPropertyKey.js +0 -0
  627. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/toSetter.js +0 -0
  628. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/tsRewriteRelativeImportExtensions.js +0 -0
  629. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/typeof.js +0 -0
  630. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/unsupportedIterableToArray.js +0 -0
  631. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/usingCtx.js +0 -0
  632. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/wrapAsyncGenerator.js +0 -0
  633. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/wrapNativeSuper.js +0 -0
  634. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/wrapRegExp.js +0 -0
  635. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/esm/writeOnlyError.js +0 -0
  636. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/extends.js +0 -0
  637. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/get.js +0 -0
  638. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/getPrototypeOf.js +0 -0
  639. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/identity.js +0 -0
  640. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/importDeferProxy.js +0 -0
  641. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/inherits.js +0 -0
  642. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/inheritsLoose.js +0 -0
  643. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/initializerDefineProperty.js +0 -0
  644. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/initializerWarningHelper.js +0 -0
  645. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/instanceof.js +0 -0
  646. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/interopRequireDefault.js +0 -0
  647. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/interopRequireWildcard.js +0 -0
  648. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/isNativeFunction.js +0 -0
  649. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/isNativeReflectConstruct.js +0 -0
  650. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/iterableToArray.js +0 -0
  651. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/iterableToArrayLimit.js +0 -0
  652. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/jsx.js +0 -0
  653. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/maybeArrayLike.js +0 -0
  654. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/newArrowCheck.js +0 -0
  655. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/nonIterableRest.js +0 -0
  656. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/nonIterableSpread.js +0 -0
  657. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/nullishReceiverError.js +0 -0
  658. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/objectDestructuringEmpty.js +0 -0
  659. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/objectSpread2.js +0 -0
  660. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/objectWithoutProperties.js +0 -0
  661. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/objectWithoutPropertiesLoose.js +0 -0
  662. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/possibleConstructorReturn.js +0 -0
  663. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/readOnlyError.js +0 -0
  664. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/regenerator.js +0 -0
  665. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/regeneratorAsync.js +0 -0
  666. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/regeneratorAsyncGen.js +0 -0
  667. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/regeneratorAsyncIterator.js +0 -0
  668. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/regeneratorDefine.js +0 -0
  669. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/regeneratorKeys.js +0 -0
  670. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/regeneratorValues.js +0 -0
  671. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/set.js +0 -0
  672. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/setFunctionName.js +0 -0
  673. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/setPrototypeOf.js +0 -0
  674. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/skipFirstGeneratorNext.js +0 -0
  675. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/slicedToArray.js +0 -0
  676. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/superPropBase.js +0 -0
  677. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/superPropGet.js +0 -0
  678. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/superPropSet.js +0 -0
  679. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/taggedTemplateLiteral.js +0 -0
  680. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/taggedTemplateLiteralLoose.js +0 -0
  681. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/tdz.js +0 -0
  682. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/temporalRef.js +0 -0
  683. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/temporalUndefined.js +0 -0
  684. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/toArray.js +0 -0
  685. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/toConsumableArray.js +0 -0
  686. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/toPrimitive.js +0 -0
  687. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/toPropertyKey.js +0 -0
  688. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/toSetter.js +0 -0
  689. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/tsRewriteRelativeImportExtensions.js +0 -0
  690. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/typeof.js +0 -0
  691. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/unsupportedIterableToArray.js +0 -0
  692. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/usingCtx.js +0 -0
  693. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/wrapAsyncGenerator.js +0 -0
  694. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/wrapNativeSuper.js +0 -0
  695. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/wrapRegExp.js +0 -0
  696. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/helpers/writeOnlyError.js +0 -0
  697. /package/node_modules/{@babel → matrix-js-sdk/node_modules/@babel}/runtime/package.json +0 -0
  698. /package/node_modules/{@types → matrix-js-sdk/node_modules/@types}/events/LICENSE +0 -0
  699. /package/node_modules/{@types → matrix-js-sdk/node_modules/@types}/events/README.md +0 -0
  700. /package/node_modules/{@types → matrix-js-sdk/node_modules/@types}/events/index.d.ts +0 -0
  701. /package/node_modules/{@types → matrix-js-sdk/node_modules/@types}/events/package.json +0 -0
  702. /package/node_modules/{another-json → matrix-js-sdk/node_modules/another-json}/.jshint +0 -0
  703. /package/node_modules/{another-json → matrix-js-sdk/node_modules/another-json}/.npmignore +0 -0
  704. /package/node_modules/{another-json → matrix-js-sdk/node_modules/another-json}/.travis.yml +0 -0
  705. /package/node_modules/{another-json → matrix-js-sdk/node_modules/another-json}/LICENSE +0 -0
  706. /package/node_modules/{another-json → matrix-js-sdk/node_modules/another-json}/README.md +0 -0
  707. /package/node_modules/{another-json → matrix-js-sdk/node_modules/another-json}/another-json.js +0 -0
  708. /package/node_modules/{another-json → matrix-js-sdk/node_modules/another-json}/package.json +0 -0
  709. /package/node_modules/{another-json → matrix-js-sdk/node_modules/another-json}/spec/another-json-spec.js +0 -0
  710. /package/node_modules/{base-x → matrix-js-sdk/node_modules/base-x}/LICENSE.md +0 -0
  711. /package/node_modules/{base-x → matrix-js-sdk/node_modules/base-x}/README.md +0 -0
  712. /package/node_modules/{base-x → matrix-js-sdk/node_modules/base-x}/package.json +0 -0
  713. /package/node_modules/{base-x → matrix-js-sdk/node_modules/base-x}/src/cjs/index.cjs +0 -0
  714. /package/node_modules/{base-x → matrix-js-sdk/node_modules/base-x}/src/cjs/index.d.ts +0 -0
  715. /package/node_modules/{base-x → matrix-js-sdk/node_modules/base-x}/src/esm/index.js +0 -0
  716. /package/node_modules/{bs58 → matrix-js-sdk/node_modules/bs58}/LICENSE +0 -0
  717. /package/node_modules/{bs58 → matrix-js-sdk/node_modules/bs58}/README.md +0 -0
  718. /package/node_modules/{bs58 → matrix-js-sdk/node_modules/bs58}/package.json +0 -0
  719. /package/node_modules/{bs58 → matrix-js-sdk/node_modules/bs58}/src/cjs/index.cjs +0 -0
  720. /package/node_modules/{bs58 → matrix-js-sdk/node_modules/bs58}/src/cjs/index.d.ts +0 -0
  721. /package/node_modules/{bs58 → matrix-js-sdk/node_modules/bs58}/src/esm/index.js +0 -0
  722. /package/node_modules/{content-type → matrix-js-sdk/node_modules/content-type}/LICENSE +0 -0
  723. /package/node_modules/{content-type → matrix-js-sdk/node_modules/content-type}/README.md +0 -0
  724. /package/node_modules/{content-type → matrix-js-sdk/node_modules/content-type}/dist/index.d.ts +0 -0
  725. /package/node_modules/{content-type → matrix-js-sdk/node_modules/content-type}/dist/index.js +0 -0
  726. /package/node_modules/{content-type → matrix-js-sdk/node_modules/content-type}/dist/index.js.map +0 -0
  727. /package/node_modules/{content-type → matrix-js-sdk/node_modules/content-type}/package.json +0 -0
  728. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/.airtap.yml +0 -0
  729. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/.github/FUNDING.yml +0 -0
  730. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/.travis.yml +0 -0
  731. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/History.md +0 -0
  732. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/LICENSE +0 -0
  733. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/Readme.md +0 -0
  734. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/events.js +0 -0
  735. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/package.json +0 -0
  736. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/security.md +0 -0
  737. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/add-listeners.js +0 -0
  738. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/check-listener-leaks.js +0 -0
  739. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/common.js +0 -0
  740. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/errors.js +0 -0
  741. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/events-list.js +0 -0
  742. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/events-once.js +0 -0
  743. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/index.js +0 -0
  744. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/legacy-compat.js +0 -0
  745. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/listener-count.js +0 -0
  746. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/listeners-side-effects.js +0 -0
  747. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/listeners.js +0 -0
  748. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/max-listeners.js +0 -0
  749. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/method-names.js +0 -0
  750. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/modify-in-emit.js +0 -0
  751. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/num-args.js +0 -0
  752. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/once.js +0 -0
  753. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/prepend.js +0 -0
  754. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/remove-all-listeners.js +0 -0
  755. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/remove-listeners.js +0 -0
  756. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/set-max-listeners-side-effects.js +0 -0
  757. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/special-event-names.js +0 -0
  758. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/subclass.js +0 -0
  759. /package/node_modules/{events → matrix-js-sdk/node_modules/events}/tests/symbols.js +0 -0
  760. /package/node_modules/{is-network-error → matrix-js-sdk/node_modules/is-network-error}/index.d.ts +0 -0
  761. /package/node_modules/{is-network-error → matrix-js-sdk/node_modules/is-network-error}/index.js +0 -0
  762. /package/node_modules/{file-type → matrix-js-sdk/node_modules/is-network-error}/license +0 -0
  763. /package/node_modules/{is-network-error → matrix-js-sdk/node_modules/is-network-error}/package.json +0 -0
  764. /package/node_modules/{is-network-error → matrix-js-sdk/node_modules/is-network-error}/readme.md +0 -0
  765. /package/node_modules/{jwt-decode → matrix-js-sdk/node_modules/jwt-decode}/LICENSE +0 -0
  766. /package/node_modules/{jwt-decode → matrix-js-sdk/node_modules/jwt-decode}/README.md +0 -0
  767. /package/node_modules/{jwt-decode → matrix-js-sdk/node_modules/jwt-decode}/build/cjs/index.d.ts +0 -0
  768. /package/node_modules/{jwt-decode → matrix-js-sdk/node_modules/jwt-decode}/build/cjs/index.js +0 -0
  769. /package/node_modules/{jwt-decode → matrix-js-sdk/node_modules/jwt-decode}/build/cjs/package.json +0 -0
  770. /package/node_modules/{jwt-decode → matrix-js-sdk/node_modules/jwt-decode}/build/esm/index.d.ts +0 -0
  771. /package/node_modules/{jwt-decode → matrix-js-sdk/node_modules/jwt-decode}/build/esm/index.js +0 -0
  772. /package/node_modules/{jwt-decode → matrix-js-sdk/node_modules/jwt-decode}/package.json +0 -0
  773. /package/node_modules/{loglevel → matrix-js-sdk/node_modules/loglevel}/.editorconfig +0 -0
  774. /package/node_modules/{loglevel → matrix-js-sdk/node_modules/loglevel}/CONTRIBUTING.md +0 -0
  775. /package/node_modules/{loglevel → matrix-js-sdk/node_modules/loglevel}/Gruntfile.js +0 -0
  776. /package/node_modules/{loglevel → matrix-js-sdk/node_modules/loglevel}/LICENSE-MIT +0 -0
  777. /package/node_modules/{loglevel → matrix-js-sdk/node_modules/loglevel}/README.md +0 -0
  778. /package/node_modules/{loglevel → matrix-js-sdk/node_modules/loglevel}/_config.yml +0 -0
  779. /package/node_modules/{loglevel → matrix-js-sdk/node_modules/loglevel}/bower.json +0 -0
  780. /package/node_modules/{loglevel → matrix-js-sdk/node_modules/loglevel}/demo/index.html +0 -0
  781. /package/node_modules/{loglevel → matrix-js-sdk/node_modules/loglevel}/demo/script.js +0 -0
  782. /package/node_modules/{loglevel → matrix-js-sdk/node_modules/loglevel}/demo/styles.css +0 -0
  783. /package/node_modules/{loglevel → matrix-js-sdk/node_modules/loglevel}/dist/loglevel.js +0 -0
  784. /package/node_modules/{loglevel → matrix-js-sdk/node_modules/loglevel}/dist/loglevel.min.js +0 -0
  785. /package/node_modules/{loglevel → matrix-js-sdk/node_modules/loglevel}/index.d.ts +0 -0
  786. /package/node_modules/{loglevel → matrix-js-sdk/node_modules/loglevel}/lib/loglevel.js +0 -0
  787. /package/node_modules/{loglevel → matrix-js-sdk/node_modules/loglevel}/package.json +0 -0
  788. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/LICENSE +0 -0
  789. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/README.md +0 -0
  790. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/ExtensibleEvents.d.ts +0 -0
  791. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/ExtensibleEvents.js +0 -0
  792. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/IPartialEvent.d.ts +0 -0
  793. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/IPartialEvent.js +0 -0
  794. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/InvalidEventError.d.ts +0 -0
  795. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/InvalidEventError.js +0 -0
  796. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/NamespacedMap.d.ts +0 -0
  797. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/NamespacedMap.js +0 -0
  798. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/NamespacedValue.d.ts +0 -0
  799. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/NamespacedValue.js +0 -0
  800. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/events/EmoteEvent.d.ts +0 -0
  801. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/events/EmoteEvent.js +0 -0
  802. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/events/ExtensibleEvent.d.ts +0 -0
  803. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/events/ExtensibleEvent.js +0 -0
  804. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/events/MessageEvent.d.ts +0 -0
  805. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/events/MessageEvent.js +0 -0
  806. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/events/NoticeEvent.d.ts +0 -0
  807. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/events/NoticeEvent.js +0 -0
  808. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/events/PollEndEvent.d.ts +0 -0
  809. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/events/PollEndEvent.js +0 -0
  810. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/events/PollResponseEvent.d.ts +0 -0
  811. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/events/PollResponseEvent.js +0 -0
  812. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/events/PollStartEvent.d.ts +0 -0
  813. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/events/PollStartEvent.js +0 -0
  814. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/events/message_types.d.ts +0 -0
  815. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/events/message_types.js +0 -0
  816. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/events/poll_types.d.ts +0 -0
  817. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/events/poll_types.js +0 -0
  818. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/events/relationship_types.d.ts +0 -0
  819. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/events/relationship_types.js +0 -0
  820. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/index.d.ts +0 -0
  821. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/index.js +0 -0
  822. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/interpreters/legacy/MRoomMessage.d.ts +0 -0
  823. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/interpreters/legacy/MRoomMessage.js +0 -0
  824. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/interpreters/modern/MMessage.d.ts +0 -0
  825. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/interpreters/modern/MMessage.js +0 -0
  826. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/interpreters/modern/MPoll.d.ts +0 -0
  827. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/interpreters/modern/MPoll.js +0 -0
  828. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/types.d.ts +0 -0
  829. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/types.js +0 -0
  830. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/utility/MessageMatchers.d.ts +0 -0
  831. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/utility/MessageMatchers.js +0 -0
  832. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/utility/events.d.ts +0 -0
  833. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/lib/utility/events.js +0 -0
  834. /package/node_modules/{matrix-events-sdk → matrix-js-sdk/node_modules/matrix-events-sdk}/package.json +0 -0
  835. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/LICENSE +0 -0
  836. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/README.md +0 -0
  837. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/dist/api.js +0 -0
  838. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/dist/api.min.js +0 -0
  839. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/ClientWidgetApi.d.ts +0 -0
  840. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/ClientWidgetApi.js +0 -0
  841. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/ClientWidgetApi.js.map +0 -0
  842. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/Symbols.d.ts +0 -0
  843. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/Symbols.js +0 -0
  844. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/Symbols.js.map +0 -0
  845. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/WidgetApi.d.ts +0 -0
  846. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/WidgetApi.js +0 -0
  847. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/WidgetApi.js.map +0 -0
  848. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/driver/WidgetDriver.d.ts +0 -0
  849. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/driver/WidgetDriver.js +0 -0
  850. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/driver/WidgetDriver.js.map +0 -0
  851. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/index.d.ts +0 -0
  852. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/index.js +0 -0
  853. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/index.js.map +0 -0
  854. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ApiVersion.d.ts +0 -0
  855. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ApiVersion.js +0 -0
  856. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ApiVersion.js.map +0 -0
  857. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/Capabilities.d.ts +0 -0
  858. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/Capabilities.js +0 -0
  859. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/Capabilities.js.map +0 -0
  860. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/CapabilitiesAction.d.ts +0 -0
  861. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/CapabilitiesAction.js +0 -0
  862. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/CapabilitiesAction.js.map +0 -0
  863. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ContentLoadedAction.d.ts +0 -0
  864. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ContentLoadedAction.js +0 -0
  865. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ContentLoadedAction.js.map +0 -0
  866. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/DownloadFileAction.d.ts +0 -0
  867. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/DownloadFileAction.js +0 -0
  868. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/DownloadFileAction.js.map +0 -0
  869. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/GetMediaConfigAction.d.ts +0 -0
  870. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/GetMediaConfigAction.js +0 -0
  871. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/GetMediaConfigAction.js.map +0 -0
  872. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/GetOpenIDAction.d.ts +0 -0
  873. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/GetOpenIDAction.js +0 -0
  874. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/GetOpenIDAction.js.map +0 -0
  875. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ICustomWidgetData.d.ts +0 -0
  876. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ICustomWidgetData.js +0 -0
  877. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ICustomWidgetData.js.map +0 -0
  878. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IJitsiWidgetData.d.ts +0 -0
  879. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IJitsiWidgetData.js +0 -0
  880. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IJitsiWidgetData.js.map +0 -0
  881. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IRoomAccountData.d.ts +0 -0
  882. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IRoomAccountData.js +0 -0
  883. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IRoomAccountData.js.map +0 -0
  884. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IRoomEvent.d.ts +0 -0
  885. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IRoomEvent.js +0 -0
  886. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IRoomEvent.js.map +0 -0
  887. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IStickerpickerWidgetData.d.ts +0 -0
  888. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IStickerpickerWidgetData.js +0 -0
  889. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IStickerpickerWidgetData.js.map +0 -0
  890. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IToDeviceMessage.d.ts +0 -0
  891. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IToDeviceMessage.js +0 -0
  892. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IToDeviceMessage.js.map +0 -0
  893. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IWidget.d.ts +0 -0
  894. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IWidget.js +0 -0
  895. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IWidget.js.map +0 -0
  896. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IWidgetApiErrorResponse.d.ts +0 -0
  897. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IWidgetApiErrorResponse.js +0 -0
  898. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IWidgetApiErrorResponse.js.map +0 -0
  899. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IWidgetApiRequest.d.ts +0 -0
  900. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IWidgetApiRequest.js +0 -0
  901. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IWidgetApiRequest.js.map +0 -0
  902. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IWidgetApiResponse.d.ts +0 -0
  903. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IWidgetApiResponse.js +0 -0
  904. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/IWidgetApiResponse.js.map +0 -0
  905. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/LanguageChangeAction.d.ts +0 -0
  906. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/LanguageChangeAction.js +0 -0
  907. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/LanguageChangeAction.js.map +0 -0
  908. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ModalButtonKind.d.ts +0 -0
  909. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ModalButtonKind.js +0 -0
  910. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ModalButtonKind.js.map +0 -0
  911. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ModalWidgetActions.d.ts +0 -0
  912. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ModalWidgetActions.js +0 -0
  913. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ModalWidgetActions.js.map +0 -0
  914. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/NavigateAction.d.ts +0 -0
  915. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/NavigateAction.js +0 -0
  916. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/NavigateAction.js.map +0 -0
  917. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/OpenIDCredentialsAction.d.ts +0 -0
  918. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/OpenIDCredentialsAction.js +0 -0
  919. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/OpenIDCredentialsAction.js.map +0 -0
  920. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ReadEventAction.d.ts +0 -0
  921. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ReadEventAction.js +0 -0
  922. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ReadEventAction.js.map +0 -0
  923. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ReadRelationsAction.d.ts +0 -0
  924. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ReadRelationsAction.js +0 -0
  925. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ReadRelationsAction.js.map +0 -0
  926. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ReadRoomAccountDataAction.d.ts +0 -0
  927. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ReadRoomAccountDataAction.js +0 -0
  928. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ReadRoomAccountDataAction.js.map +0 -0
  929. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ScreenshotAction.d.ts +0 -0
  930. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ScreenshotAction.js +0 -0
  931. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ScreenshotAction.js.map +0 -0
  932. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/SendEventAction.d.ts +0 -0
  933. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/SendEventAction.js +0 -0
  934. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/SendEventAction.js.map +0 -0
  935. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/SendToDeviceAction.d.ts +0 -0
  936. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/SendToDeviceAction.js +0 -0
  937. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/SendToDeviceAction.js.map +0 -0
  938. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/SetModalButtonEnabledAction.d.ts +0 -0
  939. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/SetModalButtonEnabledAction.js +0 -0
  940. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/SetModalButtonEnabledAction.js.map +0 -0
  941. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/StickerAction.d.ts +0 -0
  942. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/StickerAction.js +0 -0
  943. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/StickerAction.js.map +0 -0
  944. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/StickyAction.d.ts +0 -0
  945. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/StickyAction.js +0 -0
  946. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/StickyAction.js.map +0 -0
  947. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/SupportedVersionsAction.d.ts +0 -0
  948. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/SupportedVersionsAction.js +0 -0
  949. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/SupportedVersionsAction.js.map +0 -0
  950. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ThemeChangeAction.d.ts +0 -0
  951. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ThemeChangeAction.js +0 -0
  952. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/ThemeChangeAction.js.map +0 -0
  953. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/TurnServerActions.d.ts +0 -0
  954. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/TurnServerActions.js +0 -0
  955. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/TurnServerActions.js.map +0 -0
  956. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/UpdateDelayedEventAction.d.ts +0 -0
  957. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/UpdateDelayedEventAction.js +0 -0
  958. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/UpdateDelayedEventAction.js.map +0 -0
  959. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/UpdateStateAction.d.ts +0 -0
  960. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/UpdateStateAction.js +0 -0
  961. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/UpdateStateAction.js.map +0 -0
  962. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/UploadFileAction.d.ts +0 -0
  963. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/UploadFileAction.js +0 -0
  964. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/UploadFileAction.js.map +0 -0
  965. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/UserDirectorySearchAction.d.ts +0 -0
  966. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/UserDirectorySearchAction.js +0 -0
  967. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/UserDirectorySearchAction.js.map +0 -0
  968. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/VisibilityAction.d.ts +0 -0
  969. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/VisibilityAction.js +0 -0
  970. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/VisibilityAction.js.map +0 -0
  971. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/WidgetApiAction.d.ts +0 -0
  972. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/WidgetApiAction.js +0 -0
  973. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/WidgetApiAction.js.map +0 -0
  974. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/WidgetApiDirection.d.ts +0 -0
  975. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/WidgetApiDirection.js +0 -0
  976. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/WidgetApiDirection.js.map +0 -0
  977. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/WidgetConfigAction.d.ts +0 -0
  978. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/WidgetConfigAction.js +0 -0
  979. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/WidgetConfigAction.js.map +0 -0
  980. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/WidgetKind.d.ts +0 -0
  981. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/WidgetKind.js +0 -0
  982. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/WidgetKind.js.map +0 -0
  983. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/WidgetType.d.ts +0 -0
  984. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/WidgetType.js +0 -0
  985. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/interfaces/WidgetType.js.map +0 -0
  986. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/models/Widget.d.ts +0 -0
  987. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/models/Widget.js +0 -0
  988. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/models/Widget.js.map +0 -0
  989. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/models/WidgetEventCapability.d.ts +0 -0
  990. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/models/WidgetEventCapability.js +0 -0
  991. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/models/WidgetEventCapability.js.map +0 -0
  992. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/models/WidgetParser.d.ts +0 -0
  993. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/models/WidgetParser.js +0 -0
  994. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/models/WidgetParser.js.map +0 -0
  995. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/models/validation/url.d.ts +0 -0
  996. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/models/validation/url.js +0 -0
  997. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/models/validation/url.js.map +0 -0
  998. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/models/validation/utils.d.ts +0 -0
  999. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/models/validation/utils.js +0 -0
  1000. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/models/validation/utils.js.map +0 -0
  1001. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/templating/url-template.d.ts +0 -0
  1002. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/templating/url-template.js +0 -0
  1003. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/templating/url-template.js.map +0 -0
  1004. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/transport/ITransport.d.ts +0 -0
  1005. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/transport/ITransport.js +0 -0
  1006. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/transport/ITransport.js.map +0 -0
  1007. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/transport/PostmessageTransport.d.ts +0 -0
  1008. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/transport/PostmessageTransport.js +0 -0
  1009. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/transport/PostmessageTransport.js.map +0 -0
  1010. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/util/SimpleObservable.d.ts +0 -0
  1011. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/util/SimpleObservable.js +0 -0
  1012. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/lib/util/SimpleObservable.js.map +0 -0
  1013. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/package.json +0 -0
  1014. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/ClientWidgetApi.ts +0 -0
  1015. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/Symbols.ts +0 -0
  1016. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/WidgetApi.ts +0 -0
  1017. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/driver/WidgetDriver.ts +0 -0
  1018. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/index.ts +0 -0
  1019. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/ApiVersion.ts +0 -0
  1020. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/Capabilities.ts +0 -0
  1021. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/CapabilitiesAction.ts +0 -0
  1022. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/ContentLoadedAction.ts +0 -0
  1023. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/DownloadFileAction.ts +0 -0
  1024. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/GetMediaConfigAction.ts +0 -0
  1025. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/GetOpenIDAction.ts +0 -0
  1026. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/ICustomWidgetData.ts +0 -0
  1027. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/IJitsiWidgetData.ts +0 -0
  1028. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/IRoomAccountData.ts +0 -0
  1029. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/IRoomEvent.ts +0 -0
  1030. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/IStickerpickerWidgetData.ts +0 -0
  1031. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/IToDeviceMessage.ts +0 -0
  1032. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/IWidget.ts +0 -0
  1033. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/IWidgetApiErrorResponse.ts +0 -0
  1034. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/IWidgetApiRequest.ts +0 -0
  1035. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/IWidgetApiResponse.ts +0 -0
  1036. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/LanguageChangeAction.ts +0 -0
  1037. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/ModalButtonKind.ts +0 -0
  1038. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/ModalWidgetActions.ts +0 -0
  1039. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/NavigateAction.ts +0 -0
  1040. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/OpenIDCredentialsAction.ts +0 -0
  1041. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/ReadEventAction.ts +0 -0
  1042. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/ReadRelationsAction.ts +0 -0
  1043. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/ReadRoomAccountDataAction.ts +0 -0
  1044. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/ScreenshotAction.ts +0 -0
  1045. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/SendEventAction.ts +0 -0
  1046. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/SendToDeviceAction.ts +0 -0
  1047. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/SetModalButtonEnabledAction.ts +0 -0
  1048. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/StickerAction.ts +0 -0
  1049. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/StickyAction.ts +0 -0
  1050. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/SupportedVersionsAction.ts +0 -0
  1051. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/ThemeChangeAction.ts +0 -0
  1052. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/TurnServerActions.ts +0 -0
  1053. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/UpdateDelayedEventAction.ts +0 -0
  1054. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/UpdateStateAction.ts +0 -0
  1055. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/UploadFileAction.ts +0 -0
  1056. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/UserDirectorySearchAction.ts +0 -0
  1057. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/VisibilityAction.ts +0 -0
  1058. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/WidgetApiAction.ts +0 -0
  1059. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/WidgetApiDirection.ts +0 -0
  1060. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/WidgetConfigAction.ts +0 -0
  1061. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/WidgetKind.ts +0 -0
  1062. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/interfaces/WidgetType.ts +0 -0
  1063. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/models/Widget.ts +0 -0
  1064. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/models/WidgetEventCapability.ts +0 -0
  1065. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/models/WidgetParser.ts +0 -0
  1066. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/models/validation/url.ts +0 -0
  1067. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/models/validation/utils.ts +0 -0
  1068. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/templating/url-template.ts +0 -0
  1069. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/transport/ITransport.ts +0 -0
  1070. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/transport/PostmessageTransport.ts +0 -0
  1071. /package/node_modules/{matrix-widget-api → matrix-js-sdk/node_modules/matrix-widget-api}/src/util/SimpleObservable.ts +0 -0
  1072. /package/node_modules/{oidc-client-ts → matrix-js-sdk/node_modules/oidc-client-ts}/LICENSE +0 -0
  1073. /package/node_modules/{oidc-client-ts → matrix-js-sdk/node_modules/oidc-client-ts}/README.md +0 -0
  1074. /package/node_modules/{oidc-client-ts → matrix-js-sdk/node_modules/oidc-client-ts}/dist/browser/oidc-client-ts.js +0 -0
  1075. /package/node_modules/{oidc-client-ts → matrix-js-sdk/node_modules/oidc-client-ts}/dist/browser/oidc-client-ts.js.map +0 -0
  1076. /package/node_modules/{oidc-client-ts → matrix-js-sdk/node_modules/oidc-client-ts}/dist/browser/oidc-client-ts.min.js +0 -0
  1077. /package/node_modules/{oidc-client-ts → matrix-js-sdk/node_modules/oidc-client-ts}/dist/browser/oidc-client-ts.min.js.map +0 -0
  1078. /package/node_modules/{oidc-client-ts → matrix-js-sdk/node_modules/oidc-client-ts}/dist/esm/oidc-client-ts.js +0 -0
  1079. /package/node_modules/{oidc-client-ts → matrix-js-sdk/node_modules/oidc-client-ts}/dist/esm/oidc-client-ts.js.map +0 -0
  1080. /package/node_modules/{oidc-client-ts → matrix-js-sdk/node_modules/oidc-client-ts}/dist/esm/package.json +0 -0
  1081. /package/node_modules/{oidc-client-ts → matrix-js-sdk/node_modules/oidc-client-ts}/dist/types/oidc-client-ts.d.ts +0 -0
  1082. /package/node_modules/{oidc-client-ts → matrix-js-sdk/node_modules/oidc-client-ts}/dist/types/tsdoc-metadata.json +0 -0
  1083. /package/node_modules/{oidc-client-ts → matrix-js-sdk/node_modules/oidc-client-ts}/dist/umd/oidc-client-ts.js +0 -0
  1084. /package/node_modules/{oidc-client-ts → matrix-js-sdk/node_modules/oidc-client-ts}/dist/umd/oidc-client-ts.js.map +0 -0
  1085. /package/node_modules/{oidc-client-ts → matrix-js-sdk/node_modules/oidc-client-ts}/package.json +0 -0
  1086. /package/node_modules/{p-retry → matrix-js-sdk/node_modules/p-retry}/index.d.ts +0 -0
  1087. /package/node_modules/{p-retry → matrix-js-sdk/node_modules/p-retry}/index.js +0 -0
  1088. /package/node_modules/{is-network-error → matrix-js-sdk/node_modules/p-retry}/license +0 -0
  1089. /package/node_modules/{p-retry → matrix-js-sdk/node_modules/p-retry}/package.json +0 -0
  1090. /package/node_modules/{p-retry → matrix-js-sdk/node_modules/p-retry}/readme.md +0 -0
  1091. /package/node_modules/{sdp-transform → matrix-js-sdk/node_modules/sdp-transform}/.eslintrc.js +0 -0
  1092. /package/node_modules/{sdp-transform → matrix-js-sdk/node_modules/sdp-transform}/.github/FUNDING.yml +0 -0
  1093. /package/node_modules/{sdp-transform → matrix-js-sdk/node_modules/sdp-transform}/.github/codecov.yml +0 -0
  1094. /package/node_modules/{sdp-transform → matrix-js-sdk/node_modules/sdp-transform}/.github/dependabot.yml +0 -0
  1095. /package/node_modules/{sdp-transform → matrix-js-sdk/node_modules/sdp-transform}/.github/workflows/ci.yml +0 -0
  1096. /package/node_modules/{sdp-transform → matrix-js-sdk/node_modules/sdp-transform}/CHANGELOG.md +0 -0
  1097. /package/node_modules/{sdp-transform → matrix-js-sdk/node_modules/sdp-transform}/LICENSE +0 -0
  1098. /package/node_modules/{sdp-transform → matrix-js-sdk/node_modules/sdp-transform}/README.md +0 -0
  1099. /package/node_modules/{sdp-transform → matrix-js-sdk/node_modules/sdp-transform}/checker.js +0 -0
  1100. /package/node_modules/{sdp-transform → matrix-js-sdk/node_modules/sdp-transform}/lib/grammar.js +0 -0
  1101. /package/node_modules/{sdp-transform → matrix-js-sdk/node_modules/sdp-transform}/lib/index.js +0 -0
  1102. /package/node_modules/{sdp-transform → matrix-js-sdk/node_modules/sdp-transform}/lib/parser.js +0 -0
  1103. /package/node_modules/{sdp-transform → matrix-js-sdk/node_modules/sdp-transform}/lib/writer.js +0 -0
  1104. /package/node_modules/{sdp-transform → matrix-js-sdk/node_modules/sdp-transform}/package.json +0 -0
  1105. /package/node_modules/{unhomoglyph → matrix-js-sdk/node_modules/unhomoglyph}/CHANGELOG.md +0 -0
  1106. /package/node_modules/{unhomoglyph → matrix-js-sdk/node_modules/unhomoglyph}/LICENSE +0 -0
  1107. /package/node_modules/{unhomoglyph → matrix-js-sdk/node_modules/unhomoglyph}/README.md +0 -0
  1108. /package/node_modules/{unhomoglyph → matrix-js-sdk/node_modules/unhomoglyph}/data.json +0 -0
  1109. /package/node_modules/{unhomoglyph → matrix-js-sdk/node_modules/unhomoglyph}/index.d.ts +0 -0
  1110. /package/node_modules/{unhomoglyph → matrix-js-sdk/node_modules/unhomoglyph}/index.js +0 -0
  1111. /package/node_modules/{unhomoglyph → matrix-js-sdk/node_modules/unhomoglyph}/package.json +0 -0
  1112. /package/node_modules/{@borewit → music-metadata/node_modules/@borewit}/text-codec/LICENSE.txt +0 -0
  1113. /package/node_modules/{@borewit → music-metadata/node_modules/@borewit}/text-codec/README.md +0 -0
  1114. /package/node_modules/{@borewit → music-metadata/node_modules/@borewit}/text-codec/lib/index.d.ts +0 -0
  1115. /package/node_modules/{@borewit → music-metadata/node_modules/@borewit}/text-codec/lib/index.js +0 -0
  1116. /package/node_modules/{@borewit → music-metadata/node_modules/@borewit}/text-codec/package.json +0 -0
  1117. /package/node_modules/{@tokenizer → music-metadata/node_modules/@tokenizer}/inflate/LICENSE +0 -0
  1118. /package/node_modules/{@tokenizer → music-metadata/node_modules/@tokenizer}/inflate/README.md +0 -0
  1119. /package/node_modules/{@tokenizer → music-metadata/node_modules/@tokenizer}/inflate/lib/GzipHandler.d.ts +0 -0
  1120. /package/node_modules/{@tokenizer → music-metadata/node_modules/@tokenizer}/inflate/lib/GzipHandler.js +0 -0
  1121. /package/node_modules/{@tokenizer → music-metadata/node_modules/@tokenizer}/inflate/lib/ZipHandler.d.ts +0 -0
  1122. /package/node_modules/{@tokenizer → music-metadata/node_modules/@tokenizer}/inflate/lib/ZipHandler.js +0 -0
  1123. /package/node_modules/{@tokenizer → music-metadata/node_modules/@tokenizer}/inflate/lib/ZipToken.d.ts +0 -0
  1124. /package/node_modules/{@tokenizer → music-metadata/node_modules/@tokenizer}/inflate/lib/ZipToken.js +0 -0
  1125. /package/node_modules/{@tokenizer → music-metadata/node_modules/@tokenizer}/inflate/lib/index.d.ts +0 -0
  1126. /package/node_modules/{@tokenizer → music-metadata/node_modules/@tokenizer}/inflate/lib/index.js +0 -0
  1127. /package/node_modules/{@tokenizer → music-metadata/node_modules/@tokenizer}/inflate/package.json +0 -0
  1128. /package/node_modules/{@tokenizer → music-metadata/node_modules/@tokenizer}/token/README.md +0 -0
  1129. /package/node_modules/{@tokenizer → music-metadata/node_modules/@tokenizer}/token/index.d.ts +0 -0
  1130. /package/node_modules/{@tokenizer → music-metadata/node_modules/@tokenizer}/token/package.json +0 -0
  1131. /package/node_modules/{p-retry → music-metadata/node_modules/file-type}/license +0 -0
  1132. /package/node_modules/{file-type → music-metadata/node_modules/file-type}/package.json +0 -0
  1133. /package/node_modules/{file-type → music-metadata/node_modules/file-type}/readme.md +0 -0
  1134. /package/node_modules/{file-type → music-metadata/node_modules/file-type}/source/detectors/asf.js +0 -0
  1135. /package/node_modules/{file-type → music-metadata/node_modules/file-type}/source/detectors/ebml.js +0 -0
  1136. /package/node_modules/{file-type → music-metadata/node_modules/file-type}/source/detectors/png.js +0 -0
  1137. /package/node_modules/{file-type → music-metadata/node_modules/file-type}/source/detectors/zip.js +0 -0
  1138. /package/node_modules/{file-type → music-metadata/node_modules/file-type}/source/index.d.ts +0 -0
  1139. /package/node_modules/{file-type → music-metadata/node_modules/file-type}/source/index.js +0 -0
  1140. /package/node_modules/{file-type → music-metadata/node_modules/file-type}/source/index.test-d.ts +0 -0
  1141. /package/node_modules/{file-type → music-metadata/node_modules/file-type}/source/parser.js +0 -0
  1142. /package/node_modules/{file-type → music-metadata/node_modules/file-type}/source/supported.js +0 -0
  1143. /package/node_modules/{file-type → music-metadata/node_modules/file-type}/source/tokens.js +0 -0
  1144. /package/node_modules/{ieee754 → music-metadata/node_modules/ieee754}/LICENSE +0 -0
  1145. /package/node_modules/{ieee754 → music-metadata/node_modules/ieee754}/README.md +0 -0
  1146. /package/node_modules/{ieee754 → music-metadata/node_modules/ieee754}/index.d.ts +0 -0
  1147. /package/node_modules/{ieee754 → music-metadata/node_modules/ieee754}/index.js +0 -0
  1148. /package/node_modules/{ieee754 → music-metadata/node_modules/ieee754}/package.json +0 -0
  1149. /package/node_modules/{media-typer → music-metadata/node_modules/media-typer}/LICENSE +0 -0
  1150. /package/node_modules/{media-typer → music-metadata/node_modules/media-typer}/README.md +0 -0
  1151. /package/node_modules/{media-typer → music-metadata/node_modules/media-typer}/dist/index.d.ts +0 -0
  1152. /package/node_modules/{media-typer → music-metadata/node_modules/media-typer}/dist/index.js +0 -0
  1153. /package/node_modules/{media-typer → music-metadata/node_modules/media-typer}/dist/index.js.map +0 -0
  1154. /package/node_modules/{media-typer → music-metadata/node_modules/media-typer}/package.json +0 -0
  1155. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/LICENSE.txt +0 -0
  1156. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/README.md +0 -0
  1157. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/AbstractTokenizer.d.ts +0 -0
  1158. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/AbstractTokenizer.js +0 -0
  1159. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/BlobTokenizer.d.ts +0 -0
  1160. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/BlobTokenizer.js +0 -0
  1161. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/BufferTokenizer.d.ts +0 -0
  1162. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/BufferTokenizer.js +0 -0
  1163. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/FileTokenizer.d.ts +0 -0
  1164. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/FileTokenizer.js +0 -0
  1165. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/ReadStreamTokenizer.d.ts +0 -0
  1166. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/ReadStreamTokenizer.js +0 -0
  1167. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/core.d.ts +0 -0
  1168. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/core.js +0 -0
  1169. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/index.d.ts +0 -0
  1170. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/index.js +0 -0
  1171. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/stream/AbstractStreamReader.d.ts +0 -0
  1172. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/stream/AbstractStreamReader.js +0 -0
  1173. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/stream/Deferred.d.ts +0 -0
  1174. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/stream/Deferred.js +0 -0
  1175. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/stream/Errors.d.ts +0 -0
  1176. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/stream/Errors.js +0 -0
  1177. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/stream/StreamReader.d.ts +0 -0
  1178. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/stream/StreamReader.js +0 -0
  1179. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/stream/WebStreamByobReader.d.ts +0 -0
  1180. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/stream/WebStreamByobReader.js +0 -0
  1181. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/stream/WebStreamDefaultReader.d.ts +0 -0
  1182. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/stream/WebStreamDefaultReader.js +0 -0
  1183. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/stream/WebStreamReader.d.ts +0 -0
  1184. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/stream/WebStreamReader.js +0 -0
  1185. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/stream/WebStreamReaderFactory.d.ts +0 -0
  1186. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/stream/WebStreamReaderFactory.js +0 -0
  1187. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/stream/index.d.ts +0 -0
  1188. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/stream/index.js +0 -0
  1189. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/types.d.ts +0 -0
  1190. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/lib/types.js +0 -0
  1191. /package/node_modules/{strtok3 → music-metadata/node_modules/strtok3}/package.json +0 -0
  1192. /package/node_modules/{token-types → music-metadata/node_modules/token-types}/LICENSE.txt +0 -0
  1193. /package/node_modules/{token-types → music-metadata/node_modules/token-types}/README.md +0 -0
  1194. /package/node_modules/{token-types → music-metadata/node_modules/token-types}/lib/index.d.ts +0 -0
  1195. /package/node_modules/{token-types → music-metadata/node_modules/token-types}/lib/index.js +0 -0
  1196. /package/node_modules/{token-types → music-metadata/node_modules/token-types}/package.json +0 -0
  1197. /package/node_modules/{uint8array-extras → music-metadata/node_modules/uint8array-extras}/index.d.ts +0 -0
  1198. /package/node_modules/{uint8array-extras → music-metadata/node_modules/uint8array-extras}/index.js +0 -0
  1199. /package/node_modules/{uint8array-extras → music-metadata/node_modules/uint8array-extras}/license +0 -0
  1200. /package/node_modules/{uint8array-extras → music-metadata/node_modules/uint8array-extras}/package.json +0 -0
  1201. /package/node_modules/{uint8array-extras → music-metadata/node_modules/uint8array-extras}/readme.md +0 -0
  1202. /package/node_modules/{win-guid → music-metadata/node_modules/win-guid}/LICENSE.txt +0 -0
  1203. /package/node_modules/{win-guid → music-metadata/node_modules/win-guid}/README.md +0 -0
  1204. /package/node_modules/{win-guid → music-metadata/node_modules/win-guid}/lib/guid.d.ts +0 -0
  1205. /package/node_modules/{win-guid → music-metadata/node_modules/win-guid}/lib/guid.js +0 -0
  1206. /package/node_modules/{win-guid → music-metadata/node_modules/win-guid}/package.json +0 -0
@@ -1,2069 +0,0 @@
1
- import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.js";
2
- import { a as resolveMatrixAccountConfig } from "./account-config-BZWN9tGS.js";
3
- import { t as getMatrixRuntime } from "./runtime-6S3DNFNv.js";
4
- import { r as normalizeMatrixResolvableTarget, t as isMatrixQualifiedUserId } from "./target-ids-B-5aQxwn.js";
5
- import { n as MATRIX_REACTION_EVENT_TYPE, r as buildMatrixReactionContent, t as MATRIX_ANNOTATION_RELATION_TYPE } from "./reaction-common-DkrQdBSZ.js";
6
- import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
7
- import { createMessageReceiptFromOutboundResults } from "openclaw/plugin-sdk/channel-outbound";
8
- import { normalizeLowercaseStringOrEmpty, normalizeNullableString, normalizeOptionalString, normalizeOptionalStringifiedId } from "openclaw/plugin-sdk/string-coerce-runtime";
9
- import { FormatCapabilityProfile, convertMarkdownTables, findCodeRegions, isInsideCode, markdownToIR, renderMarkdownWithMarkers, tokenizeHtmlTags } from "openclaw/plugin-sdk/text-chunking";
10
- import { requireRuntimeConfig } from "openclaw/plugin-sdk/plugin-config-runtime";
11
- import { loadOutboundMediaFromUrl } from "openclaw/plugin-sdk/outbound-media";
12
- import { normalizePollInput } from "openclaw/plugin-sdk/poll-runtime";
13
- import MarkdownIt from "markdown-it";
14
- import { isAutoLinkedFileRef } from "openclaw/plugin-sdk/text-autolink-runtime";
15
- import { isVoiceMessageCompatibleAudio } from "openclaw/plugin-sdk/media-runtime";
16
- import { parseBuffer } from "music-metadata";
17
- import { KeyedAsyncQueue } from "openclaw/plugin-sdk/keyed-async-queue";
18
- //#region extensions/matrix/src/matrix/poll-types.ts
19
- /**
20
- * Matrix Poll Types (MSC3381)
21
- *
22
- * Defines types for Matrix poll events:
23
- * - m.poll.start - Creates a new poll
24
- * - m.poll.response - Records a vote
25
- * - m.poll.end - Closes a poll
26
- */
27
- const M_POLL_START = "m.poll.start";
28
- const M_POLL_RESPONSE = "m.poll.response";
29
- const M_POLL_END = "m.poll.end";
30
- const ORG_POLL_START = "org.matrix.msc3381.poll.start";
31
- const ORG_POLL_RESPONSE = "org.matrix.msc3381.poll.response";
32
- const ORG_POLL_END = "org.matrix.msc3381.poll.end";
33
- const POLL_EVENT_TYPES = [
34
- M_POLL_START,
35
- M_POLL_RESPONSE,
36
- M_POLL_END,
37
- ORG_POLL_START,
38
- ORG_POLL_RESPONSE,
39
- ORG_POLL_END
40
- ];
41
- const POLL_START_TYPES = [M_POLL_START, ORG_POLL_START];
42
- const POLL_RESPONSE_TYPES = [M_POLL_RESPONSE, ORG_POLL_RESPONSE];
43
- const POLL_END_TYPES = [M_POLL_END, ORG_POLL_END];
44
- function isPollStartType(eventType) {
45
- return POLL_START_TYPES.includes(eventType);
46
- }
47
- function isPollResponseType(eventType) {
48
- return POLL_RESPONSE_TYPES.includes(eventType);
49
- }
50
- function isPollEndType(eventType) {
51
- return POLL_END_TYPES.includes(eventType);
52
- }
53
- function isPollEventType(eventType) {
54
- return POLL_EVENT_TYPES.includes(eventType);
55
- }
56
- function getTextContent(text) {
57
- if (!text) return "";
58
- return text["m.text"] ?? text["org.matrix.msc1767.text"] ?? text.body ?? "";
59
- }
60
- function parsePollStart(content) {
61
- const poll = content["m.poll.start"] ?? content[ORG_POLL_START] ?? content["m.poll"];
62
- if (!poll) return null;
63
- const question = getTextContent(poll.question).trim();
64
- if (!question) return null;
65
- const answers = poll.answers.map((answer) => ({
66
- id: answer.id,
67
- text: getTextContent(answer).trim()
68
- })).filter((answer) => answer.id.trim().length > 0 && answer.text.length > 0);
69
- if (answers.length === 0) return null;
70
- const maxSelectionsRaw = poll.max_selections;
71
- const maxSelections = typeof maxSelectionsRaw === "number" && Number.isFinite(maxSelectionsRaw) ? Math.floor(maxSelectionsRaw) : 1;
72
- return {
73
- question,
74
- answers,
75
- kind: poll.kind ?? "m.poll.disclosed",
76
- maxSelections: Math.min(Math.max(maxSelections, 1), answers.length)
77
- };
78
- }
79
- function parsePollStartContent(content) {
80
- const parsed = parsePollStart(content);
81
- if (!parsed) return null;
82
- return {
83
- eventId: "",
84
- roomId: "",
85
- sender: "",
86
- senderName: "",
87
- question: parsed.question,
88
- answers: parsed.answers.map((answer) => answer.text),
89
- kind: parsed.kind,
90
- maxSelections: parsed.maxSelections
91
- };
92
- }
93
- function formatPollAsText(summary) {
94
- return [
95
- "[Poll]",
96
- summary.question,
97
- "",
98
- ...summary.answers.map((answer, idx) => `${idx + 1}. ${answer}`)
99
- ].join("\n");
100
- }
101
- function resolvePollReferenceEventId(content) {
102
- if (!content || typeof content !== "object") return null;
103
- const relates = content["m.relates_to"];
104
- if (!relates || typeof relates.event_id !== "string") return null;
105
- const eventId = relates.event_id.trim();
106
- return eventId.length > 0 ? eventId : null;
107
- }
108
- function parsePollResponseAnswerIds(content) {
109
- if (!content || typeof content !== "object") return null;
110
- const response = content[M_POLL_RESPONSE] ?? content[ORG_POLL_RESPONSE];
111
- if (!response || !Array.isArray(response.answers)) return null;
112
- return response.answers.filter((answer) => typeof answer === "string");
113
- }
114
- function buildPollResultsSummary(params) {
115
- const parsed = parsePollStart(params.content);
116
- if (!parsed) return null;
117
- let pollClosedAt = Number.POSITIVE_INFINITY;
118
- for (const event of params.relationEvents) {
119
- if (event.unsigned?.redacted_because) continue;
120
- if (!isPollEndType(typeof event.type === "string" ? event.type : "")) continue;
121
- if (event.sender !== params.sender) continue;
122
- const ts = typeof event.origin_server_ts === "number" && Number.isFinite(event.origin_server_ts) ? event.origin_server_ts : Number.POSITIVE_INFINITY;
123
- if (ts < pollClosedAt) pollClosedAt = ts;
124
- }
125
- const answerIds = new Set(parsed.answers.map((answer) => answer.id));
126
- const latestVoteBySender = /* @__PURE__ */ new Map();
127
- const orderedRelationEvents = [...params.relationEvents].toSorted((left, right) => {
128
- const leftTs = typeof left.origin_server_ts === "number" && Number.isFinite(left.origin_server_ts) ? left.origin_server_ts : Number.POSITIVE_INFINITY;
129
- const rightTs = typeof right.origin_server_ts === "number" && Number.isFinite(right.origin_server_ts) ? right.origin_server_ts : Number.POSITIVE_INFINITY;
130
- if (leftTs !== rightTs) return leftTs - rightTs;
131
- return (left.event_id ?? "").localeCompare(right.event_id ?? "");
132
- });
133
- for (const event of orderedRelationEvents) {
134
- if (event.unsigned?.redacted_because) continue;
135
- if (!isPollResponseType(typeof event.type === "string" ? event.type : "")) continue;
136
- const senderId = normalizeOptionalString(event.sender) ?? "";
137
- if (!senderId) continue;
138
- const eventTs = typeof event.origin_server_ts === "number" && Number.isFinite(event.origin_server_ts) ? event.origin_server_ts : Number.POSITIVE_INFINITY;
139
- if (eventTs > pollClosedAt) continue;
140
- const rawAnswers = parsePollResponseAnswerIds(event.content) ?? [];
141
- const normalizedAnswers = Array.from(new Set(rawAnswers.map((answerId) => normalizeOptionalString(answerId) ?? "").filter((answerId) => answerIds.has(answerId)).slice(0, parsed.maxSelections)));
142
- latestVoteBySender.set(senderId, {
143
- ts: eventTs,
144
- eventId: typeof event.event_id === "string" ? event.event_id : "",
145
- answerIds: normalizedAnswers
146
- });
147
- }
148
- const voteCounts = new Map(parsed.answers.map((answer) => [answer.id, 0]));
149
- let totalVotes = 0;
150
- for (const latestVote of latestVoteBySender.values()) {
151
- if (latestVote.answerIds.length === 0) continue;
152
- totalVotes += 1;
153
- for (const answerId of latestVote.answerIds) voteCounts.set(answerId, (voteCounts.get(answerId) ?? 0) + 1);
154
- }
155
- return {
156
- eventId: params.pollEventId,
157
- roomId: params.roomId,
158
- sender: params.sender,
159
- senderName: params.senderName,
160
- question: parsed.question,
161
- answers: parsed.answers.map((answer) => answer.text),
162
- kind: parsed.kind,
163
- maxSelections: parsed.maxSelections,
164
- entries: parsed.answers.map((answer) => ({
165
- id: answer.id,
166
- text: answer.text,
167
- votes: voteCounts.get(answer.id) ?? 0
168
- })),
169
- totalVotes,
170
- closed: Number.isFinite(pollClosedAt)
171
- };
172
- }
173
- function formatPollResultsAsText(summary) {
174
- const lines = [
175
- summary.closed ? "[Poll closed]" : "[Poll]",
176
- summary.question,
177
- ""
178
- ];
179
- const revealResults = summary.kind === "m.poll.disclosed" || summary.closed;
180
- for (const [index, entry] of summary.entries.entries()) {
181
- if (!revealResults) {
182
- lines.push(`${index + 1}. ${entry.text}`);
183
- continue;
184
- }
185
- lines.push(`${index + 1}. ${entry.text} (${entry.votes} vote${entry.votes === 1 ? "" : "s"})`);
186
- }
187
- lines.push("");
188
- if (!revealResults) lines.push("Responses are hidden until the poll closes.");
189
- else lines.push(`Total voters: ${summary.totalVotes}`);
190
- return lines.join("\n");
191
- }
192
- function buildTextContent$1(body) {
193
- return {
194
- "m.text": body,
195
- "org.matrix.msc1767.text": body
196
- };
197
- }
198
- function buildPollFallbackText(question, answers) {
199
- if (answers.length === 0) return question;
200
- return `${question}\n${answers.map((answer, idx) => `${idx + 1}. ${answer}`).join("\n")}`;
201
- }
202
- function buildPollStartContent(poll) {
203
- const normalized = normalizePollInput(poll);
204
- const answers = normalized.options.map((option, idx) => ({
205
- id: `answer${idx + 1}`,
206
- ...buildTextContent$1(option)
207
- }));
208
- const isMultiple = normalized.maxSelections > 1;
209
- const fallbackText = buildPollFallbackText(normalized.question, answers.map((answer) => getTextContent(answer)));
210
- return {
211
- [M_POLL_START]: {
212
- question: buildTextContent$1(normalized.question),
213
- kind: isMultiple ? "m.poll.undisclosed" : "m.poll.disclosed",
214
- max_selections: normalized.maxSelections,
215
- answers
216
- },
217
- "m.text": fallbackText,
218
- "org.matrix.msc1767.text": fallbackText
219
- };
220
- }
221
- function buildPollResponseContent(pollEventId, answerIds) {
222
- return {
223
- [M_POLL_RESPONSE]: { answers: answerIds },
224
- [ORG_POLL_RESPONSE]: { answers: answerIds },
225
- "m.relates_to": {
226
- rel_type: "m.reference",
227
- event_id: pollEventId
228
- }
229
- };
230
- }
231
- //#endregion
232
- //#region extensions/matrix/src/matrix/format-profile.ts
233
- function createMatrixPrivateMarkers(markdown, exhaustedMessage) {
234
- const used = new Set(Array.from(markdown, (character) => character.charCodeAt(0)));
235
- for (const match of markdown.matchAll(/&#(?:x([0-9a-f]+)|(\d+));/giu)) {
236
- const radix = match[1] ? 16 : 10;
237
- const value = Number.parseInt(match[1] ?? match[2] ?? "", radix);
238
- if (Number.isFinite(value) && value <= 65535) used.add(value);
239
- }
240
- const markers = [];
241
- for (let code = 57344; code <= 63743 && markers.length < 3; code += 1) if (!used.has(code)) markers.push(String.fromCharCode(code));
242
- if (markers.length < 3) throw new Error(exhaustedMessage);
243
- return {
244
- open: markers[0] ?? "",
245
- close: markers[1] ?? "",
246
- padding: markers[2] ?? ""
247
- };
248
- }
249
- const MATRIX_FORMAT_PROFILE = FormatCapabilityProfile.define({
250
- mechanism: "html",
251
- constructs: {
252
- taskList: "fallback",
253
- image: "fallback"
254
- },
255
- chunk: {
256
- limit: 4e3,
257
- unit: "chars"
258
- }
259
- });
260
- function isMarkdownEscaped(markdown, index) {
261
- let slashCount = 0;
262
- let cursor = index - 1;
263
- while (cursor >= 0 && markdown[cursor] === "\\") {
264
- slashCount += 1;
265
- cursor -= 1;
266
- }
267
- return slashCount % 2 === 1;
268
- }
269
- function projectMatrixMarkdown(markdown) {
270
- return renderMarkdownWithMarkers({
271
- text: (markdown ?? "").replace(/\r\n?/gu, "\n"),
272
- styles: [],
273
- links: []
274
- }, {
275
- styleMarkers: {},
276
- escapeText: (text) => text
277
- }, MATRIX_FORMAT_PROFILE);
278
- }
279
- function renderMatrixMarkdownTables(markdown, mode) {
280
- return MATRIX_FORMAT_PROFILE.constructs.table === "native" && (mode === "off" || mode === "block") ? markdown : convertMarkdownTables(markdown, mode);
281
- }
282
- //#endregion
283
- //#region extensions/matrix/src/matrix/format-table-ranges.ts
284
- const tableParser = new MarkdownIt({
285
- html: false,
286
- linkify: false,
287
- typographer: false
288
- });
289
- function findMatrixTableSourceRanges(markdown) {
290
- const lineStarts = [0];
291
- for (let index = 0; index < markdown.length; index += 1) if (markdown[index] === "\n") lineStarts.push(index + 1);
292
- lineStarts.push(markdown.length);
293
- return tableParser.parse(markdown, {}).flatMap((token) => {
294
- if (token.type !== "table_open" || !token.map) return [];
295
- return [{
296
- start: lineStarts[token.map[0]] ?? 0,
297
- end: lineStarts[token.map[1]] ?? markdown.length
298
- }];
299
- });
300
- }
301
- //#endregion
302
- //#region extensions/matrix/src/matrix/format-spoiler-ranges.ts
303
- const spoilerParser = new MarkdownIt({
304
- html: false,
305
- linkify: true,
306
- typographer: false
307
- });
308
- function findInlineMetadataRanges(markdown, references) {
309
- const ranges = [];
310
- const labelStack = [];
311
- const codeRegions = findCodeRegions(markdown);
312
- const underlineTags = [...tokenizeHtmlTags(markdown)].filter((tag) => tag.name === "u" || tag.name === "ins");
313
- for (let index = 0; index < markdown.length - 1; index += 1) {
314
- const underlineTag = underlineTags.find((tag) => tag.start === index);
315
- if (underlineTag) {
316
- index = underlineTag.end - 1;
317
- continue;
318
- }
319
- if (isInsideCode(index, codeRegions)) continue;
320
- if (markdown[index] === "\n" && markdown[index + 1] === "\n") {
321
- labelStack.length = 0;
322
- continue;
323
- }
324
- if (markdown[index] === "[" && !isMarkdownEscaped(markdown, index)) {
325
- labelStack.push(index);
326
- continue;
327
- }
328
- if (markdown[index] === "]" && markdown[index + 1] === "(" && !isMarkdownEscaped(markdown, index) && labelStack.pop() !== void 0) {
329
- const start = index + 2;
330
- let cursor = start;
331
- while (/[\s]/u.test(markdown[cursor] ?? "")) cursor += 1;
332
- const destination = spoilerParser.helpers.parseLinkDestination(markdown, cursor, markdown.length);
333
- if (destination.ok) {
334
- cursor = destination.pos;
335
- while (/[\s]/u.test(markdown[cursor] ?? "")) cursor += 1;
336
- const title = spoilerParser.helpers.parseLinkTitle(markdown, cursor, markdown.length);
337
- if (title.ok) {
338
- cursor = title.pos;
339
- while (/[\s]/u.test(markdown[cursor] ?? "")) cursor += 1;
340
- }
341
- }
342
- if (destination.ok && markdown[cursor] === ")") {
343
- ranges.push({
344
- start,
345
- end: cursor + 1
346
- });
347
- index = cursor;
348
- }
349
- continue;
350
- }
351
- if (markdown[index] === "]" && markdown[index + 1] === "[" && !isMarkdownEscaped(markdown, index) && labelStack.pop() !== void 0) {
352
- let end = index + 2;
353
- while (end < markdown.length && (markdown[end] !== "]" || isMarkdownEscaped(markdown, end))) end += 1;
354
- const reference = spoilerParser.utils.normalizeReference(markdown.slice(index + 2, end));
355
- if (end < markdown.length && references.has(reference)) {
356
- ranges.push({
357
- start: index + 2,
358
- end
359
- });
360
- index = end;
361
- }
362
- continue;
363
- }
364
- if (markdown[index] === "]" && !isMarkdownEscaped(markdown, index)) labelStack.pop();
365
- const autolink = /^<[A-Za-z][A-Za-z0-9+.-]{1,31}:[^<>\s]*>/u.exec(markdown.slice(index));
366
- if (autolink && !isMarkdownEscaped(markdown, index)) {
367
- ranges.push({
368
- start: index,
369
- end: index + autolink[0].length
370
- });
371
- index += autolink[0].length - 1;
372
- continue;
373
- }
374
- const emailAutolink = /^<[^<>\s@]+@[^<>\s@]+>/u.exec(markdown.slice(index));
375
- if (emailAutolink && !isMarkdownEscaped(markdown, index)) {
376
- ranges.push({
377
- start: index,
378
- end: index + emailAutolink[0].length
379
- });
380
- index += emailAutolink[0].length - 1;
381
- }
382
- }
383
- return ranges;
384
- }
385
- function findMatrixMarkdownMetadataRanges(markdown) {
386
- const env = {};
387
- const tokens = spoilerParser.parse(markdown, env);
388
- const references = new Set(Object.keys(env.references ?? {}));
389
- const lineStarts = [0];
390
- for (let index = 0; index < markdown.length; index += 1) if (markdown[index] === "\n") lineStarts.push(index + 1);
391
- lineStarts.push(markdown.length);
392
- const ranges = tokens.flatMap((token) => {
393
- if (token.type !== "inline" || !token.map) return [];
394
- const start = lineStarts[token.map[0]] ?? 0;
395
- const end = lineStarts[token.map[1]] ?? markdown.length;
396
- return findInlineMetadataRanges(markdown.slice(start, end), references).map((range) => ({
397
- start: start + range.start,
398
- end: start + range.end
399
- }));
400
- });
401
- for (const match of markdown.matchAll(/^\s*\[[^\]\n]+\]:\s*.+$/gmu)) {
402
- const start = match.index ?? 0;
403
- const labelEnd = match[0].indexOf("]:");
404
- const reference = spoilerParser.utils.normalizeReference(match[0].slice(1, labelEnd));
405
- if (references.has(reference)) {
406
- let end = start + match[0].length;
407
- const continuation = /^\n[ \t]+(?:"[^"\n]*"|'[^'\n]*'|\([^\n)]*\))[ \t]*/u.exec(markdown.slice(end));
408
- end += continuation?.[0].length ?? 0;
409
- ranges.push({
410
- start,
411
- end
412
- });
413
- }
414
- }
415
- const codeRegions = findCodeRegions(markdown);
416
- for (const match of spoilerParser.linkify.match(markdown) ?? []) if (!isInsideCode(match.index, codeRegions)) ranges.push({
417
- start: match.index,
418
- end: match.lastIndex
419
- });
420
- return ranges;
421
- }
422
- function findMatrixSpoilerDelimiterOffsets(markdown) {
423
- const projected = projectMatrixMarkdown(markdown);
424
- const tokens = spoilerParser.parse(projected, {});
425
- const lineStarts = [0];
426
- for (let index = 0; index < projected.length; index += 1) if (projected[index] === "\n") lineStarts.push(index + 1);
427
- lineStarts.push(projected.length);
428
- const excludedRanges = [
429
- ...findCodeRegions(projected),
430
- ...findMatrixMarkdownMetadataRanges(projected),
431
- ...[...tokenizeHtmlTags(projected)].flatMap((tag) => tag.name === "u" || tag.name === "ins" ? [{
432
- start: tag.start,
433
- end: tag.end
434
- }] : [])
435
- ];
436
- const offsets = [];
437
- for (const token of tokens) {
438
- if (token.type !== "inline" || !token.map) continue;
439
- const start = lineStarts[token.map[0]] ?? 0;
440
- const end = lineStarts[token.map[1]] ?? projected.length;
441
- const candidates = [];
442
- for (let index = start; index < end - 1; index += 1) {
443
- if (projected[index] !== "|" || projected[index + 1] !== "|") continue;
444
- const excluded = excludedRanges.some((range) => index >= range.start && index < range.end);
445
- if (isMarkdownEscaped(projected, index) || excluded) continue;
446
- candidates.push(index);
447
- index += 1;
448
- }
449
- candidates.length -= candidates.length % 2;
450
- offsets.push(...candidates);
451
- }
452
- return [...new Set(offsets)].toSorted((left, right) => left - right);
453
- }
454
- function hasMatrixSpoilerMetadataCollision(markdown) {
455
- const projected = projectMatrixMarkdown(markdown);
456
- const ordinary = new Set(findMatrixSpoilerDelimiterOffsets(projected));
457
- const tables = findMatrixTableSourceRanges(projected);
458
- for (let index = 0; index < projected.length - 1; index += 1) {
459
- if (projected[index] !== "|" || projected[index + 1] !== "|") continue;
460
- if (ordinary.has(index) || isMarkdownEscaped(projected, index)) continue;
461
- if (tables.some((range) => index >= range.start && index < range.end)) continue;
462
- return true;
463
- }
464
- return false;
465
- }
466
- //#endregion
467
- //#region extensions/matrix/src/matrix/format.ts
468
- const MATRIX_STYLE_MARKERS = {
469
- underline: {
470
- open: "<u>",
471
- close: "</u>"
472
- },
473
- spoiler: {
474
- open: "<span data-mx-spoiler>",
475
- close: "</span>"
476
- }
477
- };
478
- const md = new MarkdownIt({
479
- html: false,
480
- linkify: true,
481
- breaks: true,
482
- typographer: false
483
- });
484
- md.enable("strikethrough");
485
- const { escapeHtml } = md.utils;
486
- const ESCAPED_MENTION_SENTINEL = "";
487
- const MENTION_PATTERN = /@[A-Za-z0-9._=+\-/:[\]]+/g;
488
- const MATRIX_MENTION_USER_ID_PATTERN = new RegExp(`^@[A-Za-z0-9._=+\\-/]+:(?:${/(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?)(?:\.(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?))*(?::\d+)?/.source}|\\[[0-9A-Fa-f:.]+\\](?::\\d+)?)$`);
489
- const TRIMMABLE_MENTION_SUFFIX = /[),.!?:;\]]/;
490
- const parseMatrixUnderline = (state, silent) => {
491
- if (state.src.charCodeAt(state.pos) !== 60) return false;
492
- const tag = tokenizeHtmlTags(state.src.slice(state.pos)).next().value;
493
- if (!tag || tag.start !== 0 || tag.name !== "u" && tag.name !== "ins") return false;
494
- if (!silent) {
495
- const token = state.push(tag.selfClosing ? "text" : tag.closing ? "matrix_underline_close" : "matrix_underline_open", tag.selfClosing ? "" : "u", tag.selfClosing ? 0 : tag.closing ? -1 : 1);
496
- if (tag.selfClosing) token.content = tag.raw;
497
- }
498
- state.pos += tag.end;
499
- return true;
500
- };
501
- md.inline.ruler.before("html_inline", "matrix_underline", parseMatrixUnderline);
502
- md.renderer.rules.matrix_underline_open = () => MATRIX_STYLE_MARKERS.underline.open;
503
- md.renderer.rules.matrix_underline_close = () => MATRIX_STYLE_MARKERS.underline.close;
504
- md.renderer.rules.matrix_spoiler_open = () => MATRIX_STYLE_MARKERS.spoiler.open;
505
- md.renderer.rules.matrix_spoiler_close = () => MATRIX_STYLE_MARKERS.spoiler.close;
506
- md.core.ruler.after("inline", "matrix_spoilers", (state) => {
507
- const markers = state.env.matrixSpoilerMarkers;
508
- if (!markers) return;
509
- for (const token of state.tokens) if (token.children?.length) token.children = normalizeMatrixSpoilerNesting(injectProtectedMatrixSpoilers(token.children, markers));
510
- });
511
- function shouldSuppressAutoLink(tokens, idx) {
512
- const token = tokens[idx];
513
- if (token?.type !== "link_open" || token.info !== "auto") return false;
514
- const href = token.attrGet("href") ?? "";
515
- const label = tokens[idx + 1]?.type === "text" ? tokens[idx + 1]?.content ?? "" : "";
516
- return Boolean(href && label && isAutoLinkedFileRef(href, label));
517
- }
518
- md.renderer.rules.image = (tokens, idx, options, env, self) => {
519
- const token = tokens[idx];
520
- return token?.children?.length ? self.renderInline(token.children, options, env) : escapeHtml(token?.content ?? "");
521
- };
522
- md.renderer.rules.html_block = (tokens, idx) => escapeHtml(tokens[idx]?.content ?? "");
523
- md.renderer.rules.html_inline = (tokens, idx) => escapeHtml(tokens[idx]?.content ?? "");
524
- md.renderer.rules.link_open = (tokens, idx, _options, _env, self) => shouldSuppressAutoLink(tokens, idx) ? "" : self.renderToken(tokens, idx, _options);
525
- md.renderer.rules.link_close = (tokens, idx, _options, _env, self) => {
526
- const openIdx = idx - 2;
527
- if (openIdx >= 0 && shouldSuppressAutoLink(tokens, openIdx)) return "";
528
- return self.renderToken(tokens, idx, _options);
529
- };
530
- function maskEscapedMentions(markdown) {
531
- let masked = "";
532
- let idx = 0;
533
- let codeFenceLength = 0;
534
- while (idx < markdown.length) {
535
- if (markdown[idx] === "`" && !isMarkdownEscaped(markdown, idx)) {
536
- let runLength = 1;
537
- while (markdown[idx + runLength] === "`") runLength += 1;
538
- if (codeFenceLength === 0) codeFenceLength = runLength;
539
- else if (runLength === codeFenceLength) codeFenceLength = 0;
540
- masked += markdown.slice(idx, idx + runLength);
541
- idx += runLength;
542
- continue;
543
- }
544
- if (codeFenceLength === 0 && markdown[idx] === "\\" && markdown[idx + 1] === "@") {
545
- masked += ESCAPED_MENTION_SENTINEL;
546
- idx += 2;
547
- continue;
548
- }
549
- masked += markdown[idx] ?? "";
550
- idx += 1;
551
- }
552
- return masked;
553
- }
554
- function restoreEscapedMentions(text) {
555
- return text.replaceAll(ESCAPED_MENTION_SENTINEL, "@");
556
- }
557
- function restoreEscapedMentionsInCode(text) {
558
- return text.replaceAll(ESCAPED_MENTION_SENTINEL, "\\@");
559
- }
560
- function restoreEscapedMentionsInBlockTokens(tokens) {
561
- for (const token of tokens) if ((token.type === "fence" || token.type === "code_block") && token.content) token.content = restoreEscapedMentionsInCode(token.content);
562
- }
563
- function isMentionStartBoundary(charBefore) {
564
- return !charBefore || !/[A-Za-z0-9_]/.test(charBefore);
565
- }
566
- function trimMentionSuffix(rawInput, endInput) {
567
- let raw = rawInput;
568
- let end = endInput;
569
- while (raw.length > 1 && TRIMMABLE_MENTION_SUFFIX.test(raw.at(-1) ?? "")) {
570
- if (raw.at(-1) === "]" && /\[[0-9A-Fa-f:.]+\](?::\d+)?$/i.test(raw)) break;
571
- raw = raw.slice(0, -1);
572
- end -= 1;
573
- }
574
- if (!raw.startsWith("@") || raw === "@") return null;
575
- return {
576
- raw,
577
- end
578
- };
579
- }
580
- function isMatrixMentionUserId(raw) {
581
- return isMatrixQualifiedUserId(raw) && MATRIX_MENTION_USER_ID_PATTERN.test(raw);
582
- }
583
- function buildMentionCandidate(raw, start) {
584
- const normalized = trimMentionSuffix(raw, start + raw.length);
585
- if (!normalized) return null;
586
- const kind = normalizeLowercaseStringOrEmpty(normalized.raw) === "@room" ? "room" : "user";
587
- const base = {
588
- raw: normalized.raw,
589
- start,
590
- end: normalized.end,
591
- kind
592
- };
593
- if (kind === "room") return base;
594
- const userCandidate = isMatrixMentionUserId(normalized.raw) ? {
595
- ...base,
596
- userId: normalized.raw
597
- } : null;
598
- if (!userCandidate) return null;
599
- return userCandidate;
600
- }
601
- function collectMentionCandidates(text) {
602
- const mentions = [];
603
- for (const match of text.matchAll(MENTION_PATTERN)) {
604
- const raw = match[0];
605
- const start = match.index ?? -1;
606
- if (start < 0 || !raw) continue;
607
- if (!isMentionStartBoundary(text[start - 1])) continue;
608
- const candidate = buildMentionCandidate(raw, start);
609
- if (!candidate) continue;
610
- mentions.push(candidate);
611
- }
612
- return mentions;
613
- }
614
- function createToken(sample, type, tag, nesting) {
615
- const TokenCtor = sample.constructor;
616
- return new TokenCtor(type, tag, nesting);
617
- }
618
- function createTextToken(sample, content) {
619
- const token = createToken(sample, "text", "", 0);
620
- token.content = content;
621
- return token;
622
- }
623
- function injectProtectedMatrixSpoilers(tokens, markers) {
624
- const result = [];
625
- for (const token of tokens) {
626
- if (token.type !== "text") {
627
- if (token.children?.length) token.children = normalizeMatrixSpoilerNesting(injectProtectedMatrixSpoilers(token.children, markers));
628
- result.push(token);
629
- continue;
630
- }
631
- let cursor = 0;
632
- for (let index = 0; index < token.content.length; index += 1) {
633
- const marker = token.content[index];
634
- if (marker !== markers.open && marker !== markers.close || token.content[index + 1] !== markers.padding) continue;
635
- if (index > cursor) result.push(createTextToken(token, token.content.slice(cursor, index)));
636
- result.push(createToken(token, marker === markers.open ? "matrix_spoiler_open" : "matrix_spoiler_close", "span", marker === markers.open ? 1 : -1));
637
- index += 1;
638
- cursor = index + 1;
639
- }
640
- if (cursor < token.content.length) result.push(createTextToken(token, token.content.slice(cursor)));
641
- }
642
- return result;
643
- }
644
- function copyInlineToken(sample, type, tag, nesting) {
645
- const token = createToken(sample, type, tag, nesting);
646
- token.markup = sample.markup;
647
- token.attrs = sample.attrs ? [...sample.attrs] : null;
648
- return token;
649
- }
650
- function normalizeMatrixSpoilerNesting(tokens) {
651
- const result = [];
652
- const stack = [];
653
- for (const token of tokens) {
654
- if (token.nesting === 1) {
655
- stack.push(token);
656
- result.push(token);
657
- continue;
658
- }
659
- if (token.nesting !== -1) {
660
- result.push(token);
661
- continue;
662
- }
663
- const openIndex = stack.findLastIndex((open) => open.tag === token.tag);
664
- if (openIndex < 0) {
665
- result.push(token);
666
- continue;
667
- }
668
- if (openIndex === stack.length - 1) {
669
- stack.pop();
670
- result.push(token);
671
- continue;
672
- }
673
- const crossing = stack.splice(openIndex + 1);
674
- for (const open of crossing.toReversed()) result.push(copyInlineToken(open, open.type.replace(/_open$/u, "_close"), open.tag, -1));
675
- stack.pop();
676
- result.push(token);
677
- for (const open of crossing) {
678
- result.push(copyInlineToken(open, open.type, open.tag, 1));
679
- stack.push(open);
680
- }
681
- }
682
- return result;
683
- }
684
- function createMentionLinkTokens(params) {
685
- const open = createToken(params.sample, "link_open", "a", 1);
686
- open.attrSet("href", params.href);
687
- return [
688
- open,
689
- createTextToken(params.sample, params.label),
690
- createToken(params.sample, "link_close", "a", -1)
691
- ];
692
- }
693
- function resolveMentionUserId(match) {
694
- if (match.kind !== "user") return null;
695
- return match.userId ?? null;
696
- }
697
- async function resolveMatrixSelfUserId(client) {
698
- const getUserId = client.getUserId;
699
- if (typeof getUserId !== "function") return null;
700
- return await Promise.resolve(getUserId.call(client)).catch(() => null);
701
- }
702
- function mutateInlineTokensWithMentions(params) {
703
- const nextChildren = [];
704
- let roomMentioned = false;
705
- let insideLinkDepth = 0;
706
- for (const child of params.children) {
707
- if (child.type === "link_open") {
708
- insideLinkDepth += 1;
709
- nextChildren.push(child);
710
- continue;
711
- }
712
- if (child.type === "link_close") {
713
- insideLinkDepth = Math.max(0, insideLinkDepth - 1);
714
- nextChildren.push(child);
715
- continue;
716
- }
717
- if (child.type !== "text" || !child.content) {
718
- nextChildren.push(child);
719
- continue;
720
- }
721
- const visibleContent = restoreEscapedMentions(child.content);
722
- if (insideLinkDepth > 0) {
723
- nextChildren.push(createTextToken(child, visibleContent));
724
- continue;
725
- }
726
- const matches = collectMentionCandidates(child.content);
727
- if (matches.length === 0) {
728
- nextChildren.push(createTextToken(child, visibleContent));
729
- continue;
730
- }
731
- let cursor = 0;
732
- for (const match of matches) {
733
- if (match.start > cursor) nextChildren.push(createTextToken(child, restoreEscapedMentions(child.content.slice(cursor, match.start))));
734
- cursor = match.end;
735
- if (match.kind === "room") {
736
- roomMentioned = true;
737
- nextChildren.push(createTextToken(child, match.raw));
738
- continue;
739
- }
740
- const resolvedUserId = resolveMentionUserId(match);
741
- if (!resolvedUserId || resolvedUserId === params.selfUserId) {
742
- nextChildren.push(createTextToken(child, match.raw));
743
- continue;
744
- }
745
- if (!params.seenUserIds.has(resolvedUserId)) {
746
- params.seenUserIds.add(resolvedUserId);
747
- params.userIds.push(resolvedUserId);
748
- }
749
- nextChildren.push(...createMentionLinkTokens({
750
- sample: child,
751
- href: `https://matrix.to/#/${encodeURIComponent(resolvedUserId)}`,
752
- label: match.raw
753
- }));
754
- }
755
- if (cursor < child.content.length) nextChildren.push(createTextToken(child, restoreEscapedMentions(child.content.slice(cursor))));
756
- }
757
- return {
758
- children: nextChildren,
759
- roomMentioned
760
- };
761
- }
762
- function compactLooseListTokens(tokens) {
763
- const listItemStack = [];
764
- for (const [index, token] of tokens.entries()) {
765
- if (token.type === "list_item_open") {
766
- listItemStack.push({
767
- level: token.level,
768
- immediateParagraphOpenIndexes: [],
769
- immediateParagraphCloseIndexes: []
770
- });
771
- continue;
772
- }
773
- if (token.type === "list_item_close") {
774
- const item = listItemStack.pop();
775
- if (item && item.immediateParagraphOpenIndexes.length === 1 && item.immediateParagraphCloseIndexes.length === 1) {
776
- const openIndex = item.immediateParagraphOpenIndexes[0];
777
- const closeIndex = item.immediateParagraphCloseIndexes[0];
778
- const openToken = openIndex === void 0 ? void 0 : tokens[openIndex];
779
- const closeToken = closeIndex === void 0 ? void 0 : tokens[closeIndex];
780
- if (openToken && closeToken) {
781
- openToken.hidden = true;
782
- closeToken.hidden = true;
783
- }
784
- }
785
- continue;
786
- }
787
- const currentItem = listItemStack.at(-1);
788
- if (!currentItem || token.level !== currentItem.level + 1) continue;
789
- if (token.type === "paragraph_open") currentItem.immediateParagraphOpenIndexes.push(index);
790
- else if (token.type === "paragraph_close") currentItem.immediateParagraphCloseIndexes.push(index);
791
- }
792
- }
793
- function markdownToMatrixHtml(markdown, options = {}) {
794
- if (hasMatrixSpoilerMetadataCollision(markdown)) return renderMatrixFallbackHtml(markdown);
795
- const tokens = parseMatrixMarkdown(projectMatrixMarkdown(markdown), options.tableMode);
796
- compactLooseListTokens(tokens);
797
- return md.renderer.render(tokens, md.options, {}).trimEnd();
798
- }
799
- function protectMatrixSpoilerDelimiters(markdown) {
800
- const offsets = findMatrixSpoilerDelimiterOffsets(markdown);
801
- if (offsets.length === 0) return { markdown };
802
- const markers = createMatrixPrivateMarkers(markdown, "Matrix spoiler formatting exhausted its private marker pool");
803
- let protectedMarkdown = "";
804
- let cursor = 0;
805
- for (const [index, offset] of offsets.entries()) {
806
- const marker = index % 2 === 0 ? markers.open : markers.close;
807
- protectedMarkdown += `${markdown.slice(cursor, offset)}${marker}${markers.padding}`;
808
- cursor = offset + 2;
809
- }
810
- protectedMarkdown += markdown.slice(cursor);
811
- return {
812
- markdown: protectedMarkdown,
813
- markers
814
- };
815
- }
816
- function parseMatrixMarkdown(markdown, tableMode) {
817
- const protectedSpoilers = protectMatrixSpoilerDelimiters(markdown);
818
- if (tableMode === "off") md.disable("table");
819
- try {
820
- return md.parse(protectedSpoilers.markdown, { matrixSpoilerMarkers: protectedSpoilers.markers });
821
- } finally {
822
- if (tableMode === "off") md.enable("table");
823
- }
824
- }
825
- function markdownToMatrixBody(markdown) {
826
- const projected = projectMatrixMarkdown(markdown);
827
- const offsets = findMatrixSpoilerDelimiterOffsets(projected);
828
- const metadataCollision = hasMatrixSpoilerMetadataCollision(projected);
829
- if (offsets.length === 0 && !metadataCollision) return projected;
830
- let body = projected;
831
- if (metadataCollision) body = "[Spoiler]";
832
- else for (let index = offsets.length - 2; index >= 0; index -= 2) {
833
- const open = offsets[index];
834
- const close = offsets[index + 1];
835
- if (open !== void 0 && close !== void 0) body = `${body.slice(0, open)}[Spoiler]${body.slice(close + 2)}`;
836
- }
837
- return renderMarkdownWithMarkers(markdownToIR(body, {
838
- enableHtmlUnderline: true,
839
- headingStyle: "rich",
840
- linkify: true
841
- }), {
842
- styleMarkers: {},
843
- escapeText: (text) => text
844
- }, MATRIX_FORMAT_PROFILE);
845
- }
846
- function renderMatrixFallbackHtml(markdown) {
847
- return `<p>${escapeHtml(markdownToMatrixBody(markdown)).replaceAll("\n", "<br>\n")}</p>`;
848
- }
849
- async function resolveMarkdownMentionState(params) {
850
- const tokens = parseMatrixMarkdown(maskEscapedMentions(projectMatrixMarkdown(params.markdown)), params.tableMode);
851
- restoreEscapedMentionsInBlockTokens(tokens);
852
- const selfUserId = await resolveMatrixSelfUserId(params.client);
853
- const userIds = [];
854
- const seenUserIds = /* @__PURE__ */ new Set();
855
- let roomMentioned = false;
856
- for (const token of tokens) {
857
- if (!token.children?.length) continue;
858
- const mutated = mutateInlineTokensWithMentions({
859
- children: token.children,
860
- userIds,
861
- seenUserIds,
862
- selfUserId
863
- });
864
- token.children = mutated.children;
865
- roomMentioned ||= mutated.roomMentioned;
866
- }
867
- const mentions = {};
868
- if (userIds.length > 0) mentions.user_ids = userIds;
869
- if (roomMentioned) mentions.room = true;
870
- return {
871
- tokens,
872
- mentions
873
- };
874
- }
875
- async function resolveMatrixMentionsInMarkdown(params) {
876
- return (await resolveMarkdownMentionState(params)).mentions;
877
- }
878
- async function renderMarkdownToMatrixHtmlWithMentions(params) {
879
- const state = await resolveMarkdownMentionState(params);
880
- if (hasMatrixSpoilerMetadataCollision(params.markdown)) {
881
- const redacted = markdownToMatrixBody(params.markdown);
882
- const redactedState = await resolveMarkdownMentionState({
883
- ...params,
884
- markdown: redacted
885
- });
886
- return {
887
- html: renderMatrixFallbackHtml(params.markdown),
888
- mentions: redactedState.mentions
889
- };
890
- }
891
- compactLooseListTokens(state.tokens);
892
- return {
893
- html: md.renderer.render(state.tokens, md.options, {}).trimEnd() || void 0,
894
- mentions: state.mentions
895
- };
896
- }
897
- //#endregion
898
- //#region extensions/matrix/src/matrix/send/chunking.ts
899
- const getCore$2 = () => getMatrixRuntime();
900
- function protectMatrixUnderlineTags(markdown) {
901
- const codeRegions = findCodeRegions(markdown);
902
- const metadataRanges = findMatrixMarkdownMetadataRanges(markdown);
903
- const tags = [...tokenizeHtmlTags(markdown)].filter((tag) => (tag.name === "u" || tag.name === "ins") && !tag.selfClosing && !isInsideCode(tag.start, codeRegions) && !isMarkdownEscaped(markdown, tag.start) && !metadataRanges.some((range) => tag.start >= range.start && tag.start < range.end));
904
- if (tags.length === 0) return { markdown };
905
- const markers = createMatrixPrivateMarkers(markdown, "Matrix underline chunking exhausted its private marker pool");
906
- let depth = 0;
907
- const replacements = tags.flatMap((tag) => {
908
- if (!tag.closing) {
909
- depth += 1;
910
- return [{
911
- tag,
912
- marker: depth === 1 ? markers.open : ""
913
- }];
914
- }
915
- if (depth === 0) return [];
916
- depth -= 1;
917
- return [{
918
- tag,
919
- marker: depth === 0 ? markers.close : ""
920
- }];
921
- });
922
- let protectedMarkdown = markdown;
923
- for (const { tag, marker } of replacements.toReversed()) protectedMarkdown = `${protectedMarkdown.slice(0, tag.start)}${marker}${markers.padding.repeat(tag.raw.length - marker.length)}${protectedMarkdown.slice(tag.end)}`;
924
- return {
925
- markdown: protectedMarkdown,
926
- markers
927
- };
928
- }
929
- function restoreMatrixStyleChunks(chunks, spoiler, underline) {
930
- const stack = [];
931
- const syntax = {
932
- spoiler: {
933
- open: "||",
934
- close: "||",
935
- markers: spoiler
936
- },
937
- underline: {
938
- open: "<u>",
939
- close: "</u>",
940
- markers: underline
941
- }
942
- };
943
- return chunks.map((chunk) => {
944
- let restored = stack.map((style) => syntax[style].open).join("");
945
- for (const character of chunk) {
946
- const opening = Object.keys(syntax).find((style) => character === syntax[style].markers?.open);
947
- const closing = Object.keys(syntax).find((style) => character === syntax[style].markers?.close);
948
- if (opening) {
949
- stack.push(opening);
950
- restored += syntax[opening].open;
951
- } else if (closing) {
952
- const stackIndex = stack.lastIndexOf(closing);
953
- if (stackIndex >= 0) {
954
- const above = stack.slice(stackIndex + 1);
955
- restored += above.toReversed().map((style) => syntax[style].close).join("");
956
- restored += syntax[closing].close;
957
- stack.splice(stackIndex, 1);
958
- restored += above.map((style) => syntax[style].open).join("");
959
- }
960
- } else if (character !== spoiler?.padding && character !== underline?.padding) restored += character;
961
- }
962
- return restored + stack.toReversed().map((style) => syntax[style].close).join("");
963
- });
964
- }
965
- function splitMatrixTableSegments(markdown) {
966
- const segments = [];
967
- let cursor = 0;
968
- for (const range of findMatrixTableSourceRanges(markdown)) {
969
- const plain = markdown.slice(cursor, range.start).replace(/(?:[ \t]*\n)+$/u, "");
970
- if (plain.trim()) segments.push({
971
- table: false,
972
- text: plain
973
- });
974
- const rawTable = markdown.slice(range.start, range.end).trimEnd();
975
- const indent = /^ +/u.exec(rawTable)?.[0] ?? "";
976
- const table = indent ? rawTable.split("\n").map((line) => line.startsWith(indent) ? line.slice(indent.length) : line).join("\n") : rawTable;
977
- segments.push({
978
- table: true,
979
- text: table
980
- });
981
- cursor = range.end;
982
- }
983
- const tail = markdown.slice(cursor).replace(/^(?:[ \t]*\n)+/u, "");
984
- if (tail.trim()) segments.push({
985
- table: false,
986
- text: tail
987
- });
988
- return segments;
989
- }
990
- function prepareMatrixSingleText(text, opts) {
991
- const normalizedText = text.replace(/\r\n?/gu, "\n");
992
- const trimmedText = opts.preserveWhitespace ? normalizedText : normalizedText.trim();
993
- const cfg = requireRuntimeConfig(opts.cfg, "Matrix text preparation");
994
- const tableMode = opts.tableMode ?? getCore$2().channel.text.resolveMarkdownTableMode({
995
- cfg,
996
- channel: "matrix",
997
- accountId: opts.accountId,
998
- supportsBlockTables: MATRIX_FORMAT_PROFILE.constructs.table === "native"
999
- });
1000
- const singleEventLimit = Math.min(getCore$2().channel.text.resolveTextChunkLimit(cfg, "matrix", opts.accountId), MATRIX_FORMAT_PROFILE.chunk.limit);
1001
- const convertedText = renderMatrixMarkdownTables(trimmedText, tableMode);
1002
- const eventTextLength = Math.max(convertedText.length, markdownToMatrixBody(convertedText).length);
1003
- return {
1004
- trimmedText,
1005
- convertedText,
1006
- singleEventLimit,
1007
- eventTextLength,
1008
- fitsInSingleEvent: eventTextLength <= singleEventLimit,
1009
- tableMode
1010
- };
1011
- }
1012
- function chunkMatrixText(text, opts) {
1013
- const preparedText = prepareMatrixSingleText(text, opts);
1014
- if (preparedText.fitsInSingleEvent) return {
1015
- ...preparedText,
1016
- chunks: preparedText.convertedText ? [preparedText.convertedText] : []
1017
- };
1018
- const cfg = requireRuntimeConfig(opts.cfg, "Matrix text chunking");
1019
- const chunkMode = getCore$2().channel.text.resolveChunkMode(cfg, "matrix", opts.accountId);
1020
- const collisionRedacted = hasMatrixSpoilerMetadataCollision(preparedText.convertedText) ? markdownToMatrixBody(preparedText.convertedText) : void 0;
1021
- const chunkSegment = (segmentText) => {
1022
- const protectedUnderline = protectMatrixUnderlineTags(hasMatrixSpoilerMetadataCollision(segmentText) ? markdownToMatrixBody(segmentText) : segmentText);
1023
- const protectedSpoilers = protectMatrixSpoilerDelimiters(protectedUnderline.markdown);
1024
- const wrapperReserve = (protectedSpoilers.markers ? 4 : 0) + (protectedUnderline.markers ? 7 : 0);
1025
- const privateMarkers = [protectedSpoilers.markers, protectedUnderline.markers].flatMap((markers) => markers ? [
1026
- markers.open,
1027
- markers.close,
1028
- markers.padding
1029
- ] : []);
1030
- let reserve = wrapperReserve;
1031
- while (reserve < preparedText.singleEventLimit) {
1032
- const protectedChunks = getCore$2().channel.text.chunkMarkdownTextWithMode(protectedSpoilers.markdown, preparedText.singleEventLimit - reserve, chunkMode);
1033
- const restored = restoreMatrixStyleChunks(protectedChunks, protectedSpoilers.markers, protectedUnderline.markers).filter((_, index) => {
1034
- return privateMarkers.reduce((value, marker) => value.replaceAll(marker, ""), protectedChunks[index] ?? "").length > 0;
1035
- });
1036
- const overflow = Math.max(0, ...restored.map((chunk) => Math.max(chunk.length, markdownToMatrixBody(chunk).length) - preparedText.singleEventLimit));
1037
- if (overflow === 0) return restored;
1038
- reserve += overflow;
1039
- }
1040
- throw new Error("Matrix text chunk limit is too small for formatted content");
1041
- };
1042
- const chunks = collisionRedacted !== void 0 ? chunkSegment(collisionRedacted) : preparedText.tableMode === "block" ? splitMatrixTableSegments(preparedText.convertedText).flatMap((segment) => {
1043
- if (!segment.table) return chunkSegment(segment.text);
1044
- return segment.text.length <= preparedText.singleEventLimit ? [segment.text] : chunkSegment(renderMatrixMarkdownTables(segment.text, "bullets"));
1045
- }) : chunkSegment(preparedText.convertedText);
1046
- return {
1047
- ...preparedText,
1048
- chunks
1049
- };
1050
- }
1051
- //#endregion
1052
- //#region extensions/matrix/src/matrix/send/client.ts
1053
- const loadMatrixSendClientRuntime = createLazyRuntimeModule(() => import("./client-bootstrap-CkAnkzB6.js").then((n) => n.t));
1054
- function resolveMediaMaxBytes(accountId, cfg) {
1055
- if (!cfg) throw new Error("Matrix media limits requires a resolved runtime config. Load and resolve config at the command or gateway boundary, then pass cfg through the runtime path.");
1056
- const matrixCfg = resolveMatrixAccountConfig({
1057
- cfg: requireRuntimeConfig(cfg, "Matrix media limits"),
1058
- accountId
1059
- });
1060
- const mediaMaxMb = typeof matrixCfg.mediaMaxMb === "number" ? matrixCfg.mediaMaxMb : void 0;
1061
- if (typeof mediaMaxMb === "number") return mediaMaxMb * 1024 * 1024;
1062
- }
1063
- async function withResolvedMatrixSendClient(opts, run) {
1064
- return await withResolvedMatrixClient({
1065
- ...opts,
1066
- readiness: "started"
1067
- }, run, "persist");
1068
- }
1069
- async function withResolvedMatrixControlClient(opts, run) {
1070
- return await withResolvedMatrixClient({
1071
- ...opts,
1072
- readiness: "none"
1073
- }, run);
1074
- }
1075
- async function withResolvedMatrixClient(opts, run, shutdownBehavior) {
1076
- if (opts.client) return await run(opts.client);
1077
- const { withResolvedRuntimeMatrixClient } = await loadMatrixSendClientRuntime();
1078
- return await withResolvedRuntimeMatrixClient(opts, run, shutdownBehavior);
1079
- }
1080
- //#endregion
1081
- //#region extensions/matrix/src/matrix/send/types.ts
1082
- const MsgType = {
1083
- Text: "m.text",
1084
- Image: "m.image",
1085
- Audio: "m.audio",
1086
- Video: "m.video",
1087
- File: "m.file",
1088
- Notice: "m.notice"
1089
- };
1090
- const RelationType = {
1091
- Annotation: MATRIX_ANNOTATION_RELATION_TYPE,
1092
- Replace: "m.replace",
1093
- Thread: "m.thread"
1094
- };
1095
- const EventType = {
1096
- Direct: "m.direct",
1097
- Reaction: MATRIX_REACTION_EVENT_TYPE,
1098
- RoomMessage: "m.room.message"
1099
- };
1100
- const MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY = "com.openclaw.finalized_preview";
1101
- /**
1102
- * MSC4357 live marker key.
1103
- * When present on event content, signals that the message is still being
1104
- * streamed (e.g. an LLM generating a response). Supporting clients render
1105
- * the message with a streaming animation until an edit without this marker
1106
- * arrives, indicating the stream is complete.
1107
- * @see https://github.com/matrix-org/matrix-spec-proposals/pull/4357
1108
- */
1109
- const MSC4357_LIVE_KEY = "org.matrix.msc4357.live";
1110
- //#endregion
1111
- //#region extensions/matrix/src/matrix/send/formatting.ts
1112
- const getCore$1 = () => getMatrixRuntime();
1113
- async function renderMatrixFormattedContent(params) {
1114
- const markdown = params.markdown ?? "";
1115
- const body = markdownToMatrixBody(markdown);
1116
- if (params.includeMentions === false) return {
1117
- body,
1118
- html: markdownToMatrixHtml(markdown, { tableMode: params.tableMode }).trimEnd() || void 0
1119
- };
1120
- const { html, mentions } = await renderMarkdownToMatrixHtmlWithMentions({
1121
- markdown,
1122
- client: params.client,
1123
- tableMode: params.tableMode
1124
- });
1125
- return {
1126
- body,
1127
- html,
1128
- mentions
1129
- };
1130
- }
1131
- function buildTextContent(body, relation, opts = {}) {
1132
- const msgtype = opts.msgtype ?? MsgType.Text;
1133
- return relation ? {
1134
- msgtype,
1135
- body,
1136
- "m.relates_to": relation
1137
- } : {
1138
- msgtype,
1139
- body
1140
- };
1141
- }
1142
- async function enrichMatrixFormattedContent(params) {
1143
- const { body, html, mentions } = await renderMatrixFormattedContent({
1144
- client: params.client,
1145
- markdown: params.markdown,
1146
- includeMentions: params.includeMentions,
1147
- tableMode: params.tableMode
1148
- });
1149
- params.content.body = body || params.content.body;
1150
- if (mentions) params.content["m.mentions"] = mentions;
1151
- else delete params.content["m.mentions"];
1152
- if (!html) {
1153
- delete params.content.format;
1154
- delete params.content.formatted_body;
1155
- return;
1156
- }
1157
- params.content.format = "org.matrix.custom.html";
1158
- params.content.formatted_body = html;
1159
- }
1160
- async function resolveMatrixMentionsForBody(params) {
1161
- return await resolveMatrixMentionsInMarkdown({
1162
- markdown: params.body ?? "",
1163
- client: params.client
1164
- });
1165
- }
1166
- function normalizeMentionUserIds(value) {
1167
- return Array.isArray(value) ? value.filter((entry) => typeof entry === "string" && entry.trim().length > 0) : [];
1168
- }
1169
- function extractMatrixMentions(content) {
1170
- const rawMentions = content?.["m.mentions"];
1171
- if (!rawMentions || typeof rawMentions !== "object") return {};
1172
- const mentions = rawMentions;
1173
- const normalized = {};
1174
- const userIds = normalizeMentionUserIds(mentions.user_ids);
1175
- if (userIds.length > 0) normalized.user_ids = userIds;
1176
- if (mentions.room === true) normalized.room = true;
1177
- return normalized;
1178
- }
1179
- function diffMatrixMentions(current, previous) {
1180
- const previousUserIds = new Set(previous.user_ids ?? []);
1181
- const newUserIds = (current.user_ids ?? []).filter((userId) => !previousUserIds.has(userId));
1182
- const delta = {};
1183
- if (newUserIds.length > 0) delta.user_ids = newUserIds;
1184
- if (current.room && !previous.room) delta.room = true;
1185
- return delta;
1186
- }
1187
- function buildReplyRelation(replyToId) {
1188
- const trimmed = replyToId?.trim();
1189
- if (!trimmed) return;
1190
- return { "m.in_reply_to": { event_id: trimmed } };
1191
- }
1192
- function buildThreadRelation(threadId, replyToId) {
1193
- const trimmed = threadId.trim();
1194
- const relation = {
1195
- rel_type: RelationType.Thread,
1196
- event_id: trimmed
1197
- };
1198
- const fallbackReplyToId = replyToId?.trim();
1199
- if (fallbackReplyToId) {
1200
- relation.is_falling_back = true;
1201
- relation["m.in_reply_to"] = { event_id: fallbackReplyToId };
1202
- }
1203
- return relation;
1204
- }
1205
- function resolveMatrixMsgType(contentType, _fileName) {
1206
- switch (getCore$1().media.mediaKindFromMime(contentType ?? "")) {
1207
- case "image": return MsgType.Image;
1208
- case "audio": return MsgType.Audio;
1209
- case "video": return MsgType.Video;
1210
- default: return MsgType.File;
1211
- }
1212
- }
1213
- function resolveMatrixVoiceDecision(opts) {
1214
- if (!opts.wantsVoice) return { useVoice: false };
1215
- if (isMatrixVoiceCompatibleAudio(opts)) return { useVoice: true };
1216
- return { useVoice: false };
1217
- }
1218
- function isMatrixVoiceCompatibleAudio(opts) {
1219
- return isVoiceMessageCompatibleAudio({
1220
- contentType: opts.contentType,
1221
- fileName: opts.fileName
1222
- });
1223
- }
1224
- //#endregion
1225
- //#region extensions/matrix/src/matrix/send/media.ts
1226
- const getCore = () => getMatrixRuntime();
1227
- function buildMatrixMediaInfo(params) {
1228
- const base = {};
1229
- if (Number.isFinite(params.size)) base.size = params.size;
1230
- if (params.mimetype) base.mimetype = params.mimetype;
1231
- if (params.imageInfo) {
1232
- const dimensional = {
1233
- ...base,
1234
- ...params.imageInfo
1235
- };
1236
- if (typeof params.durationMs === "number") return {
1237
- ...dimensional,
1238
- duration: params.durationMs
1239
- };
1240
- return dimensional;
1241
- }
1242
- if (typeof params.durationMs === "number") return {
1243
- ...base,
1244
- duration: params.durationMs
1245
- };
1246
- if (Object.keys(base).length === 0) return;
1247
- return base;
1248
- }
1249
- function buildMediaContent(params) {
1250
- const info = buildMatrixMediaInfo({
1251
- size: params.size,
1252
- mimetype: params.mimetype,
1253
- durationMs: params.durationMs,
1254
- imageInfo: params.imageInfo
1255
- });
1256
- const base = {
1257
- msgtype: params.msgtype,
1258
- body: params.body,
1259
- filename: params.filename,
1260
- info: info ?? void 0
1261
- };
1262
- if (!params.file && params.url) base.url = params.url;
1263
- if (params.file) base.file = params.file;
1264
- if (params.isVoice) {
1265
- base["org.matrix.msc3245.voice"] = {};
1266
- if (typeof params.durationMs === "number") base["org.matrix.msc1767.audio"] = { duration: params.durationMs };
1267
- }
1268
- if (params.relation) base["m.relates_to"] = params.relation;
1269
- return base;
1270
- }
1271
- const THUMBNAIL_MAX_SIDE = 800;
1272
- const THUMBNAIL_QUALITY = 80;
1273
- async function prepareImageInfo(params) {
1274
- const meta = await getCore().media.getImageMetadata(params.buffer).catch(() => null);
1275
- if (!meta) return;
1276
- const imageInfo = {
1277
- w: meta.width,
1278
- h: meta.height
1279
- };
1280
- if (Math.max(meta.width, meta.height) > THUMBNAIL_MAX_SIDE) try {
1281
- const thumbBuffer = await getCore().media.resizeToJpeg({
1282
- buffer: params.buffer,
1283
- maxSide: THUMBNAIL_MAX_SIDE,
1284
- quality: THUMBNAIL_QUALITY,
1285
- withoutEnlargement: true
1286
- });
1287
- const thumbMeta = await getCore().media.getImageMetadata(thumbBuffer).catch(() => null);
1288
- const result = await uploadMediaWithEncryption(params.client, thumbBuffer, {
1289
- contentType: "image/jpeg",
1290
- filename: "thumbnail.jpg",
1291
- encrypted: params.encrypted === true
1292
- });
1293
- if (result.file) imageInfo.thumbnail_file = result.file;
1294
- else imageInfo.thumbnail_url = result.url;
1295
- if (thumbMeta) imageInfo.thumbnail_info = {
1296
- w: thumbMeta.width,
1297
- h: thumbMeta.height,
1298
- mimetype: "image/jpeg",
1299
- size: thumbBuffer.byteLength
1300
- };
1301
- } catch {}
1302
- return imageInfo;
1303
- }
1304
- async function resolveMediaDurationMs(params) {
1305
- if (params.kind !== "audio" && params.kind !== "video") return;
1306
- try {
1307
- const fileInfo = params.contentType || params.fileName ? {
1308
- mimeType: params.contentType,
1309
- size: params.buffer.byteLength,
1310
- path: params.fileName
1311
- } : void 0;
1312
- const durationSeconds = (await parseBuffer(params.buffer, fileInfo, {
1313
- duration: true,
1314
- skipCovers: true
1315
- })).format.duration;
1316
- if (typeof durationSeconds === "number" && Number.isFinite(durationSeconds)) return Math.max(0, Math.round(durationSeconds * 1e3));
1317
- } catch {}
1318
- }
1319
- async function uploadFile(client, file, params) {
1320
- return await client.uploadContent(file, params.contentType, params.filename);
1321
- }
1322
- async function uploadMediaWithEncryption(client, buffer, params) {
1323
- if (params.encrypted && client.crypto) {
1324
- const encrypted = await client.crypto.encryptMedia(buffer);
1325
- const mxc = await client.uploadContent(encrypted.buffer, params.contentType, params.filename);
1326
- return {
1327
- url: mxc,
1328
- file: {
1329
- url: mxc,
1330
- ...encrypted.file
1331
- }
1332
- };
1333
- }
1334
- return { url: await uploadFile(client, buffer, params) };
1335
- }
1336
- /**
1337
- * Upload media with optional encryption for E2EE rooms.
1338
- */
1339
- async function uploadMediaMaybeEncrypted(client, roomId, buffer, params) {
1340
- const isEncrypted = Boolean(client.crypto && await client.crypto.isRoomEncrypted(roomId));
1341
- return await uploadMediaWithEncryption(client, buffer, {
1342
- ...params,
1343
- encrypted: isEncrypted
1344
- });
1345
- }
1346
- //#endregion
1347
- //#region extensions/matrix/src/matrix/direct-room.ts
1348
- var direct_room_exports = /* @__PURE__ */ __exportAll({
1349
- hasDirectMatrixMemberFlag: () => hasDirectMatrixMemberFlag,
1350
- inspectMatrixDirectRoomEvidence: () => inspectMatrixDirectRoomEvidence,
1351
- isStrictDirectMembership: () => isStrictDirectMembership,
1352
- isStrictDirectRoom: () => isStrictDirectRoom,
1353
- readJoinedMatrixMembers: () => readJoinedMatrixMembers
1354
- });
1355
- function normalizeJoinedMatrixMembers(joinedMembers) {
1356
- if (!Array.isArray(joinedMembers)) return [];
1357
- return joinedMembers.map((entry) => normalizeNullableString(entry)).filter((entry) => Boolean(entry));
1358
- }
1359
- function isStrictDirectMembership(params) {
1360
- const selfUserId = normalizeNullableString(params.selfUserId);
1361
- const remoteUserId = normalizeNullableString(params.remoteUserId);
1362
- const joinedMembers = params.joinedMembers ?? [];
1363
- return Boolean(selfUserId && remoteUserId && joinedMembers.length === 2 && joinedMembers.includes(selfUserId) && joinedMembers.includes(remoteUserId));
1364
- }
1365
- async function readJoinedMatrixMembers(client, roomId) {
1366
- try {
1367
- return normalizeJoinedMatrixMembers(await client.getJoinedRoomMembers(roomId));
1368
- } catch {
1369
- return null;
1370
- }
1371
- }
1372
- async function hasDirectMatrixMemberFlag(client, roomId, userId) {
1373
- const normalizedUserId = normalizeNullableString(userId);
1374
- if (!normalizedUserId) return null;
1375
- try {
1376
- const state = await client.getRoomStateEvent(roomId, "m.room.member", normalizedUserId);
1377
- if (state?.is_direct === true) return true;
1378
- if (state?.is_direct === false) return false;
1379
- return null;
1380
- } catch {
1381
- return null;
1382
- }
1383
- }
1384
- async function inspectMatrixDirectRoomEvidence(params) {
1385
- const selfUserId = params.selfUserId !== void 0 ? normalizeNullableString(params.selfUserId) : normalizeNullableString(await params.client.getUserId().catch(() => null));
1386
- const joinedMembers = await readJoinedMatrixMembers(params.client, params.roomId);
1387
- const strict = isStrictDirectMembership({
1388
- selfUserId,
1389
- remoteUserId: params.remoteUserId,
1390
- joinedMembers
1391
- });
1392
- if (!strict) return {
1393
- joinedMembers,
1394
- strict: false,
1395
- viaMemberState: false,
1396
- memberStateFlag: null
1397
- };
1398
- const memberStateFlag = await hasDirectMatrixMemberFlag(params.client, params.roomId, selfUserId);
1399
- return {
1400
- joinedMembers,
1401
- strict,
1402
- viaMemberState: memberStateFlag === true,
1403
- memberStateFlag
1404
- };
1405
- }
1406
- async function isStrictDirectRoom(params) {
1407
- return (await inspectMatrixDirectRoomEvidence({
1408
- client: params.client,
1409
- roomId: params.roomId,
1410
- remoteUserId: params.remoteUserId,
1411
- selfUserId: params.selfUserId
1412
- })).strict;
1413
- }
1414
- //#endregion
1415
- //#region extensions/matrix/src/matrix/direct-management.ts
1416
- var direct_management_exports = /* @__PURE__ */ __exportAll({
1417
- inspectMatrixDirectRooms: () => inspectMatrixDirectRooms,
1418
- persistMatrixDirectRoomMapping: () => persistMatrixDirectRoomMapping,
1419
- promoteMatrixDirectRoomCandidate: () => promoteMatrixDirectRoomCandidate,
1420
- repairMatrixDirectRooms: () => repairMatrixDirectRooms
1421
- });
1422
- const DIRECT_ACCOUNT_DATA_QUEUE_KEY = EventType.Direct;
1423
- const directAccountDataWriteQueues = /* @__PURE__ */ new WeakMap();
1424
- async function readMatrixDirectAccountData(client) {
1425
- try {
1426
- const direct = await client.getAccountData(EventType.Direct);
1427
- return direct && typeof direct === "object" && !Array.isArray(direct) ? direct : {};
1428
- } catch {
1429
- return {};
1430
- }
1431
- }
1432
- function normalizeRemoteUserId(remoteUserId) {
1433
- const normalized = normalizeOptionalString(remoteUserId) ?? "";
1434
- if (!isMatrixQualifiedUserId(normalized)) throw new Error(`Matrix user IDs must be fully qualified (got "${remoteUserId}")`);
1435
- return normalized;
1436
- }
1437
- function normalizeMappedRoomIds(direct, remoteUserId) {
1438
- const current = direct[remoteUserId];
1439
- if (!Array.isArray(current)) return [];
1440
- const seen = /* @__PURE__ */ new Set();
1441
- const normalized = [];
1442
- for (const value of current) {
1443
- const roomId = normalizeOptionalString(value) ?? "";
1444
- if (!roomId || seen.has(roomId)) continue;
1445
- seen.add(roomId);
1446
- normalized.push(roomId);
1447
- }
1448
- return normalized;
1449
- }
1450
- function normalizeRoomIdList(values) {
1451
- const seen = /* @__PURE__ */ new Set();
1452
- const normalized = [];
1453
- for (const value of values) {
1454
- const roomId = value.trim();
1455
- if (!roomId || seen.has(roomId)) continue;
1456
- seen.add(roomId);
1457
- normalized.push(roomId);
1458
- }
1459
- return normalized;
1460
- }
1461
- function hasMatrixDirectRoomMappings(params) {
1462
- const current = normalizeMappedRoomIds(params.directContent, params.remoteUserId);
1463
- const next = normalizeRoomIdList([...params.roomIds, ...current]);
1464
- return current.length === next.length && current.every((roomId, index) => roomId === next[index]);
1465
- }
1466
- function resolveDirectAccountDataWriteQueue(client) {
1467
- const existing = directAccountDataWriteQueues.get(client);
1468
- if (existing) return existing;
1469
- const created = new KeyedAsyncQueue();
1470
- directAccountDataWriteQueues.set(client, created);
1471
- return created;
1472
- }
1473
- async function writeMatrixDirectRoomMappings(params) {
1474
- return await resolveDirectAccountDataWriteQueue(params.client).enqueue(DIRECT_ACCOUNT_DATA_QUEUE_KEY, async () => {
1475
- const directContentBefore = await readMatrixDirectAccountData(params.client);
1476
- const directContentAfter = buildNextDirectContent({
1477
- directContent: directContentBefore,
1478
- remoteUserId: params.remoteUserId,
1479
- roomIds: params.roomIds
1480
- });
1481
- const changed = !hasMatrixDirectRoomMappings({
1482
- directContent: directContentBefore,
1483
- remoteUserId: params.remoteUserId,
1484
- roomIds: params.roomIds
1485
- });
1486
- if (changed) await params.client.setAccountData(EventType.Direct, directContentAfter);
1487
- return {
1488
- changed,
1489
- directContentBefore,
1490
- directContentAfter
1491
- };
1492
- });
1493
- }
1494
- async function classifyDirectRoomCandidate(params) {
1495
- const evidence = await inspectMatrixDirectRoomEvidence({
1496
- client: params.client,
1497
- roomId: params.roomId,
1498
- remoteUserId: params.remoteUserId,
1499
- selfUserId: params.selfUserId
1500
- });
1501
- return {
1502
- roomId: params.roomId,
1503
- joinedMembers: evidence.joinedMembers,
1504
- strict: evidence.strict && (params.source === "account-data" || evidence.memberStateFlag !== false),
1505
- explicit: evidence.strict && (params.source === "account-data" || evidence.memberStateFlag !== false) && (params.source === "account-data" || evidence.viaMemberState),
1506
- source: params.source
1507
- };
1508
- }
1509
- function buildNextDirectContent(params) {
1510
- const current = normalizeMappedRoomIds(params.directContent, params.remoteUserId);
1511
- const nextRooms = normalizeRoomIdList([...params.roomIds, ...current]);
1512
- return {
1513
- ...params.directContent,
1514
- [params.remoteUserId]: nextRooms
1515
- };
1516
- }
1517
- async function persistMatrixDirectRoomMapping(params) {
1518
- const remoteUserId = normalizeRemoteUserId(params.remoteUserId);
1519
- return (await writeMatrixDirectRoomMappings({
1520
- client: params.client,
1521
- remoteUserId,
1522
- roomIds: [params.roomId]
1523
- })).changed;
1524
- }
1525
- async function promoteMatrixDirectRoomCandidate(params) {
1526
- const remoteUserId = normalizeRemoteUserId(params.remoteUserId);
1527
- const evidence = await inspectMatrixDirectRoomEvidence({
1528
- client: params.client,
1529
- roomId: params.roomId,
1530
- remoteUserId,
1531
- selfUserId: params.selfUserId
1532
- });
1533
- if (!evidence.strict) return {
1534
- classifyAsDirect: false,
1535
- repaired: false,
1536
- reason: "not-strict"
1537
- };
1538
- if (evidence.memberStateFlag === false) return {
1539
- classifyAsDirect: false,
1540
- repaired: false,
1541
- reason: "local-explicit-false"
1542
- };
1543
- try {
1544
- const repaired = await persistMatrixDirectRoomMapping({
1545
- client: params.client,
1546
- remoteUserId,
1547
- roomId: params.roomId
1548
- });
1549
- return {
1550
- classifyAsDirect: true,
1551
- repaired,
1552
- roomId: params.roomId,
1553
- reason: repaired ? "promoted" : "already-mapped"
1554
- };
1555
- } catch {
1556
- return {
1557
- classifyAsDirect: true,
1558
- repaired: false,
1559
- roomId: params.roomId,
1560
- reason: "repair-failed"
1561
- };
1562
- }
1563
- }
1564
- async function inspectMatrixDirectRooms(params) {
1565
- const remoteUserId = normalizeRemoteUserId(params.remoteUserId);
1566
- const selfUserId = normalizeOptionalString(await params.client.getUserId().catch(() => null)) ?? null;
1567
- const mappedRoomIds = normalizeMappedRoomIds(await readMatrixDirectAccountData(params.client), remoteUserId);
1568
- const mappedRooms = await Promise.all(mappedRoomIds.map(async (roomId) => await classifyDirectRoomCandidate({
1569
- client: params.client,
1570
- roomId,
1571
- remoteUserId,
1572
- selfUserId,
1573
- source: "account-data"
1574
- })));
1575
- const mappedStrict = mappedRooms.find((room) => room.strict);
1576
- let joinedRooms = [];
1577
- if (typeof params.client.getJoinedRooms === "function") try {
1578
- const resolved = await params.client.getJoinedRooms();
1579
- joinedRooms = Array.isArray(resolved) ? resolved : [];
1580
- } catch {
1581
- joinedRooms = [];
1582
- }
1583
- const discoveredStrictRooms = [];
1584
- for (const roomId of normalizeRoomIdList(joinedRooms)) {
1585
- if (mappedRoomIds.includes(roomId)) continue;
1586
- const candidate = await classifyDirectRoomCandidate({
1587
- client: params.client,
1588
- roomId,
1589
- remoteUserId,
1590
- selfUserId,
1591
- source: "joined"
1592
- });
1593
- if (candidate.strict) discoveredStrictRooms.push(candidate);
1594
- }
1595
- const discoveredStrictRoomIds = discoveredStrictRooms.map((room) => room.roomId);
1596
- const discoveredExplicit = discoveredStrictRooms.find((room) => room.explicit);
1597
- return {
1598
- selfUserId,
1599
- remoteUserId,
1600
- mappedRoomIds,
1601
- mappedRooms,
1602
- discoveredStrictRoomIds,
1603
- activeRoomId: mappedStrict?.roomId ?? discoveredExplicit?.roomId ?? discoveredStrictRoomIds[0] ?? null
1604
- };
1605
- }
1606
- async function repairMatrixDirectRooms(params) {
1607
- const remoteUserId = normalizeRemoteUserId(params.remoteUserId);
1608
- const inspected = await inspectMatrixDirectRooms({
1609
- client: params.client,
1610
- remoteUserId
1611
- });
1612
- const activeRoomId = inspected.activeRoomId ?? await params.client.createDirectRoom(remoteUserId, { encrypted: params.encrypted === true });
1613
- const createdRoomId = inspected.activeRoomId ? null : activeRoomId;
1614
- const mappingWrite = await writeMatrixDirectRoomMappings({
1615
- client: params.client,
1616
- remoteUserId,
1617
- roomIds: [activeRoomId, ...inspected.discoveredStrictRoomIds]
1618
- });
1619
- return {
1620
- ...inspected,
1621
- activeRoomId,
1622
- createdRoomId,
1623
- changed: mappingWrite.changed,
1624
- directContentBefore: mappingWrite.directContentBefore,
1625
- directContentAfter: mappingWrite.directContentAfter
1626
- };
1627
- }
1628
- //#endregion
1629
- //#region extensions/matrix/src/matrix/send/targets.ts
1630
- function normalizeTarget(raw) {
1631
- const trimmed = raw.trim();
1632
- if (!trimmed) throw new Error("Matrix target is required (room:<id> or #alias)");
1633
- return trimmed;
1634
- }
1635
- function normalizeThreadId(raw) {
1636
- return normalizeOptionalStringifiedId(raw) ?? null;
1637
- }
1638
- const MAX_DIRECT_ROOM_CACHE_SIZE = 1024;
1639
- const directRoomCacheByClient = /* @__PURE__ */ new WeakMap();
1640
- function resolveDirectRoomCache(client) {
1641
- const existing = directRoomCacheByClient.get(client);
1642
- if (existing) return existing;
1643
- const created = /* @__PURE__ */ new Map();
1644
- directRoomCacheByClient.set(client, created);
1645
- return created;
1646
- }
1647
- function setDirectRoomCached(client, key, value) {
1648
- const directRoomCache = resolveDirectRoomCache(client);
1649
- directRoomCache.set(key, value);
1650
- if (directRoomCache.size > MAX_DIRECT_ROOM_CACHE_SIZE) {
1651
- const oldest = directRoomCache.keys().next().value;
1652
- if (oldest !== void 0) directRoomCache.delete(oldest);
1653
- }
1654
- }
1655
- async function resolveDirectRoomId(client, userId) {
1656
- const trimmed = userId.trim();
1657
- if (!isMatrixQualifiedUserId(trimmed)) throw new Error(`Matrix user IDs must be fully qualified (got "${trimmed}")`);
1658
- const selfUserId = (await client.getUserId().catch(() => null))?.trim() || null;
1659
- const directRoomCache = resolveDirectRoomCache(client);
1660
- const cached = directRoomCache.get(trimmed);
1661
- if (cached && await isStrictDirectRoom({
1662
- client,
1663
- roomId: cached,
1664
- remoteUserId: trimmed,
1665
- selfUserId
1666
- })) return cached;
1667
- if (cached) directRoomCache.delete(trimmed);
1668
- const inspection = await inspectMatrixDirectRooms({
1669
- client,
1670
- remoteUserId: trimmed
1671
- });
1672
- if (inspection.activeRoomId) {
1673
- setDirectRoomCached(client, trimmed, inspection.activeRoomId);
1674
- if (inspection.mappedRoomIds[0] !== inspection.activeRoomId) await persistMatrixDirectRoomMapping({
1675
- client,
1676
- remoteUserId: trimmed,
1677
- roomId: inspection.activeRoomId
1678
- }).catch(() => {});
1679
- return inspection.activeRoomId;
1680
- }
1681
- throw new Error(`No direct room found for ${trimmed} (m.direct missing)`);
1682
- }
1683
- async function resolveMatrixRoomId(client, raw) {
1684
- const target = normalizeMatrixResolvableTarget(normalizeTarget(raw));
1685
- if (normalizeLowercaseStringOrEmpty(target).startsWith("user:")) return await resolveDirectRoomId(client, target.slice(5));
1686
- if (isMatrixQualifiedUserId(target)) return await resolveDirectRoomId(client, target);
1687
- if (target.startsWith("#")) {
1688
- const resolved = await client.resolveRoom(target);
1689
- if (!resolved) throw new Error(`Matrix alias ${target} could not be resolved`);
1690
- return resolved;
1691
- }
1692
- return target;
1693
- }
1694
- //#endregion
1695
- //#region extensions/matrix/src/matrix/send.ts
1696
- var send_exports = /* @__PURE__ */ __exportAll({
1697
- chunkMatrixText: () => chunkMatrixText,
1698
- editMessageMatrix: () => editMessageMatrix,
1699
- prepareMatrixSingleText: () => prepareMatrixSingleText,
1700
- reactMatrixMessage: () => reactMatrixMessage,
1701
- resolveMatrixMentionsForBody: () => resolveMatrixMentionsForBody,
1702
- resolveMatrixRoomId: () => resolveMatrixRoomId,
1703
- sendMessageMatrix: () => sendMessageMatrix,
1704
- sendPollMatrix: () => sendPollMatrix,
1705
- sendReadReceiptMatrix: () => sendReadReceiptMatrix,
1706
- sendSingleTextMessageMatrix: () => sendSingleTextMessageMatrix,
1707
- sendTypingMatrix: () => sendTypingMatrix
1708
- });
1709
- function createMatrixSendReceipt(params) {
1710
- return createMessageReceiptFromOutboundResults({
1711
- kind: params.kind,
1712
- ...params.replyToId ? { replyToId: params.replyToId } : {},
1713
- ...params.threadId ? { threadId: params.threadId } : {},
1714
- results: params.platformMessageIds.map((messageId) => ({
1715
- channel: "matrix",
1716
- messageId,
1717
- roomId: params.roomId
1718
- }))
1719
- });
1720
- }
1721
- function isMatrixClient(value) {
1722
- return typeof value.sendEvent === "function";
1723
- }
1724
- function normalizeMatrixClientResolveOpts(opts) {
1725
- if (!opts) return {};
1726
- if (isMatrixClient(opts)) return { client: opts };
1727
- return {
1728
- client: opts.client,
1729
- cfg: opts.cfg,
1730
- timeoutMs: opts.timeoutMs,
1731
- accountId: opts.accountId
1732
- };
1733
- }
1734
- function resolvePreviousEditContent(previousEvent) {
1735
- if (!previousEvent || typeof previousEvent !== "object") return;
1736
- const eventRecord = previousEvent;
1737
- if (!eventRecord.content || typeof eventRecord.content !== "object") return;
1738
- const content = eventRecord.content;
1739
- const newContent = content["m.new_content"];
1740
- return newContent && typeof newContent === "object" ? newContent : content;
1741
- }
1742
- function resolvePreviousThreadId(previousEvent) {
1743
- if (!previousEvent || typeof previousEvent !== "object") return;
1744
- const content = previousEvent.content;
1745
- if (!content || typeof content !== "object") return;
1746
- const relation = content["m.relates_to"];
1747
- if (!relation || typeof relation !== "object") return;
1748
- const relationRecord = relation;
1749
- if (relationRecord.rel_type !== RelationType.Thread || typeof relationRecord.event_id !== "string") return;
1750
- return normalizeThreadId(relationRecord.event_id) ?? void 0;
1751
- }
1752
- function hasMatrixMentionsMetadata(content) {
1753
- return Boolean(content && Object.hasOwn(content, "m.mentions"));
1754
- }
1755
- function withMatrixExtraContentFields(content, extraContent) {
1756
- if (!extraContent) return content;
1757
- return {
1758
- ...content,
1759
- ...extraContent
1760
- };
1761
- }
1762
- async function resolvePreviousEditMentions(params) {
1763
- if (hasMatrixMentionsMetadata(params.content)) return extractMatrixMentions(params.content);
1764
- const body = typeof params.content?.body === "string" ? params.content.body : "";
1765
- if (!body) return {};
1766
- return await resolveMatrixMentionsForBody({
1767
- client: params.client,
1768
- body
1769
- });
1770
- }
1771
- async function sendMessageMatrix(to, message, opts) {
1772
- const trimmedMessage = message?.trim() ?? "";
1773
- if (!trimmedMessage && !opts.mediaUrl) throw new Error("Matrix send requires text or media");
1774
- return await withResolvedMatrixSendClient({
1775
- client: opts.client,
1776
- cfg: opts.cfg,
1777
- timeoutMs: opts.timeoutMs,
1778
- accountId: opts.accountId
1779
- }, async (client) => {
1780
- const roomId = await resolveMatrixRoomId(client, to);
1781
- const cfg = requireRuntimeConfig(opts.cfg, "Matrix send");
1782
- const { chunks, tableMode } = chunkMatrixText(trimmedMessage, {
1783
- cfg,
1784
- accountId: opts.accountId
1785
- });
1786
- const threadId = normalizeThreadId(opts.threadId);
1787
- const relation = threadId ? buildThreadRelation(threadId, opts.replyToId) : buildReplyRelation(opts.replyToId);
1788
- let pendingExtraContent = opts.extraContent;
1789
- const sendContent = async (content, kind) => {
1790
- const contentWithExtra = withMatrixExtraContentFields(content, pendingExtraContent);
1791
- pendingExtraContent = void 0;
1792
- const eventId = await client.sendMessage(roomId, contentWithExtra);
1793
- if (eventId) await opts.onDeliveryResult?.({
1794
- messageId: eventId,
1795
- roomId,
1796
- primaryMessageId: eventId,
1797
- receipt: createMatrixSendReceipt({
1798
- roomId,
1799
- platformMessageIds: [eventId],
1800
- kind,
1801
- replyToId: opts.replyToId,
1802
- threadId
1803
- })
1804
- });
1805
- return eventId;
1806
- };
1807
- const platformMessageIds = [];
1808
- let lastMessageId = "";
1809
- let receiptKind = "text";
1810
- if (opts.mediaUrl) {
1811
- const maxBytes = resolveMediaMaxBytes(opts.accountId, cfg);
1812
- const media = await loadOutboundMediaFromUrl(opts.mediaUrl, {
1813
- maxBytes,
1814
- mediaAccess: opts.mediaAccess,
1815
- mediaLocalRoots: opts.mediaLocalRoots,
1816
- mediaReadFile: opts.mediaReadFile
1817
- });
1818
- const uploaded = await uploadMediaMaybeEncrypted(client, roomId, media.buffer, {
1819
- contentType: media.contentType,
1820
- filename: media.fileName
1821
- });
1822
- const durationMs = await resolveMediaDurationMs({
1823
- buffer: media.buffer,
1824
- contentType: media.contentType,
1825
- fileName: media.fileName,
1826
- kind: media.kind === "sticker" ? "unknown" : media.kind ?? "unknown"
1827
- });
1828
- const baseMsgType = resolveMatrixMsgType(media.contentType, media.fileName);
1829
- const { useVoice } = resolveMatrixVoiceDecision({
1830
- wantsVoice: opts.audioAsVoice === true,
1831
- contentType: media.contentType,
1832
- fileName: media.fileName
1833
- });
1834
- const msgtype = useVoice ? MsgType.Audio : baseMsgType;
1835
- receiptKind = useVoice ? "voice" : "media";
1836
- const imageInfo = msgtype === MsgType.Image ? await prepareImageInfo({
1837
- buffer: media.buffer,
1838
- client,
1839
- encrypted: Boolean(uploaded.file)
1840
- }) : void 0;
1841
- const [firstChunk, ...rest] = chunks;
1842
- const captionMarkdown = useVoice ? "" : firstChunk ?? "";
1843
- const content = buildMediaContent({
1844
- msgtype,
1845
- body: useVoice ? "Voice message" : captionMarkdown || media.fileName || "(file)",
1846
- url: uploaded.url,
1847
- file: uploaded.file,
1848
- filename: media.fileName,
1849
- mimetype: media.contentType,
1850
- size: media.buffer.byteLength,
1851
- durationMs,
1852
- relation,
1853
- isVoice: useVoice,
1854
- imageInfo
1855
- });
1856
- await enrichMatrixFormattedContent({
1857
- client,
1858
- content,
1859
- markdown: captionMarkdown,
1860
- tableMode
1861
- });
1862
- const eventId = await sendContent(content, receiptKind);
1863
- lastMessageId = eventId ?? lastMessageId;
1864
- if (eventId) platformMessageIds.push(eventId);
1865
- const textChunks = useVoice ? chunks : rest;
1866
- const followupRelation = useVoice || threadId ? relation : void 0;
1867
- for (const chunk of textChunks) {
1868
- const text = chunk;
1869
- if (!text.trim()) continue;
1870
- const followup = buildTextContent(text, followupRelation);
1871
- await enrichMatrixFormattedContent({
1872
- client,
1873
- content: followup,
1874
- markdown: text,
1875
- tableMode
1876
- });
1877
- const followupEventId = await sendContent(followup, "text");
1878
- lastMessageId = followupEventId ?? lastMessageId;
1879
- if (followupEventId) platformMessageIds.push(followupEventId);
1880
- }
1881
- } else for (const chunk of chunks.length ? chunks : [""]) {
1882
- const text = chunk;
1883
- if (!text.trim()) continue;
1884
- const content = buildTextContent(text, relation);
1885
- await enrichMatrixFormattedContent({
1886
- client,
1887
- content,
1888
- markdown: text,
1889
- tableMode
1890
- });
1891
- const eventId = await sendContent(content, "text");
1892
- lastMessageId = eventId ?? lastMessageId;
1893
- if (eventId) platformMessageIds.push(eventId);
1894
- }
1895
- return {
1896
- messageId: lastMessageId || "unknown",
1897
- roomId,
1898
- primaryMessageId: platformMessageIds[0] ?? (lastMessageId || "unknown"),
1899
- receipt: createMatrixSendReceipt({
1900
- roomId,
1901
- platformMessageIds,
1902
- kind: receiptKind,
1903
- replyToId: opts.replyToId,
1904
- threadId
1905
- })
1906
- };
1907
- });
1908
- }
1909
- async function sendPollMatrix(to, poll, opts) {
1910
- if (!poll.question?.trim()) throw new Error("Matrix poll requires a question");
1911
- if (!poll.options?.length) throw new Error("Matrix poll requires options");
1912
- return await withResolvedMatrixSendClient({
1913
- client: opts.client,
1914
- cfg: opts.cfg,
1915
- timeoutMs: opts.timeoutMs,
1916
- accountId: opts.accountId
1917
- }, async (client) => {
1918
- const roomId = await resolveMatrixRoomId(client, to);
1919
- const pollContent = buildPollStartContent(poll);
1920
- const mentions = await resolveMatrixMentionsForBody({
1921
- client,
1922
- body: pollContent["m.text"] ?? pollContent["org.matrix.msc1767.text"] ?? poll.question ?? ""
1923
- });
1924
- const threadId = normalizeThreadId(opts.threadId);
1925
- const pollPayload = threadId ? {
1926
- ...pollContent,
1927
- "m.relates_to": buildThreadRelation(threadId)
1928
- } : { ...pollContent };
1929
- pollPayload["m.mentions"] = mentions;
1930
- return {
1931
- eventId: await client.sendEvent(roomId, "m.poll.start", pollPayload) ?? "unknown",
1932
- roomId
1933
- };
1934
- });
1935
- }
1936
- async function sendTypingMatrix(roomId, typing, optsOrTimeoutMs, client) {
1937
- const opts = typeof optsOrTimeoutMs === "number" ? {
1938
- timeoutMs: optsOrTimeoutMs,
1939
- ...client ? { client } : {}
1940
- } : {
1941
- ...normalizeMatrixClientResolveOpts(optsOrTimeoutMs),
1942
- ...client ? { client } : {}
1943
- };
1944
- await withResolvedMatrixControlClient({
1945
- client: opts.client,
1946
- cfg: opts.cfg,
1947
- timeoutMs: opts.timeoutMs,
1948
- accountId: opts.accountId
1949
- }, async (resolved) => {
1950
- const resolvedRoom = await resolveMatrixRoomId(resolved, roomId);
1951
- const resolvedTimeoutMs = typeof opts.timeoutMs === "number" ? opts.timeoutMs : 3e4;
1952
- await resolved.setTyping(resolvedRoom, typing, resolvedTimeoutMs);
1953
- });
1954
- }
1955
- async function sendReadReceiptMatrix(roomId, eventId, client) {
1956
- if (!eventId?.trim()) return;
1957
- await withResolvedMatrixControlClient({ client }, async (resolved) => {
1958
- const resolvedRoom = await resolveMatrixRoomId(resolved, roomId);
1959
- await resolved.sendReadReceipt(resolvedRoom, eventId.trim());
1960
- });
1961
- }
1962
- async function sendSingleTextMessageMatrix(roomId, text, opts) {
1963
- const { trimmedText, convertedText, singleEventLimit, eventTextLength, fitsInSingleEvent, tableMode } = prepareMatrixSingleText(text, {
1964
- cfg: opts.cfg,
1965
- accountId: opts.accountId
1966
- });
1967
- if (!trimmedText) throw new Error("Matrix single-message send requires text");
1968
- if (!fitsInSingleEvent) throw new Error(`Matrix single-message text exceeds limit (${eventTextLength} > ${singleEventLimit})`);
1969
- return await withResolvedMatrixSendClient({
1970
- client: opts.client,
1971
- cfg: opts.cfg,
1972
- accountId: opts.accountId
1973
- }, async (client) => {
1974
- const resolvedRoom = await resolveMatrixRoomId(client, roomId);
1975
- const normalizedThreadId = normalizeThreadId(opts.threadId);
1976
- const relation = normalizedThreadId ? buildThreadRelation(normalizedThreadId, opts.replyToId) : buildReplyRelation(opts.replyToId);
1977
- const content = withMatrixExtraContentFields(buildTextContent(convertedText, relation, { msgtype: opts.msgtype }), opts.extraContent);
1978
- await enrichMatrixFormattedContent({
1979
- client,
1980
- content,
1981
- markdown: convertedText,
1982
- includeMentions: opts.includeMentions,
1983
- tableMode
1984
- });
1985
- if (opts.live) content[MSC4357_LIVE_KEY] = {};
1986
- const eventId = await client.sendMessage(resolvedRoom, content);
1987
- return {
1988
- messageId: eventId ?? "unknown",
1989
- roomId: resolvedRoom,
1990
- primaryMessageId: eventId ?? "unknown",
1991
- receipt: createMatrixSendReceipt({
1992
- roomId: resolvedRoom,
1993
- platformMessageIds: eventId ? [eventId] : [],
1994
- kind: "text",
1995
- replyToId: opts.replyToId,
1996
- threadId: normalizedThreadId
1997
- })
1998
- };
1999
- });
2000
- }
2001
- async function getPreviousMatrixEvent(client, roomId, eventId) {
2002
- const getEvent = client.getEvent;
2003
- if (typeof getEvent !== "function") return null;
2004
- return await Promise.resolve(getEvent.call(client, roomId, eventId)).catch(() => null);
2005
- }
2006
- async function editMessageMatrix(roomId, originalEventId, newText, opts) {
2007
- return await withResolvedMatrixSendClient({
2008
- client: opts.client,
2009
- cfg: opts.cfg,
2010
- accountId: opts.accountId,
2011
- timeoutMs: opts.timeoutMs
2012
- }, async (client) => {
2013
- const resolvedRoom = await resolveMatrixRoomId(client, roomId);
2014
- const { convertedText, tableMode } = prepareMatrixSingleText(newText, {
2015
- cfg: requireRuntimeConfig(opts.cfg, "Matrix message edit"),
2016
- accountId: opts.accountId,
2017
- preserveWhitespace: true
2018
- });
2019
- const newContent = withMatrixExtraContentFields(buildTextContent(convertedText, void 0, { msgtype: opts.msgtype }), opts.extraContent);
2020
- await enrichMatrixFormattedContent({
2021
- client,
2022
- content: newContent,
2023
- markdown: convertedText,
2024
- includeMentions: opts.includeMentions,
2025
- tableMode
2026
- });
2027
- const previousEvent = await getPreviousMatrixEvent(client, resolvedRoom, originalEventId);
2028
- const replaceMentions = opts.includeMentions === false ? void 0 : diffMatrixMentions(extractMatrixMentions(newContent), await resolvePreviousEditMentions({
2029
- client,
2030
- content: resolvePreviousEditContent(previousEvent)
2031
- }));
2032
- const replaceRelation = {
2033
- rel_type: RelationType.Replace,
2034
- event_id: originalEventId
2035
- };
2036
- const threadId = normalizeThreadId(opts.threadId);
2037
- if (threadId) {
2038
- if (resolvePreviousThreadId(previousEvent) !== threadId) throw new Error("Matrix edit cannot add or change the original event thread relation.");
2039
- }
2040
- const content = {
2041
- ...newContent,
2042
- body: `* ${newContent.body}`,
2043
- ...typeof newContent.formatted_body === "string" ? { formatted_body: `* ${newContent.formatted_body}` } : {},
2044
- "m.new_content": newContent,
2045
- "m.relates_to": replaceRelation
2046
- };
2047
- if (replaceMentions !== void 0) content["m.mentions"] = replaceMentions;
2048
- if (opts.live) {
2049
- content[MSC4357_LIVE_KEY] = {};
2050
- content["m.new_content"][MSC4357_LIVE_KEY] = {};
2051
- }
2052
- return await client.sendMessage(resolvedRoom, content) ?? "";
2053
- });
2054
- }
2055
- async function reactMatrixMessage(roomId, messageId, emoji, opts) {
2056
- const clientOpts = normalizeMatrixClientResolveOpts(opts);
2057
- await withResolvedMatrixSendClient({
2058
- client: clientOpts.client,
2059
- cfg: clientOpts.cfg,
2060
- timeoutMs: clientOpts.timeoutMs,
2061
- accountId: clientOpts.accountId ?? void 0
2062
- }, async (resolved) => {
2063
- const resolvedRoom = await resolveMatrixRoomId(resolved, roomId);
2064
- const reaction = buildMatrixReactionContent(messageId, emoji);
2065
- await resolved.sendEvent(resolvedRoom, EventType.Reaction, reaction);
2066
- });
2067
- }
2068
- //#endregion
2069
- export { formatPollResultsAsText as C, parsePollStartContent as D, parsePollStart as E, resolvePollReferenceEventId as O, formatPollAsText as S, isPollStartType as T, MsgType as _, sendSingleTextMessageMatrix as a, buildPollResponseContent as b, resolveMatrixRoomId as c, repairMatrixDirectRooms as d, direct_room_exports as f, MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY as g, readJoinedMatrixMembers as h, sendPollMatrix as i, direct_management_exports as l, isStrictDirectMembership as m, reactMatrixMessage as n, sendTypingMatrix as o, hasDirectMatrixMemberFlag as p, sendMessageMatrix as r, send_exports as s, editMessageMatrix as t, promoteMatrixDirectRoomCandidate as u, chunkMatrixText as v, isPollEventType as w, buildPollResultsSummary as x, prepareMatrixSingleText as y };