@fedify/fedify 1.6.1-dev.869 → 1.6.1-dev.871

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 (457) hide show
  1. package/dist/actor-CM3gfkH6.js +36173 -0
  2. package/dist/{vocab/actor.js → actor-D7NMuy45.js} +5 -4
  3. package/dist/{vocab/actor.d.ts → actor-lFlm8FYo.d.ts} +2 -2
  4. package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert.js → assert-Dv75vaGI.js} +2 -1
  5. package/dist/assert_equals-ClvzlhZu.js +1020 -0
  6. package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_instance_of.js → assert_instance_of--9UCVKsi.js} +2 -1
  7. package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_is_error.js → assert_is_error-D162gXcM.js} +2 -2
  8. package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_not_equals.js → assert_not_equals-Cyf5m9Ke.js} +2 -2
  9. package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_rejects.js → assert_rejects-FOHCtlD2.js} +23 -3
  10. package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_throws.js → assert_throws-CRfQJvVx.js} +3 -2
  11. package/dist/{runtime/authdocloader.js → authdocloader-BKZDAq91.js} +5 -4
  12. package/dist/authdocloader-OfYZlI31.js +51 -0
  13. package/dist/{federation/builder.js → builder-DSTiU6ue.js} +6 -5
  14. package/dist/{_virtual/rolldown_runtime.js → chunk-HsBuZ-b2.js} +1 -0
  15. package/dist/client-Dw1pCSIt.d.ts +299 -0
  16. package/dist/{nodeinfo/client.js → client-RN5A1Qgw.js} +3 -2
  17. package/dist/{federation/collection.js → collection-QaGK9TVn.js} +1 -0
  18. package/dist/compat/mod.d.ts +12 -2
  19. package/dist/compat/mod.js +2 -1
  20. package/dist/compat/transformers.test.d.ts +2 -1
  21. package/dist/compat/transformers.test.js +32 -8
  22. package/dist/context-CzJXjNR8.d.ts +2034 -0
  23. package/dist/{testing/context.js → context-DZKXS0DV.js} +5 -4
  24. package/dist/{x/denokv.js → denokv-iB_ggPGm.js} +3 -1
  25. package/dist/{testing/docloader.js → docloader-09nVWLAZ.js} +1 -0
  26. package/dist/{runtime/contexts.js → docloader-BcMxZ9JH.js} +420 -1
  27. package/dist/docloader-DDFam5Xn.js +4594 -0
  28. package/dist/{runtime/docloader.d.ts → docloader-DTRsVZPo.d.ts} +1 -1
  29. package/dist/esm-BxIKwi-M.js +1221 -0
  30. package/dist/federation/builder.test.d.ts +2 -1
  31. package/dist/federation/builder.test.js +21 -7
  32. package/dist/federation/collection.test.d.ts +2 -1
  33. package/dist/federation/collection.test.js +11 -3
  34. package/dist/federation/handler.test.d.ts +2 -1
  35. package/dist/federation/handler.test.js +40 -12
  36. package/dist/federation/inbox.test.d.ts +2 -1
  37. package/dist/federation/inbox.test.js +12 -5
  38. package/dist/federation/keycache.test.d.ts +2 -1
  39. package/dist/federation/keycache.test.js +12 -7
  40. package/dist/federation/kv.test.d.ts +2 -1
  41. package/dist/federation/kv.test.js +11 -3
  42. package/dist/federation/middleware.test.d.ts +2 -1
  43. package/dist/federation/middleware.test.js +107 -26
  44. package/dist/federation/mod.d.ts +13 -13
  45. package/dist/federation/mod.js +12 -8
  46. package/dist/federation/mq.test.d.ts +2 -1
  47. package/dist/federation/mq.test.js +153 -6
  48. package/dist/federation/retry.test.d.ts +2 -1
  49. package/dist/federation/retry.test.js +5 -5
  50. package/dist/federation/router.test.d.ts +2 -1
  51. package/dist/federation/router.test.js +11 -6
  52. package/dist/federation/send.test.d.ts +2 -1
  53. package/dist/federation/send.test.js +25 -13
  54. package/dist/{federation/mq.js → federation-Bmj7soSg.js} +47 -1
  55. package/dist/{node_modules/.pnpm/@jsr_hongminhee__deno-mock-fetch@0.3.2/node_modules/@jsr/hongminhee__deno-mock-fetch/router.js → hongminhee__deno-mock-fetch-DJKLj_H-.js} +96 -1
  56. package/dist/{sig/http.js → http-BFvv3ZId.js} +5 -4
  57. package/dist/http-BImJcLfv.d.ts +258 -0
  58. package/dist/http-v1TqJ9Qa.js +720 -0
  59. package/dist/{federation/inbox.js → inbox-XV_W1qfB.js} +4 -3
  60. package/dist/key-BNM-ickE.js +16 -0
  61. package/dist/key-CVIQ7iUB.js +262 -0
  62. package/dist/{sig/key.js → key-DIk4Rloj.js} +2 -4
  63. package/dist/key-DiVhk5ik.js +10 -0
  64. package/dist/{federation/keycache.js → keycache-uTxsh7dt.js} +2 -1
  65. package/dist/{testing/keys.js → keys-D7lJqunm.js} +2 -2
  66. package/dist/{federation/kv.js → kv-DohFOP2C.js} +1 -0
  67. package/dist/{runtime/langstr.js → langstr-DbWheeIS.js} +1 -0
  68. package/dist/{sig/ld.js → ld-bOhcKpmk.js} +6 -6
  69. package/dist/{webfinger/lookup.js → lookup-B5KVF6HM.js} +1 -3
  70. package/dist/lookup-D3xTID-6.js +131 -0
  71. package/dist/{webfinger/jrd.d.ts → lookup-DAfStZtI.d.ts} +41 -1
  72. package/dist/{vocab/lookup.js → lookup-D_v0FFGL.js} +5 -5
  73. package/dist/middleware-BFedQWFA.js +33 -0
  74. package/dist/middleware-BiYIqI0b.js +3525 -0
  75. package/dist/{federation/middleware.js → middleware-CPAfRtS5.js} +957 -105
  76. package/dist/middleware-pAGwVkRf.js +17 -0
  77. package/dist/mod-1pDWKvUL.d.ts +2 -0
  78. package/dist/{runtime/key.d.ts → mod-BxwG4X3V.d.ts} +52 -7
  79. package/dist/{compat/transformers.d.ts → mod-CeLnlsqE.d.ts} +3 -4
  80. package/dist/{vocab/lookup.d.ts → mod-DysVoXOu.d.ts} +98 -3
  81. package/dist/mod-GIh5OYxW.d.ts +2 -0
  82. package/dist/{sig/ld.d.ts → mod-XT0mRthe.d.ts} +126 -4
  83. package/dist/mod-g0xFzAP9.d.ts +2 -0
  84. package/dist/mod.d.ts +18 -34
  85. package/dist/mod.js +17 -27
  86. package/dist/multibase-DeCHcK8L.js +316 -0
  87. package/dist/nodeinfo/client.test.d.ts +2 -1
  88. package/dist/nodeinfo/client.test.js +15 -4
  89. package/dist/nodeinfo/handler.test.d.ts +2 -1
  90. package/dist/nodeinfo/handler.test.js +39 -7
  91. package/dist/nodeinfo/mod.d.ts +4 -3
  92. package/dist/nodeinfo/mod.js +3 -3
  93. package/dist/nodeinfo/semver.test.d.ts +2 -1
  94. package/dist/nodeinfo/semver.test.js +11 -4
  95. package/dist/nodeinfo/types.test.d.ts +2 -1
  96. package/dist/nodeinfo/types.test.js +12 -4
  97. package/dist/{sig/owner.d.ts → owner-BjpObx-L.d.ts} +4 -6
  98. package/dist/{sig/owner.js → owner-tYPzPLFs.js} +4 -4
  99. package/dist/proof-D0cf4R25.js +595 -0
  100. package/dist/{sig/proof.js → proof-DIsZ1VTb.js} +5 -4
  101. package/dist/{federation/retry.js → retry-BiIhZWgD.js} +1 -0
  102. package/dist/{federation/router.js → router-D_aVZZUc.js} +1 -0
  103. package/dist/runtime/authdocloader.test.d.ts +2 -1
  104. package/dist/runtime/authdocloader.test.js +24 -9
  105. package/dist/runtime/docloader.test.d.ts +2 -1
  106. package/dist/runtime/docloader.test.js +15 -11
  107. package/dist/runtime/key.test.d.ts +2 -1
  108. package/dist/runtime/key.test.js +19 -4
  109. package/dist/runtime/langstr.test.d.ts +2 -1
  110. package/dist/runtime/langstr.test.js +11 -3
  111. package/dist/runtime/mod.d.ts +5 -4
  112. package/dist/runtime/mod.js +7 -4
  113. package/dist/runtime/multibase/multibase.test.d.ts +2 -1
  114. package/dist/runtime/multibase/multibase.test.js +11 -5
  115. package/dist/runtime/url.test.d.ts +2 -1
  116. package/dist/runtime/url.test.js +7 -6
  117. package/dist/{nodeinfo/semver.js → semver-CbbIgUsa.js} +1 -0
  118. package/dist/{federation/send.js → send-CFBOnY61.js} +3 -2
  119. package/dist/sig/http.test.d.ts +2 -1
  120. package/dist/sig/http.test.js +23 -12
  121. package/dist/sig/key.test.d.ts +2 -1
  122. package/dist/sig/key.test.js +21 -8
  123. package/dist/sig/ld.test.d.ts +2 -1
  124. package/dist/sig/ld.test.js +19 -11
  125. package/dist/sig/mod.d.ts +7 -5
  126. package/dist/sig/mod.js +7 -5
  127. package/dist/sig/owner.test.d.ts +2 -1
  128. package/dist/sig/owner.test.js +23 -9
  129. package/dist/sig/proof.test.d.ts +2 -1
  130. package/dist/sig/proof.test.js +22 -10
  131. package/dist/std__assert-CaBUULmX.js +151 -0
  132. package/dist/testing/docloader.test.d.ts +2 -1
  133. package/dist/testing/docloader.test.js +11 -3
  134. package/dist/testing/mod.d.ts +1 -0
  135. package/dist/testing/mod.js +2 -136
  136. package/dist/testing-jcGLO9Lp.js +143 -0
  137. package/dist/{compat/transformers.js → transformers-jxj-4o2K.js} +1 -1
  138. package/dist/{vocab/type.js → type-D2s5lmbZ.js} +1 -0
  139. package/dist/{nodeinfo/types.js → types-CqoqWDkp.js} +2 -1
  140. package/dist/types-D4p7qK8A.js +457 -0
  141. package/dist/{runtime/url.js → url-kTAI6_KP.js} +1 -0
  142. package/dist/vocab/actor.test.d.ts +2 -1
  143. package/dist/vocab/actor.test.js +5853 -14
  144. package/dist/vocab/lookup.test.d.ts +2 -1
  145. package/dist/vocab/lookup.test.js +20 -7
  146. package/dist/vocab/mod.d.ts +5 -5
  147. package/dist/vocab/mod.js +4 -5
  148. package/dist/vocab/type.test.d.ts +2 -1
  149. package/dist/vocab/type.test.js +9 -4
  150. package/dist/vocab/vocab.test.d.ts +2 -1
  151. package/dist/vocab/vocab.test.js +2440 -15
  152. package/dist/vocab-BSNlVPPE.js +172 -0
  153. package/dist/{vocab/vocab.js → vocab-BxrrllKY.js} +331 -182
  154. package/dist/{vocab/vocab.d.ts → vocab-CLWdoo7y.d.ts} +21 -9
  155. package/dist/webfinger/handler.test.d.ts +2 -1
  156. package/dist/webfinger/handler.test.js +39 -7
  157. package/dist/webfinger/lookup.test.d.ts +2 -1
  158. package/dist/webfinger/lookup.test.js +14 -4
  159. package/dist/webfinger/mod.d.ts +4 -2
  160. package/dist/webfinger/mod.js +3 -1
  161. package/dist/x/cfworkers.d.ts +49 -0
  162. package/dist/x/cfworkers.js +73 -0
  163. package/dist/x/cfworkers.test.d.ts +3 -0
  164. package/dist/x/cfworkers.test.js +153 -0
  165. package/dist/x/hono.d.ts +11 -2
  166. package/dist/x/sveltekit.d.ts +11 -2
  167. package/package.json +6 -1
  168. package/dist/codegen/fs.js +0 -23
  169. package/dist/codegen/schema.js +0 -88
  170. package/dist/codegen/type.js +0 -392
  171. package/dist/compat/types.d.ts +0 -18
  172. package/dist/deno.js +0 -137
  173. package/dist/federation/builder.d.ts +0 -19
  174. package/dist/federation/callback.d.ts +0 -211
  175. package/dist/federation/collection.d.ts +0 -36
  176. package/dist/federation/context.d.ts +0 -757
  177. package/dist/federation/federation.d.ts +0 -689
  178. package/dist/federation/handler.d.ts +0 -44
  179. package/dist/federation/handler.js +0 -543
  180. package/dist/federation/middleware.d.ts +0 -101
  181. package/dist/federation/negotiation.js +0 -63
  182. package/dist/federation/retry.d.ts +0 -71
  183. package/dist/federation/router.d.ts +0 -92
  184. package/dist/federation/send.d.ts +0 -29
  185. package/dist/node_modules/.pnpm/@jsr_hongminhee__deno-mock-fetch@0.3.2/node_modules/@jsr/hongminhee__deno-mock-fetch/mod.js +0 -101
  186. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_equals.js +0 -49
  187. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_exists.js +0 -32
  188. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_false.js +0 -26
  189. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_greater.js +0 -34
  190. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_greater_or_equal.js +0 -34
  191. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_strict_equals.js +0 -53
  192. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_string_includes.js +0 -32
  193. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assertion_error.js +0 -33
  194. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/equal.js +0 -79
  195. package/dist/node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/mod.js +0 -19
  196. package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/assertion_state.js +0 -177
  197. package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/build_message.js +0 -101
  198. package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/diff.js +0 -274
  199. package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/diff_str.js +0 -148
  200. package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/format.js +0 -37
  201. package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/mod.js +0 -10
  202. package/dist/node_modules/.pnpm/@jsr_std__internal@1.0.7/node_modules/@jsr/std__internal/styles.js +0 -172
  203. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/assert_path.js +0 -11
  204. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/constants.js +0 -10
  205. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/dirname.js +0 -14
  206. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/from_file_url.js +0 -13
  207. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/normalize.js +0 -14
  208. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/normalize_string.js +0 -60
  209. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_common/strip_trailing_separators.js +0 -15
  210. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/_os.js +0 -9
  211. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/extname.js +0 -4
  212. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/format.js +0 -4
  213. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/from_file_url.js +0 -34
  214. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/glob_to_regexp.js +0 -4
  215. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/is_absolute.js +0 -4
  216. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/join.js +0 -4
  217. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/join_globs.js +0 -4
  218. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/mod.js +0 -5
  219. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/normalize.js +0 -4
  220. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/normalize_glob.js +0 -4
  221. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/parse.js +0 -4
  222. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/_util.js +0 -13
  223. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/dirname.js +0 -54
  224. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/from_file_url.js +0 -27
  225. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/join.js +0 -47
  226. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/posix/normalize.js +0 -59
  227. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/relative.js +0 -4
  228. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/resolve.js +0 -4
  229. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/to_file_url.js +0 -4
  230. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/to_namespaced_path.js +0 -4
  231. package/dist/node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/windows/from_file_url.js +0 -31
  232. package/dist/node_modules/.pnpm/@jsr_std__url@1.0.0-rc.3/node_modules/@jsr/std__url/_strip.js +0 -17
  233. package/dist/node_modules/.pnpm/@jsr_std__url@1.0.0-rc.3/node_modules/@jsr/std__url/dirname.js +0 -38
  234. package/dist/node_modules/.pnpm/@jsr_std__url@1.0.0-rc.3/node_modules/@jsr/std__url/join.js +0 -36
  235. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_chars.js +0 -47
  236. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_dumper_state.js +0 -4
  237. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_loader_state.js +0 -884
  238. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_schema.js +0 -120
  239. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/binary.js +0 -92
  240. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/bool.js +0 -41
  241. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/float.js +0 -58
  242. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/int.js +0 -118
  243. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/map.js +0 -18
  244. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/merge.js +0 -14
  245. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/nil.js +0 -23
  246. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/omap.js +0 -31
  247. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/pairs.js +0 -22
  248. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/regexp.js +0 -29
  249. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/seq.js +0 -14
  250. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/set.js +0 -17
  251. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/str.js +0 -14
  252. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/timestamp.js +0 -57
  253. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_type/undefined.js +0 -24
  254. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/_utils.js +0 -17
  255. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/mod.js +0 -5
  256. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/parse.js +0 -54
  257. package/dist/node_modules/.pnpm/@jsr_std__yaml@1.0.6/node_modules/@jsr/std__yaml/stringify.js +0 -4
  258. package/dist/node_modules/.pnpm/dequal@2.0.3/node_modules/dequal/dist/index.js +0 -68
  259. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/AlwaysShrinkableArbitrary.js +0 -30
  260. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/ArrayArbitrary.js +0 -203
  261. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/ArrayInt64Arbitrary.js +0 -122
  262. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/BigIntArbitrary.js +0 -63
  263. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/ConstantArbitrary.js +0 -58
  264. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/FrequencyArbitrary.js +0 -136
  265. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/IntegerArbitrary.js +0 -64
  266. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/LazyArbitrary.js +0 -29
  267. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/StringUnitArbitrary.js +0 -45
  268. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/TupleArbitrary.js +0 -74
  269. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/WithShrinkFromOtherArbitrary.js +0 -40
  270. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/AnyArbitraryBuilder.js +0 -97
  271. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/BoxedArbitraryBuilder.js +0 -13
  272. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/CharacterArbitraryBuilder.js +0 -17
  273. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/RestrictedIntegerArbitraryBuilder.js +0 -23
  274. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/TypedIntArrayArbitraryBuilder.js +0 -32
  275. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/data/GraphemeRanges.js +0 -990
  276. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/ArrayInt64.js +0 -98
  277. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/BiasNumericRange.js +0 -53
  278. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/BuildSlicedGenerator.js +0 -15
  279. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/CustomEqualSet.js +0 -27
  280. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/DepthContext.js +0 -24
  281. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/DoubleHelpers.js +0 -96
  282. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/DoubleOnlyHelpers.js +0 -25
  283. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/FloatHelpers.js +0 -57
  284. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/FloatOnlyHelpers.js +0 -26
  285. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/FloatingOnlyHelpers.js +0 -26
  286. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/GraphemeRangesHelpers.js +0 -58
  287. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/MaxLengthFromMinLength.js +0 -72
  288. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/NoUndefinedAsContext.js +0 -16
  289. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/QualifiedObjectConstraints.js +0 -58
  290. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/SameValueSet.js +0 -41
  291. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/SameValueZeroSet.js +0 -33
  292. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/ShrinkBigInt.js +0 -37
  293. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/ShrinkInteger.js +0 -41
  294. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/SlicesForStringBuilder.js +0 -74
  295. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/StrictlyEqualSet.js +0 -38
  296. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/TokenizeString.js +0 -47
  297. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/implementations/NoopSlicedGenerator.js +0 -21
  298. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/implementations/SlicedBasedGenerator.js +0 -53
  299. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/ArrayToMap.js +0 -16
  300. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/ArrayToSet.js +0 -16
  301. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/CodePointsToString.js +0 -17
  302. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/IndexToCharString.js +0 -20
  303. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/IndexToMappedConstant.js +0 -69
  304. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/IndexToPrintableIndex.js +0 -18
  305. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/KeyValuePairsToObject.js +0 -42
  306. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/PatternsToString.js +0 -32
  307. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/TimeToDate.js +0 -30
  308. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/UnboxedToBoxed.js +0 -22
  309. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/anything.js +0 -14
  310. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/array.js +0 -22
  311. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/bigInt.js +0 -38
  312. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/boolean.js +0 -24
  313. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/constant.js +0 -13
  314. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/constantFrom.js +0 -14
  315. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/date.js +0 -30
  316. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/dictionary.js +0 -27
  317. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/double.js +0 -54
  318. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/float.js +0 -60
  319. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/float32Array.js +0 -22
  320. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/float64Array.js +0 -22
  321. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/fullUnicode.js +0 -24
  322. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/fullUnicodeString.js +0 -20
  323. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/int16Array.js +0 -15
  324. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/int32Array.js +0 -15
  325. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/int8Array.js +0 -15
  326. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/integer.js +0 -26
  327. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/letrec.js +0 -28
  328. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/mapToConstant.js +0 -26
  329. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/maxSafeInteger.js +0 -15
  330. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/nat.js +0 -17
  331. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/noBias.js +0 -11
  332. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/oneof.js +0 -31
  333. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/sparseArray.js +0 -68
  334. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/string.js +0 -32
  335. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/tuple.js +0 -13
  336. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint16Array.js +0 -15
  337. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint32Array.js +0 -15
  338. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint8Array.js +0 -15
  339. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint8ClampedArray.js +0 -15
  340. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uniqueArray.js +0 -47
  341. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/arbitrary/definition/Arbitrary.js +0 -184
  342. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/arbitrary/definition/Value.js +0 -31
  343. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js +0 -19
  344. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/IRawProperty.js +0 -12
  345. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/IgnoreEqualValuesProperty.js +0 -52
  346. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/Property.generic.js +0 -77
  347. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/Property.js +0 -22
  348. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/SkipAfterProperty.js +0 -61
  349. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/TimeoutProperty.js +0 -52
  350. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/UnbiasedProperty.js +0 -29
  351. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/DecorateProperty.js +0 -26
  352. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/Runner.js +0 -61
  353. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/RunnerIterator.js +0 -47
  354. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/SourceValuesIterator.js +0 -35
  355. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/Tosser.js +0 -33
  356. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/configuration/GlobalParameters.js +0 -12
  357. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/configuration/QualifiedParameters.js +0 -121
  358. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/configuration/VerbosityLevel.js +0 -14
  359. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/reporter/ExecutionStatus.js +0 -14
  360. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/reporter/RunExecution.js +0 -116
  361. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/utils/PathWalker.js +0 -24
  362. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/utils/RunDetailsFormatter.js +0 -135
  363. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/symbols.js +0 -15
  364. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/random/generator/Random.js +0 -48
  365. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/stream/LazyIterableIterator.js +0 -24
  366. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/stream/Stream.js +0 -84
  367. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/stream/StreamHelpers.js +0 -50
  368. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/utils/apply.js +0 -28
  369. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/utils/globals.js +0 -309
  370. package/dist/node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/utils/stringify.js +0 -217
  371. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/CallHistory.js +0 -94
  372. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/FetchMock.js +0 -143
  373. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/IsSubsetOf.js +0 -103
  374. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/Matchers.js +0 -195
  375. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/RequestUtils.js +0 -83
  376. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/Route.js +0 -137
  377. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/Router.js +0 -181
  378. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/StatusTextMap.js +0 -73
  379. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/TypeDescriptor.js +0 -97
  380. package/dist/node_modules/.pnpm/fetch-mock@12.5.2/node_modules/fetch-mock/dist/esm/index.js +0 -11
  381. package/dist/node_modules/.pnpm/glob-to-regexp@0.4.1/node_modules/glob-to-regexp/index.js +0 -87
  382. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UniformArrayIntDistribution.js +0 -20
  383. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UniformBigIntDistribution.js +0 -20
  384. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UniformIntDistribution.js +0 -20
  385. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UnsafeUniformArrayIntDistribution.js +0 -20
  386. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UnsafeUniformBigIntDistribution.js +0 -32
  387. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UnsafeUniformIntDistribution.js +0 -43
  388. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/internals/ArrayInt.js +0 -139
  389. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/internals/UnsafeUniformArrayIntDistributionInternal.js +0 -26
  390. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/internals/UnsafeUniformIntDistributionInternal.js +0 -14
  391. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/LinearCongruential.js +0 -53
  392. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/MersenneTwister.js +0 -114
  393. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/RandomGenerator.js +0 -26
  394. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/XorShift.js +0 -83
  395. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/XoroShiro.js +0 -83
  396. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/pure-rand-default.js +0 -44
  397. package/dist/node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/pure-rand.js +0 -22
  398. package/dist/node_modules/.pnpm/regexparam@3.0.0/node_modules/regexparam/dist/index.js +0 -37
  399. package/dist/nodeinfo/client.d.ts +0 -96
  400. package/dist/nodeinfo/handler.js +0 -46
  401. package/dist/nodeinfo/semver.d.ts +0 -78
  402. package/dist/nodeinfo/types.d.ts +0 -140
  403. package/dist/runtime/authdocloader.d.ts +0 -56
  404. package/dist/runtime/docloader.js +0 -291
  405. package/dist/runtime/key.js +0 -156
  406. package/dist/runtime/langstr.d.ts +0 -24
  407. package/dist/runtime/multibase/base.js +0 -32
  408. package/dist/runtime/multibase/constants.js +0 -172
  409. package/dist/runtime/multibase/index.js +0 -57
  410. package/dist/runtime/multibase/rfc4648.js +0 -61
  411. package/dist/runtime/multibase/util.js +0 -21
  412. package/dist/sig/http.d.ts +0 -143
  413. package/dist/sig/key.d.ts +0 -125
  414. package/dist/sig/proof.d.ts +0 -134
  415. package/dist/testing/fixtures/example.com/person.js +0 -29
  416. package/dist/testing/fixtures/example.com/person2.js +0 -48
  417. package/dist/vocab/constants.d.ts +0 -24
  418. package/dist/vocab/constants.js +0 -17
  419. package/dist/vocab/type.d.ts +0 -107
  420. package/dist/webfinger/handler.js +0 -140
  421. package/dist/webfinger/lookup.d.ts +0 -47
  422. /package/dist/{node_modules/.pnpm/@jsr_std__assert@0.226.0/node_modules/@jsr/std__assert/assert_object_match.js → compat-Bb5myD13.js} +0 -0
  423. /package/dist/{testing/fixtures → fixtures}/activitypub.academy/users/brauca_darradiul.json +0 -0
  424. /package/dist/{testing/fixtures → fixtures}/example.com/announce.json +0 -0
  425. /package/dist/{testing/fixtures → fixtures}/example.com/collection.json +0 -0
  426. /package/dist/{testing/fixtures → fixtures}/example.com/create.json +0 -0
  427. /package/dist/{testing/fixtures → fixtures}/example.com/cross-origin-actor.json +0 -0
  428. /package/dist/{testing/fixtures → fixtures}/example.com/hong-gildong.json +0 -0
  429. /package/dist/{testing/fixtures → fixtures}/example.com/invite.json +0 -0
  430. /package/dist/{testing/fixtures → fixtures}/example.com/key.json +0 -0
  431. /package/dist/{testing/fixtures → fixtures}/example.com/key2.json +0 -0
  432. /package/dist/{testing/fixtures → fixtures}/example.com/object.json +0 -0
  433. /package/dist/{testing/fixtures → fixtures}/example.com/orderedcollectionpage.json +0 -0
  434. /package/dist/{testing/fixtures → fixtures}/example.com/paged/a.json +0 -0
  435. /package/dist/{testing/fixtures → fixtures}/example.com/paged/b.json +0 -0
  436. /package/dist/{testing/fixtures → fixtures}/example.com/paged-collection.json +0 -0
  437. /package/dist/{testing/fixtures → fixtures}/example.com/person.json +0 -0
  438. /package/dist/{testing/fixtures → fixtures}/example.com/person2.json +0 -0
  439. /package/dist/{testing/fixtures → fixtures}/example.com/test.json +0 -0
  440. /package/dist/{testing/fixtures → fixtures}/example.com/users/handle.json +0 -0
  441. /package/dist/{testing/fixtures → fixtures}/example.com/wrong-type.json +0 -0
  442. /package/dist/{testing/fixtures → fixtures}/remote.domain/users/bob.json +0 -0
  443. /package/dist/{testing/fixtures → fixtures}/server.example/users/alice.json +0 -0
  444. /package/dist/{testing/fixtures → fixtures}/w3id.org/identity/v1.json +0 -0
  445. /package/dist/{testing/fixtures → fixtures}/w3id.org/security/data-integrity/v1.json +0 -0
  446. /package/dist/{testing/fixtures → fixtures}/w3id.org/security/multikey/v1.json +0 -0
  447. /package/dist/{testing/fixtures → fixtures}/w3id.org/security/v1.json +0 -0
  448. /package/dist/{testing/fixtures → fixtures}/wizard.casa/users/hongminhee.json +0 -0
  449. /package/dist/{testing/fixtures → fixtures}/www.w3.org/ns/activitystreams.json +0 -0
  450. /package/dist/{testing/fixtures → fixtures}/www.w3.org/ns/did/v1.json +0 -0
  451. /package/dist/{federation/kv.d.ts → kv-BmsWxOQ2.d.ts} +0 -0
  452. /package/dist/{federation/mq.d.ts → mq-Bue016Tz.d.ts} +0 -0
  453. /package/dist/{node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/basename.js → nodeinfo-CyEbLjHs.js} +0 -0
  454. /package/dist/{node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/common.js → runtime-BSkOVUWM.js} +0 -0
  455. /package/dist/{node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/constants.js → sig-BXJO--F9.js} +0 -0
  456. /package/dist/{codegen → vocab}/schema.yaml +0 -0
  457. /package/dist/{node_modules/.pnpm/@jsr_std__path@1.0.9/node_modules/@jsr/std__path/dirname.js → webfinger-C3GIyXIg.js} +0 -0
