@openclaw/matrix 2026.7.2-beta.5 → 2026.7.33

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