@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
@@ -0,0 +1,3880 @@
1
+ /*! markdown-it 15.0.2 https://github.com/markdown-it/markdown-it @license MIT */
2
+ import * as mdurl from "mdurl";
3
+ import * as ucmicro from "uc.micro";
4
+ import { decodeHTMLStrict } from "entities";
5
+ import { LinkifyIt } from "linkify-it";
6
+ import punycode from "punycode.js";
7
+ //#region \0rolldown/runtime.js
8
+ var __defProp = Object.defineProperty;
9
+ var __exportAll = (all, no_symbols) => {
10
+ let target = {};
11
+ for (var name in all) __defProp(target, name, {
12
+ get: all[name],
13
+ enumerable: true
14
+ });
15
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
16
+ return target;
17
+ };
18
+ //#endregion
19
+ //#region src/common/utils.ts
20
+ /**
21
+ * Common utility functions exposed through `md.utils` for use by plugins.
22
+ *
23
+ * @module md.utils
24
+ */
25
+ var utils_exports = /* @__PURE__ */ __exportAll({
26
+ arrayReplaceAt: () => arrayReplaceAt,
27
+ asciiTrim: () => asciiTrim,
28
+ callable: () => callable,
29
+ escapeHtml: () => escapeHtml,
30
+ escapeRE: () => escapeRE,
31
+ fromCodePoint: () => fromCodePoint,
32
+ isMdAsciiPunct: () => isMdAsciiPunct,
33
+ isPunctChar: () => isPunctChar,
34
+ isPunctCharCode: () => isPunctCharCode,
35
+ isSpace: () => isSpace,
36
+ isValidEntityCode: () => isValidEntityCode,
37
+ isWhiteSpace: () => isWhiteSpace,
38
+ lib: () => lib,
39
+ normalizeReference: () => normalizeReference,
40
+ unescapeAll: () => unescapeAll,
41
+ unescapeMd: () => unescapeMd
42
+ });
43
+ function callable(cls) {
44
+ const wrapper = function(...args) {
45
+ return Reflect.construct(cls, args, new.target && new.target !== wrapper ? new.target : cls);
46
+ };
47
+ Object.defineProperty(wrapper, "name", { value: cls.name });
48
+ Object.setPrototypeOf(wrapper, cls);
49
+ wrapper.prototype = cls.prototype;
50
+ return wrapper;
51
+ }
52
+ /**
53
+ * Returns a copy of a token array with the token at `pos` replaced by
54
+ * `newElements`. Used to transform token streams without modifying the
55
+ * original array.
56
+ */
57
+ function arrayReplaceAt(src, pos, newElements) {
58
+ return [].concat(src.slice(0, pos), newElements, src.slice(pos + 1));
59
+ }
60
+ /** Checks whether a code point can be decoded from a numeric HTML entity. */
61
+ function isValidEntityCode(c) {
62
+ if (c >= 55296 && c <= 57343) return false;
63
+ if (c >= 64976 && c <= 65007) return false;
64
+ if ((c & 65535) === 65535 || (c & 65535) === 65534) return false;
65
+ if (c >= 0 && c <= 8) return false;
66
+ if (c === 11) return false;
67
+ if (c >= 14 && c <= 31) return false;
68
+ if (c >= 127 && c <= 159) return false;
69
+ if (c > 1114111) return false;
70
+ return true;
71
+ }
72
+ /**
73
+ * Converts a Unicode code point to a string, like `String.fromCodePoint()`,
74
+ * but does not throw for invalid input.
75
+ */
76
+ function fromCodePoint(c) {
77
+ if (c > 65535) {
78
+ c -= 65536;
79
+ const surrogate1 = 55296 + (c >> 10);
80
+ const surrogate2 = 56320 + (c & 1023);
81
+ return String.fromCharCode(surrogate1, surrogate2);
82
+ }
83
+ return String.fromCharCode(c);
84
+ }
85
+ var UNESCAPE_MD_RE = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g;
86
+ var UNESCAPE_ALL_RE = new RegExp(`${UNESCAPE_MD_RE.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`, "gi");
87
+ var DIGITAL_ENTITY_TEST_RE = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
88
+ function replaceEntityPattern(match, name) {
89
+ if (name.charCodeAt(0) === 35 && DIGITAL_ENTITY_TEST_RE.test(name)) {
90
+ const code = name[1].toLowerCase() === "x" ? parseInt(name.slice(2), 16) : parseInt(name.slice(1), 10);
91
+ if (isValidEntityCode(code)) return fromCodePoint(code);
92
+ return match;
93
+ }
94
+ const decoded = decodeHTMLStrict(match);
95
+ if (decoded !== match) return decoded;
96
+ return match;
97
+ }
98
+ /** Decodes Markdown backslash escapes. */
99
+ function unescapeMd(str) {
100
+ if (str.indexOf("\\") < 0) return str;
101
+ return str.replace(UNESCAPE_MD_RE, "$1");
102
+ }
103
+ /**
104
+ * Decodes Markdown backslash escapes and HTML character references in link
105
+ * destinations, link titles, and fenced code info strings.
106
+ */
107
+ function unescapeAll(str) {
108
+ if (str.indexOf("\\") < 0 && str.indexOf("&") < 0) return str;
109
+ return str.replace(UNESCAPE_ALL_RE, function(match, escaped, entity) {
110
+ if (escaped) return escaped;
111
+ return replaceEntityPattern(match, entity);
112
+ });
113
+ }
114
+ var HTML_ESCAPE_TEST_RE = /[&<>"]/;
115
+ var HTML_ESCAPE_REPLACE_RE = /[&<>"]/g;
116
+ var HTML_REPLACEMENTS = {
117
+ "&": "&amp;",
118
+ "<": "&lt;",
119
+ ">": "&gt;",
120
+ "\"": "&quot;"
121
+ };
122
+ function replaceUnsafeChar(ch) {
123
+ return HTML_REPLACEMENTS[ch];
124
+ }
125
+ /** Escapes HTML special characters in a string. */
126
+ function escapeHtml(str) {
127
+ if (HTML_ESCAPE_TEST_RE.test(str)) return str.replace(HTML_ESCAPE_REPLACE_RE, replaceUnsafeChar);
128
+ return str;
129
+ }
130
+ var REGEXP_ESCAPE_RE = /[.?*+^$[\]\\(){}|-]/g;
131
+ /** Escapes regular expression metacharacters in a string. */
132
+ function escapeRE(str) {
133
+ return str.replace(REGEXP_ESCAPE_RE, "\\$&");
134
+ }
135
+ /** Checks whether a character code is an ASCII space or tab. */
136
+ function isSpace(code) {
137
+ switch (code) {
138
+ case 9:
139
+ case 32: return true;
140
+ }
141
+ return false;
142
+ }
143
+ /**
144
+ * Checks whether a character code is whitespace recognized by Markdown.
145
+ *
146
+ * Matches the Unicode `Zs` category or `\t`, `\f`, `\v`, `\r`, `\n`.
147
+ */
148
+ function isWhiteSpace(code) {
149
+ if (code >= 8192 && code <= 8202) return true;
150
+ switch (code) {
151
+ case 9:
152
+ case 10:
153
+ case 11:
154
+ case 12:
155
+ case 13:
156
+ case 32:
157
+ case 160:
158
+ case 5760:
159
+ case 8239:
160
+ case 8287:
161
+ case 12288: return true;
162
+ }
163
+ return false;
164
+ }
165
+ /**
166
+ * Checks whether a character is Unicode punctuation or a symbol.
167
+ *
168
+ * Does not support astral characters.
169
+ */
170
+ function isPunctChar(ch) {
171
+ return ucmicro.P.test(ch) || ucmicro.S.test(ch);
172
+ }
173
+ /** Checks whether a Unicode code point is punctuation or a symbol. */
174
+ function isPunctCharCode(code) {
175
+ return isPunctChar(fromCodePoint(code));
176
+ }
177
+ /**
178
+ * Markdown ASCII punctuation characters.
179
+ *
180
+ * !, ", #, $, %, &, ', (, ), *, +, ,, -, ., /, :, ;, <, =, >, ?, @,
181
+ * [, \, ], ^, _, `, {, |, }, or ~
182
+ *
183
+ * http://spec.commonmark.org/0.15/#ascii-punctuation-character
184
+ *
185
+ * Don't confuse with Unicode punctuation. It lacks some characters in the
186
+ * ASCII range.
187
+ */
188
+ function isMdAsciiPunct(ch) {
189
+ switch (ch) {
190
+ case 33:
191
+ case 34:
192
+ case 35:
193
+ case 36:
194
+ case 37:
195
+ case 38:
196
+ case 39:
197
+ case 40:
198
+ case 41:
199
+ case 42:
200
+ case 43:
201
+ case 44:
202
+ case 45:
203
+ case 46:
204
+ case 47:
205
+ case 58:
206
+ case 59:
207
+ case 60:
208
+ case 61:
209
+ case 62:
210
+ case 63:
211
+ case 64:
212
+ case 91:
213
+ case 92:
214
+ case 93:
215
+ case 94:
216
+ case 95:
217
+ case 96:
218
+ case 123:
219
+ case 124:
220
+ case 125:
221
+ case 126: return true;
222
+ default: return false;
223
+ }
224
+ }
225
+ /** Normalizes `[reference labels]` for case-insensitive lookup. */
226
+ function normalizeReference(str) {
227
+ str = str.trim().replace(/\s+/g, " ");
228
+ return str.toLowerCase().toUpperCase();
229
+ }
230
+ function isAsciiTrimmable(c) {
231
+ return c === 32 || c === 9 || c === 10 || c === 13;
232
+ }
233
+ /**
234
+ * "Light" `.trim()` for blocks (headings, paragraphs), where Unicode spaces
235
+ * should be preserved.
236
+ */
237
+ function asciiTrim(str) {
238
+ let start = 0;
239
+ for (; start < str.length; start++) if (!isAsciiTrimmable(str.charCodeAt(start))) break;
240
+ let end = str.length - 1;
241
+ for (; end >= start; end--) if (!isAsciiTrimmable(str.charCodeAt(end))) break;
242
+ return str.slice(start, end + 1);
243
+ }
244
+ /**
245
+ * Libraries commonly used by markdown-it and its plugins, re-exported to
246
+ * reduce duplicate dependencies in browser bundles.
247
+ */
248
+ var lib = {
249
+ mdurl,
250
+ ucmicro
251
+ };
252
+ //#endregion
253
+ //#region src/helpers/parse_link_label.ts
254
+ /** Finds the end of a link or image label (`[label]`). */
255
+ function parseLinkLabel(state, start, disableNested) {
256
+ let level, found, marker, prevPos;
257
+ const max = state.posMax;
258
+ const oldPos = state.pos;
259
+ state.pos = start + 1;
260
+ level = 1;
261
+ while (state.pos < max) {
262
+ marker = state.src.charCodeAt(state.pos);
263
+ if (marker === 93) {
264
+ level--;
265
+ if (level === 0) {
266
+ found = true;
267
+ break;
268
+ }
269
+ }
270
+ prevPos = state.pos;
271
+ state.md.inline.skipToken(state);
272
+ if (marker === 91) {
273
+ if (prevPos === state.pos - 1) level++;
274
+ else if (disableNested) {
275
+ state.pos = oldPos;
276
+ return -1;
277
+ }
278
+ }
279
+ }
280
+ let labelEnd = -1;
281
+ if (found) labelEnd = state.pos;
282
+ state.pos = oldPos;
283
+ return labelEnd;
284
+ }
285
+ //#endregion
286
+ //#region src/helpers/parse_link_destination.ts
287
+ /** Parses the destination in `[label](destination "title")`. */
288
+ function parseLinkDestination(str, start, max) {
289
+ let code;
290
+ let pos = start;
291
+ const result = {
292
+ ok: false,
293
+ pos: 0,
294
+ str: ""
295
+ };
296
+ if (str.charCodeAt(pos) === 60) {
297
+ pos++;
298
+ while (pos < max) {
299
+ code = str.charCodeAt(pos);
300
+ if (code === 10) return result;
301
+ if (code === 60) return result;
302
+ if (code === 62) {
303
+ result.pos = pos + 1;
304
+ result.str = unescapeAll(str.slice(start + 1, pos));
305
+ result.ok = true;
306
+ return result;
307
+ }
308
+ if (code === 92 && pos + 1 < max) {
309
+ pos += 2;
310
+ continue;
311
+ }
312
+ pos++;
313
+ }
314
+ return result;
315
+ }
316
+ let level = 0;
317
+ while (pos < max) {
318
+ code = str.charCodeAt(pos);
319
+ if (code === 32) break;
320
+ if (code < 32 || code === 127) break;
321
+ if (code === 92 && pos + 1 < max) {
322
+ if (str.charCodeAt(pos + 1) === 32) {
323
+ pos++;
324
+ continue;
325
+ }
326
+ pos += 2;
327
+ continue;
328
+ }
329
+ if (code === 40) {
330
+ level++;
331
+ if (level > 32) return result;
332
+ }
333
+ if (code === 41) {
334
+ if (level === 0) break;
335
+ level--;
336
+ }
337
+ pos++;
338
+ }
339
+ if (start === pos) return result;
340
+ if (level !== 0) return result;
341
+ result.str = unescapeAll(str.slice(start, pos));
342
+ result.pos = pos;
343
+ result.ok = true;
344
+ return result;
345
+ }
346
+ //#endregion
347
+ //#region src/helpers/parse_link_title.ts
348
+ /**
349
+ * Parses the optional title in `[label](destination "title")` or
350
+ * `[label]: destination "title"`.
351
+ *
352
+ * `prev_state` continues a reference title on the next source line.
353
+ */
354
+ function parseLinkTitle(str, start, max, prev_state) {
355
+ let code;
356
+ let pos = start;
357
+ const state = {
358
+ ok: false,
359
+ can_continue: false,
360
+ pos: 0,
361
+ str: "",
362
+ marker: 0
363
+ };
364
+ if (prev_state) {
365
+ state.str = prev_state.str;
366
+ state.marker = prev_state.marker;
367
+ } else {
368
+ if (pos >= max) return state;
369
+ let marker = str.charCodeAt(pos);
370
+ if (marker !== 34 && marker !== 39 && marker !== 40) return state;
371
+ start++;
372
+ pos++;
373
+ if (marker === 40) marker = 41;
374
+ state.marker = marker;
375
+ }
376
+ while (pos < max) {
377
+ code = str.charCodeAt(pos);
378
+ if (code === state.marker) {
379
+ state.pos = pos + 1;
380
+ state.str += unescapeAll(str.slice(start, pos));
381
+ state.ok = true;
382
+ return state;
383
+ } else if (code === 40 && state.marker === 41) return state;
384
+ else if (code === 92 && pos + 1 < max) pos++;
385
+ pos++;
386
+ }
387
+ state.can_continue = true;
388
+ state.str += unescapeAll(str.slice(start, pos));
389
+ return state;
390
+ }
391
+ //#endregion
392
+ //#region src/helpers/index.ts
393
+ /**
394
+ * Functions used to parse links and images, split out of parser rules because
395
+ * of their size.
396
+ *
397
+ * @module md.helpers
398
+ */
399
+ var helpers_exports = /* @__PURE__ */ __exportAll({
400
+ parseLinkDestination: () => parseLinkDestination,
401
+ parseLinkLabel: () => parseLinkLabel,
402
+ parseLinkTitle: () => parseLinkTitle
403
+ });
404
+ //#endregion
405
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/typeof.js
406
+ function _typeof(o) {
407
+ "@babel/helpers - typeof";
408
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
409
+ return typeof o;
410
+ } : function(o) {
411
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
412
+ }, _typeof(o);
413
+ }
414
+ //#endregion
415
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPrimitive.js
416
+ function toPrimitive(t, r) {
417
+ if ("object" != _typeof(t) || !t) return t;
418
+ var e = t[Symbol.toPrimitive];
419
+ if (void 0 !== e) {
420
+ var i = e.call(t, r || "default");
421
+ if ("object" != _typeof(i)) return i;
422
+ throw new TypeError("@@toPrimitive must return a primitive value.");
423
+ }
424
+ return ("string" === r ? String : Number)(t);
425
+ }
426
+ //#endregion
427
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/toPropertyKey.js
428
+ function toPropertyKey(t) {
429
+ var i = toPrimitive(t, "string");
430
+ return "symbol" == _typeof(i) ? i : i + "";
431
+ }
432
+ //#endregion
433
+ //#region \0@oxc-project+runtime@0.142.0/helpers/esm/defineProperty.js
434
+ function _defineProperty(e, r, t) {
435
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
436
+ value: t,
437
+ enumerable: !0,
438
+ configurable: !0,
439
+ writable: !0
440
+ }) : e[r] = t, e;
441
+ }
442
+ //#endregion
443
+ //#region src/token.ts
444
+ /**
445
+ * Represents one item in the parsed token stream, storing parsed data and
446
+ * providing helpers for managing HTML attributes.
447
+ */
448
+ var Token = class {
449
+ constructor(type, tag, nesting) {
450
+ _defineProperty(
451
+ this,
452
+ /**
453
+ * Source map info. Format: `[ line_begin, line_end ]`
454
+ */
455
+ "map",
456
+ null
457
+ );
458
+ _defineProperty(
459
+ this,
460
+ /**
461
+ * nesting level, the same as `state.level`
462
+ */
463
+ "level",
464
+ 0
465
+ );
466
+ _defineProperty(
467
+ this,
468
+ /**
469
+ * An array of child nodes (inline and img tokens)
470
+ */
471
+ "children",
472
+ null
473
+ );
474
+ _defineProperty(
475
+ this,
476
+ /**
477
+ * In a case of self-closing tag (code, html, fence, etc.),
478
+ * it has contents of this tag.
479
+ */
480
+ "content",
481
+ ""
482
+ );
483
+ _defineProperty(
484
+ this,
485
+ /**
486
+ * '*' or '_' for emphasis, fence string for fence, etc.
487
+ */
488
+ "markup",
489
+ ""
490
+ );
491
+ _defineProperty(
492
+ this,
493
+ /**
494
+ * Additional information:
495
+ *
496
+ * - Info string for "fence" tokens
497
+ * - The value "auto" for autolink "link_open" and "link_close" tokens
498
+ * - The string value of the item marker for ordered-list "list_item_open" tokens
499
+ */
500
+ "info",
501
+ ""
502
+ );
503
+ _defineProperty(
504
+ this,
505
+ /**
506
+ * True for block-level tokens, false for inline tokens.
507
+ * Used in renderer to calculate line breaks
508
+ */
509
+ "block",
510
+ false
511
+ );
512
+ _defineProperty(
513
+ this,
514
+ /**
515
+ * If it's true, ignore this element when rendering. Used for tight lists
516
+ * to hide paragraphs.
517
+ */
518
+ "hidden",
519
+ false
520
+ );
521
+ this.type = type;
522
+ this.tag = tag;
523
+ this.attrs = null;
524
+ this.nesting = nesting;
525
+ this.meta = null;
526
+ }
527
+ /**
528
+ * Search attribute index by name.
529
+ */
530
+ attrIndex(name) {
531
+ if (!this.attrs) return -1;
532
+ const attrs = this.attrs;
533
+ for (let i = 0, len = attrs.length; i < len; i++) if (attrs[i][0] === name) return i;
534
+ return -1;
535
+ }
536
+ /**
537
+ * Add `[ name, value ]` attribute to list. Init attrs if necessary
538
+ */
539
+ attrPush(attrData) {
540
+ if (this.attrs) this.attrs.push(attrData);
541
+ else this.attrs = [attrData];
542
+ }
543
+ /**
544
+ * Set `name` attribute to `value`. Override old value if exists.
545
+ */
546
+ attrSet(name, value) {
547
+ const idx = this.attrIndex(name);
548
+ const attrData = [name, value];
549
+ if (idx < 0) this.attrPush(attrData);
550
+ else this.attrs[idx] = attrData;
551
+ }
552
+ /**
553
+ * Get the value of attribute `name`, or null if it does not exist.
554
+ */
555
+ attrGet(name) {
556
+ const idx = this.attrIndex(name);
557
+ let value = null;
558
+ if (idx >= 0) value = this.attrs[idx][1];
559
+ return value;
560
+ }
561
+ /**
562
+ * Join value to existing attribute via space. Or create new attribute if not
563
+ * exists. Useful to operate with token classes.
564
+ */
565
+ attrJoin(name, value) {
566
+ const idx = this.attrIndex(name);
567
+ if (idx < 0) this.attrPush([name, value]);
568
+ else this.attrs[idx][1] = `${this.attrs[idx][1]} ${value}`;
569
+ }
570
+ };
571
+ //#endregion
572
+ //#region src/ruler.ts
573
+ /**
574
+ * Helper class, used by {@link MarkdownIt.core}, {@link MarkdownIt.block} and
575
+ * {@link MarkdownIt.inline} to manage sequences of functions (rules):
576
+ *
577
+ * - keep rules in defined order
578
+ * - assign the name to each rule
579
+ * - enable/disable rules
580
+ * - add/replace rules
581
+ * - allow assign rules to additional named chains (in the same)
582
+ * - cacheing lists of active rules
583
+ *
584
+ * You will not need use this class directly until write plugins. For simple
585
+ * rules control use {@link MarkdownIt.disable}, {@link MarkdownIt.enable} and
586
+ * {@link MarkdownIt.use}.
587
+ */
588
+ var Ruler = class {
589
+ constructor() {
590
+ _defineProperty(
591
+ this,
592
+ /** @internal */
593
+ "__rules__",
594
+ []
595
+ );
596
+ _defineProperty(
597
+ this,
598
+ /** @internal */
599
+ "__cache__",
600
+ null
601
+ );
602
+ }
603
+ /** @internal */
604
+ __find__(name) {
605
+ for (let i = 0; i < this.__rules__.length; i++) if (this.__rules__[i].name === name) return i;
606
+ return -1;
607
+ }
608
+ /** @internal */
609
+ __compile__() {
610
+ const chains = /* @__PURE__ */ new Set();
611
+ this.__rules__.forEach((rule) => {
612
+ if (!rule.enabled) return;
613
+ rule.alt.forEach((altName) => {
614
+ if (altName) chains.add(altName);
615
+ });
616
+ });
617
+ this.__cache__ = Object.create(null);
618
+ this.__cache__[""] = [];
619
+ this.__rules__.forEach((rule) => {
620
+ if (rule.enabled) this.__cache__[""].push(rule.fn);
621
+ });
622
+ chains.forEach((chain) => {
623
+ this.__cache__[chain] = [];
624
+ this.__rules__.forEach((rule) => {
625
+ if (rule.enabled && rule.alt.indexOf(chain) >= 0) this.__cache__[chain].push(rule.fn);
626
+ });
627
+ });
628
+ }
629
+ /**
630
+ * Replace rule by name with new function & options. Throws error if name not
631
+ * found.
632
+ *
633
+ * @example Replace existing typographer replacement rule with new one
634
+ * ```javascript
635
+ * import MarkdownIt from 'markdown-it'
636
+ * const md = new MarkdownIt()
637
+ *
638
+ * md.core.ruler.at('replacements', function replace(state) {
639
+ * //...
640
+ * });
641
+ * ```
642
+ */
643
+ at(name, fn, options = {}) {
644
+ const index = this.__find__(name);
645
+ if (index === -1) throw new Error(`Parser rule not found: ${name}`);
646
+ this.__rules__[index].fn = fn;
647
+ this.__rules__[index].alt = options.alt || [];
648
+ this.__cache__ = null;
649
+ }
650
+ /**
651
+ * Add new rule to chain before one with given name. See also
652
+ * {@link Ruler.after}, {@link Ruler.push}.
653
+ *
654
+ * @example
655
+ * ```javascript
656
+ * import MarkdownIt from 'markdown-it'
657
+ * const md = new MarkdownIt()
658
+ *
659
+ * md.block.ruler.before('paragraph', 'my_rule', function replace(state) {
660
+ * //...
661
+ * });
662
+ * ```
663
+ */
664
+ before(beforeName, ruleName, fn, options = {}) {
665
+ const index = this.__find__(beforeName);
666
+ if (index === -1) throw new Error(`Parser rule not found: ${beforeName}`);
667
+ this.__rules__.splice(index, 0, {
668
+ name: ruleName,
669
+ enabled: true,
670
+ fn,
671
+ alt: options.alt || []
672
+ });
673
+ this.__cache__ = null;
674
+ }
675
+ /**
676
+ * Add new rule to chain after one with given name. See also
677
+ * {@link Ruler.before}, {@link Ruler.push}.
678
+ *
679
+ * @example
680
+ * ```javascript
681
+ * import MarkdownIt from 'markdown-it'
682
+ * const md = new MarkdownIt()
683
+ *
684
+ * md.inline.ruler.after('text', 'my_rule', function replace(state) {
685
+ * //...
686
+ * });
687
+ * ```
688
+ */
689
+ after(afterName, ruleName, fn, options = {}) {
690
+ const index = this.__find__(afterName);
691
+ if (index === -1) throw new Error(`Parser rule not found: ${afterName}`);
692
+ this.__rules__.splice(index + 1, 0, {
693
+ name: ruleName,
694
+ enabled: true,
695
+ fn,
696
+ alt: options.alt || []
697
+ });
698
+ this.__cache__ = null;
699
+ }
700
+ /**
701
+ * Push new rule to the end of chain. See also
702
+ * {@link Ruler.before}, {@link Ruler.after}.
703
+ *
704
+ * @example
705
+ * ```javascript
706
+ * import MarkdownIt from 'markdown-it'
707
+ * const md = new MarkdownIt()
708
+ *
709
+ * md.core.ruler.push('my_rule', function replace(state) {
710
+ * //...
711
+ * });
712
+ * ```
713
+ */
714
+ push(ruleName, fn, options = {}) {
715
+ this.__rules__.push({
716
+ name: ruleName,
717
+ enabled: true,
718
+ fn,
719
+ alt: options.alt || []
720
+ });
721
+ this.__cache__ = null;
722
+ }
723
+ /**
724
+ * Enable rules with given names. If any rule name not found - throw Error.
725
+ * Errors can be disabled by second param.
726
+ *
727
+ * See also {@link Ruler.disable}, {@link Ruler.enableOnly}.
728
+ *
729
+ * Returns list of found rule names (if no exception happened).
730
+ */
731
+ enable(list, ignoreInvalid = false) {
732
+ if (!Array.isArray(list)) list = [list];
733
+ const result = [];
734
+ list.forEach((name) => {
735
+ const idx = this.__find__(name);
736
+ if (idx < 0) {
737
+ if (ignoreInvalid) return;
738
+ throw new Error(`Rules manager: invalid rule name ${name}`);
739
+ }
740
+ this.__rules__[idx].enabled = true;
741
+ result.push(name);
742
+ });
743
+ this.__cache__ = null;
744
+ return result;
745
+ }
746
+ /**
747
+ * Enable rules with given names, and disable everything else. If any rule name
748
+ * not found - throw Error. Errors can be disabled by second param.
749
+ *
750
+ * See also {@link Ruler.disable}, {@link Ruler.enable}.
751
+ */
752
+ enableOnly(list, ignoreInvalid = false) {
753
+ if (!Array.isArray(list)) list = [list];
754
+ this.__rules__.forEach((rule) => {
755
+ rule.enabled = false;
756
+ });
757
+ this.enable(list, ignoreInvalid);
758
+ }
759
+ /**
760
+ * Disable rules with given names. If any rule name not found - throw Error.
761
+ * Errors can be disabled by second param.
762
+ *
763
+ * See also {@link Ruler.enable}, {@link Ruler.enableOnly}.
764
+ *
765
+ * Returns list of found rule names (if no exception happened).
766
+ */
767
+ disable(list, ignoreInvalid = false) {
768
+ if (!Array.isArray(list)) list = [list];
769
+ const result = [];
770
+ list.forEach((name) => {
771
+ const idx = this.__find__(name);
772
+ if (idx < 0) {
773
+ if (ignoreInvalid) return;
774
+ throw new Error(`Rules manager: invalid rule name ${name}`);
775
+ }
776
+ this.__rules__[idx].enabled = false;
777
+ result.push(name);
778
+ });
779
+ this.__cache__ = null;
780
+ return result;
781
+ }
782
+ /**
783
+ * Return array of active functions (rules) for given chain name. It analyzes
784
+ * rules configuration, compiles caches if not exists and returns result.
785
+ *
786
+ * Default chain name is `''` (empty string). It can't be skipped. That's
787
+ * done intentionally, to keep signature monomorphic for high speed.
788
+ */
789
+ getRules(chainName) {
790
+ if (!this.__cache__) this.__compile__();
791
+ return this.__cache__[chainName] || [];
792
+ }
793
+ };
794
+ //#endregion
795
+ //#region src/renderer.ts
796
+ var default_rules = {};
797
+ default_rules.code_inline = function(tokens, idx, options, env, slf) {
798
+ const token = tokens[idx];
799
+ return `<code${slf.renderAttrs(token)}>${escapeHtml(token.content)}</code>`;
800
+ };
801
+ default_rules.code_block = function(tokens, idx, options, env, slf) {
802
+ const token = tokens[idx];
803
+ return `<pre${slf.renderAttrs(token)}><code>${escapeHtml(tokens[idx].content)}</code></pre>\n`;
804
+ };
805
+ default_rules.fence = function(tokens, idx, options, env, slf) {
806
+ const token = tokens[idx];
807
+ const info = token.info ? unescapeAll(token.info).trim() : "";
808
+ let langName = "";
809
+ let langAttrs = "";
810
+ if (info) {
811
+ const arr = info.split(/(\s+)/g);
812
+ langName = arr[0];
813
+ langAttrs = arr.slice(2).join("");
814
+ }
815
+ let highlighted;
816
+ if (options.highlight) highlighted = options.highlight(token.content, langName, langAttrs) || escapeHtml(token.content);
817
+ else highlighted = escapeHtml(token.content);
818
+ if (highlighted.indexOf("<pre") === 0) return highlighted + "\n";
819
+ if (info) {
820
+ const i = token.attrIndex("class");
821
+ const tmpAttrs = token.attrs ? token.attrs.slice() : [];
822
+ if (i < 0) tmpAttrs.push(["class", `${options.langPrefix}${langName}`]);
823
+ else {
824
+ tmpAttrs[i] = [tmpAttrs[i][0], tmpAttrs[i][1]];
825
+ tmpAttrs[i][1] += ` ${options.langPrefix}${langName}`;
826
+ }
827
+ const tmpToken = { attrs: tmpAttrs };
828
+ return `<pre><code${slf.renderAttrs(tmpToken)}>${highlighted}</code></pre>\n`;
829
+ }
830
+ return `<pre><code${slf.renderAttrs(token)}>${highlighted}</code></pre>\n`;
831
+ };
832
+ default_rules.image = function(tokens, idx, options, env, slf) {
833
+ const token = tokens[idx];
834
+ token.attrs[token.attrIndex("alt")][1] = slf.renderInlineAsText(token.children, options, env);
835
+ return slf.renderToken(tokens, idx, options);
836
+ };
837
+ default_rules.hardbreak = function(tokens, idx, options) {
838
+ return options.xhtmlOut ? "<br />\n" : "<br>\n";
839
+ };
840
+ default_rules.softbreak = function(tokens, idx, options) {
841
+ return options.breaks ? options.xhtmlOut ? "<br />\n" : "<br>\n" : "\n";
842
+ };
843
+ default_rules.text = function(tokens, idx) {
844
+ return escapeHtml(tokens[idx].content);
845
+ };
846
+ default_rules.html_block = function(tokens, idx) {
847
+ return tokens[idx].content;
848
+ };
849
+ default_rules.html_inline = function(tokens, idx) {
850
+ return tokens[idx].content;
851
+ };
852
+ /**
853
+ * Generates HTML from parsed token stream. Each instance has independent
854
+ * copy of rules. Those can be rewritten with ease. Also, you can add new
855
+ * rules if you create plugin and adds new token types.
856
+ *
857
+ * Creates new renderer instance and fills {@link Renderer.rules} with defaults.
858
+ */
859
+ var Renderer = class {
860
+ constructor() {
861
+ _defineProperty(
862
+ this,
863
+ /**
864
+ * Contains render rules for tokens. Can be updated and extended.
865
+ *
866
+ * See [source code](https://github.com/markdown-it/markdown-it/blob/master/src/renderer.ts)
867
+ * for more details and examples.
868
+ *
869
+ * @example Custom render rules
870
+ * ```javascript
871
+ * import MarkdownIt from 'markdown-it'
872
+ * const md = new MarkdownIt()
873
+ *
874
+ * md.renderer.rules.strong_open = function () { return '<b>'; };
875
+ * md.renderer.rules.strong_close = function () { return '</b>'; };
876
+ *
877
+ * const result = md.renderInline(...);
878
+ * ```
879
+ *
880
+ * @example Each rule is called as independent static function with fixed signature
881
+ * ```javascript
882
+ * function my_token_render(tokens, idx, options, env, renderer) {
883
+ * // ...
884
+ * return renderedHTML;
885
+ * }
886
+ * ```
887
+ */
888
+ "rules",
889
+ Object.assign({}, default_rules)
890
+ );
891
+ }
892
+ /**
893
+ * Render token attributes to string.
894
+ */
895
+ renderAttrs(token) {
896
+ let i, l, result;
897
+ if (!token.attrs) return "";
898
+ result = "";
899
+ for (i = 0, l = token.attrs.length; i < l; i++) result += ` ${escapeHtml(token.attrs[i][0])}="${escapeHtml(String(token.attrs[i][1]))}"`;
900
+ return result;
901
+ }
902
+ /**
903
+ * Default token renderer. Can be overriden by custom function
904
+ * in {@link Renderer.rules}.
905
+ */
906
+ renderToken(tokens, idx, options) {
907
+ const token = tokens[idx];
908
+ let result = "";
909
+ if (token.hidden) return "";
910
+ let prev = idx - 1;
911
+ while (prev >= 0 && tokens[prev].hidden && tokens[prev].nesting === 0) prev--;
912
+ if (token.block && token.nesting !== -1 && prev >= 0 && tokens[prev].hidden && tokens[prev].nesting === -1) result += "\n";
913
+ result += (token.nesting === -1 ? "</" : "<") + token.tag;
914
+ result += this.renderAttrs(token);
915
+ if (token.nesting === 0 && options.xhtmlOut) result += " /";
916
+ let needLf = false;
917
+ if (token.block) {
918
+ needLf = true;
919
+ if (token.nesting === 1) {
920
+ let next = idx + 1;
921
+ while (next < tokens.length && tokens[next].hidden && tokens[next].nesting === 0) next++;
922
+ if (next < tokens.length) {
923
+ const nextToken = tokens[next];
924
+ if (nextToken.type === "inline" || nextToken.hidden) needLf = false;
925
+ else if (nextToken.nesting === -1 && nextToken.tag === token.tag) needLf = false;
926
+ }
927
+ }
928
+ }
929
+ result += needLf ? ">\n" : ">";
930
+ return result;
931
+ }
932
+ /**
933
+ * The same as {@link Renderer.render}, but for single token of `inline` type.
934
+ */
935
+ renderInline(tokens, options, env) {
936
+ let result = "";
937
+ const rules = this.rules;
938
+ for (let i = 0, len = tokens.length; i < len; i++) {
939
+ const type = tokens[i].type;
940
+ if (typeof rules[type] !== "undefined") result += rules[type](tokens, i, options, env, this);
941
+ else result += this.renderToken(tokens, i, options);
942
+ }
943
+ return result;
944
+ }
945
+ /**
946
+ * Special kludge for image `alt` attributes to conform CommonMark spec.
947
+ * Don't try to use it! Spec requires to show `alt` content with stripped markup,
948
+ * instead of simple escaping.
949
+ */
950
+ renderInlineAsText(tokens, options, env) {
951
+ let result = "";
952
+ for (let i = 0, len = tokens.length; i < len; i++) switch (tokens[i].type) {
953
+ case "text":
954
+ case "code_inline":
955
+ result += tokens[i].content;
956
+ break;
957
+ case "image":
958
+ result += this.renderInlineAsText(tokens[i].children, options, env);
959
+ break;
960
+ case "html_inline":
961
+ case "html_block":
962
+ result += tokens[i].content;
963
+ break;
964
+ case "softbreak":
965
+ case "hardbreak": result += "\n";
966
+ }
967
+ return result;
968
+ }
969
+ /**
970
+ * Takes token stream and generates HTML. Probably, you will never need to call
971
+ * this method directly.
972
+ */
973
+ render(tokens, options, env) {
974
+ let result = "";
975
+ const rules = this.rules;
976
+ for (let i = 0, len = tokens.length; i < len; i++) {
977
+ const type = tokens[i].type;
978
+ if (type === "inline") result += this.renderInline(tokens[i].children, options, env);
979
+ else if (typeof rules[type] !== "undefined") result += rules[type](tokens, i, options, env, this);
980
+ else result += this.renderToken(tokens, i, options);
981
+ }
982
+ return result;
983
+ }
984
+ };
985
+ //#endregion
986
+ //#region src/rules_core/state_core.ts
987
+ /** Mutable state passed through the core rules chain. */
988
+ var StateCore = class {
989
+ constructor(src, md, env) {
990
+ _defineProperty(this, "tokens", []);
991
+ _defineProperty(this, "inlineMode", false);
992
+ _defineProperty(this, "Token", Token);
993
+ this.src = src;
994
+ this.env = env;
995
+ this.md = md;
996
+ }
997
+ };
998
+ //#endregion
999
+ //#region src/rules_core/normalize.ts
1000
+ var UNNORMALIZED_NEWLINE_RE = /\r\n?/g;
1001
+ var NULL_RE = /\0/g;
1002
+ function normalize(state) {
1003
+ let str;
1004
+ str = state.src.replace(UNNORMALIZED_NEWLINE_RE, "\n");
1005
+ str = str.replace(NULL_RE, "�");
1006
+ state.src = str;
1007
+ }
1008
+ //#endregion
1009
+ //#region src/rules_core/block.ts
1010
+ function block(state) {
1011
+ let token;
1012
+ if (state.inlineMode) {
1013
+ token = new state.Token("inline", "", 0);
1014
+ token.content = state.src;
1015
+ token.map = [0, 1];
1016
+ token.children = [];
1017
+ state.tokens.push(token);
1018
+ } else state.md.block.parse(state.src, state.md, state.env, state.tokens);
1019
+ }
1020
+ //#endregion
1021
+ //#region src/rules_core/strip_references.ts
1022
+ function strip_references(state) {
1023
+ const tokens = state.tokens;
1024
+ let last = 0;
1025
+ for (let curr = 0; curr < tokens.length; curr++) {
1026
+ if (tokens[curr].type === "reference_definition") continue;
1027
+ if (curr !== last) tokens[last] = tokens[curr];
1028
+ last++;
1029
+ }
1030
+ if (tokens.length !== last) tokens.length = last;
1031
+ }
1032
+ //#endregion
1033
+ //#region src/rules_core/inline.ts
1034
+ function inline(state) {
1035
+ const tokens = state.tokens;
1036
+ for (let i = 0, l = tokens.length; i < l; i++) {
1037
+ const tok = tokens[i];
1038
+ if (tok.type === "inline") state.md.inline.parse(tok.content, state.md, state.env, tok.children);
1039
+ }
1040
+ }
1041
+ //#endregion
1042
+ //#region src/rules_core/linkify.ts
1043
+ function isLinkOpen$1(str) {
1044
+ return /^<a[>\s]/i.test(str);
1045
+ }
1046
+ function isLinkClose$1(str) {
1047
+ return /^<\/a\s*>/i.test(str);
1048
+ }
1049
+ function linkify$1(state) {
1050
+ const blockTokens = state.tokens;
1051
+ if (!state.md.options.linkify) return;
1052
+ for (let j = 0, l = blockTokens.length; j < l; j++) {
1053
+ if (blockTokens[j].type !== "inline" || !state.md.linkify.test(blockTokens[j].content)) continue;
1054
+ const tokens = blockTokens[j].children;
1055
+ const replacements = [];
1056
+ let htmlLinkLevel = 0;
1057
+ for (let i = tokens.length - 1; i >= 0; i--) {
1058
+ const currentToken = tokens[i];
1059
+ if (currentToken.type === "link_close") {
1060
+ i--;
1061
+ while (tokens[i].level !== currentToken.level && tokens[i].type !== "link_open") i--;
1062
+ continue;
1063
+ }
1064
+ if (currentToken.type === "html_inline") {
1065
+ if (isLinkOpen$1(currentToken.content) && htmlLinkLevel > 0) htmlLinkLevel--;
1066
+ if (isLinkClose$1(currentToken.content)) htmlLinkLevel++;
1067
+ }
1068
+ if (htmlLinkLevel > 0) continue;
1069
+ if (currentToken.type === "text" && state.md.linkify.test(currentToken.content)) {
1070
+ const text = currentToken.content;
1071
+ let links = state.md.linkify.match(text);
1072
+ const nodes = [];
1073
+ let level = currentToken.level;
1074
+ let lastPos = 0;
1075
+ if (links.length > 0 && links[0].index === 0 && i > 0 && tokens[i - 1].type === "text_special") links = links.slice(1);
1076
+ for (let ln = 0; ln < links.length; ln++) {
1077
+ const url = links[ln].url;
1078
+ const fullUrl = state.md.normalizeLink(url);
1079
+ if (!state.md.validateLink(fullUrl)) continue;
1080
+ let urlText = links[ln].text;
1081
+ if (!links[ln].schema) urlText = state.md.normalizeLinkText(`http://${urlText}`).replace(/^http:\/\//, "");
1082
+ else if (links[ln].schema === "mailto:" && !/^mailto:/i.test(urlText)) urlText = state.md.normalizeLinkText(`mailto:${urlText}`).replace(/^mailto:/, "");
1083
+ else urlText = state.md.normalizeLinkText(urlText);
1084
+ const pos = links[ln].index;
1085
+ if (pos > lastPos) {
1086
+ const token = new state.Token("text", "", 0);
1087
+ token.content = text.slice(lastPos, pos);
1088
+ token.level = level;
1089
+ nodes.push(token);
1090
+ }
1091
+ const token_o = new state.Token("link_open", "a", 1);
1092
+ token_o.attrs = [["href", fullUrl]];
1093
+ token_o.level = level++;
1094
+ token_o.markup = "linkify";
1095
+ token_o.info = "auto";
1096
+ nodes.push(token_o);
1097
+ const token_t = new state.Token("text", "", 0);
1098
+ token_t.content = urlText;
1099
+ token_t.level = level;
1100
+ nodes.push(token_t);
1101
+ const token_c = new state.Token("link_close", "a", -1);
1102
+ token_c.level = --level;
1103
+ token_c.markup = "linkify";
1104
+ token_c.info = "auto";
1105
+ nodes.push(token_c);
1106
+ lastPos = links[ln].lastIndex;
1107
+ }
1108
+ if (lastPos < text.length) {
1109
+ const token = new state.Token("text", "", 0);
1110
+ token.content = text.slice(lastPos);
1111
+ token.level = level;
1112
+ nodes.push(token);
1113
+ }
1114
+ replacements.push({
1115
+ index: i,
1116
+ nodes
1117
+ });
1118
+ }
1119
+ }
1120
+ if (replacements.length > 0) {
1121
+ let newTokensLength = tokens.length;
1122
+ for (const replacement of replacements) newTokensLength += replacement.nodes.length - 1;
1123
+ const newTokens = new Array(newTokensLength);
1124
+ let replacementIndex = 0;
1125
+ let newTokenIndex = 0;
1126
+ replacements.reverse();
1127
+ for (let i = 0; i < tokens.length; i++) {
1128
+ const replacement = replacements[replacementIndex];
1129
+ if ((replacement === null || replacement === void 0 ? void 0 : replacement.index) === i) {
1130
+ for (const node of replacement.nodes) newTokens[newTokenIndex++] = node;
1131
+ replacementIndex++;
1132
+ } else newTokens[newTokenIndex++] = tokens[i];
1133
+ }
1134
+ blockTokens[j].children = newTokens;
1135
+ }
1136
+ }
1137
+ }
1138
+ //#endregion
1139
+ //#region src/rules_core/replacements.ts
1140
+ var RARE_RE = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/;
1141
+ var SCOPED_ABBR_TEST_RE = /\((c|tm|r)\)/i;
1142
+ var SCOPED_ABBR_RE = /\((c|tm|r)\)/gi;
1143
+ var SCOPED_ABBR = {
1144
+ c: "©",
1145
+ r: "®",
1146
+ tm: "™"
1147
+ };
1148
+ function replaceFn(match, name) {
1149
+ return SCOPED_ABBR[name.toLowerCase()];
1150
+ }
1151
+ function replace_scoped(inlineTokens) {
1152
+ let inside_autolink = 0;
1153
+ for (let i = inlineTokens.length - 1; i >= 0; i--) {
1154
+ const token = inlineTokens[i];
1155
+ if (token.type === "text" && !inside_autolink) token.content = token.content.replace(SCOPED_ABBR_RE, replaceFn);
1156
+ if (token.type === "link_open" && token.info === "auto") inside_autolink--;
1157
+ if (token.type === "link_close" && token.info === "auto") inside_autolink++;
1158
+ }
1159
+ }
1160
+ function replace_rare(inlineTokens) {
1161
+ let inside_autolink = 0;
1162
+ for (let i = inlineTokens.length - 1; i >= 0; i--) {
1163
+ const token = inlineTokens[i];
1164
+ if (token.type === "text" && !inside_autolink) {
1165
+ if (RARE_RE.test(token.content)) token.content = token.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/gm, "$1—").replace(/(^|\s)--(?=\s|$)/gm, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm, "$1–");
1166
+ }
1167
+ if (token.type === "link_open" && token.info === "auto") inside_autolink--;
1168
+ if (token.type === "link_close" && token.info === "auto") inside_autolink++;
1169
+ }
1170
+ }
1171
+ function replace(state) {
1172
+ let blkIdx;
1173
+ if (!state.md.options.typographer) return;
1174
+ for (blkIdx = state.tokens.length - 1; blkIdx >= 0; blkIdx--) {
1175
+ if (state.tokens[blkIdx].type !== "inline") continue;
1176
+ if (SCOPED_ABBR_TEST_RE.test(state.tokens[blkIdx].content)) replace_scoped(state.tokens[blkIdx].children);
1177
+ if (RARE_RE.test(state.tokens[blkIdx].content)) replace_rare(state.tokens[blkIdx].children);
1178
+ }
1179
+ }
1180
+ //#endregion
1181
+ //#region src/rules_core/smartquotes.ts
1182
+ var QUOTE_TEST_RE = /['"]/;
1183
+ var QUOTE_RE = /['"]/g;
1184
+ var APOSTROPHE = "’";
1185
+ var MAX_OPENERS = 1e3;
1186
+ function truncateStack(stack, heads, length) {
1187
+ while (stack.length > length) {
1188
+ const item = stack.pop();
1189
+ if (item.isSingleQuote) heads.single = item.prevSameQuoteIdx;
1190
+ else heads.double = item.prevSameQuoteIdx;
1191
+ }
1192
+ }
1193
+ function addReplacement(replacements, tokenIdx, pos, ch) {
1194
+ if (!replacements[tokenIdx]) replacements[tokenIdx] = [];
1195
+ replacements[tokenIdx].push({
1196
+ pos,
1197
+ ch
1198
+ });
1199
+ }
1200
+ function applyReplacements(str, replacements) {
1201
+ let result = "";
1202
+ let lastPos = 0;
1203
+ replacements.sort((a, b) => a.pos - b.pos);
1204
+ for (let i = 0; i < replacements.length; i++) {
1205
+ const replacement = replacements[i];
1206
+ result += str.slice(lastPos, replacement.pos) + replacement.ch;
1207
+ lastPos = replacement.pos + 1;
1208
+ }
1209
+ return result + str.slice(lastPos);
1210
+ }
1211
+ function process_inlines(tokens, state) {
1212
+ let j;
1213
+ const stack = [];
1214
+ const heads = {
1215
+ single: -1,
1216
+ double: -1
1217
+ };
1218
+ const replacements = {};
1219
+ for (let i = 0; i < tokens.length; i++) {
1220
+ const token = tokens[i];
1221
+ const thisLevel = tokens[i].level;
1222
+ for (j = stack.length - 1; j >= 0; j--) if (stack[j].level <= thisLevel) break;
1223
+ truncateStack(stack, heads, j + 1);
1224
+ if (token.type !== "text") continue;
1225
+ const text = token.content;
1226
+ let pos = 0;
1227
+ const max = text.length;
1228
+ OUTER: while (pos < max) {
1229
+ QUOTE_RE.lastIndex = pos;
1230
+ const t = QUOTE_RE.exec(text);
1231
+ if (!t) break;
1232
+ let canOpen = true;
1233
+ let canClose = true;
1234
+ pos = t.index + 1;
1235
+ const isSingle = t[0] === "'";
1236
+ let lastChar = 32;
1237
+ if (t.index - 1 >= 0) lastChar = text.charCodeAt(t.index - 1);
1238
+ else for (j = i - 1; j >= 0; j--) {
1239
+ if (tokens[j].type === "softbreak" || tokens[j].type === "hardbreak") break;
1240
+ if (!tokens[j].content) continue;
1241
+ lastChar = tokens[j].content.charCodeAt(tokens[j].content.length - 1);
1242
+ break;
1243
+ }
1244
+ let nextChar = 32;
1245
+ if (pos < max) nextChar = text.charCodeAt(pos);
1246
+ else for (j = i + 1; j < tokens.length; j++) {
1247
+ if (tokens[j].type === "softbreak" || tokens[j].type === "hardbreak") break;
1248
+ if (!tokens[j].content) continue;
1249
+ nextChar = tokens[j].content.charCodeAt(0);
1250
+ break;
1251
+ }
1252
+ const isLastPunctChar = isMdAsciiPunct(lastChar) || isPunctCharCode(lastChar);
1253
+ const isNextPunctChar = isMdAsciiPunct(nextChar) || isPunctCharCode(nextChar);
1254
+ const isLastWhiteSpace = isWhiteSpace(lastChar);
1255
+ const isNextWhiteSpace = isWhiteSpace(nextChar);
1256
+ if (isNextWhiteSpace) canOpen = false;
1257
+ else if (isNextPunctChar) {
1258
+ if (!(isLastWhiteSpace || isLastPunctChar)) canOpen = false;
1259
+ }
1260
+ if (isLastWhiteSpace) canClose = false;
1261
+ else if (isLastPunctChar) {
1262
+ if (!(isNextWhiteSpace || isNextPunctChar)) canClose = false;
1263
+ }
1264
+ if (nextChar === 34 && t[0] === "\"") {
1265
+ if (lastChar >= 48 && lastChar <= 57) canClose = canOpen = false;
1266
+ }
1267
+ if (canOpen && canClose) {
1268
+ canOpen = isLastPunctChar;
1269
+ canClose = isNextPunctChar;
1270
+ }
1271
+ if (!canOpen && !canClose) {
1272
+ if (isSingle) addReplacement(replacements, i, t.index, APOSTROPHE);
1273
+ continue;
1274
+ }
1275
+ if (canClose) {
1276
+ j = isSingle ? heads.single : heads.double;
1277
+ if (j >= 0 && stack[j].level === thisLevel) {
1278
+ const item = stack[j];
1279
+ let openQuote;
1280
+ let closeQuote;
1281
+ if (isSingle) {
1282
+ openQuote = state.md.options.quotes[2];
1283
+ closeQuote = state.md.options.quotes[3];
1284
+ } else {
1285
+ openQuote = state.md.options.quotes[0];
1286
+ closeQuote = state.md.options.quotes[1];
1287
+ }
1288
+ addReplacement(replacements, i, t.index, closeQuote);
1289
+ addReplacement(replacements, item.tokenIdx, item.contentPos, openQuote);
1290
+ truncateStack(stack, heads, j);
1291
+ continue OUTER;
1292
+ }
1293
+ }
1294
+ if (canOpen) {
1295
+ if (stack.length >= MAX_OPENERS) return;
1296
+ stack.push({
1297
+ tokenIdx: i,
1298
+ contentPos: t.index,
1299
+ isSingleQuote: isSingle,
1300
+ level: thisLevel,
1301
+ prevSameQuoteIdx: isSingle ? heads.single : heads.double
1302
+ });
1303
+ if (isSingle) heads.single = stack.length - 1;
1304
+ else heads.double = stack.length - 1;
1305
+ } else if (canClose && isSingle) addReplacement(replacements, i, t.index, APOSTROPHE);
1306
+ }
1307
+ }
1308
+ Object.keys(replacements).forEach(function(tokenIdx) {
1309
+ const idx = Number(tokenIdx);
1310
+ tokens[idx].content = applyReplacements(tokens[idx].content, replacements[tokenIdx]);
1311
+ });
1312
+ }
1313
+ function smartquotes(state) {
1314
+ if (!state.md.options.typographer) return;
1315
+ for (let blkIdx = state.tokens.length - 1; blkIdx >= 0; blkIdx--) {
1316
+ if (state.tokens[blkIdx].type !== "inline" || !QUOTE_TEST_RE.test(state.tokens[blkIdx].content)) continue;
1317
+ process_inlines(state.tokens[blkIdx].children, state);
1318
+ }
1319
+ }
1320
+ //#endregion
1321
+ //#region src/rules_core/text_join.ts
1322
+ function join_alt(tokens) {
1323
+ let curr, last;
1324
+ const max = tokens.length;
1325
+ for (curr = 0; curr < max; curr++) if (tokens[curr].type === "text_special") tokens[curr].type = "text";
1326
+ for (curr = last = 0; curr < max; curr++) if (tokens[curr].type === "text" && curr + 1 < max && tokens[curr + 1].type === "text") tokens[curr + 1].content = tokens[curr].content + tokens[curr + 1].content;
1327
+ else {
1328
+ if (curr !== last) tokens[last] = tokens[curr];
1329
+ last++;
1330
+ }
1331
+ if (curr !== last) tokens.length = last;
1332
+ }
1333
+ function text_join(state) {
1334
+ let curr, last;
1335
+ const blockTokens = state.tokens;
1336
+ const l = blockTokens.length;
1337
+ for (let j = 0; j < l; j++) {
1338
+ if (blockTokens[j].type !== "inline") continue;
1339
+ const tokens = blockTokens[j].children;
1340
+ const max = tokens.length;
1341
+ for (curr = 0; curr < max; curr++) {
1342
+ if (tokens[curr].type === "text_special") tokens[curr].type = "text";
1343
+ if (tokens[curr].children) join_alt(tokens[curr].children);
1344
+ }
1345
+ for (curr = last = 0; curr < max; curr++) if (tokens[curr].type === "text" && curr + 1 < max && tokens[curr + 1].type === "text") tokens[curr + 1].content = tokens[curr].content + tokens[curr + 1].content;
1346
+ else {
1347
+ if (curr !== last) tokens[last] = tokens[curr];
1348
+ last++;
1349
+ }
1350
+ if (curr !== last) tokens.length = last;
1351
+ }
1352
+ }
1353
+ //#endregion
1354
+ //#region src/parser_core.ts
1355
+ var _rules$2 = [
1356
+ ["normalize", normalize],
1357
+ ["block", block],
1358
+ ["strip_references", strip_references],
1359
+ ["inline", inline],
1360
+ ["linkify", linkify$1],
1361
+ ["replacements", replace],
1362
+ ["smartquotes", smartquotes],
1363
+ ["text_join", text_join]
1364
+ ];
1365
+ /**
1366
+ * Top-level rules executor. Glues block/inline parsers and does intermediate
1367
+ * transformations.
1368
+ */
1369
+ var ParserCore = class {
1370
+ constructor() {
1371
+ _defineProperty(
1372
+ this,
1373
+ /**
1374
+ * {@link Ruler} instance. Keep configuration of core rules.
1375
+ */
1376
+ "ruler",
1377
+ new Ruler()
1378
+ );
1379
+ _defineProperty(this, "State", StateCore);
1380
+ for (let i = 0; i < _rules$2.length; i++) this.ruler.push(_rules$2[i][0], _rules$2[i][1]);
1381
+ }
1382
+ /**
1383
+ * Executes core chain rules.
1384
+ */
1385
+ process(state) {
1386
+ const rules = this.ruler.getRules("");
1387
+ for (let i = 0, l = rules.length; i < l; i++) rules[i](state);
1388
+ }
1389
+ };
1390
+ //#endregion
1391
+ //#region src/rules_block/state_block.ts
1392
+ /** Mutable state passed to block rules while tokenizing a source document. */
1393
+ var StateBlock = class {
1394
+ constructor(src, md, env, tokens) {
1395
+ _defineProperty(this, "bMarks", []);
1396
+ _defineProperty(this, "eMarks", []);
1397
+ _defineProperty(this, "tShift", []);
1398
+ _defineProperty(this, "sCount", []);
1399
+ _defineProperty(this, "bsCount", []);
1400
+ _defineProperty(this, "blkIndent", 0);
1401
+ _defineProperty(this, "line", 0);
1402
+ _defineProperty(this, "lineMax", 0);
1403
+ _defineProperty(this, "tight", false);
1404
+ _defineProperty(this, "listIndent", -1);
1405
+ _defineProperty(this, "parentType", "root");
1406
+ _defineProperty(this, "level", 0);
1407
+ _defineProperty(this, "Token", Token);
1408
+ this.src = src;
1409
+ this.md = md;
1410
+ this.env = env;
1411
+ this.tokens = tokens;
1412
+ const s = this.src;
1413
+ for (let start = 0, pos = 0, indent = 0, offset = 0, len = s.length, indent_found = false; pos < len; pos++) {
1414
+ const ch = s.charCodeAt(pos);
1415
+ if (!indent_found) if (isSpace(ch)) {
1416
+ indent++;
1417
+ if (ch === 9) offset += 4 - offset % 4;
1418
+ else offset++;
1419
+ continue;
1420
+ } else indent_found = true;
1421
+ if (ch === 10 || pos === len - 1) {
1422
+ if (ch !== 10) pos++;
1423
+ this.bMarks.push(start);
1424
+ this.eMarks.push(pos);
1425
+ this.tShift.push(indent);
1426
+ this.sCount.push(offset);
1427
+ this.bsCount.push(0);
1428
+ indent_found = false;
1429
+ indent = 0;
1430
+ offset = 0;
1431
+ start = pos + 1;
1432
+ }
1433
+ }
1434
+ this.bMarks.push(s.length);
1435
+ this.eMarks.push(s.length);
1436
+ this.tShift.push(0);
1437
+ this.sCount.push(0);
1438
+ this.bsCount.push(0);
1439
+ this.lineMax = this.bMarks.length - 1;
1440
+ }
1441
+ push(type, tag, nesting) {
1442
+ const token = new Token(type, tag, nesting);
1443
+ token.block = true;
1444
+ if (nesting < 0) this.level--;
1445
+ token.level = this.level;
1446
+ if (nesting > 0) this.level++;
1447
+ this.tokens.push(token);
1448
+ return token;
1449
+ }
1450
+ isEmpty(line) {
1451
+ return this.bMarks[line] + this.tShift[line] >= this.eMarks[line];
1452
+ }
1453
+ skipEmptyLines(from) {
1454
+ for (let max = this.lineMax; from < max; from++) if (this.bMarks[from] + this.tShift[from] < this.eMarks[from]) break;
1455
+ return from;
1456
+ }
1457
+ skipSpaces(pos) {
1458
+ for (let max = this.src.length; pos < max; pos++) if (!isSpace(this.src.charCodeAt(pos))) break;
1459
+ return pos;
1460
+ }
1461
+ skipSpacesBack(pos, min) {
1462
+ if (pos <= min) return pos;
1463
+ while (pos > min) if (!isSpace(this.src.charCodeAt(--pos))) return pos + 1;
1464
+ return pos;
1465
+ }
1466
+ skipChars(pos, code) {
1467
+ for (let max = this.src.length; pos < max; pos++) if (this.src.charCodeAt(pos) !== code) break;
1468
+ return pos;
1469
+ }
1470
+ skipCharsBack(pos, code, min) {
1471
+ if (pos <= min) return pos;
1472
+ while (pos > min) if (code !== this.src.charCodeAt(--pos)) return pos + 1;
1473
+ return pos;
1474
+ }
1475
+ getLines(begin, end, indent, keepLastLF) {
1476
+ if (begin >= end) return "";
1477
+ const queue = new Array(end - begin);
1478
+ for (let i = 0, line = begin; line < end; line++, i++) {
1479
+ let lineIndent = 0;
1480
+ const lineStart = this.bMarks[line];
1481
+ let first = lineStart;
1482
+ let last;
1483
+ if (line + 1 < end || keepLastLF) last = this.eMarks[line] + 1;
1484
+ else last = this.eMarks[line];
1485
+ while (first < last && lineIndent < indent) {
1486
+ const ch = this.src.charCodeAt(first);
1487
+ if (isSpace(ch)) if (ch === 9) lineIndent += 4 - (lineIndent + this.bsCount[line]) % 4;
1488
+ else lineIndent++;
1489
+ else if (first - lineStart < this.tShift[line]) lineIndent++;
1490
+ else break;
1491
+ first++;
1492
+ }
1493
+ if (lineIndent > indent) queue[i] = new Array(lineIndent - indent + 1).join(" ") + this.src.slice(first, last);
1494
+ else queue[i] = this.src.slice(first, last);
1495
+ }
1496
+ return queue.join("");
1497
+ }
1498
+ };
1499
+ //#endregion
1500
+ //#region src/rules_block/table.ts
1501
+ var MAX_AUTOCOMPLETED_CELLS = 65536;
1502
+ function getLine(state, line) {
1503
+ const pos = state.bMarks[line] + state.tShift[line];
1504
+ const max = state.eMarks[line];
1505
+ return state.src.slice(pos, max);
1506
+ }
1507
+ function escapedSplit(str) {
1508
+ const result = [];
1509
+ const max = str.length;
1510
+ let pos = 0;
1511
+ let ch = str.charCodeAt(pos);
1512
+ let isEscaped = false;
1513
+ let lastPos = 0;
1514
+ let current = "";
1515
+ while (pos < max) {
1516
+ if (ch === 124) if (!isEscaped) {
1517
+ result.push(current + str.substring(lastPos, pos));
1518
+ current = "";
1519
+ lastPos = pos + 1;
1520
+ } else {
1521
+ current += str.substring(lastPos, pos - 1);
1522
+ lastPos = pos;
1523
+ }
1524
+ isEscaped = ch === 92;
1525
+ pos++;
1526
+ ch = str.charCodeAt(pos);
1527
+ }
1528
+ result.push(current + str.substring(lastPos));
1529
+ return result;
1530
+ }
1531
+ function table(state, startLine, endLine, silent) {
1532
+ if (startLine + 2 > endLine) return false;
1533
+ let nextLine = startLine + 1;
1534
+ if (state.sCount[nextLine] < state.blkIndent) return false;
1535
+ if (state.sCount[nextLine] - state.blkIndent >= 4) return false;
1536
+ let pos = state.bMarks[nextLine] + state.tShift[nextLine];
1537
+ if (pos >= state.eMarks[nextLine]) return false;
1538
+ const firstCh = state.src.charCodeAt(pos++);
1539
+ if (firstCh !== 124 && firstCh !== 45 && firstCh !== 58) return false;
1540
+ if (pos >= state.eMarks[nextLine]) return false;
1541
+ const secondCh = state.src.charCodeAt(pos++);
1542
+ if (secondCh !== 124 && secondCh !== 45 && secondCh !== 58 && !isSpace(secondCh)) return false;
1543
+ if (firstCh === 45 && isSpace(secondCh)) return false;
1544
+ while (pos < state.eMarks[nextLine]) {
1545
+ const ch = state.src.charCodeAt(pos);
1546
+ if (ch !== 124 && ch !== 45 && ch !== 58 && !isSpace(ch)) return false;
1547
+ pos++;
1548
+ }
1549
+ let lineText = getLine(state, startLine + 1);
1550
+ let columns = lineText.split("|");
1551
+ const aligns = [];
1552
+ for (let i = 0; i < columns.length; i++) {
1553
+ const t = columns[i].trim();
1554
+ if (!t) if (i === 0 || i === columns.length - 1) continue;
1555
+ else return false;
1556
+ if (!/^:?-+:?$/.test(t)) return false;
1557
+ if (t.charCodeAt(t.length - 1) === 58) aligns.push(t.charCodeAt(0) === 58 ? "center" : "right");
1558
+ else if (t.charCodeAt(0) === 58) aligns.push("left");
1559
+ else aligns.push("");
1560
+ }
1561
+ lineText = getLine(state, startLine).trim();
1562
+ if (lineText.indexOf("|") === -1) return false;
1563
+ if (state.sCount[startLine] - state.blkIndent >= 4) return false;
1564
+ columns = escapedSplit(lineText);
1565
+ if (columns.length && columns[0] === "") columns.shift();
1566
+ if (columns.length && columns[columns.length - 1] === "") columns.pop();
1567
+ const columnCount = columns.length;
1568
+ if (columnCount === 0 || columnCount !== aligns.length) return false;
1569
+ if (silent) return true;
1570
+ const oldParentType = state.parentType;
1571
+ state.parentType = "table";
1572
+ const terminatorRules = state.md.block.ruler.getRules("blockquote");
1573
+ const token_to = state.push("table_open", "table", 1);
1574
+ const tableLines = [startLine, 0];
1575
+ token_to.map = tableLines;
1576
+ const token_tho = state.push("thead_open", "thead", 1);
1577
+ token_tho.map = [startLine, startLine + 1];
1578
+ const token_htro = state.push("tr_open", "tr", 1);
1579
+ token_htro.map = [startLine, startLine + 1];
1580
+ for (let i = 0; i < columns.length; i++) {
1581
+ const token_ho = state.push("th_open", "th", 1);
1582
+ if (aligns[i]) token_ho.attrs = [["style", `text-align:${aligns[i]}`]];
1583
+ const token_il = state.push("inline", "", 0);
1584
+ token_il.content = columns[i].trim();
1585
+ token_il.children = [];
1586
+ state.push("th_close", "th", -1);
1587
+ }
1588
+ state.push("tr_close", "tr", -1);
1589
+ state.push("thead_close", "thead", -1);
1590
+ let tbodyLines;
1591
+ let autocompletedCells = 0;
1592
+ for (nextLine = startLine + 2; nextLine < endLine; nextLine++) {
1593
+ if (state.sCount[nextLine] < state.blkIndent) break;
1594
+ let terminate = false;
1595
+ for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
1596
+ terminate = true;
1597
+ break;
1598
+ }
1599
+ if (terminate) break;
1600
+ lineText = getLine(state, nextLine).trim();
1601
+ if (!lineText) break;
1602
+ if (state.sCount[nextLine] - state.blkIndent >= 4) break;
1603
+ columns = escapedSplit(lineText);
1604
+ if (columns.length && columns[0] === "") columns.shift();
1605
+ if (columns.length && columns[columns.length - 1] === "") columns.pop();
1606
+ autocompletedCells += columnCount - columns.length;
1607
+ if (autocompletedCells > MAX_AUTOCOMPLETED_CELLS) break;
1608
+ if (nextLine === startLine + 2) {
1609
+ const token_tbo = state.push("tbody_open", "tbody", 1);
1610
+ token_tbo.map = tbodyLines = [startLine + 2, 0];
1611
+ }
1612
+ const token_tro = state.push("tr_open", "tr", 1);
1613
+ token_tro.map = [nextLine, nextLine + 1];
1614
+ for (let i = 0; i < columnCount; i++) {
1615
+ const token_tdo = state.push("td_open", "td", 1);
1616
+ if (aligns[i]) token_tdo.attrs = [["style", `text-align:${aligns[i]}`]];
1617
+ const token_il = state.push("inline", "", 0);
1618
+ token_il.content = columns[i] ? columns[i].trim() : "";
1619
+ token_il.children = [];
1620
+ state.push("td_close", "td", -1);
1621
+ }
1622
+ state.push("tr_close", "tr", -1);
1623
+ }
1624
+ if (tbodyLines) {
1625
+ state.push("tbody_close", "tbody", -1);
1626
+ tbodyLines[1] = nextLine;
1627
+ }
1628
+ state.push("table_close", "table", -1);
1629
+ tableLines[1] = nextLine;
1630
+ state.parentType = oldParentType;
1631
+ state.line = nextLine;
1632
+ return true;
1633
+ }
1634
+ //#endregion
1635
+ //#region src/rules_block/code.ts
1636
+ function code(state, startLine, endLine) {
1637
+ if (state.sCount[startLine] - state.blkIndent < 4) return false;
1638
+ let nextLine = startLine + 1;
1639
+ let last = nextLine;
1640
+ while (nextLine < endLine) {
1641
+ if (state.isEmpty(nextLine)) {
1642
+ nextLine++;
1643
+ continue;
1644
+ }
1645
+ if (state.sCount[nextLine] - state.blkIndent >= 4) {
1646
+ nextLine++;
1647
+ last = nextLine;
1648
+ continue;
1649
+ }
1650
+ break;
1651
+ }
1652
+ state.line = last;
1653
+ const token = state.push("code_block", "code", 0);
1654
+ token.content = state.getLines(startLine, last, 4 + state.blkIndent, false) + "\n";
1655
+ token.map = [startLine, state.line];
1656
+ return true;
1657
+ }
1658
+ //#endregion
1659
+ //#region src/rules_block/fence.ts
1660
+ function fence(state, startLine, endLine, silent) {
1661
+ let pos = state.bMarks[startLine] + state.tShift[startLine];
1662
+ let max = state.eMarks[startLine];
1663
+ if (state.sCount[startLine] - state.blkIndent >= 4) return false;
1664
+ if (pos + 3 > max) return false;
1665
+ const marker = state.src.charCodeAt(pos);
1666
+ if (marker !== 126 && marker !== 96) return false;
1667
+ let mem = pos;
1668
+ pos = state.skipChars(pos, marker);
1669
+ let len = pos - mem;
1670
+ if (len < 3) return false;
1671
+ const markup = state.src.slice(mem, pos);
1672
+ const params = state.src.slice(pos, max);
1673
+ if (marker === 96) {
1674
+ if (params.indexOf(String.fromCharCode(marker)) >= 0) return false;
1675
+ }
1676
+ if (silent) return true;
1677
+ let nextLine = startLine;
1678
+ let haveEndMarker = false;
1679
+ for (;;) {
1680
+ nextLine++;
1681
+ if (nextLine >= endLine) break;
1682
+ pos = mem = state.bMarks[nextLine] + state.tShift[nextLine];
1683
+ max = state.eMarks[nextLine];
1684
+ if (pos < max && state.sCount[nextLine] < state.blkIndent) break;
1685
+ if (state.src.charCodeAt(pos) !== marker) continue;
1686
+ if (state.sCount[nextLine] - state.blkIndent >= 4) continue;
1687
+ pos = state.skipChars(pos, marker);
1688
+ if (pos - mem < len) continue;
1689
+ pos = state.skipSpaces(pos);
1690
+ if (pos < max) continue;
1691
+ haveEndMarker = true;
1692
+ break;
1693
+ }
1694
+ len = state.sCount[startLine];
1695
+ state.line = nextLine + (haveEndMarker ? 1 : 0);
1696
+ const token = state.push("fence", "code", 0);
1697
+ token.info = params;
1698
+ token.content = state.getLines(startLine + 1, nextLine, len, true);
1699
+ token.markup = markup;
1700
+ token.map = [startLine, state.line];
1701
+ return true;
1702
+ }
1703
+ //#endregion
1704
+ //#region src/rules_block/blockquote.ts
1705
+ function blockquote(state, startLine, endLine, silent) {
1706
+ let pos = state.bMarks[startLine] + state.tShift[startLine];
1707
+ let max = state.eMarks[startLine];
1708
+ const oldLineMax = state.lineMax;
1709
+ if (state.sCount[startLine] - state.blkIndent >= 4) return false;
1710
+ if (state.src.charCodeAt(pos) !== 62) return false;
1711
+ if (silent) return true;
1712
+ const oldBMarks = [];
1713
+ const oldBSCount = [];
1714
+ const oldSCount = [];
1715
+ const oldTShift = [];
1716
+ const terminatorRules = state.md.block.ruler.getRules("blockquote");
1717
+ const oldParentType = state.parentType;
1718
+ state.parentType = "blockquote";
1719
+ let lastLineEmpty = false;
1720
+ let nextLine;
1721
+ for (nextLine = startLine; nextLine < endLine; nextLine++) {
1722
+ const isOutdented = state.sCount[nextLine] < state.blkIndent;
1723
+ pos = state.bMarks[nextLine] + state.tShift[nextLine];
1724
+ max = state.eMarks[nextLine];
1725
+ if (pos >= max) break;
1726
+ if (state.src.charCodeAt(pos++) === 62 && !isOutdented) {
1727
+ let initial = state.sCount[nextLine] + 1;
1728
+ let spaceAfterMarker;
1729
+ let adjustTab;
1730
+ if (state.src.charCodeAt(pos) === 32) {
1731
+ pos++;
1732
+ initial++;
1733
+ adjustTab = false;
1734
+ spaceAfterMarker = true;
1735
+ } else if (state.src.charCodeAt(pos) === 9) {
1736
+ spaceAfterMarker = true;
1737
+ if ((state.bsCount[nextLine] + initial) % 4 === 3) {
1738
+ pos++;
1739
+ initial++;
1740
+ adjustTab = false;
1741
+ } else adjustTab = true;
1742
+ } else spaceAfterMarker = false;
1743
+ let offset = initial;
1744
+ oldBMarks.push(state.bMarks[nextLine]);
1745
+ state.bMarks[nextLine] = pos;
1746
+ while (pos < max) {
1747
+ const ch = state.src.charCodeAt(pos);
1748
+ if (isSpace(ch)) if (ch === 9) offset += 4 - (offset + state.bsCount[nextLine] + (adjustTab ? 1 : 0)) % 4;
1749
+ else offset++;
1750
+ else break;
1751
+ pos++;
1752
+ }
1753
+ lastLineEmpty = pos >= max;
1754
+ oldBSCount.push(state.bsCount[nextLine]);
1755
+ state.bsCount[nextLine] = state.sCount[nextLine] + 1 + (spaceAfterMarker ? 1 : 0);
1756
+ oldSCount.push(state.sCount[nextLine]);
1757
+ state.sCount[nextLine] = offset - initial;
1758
+ oldTShift.push(state.tShift[nextLine]);
1759
+ state.tShift[nextLine] = pos - state.bMarks[nextLine];
1760
+ continue;
1761
+ }
1762
+ if (lastLineEmpty) break;
1763
+ let terminate = false;
1764
+ for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
1765
+ terminate = true;
1766
+ break;
1767
+ }
1768
+ if (terminate) {
1769
+ state.lineMax = nextLine;
1770
+ if (state.blkIndent !== 0) {
1771
+ oldBMarks.push(state.bMarks[nextLine]);
1772
+ oldBSCount.push(state.bsCount[nextLine]);
1773
+ oldTShift.push(state.tShift[nextLine]);
1774
+ oldSCount.push(state.sCount[nextLine]);
1775
+ state.sCount[nextLine] -= state.blkIndent;
1776
+ }
1777
+ break;
1778
+ }
1779
+ oldBMarks.push(state.bMarks[nextLine]);
1780
+ oldBSCount.push(state.bsCount[nextLine]);
1781
+ oldTShift.push(state.tShift[nextLine]);
1782
+ oldSCount.push(state.sCount[nextLine]);
1783
+ state.sCount[nextLine] = -1;
1784
+ }
1785
+ const oldIndent = state.blkIndent;
1786
+ state.blkIndent = 0;
1787
+ const token_o = state.push("blockquote_open", "blockquote", 1);
1788
+ token_o.markup = ">";
1789
+ const lines = [startLine, 0];
1790
+ token_o.map = lines;
1791
+ state.md.block.tokenize(state, startLine, nextLine);
1792
+ const token_c = state.push("blockquote_close", "blockquote", -1);
1793
+ token_c.markup = ">";
1794
+ state.lineMax = oldLineMax;
1795
+ state.parentType = oldParentType;
1796
+ lines[1] = state.line;
1797
+ for (let i = 0; i < oldTShift.length; i++) {
1798
+ state.bMarks[i + startLine] = oldBMarks[i];
1799
+ state.tShift[i + startLine] = oldTShift[i];
1800
+ state.sCount[i + startLine] = oldSCount[i];
1801
+ state.bsCount[i + startLine] = oldBSCount[i];
1802
+ }
1803
+ state.blkIndent = oldIndent;
1804
+ return true;
1805
+ }
1806
+ //#endregion
1807
+ //#region src/rules_block/hr.ts
1808
+ function hr(state, startLine, endLine, silent) {
1809
+ const max = state.eMarks[startLine];
1810
+ if (state.sCount[startLine] - state.blkIndent >= 4) return false;
1811
+ let pos = state.bMarks[startLine] + state.tShift[startLine];
1812
+ const marker = state.src.charCodeAt(pos++);
1813
+ if (marker !== 42 && marker !== 45 && marker !== 95) return false;
1814
+ let cnt = 1;
1815
+ while (pos < max) {
1816
+ const ch = state.src.charCodeAt(pos++);
1817
+ if (ch !== marker && !isSpace(ch)) return false;
1818
+ if (ch === marker) cnt++;
1819
+ }
1820
+ if (cnt < 3) return false;
1821
+ if (silent) return true;
1822
+ state.line = startLine + 1;
1823
+ const token = state.push("hr", "hr", 0);
1824
+ token.map = [startLine, state.line];
1825
+ token.markup = Array(cnt + 1).join(String.fromCharCode(marker));
1826
+ return true;
1827
+ }
1828
+ //#endregion
1829
+ //#region src/rules_block/list.ts
1830
+ function skipBulletListMarker(state, startLine) {
1831
+ const max = state.eMarks[startLine];
1832
+ let pos = state.bMarks[startLine] + state.tShift[startLine];
1833
+ const marker = state.src.charCodeAt(pos++);
1834
+ if (marker !== 42 && marker !== 45 && marker !== 43) return -1;
1835
+ if (pos < max) {
1836
+ if (!isSpace(state.src.charCodeAt(pos))) return -1;
1837
+ }
1838
+ return pos;
1839
+ }
1840
+ function skipOrderedListMarker(state, startLine) {
1841
+ const start = state.bMarks[startLine] + state.tShift[startLine];
1842
+ const max = state.eMarks[startLine];
1843
+ let pos = start;
1844
+ if (pos + 1 >= max) return -1;
1845
+ let ch = state.src.charCodeAt(pos++);
1846
+ if (ch < 48 || ch > 57) return -1;
1847
+ for (;;) {
1848
+ if (pos >= max) return -1;
1849
+ ch = state.src.charCodeAt(pos++);
1850
+ if (ch >= 48 && ch <= 57) {
1851
+ if (pos - start >= 10) return -1;
1852
+ continue;
1853
+ }
1854
+ if (ch === 41 || ch === 46) break;
1855
+ return -1;
1856
+ }
1857
+ if (pos < max) {
1858
+ ch = state.src.charCodeAt(pos);
1859
+ if (!isSpace(ch)) return -1;
1860
+ }
1861
+ return pos;
1862
+ }
1863
+ function markTightParagraphs(state, idx) {
1864
+ const level = state.level + 2;
1865
+ for (let i = idx + 2, l = state.tokens.length - 2; i < l; i++) if (state.tokens[i].level === level && state.tokens[i].type === "paragraph_open") {
1866
+ state.tokens[i + 2].hidden = true;
1867
+ state.tokens[i].hidden = true;
1868
+ i += 2;
1869
+ }
1870
+ }
1871
+ function list(state, startLine, endLine, silent) {
1872
+ let max, pos, start, token;
1873
+ let nextLine = startLine;
1874
+ let tight = true;
1875
+ if (state.sCount[nextLine] - state.blkIndent >= 4) return false;
1876
+ if (state.listIndent >= 0 && state.sCount[nextLine] - state.listIndent >= 4 && state.sCount[nextLine] < state.blkIndent) return false;
1877
+ let isTerminatingParagraph = false;
1878
+ if (silent && state.parentType === "paragraph") {
1879
+ if (state.sCount[nextLine] >= state.blkIndent) isTerminatingParagraph = true;
1880
+ }
1881
+ let isOrdered;
1882
+ let markerValue;
1883
+ let posAfterMarker;
1884
+ if ((posAfterMarker = skipOrderedListMarker(state, nextLine)) >= 0) {
1885
+ isOrdered = true;
1886
+ start = state.bMarks[nextLine] + state.tShift[nextLine];
1887
+ markerValue = Number(state.src.slice(start, posAfterMarker - 1));
1888
+ if (isTerminatingParagraph && markerValue !== 1) return false;
1889
+ } else if ((posAfterMarker = skipBulletListMarker(state, nextLine)) >= 0) isOrdered = false;
1890
+ else return false;
1891
+ if (isTerminatingParagraph) {
1892
+ if (state.skipSpaces(posAfterMarker) >= state.eMarks[nextLine]) return false;
1893
+ }
1894
+ if (silent) return true;
1895
+ const markerCharCode = state.src.charCodeAt(posAfterMarker - 1);
1896
+ const listTokIdx = state.tokens.length;
1897
+ if (isOrdered) {
1898
+ token = state.push("ordered_list_open", "ol", 1);
1899
+ if (markerValue !== 1) token.attrs = [["start", markerValue]];
1900
+ } else token = state.push("bullet_list_open", "ul", 1);
1901
+ const listLines = [nextLine, 0];
1902
+ token.map = listLines;
1903
+ token.markup = String.fromCharCode(markerCharCode);
1904
+ let prevEmptyEnd = false;
1905
+ const terminatorRules = state.md.block.ruler.getRules("list");
1906
+ const oldParentType = state.parentType;
1907
+ state.parentType = "list";
1908
+ while (nextLine < endLine) {
1909
+ pos = posAfterMarker;
1910
+ max = state.eMarks[nextLine];
1911
+ const initial = state.sCount[nextLine] + posAfterMarker - (state.bMarks[nextLine] + state.tShift[nextLine]);
1912
+ let offset = initial;
1913
+ while (pos < max) {
1914
+ const ch = state.src.charCodeAt(pos);
1915
+ if (ch === 9) offset += 4 - (offset + state.bsCount[nextLine]) % 4;
1916
+ else if (ch === 32) offset++;
1917
+ else break;
1918
+ pos++;
1919
+ }
1920
+ const contentStart = pos;
1921
+ let indentAfterMarker;
1922
+ if (contentStart >= max) indentAfterMarker = 1;
1923
+ else indentAfterMarker = offset - initial;
1924
+ if (indentAfterMarker > 4) indentAfterMarker = 1;
1925
+ const indent = initial + indentAfterMarker;
1926
+ token = state.push("list_item_open", "li", 1);
1927
+ token.markup = String.fromCharCode(markerCharCode);
1928
+ const itemLines = [nextLine, 0];
1929
+ token.map = itemLines;
1930
+ if (isOrdered) token.info = state.src.slice(start, posAfterMarker - 1);
1931
+ const oldTight = state.tight;
1932
+ const oldTShift = state.tShift[nextLine];
1933
+ const oldSCount = state.sCount[nextLine];
1934
+ const oldListIndent = state.listIndent;
1935
+ state.listIndent = state.blkIndent;
1936
+ state.blkIndent = indent;
1937
+ state.tight = true;
1938
+ state.tShift[nextLine] = contentStart - state.bMarks[nextLine];
1939
+ state.sCount[nextLine] = offset;
1940
+ if (contentStart >= max && state.isEmpty(nextLine + 1)) state.line = Math.min(state.line + 2, endLine);
1941
+ else state.md.block.tokenize(state, nextLine, endLine);
1942
+ if (!state.tight || prevEmptyEnd) tight = false;
1943
+ prevEmptyEnd = state.line - nextLine > 1 && state.isEmpty(state.line - 1);
1944
+ state.blkIndent = state.listIndent;
1945
+ state.listIndent = oldListIndent;
1946
+ state.tShift[nextLine] = oldTShift;
1947
+ state.sCount[nextLine] = oldSCount;
1948
+ state.tight = oldTight;
1949
+ token = state.push("list_item_close", "li", -1);
1950
+ token.markup = String.fromCharCode(markerCharCode);
1951
+ nextLine = state.line;
1952
+ itemLines[1] = nextLine;
1953
+ if (nextLine >= endLine) break;
1954
+ if (state.sCount[nextLine] < state.blkIndent) break;
1955
+ if (state.sCount[nextLine] - state.blkIndent >= 4) break;
1956
+ let terminate = false;
1957
+ for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
1958
+ terminate = true;
1959
+ break;
1960
+ }
1961
+ if (terminate) break;
1962
+ if (isOrdered) {
1963
+ posAfterMarker = skipOrderedListMarker(state, nextLine);
1964
+ if (posAfterMarker < 0) break;
1965
+ start = state.bMarks[nextLine] + state.tShift[nextLine];
1966
+ } else {
1967
+ posAfterMarker = skipBulletListMarker(state, nextLine);
1968
+ if (posAfterMarker < 0) break;
1969
+ }
1970
+ if (markerCharCode !== state.src.charCodeAt(posAfterMarker - 1)) break;
1971
+ }
1972
+ if (isOrdered) token = state.push("ordered_list_close", "ol", -1);
1973
+ else token = state.push("bullet_list_close", "ul", -1);
1974
+ token.markup = String.fromCharCode(markerCharCode);
1975
+ listLines[1] = nextLine;
1976
+ state.line = nextLine;
1977
+ state.parentType = oldParentType;
1978
+ if (tight) markTightParagraphs(state, listTokIdx);
1979
+ return true;
1980
+ }
1981
+ //#endregion
1982
+ //#region src/rules_block/reference.ts
1983
+ function reference(state, startLine, _endLine, silent) {
1984
+ let pos = state.bMarks[startLine] + state.tShift[startLine];
1985
+ let max = state.eMarks[startLine];
1986
+ let nextLine = startLine + 1;
1987
+ if (state.sCount[startLine] - state.blkIndent >= 4) return false;
1988
+ if (state.src.charCodeAt(pos) !== 91) return false;
1989
+ function getNextLine(nextLine) {
1990
+ const endLine = state.lineMax;
1991
+ if (nextLine >= endLine || state.isEmpty(nextLine)) return null;
1992
+ let isContinuation = false;
1993
+ if (state.sCount[nextLine] - state.blkIndent > 3) isContinuation = true;
1994
+ if (state.sCount[nextLine] < 0) isContinuation = true;
1995
+ if (!isContinuation) {
1996
+ const terminatorRules = state.md.block.ruler.getRules("reference");
1997
+ const oldParentType = state.parentType;
1998
+ state.parentType = "reference";
1999
+ let terminate = false;
2000
+ for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
2001
+ terminate = true;
2002
+ break;
2003
+ }
2004
+ state.parentType = oldParentType;
2005
+ if (terminate) return null;
2006
+ }
2007
+ const pos = state.bMarks[nextLine] + state.tShift[nextLine];
2008
+ const max = state.eMarks[nextLine];
2009
+ return state.src.slice(pos, max + 1);
2010
+ }
2011
+ let str = state.src.slice(pos, max + 1);
2012
+ max = str.length;
2013
+ let labelEnd = -1;
2014
+ for (pos = 1; pos < max; pos++) {
2015
+ const ch = str.charCodeAt(pos);
2016
+ if (ch === 91) return false;
2017
+ else if (ch === 93) {
2018
+ labelEnd = pos;
2019
+ break;
2020
+ } else if (ch === 10) {
2021
+ const lineContent = getNextLine(nextLine);
2022
+ if (lineContent !== null) {
2023
+ str += lineContent;
2024
+ max = str.length;
2025
+ nextLine++;
2026
+ }
2027
+ } else if (ch === 92) {
2028
+ pos++;
2029
+ if (pos < max && str.charCodeAt(pos) === 10) {
2030
+ const lineContent = getNextLine(nextLine);
2031
+ if (lineContent !== null) {
2032
+ str += lineContent;
2033
+ max = str.length;
2034
+ nextLine++;
2035
+ }
2036
+ }
2037
+ }
2038
+ }
2039
+ if (labelEnd < 0 || str.charCodeAt(labelEnd + 1) !== 58) return false;
2040
+ for (pos = labelEnd + 2; pos < max; pos++) {
2041
+ const ch = str.charCodeAt(pos);
2042
+ if (ch === 10) {
2043
+ const lineContent = getNextLine(nextLine);
2044
+ if (lineContent !== null) {
2045
+ str += lineContent;
2046
+ max = str.length;
2047
+ nextLine++;
2048
+ }
2049
+ } else if (isSpace(ch)) {} else break;
2050
+ }
2051
+ const destRes = state.md.helpers.parseLinkDestination(str, pos, max);
2052
+ if (!destRes.ok) return false;
2053
+ const href = state.md.normalizeLink(destRes.str);
2054
+ if (!state.md.validateLink(href)) return false;
2055
+ pos = destRes.pos;
2056
+ const destEndPos = pos;
2057
+ const destEndLineNo = nextLine;
2058
+ const start = pos;
2059
+ for (; pos < max; pos++) {
2060
+ const ch = str.charCodeAt(pos);
2061
+ if (ch === 10) {
2062
+ const lineContent = getNextLine(nextLine);
2063
+ if (lineContent !== null) {
2064
+ str += lineContent;
2065
+ max = str.length;
2066
+ nextLine++;
2067
+ }
2068
+ } else if (isSpace(ch)) {} else break;
2069
+ }
2070
+ let titleRes = state.md.helpers.parseLinkTitle(str, pos, max);
2071
+ while (titleRes.can_continue) {
2072
+ const lineContent = getNextLine(nextLine);
2073
+ if (lineContent === null) break;
2074
+ str += lineContent;
2075
+ pos = max;
2076
+ max = str.length;
2077
+ nextLine++;
2078
+ titleRes = state.md.helpers.parseLinkTitle(str, pos, max, titleRes);
2079
+ }
2080
+ let title;
2081
+ if (pos < max && start !== pos && titleRes.ok) {
2082
+ title = titleRes.str;
2083
+ pos = titleRes.pos;
2084
+ } else {
2085
+ title = "";
2086
+ pos = destEndPos;
2087
+ nextLine = destEndLineNo;
2088
+ }
2089
+ while (pos < max) {
2090
+ if (!isSpace(str.charCodeAt(pos))) break;
2091
+ pos++;
2092
+ }
2093
+ if (pos < max && str.charCodeAt(pos) !== 10) {
2094
+ if (title) {
2095
+ title = "";
2096
+ pos = destEndPos;
2097
+ nextLine = destEndLineNo;
2098
+ while (pos < max) {
2099
+ if (!isSpace(str.charCodeAt(pos))) break;
2100
+ pos++;
2101
+ }
2102
+ }
2103
+ }
2104
+ if (pos < max && str.charCodeAt(pos) !== 10) return false;
2105
+ const label = normalizeReference(str.slice(1, labelEnd));
2106
+ if (!label) return false;
2107
+ /* istanbul ignore if */
2108
+ if (silent) return true;
2109
+ if (typeof state.env.references === "undefined") state.env.references = {};
2110
+ if (typeof state.env.references[label] === "undefined") state.env.references[label] = {
2111
+ title,
2112
+ href
2113
+ };
2114
+ const token = state.push("reference_definition", "", 0);
2115
+ token.map = [startLine, nextLine];
2116
+ token.hidden = true;
2117
+ const meta = Object.create(null);
2118
+ meta.label = label;
2119
+ token.meta = meta;
2120
+ state.line = nextLine;
2121
+ return true;
2122
+ }
2123
+ //#endregion
2124
+ //#region src/common/html_blocks.ts
2125
+ var html_blocks_default = [
2126
+ "address",
2127
+ "article",
2128
+ "aside",
2129
+ "base",
2130
+ "basefont",
2131
+ "blockquote",
2132
+ "body",
2133
+ "caption",
2134
+ "center",
2135
+ "col",
2136
+ "colgroup",
2137
+ "dd",
2138
+ "details",
2139
+ "dialog",
2140
+ "dir",
2141
+ "div",
2142
+ "dl",
2143
+ "dt",
2144
+ "fieldset",
2145
+ "figcaption",
2146
+ "figure",
2147
+ "footer",
2148
+ "form",
2149
+ "frame",
2150
+ "frameset",
2151
+ "h1",
2152
+ "h2",
2153
+ "h3",
2154
+ "h4",
2155
+ "h5",
2156
+ "h6",
2157
+ "head",
2158
+ "header",
2159
+ "hr",
2160
+ "html",
2161
+ "iframe",
2162
+ "legend",
2163
+ "li",
2164
+ "link",
2165
+ "main",
2166
+ "menu",
2167
+ "menuitem",
2168
+ "nav",
2169
+ "noframes",
2170
+ "ol",
2171
+ "optgroup",
2172
+ "option",
2173
+ "p",
2174
+ "param",
2175
+ "search",
2176
+ "section",
2177
+ "summary",
2178
+ "table",
2179
+ "tbody",
2180
+ "td",
2181
+ "tfoot",
2182
+ "th",
2183
+ "thead",
2184
+ "title",
2185
+ "tr",
2186
+ "track",
2187
+ "ul"
2188
+ ];
2189
+ //#endregion
2190
+ //#region src/common/html_re.ts
2191
+ var open_tag = `<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`;
2192
+ var close_tag = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";
2193
+ var HTML_TAG_RE = new RegExp(`^(?:${open_tag}|${close_tag}|<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)`);
2194
+ var HTML_OPEN_CLOSE_TAG_RE = new RegExp(`^(?:${open_tag}|${close_tag})`);
2195
+ //#endregion
2196
+ //#region src/rules_block/html_block.ts
2197
+ var HTML_SEQUENCES = [
2198
+ [
2199
+ /^<(script|pre|style|textarea)(?=(\s|>|$))/i,
2200
+ /<\/(script|pre|style|textarea)>/i,
2201
+ true
2202
+ ],
2203
+ [
2204
+ /^<!--/,
2205
+ /-->/,
2206
+ true
2207
+ ],
2208
+ [
2209
+ /^<\?/,
2210
+ /\?>/,
2211
+ true
2212
+ ],
2213
+ [
2214
+ /^<![A-Za-z]/,
2215
+ />/,
2216
+ true
2217
+ ],
2218
+ [
2219
+ /^<!\[CDATA\[/,
2220
+ /\]\]>/,
2221
+ true
2222
+ ],
2223
+ [
2224
+ new RegExp(`^</?(${html_blocks_default.join("|")})(?=(\\s|/?>|$))`, "i"),
2225
+ /^$/,
2226
+ true
2227
+ ],
2228
+ [
2229
+ new RegExp(`${HTML_OPEN_CLOSE_TAG_RE.source}\\s*$`),
2230
+ /^$/,
2231
+ false
2232
+ ]
2233
+ ];
2234
+ function html_block(state, startLine, endLine, silent) {
2235
+ let pos = state.bMarks[startLine] + state.tShift[startLine];
2236
+ let max = state.eMarks[startLine];
2237
+ if (state.sCount[startLine] - state.blkIndent >= 4) return false;
2238
+ if (!state.md.options.html) return false;
2239
+ if (state.src.charCodeAt(pos) !== 60) return false;
2240
+ let lineText = state.src.slice(pos, max);
2241
+ let i = 0;
2242
+ for (; i < HTML_SEQUENCES.length; i++) if (HTML_SEQUENCES[i][0].test(lineText)) break;
2243
+ if (i === HTML_SEQUENCES.length) return false;
2244
+ if (silent) return HTML_SEQUENCES[i][2];
2245
+ let nextLine = startLine + 1;
2246
+ const endsOnBlankLine = HTML_SEQUENCES[i][1].test("");
2247
+ if (!HTML_SEQUENCES[i][1].test(lineText)) for (; nextLine < endLine; nextLine++) {
2248
+ if (state.sCount[nextLine] < state.blkIndent) {
2249
+ if (endsOnBlankLine || !state.isEmpty(nextLine)) break;
2250
+ }
2251
+ pos = state.bMarks[nextLine] + state.tShift[nextLine];
2252
+ max = state.eMarks[nextLine];
2253
+ lineText = state.src.slice(pos, max);
2254
+ if (HTML_SEQUENCES[i][1].test(lineText)) {
2255
+ if (lineText.length !== 0) nextLine++;
2256
+ break;
2257
+ }
2258
+ }
2259
+ state.line = nextLine;
2260
+ const token = state.push("html_block", "", 0);
2261
+ token.map = [startLine, nextLine];
2262
+ token.content = state.getLines(startLine, nextLine, state.blkIndent, true);
2263
+ return true;
2264
+ }
2265
+ //#endregion
2266
+ //#region src/rules_block/heading.ts
2267
+ function heading(state, startLine, endLine, silent) {
2268
+ let pos = state.bMarks[startLine] + state.tShift[startLine];
2269
+ let max = state.eMarks[startLine];
2270
+ if (state.sCount[startLine] - state.blkIndent >= 4) return false;
2271
+ let ch = state.src.charCodeAt(pos);
2272
+ if (ch !== 35 || pos >= max) return false;
2273
+ let level = 1;
2274
+ ch = state.src.charCodeAt(++pos);
2275
+ while (ch === 35 && pos < max && level <= 6) {
2276
+ level++;
2277
+ ch = state.src.charCodeAt(++pos);
2278
+ }
2279
+ if (level > 6 || pos < max && !isSpace(ch)) return false;
2280
+ if (silent) return true;
2281
+ max = state.skipSpacesBack(max, pos);
2282
+ const tmp = state.skipCharsBack(max, 35, pos);
2283
+ if (tmp > pos && isSpace(state.src.charCodeAt(tmp - 1))) max = tmp;
2284
+ state.line = startLine + 1;
2285
+ const token_o = state.push("heading_open", `h${level}`, 1);
2286
+ token_o.markup = "########".slice(0, level);
2287
+ token_o.map = [startLine, state.line];
2288
+ const token_i = state.push("inline", "", 0);
2289
+ token_i.content = asciiTrim(state.src.slice(pos, max));
2290
+ token_i.map = [startLine, state.line];
2291
+ token_i.children = [];
2292
+ const token_c = state.push("heading_close", `h${level}`, -1);
2293
+ token_c.markup = "########".slice(0, level);
2294
+ return true;
2295
+ }
2296
+ //#endregion
2297
+ //#region src/rules_block/lheading.ts
2298
+ function lheading(state, startLine, endLine) {
2299
+ const terminatorRules = state.md.block.ruler.getRules("paragraph");
2300
+ if (state.sCount[startLine] - state.blkIndent >= 4) return false;
2301
+ const oldParentType = state.parentType;
2302
+ state.parentType = "paragraph";
2303
+ let level = 0;
2304
+ let marker;
2305
+ let nextLine = startLine + 1;
2306
+ for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) {
2307
+ if (state.sCount[nextLine] - state.blkIndent > 3) continue;
2308
+ if (state.sCount[nextLine] >= state.blkIndent) {
2309
+ let pos = state.bMarks[nextLine] + state.tShift[nextLine];
2310
+ const max = state.eMarks[nextLine];
2311
+ if (pos < max) {
2312
+ marker = state.src.charCodeAt(pos);
2313
+ if (marker === 45 || marker === 61) {
2314
+ pos = state.skipChars(pos, marker);
2315
+ pos = state.skipSpaces(pos);
2316
+ if (pos >= max) {
2317
+ level = marker === 61 ? 1 : 2;
2318
+ break;
2319
+ }
2320
+ }
2321
+ }
2322
+ }
2323
+ if (state.sCount[nextLine] < 0) continue;
2324
+ let terminate = false;
2325
+ for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
2326
+ terminate = true;
2327
+ break;
2328
+ }
2329
+ if (terminate) break;
2330
+ }
2331
+ if (!level) {
2332
+ state.parentType = oldParentType;
2333
+ return false;
2334
+ }
2335
+ const content = asciiTrim(state.getLines(startLine, nextLine, state.blkIndent, false));
2336
+ state.line = nextLine + 1;
2337
+ const token_o = state.push("heading_open", `h${level}`, 1);
2338
+ token_o.markup = String.fromCharCode(marker);
2339
+ token_o.map = [startLine, state.line];
2340
+ const token_i = state.push("inline", "", 0);
2341
+ token_i.content = content;
2342
+ token_i.map = [startLine, state.line - 1];
2343
+ token_i.children = [];
2344
+ const token_c = state.push("heading_close", `h${level}`, -1);
2345
+ token_c.markup = String.fromCharCode(marker);
2346
+ state.parentType = oldParentType;
2347
+ return true;
2348
+ }
2349
+ //#endregion
2350
+ //#region src/rules_block/paragraph.ts
2351
+ function paragraph(state, startLine, endLine) {
2352
+ const terminatorRules = state.md.block.ruler.getRules("paragraph");
2353
+ const oldParentType = state.parentType;
2354
+ let nextLine = startLine + 1;
2355
+ state.parentType = "paragraph";
2356
+ for (; nextLine < endLine && !state.isEmpty(nextLine); nextLine++) {
2357
+ if (state.sCount[nextLine] - state.blkIndent > 3) continue;
2358
+ if (state.sCount[nextLine] < 0) continue;
2359
+ let terminate = false;
2360
+ for (let i = 0, l = terminatorRules.length; i < l; i++) if (terminatorRules[i](state, nextLine, endLine, true)) {
2361
+ terminate = true;
2362
+ break;
2363
+ }
2364
+ if (terminate) break;
2365
+ }
2366
+ const content = asciiTrim(state.getLines(startLine, nextLine, state.blkIndent, false));
2367
+ state.line = nextLine;
2368
+ const token_o = state.push("paragraph_open", "p", 1);
2369
+ token_o.map = [startLine, state.line];
2370
+ const token_i = state.push("inline", "", 0);
2371
+ token_i.content = content;
2372
+ token_i.map = [startLine, state.line];
2373
+ token_i.children = [];
2374
+ state.push("paragraph_close", "p", -1);
2375
+ state.parentType = oldParentType;
2376
+ return true;
2377
+ }
2378
+ //#endregion
2379
+ //#region src/parser_block.ts
2380
+ var _rules$1 = [
2381
+ [
2382
+ "table",
2383
+ table,
2384
+ ["paragraph", "reference"]
2385
+ ],
2386
+ ["code", code],
2387
+ [
2388
+ "fence",
2389
+ fence,
2390
+ [
2391
+ "paragraph",
2392
+ "reference",
2393
+ "blockquote",
2394
+ "list"
2395
+ ]
2396
+ ],
2397
+ [
2398
+ "blockquote",
2399
+ blockquote,
2400
+ [
2401
+ "paragraph",
2402
+ "reference",
2403
+ "blockquote",
2404
+ "list"
2405
+ ]
2406
+ ],
2407
+ [
2408
+ "hr",
2409
+ hr,
2410
+ [
2411
+ "paragraph",
2412
+ "reference",
2413
+ "blockquote",
2414
+ "list"
2415
+ ]
2416
+ ],
2417
+ [
2418
+ "list",
2419
+ list,
2420
+ [
2421
+ "paragraph",
2422
+ "reference",
2423
+ "blockquote"
2424
+ ]
2425
+ ],
2426
+ ["reference", reference],
2427
+ [
2428
+ "html_block",
2429
+ html_block,
2430
+ [
2431
+ "paragraph",
2432
+ "reference",
2433
+ "blockquote"
2434
+ ]
2435
+ ],
2436
+ [
2437
+ "heading",
2438
+ heading,
2439
+ [
2440
+ "paragraph",
2441
+ "reference",
2442
+ "blockquote"
2443
+ ]
2444
+ ],
2445
+ ["lheading", lheading],
2446
+ ["paragraph", paragraph]
2447
+ ];
2448
+ /**
2449
+ * Block-level tokenizer.
2450
+ */
2451
+ var ParserBlock = class {
2452
+ constructor() {
2453
+ _defineProperty(
2454
+ this,
2455
+ /**
2456
+ * {@link Ruler} instance. Keep configuration of block rules.
2457
+ */
2458
+ "ruler",
2459
+ new Ruler()
2460
+ );
2461
+ _defineProperty(this, "State", StateBlock);
2462
+ for (let i = 0; i < _rules$1.length; i++) this.ruler.push(_rules$1[i][0], _rules$1[i][1], { alt: (_rules$1[i][2] || []).slice() });
2463
+ }
2464
+ tokenize(state, startLine, endLine) {
2465
+ const rules = this.ruler.getRules("");
2466
+ const len = rules.length;
2467
+ const maxNesting = state.md.options.maxNesting;
2468
+ let line = startLine;
2469
+ let hasEmptyLines = false;
2470
+ while (line < endLine) {
2471
+ state.line = line = state.skipEmptyLines(line);
2472
+ if (line >= endLine) break;
2473
+ if (state.sCount[line] < state.blkIndent) break;
2474
+ if (state.level >= maxNesting) {
2475
+ state.line = endLine;
2476
+ break;
2477
+ }
2478
+ const prevLine = state.line;
2479
+ let ok = false;
2480
+ for (let i = 0; i < len; i++) {
2481
+ ok = rules[i](state, line, endLine, false);
2482
+ if (ok) {
2483
+ if (prevLine >= state.line) throw new Error("block rule didn't increment state.line");
2484
+ break;
2485
+ }
2486
+ }
2487
+ if (!ok) throw new Error("none of the block rules matched");
2488
+ state.tight = !hasEmptyLines;
2489
+ if (state.isEmpty(state.line - 1)) hasEmptyLines = true;
2490
+ line = state.line;
2491
+ if (line < endLine && state.isEmpty(line)) {
2492
+ hasEmptyLines = true;
2493
+ line++;
2494
+ state.line = line;
2495
+ }
2496
+ }
2497
+ }
2498
+ /**
2499
+ * Process input string and push block tokens into `outTokens`
2500
+ */
2501
+ parse(src, md, env, outTokens) {
2502
+ if (!src) return;
2503
+ const state = new this.State(src, md, env, outTokens);
2504
+ this.tokenize(state, state.line, state.lineMax);
2505
+ }
2506
+ };
2507
+ //#endregion
2508
+ //#region src/rules_inline/state_inline.ts
2509
+ /** Mutable state passed to inline rules while tokenizing inline content. */
2510
+ var StateInline = class {
2511
+ constructor(src, md, env, outTokens) {
2512
+ _defineProperty(this, "pos", 0);
2513
+ _defineProperty(this, "level", 0);
2514
+ _defineProperty(this, "pending", "");
2515
+ _defineProperty(this, "pendingLevel", 0);
2516
+ _defineProperty(this, "cache", {});
2517
+ _defineProperty(this, "backticks", {});
2518
+ _defineProperty(this, "backticksScanned", false);
2519
+ _defineProperty(this, "linkLevel", 0);
2520
+ _defineProperty(this, "delimiters", []);
2521
+ _defineProperty(this, "_prev_delimiters", []);
2522
+ _defineProperty(this, "Token", Token);
2523
+ this.src = src;
2524
+ this.env = env;
2525
+ this.md = md;
2526
+ this.tokens = outTokens;
2527
+ this.tokens_meta = Array(outTokens.length);
2528
+ this.posMax = this.src.length;
2529
+ }
2530
+ pushPending() {
2531
+ const token = new Token("text", "", 0);
2532
+ token.content = this.pending;
2533
+ token.level = this.pendingLevel;
2534
+ this.tokens.push(token);
2535
+ this.pending = "";
2536
+ return token;
2537
+ }
2538
+ push(type, tag, nesting) {
2539
+ if (this.pending) this.pushPending();
2540
+ const token = new Token(type, tag, nesting);
2541
+ let token_meta = void 0;
2542
+ if (nesting < 0) {
2543
+ this.level--;
2544
+ this.delimiters = this._prev_delimiters.pop();
2545
+ }
2546
+ token.level = this.level;
2547
+ if (nesting > 0) {
2548
+ this.level++;
2549
+ this._prev_delimiters.push(this.delimiters);
2550
+ this.delimiters = [];
2551
+ token_meta = { delimiters: this.delimiters };
2552
+ }
2553
+ this.pendingLevel = this.level;
2554
+ this.tokens.push(token);
2555
+ this.tokens_meta.push(token_meta);
2556
+ return token;
2557
+ }
2558
+ scanDelims(start, canSplitWord) {
2559
+ const max = this.posMax;
2560
+ const marker = this.src.charCodeAt(start);
2561
+ let lastChar;
2562
+ if (start === 0) lastChar = 32;
2563
+ else if (start === 1) {
2564
+ lastChar = this.src.charCodeAt(0);
2565
+ if ((lastChar & 63488) === 55296) lastChar = 65533;
2566
+ } else {
2567
+ lastChar = this.src.charCodeAt(start - 1);
2568
+ if ((lastChar & 64512) === 56320) {
2569
+ const highSurr = this.src.charCodeAt(start - 2);
2570
+ lastChar = (highSurr & 64512) === 55296 ? 65536 + (highSurr - 55296 << 10) + (lastChar - 56320) : 65533;
2571
+ } else if ((lastChar & 64512) === 55296) lastChar = 65533;
2572
+ }
2573
+ let pos = start;
2574
+ while (pos < max && this.src.charCodeAt(pos) === marker) pos++;
2575
+ const count = pos - start;
2576
+ let nextChar = pos < max ? this.src.charCodeAt(pos) : 32;
2577
+ if ((nextChar & 64512) === 55296) {
2578
+ const lowSurr = this.src.charCodeAt(pos + 1);
2579
+ nextChar = (lowSurr & 64512) === 56320 ? 65536 + (nextChar - 55296 << 10) + (lowSurr - 56320) : 65533;
2580
+ } else if ((nextChar & 64512) === 56320) nextChar = 65533;
2581
+ const isLastPunctChar = isMdAsciiPunct(lastChar) || isPunctCharCode(lastChar);
2582
+ const isNextPunctChar = isMdAsciiPunct(nextChar) || isPunctCharCode(nextChar);
2583
+ const isLastWhiteSpace = isWhiteSpace(lastChar);
2584
+ const isNextWhiteSpace = isWhiteSpace(nextChar);
2585
+ const left_flanking = !isNextWhiteSpace && (!isNextPunctChar || isLastWhiteSpace || isLastPunctChar);
2586
+ const right_flanking = !isLastWhiteSpace && (!isLastPunctChar || isNextWhiteSpace || isNextPunctChar);
2587
+ return {
2588
+ can_open: left_flanking && (canSplitWord || !right_flanking || isLastPunctChar),
2589
+ can_close: right_flanking && (canSplitWord || !left_flanking || isNextPunctChar),
2590
+ length: count
2591
+ };
2592
+ }
2593
+ };
2594
+ //#endregion
2595
+ //#region src/rules_inline/text.ts
2596
+ function isTerminatorChar(ch) {
2597
+ switch (ch) {
2598
+ case 10:
2599
+ case 33:
2600
+ case 35:
2601
+ case 36:
2602
+ case 37:
2603
+ case 38:
2604
+ case 42:
2605
+ case 43:
2606
+ case 45:
2607
+ case 58:
2608
+ case 60:
2609
+ case 61:
2610
+ case 62:
2611
+ case 64:
2612
+ case 91:
2613
+ case 92:
2614
+ case 93:
2615
+ case 94:
2616
+ case 95:
2617
+ case 96:
2618
+ case 123:
2619
+ case 125:
2620
+ case 126: return true;
2621
+ default: return false;
2622
+ }
2623
+ }
2624
+ function text(state, silent) {
2625
+ let pos = state.pos;
2626
+ while (pos < state.posMax && !isTerminatorChar(state.src.charCodeAt(pos))) pos++;
2627
+ if (pos === state.pos) return false;
2628
+ if (!silent) state.pending += state.src.slice(state.pos, pos);
2629
+ state.pos = pos;
2630
+ return true;
2631
+ }
2632
+ //#endregion
2633
+ //#region src/rules_inline/linkify.ts
2634
+ function isAsciiAlpha(code) {
2635
+ return code >= 65 && code <= 90 || code >= 97 && code <= 122;
2636
+ }
2637
+ function isSchemeChar(code) {
2638
+ return code >= 65 && code <= 90 || code >= 97 && code <= 122 || code >= 48 && code <= 57 || code === 43 || code === 45 || code === 46;
2639
+ }
2640
+ function linkify(state, silent) {
2641
+ if (!state.md.options.linkify) return false;
2642
+ if (state.linkLevel > 0) return false;
2643
+ const pos = state.pos;
2644
+ const max = state.posMax;
2645
+ if (pos + 3 > max) return false;
2646
+ if (state.src.charCodeAt(pos) !== 58) return false;
2647
+ if (state.src.charCodeAt(pos + 1) !== 47) return false;
2648
+ if (state.src.charCodeAt(pos + 2) !== 47) return false;
2649
+ const protoMin = pos - Math.min(10, state.pending.length, pos);
2650
+ let protoStart = pos;
2651
+ while (protoStart > protoMin && isSchemeChar(state.src.charCodeAt(protoStart - 1))) protoStart--;
2652
+ if (protoStart === pos || !isAsciiAlpha(state.src.charCodeAt(protoStart))) return false;
2653
+ const protoLength = pos - protoStart;
2654
+ const link = state.md.linkify.matchAtStart(state.src.slice(protoStart));
2655
+ if (!link) return false;
2656
+ let url = link.url;
2657
+ if (url.length <= protoLength) return false;
2658
+ let urlEnd = url.length;
2659
+ while (urlEnd > 0 && url.charCodeAt(urlEnd - 1) === 42) urlEnd--;
2660
+ if (urlEnd !== url.length) url = url.slice(0, urlEnd);
2661
+ const fullUrl = state.md.normalizeLink(url);
2662
+ if (!state.md.validateLink(fullUrl)) return false;
2663
+ if (!silent) {
2664
+ state.pending = state.pending.slice(0, -protoLength);
2665
+ const token_o = state.push("link_open", "a", 1);
2666
+ token_o.attrs = [["href", fullUrl]];
2667
+ token_o.markup = "linkify";
2668
+ token_o.info = "auto";
2669
+ const token_t = state.push("text", "", 0);
2670
+ token_t.content = state.md.normalizeLinkText(url);
2671
+ const token_c = state.push("link_close", "a", -1);
2672
+ token_c.markup = "linkify";
2673
+ token_c.info = "auto";
2674
+ }
2675
+ state.pos += url.length - protoLength;
2676
+ return true;
2677
+ }
2678
+ //#endregion
2679
+ //#region src/rules_inline/newline.ts
2680
+ function newline(state, silent) {
2681
+ let pos = state.pos;
2682
+ if (state.src.charCodeAt(pos) !== 10) return false;
2683
+ const pmax = state.pending.length - 1;
2684
+ const max = state.posMax;
2685
+ if (!silent) if (pmax >= 0 && state.pending.charCodeAt(pmax) === 32) if (pmax >= 1 && state.pending.charCodeAt(pmax - 1) === 32) {
2686
+ let ws = pmax - 1;
2687
+ while (ws >= 1 && state.pending.charCodeAt(ws - 1) === 32) ws--;
2688
+ state.pending = state.pending.slice(0, ws);
2689
+ state.push("hardbreak", "br", 0);
2690
+ } else {
2691
+ state.pending = state.pending.slice(0, -1);
2692
+ state.push("softbreak", "br", 0);
2693
+ }
2694
+ else state.push("softbreak", "br", 0);
2695
+ pos++;
2696
+ while (pos < max && isSpace(state.src.charCodeAt(pos))) pos++;
2697
+ state.pos = pos;
2698
+ return true;
2699
+ }
2700
+ //#endregion
2701
+ //#region src/rules_inline/escape.ts
2702
+ var ESCAPED = [];
2703
+ for (let i = 0; i < 256; i++) ESCAPED.push(0);
2704
+ "\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(ch) {
2705
+ ESCAPED[ch.charCodeAt(0)] = 1;
2706
+ });
2707
+ function escape(state, silent) {
2708
+ let pos = state.pos;
2709
+ const max = state.posMax;
2710
+ if (state.src.charCodeAt(pos) !== 92) return false;
2711
+ pos++;
2712
+ if (pos >= max) return false;
2713
+ let ch1 = state.src.charCodeAt(pos);
2714
+ if (ch1 === 10) {
2715
+ if (!silent) state.push("hardbreak", "br", 0);
2716
+ pos++;
2717
+ while (pos < max) {
2718
+ ch1 = state.src.charCodeAt(pos);
2719
+ if (!isSpace(ch1)) break;
2720
+ pos++;
2721
+ }
2722
+ state.pos = pos;
2723
+ return true;
2724
+ }
2725
+ if (ch1 === 32) {
2726
+ if (!silent) {
2727
+ const token = state.push("text_special", "", 0);
2728
+ token.content = "\\";
2729
+ token.markup = "\\";
2730
+ token.info = "escape";
2731
+ }
2732
+ state.pos = pos;
2733
+ return true;
2734
+ }
2735
+ let escapedStr = state.src[pos];
2736
+ if (ch1 >= 55296 && ch1 <= 56319 && pos + 1 < max) {
2737
+ const ch2 = state.src.charCodeAt(pos + 1);
2738
+ if (ch2 >= 56320 && ch2 <= 57343) {
2739
+ escapedStr += state.src[pos + 1];
2740
+ pos++;
2741
+ }
2742
+ }
2743
+ const origStr = "\\" + escapedStr;
2744
+ if (!silent) {
2745
+ const token = state.push("text_special", "", 0);
2746
+ if (ch1 < 256 && ESCAPED[ch1] !== 0) token.content = escapedStr;
2747
+ else token.content = origStr;
2748
+ token.markup = origStr;
2749
+ token.info = "escape";
2750
+ }
2751
+ state.pos = pos + 1;
2752
+ return true;
2753
+ }
2754
+ //#endregion
2755
+ //#region src/rules_inline/backticks.ts
2756
+ function buildLastRuns(src) {
2757
+ const lastRuns = {};
2758
+ let pos = 0;
2759
+ while ((pos = src.indexOf("`", pos)) !== -1) {
2760
+ const start = pos;
2761
+ while (src.charCodeAt(++pos) === 96);
2762
+ lastRuns[pos - start] = start;
2763
+ }
2764
+ return lastRuns;
2765
+ }
2766
+ function backtick(state, silent) {
2767
+ var _state$backticks$open;
2768
+ const start = state.pos;
2769
+ if (state.src.charCodeAt(start) !== 96) return false;
2770
+ const max = state.posMax;
2771
+ let pos = start + 1;
2772
+ while (pos < max && state.src.charCodeAt(pos) === 96) pos++;
2773
+ const marker = state.src.slice(start, pos);
2774
+ const openerLength = marker.length;
2775
+ if (!state.backticksScanned) {
2776
+ state.backticks = buildLastRuns(state.src);
2777
+ state.backticksScanned = true;
2778
+ }
2779
+ if (((_state$backticks$open = state.backticks[openerLength]) !== null && _state$backticks$open !== void 0 ? _state$backticks$open : -1) >= pos) {
2780
+ let matchEnd = pos;
2781
+ let matchStart;
2782
+ while ((matchStart = state.src.indexOf("`", matchEnd)) !== -1 && matchStart < max) {
2783
+ matchEnd = matchStart + 1;
2784
+ while (state.src.charCodeAt(matchEnd) === 96) matchEnd++;
2785
+ if (matchEnd > max) break;
2786
+ if (matchEnd - matchStart === openerLength) {
2787
+ if (!silent) {
2788
+ const token = state.push("code_inline", "code", 0);
2789
+ token.markup = marker;
2790
+ let content = state.src.slice(pos, matchStart).replace(/\n/g, " ");
2791
+ if (content.startsWith(" ") && content.endsWith(" ") && /[^ ]/.test(content)) content = content.slice(1, -1);
2792
+ token.content = content;
2793
+ }
2794
+ state.pos = matchEnd;
2795
+ return true;
2796
+ }
2797
+ }
2798
+ }
2799
+ if (!silent) state.pending += marker;
2800
+ state.pos = pos;
2801
+ return true;
2802
+ }
2803
+ //#endregion
2804
+ //#region src/rules_inline/strikethrough.ts
2805
+ function strikethrough_tokenize(state, silent) {
2806
+ const start = state.pos;
2807
+ const marker = state.src.charCodeAt(start);
2808
+ if (silent) return false;
2809
+ if (marker !== 126) return false;
2810
+ const scanned = state.scanDelims(state.pos, true);
2811
+ let len = scanned.length;
2812
+ const ch = String.fromCharCode(marker);
2813
+ if (len < 2) return false;
2814
+ let token;
2815
+ if (len % 2) {
2816
+ token = state.push("text", "", 0);
2817
+ token.content = ch;
2818
+ len--;
2819
+ }
2820
+ for (let i = 0; i < len; i += 2) {
2821
+ token = state.push("text", "", 0);
2822
+ token.content = ch + ch;
2823
+ state.delimiters.push({
2824
+ marker,
2825
+ length: 0,
2826
+ token: state.tokens.length - 1,
2827
+ end: -1,
2828
+ open: scanned.can_open,
2829
+ close: scanned.can_close
2830
+ });
2831
+ }
2832
+ state.pos += scanned.length;
2833
+ return true;
2834
+ }
2835
+ function postProcess$1(state, delimiters) {
2836
+ let token;
2837
+ const loneMarkers = [];
2838
+ const max = delimiters.length;
2839
+ for (let i = 0; i < max; i++) {
2840
+ const startDelim = delimiters[i];
2841
+ if (startDelim.marker !== 126) continue;
2842
+ if (startDelim.end === -1) continue;
2843
+ const endDelim = delimiters[startDelim.end];
2844
+ token = state.tokens[startDelim.token];
2845
+ token.type = "s_open";
2846
+ token.tag = "s";
2847
+ token.nesting = 1;
2848
+ token.markup = "~~";
2849
+ token.content = "";
2850
+ token = state.tokens[endDelim.token];
2851
+ token.type = "s_close";
2852
+ token.tag = "s";
2853
+ token.nesting = -1;
2854
+ token.markup = "~~";
2855
+ token.content = "";
2856
+ if (state.tokens[endDelim.token - 1].type === "text" && state.tokens[endDelim.token - 1].content === "~") loneMarkers.push(endDelim.token - 1);
2857
+ }
2858
+ while (loneMarkers.length) {
2859
+ const i = loneMarkers.pop();
2860
+ let j = i + 1;
2861
+ while (j < state.tokens.length && state.tokens[j].type === "s_close") j++;
2862
+ j--;
2863
+ if (i !== j) {
2864
+ token = state.tokens[j];
2865
+ state.tokens[j] = state.tokens[i];
2866
+ state.tokens[i] = token;
2867
+ }
2868
+ }
2869
+ }
2870
+ function strikethrough_postProcess(state) {
2871
+ const tokens_meta = state.tokens_meta;
2872
+ const max = state.tokens_meta.length;
2873
+ postProcess$1(state, state.delimiters);
2874
+ for (let curr = 0; curr < max; curr++) {
2875
+ var _tokens_meta$curr;
2876
+ const delimiters = (_tokens_meta$curr = tokens_meta[curr]) === null || _tokens_meta$curr === void 0 ? void 0 : _tokens_meta$curr.delimiters;
2877
+ if (delimiters) postProcess$1(state, delimiters);
2878
+ }
2879
+ }
2880
+ var strikethrough_default = {
2881
+ tokenize: strikethrough_tokenize,
2882
+ postProcess: strikethrough_postProcess
2883
+ };
2884
+ //#endregion
2885
+ //#region src/rules_inline/emphasis.ts
2886
+ function emphasis_tokenize(state, silent) {
2887
+ const start = state.pos;
2888
+ const marker = state.src.charCodeAt(start);
2889
+ if (silent) return false;
2890
+ if (marker !== 95 && marker !== 42) return false;
2891
+ const scanned = state.scanDelims(state.pos, marker === 42);
2892
+ for (let i = 0; i < scanned.length; i++) {
2893
+ const token = state.push("text", "", 0);
2894
+ token.content = String.fromCharCode(marker);
2895
+ state.delimiters.push({
2896
+ marker,
2897
+ length: scanned.length,
2898
+ token: state.tokens.length - 1,
2899
+ end: -1,
2900
+ open: scanned.can_open,
2901
+ close: scanned.can_close
2902
+ });
2903
+ }
2904
+ state.pos += scanned.length;
2905
+ return true;
2906
+ }
2907
+ function postProcess(state, delimiters) {
2908
+ const max = delimiters.length;
2909
+ for (let i = max - 1; i >= 0; i--) {
2910
+ const startDelim = delimiters[i];
2911
+ if (startDelim.marker !== 95 && startDelim.marker !== 42) continue;
2912
+ if (startDelim.end === -1) continue;
2913
+ const endDelim = delimiters[startDelim.end];
2914
+ const isStrong = i > 0 && delimiters[i - 1].end === startDelim.end + 1 && delimiters[i - 1].marker === startDelim.marker && delimiters[i - 1].token === startDelim.token - 1 && delimiters[startDelim.end + 1].token === endDelim.token + 1;
2915
+ const ch = String.fromCharCode(startDelim.marker);
2916
+ const token_o = state.tokens[startDelim.token];
2917
+ token_o.type = isStrong ? "strong_open" : "em_open";
2918
+ token_o.tag = isStrong ? "strong" : "em";
2919
+ token_o.nesting = 1;
2920
+ token_o.markup = isStrong ? ch + ch : ch;
2921
+ token_o.content = "";
2922
+ const token_c = state.tokens[endDelim.token];
2923
+ token_c.type = isStrong ? "strong_close" : "em_close";
2924
+ token_c.tag = isStrong ? "strong" : "em";
2925
+ token_c.nesting = -1;
2926
+ token_c.markup = isStrong ? ch + ch : ch;
2927
+ token_c.content = "";
2928
+ if (isStrong) {
2929
+ state.tokens[delimiters[i - 1].token].content = "";
2930
+ state.tokens[delimiters[startDelim.end + 1].token].content = "";
2931
+ i--;
2932
+ }
2933
+ }
2934
+ }
2935
+ function emphasis_post_process(state) {
2936
+ const tokens_meta = state.tokens_meta;
2937
+ const max = state.tokens_meta.length;
2938
+ postProcess(state, state.delimiters);
2939
+ for (let curr = 0; curr < max; curr++) {
2940
+ var _tokens_meta$curr;
2941
+ const delimiters = (_tokens_meta$curr = tokens_meta[curr]) === null || _tokens_meta$curr === void 0 ? void 0 : _tokens_meta$curr.delimiters;
2942
+ if (delimiters) postProcess(state, delimiters);
2943
+ }
2944
+ }
2945
+ var emphasis_default = {
2946
+ tokenize: emphasis_tokenize,
2947
+ postProcess: emphasis_post_process
2948
+ };
2949
+ //#endregion
2950
+ //#region src/rules_inline/link.ts
2951
+ function link(state, silent) {
2952
+ let code, label, res, ref;
2953
+ let href = "";
2954
+ let title = "";
2955
+ let start = state.pos;
2956
+ let parseReference = true;
2957
+ if (state.src.charCodeAt(state.pos) !== 91) return false;
2958
+ const oldPos = state.pos;
2959
+ const max = state.posMax;
2960
+ const labelStart = state.pos + 1;
2961
+ const labelEnd = state.md.helpers.parseLinkLabel(state, state.pos, true);
2962
+ if (labelEnd < 0) return false;
2963
+ let pos = labelEnd + 1;
2964
+ if (pos < max && state.src.charCodeAt(pos) === 40) {
2965
+ parseReference = false;
2966
+ pos++;
2967
+ for (; pos < max; pos++) {
2968
+ code = state.src.charCodeAt(pos);
2969
+ if (!isSpace(code) && code !== 10) break;
2970
+ }
2971
+ if (pos >= max) return false;
2972
+ start = pos;
2973
+ res = state.md.helpers.parseLinkDestination(state.src, pos, state.posMax);
2974
+ if (res.ok) {
2975
+ href = state.md.normalizeLink(res.str);
2976
+ if (state.md.validateLink(href)) pos = res.pos;
2977
+ else href = "";
2978
+ start = pos;
2979
+ for (; pos < max; pos++) {
2980
+ code = state.src.charCodeAt(pos);
2981
+ if (!isSpace(code) && code !== 10) break;
2982
+ }
2983
+ res = state.md.helpers.parseLinkTitle(state.src, pos, state.posMax);
2984
+ if (pos < max && start !== pos && res.ok) {
2985
+ title = res.str;
2986
+ pos = res.pos;
2987
+ for (; pos < max; pos++) {
2988
+ code = state.src.charCodeAt(pos);
2989
+ if (!isSpace(code) && code !== 10) break;
2990
+ }
2991
+ }
2992
+ }
2993
+ if (pos >= max || state.src.charCodeAt(pos) !== 41) parseReference = true;
2994
+ pos++;
2995
+ }
2996
+ if (parseReference) {
2997
+ if (typeof state.env.references === "undefined") return false;
2998
+ if (pos < max && state.src.charCodeAt(pos) === 91) {
2999
+ start = pos + 1;
3000
+ pos = state.md.helpers.parseLinkLabel(state, pos);
3001
+ if (pos >= 0) label = state.src.slice(start, pos++);
3002
+ else pos = labelEnd + 1;
3003
+ } else pos = labelEnd + 1;
3004
+ if (!label) label = state.src.slice(labelStart, labelEnd);
3005
+ label = normalizeReference(label);
3006
+ ref = state.env.references[label];
3007
+ if (!ref) {
3008
+ state.pos = oldPos;
3009
+ return false;
3010
+ }
3011
+ href = ref.href;
3012
+ title = ref.title;
3013
+ }
3014
+ if (!silent) {
3015
+ state.pos = labelStart;
3016
+ state.posMax = labelEnd;
3017
+ const token_o = state.push("link_open", "a", 1);
3018
+ const attrs = [["href", href]];
3019
+ token_o.attrs = attrs;
3020
+ if (title) attrs.push(["title", title]);
3021
+ if (label) {
3022
+ const meta = Object.create(null);
3023
+ meta.label = label;
3024
+ token_o.meta = meta;
3025
+ }
3026
+ state.linkLevel++;
3027
+ state.md.inline.tokenize(state);
3028
+ state.linkLevel--;
3029
+ state.push("link_close", "a", -1);
3030
+ }
3031
+ state.pos = pos;
3032
+ state.posMax = max;
3033
+ return true;
3034
+ }
3035
+ //#endregion
3036
+ //#region src/rules_inline/image.ts
3037
+ function image(state, silent) {
3038
+ let code, content, label, pos, ref, res, title, start;
3039
+ let href = "";
3040
+ const oldPos = state.pos;
3041
+ const max = state.posMax;
3042
+ if (state.src.charCodeAt(state.pos) !== 33) return false;
3043
+ if (state.src.charCodeAt(state.pos + 1) !== 91) return false;
3044
+ const labelStart = state.pos + 2;
3045
+ const labelEnd = state.md.helpers.parseLinkLabel(state, state.pos + 1, false);
3046
+ if (labelEnd < 0) return false;
3047
+ pos = labelEnd + 1;
3048
+ if (pos < max && state.src.charCodeAt(pos) === 40) {
3049
+ pos++;
3050
+ for (; pos < max; pos++) {
3051
+ code = state.src.charCodeAt(pos);
3052
+ if (!isSpace(code) && code !== 10) break;
3053
+ }
3054
+ if (pos >= max) return false;
3055
+ start = pos;
3056
+ res = state.md.helpers.parseLinkDestination(state.src, pos, state.posMax);
3057
+ if (res.ok) {
3058
+ href = state.md.normalizeLink(res.str);
3059
+ if (state.md.validateLink(href)) pos = res.pos;
3060
+ else href = "";
3061
+ }
3062
+ start = pos;
3063
+ for (; pos < max; pos++) {
3064
+ code = state.src.charCodeAt(pos);
3065
+ if (!isSpace(code) && code !== 10) break;
3066
+ }
3067
+ res = state.md.helpers.parseLinkTitle(state.src, pos, state.posMax);
3068
+ if (pos < max && start !== pos && res.ok) {
3069
+ title = res.str;
3070
+ pos = res.pos;
3071
+ for (; pos < max; pos++) {
3072
+ code = state.src.charCodeAt(pos);
3073
+ if (!isSpace(code) && code !== 10) break;
3074
+ }
3075
+ } else title = "";
3076
+ if (pos >= max || state.src.charCodeAt(pos) !== 41) {
3077
+ state.pos = oldPos;
3078
+ return false;
3079
+ }
3080
+ pos++;
3081
+ } else {
3082
+ if (typeof state.env.references === "undefined") return false;
3083
+ if (pos < max && state.src.charCodeAt(pos) === 91) {
3084
+ start = pos + 1;
3085
+ pos = state.md.helpers.parseLinkLabel(state, pos);
3086
+ if (pos >= 0) label = state.src.slice(start, pos++);
3087
+ else pos = labelEnd + 1;
3088
+ } else pos = labelEnd + 1;
3089
+ if (!label) label = state.src.slice(labelStart, labelEnd);
3090
+ label = normalizeReference(label);
3091
+ ref = state.env.references[label];
3092
+ if (!ref) {
3093
+ state.pos = oldPos;
3094
+ return false;
3095
+ }
3096
+ href = ref.href;
3097
+ title = ref.title;
3098
+ }
3099
+ if (!silent) {
3100
+ content = state.src.slice(labelStart, labelEnd);
3101
+ const tokens = [];
3102
+ state.md.inline.parse(content, state.md, state.env, tokens);
3103
+ const token = state.push("image", "img", 0);
3104
+ const attrs = [["src", href], ["alt", ""]];
3105
+ token.attrs = attrs;
3106
+ token.children = tokens;
3107
+ token.content = content;
3108
+ if (title) attrs.push(["title", title]);
3109
+ if (label) {
3110
+ const meta = Object.create(null);
3111
+ meta.label = label;
3112
+ token.meta = meta;
3113
+ }
3114
+ }
3115
+ state.pos = pos;
3116
+ state.posMax = max;
3117
+ return true;
3118
+ }
3119
+ //#endregion
3120
+ //#region src/rules_inline/autolink.ts
3121
+ var EMAIL_RE = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/;
3122
+ var AUTOLINK_RE = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
3123
+ function autolink(state, silent) {
3124
+ let pos = state.pos;
3125
+ if (state.src.charCodeAt(pos) !== 60) return false;
3126
+ const start = state.pos;
3127
+ const max = state.posMax;
3128
+ for (;;) {
3129
+ if (++pos >= max) return false;
3130
+ const ch = state.src.charCodeAt(pos);
3131
+ if (ch === 60) return false;
3132
+ if (ch === 62) break;
3133
+ }
3134
+ const url = state.src.slice(start + 1, pos);
3135
+ if (AUTOLINK_RE.test(url)) {
3136
+ const fullUrl = state.md.normalizeLink(url);
3137
+ if (!state.md.validateLink(fullUrl)) return false;
3138
+ if (!silent) {
3139
+ const token_o = state.push("link_open", "a", 1);
3140
+ token_o.attrs = [["href", fullUrl]];
3141
+ token_o.markup = "autolink";
3142
+ token_o.info = "auto";
3143
+ const token_t = state.push("text", "", 0);
3144
+ token_t.content = state.md.normalizeLinkText(url);
3145
+ const token_c = state.push("link_close", "a", -1);
3146
+ token_c.markup = "autolink";
3147
+ token_c.info = "auto";
3148
+ }
3149
+ state.pos += url.length + 2;
3150
+ return true;
3151
+ }
3152
+ if (EMAIL_RE.test(url)) {
3153
+ const fullUrl = state.md.normalizeLink(`mailto:${url}`);
3154
+ if (!state.md.validateLink(fullUrl)) return false;
3155
+ if (!silent) {
3156
+ const token_o = state.push("link_open", "a", 1);
3157
+ token_o.attrs = [["href", fullUrl]];
3158
+ token_o.markup = "autolink";
3159
+ token_o.info = "auto";
3160
+ const token_t = state.push("text", "", 0);
3161
+ token_t.content = state.md.normalizeLinkText(url);
3162
+ const token_c = state.push("link_close", "a", -1);
3163
+ token_c.markup = "autolink";
3164
+ token_c.info = "auto";
3165
+ }
3166
+ state.pos += url.length + 2;
3167
+ return true;
3168
+ }
3169
+ return false;
3170
+ }
3171
+ //#endregion
3172
+ //#region src/rules_inline/html_inline.ts
3173
+ function isLinkOpen(str) {
3174
+ return /^<a[>\s]/i.test(str);
3175
+ }
3176
+ function isLinkClose(str) {
3177
+ return /^<\/a\s*>/i.test(str);
3178
+ }
3179
+ function isLetter(ch) {
3180
+ const lc = ch | 32;
3181
+ return lc >= 97 && lc <= 122;
3182
+ }
3183
+ function html_inline(state, silent) {
3184
+ if (!state.md.options.html) return false;
3185
+ const max = state.posMax;
3186
+ const pos = state.pos;
3187
+ if (state.src.charCodeAt(pos) !== 60 || pos + 2 >= max) return false;
3188
+ const ch = state.src.charCodeAt(pos + 1);
3189
+ if (ch !== 33 && ch !== 63 && ch !== 47 && !isLetter(ch)) return false;
3190
+ const match = state.src.slice(pos).match(HTML_TAG_RE);
3191
+ if (!match) return false;
3192
+ if (!silent) {
3193
+ const token = state.push("html_inline", "", 0);
3194
+ token.content = match[0];
3195
+ if (isLinkOpen(token.content)) state.linkLevel++;
3196
+ if (isLinkClose(token.content)) state.linkLevel--;
3197
+ }
3198
+ state.pos += match[0].length;
3199
+ return true;
3200
+ }
3201
+ //#endregion
3202
+ //#region src/rules_inline/entity.ts
3203
+ var DIGITAL_RE = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i;
3204
+ var NAMED_RE = /^&([a-z][a-z0-9]{1,31});/i;
3205
+ function entity(state, silent) {
3206
+ const pos = state.pos;
3207
+ const max = state.posMax;
3208
+ if (state.src.charCodeAt(pos) !== 38) return false;
3209
+ if (pos + 1 >= max) return false;
3210
+ if (state.src.charCodeAt(pos + 1) === 35) {
3211
+ const match = state.src.slice(pos).match(DIGITAL_RE);
3212
+ if (match) {
3213
+ if (!silent) {
3214
+ const code = match[1][0].toLowerCase() === "x" ? parseInt(match[1].slice(1), 16) : parseInt(match[1], 10);
3215
+ const token = state.push("text_special", "", 0);
3216
+ token.content = isValidEntityCode(code) ? fromCodePoint(code) : fromCodePoint(65533);
3217
+ token.markup = match[0];
3218
+ token.info = "entity";
3219
+ }
3220
+ state.pos += match[0].length;
3221
+ return true;
3222
+ }
3223
+ } else {
3224
+ const match = state.src.slice(pos).match(NAMED_RE);
3225
+ if (match) {
3226
+ const decoded = decodeHTMLStrict(match[0]);
3227
+ if (decoded !== match[0]) {
3228
+ if (!silent) {
3229
+ const token = state.push("text_special", "", 0);
3230
+ token.content = decoded;
3231
+ token.markup = match[0];
3232
+ token.info = "entity";
3233
+ }
3234
+ state.pos += match[0].length;
3235
+ return true;
3236
+ }
3237
+ }
3238
+ }
3239
+ return false;
3240
+ }
3241
+ //#endregion
3242
+ //#region src/rules_inline/balance_pairs.ts
3243
+ function processDelimiters(delimiters) {
3244
+ const openersBottom = {};
3245
+ const max = delimiters.length;
3246
+ if (!max) return;
3247
+ let headerIdx = 0;
3248
+ let lastTokenIdx = -2;
3249
+ const jumps = [];
3250
+ for (let closerIdx = 0; closerIdx < max; closerIdx++) {
3251
+ const closer = delimiters[closerIdx];
3252
+ jumps.push(0);
3253
+ if (delimiters[headerIdx].marker !== closer.marker || lastTokenIdx !== closer.token - 1) headerIdx = closerIdx;
3254
+ lastTokenIdx = closer.token;
3255
+ closer.length = closer.length || 0;
3256
+ if (!closer.close) continue;
3257
+ if (!openersBottom.hasOwnProperty(closer.marker)) openersBottom[closer.marker] = [
3258
+ -1,
3259
+ -1,
3260
+ -1,
3261
+ -1,
3262
+ -1,
3263
+ -1
3264
+ ];
3265
+ const minOpenerIdx = openersBottom[closer.marker][(closer.open ? 3 : 0) + closer.length % 3];
3266
+ let openerIdx = headerIdx - jumps[headerIdx] - 1;
3267
+ let newMinOpenerIdx = openerIdx;
3268
+ for (; openerIdx > minOpenerIdx; openerIdx -= jumps[openerIdx] + 1) {
3269
+ const opener = delimiters[openerIdx];
3270
+ if (opener.marker !== closer.marker) continue;
3271
+ if (opener.open && opener.end < 0) {
3272
+ let isOddMatch = false;
3273
+ if (opener.close || closer.open) {
3274
+ if ((opener.length + closer.length) % 3 === 0) {
3275
+ if (opener.length % 3 !== 0 || closer.length % 3 !== 0) isOddMatch = true;
3276
+ }
3277
+ }
3278
+ if (!isOddMatch) {
3279
+ const lastJump = openerIdx > 0 && !delimiters[openerIdx - 1].open ? jumps[openerIdx - 1] + 1 : 0;
3280
+ jumps[closerIdx] = closerIdx - openerIdx + lastJump;
3281
+ jumps[openerIdx] = lastJump;
3282
+ closer.open = false;
3283
+ opener.end = closerIdx;
3284
+ opener.close = false;
3285
+ newMinOpenerIdx = -1;
3286
+ lastTokenIdx = -2;
3287
+ break;
3288
+ }
3289
+ }
3290
+ }
3291
+ if (newMinOpenerIdx !== -1) openersBottom[closer.marker][(closer.open ? 3 : 0) + (closer.length || 0) % 3] = newMinOpenerIdx;
3292
+ }
3293
+ }
3294
+ function link_pairs(state) {
3295
+ const tokens_meta = state.tokens_meta;
3296
+ const max = state.tokens_meta.length;
3297
+ processDelimiters(state.delimiters);
3298
+ for (let curr = 0; curr < max; curr++) {
3299
+ var _tokens_meta$curr;
3300
+ const delimiters = (_tokens_meta$curr = tokens_meta[curr]) === null || _tokens_meta$curr === void 0 ? void 0 : _tokens_meta$curr.delimiters;
3301
+ if (delimiters) processDelimiters(delimiters);
3302
+ }
3303
+ }
3304
+ //#endregion
3305
+ //#region src/rules_inline/fragments_join.ts
3306
+ function fragments_join(state) {
3307
+ let curr, last;
3308
+ let level = 0;
3309
+ const tokens = state.tokens;
3310
+ const max = state.tokens.length;
3311
+ for (curr = last = 0; curr < max; curr++) {
3312
+ if (tokens[curr].nesting < 0) level--;
3313
+ tokens[curr].level = level;
3314
+ if (tokens[curr].nesting > 0) level++;
3315
+ if (tokens[curr].type === "text" && curr + 1 < max && tokens[curr + 1].type === "text") tokens[curr + 1].content = tokens[curr].content + tokens[curr + 1].content;
3316
+ else {
3317
+ if (curr !== last) tokens[last] = tokens[curr];
3318
+ last++;
3319
+ }
3320
+ }
3321
+ if (curr !== last) tokens.length = last;
3322
+ }
3323
+ //#endregion
3324
+ //#region src/parser_inline.ts
3325
+ var _rules = [
3326
+ ["text", text],
3327
+ ["linkify", linkify],
3328
+ ["newline", newline],
3329
+ ["escape", escape],
3330
+ ["backticks", backtick],
3331
+ ["strikethrough", strikethrough_default.tokenize],
3332
+ ["emphasis", emphasis_default.tokenize],
3333
+ ["link", link],
3334
+ ["image", image],
3335
+ ["autolink", autolink],
3336
+ ["html_inline", html_inline],
3337
+ ["entity", entity]
3338
+ ];
3339
+ var _rules2 = [
3340
+ ["balance_pairs", link_pairs],
3341
+ ["strikethrough", strikethrough_default.postProcess],
3342
+ ["emphasis", emphasis_default.postProcess],
3343
+ ["fragments_join", fragments_join]
3344
+ ];
3345
+ /**
3346
+ * Tokenizes paragraph content.
3347
+ */
3348
+ var ParserInline = class {
3349
+ constructor() {
3350
+ _defineProperty(
3351
+ this,
3352
+ /**
3353
+ * {@link Ruler} instance. Keep configuration of inline rules.
3354
+ */
3355
+ "ruler",
3356
+ new Ruler()
3357
+ );
3358
+ _defineProperty(
3359
+ this,
3360
+ /**
3361
+ * {@link Ruler} instance. Second ruler used for post-processing
3362
+ * (e.g. in emphasis-like rules).
3363
+ */
3364
+ "ruler2",
3365
+ new Ruler()
3366
+ );
3367
+ _defineProperty(this, "State", StateInline);
3368
+ for (let i = 0; i < _rules.length; i++) this.ruler.push(_rules[i][0], _rules[i][1]);
3369
+ for (let i = 0; i < _rules2.length; i++) this.ruler2.push(_rules2[i][0], _rules2[i][1]);
3370
+ }
3371
+ skipToken(state) {
3372
+ const pos = state.pos;
3373
+ const rules = this.ruler.getRules("");
3374
+ const len = rules.length;
3375
+ const maxNesting = state.md.options.maxNesting;
3376
+ const cache = state.cache;
3377
+ if (typeof cache[pos] !== "undefined") {
3378
+ state.pos = cache[pos];
3379
+ return;
3380
+ }
3381
+ let ok = false;
3382
+ if (state.level < maxNesting) for (let i = 0; i < len; i++) {
3383
+ state.level++;
3384
+ ok = rules[i](state, true);
3385
+ state.level--;
3386
+ if (ok) {
3387
+ if (pos >= state.pos) throw new Error("inline rule didn't increment state.pos");
3388
+ break;
3389
+ }
3390
+ }
3391
+ else state.pos = state.posMax;
3392
+ if (!ok) state.pos++;
3393
+ cache[pos] = state.pos;
3394
+ }
3395
+ tokenize(state) {
3396
+ const rules = this.ruler.getRules("");
3397
+ const len = rules.length;
3398
+ const end = state.posMax;
3399
+ const maxNesting = state.md.options.maxNesting;
3400
+ while (state.pos < end) {
3401
+ const prevPos = state.pos;
3402
+ let ok = false;
3403
+ if (state.level < maxNesting) for (let i = 0; i < len; i++) {
3404
+ ok = rules[i](state, false);
3405
+ if (ok) {
3406
+ if (prevPos >= state.pos) throw new Error("inline rule didn't increment state.pos");
3407
+ break;
3408
+ }
3409
+ }
3410
+ if (ok) {
3411
+ if (state.pos >= end) break;
3412
+ continue;
3413
+ }
3414
+ state.pending += state.src[state.pos++];
3415
+ }
3416
+ if (state.pending) state.pushPending();
3417
+ }
3418
+ /**
3419
+ * Process input string and push inline tokens into `outTokens`
3420
+ */
3421
+ parse(str, md, env, outTokens) {
3422
+ const state = new this.State(str, md, env, outTokens);
3423
+ this.tokenize(state);
3424
+ const rules = this.ruler2.getRules("");
3425
+ const len = rules.length;
3426
+ for (let i = 0; i < len; i++) rules[i](state);
3427
+ }
3428
+ };
3429
+ //#endregion
3430
+ //#region src/markdownit.ts
3431
+ var config = {
3432
+ default: {
3433
+ options: {
3434
+ html: false,
3435
+ xhtmlOut: false,
3436
+ breaks: false,
3437
+ langPrefix: "language-",
3438
+ linkify: false,
3439
+ typographer: false,
3440
+ quotes: "“”‘’",
3441
+ highlight: null,
3442
+ maxNesting: 100
3443
+ },
3444
+ components: {
3445
+ core: {},
3446
+ block: {},
3447
+ inline: {}
3448
+ }
3449
+ },
3450
+ zero: {
3451
+ options: {
3452
+ html: false,
3453
+ xhtmlOut: false,
3454
+ breaks: false,
3455
+ langPrefix: "language-",
3456
+ linkify: false,
3457
+ typographer: false,
3458
+ quotes: "“”‘’",
3459
+ highlight: null,
3460
+ maxNesting: 20
3461
+ },
3462
+ components: {
3463
+ core: { rules: [
3464
+ "normalize",
3465
+ "block",
3466
+ "strip_references",
3467
+ "inline",
3468
+ "text_join"
3469
+ ] },
3470
+ block: { rules: ["paragraph"] },
3471
+ inline: {
3472
+ rules: ["text"],
3473
+ rules2: ["balance_pairs", "fragments_join"]
3474
+ }
3475
+ }
3476
+ },
3477
+ commonmark: {
3478
+ options: {
3479
+ html: true,
3480
+ xhtmlOut: true,
3481
+ breaks: false,
3482
+ langPrefix: "language-",
3483
+ linkify: false,
3484
+ typographer: false,
3485
+ quotes: "“”‘’",
3486
+ highlight: null,
3487
+ maxNesting: 20
3488
+ },
3489
+ components: {
3490
+ core: { rules: [
3491
+ "normalize",
3492
+ "block",
3493
+ "strip_references",
3494
+ "inline",
3495
+ "text_join"
3496
+ ] },
3497
+ block: { rules: [
3498
+ "blockquote",
3499
+ "code",
3500
+ "fence",
3501
+ "heading",
3502
+ "hr",
3503
+ "html_block",
3504
+ "lheading",
3505
+ "list",
3506
+ "reference",
3507
+ "paragraph"
3508
+ ] },
3509
+ inline: {
3510
+ rules: [
3511
+ "autolink",
3512
+ "backticks",
3513
+ "emphasis",
3514
+ "entity",
3515
+ "escape",
3516
+ "html_inline",
3517
+ "image",
3518
+ "link",
3519
+ "newline",
3520
+ "text"
3521
+ ],
3522
+ rules2: [
3523
+ "balance_pairs",
3524
+ "emphasis",
3525
+ "fragments_join"
3526
+ ]
3527
+ }
3528
+ }
3529
+ }
3530
+ };
3531
+ var BAD_PROTO_RE = /^(vbscript|javascript|file|data):/;
3532
+ var GOOD_DATA_RE = /^data:image\/(gif|png|jpeg|webp);/;
3533
+ var RECODE_HOSTNAME_FOR = [
3534
+ "http:",
3535
+ "https:",
3536
+ "mailto:"
3537
+ ];
3538
+ /**
3539
+ * Parses Markdown into tokens and renders them to HTML.
3540
+ *
3541
+ * @category Main
3542
+ */
3543
+ var MarkdownIt = class {
3544
+ /**
3545
+ * Link validation function. CommonMark allows too much in links. By default
3546
+ * we disable `javascript:`, `vbscript:`, `file:` schemas, and almost all `data:...` schemas
3547
+ * except some embedded image types.
3548
+ *
3549
+ * You can change this behaviour:
3550
+ *
3551
+ * @example
3552
+ * ```javascript
3553
+ * import MarkdownIt from 'markdown-it'
3554
+ * const md = new MarkdownIt()
3555
+ *
3556
+ * // enable everything
3557
+ * md.validateLink = function () { return true; }
3558
+ * ```
3559
+ */
3560
+ validateLink(url) {
3561
+ const str = url.trim().toLowerCase();
3562
+ return BAD_PROTO_RE.test(str) ? GOOD_DATA_RE.test(str) : true;
3563
+ }
3564
+ /**
3565
+ * Function used to encode link url to a machine-readable format,
3566
+ * which includes url-encoding, punycode, etc.
3567
+ */
3568
+ normalizeLink(url) {
3569
+ const parsed = mdurl.parse(url, true);
3570
+ if (parsed.hostname) {
3571
+ if (!parsed.protocol || RECODE_HOSTNAME_FOR.indexOf(parsed.protocol) >= 0) try {
3572
+ parsed.hostname = punycode.toASCII(parsed.hostname);
3573
+ } catch (er) {}
3574
+ }
3575
+ if (parsed.auth) parsed.auth = mdurl.encode(parsed.auth);
3576
+ if (parsed.hostname) parsed.hostname = mdurl.encode(parsed.hostname);
3577
+ if (parsed.pathname) parsed.pathname = mdurl.encode(parsed.pathname);
3578
+ if (parsed.search) parsed.search = mdurl.encode(parsed.search);
3579
+ if (parsed.hash) parsed.hash = mdurl.encode(parsed.hash);
3580
+ return mdurl.format(parsed);
3581
+ }
3582
+ /**
3583
+ * Function used to decode link url to a human-readable format`
3584
+ */
3585
+ normalizeLinkText(url) {
3586
+ const parsed = mdurl.parse(url, true);
3587
+ if (parsed.hostname) {
3588
+ if (!parsed.protocol || RECODE_HOSTNAME_FOR.indexOf(parsed.protocol) >= 0) try {
3589
+ parsed.hostname = punycode.toUnicode(parsed.hostname);
3590
+ } catch (er) {}
3591
+ }
3592
+ return mdurl.decode(mdurl.format(parsed), mdurl.decode.defaultChars + "%");
3593
+ }
3594
+ constructor(...args) {
3595
+ _defineProperty(
3596
+ this,
3597
+ /**
3598
+ * Instance of {@link ParserInline}. You may need it to add new rules when
3599
+ * writing plugins. For simple rules control use {@link MarkdownIt.disable}
3600
+ * and {@link MarkdownIt.enable}.
3601
+ */
3602
+ "inline",
3603
+ new ParserInline()
3604
+ );
3605
+ _defineProperty(
3606
+ this,
3607
+ /**
3608
+ * Instance of {@link ParserBlock}. You may need it to add new rules when
3609
+ * writing plugins. For simple rules control use {@link MarkdownIt.disable}
3610
+ * and {@link MarkdownIt.enable}.
3611
+ */
3612
+ "block",
3613
+ new ParserBlock()
3614
+ );
3615
+ _defineProperty(
3616
+ this,
3617
+ /**
3618
+ * Instance of {@link ParserCore} chain executor. You may need it to add new
3619
+ * rules when writing plugins. For simple rules control use
3620
+ * {@link MarkdownIt.disable} and {@link MarkdownIt.enable}.
3621
+ */
3622
+ "core",
3623
+ new ParserCore()
3624
+ );
3625
+ _defineProperty(
3626
+ this,
3627
+ /**
3628
+ * Instance of {@link Renderer}. Use it to modify output look. Or to add rendering
3629
+ * rules for new token types, generated by plugins.
3630
+ *
3631
+ * See {@link Renderer} docs and
3632
+ * [source code](https://github.com/markdown-it/markdown-it/blob/master/src/renderer.ts).
3633
+ *
3634
+ * @example
3635
+ * ```javascript
3636
+ * import MarkdownIt from 'markdown-it'
3637
+ * const md = new MarkdownIt()
3638
+ *
3639
+ * function myToken(tokens, idx, options, env, self) {
3640
+ * //...
3641
+ * return result;
3642
+ * };
3643
+ *
3644
+ * md.renderer.rules['my_token'] = myToken
3645
+ * ```
3646
+ */
3647
+ "renderer",
3648
+ new Renderer()
3649
+ );
3650
+ _defineProperty(
3651
+ this,
3652
+ /**
3653
+ * [linkify-it](https://github.com/markdown-it/linkify-it) instance.
3654
+ * Used by [linkify](https://github.com/markdown-it/markdown-it/blob/master/src/rules_core/linkify.ts)
3655
+ * rule.
3656
+ */
3657
+ "linkify",
3658
+ new LinkifyIt()
3659
+ );
3660
+ _defineProperty(
3661
+ this,
3662
+ /**
3663
+ * Assorted utility functions, useful to write plugins. See details
3664
+ * [here](https://github.com/markdown-it/markdown-it/blob/master/src/common/utils.ts).
3665
+ */
3666
+ "utils",
3667
+ utils_exports
3668
+ );
3669
+ _defineProperty(
3670
+ this,
3671
+ /**
3672
+ * Link components parser functions, useful to write plugins. See details
3673
+ * [here](https://github.com/markdown-it/markdown-it/blob/master/src/helpers).
3674
+ */
3675
+ "helpers",
3676
+ Object.assign({}, helpers_exports)
3677
+ );
3678
+ const [presetNameOrOptions, options] = args;
3679
+ if (typeof presetNameOrOptions === "string") {
3680
+ this.configure(presetNameOrOptions);
3681
+ if (options) this.set(options);
3682
+ } else {
3683
+ this.configure("default");
3684
+ this.set(presetNameOrOptions || {});
3685
+ }
3686
+ }
3687
+ /**
3688
+ * Set parser options (in the same format as in constructor). Probably, you
3689
+ * will never need it, but you can change options after constructor call.
3690
+ *
3691
+ * __Note:__ To achieve the best possible performance, don't modify a
3692
+ * `markdown-it` instance options on the fly. If you need multiple configurations
3693
+ * it's best to create multiple instances and initialize each with separate
3694
+ * config.
3695
+ *
3696
+ * @example
3697
+ * ```javascript
3698
+ * import MarkdownIt from 'markdown-it'
3699
+ *
3700
+ * const md = new MarkdownIt()
3701
+ * .set({ html: true, breaks: true })
3702
+ * .set({ typographer: true })
3703
+ * ```
3704
+ */
3705
+ set(options) {
3706
+ Object.assign(this.options, options);
3707
+ return this;
3708
+ }
3709
+ /**
3710
+ * Batch load of all options and compenent settings. This is internal method,
3711
+ * and you probably will not need it. But if you will - see available presets
3712
+ * and data structure [here](https://github.com/markdown-it/markdown-it/tree/master/src/presets)
3713
+ *
3714
+ * We strongly recommend to use presets instead of direct config loads. That
3715
+ * will give better compatibility with next versions.
3716
+ */
3717
+ configure(presets) {
3718
+ let p;
3719
+ if (typeof presets === "string") {
3720
+ const presetName = presets;
3721
+ p = config[presetName];
3722
+ if (!p) throw new Error(`Wrong 'markdown-it' preset "${presetName}", check name`);
3723
+ } else p = presets;
3724
+ if (!p) throw new Error("Wrong `markdown-it` preset, can't be empty");
3725
+ if (p.options) this.options = { ...p.options };
3726
+ const components = p.components;
3727
+ if (components) {
3728
+ var _components$inline;
3729
+ [
3730
+ "core",
3731
+ "block",
3732
+ "inline"
3733
+ ].forEach((name) => {
3734
+ var _components$name;
3735
+ const rules = (_components$name = components[name]) === null || _components$name === void 0 ? void 0 : _components$name.rules;
3736
+ if (rules) this[name].ruler.enableOnly(rules);
3737
+ });
3738
+ const rules2 = (_components$inline = components.inline) === null || _components$inline === void 0 ? void 0 : _components$inline.rules2;
3739
+ if (rules2) this.inline.ruler2.enableOnly(rules2);
3740
+ }
3741
+ return this;
3742
+ }
3743
+ /**
3744
+ * Enable list or rules. It will automatically find appropriate components,
3745
+ * containing rules with given names. If rule not found, and `ignoreInvalid`
3746
+ * not set - throws exception.
3747
+ *
3748
+ * @example
3749
+ * ```javascript
3750
+ * import MarkdownIt from 'markdown-it'
3751
+ *
3752
+ * const md = new MarkdownIt()
3753
+ * .enable(['sub', 'sup'])
3754
+ * .disable('smartquotes')
3755
+ * ```
3756
+ */
3757
+ enable(list, ignoreInvalid = false) {
3758
+ let result = [];
3759
+ if (!Array.isArray(list)) list = [list];
3760
+ [
3761
+ "core",
3762
+ "block",
3763
+ "inline"
3764
+ ].forEach((chain) => {
3765
+ result = result.concat(this[chain].ruler.enable(list, true));
3766
+ });
3767
+ result = result.concat(this.inline.ruler2.enable(list, true));
3768
+ const missed = list.filter((name) => result.indexOf(name) < 0);
3769
+ if (missed.length && !ignoreInvalid) throw new Error(`MarkdownIt. Failed to enable unknown rule(s): ${missed}`);
3770
+ return this;
3771
+ }
3772
+ /**
3773
+ * The same as {@link MarkdownIt.enable}, but turn specified rules off.
3774
+ */
3775
+ disable(list, ignoreInvalid = false) {
3776
+ let result = [];
3777
+ if (!Array.isArray(list)) list = [list];
3778
+ [
3779
+ "core",
3780
+ "block",
3781
+ "inline"
3782
+ ].forEach((chain) => {
3783
+ result = result.concat(this[chain].ruler.disable(list, true));
3784
+ });
3785
+ result = result.concat(this.inline.ruler2.disable(list, true));
3786
+ const missed = list.filter((name) => result.indexOf(name) < 0);
3787
+ if (missed.length && !ignoreInvalid) throw new Error(`MarkdownIt. Failed to disable unknown rule(s): ${missed}`);
3788
+ return this;
3789
+ }
3790
+ /**
3791
+ * Load specified plugin with given params into current parser instance.
3792
+ * It's just a sugar to call `plugin(md, params)` with curring.
3793
+ *
3794
+ * @example
3795
+ * ```javascript
3796
+ * import MarkdownIt from 'markdown-it'
3797
+ * import iterator from 'markdown-it-for-inline'
3798
+ *
3799
+ * const md = new MarkdownIt()
3800
+ * .use(iterator, 'foo_replace', 'text', function (tokens, idx) {
3801
+ * tokens[idx].content = tokens[idx].content.replace(/foo/g, 'bar')
3802
+ * })
3803
+ * ```
3804
+ */
3805
+ use(plugin, ...params) {
3806
+ plugin.apply(plugin, [this, ...params]);
3807
+ return this;
3808
+ }
3809
+ /**
3810
+ * Parse input string and return list of block tokens (special token type
3811
+ * "inline" will contain list of inline tokens). You should not call this
3812
+ * method directly, until you write custom renderer (for example, to produce
3813
+ * AST).
3814
+ *
3815
+ * `env` is used to pass data between "distributed" rules and return additional
3816
+ * metadata like reference info, needed for the renderer. It also can be used to
3817
+ * inject data in specific cases. Usually, you will be ok to pass `{}`,
3818
+ * and then pass updated object to renderer.
3819
+ */
3820
+ parse(src, env) {
3821
+ if (typeof src !== "string") throw new Error("Input data should be a String");
3822
+ const state = new this.core.State(src, this, env);
3823
+ this.core.process(state);
3824
+ return state.tokens;
3825
+ }
3826
+ /**
3827
+ * Render markdown string into html. It does all magic for you :).
3828
+ *
3829
+ * `env` can be used to inject additional metadata (`{}` by default).
3830
+ * But you will not need it with high probability. See also comment
3831
+ * in {@link MarkdownIt.parse}.
3832
+ */
3833
+ render(src, env = {}) {
3834
+ return this.renderer.render(this.parse(src, env), this.options, env);
3835
+ }
3836
+ /**
3837
+ * The same as {@link MarkdownIt.parse} but skip all block rules. It returns
3838
+ * the block tokens list with the single `inline` element, containing parsed
3839
+ * inline tokens in `children` property. Also updates `env` object.
3840
+ */
3841
+ parseInline(src, env) {
3842
+ const state = new this.core.State(src, this, env);
3843
+ state.inlineMode = true;
3844
+ this.core.process(state);
3845
+ return state.tokens;
3846
+ }
3847
+ /**
3848
+ * Similar to {@link MarkdownIt.render} but for single paragraph content.
3849
+ * Result will NOT be wrapped into `<p>` tags.
3850
+ */
3851
+ renderInline(src, env = {}) {
3852
+ return this.renderer.render(this.parseInline(src, env), this.options, env);
3853
+ }
3854
+ };
3855
+ _defineProperty(MarkdownIt, "Token", Token);
3856
+ _defineProperty(MarkdownIt, "Ruler", Ruler);
3857
+ _defineProperty(MarkdownIt, "Renderer", Renderer);
3858
+ _defineProperty(MarkdownIt, "ParserCore", ParserCore);
3859
+ _defineProperty(MarkdownIt, "StateCore", StateCore);
3860
+ _defineProperty(MarkdownIt, "ParserBlock", ParserBlock);
3861
+ _defineProperty(MarkdownIt, "StateBlock", StateBlock);
3862
+ _defineProperty(MarkdownIt, "ParserInline", ParserInline);
3863
+ _defineProperty(MarkdownIt, "StateInline", StateInline);
3864
+ //#endregion
3865
+ //#region src/index.ts
3866
+ /**
3867
+ * Default package export.
3868
+ *
3869
+ * For backward compatibility, the {@link MarkdownIt} class is wrapped so
3870
+ * legacy code can call it without `new`. New code should instantiate it as a
3871
+ * regular class with `new`. The compatibility wrapper may be removed in a
3872
+ * future release.
3873
+ *
3874
+ * @category Main
3875
+ */
3876
+ var MarkdownItCallable = callable(MarkdownIt);
3877
+ //#endregion
3878
+ export { MarkdownItCallable as default };
3879
+
3880
+ //# sourceMappingURL=markdown-it.mjs.map