@@ -1,884 +0,0 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
-
5
- import { AMPERSAND, ASTERISK, BACKSLASH, CARRIAGE_RETURN, COLON, COMMA, COMMERCIAL_AT, DOT, DOUBLE_QUOTE, EXCLAMATION, GRAVE_ACCENT, GREATER_THAN, LEFT_CURLY_BRACKET, LEFT_SQUARE_BRACKET, LINE_FEED, MINUS, PERCENT, PLUS, QUESTION, RIGHT_CURLY_BRACKET, RIGHT_SQUARE_BRACKET, SHARP, SINGLE_QUOTE, SMALLER_THAN, SPACE, VERTICAL_LINE, isEOL, isFlowIndicator, isWhiteSpace, isWhiteSpaceOrEOL } from "./_chars.js";
6
- import { isObject, isPlainObject } from "./_utils.js";
7
- import { DEFAULT_SCHEMA } from "./_schema.js";
8
-
9
- //#region node_modules/.pnpm/@jsr+std__yaml@1.0.6/node_modules/@jsr/std__yaml/_loader_state.js
10
- const CONTEXT_FLOW_IN = 1;
11
- const CONTEXT_FLOW_OUT = 2;
12
- const CONTEXT_BLOCK_IN = 3;
13
- const CONTEXT_BLOCK_OUT = 4;
14
- const CHOMPING_CLIP = 1;
15
- const CHOMPING_STRIP = 2;
16
- const CHOMPING_KEEP = 3;
17
- const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
18
- const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
19
- const PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
20
- const PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
21
- const PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
22
- const ESCAPED_HEX_LENGTHS = new Map([
23
- [120, 2],
24
- [117, 4],
25
- [85, 8]
26
- ]);
27
- const SIMPLE_ESCAPE_SEQUENCES = new Map([
28
- [48, "\0"],
29
- [97, "\x07"],
30
- [98, "\b"],
31
- [116, " "],
32
- [9, " "],
33
- [110, "\n"],
34
- [118, "\v"],
35
- [102, "\f"],
36
- [114, "\r"],
37
- [101, "\x1B"],
38
- [32, " "],
39
- [34, "\""],
40
- [47, "/"],
41
- [92, "\\"],
42
- [78, "…"],
43
- [95, "\xA0"],
44
- [76, "\u2028"],
45
- [80, "\u2029"]
46
- ]);
47
- /**
48
- * Converts a hexadecimal character code to its decimal value.
49
- */ function hexCharCodeToNumber(charCode) {
50
- if (48 <= charCode && charCode <= 57) return charCode - 48;
51
- const lc = charCode | 32;
52
- if (97 <= lc && lc <= 102) return lc - 97 + 10;
53
- return -1;
54
- }
55
- /**
56
- * Converts a decimal character code to its decimal value.
57
- */ function decimalCharCodeToNumber(charCode) {
58
- if (48 <= charCode && charCode <= 57) return charCode - 48;
59
- return -1;
60
- }
61
- /**
62
- * Converts a Unicode code point to a string.
63
- */ function codepointToChar(codepoint) {
64
- if (codepoint <= 65535) return String.fromCharCode(codepoint);
65
- return String.fromCharCode((codepoint - 65536 >> 10) + 55296, (codepoint - 65536 & 1023) + 56320);
66
- }
67
- const INDENT = 4;
68
- const MAX_LENGTH = 75;
69
- const DELIMITERS = "\0\r\n…\u2028\u2029";
70
- function getSnippet(buffer, position) {
71
- if (!buffer) return null;
72
- let start = position;
73
- let end = position;
74
- let head = "";
75
- let tail = "";
76
- while (start > 0 && !DELIMITERS.includes(buffer.charAt(start - 1))) {
77
- start--;
78
- if (position - start > MAX_LENGTH / 2 - 1) {
79
- head = " ... ";
80
- start += 5;
81
- break;
82
- }
83
- }
84
- while (end < buffer.length && !DELIMITERS.includes(buffer.charAt(end))) {
85
- end++;
86
- if (end - position > MAX_LENGTH / 2 - 1) {
87
- tail = " ... ";
88
- end -= 5;
89
- break;
90
- }
91
- }
92
- const snippet = buffer.slice(start, end);
93
- const indent = " ".repeat(INDENT);
94
- const caretIndent = " ".repeat(INDENT + position - start + head.length);
95
- return `${indent + head + snippet + tail}\n${caretIndent}^`;
96
- }
97
- function markToString(buffer, position, line, column) {
98
- let where = `at line ${line + 1}, column ${column + 1}`;
99
- const snippet = getSnippet(buffer, position);
100
- if (snippet) where += `:\n${snippet}`;
101
- return where;
102
- }
103
- var LoaderState = class {
104
- input;
105
- length;
106
- lineIndent = 0;
107
- lineStart = 0;
108
- position = 0;
109
- line = 0;
110
- onWarning;
111
- allowDuplicateKeys;
112
- implicitTypes;
113
- typeMap;
114
- version;
115
- checkLineBreaks = false;
116
- tagMap = new Map();
117
- anchorMap = new Map();
118
- tag;
119
- anchor;
120
- kind;
121
- result = "";
122
- constructor(input, { schema = DEFAULT_SCHEMA, onWarning, allowDuplicateKeys = false }) {
123
- this.input = input;
124
- this.onWarning = onWarning;
125
- this.allowDuplicateKeys = allowDuplicateKeys;
126
- this.implicitTypes = schema.implicitTypes;
127
- this.typeMap = schema.typeMap;
128
- this.length = input.length;
129
- this.version = null;
130
- this.readIndent();
131
- }
132
- skipWhitespaces() {
133
- let ch = this.peek();
134
- while (isWhiteSpace(ch)) ch = this.next();
135
- }
136
- skipComment() {
137
- let ch = this.peek();
138
- if (ch !== SHARP) return;
139
- ch = this.next();
140
- while (ch !== 0 && !isEOL(ch)) ch = this.next();
141
- }
142
- readIndent() {
143
- let char = this.peek();
144
- while (char === SPACE) {
145
- this.lineIndent += 1;
146
- char = this.next();
147
- }
148
- }
149
- peek(offset = 0) {
150
- return this.input.charCodeAt(this.position + offset);
151
- }
152
- next() {
153
- this.position += 1;
154
- return this.peek();
155
- }
156
- #createError(message) {
157
- const mark = markToString(this.input, this.position, this.line, this.position - this.lineStart);
158
- return new SyntaxError(`${message} ${mark}`);
159
- }
160
- dispatchWarning(message) {
161
- const error = this.#createError(message);
162
- this.onWarning?.(error);
163
- }
164
- yamlDirectiveHandler(...args) {
165
- if (this.version !== null) throw this.#createError("Cannot handle YAML directive: duplication of %YAML directive");
166
- if (args.length !== 1) throw this.#createError("Cannot handle YAML directive: YAML directive accepts exactly one argument");
167
- const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
168
- if (match === null) throw this.#createError("Cannot handle YAML directive: ill-formed argument");
169
- const major = parseInt(match[1], 10);
170
- const minor = parseInt(match[2], 10);
171
- if (major !== 1) throw this.#createError("Cannot handle YAML directive: unacceptable YAML version");
172
- this.version = args[0] ?? null;
173
- this.checkLineBreaks = minor < 2;
174
- if (minor !== 1 && minor !== 2) return this.dispatchWarning("Cannot handle YAML directive: unsupported YAML version");
175
- }
176
- tagDirectiveHandler(...args) {
177
- if (args.length !== 2) throw this.#createError(`Cannot handle tag directive: directive accepts exactly two arguments, received ${args.length}`);
178
- const handle = args[0];
179
- const prefix = args[1];
180
- if (!PATTERN_TAG_HANDLE.test(handle)) throw this.#createError(`Cannot handle tag directive: ill-formed handle (first argument) in "${handle}"`);
181
- if (this.tagMap.has(handle)) throw this.#createError(`Cannot handle tag directive: previously declared suffix for "${handle}" tag handle`);
182
- if (!PATTERN_TAG_URI.test(prefix)) throw this.#createError("Cannot handle tag directive: ill-formed tag prefix (second argument) of the TAG directive");
183
- this.tagMap.set(handle, prefix);
184
- }
185
- captureSegment(start, end, checkJson) {
186
- if (start < end) {
187
- const result = this.input.slice(start, end);
188
- if (checkJson) for (let position = 0; position < result.length; position++) {
189
- const character = result.charCodeAt(position);
190
- if (!(character === 9 || 32 <= character && character <= 1114111)) throw this.#createError(`Expected valid JSON character: received "${character}"`);
191
- }
192
- else if (PATTERN_NON_PRINTABLE.test(result)) throw this.#createError("Stream contains non-printable characters");
193
- this.result += result;
194
- }
195
- }
196
- readBlockSequence(nodeIndent) {
197
- let detected = false;
198
- const tag = this.tag;
199
- const anchor = this.anchor;
200
- const result = [];
201
- if (this.anchor !== null && typeof this.anchor !== "undefined") this.anchorMap.set(this.anchor, result);
202
- let ch = this.peek();
203
- while (ch !== 0) {
204
- if (ch !== MINUS) break;
205
- const following = this.peek(1);
206
- if (!isWhiteSpaceOrEOL(following)) break;
207
- detected = true;
208
- this.position++;
209
- if (this.skipSeparationSpace(true, -1)) {
210
- if (this.lineIndent <= nodeIndent) {
211
- result.push(null);
212
- ch = this.peek();
213
- continue;
214
- }
215
- }
216
- const line = this.line;
217
- this.composeNode(nodeIndent, CONTEXT_BLOCK_IN, false, true);
218
- result.push(this.result);
219
- this.skipSeparationSpace(true, -1);
220
- ch = this.peek();
221
- if ((this.line === line || this.lineIndent > nodeIndent) && ch !== 0) throw this.#createError("Cannot read block sequence: bad indentation of a sequence entry");
222
- else if (this.lineIndent < nodeIndent) break;
223
- }
224
- if (detected) {
225
- this.tag = tag;
226
- this.anchor = anchor;
227
- this.kind = "sequence";
228
- this.result = result;
229
- return true;
230
- }
231
- return false;
232
- }
233
- mergeMappings(destination, source, overridableKeys) {
234
- if (!isObject(source)) throw this.#createError("Cannot merge mappings: the provided source object is unacceptable");
235
- for (const [key, value] of Object.entries(source)) {
236
- if (Object.hasOwn(destination, key)) continue;
237
- Object.defineProperty(destination, key, {
238
- value,
239
- writable: true,
240
- enumerable: true,
241
- configurable: true
242
- });
243
- overridableKeys.add(key);
244
- }
245
- }
246
- storeMappingPair(result, overridableKeys, keyTag, keyNode, valueNode, startLine, startPos) {
247
- if (Array.isArray(keyNode)) {
248
- keyNode = Array.prototype.slice.call(keyNode);
249
- for (let index = 0; index < keyNode.length; index++) {
250
- if (Array.isArray(keyNode[index])) throw this.#createError("Cannot store mapping pair: nested arrays are not supported inside keys");
251
- if (typeof keyNode === "object" && isPlainObject(keyNode[index])) keyNode[index] = "[object Object]";
252
- }
253
- }
254
- if (typeof keyNode === "object" && isPlainObject(keyNode)) keyNode = "[object Object]";
255
- keyNode = String(keyNode);
256
- if (keyTag === "tag:yaml.org,2002:merge") if (Array.isArray(valueNode)) for (let index = 0; index < valueNode.length; index++) this.mergeMappings(result, valueNode[index], overridableKeys);
257
- else this.mergeMappings(result, valueNode, overridableKeys);
258
- else {
259
- if (!this.allowDuplicateKeys && !overridableKeys.has(keyNode) && Object.hasOwn(result, keyNode)) {
260
- this.line = startLine || this.line;
261
- this.position = startPos || this.position;
262
- throw this.#createError("Cannot store mapping pair: duplicated key");
263
- }
264
- Object.defineProperty(result, keyNode, {
265
- value: valueNode,
266
- writable: true,
267
- enumerable: true,
268
- configurable: true
269
- });
270
- overridableKeys.delete(keyNode);
271
- }
272
- return result;
273
- }
274
- readLineBreak() {
275
- const ch = this.peek();
276
- if (ch === LINE_FEED) this.position++;
277
- else if (ch === CARRIAGE_RETURN) {
278
- this.position++;
279
- if (this.peek() === LINE_FEED) this.position++;
280
- } else throw this.#createError("Cannot read line: line break not found");
281
- this.line += 1;
282
- this.lineStart = this.position;
283
- }
284
- skipSeparationSpace(allowComments, checkIndent) {
285
- let lineBreaks = 0;
286
- let ch = this.peek();
287
- while (ch !== 0) {
288
- this.skipWhitespaces();
289
- ch = this.peek();
290
- if (allowComments) {
291
- this.skipComment();
292
- ch = this.peek();
293
- }
294
- if (isEOL(ch)) {
295
- this.readLineBreak();
296
- ch = this.peek();
297
- lineBreaks++;
298
- this.lineIndent = 0;
299
- this.readIndent();
300
- ch = this.peek();
301
- } else break;
302
- }
303
- if (checkIndent !== -1 && lineBreaks !== 0 && this.lineIndent < checkIndent) this.dispatchWarning("deficient indentation");
304
- return lineBreaks;
305
- }
306
- testDocumentSeparator() {
307
- let ch = this.peek();
308
- if ((ch === MINUS || ch === DOT) && ch === this.peek(1) && ch === this.peek(2)) {
309
- ch = this.peek(3);
310
- if (ch === 0 || isWhiteSpaceOrEOL(ch)) return true;
311
- }
312
- return false;
313
- }
314
- writeFoldedLines(count) {
315
- if (count === 1) this.result += " ";
316
- else if (count > 1) this.result += "\n".repeat(count - 1);
317
- }
318
- readPlainScalar(nodeIndent, withinFlowCollection) {
319
- const kind = this.kind;
320
- const result = this.result;
321
- let ch = this.peek();
322
- if (isWhiteSpaceOrEOL(ch) || isFlowIndicator(ch) || ch === SHARP || ch === AMPERSAND || ch === ASTERISK || ch === EXCLAMATION || ch === VERTICAL_LINE || ch === GREATER_THAN || ch === SINGLE_QUOTE || ch === DOUBLE_QUOTE || ch === PERCENT || ch === COMMERCIAL_AT || ch === GRAVE_ACCENT) return false;
323
- let following;
324
- if (ch === QUESTION || ch === MINUS) {
325
- following = this.peek(1);
326
- if (isWhiteSpaceOrEOL(following) || withinFlowCollection && isFlowIndicator(following)) return false;
327
- }
328
- this.kind = "scalar";
329
- this.result = "";
330
- let captureEnd = this.position;
331
- let captureStart = this.position;
332
- let hasPendingContent = false;
333
- let line = 0;
334
- while (ch !== 0) {
335
- if (ch === COLON) {
336
- following = this.peek(1);
337
- if (isWhiteSpaceOrEOL(following) || withinFlowCollection && isFlowIndicator(following)) break;
338
- } else if (ch === SHARP) {
339
- const preceding = this.peek(-1);
340
- if (isWhiteSpaceOrEOL(preceding)) break;
341
- } else if (this.position === this.lineStart && this.testDocumentSeparator() || withinFlowCollection && isFlowIndicator(ch)) break;
342
- else if (isEOL(ch)) {
343
- line = this.line;
344
- const lineStart = this.lineStart;
345
- const lineIndent = this.lineIndent;
346
- this.skipSeparationSpace(false, -1);
347
- if (this.lineIndent >= nodeIndent) {
348
- hasPendingContent = true;
349
- ch = this.peek();
350
- continue;
351
- } else {
352
- this.position = captureEnd;
353
- this.line = line;
354
- this.lineStart = lineStart;
355
- this.lineIndent = lineIndent;
356
- break;
357
- }
358
- }
359
- if (hasPendingContent) {
360
- this.captureSegment(captureStart, captureEnd, false);
361
- this.writeFoldedLines(this.line - line);
362
- captureStart = captureEnd = this.position;
363
- hasPendingContent = false;
364
- }
365
- if (!isWhiteSpace(ch)) captureEnd = this.position + 1;
366
- ch = this.next();
367
- }
368
- this.captureSegment(captureStart, captureEnd, false);
369
- if (this.result) return true;
370
- this.kind = kind;
371
- this.result = result;
372
- return false;
373
- }
374
- readSingleQuotedScalar(nodeIndent) {
375
- let ch = this.peek();
376
- if (ch !== SINGLE_QUOTE) return false;
377
- this.kind = "scalar";
378
- this.result = "";
379
- this.position++;
380
- let captureStart = this.position;
381
- let captureEnd = this.position;
382
- ch = this.peek();
383
- while (ch !== 0) {
384
- if (ch === SINGLE_QUOTE) {
385
- this.captureSegment(captureStart, this.position, true);
386
- ch = this.next();
387
- if (ch === SINGLE_QUOTE) {
388
- captureStart = this.position;
389
- this.position++;
390
- captureEnd = this.position;
391
- } else return true;
392
- } else if (isEOL(ch)) {
393
- this.captureSegment(captureStart, captureEnd, true);
394
- this.writeFoldedLines(this.skipSeparationSpace(false, nodeIndent));
395
- captureStart = captureEnd = this.position;
396
- } else if (this.position === this.lineStart && this.testDocumentSeparator()) throw this.#createError("Unexpected end of the document within a single quoted scalar");
397
- else {
398
- this.position++;
399
- captureEnd = this.position;
400
- }
401
- ch = this.peek();
402
- }
403
- throw this.#createError("Unexpected end of the stream within a single quoted scalar");
404
- }
405
- readDoubleQuotedScalar(nodeIndent) {
406
- let ch = this.peek();
407
- if (ch !== DOUBLE_QUOTE) return false;
408
- this.kind = "scalar";
409
- this.result = "";
410
- this.position++;
411
- let captureEnd = this.position;
412
- let captureStart = this.position;
413
- let tmp;
414
- ch = this.peek();
415
- while (ch !== 0) {
416
- if (ch === DOUBLE_QUOTE) {
417
- this.captureSegment(captureStart, this.position, true);
418
- this.position++;
419
- return true;
420
- }
421
- if (ch === BACKSLASH) {
422
- this.captureSegment(captureStart, this.position, true);
423
- ch = this.next();
424
- if (isEOL(ch)) this.skipSeparationSpace(false, nodeIndent);
425
- else if (ch < 256 && SIMPLE_ESCAPE_SEQUENCES.has(ch)) {
426
- this.result += SIMPLE_ESCAPE_SEQUENCES.get(ch);
427
- this.position++;
428
- } else if ((tmp = ESCAPED_HEX_LENGTHS.get(ch) ?? 0) > 0) {
429
- let hexLength = tmp;
430
- let hexResult = 0;
431
- for (; hexLength > 0; hexLength--) {
432
- ch = this.next();
433
- if ((tmp = hexCharCodeToNumber(ch)) >= 0) hexResult = (hexResult << 4) + tmp;
434
- else throw this.#createError("Cannot read double quoted scalar: expected hexadecimal character");
435
- }
436
- this.result += codepointToChar(hexResult);
437
- this.position++;
438
- } else throw this.#createError("Cannot read double quoted scalar: unknown escape sequence");
439
- captureStart = captureEnd = this.position;
440
- } else if (isEOL(ch)) {
441
- this.captureSegment(captureStart, captureEnd, true);
442
- this.writeFoldedLines(this.skipSeparationSpace(false, nodeIndent));
443
- captureStart = captureEnd = this.position;
444
- } else if (this.position === this.lineStart && this.testDocumentSeparator()) throw this.#createError("Unexpected end of the document within a double quoted scalar");
445
- else {
446
- this.position++;
447
- captureEnd = this.position;
448
- }
449
- ch = this.peek();
450
- }
451
- throw this.#createError("Unexpected end of the stream within a double quoted scalar");
452
- }
453
- readFlowCollection(nodeIndent) {
454
- let ch = this.peek();
455
- let terminator;
456
- let isMapping = true;
457
- let result = {};
458
- if (ch === LEFT_SQUARE_BRACKET) {
459
- terminator = RIGHT_SQUARE_BRACKET;
460
- isMapping = false;
461
- result = [];
462
- } else if (ch === LEFT_CURLY_BRACKET) terminator = RIGHT_CURLY_BRACKET;
463
- else return false;
464
- if (this.anchor !== null && typeof this.anchor !== "undefined") this.anchorMap.set(this.anchor, result);
465
- ch = this.next();
466
- const tag = this.tag;
467
- const anchor = this.anchor;
468
- let readNext = true;
469
- let valueNode = null;
470
- let keyNode = null;
471
- let keyTag = null;
472
- let isExplicitPair = false;
473
- let isPair = false;
474
- let following = 0;
475
- let line = 0;
476
- const overridableKeys = new Set();
477
- while (ch !== 0) {
478
- this.skipSeparationSpace(true, nodeIndent);
479
- ch = this.peek();
480
- if (ch === terminator) {
481
- this.position++;
482
- this.tag = tag;
483
- this.anchor = anchor;
484
- this.kind = isMapping ? "mapping" : "sequence";
485
- this.result = result;
486
- return true;
487
- }
488
- if (!readNext) throw this.#createError("Cannot read flow collection: missing comma between flow collection entries");
489
- keyTag = keyNode = valueNode = null;
490
- isPair = isExplicitPair = false;
491
- if (ch === QUESTION) {
492
- following = this.peek(1);
493
- if (isWhiteSpaceOrEOL(following)) {
494
- isPair = isExplicitPair = true;
495
- this.position++;
496
- this.skipSeparationSpace(true, nodeIndent);
497
- }
498
- }
499
- line = this.line;
500
- this.composeNode(nodeIndent, CONTEXT_FLOW_IN, false, true);
501
- keyTag = this.tag || null;
502
- keyNode = this.result;
503
- this.skipSeparationSpace(true, nodeIndent);
504
- ch = this.peek();
505
- if ((isExplicitPair || this.line === line) && ch === COLON) {
506
- isPair = true;
507
- ch = this.next();
508
- this.skipSeparationSpace(true, nodeIndent);
509
- this.composeNode(nodeIndent, CONTEXT_FLOW_IN, false, true);
510
- valueNode = this.result;
511
- }
512
- if (isMapping) this.storeMappingPair(result, overridableKeys, keyTag, keyNode, valueNode);
513
- else if (isPair) result.push(this.storeMappingPair({}, overridableKeys, keyTag, keyNode, valueNode));
514
- else result.push(keyNode);
515
- this.skipSeparationSpace(true, nodeIndent);
516
- ch = this.peek();
517
- if (ch === COMMA) {
518
- readNext = true;
519
- ch = this.next();
520
- } else readNext = false;
521
- }
522
- throw this.#createError("Cannot read flow collection: unexpected end of the stream within a flow collection");
523
- }
524
- readBlockScalar(nodeIndent) {
525
- let chomping = CHOMPING_CLIP;
526
- let didReadContent = false;
527
- let detectedIndent = false;
528
- let textIndent = nodeIndent;
529
- let emptyLines = 0;
530
- let atMoreIndented = false;
531
- let ch = this.peek();
532
- let folding = false;
533
- if (ch === VERTICAL_LINE) folding = false;
534
- else if (ch === GREATER_THAN) folding = true;
535
- else return false;
536
- this.kind = "scalar";
537
- this.result = "";
538
- let tmp = 0;
539
- while (ch !== 0) {
540
- ch = this.next();
541
- if (ch === PLUS || ch === MINUS) if (CHOMPING_CLIP === chomping) chomping = ch === PLUS ? CHOMPING_KEEP : CHOMPING_STRIP;
542
- else throw this.#createError("Cannot read block: chomping mode identifier repeated");
543
- else if ((tmp = decimalCharCodeToNumber(ch)) >= 0) if (tmp === 0) throw this.#createError("Cannot read block: indentation width must be greater than 0");
544
- else if (!detectedIndent) {
545
- textIndent = nodeIndent + tmp - 1;
546
- detectedIndent = true;
547
- } else throw this.#createError("Cannot read block: indentation width identifier repeated");
548
- else break;
549
- }
550
- if (isWhiteSpace(ch)) {
551
- this.skipWhitespaces();
552
- this.skipComment();
553
- ch = this.peek();
554
- }
555
- while (ch !== 0) {
556
- this.readLineBreak();
557
- this.lineIndent = 0;
558
- ch = this.peek();
559
- while ((!detectedIndent || this.lineIndent < textIndent) && ch === SPACE) {
560
- this.lineIndent++;
561
- ch = this.next();
562
- }
563
- if (!detectedIndent && this.lineIndent > textIndent) textIndent = this.lineIndent;
564
- if (isEOL(ch)) {
565
- emptyLines++;
566
- continue;
567
- }
568
- if (this.lineIndent < textIndent) {
569
- if (chomping === CHOMPING_KEEP) this.result += "\n".repeat(didReadContent ? 1 + emptyLines : emptyLines);
570
- else if (chomping === CHOMPING_CLIP) {
571
- if (didReadContent) this.result += "\n";
572
- }
573
- break;
574
- }
575
- if (folding) if (isWhiteSpace(ch)) {
576
- atMoreIndented = true;
577
- this.result += "\n".repeat(didReadContent ? 1 + emptyLines : emptyLines);
578
- } else if (atMoreIndented) {
579
- atMoreIndented = false;
580
- this.result += "\n".repeat(emptyLines + 1);
581
- } else if (emptyLines === 0) {
582
- if (didReadContent) this.result += " ";
583
- } else this.result += "\n".repeat(emptyLines);
584
- else this.result += "\n".repeat(didReadContent ? 1 + emptyLines : emptyLines);
585
- didReadContent = true;
586
- detectedIndent = true;
587
- emptyLines = 0;
588
- const captureStart = this.position;
589
- while (!isEOL(ch) && ch !== 0) ch = this.next();
590
- this.captureSegment(captureStart, this.position, false);
591
- }
592
- return true;
593
- }
594
- readBlockMapping(nodeIndent, flowIndent) {
595
- const tag = this.tag;
596
- const anchor = this.anchor;
597
- const result = {};
598
- const overridableKeys = new Set();
599
- let allowCompact = false;
600
- let line;
601
- let pos;
602
- let keyTag = null;
603
- let keyNode = null;
604
- let valueNode = null;
605
- let atExplicitKey = false;
606
- let detected = false;
607
- if (this.anchor !== null && typeof this.anchor !== "undefined") this.anchorMap.set(this.anchor, result);
608
- let ch = this.peek();
609
- while (ch !== 0) {
610
- const following = this.peek(1);
611
- line = this.line;
612
- pos = this.position;
613
- if ((ch === QUESTION || ch === COLON) && isWhiteSpaceOrEOL(following)) {
614
- if (ch === QUESTION) {
615
- if (atExplicitKey) {
616
- this.storeMappingPair(result, overridableKeys, keyTag, keyNode, null);
617
- keyTag = null;
618
- keyNode = null;
619
- valueNode = null;
620
- }
621
- detected = true;
622
- atExplicitKey = true;
623
- allowCompact = true;
624
- } else if (atExplicitKey) {
625
- atExplicitKey = false;
626
- allowCompact = true;
627
- } else throw this.#createError("Cannot read block as explicit mapping pair is incomplete: a key node is missed or followed by a non-tabulated empty line");
628
- this.position += 1;
629
- ch = following;
630
- } else if (this.composeNode(flowIndent, CONTEXT_FLOW_OUT, false, true)) if (this.line === line) {
631
- ch = this.peek();
632
- this.skipWhitespaces();
633
- ch = this.peek();
634
- if (ch === COLON) {
635
- ch = this.next();
636
- if (!isWhiteSpaceOrEOL(ch)) throw this.#createError("Cannot read block: a whitespace character is expected after the key-value separator within a block mapping");
637
- if (atExplicitKey) {
638
- this.storeMappingPair(result, overridableKeys, keyTag, keyNode, null);
639
- keyTag = null;
640
- keyNode = null;
641
- valueNode = null;
642
- }
643
- detected = true;
644
- atExplicitKey = false;
645
- allowCompact = false;
646
- keyTag = this.tag;
647
- keyNode = this.result;
648
- } else if (detected) throw this.#createError("Cannot read an implicit mapping pair: missing colon");
649
- else {
650
- this.tag = tag;
651
- this.anchor = anchor;
652
- return true;
653
- }
654
- } else if (detected) throw this.#createError("Cannot read a block mapping entry: a multiline key may not be an implicit key");
655
- else {
656
- this.tag = tag;
657
- this.anchor = anchor;
658
- return true;
659
- }
660
- else break;
661
- if (this.line === line || this.lineIndent > nodeIndent) {
662
- if (this.composeNode(nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) if (atExplicitKey) keyNode = this.result;
663
- else valueNode = this.result;
664
- if (!atExplicitKey) {
665
- this.storeMappingPair(result, overridableKeys, keyTag, keyNode, valueNode, line, pos);
666
- keyTag = keyNode = valueNode = null;
667
- }
668
- this.skipSeparationSpace(true, -1);
669
- ch = this.peek();
670
- }
671
- if (this.lineIndent > nodeIndent && ch !== 0) throw this.#createError("Cannot read block: bad indentation of a mapping entry");
672
- else if (this.lineIndent < nodeIndent) break;
673
- }
674
- if (atExplicitKey) this.storeMappingPair(result, overridableKeys, keyTag, keyNode, null);
675
- if (detected) {
676
- this.tag = tag;
677
- this.anchor = anchor;
678
- this.kind = "mapping";
679
- this.result = result;
680
- }
681
- return detected;
682
- }
683
- readTagProperty() {
684
- let isVerbatim = false;
685
- let isNamed = false;
686
- let tagHandle = "";
687
- let tagName;
688
- let ch = this.peek();
689
- if (ch !== EXCLAMATION) return false;
690
- if (this.tag !== null) throw this.#createError("Cannot read tag property: duplication of a tag property");
691
- ch = this.next();
692
- if (ch === SMALLER_THAN) {
693
- isVerbatim = true;
694
- ch = this.next();
695
- } else if (ch === EXCLAMATION) {
696
- isNamed = true;
697
- tagHandle = "!!";
698
- ch = this.next();
699
- } else tagHandle = "!";
700
- let position = this.position;
701
- if (isVerbatim) {
702
- do
703
- ch = this.next();
704
- while (ch !== 0 && ch !== GREATER_THAN);
705
- if (this.position < this.length) {
706
- tagName = this.input.slice(position, this.position);
707
- ch = this.next();
708
- } else throw this.#createError("Cannot read tag property: unexpected end of stream");
709
- } else {
710
- while (ch !== 0 && !isWhiteSpaceOrEOL(ch)) {
711
- if (ch === EXCLAMATION) if (!isNamed) {
712
- tagHandle = this.input.slice(position - 1, this.position + 1);
713
- if (!PATTERN_TAG_HANDLE.test(tagHandle)) throw this.#createError("Cannot read tag property: named tag handle contains invalid characters");
714
- isNamed = true;
715
- position = this.position + 1;
716
- } else throw this.#createError("Cannot read tag property: tag suffix cannot contain an exclamation mark");
717
- ch = this.next();
718
- }
719
- tagName = this.input.slice(position, this.position);
720
- if (PATTERN_FLOW_INDICATORS.test(tagName)) throw this.#createError("Cannot read tag property: tag suffix cannot contain flow indicator characters");
721
- }
722
- if (tagName && !PATTERN_TAG_URI.test(tagName)) throw this.#createError(`Cannot read tag property: invalid characters in tag name "${tagName}"`);
723
- if (isVerbatim) this.tag = tagName;
724
- else if (this.tagMap.has(tagHandle)) this.tag = this.tagMap.get(tagHandle) + tagName;
725
- else if (tagHandle === "!") this.tag = `!${tagName}`;
726
- else if (tagHandle === "!!") this.tag = `tag:yaml.org,2002:${tagName}`;
727
- else throw this.#createError(`Cannot read tag property: undeclared tag handle "${tagHandle}"`);
728
- return true;
729
- }
730
- readAnchorProperty() {
731
- let ch = this.peek();
732
- if (ch !== AMPERSAND) return false;
733
- if (this.anchor !== null) throw this.#createError("Cannot read anchor property: duplicate anchor property");
734
- ch = this.next();
735
- const position = this.position;
736
- while (ch !== 0 && !isWhiteSpaceOrEOL(ch) && !isFlowIndicator(ch)) ch = this.next();
737
- if (this.position === position) throw this.#createError("Cannot read anchor property: name of an anchor node must contain at least one character");
738
- this.anchor = this.input.slice(position, this.position);
739
- return true;
740
- }
741
- readAlias() {
742
- if (this.peek() !== ASTERISK) return false;
743
- let ch = this.next();
744
- const position = this.position;
745
- while (ch !== 0 && !isWhiteSpaceOrEOL(ch) && !isFlowIndicator(ch)) ch = this.next();
746
- if (this.position === position) throw this.#createError("Cannot read alias: alias name must contain at least one character");
747
- const alias = this.input.slice(position, this.position);
748
- if (!this.anchorMap.has(alias)) throw this.#createError(`Cannot read alias: unidentified alias "${alias}"`);
749
- this.result = this.anchorMap.get(alias);
750
- this.skipSeparationSpace(true, -1);
751
- return true;
752
- }
753
- composeNode(parentIndent, nodeContext, allowToSeek, allowCompact) {
754
- let indentStatus = 1;
755
- let atNewLine = false;
756
- let hasContent = false;
757
- let type;
758
- this.tag = null;
759
- this.anchor = null;
760
- this.kind = null;
761
- this.result = null;
762
- const allowBlockScalars = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
763
- let allowBlockCollections = allowBlockScalars;
764
- const allowBlockStyles = allowBlockScalars;
765
- if (allowToSeek) {
766
- if (this.skipSeparationSpace(true, -1)) {
767
- atNewLine = true;
768
- if (this.lineIndent > parentIndent) indentStatus = 1;
769
- else if (this.lineIndent === parentIndent) indentStatus = 0;
770
- else if (this.lineIndent < parentIndent) indentStatus = -1;
771
- }
772
- }
773
- if (indentStatus === 1) while (this.readTagProperty() || this.readAnchorProperty()) if (this.skipSeparationSpace(true, -1)) {
774
- atNewLine = true;
775
- allowBlockCollections = allowBlockStyles;
776
- if (this.lineIndent > parentIndent) indentStatus = 1;
777
- else if (this.lineIndent === parentIndent) indentStatus = 0;
778
- else if (this.lineIndent < parentIndent) indentStatus = -1;
779
- } else allowBlockCollections = false;
780
- if (allowBlockCollections) allowBlockCollections = atNewLine || allowCompact;
781
- if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
782
- const cond = CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext;
783
- const flowIndent = cond ? parentIndent : parentIndent + 1;
784
- const blockIndent = this.position - this.lineStart;
785
- if (indentStatus === 1) if (allowBlockCollections && (this.readBlockSequence(blockIndent) || this.readBlockMapping(blockIndent, flowIndent)) || this.readFlowCollection(flowIndent)) hasContent = true;
786
- else {
787
- if (allowBlockScalars && this.readBlockScalar(flowIndent) || this.readSingleQuotedScalar(flowIndent) || this.readDoubleQuotedScalar(flowIndent)) hasContent = true;
788
- else if (this.readAlias()) {
789
- hasContent = true;
790
- if (this.tag !== null || this.anchor !== null) throw this.#createError("Cannot compose node: alias node should not have any properties");
791
- } else if (this.readPlainScalar(flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
792
- hasContent = true;
793
- if (this.tag === null) this.tag = "?";
794
- }
795
- if (this.anchor !== null) this.anchorMap.set(this.anchor, this.result);
796
- }
797
- else if (indentStatus === 0) hasContent = allowBlockCollections && this.readBlockSequence(blockIndent);
798
- }
799
- if (this.tag !== null && this.tag !== "!") if (this.tag === "?") for (let typeIndex = 0; typeIndex < this.implicitTypes.length; typeIndex++) {
800
- type = this.implicitTypes[typeIndex];
801
- if (type.resolve(this.result)) {
802
- this.result = type.construct(this.result);
803
- this.tag = type.tag;
804
- if (this.anchor !== null) this.anchorMap.set(this.anchor, this.result);
805
- break;
806
- }
807
- }
808
- else if (this.typeMap[this.kind ?? "fallback"].has(this.tag)) {
809
- const map = this.typeMap[this.kind ?? "fallback"];
810
- type = map.get(this.tag);
811
- if (this.result !== null && type.kind !== this.kind) throw this.#createError(`Unacceptable node kind for !<${this.tag}> tag: it should be "${type.kind}", not "${this.kind}"`);
812
- if (!type.resolve(this.result)) throw this.#createError(`Cannot resolve a node with !<${this.tag}> explicit tag`);
813
- else {
814
- this.result = type.construct(this.result);
815
- if (this.anchor !== null) this.anchorMap.set(this.anchor, this.result);
816
- }
817
- } else throw this.#createError(`Cannot resolve unknown tag !<${this.tag}>`);
818
- return this.tag !== null || this.anchor !== null || hasContent;
819
- }
820
- readDocument() {
821
- const documentStart = this.position;
822
- let hasDirectives = false;
823
- this.version = null;
824
- this.checkLineBreaks = false;
825
- this.tagMap = new Map();
826
- this.anchorMap = new Map();
827
- let ch = this.peek();
828
- while (ch !== 0) {
829
- this.skipSeparationSpace(true, -1);
830
- ch = this.peek();
831
- if (this.lineIndent > 0 || ch !== PERCENT) break;
832
- hasDirectives = true;
833
- ch = this.next();
834
- let position = this.position;
835
- while (ch !== 0 && !isWhiteSpaceOrEOL(ch)) ch = this.next();
836
- const directiveName = this.input.slice(position, this.position);
837
- const directiveArgs = [];
838
- if (directiveName.length < 1) throw this.#createError("Cannot read document: directive name length must be greater than zero");
839
- while (ch !== 0) {
840
- this.skipWhitespaces();
841
- this.skipComment();
842
- ch = this.peek();
843
- if (isEOL(ch)) break;
844
- position = this.position;
845
- while (ch !== 0 && !isWhiteSpaceOrEOL(ch)) ch = this.next();
846
- directiveArgs.push(this.input.slice(position, this.position));
847
- }
848
- if (ch !== 0) this.readLineBreak();
849
- switch (directiveName) {
850
- case "YAML":
851
- this.yamlDirectiveHandler(...directiveArgs);
852
- break;
853
- case "TAG":
854
- this.tagDirectiveHandler(...directiveArgs);
855
- break;
856
- default:
857
- this.dispatchWarning(`unknown document directive "${directiveName}"`);
858
- break;
859
- }
860
- ch = this.peek();
861
- }
862
- this.skipSeparationSpace(true, -1);
863
- if (this.lineIndent === 0 && this.peek() === MINUS && this.peek(1) === MINUS && this.peek(2) === MINUS) {
864
- this.position += 3;
865
- this.skipSeparationSpace(true, -1);
866
- } else if (hasDirectives) throw this.#createError("Cannot read document: directives end mark is expected");
867
- this.composeNode(this.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
868
- this.skipSeparationSpace(true, -1);
869
- if (this.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(this.input.slice(documentStart, this.position))) this.dispatchWarning("non-ASCII line breaks are interpreted as content");
870
- if (this.position === this.lineStart && this.testDocumentSeparator()) {
871
- if (this.peek() === DOT) {
872
- this.position += 3;
873
- this.skipSeparationSpace(true, -1);
874
- }
875
- } else if (this.position < this.length - 1) throw this.#createError("Cannot read document: end of the stream or a document separator is expected");
876
- return this.result;
877
- }
878
- *readDocuments() {
879
- while (this.position < this.length - 1) yield this.readDocument();
880
- }
881
- };
882
-
883
- //#endregion
884
- export { LoaderState };