@fedify/fedify 1.9.6 → 1.9.8

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 (274) hide show
  1. package/dist/{actor-CEGEmRll.js → actor-BTA45fXF.js} +1205 -2768
  2. package/dist/{actor-Ydzhc8dj.d.cts → actor-Be-68iJP.d.cts} +3 -3
  3. package/dist/{actor-C1Euqngb.d.ts → actor-C5AY0Tno.d.ts} +3 -3
  4. package/dist/{actor-DbpZ6pzg.js → actor-DGa1EWaV.mjs} +8 -15
  5. package/dist/{actor-DlS-Q8hE.cjs → actor-DxfJk4lY.cjs} +3112 -4674
  6. package/dist/{assert-MZs1qjMx.js → assert-DikXweDx.mjs} +5 -9
  7. package/dist/{assert_equals-DSbWqCm3.js → assert_equals-Ew3jOFa3.mjs} +55 -69
  8. package/dist/{assert_instance_of-DHz7EHNU.js → assert_instance_of-C4Ri6VuN.mjs} +5 -9
  9. package/dist/{assert_is_error-BPGph1Jx.js → assert_is_error-C50x8tnw.mjs} +5 -9
  10. package/dist/{assert_not_equals-f3m3epl3.js → assert_not_equals--wG9hV7u.mjs} +6 -13
  11. package/dist/{assert_rejects-DiIiJbZn.js → assert_rejects-CJC9ThS-.mjs} +6 -11
  12. package/dist/{assert_throws-BOO88avQ.js → assert_throws-BIL7gChy.mjs} +6 -10
  13. package/dist/{authdocloader-DUQcOTRS.js → authdocloader-BC2rYCy1.mjs} +9 -14
  14. package/dist/{authdocloader-CT_V4Z7G.cjs → authdocloader-BrhFB421.cjs} +14 -22
  15. package/dist/{authdocloader-BLqMyboS.js → authdocloader-CqtNsX_N.js} +8 -15
  16. package/dist/{builder-BO61xeXE.js → builder-CIkAhIGC.mjs} +31 -40
  17. package/dist/{client-DF8anIB5.d.ts → client-D8OSiPBT.d.ts} +2 -2
  18. package/dist/{client-UG5wpNhG.js → client-MXqit6c-.mjs} +11 -15
  19. package/dist/{client-DjT_tegg.d.cts → client-T0VFOdMw.d.cts} +2 -2
  20. package/dist/{collection-CSzG2j1P.js → collection-BD6-SZ6O.mjs} +7 -12
  21. package/dist/compat/mod.cjs +5 -8
  22. package/dist/compat/mod.d.cts +78 -12
  23. package/dist/compat/mod.d.ts +78 -12
  24. package/dist/compat/mod.js +4 -8
  25. package/dist/compat/transformers.test.mjs +62 -0
  26. package/dist/{context-CwUAkopp.d.cts → context-CACMqDzl.d.cts} +33 -26
  27. package/dist/{context-CXUibY4L.d.ts → context-K4cCphQj.d.ts} +33 -26
  28. package/dist/{denokv-Bv33Xxea.js → denokv-CoSB_Eps.mjs} +22 -11
  29. package/dist/{docloader-BIFI3OS7.cjs → docloader-BVuUhBLI.cjs} +112 -212
  30. package/dist/{docloader-fJgJeqiX.js → docloader-BoXhusJ1.js} +17 -151
  31. package/dist/{docloader-CxWcuWqQ.d.ts → docloader-DSaLRXEA.d.ts} +2 -7
  32. package/dist/{docloader-D-MrRyHl.d.cts → docloader-DpGRDZrn.d.cts} +2 -7
  33. package/dist/{esm-C1EfGjSS.js → esm-BHJ7sdNg.mjs} +49 -85
  34. package/dist/federation/{builder.test.js → builder.test.mjs} +22 -41
  35. package/dist/federation/collection.test.d.mts +2 -0
  36. package/dist/federation/collection.test.mjs +21 -0
  37. package/dist/federation/handler.test.d.mts +2 -0
  38. package/dist/federation/{handler.test.js → handler.test.mjs} +22 -49
  39. package/dist/federation/idempotency.test.d.mts +2 -0
  40. package/dist/federation/{idempotency.test.js → idempotency.test.mjs} +29 -59
  41. package/dist/federation/inbox.test.d.mts +2 -0
  42. package/dist/federation/{inbox.test.js → inbox.test.mjs} +10 -15
  43. package/dist/federation/keycache.test.d.mts +2 -0
  44. package/dist/federation/{keycache.test.js → keycache.test.mjs} +13 -18
  45. package/dist/federation/kv.test.d.mts +2 -0
  46. package/dist/federation/{kv.test.js → kv.test.mjs} +9 -20
  47. package/dist/federation/middleware.test.d.mts +2 -0
  48. package/dist/federation/{middleware.test.js → middleware.test.mjs} +182 -197
  49. package/dist/federation/mod.cjs +223 -21
  50. package/dist/federation/mod.d.cts +4 -13
  51. package/dist/federation/mod.d.ts +4 -13
  52. package/dist/federation/mod.js +218 -18
  53. package/dist/federation/mq.test.d.mts +2 -0
  54. package/dist/federation/{mq.test.js → mq.test.mjs} +23 -38
  55. package/dist/federation/retry.test.d.mts +2 -0
  56. package/dist/federation/{retry.test.js → retry.test.mjs} +9 -14
  57. package/dist/federation/router.test.d.mts +2 -0
  58. package/dist/federation/{router.test.js → router.test.mjs} +12 -19
  59. package/dist/federation/send.test.d.mts +2 -0
  60. package/dist/federation/{send.test.js → send.test.mjs} +17 -26
  61. package/dist/{http-wsGR6KkT.d.ts → http-BZpls--H.d.ts} +5 -9
  62. package/dist/{http-CR-Eg1Uq.js → http-Bu5ZNlhZ.mjs} +16 -32
  63. package/dist/{http-B1_DzfAU.d.cts → http-C7WoprmE.d.cts} +5 -9
  64. package/dist/{http-BgopPF-8.cjs → http-DKw-O_VY.cjs} +51 -68
  65. package/dist/{http-05HxN-lp.js → http-VJbz6sKD.js} +17 -33
  66. package/dist/{inbox-DcJN1cxM.js → inbox-DkbTULXE.mjs} +17 -25
  67. package/dist/key-4fu6v0Jf.mjs +5 -0
  68. package/dist/{key-DjS1X9TG.cjs → key-B-wFdaPB.cjs} +42 -50
  69. package/dist/{key-ibMO03_0.js → key-BNMK_IVr.mjs} +12 -18
  70. package/dist/key-CancShOo.cjs +4 -0
  71. package/dist/{key-CPJcJjp-.js → key-DK3o0FEH.js} +19 -19
  72. package/dist/{keycache-CMUfqYqr.js → keycache-D-Vj8z88.mjs} +6 -10
  73. package/dist/{keys-IZ5050fT.js → keys-B27nVeIs.mjs} +6 -10
  74. package/dist/{kv-C7sopW2E.d.ts → kv-Bq9QLKm5.d.ts} +1 -1
  75. package/dist/{kv-CRZrzyXm.js → kv-DM1zFCtL.mjs} +6 -10
  76. package/dist/{kv-63Cil1MD.d.cts → kv-GIrOktyG.d.cts} +1 -1
  77. package/dist/{ld-DHNA2RSQ.js → ld-6jAVu3jV.mjs} +17 -31
  78. package/dist/{lookup-CKZfuyxA.js → lookup-BaU75j-d.js} +5 -11
  79. package/dist/{lookup-C4_dVYz7.cjs → lookup-BiIPmTwB.cjs} +16 -23
  80. package/dist/{lookup-BMAWLsP2.js → lookup-DmeJ8WUw.mjs} +8 -17
  81. package/dist/middleware-9ByEpBvV.cjs +4 -0
  82. package/dist/{middleware-CGbvIGvy.cjs → middleware-C188G4Go.cjs} +494 -547
  83. package/dist/{middleware-DrhEvfTo.js → middleware-Db1yZQaT.mjs} +276 -321
  84. package/dist/{middleware-ODfDRN3q.js → middleware-Do06X21v.js} +349 -393
  85. package/dist/middleware-DrfZEjyc.mjs +5 -0
  86. package/dist/{mod-CDObsV1d.d.ts → mod-BSwc3_rD.d.ts} +3 -3
  87. package/dist/{mod-DBzN0aCM.d.ts → mod-BTNpXcPj.d.ts} +2 -2
  88. package/dist/{mod-fjqfsrty.d.cts → mod-Chb_NKPp.d.cts} +4 -4
  89. package/dist/{mod-DgcYoyZK.d.ts → mod-DHoc3toL.d.ts} +4 -4
  90. package/dist/{mod-jQ4OODsl.d.cts → mod-DIMx6YjJ.d.cts} +2 -2
  91. package/dist/{mod-BUbqxBev.d.cts → mod-HElaq2UB.d.cts} +3 -3
  92. package/dist/mod.cjs +31 -33
  93. package/dist/mod.d.cts +15 -17
  94. package/dist/mod.d.ts +15 -17
  95. package/dist/mod.js +20 -23
  96. package/dist/{mq-B7R1Q-M5.d.cts → mq-CrItclRD.d.cts} +1 -1
  97. package/dist/{mq-CRGm1e_F.d.ts → mq-D_ZZRdby.d.ts} +1 -1
  98. package/dist/nodeinfo/client.test.d.mts +2 -0
  99. package/dist/nodeinfo/{client.test.js → client.test.mjs} +23 -45
  100. package/dist/nodeinfo/handler.test.d.mts +2 -0
  101. package/dist/nodeinfo/{handler.test.js → handler.test.mjs} +14 -43
  102. package/dist/nodeinfo/mod.cjs +5 -9
  103. package/dist/nodeinfo/mod.d.cts +2 -5
  104. package/dist/nodeinfo/mod.d.ts +2 -5
  105. package/dist/nodeinfo/mod.js +4 -9
  106. package/dist/nodeinfo/semver.test.d.mts +2 -0
  107. package/dist/nodeinfo/{semver.test.js → semver.test.mjs} +28 -51
  108. package/dist/nodeinfo/types.test.d.mts +2 -0
  109. package/dist/nodeinfo/{types.test.js → types.test.mjs} +10 -21
  110. package/dist/{owner-DDHsHYQO.js → owner-CKuGt_T9.mjs} +10 -13
  111. package/dist/{owner-BbeUDvOu.d.ts → owner-DPAPnB0R.d.ts} +4 -4
  112. package/dist/{owner-6KSEp9eV.d.cts → owner-_rFs0ik_.d.cts} +4 -4
  113. package/dist/{proof-V1uQaB2y.js → proof-CmTtG_t-.js} +33 -57
  114. package/dist/{proof-CX7ujFFX.cjs → proof-DLOy7HYU.cjs} +112 -135
  115. package/dist/{proof-exgGRW88.js → proof-mJLL2gSA.mjs} +20 -32
  116. package/dist/{retry-D4GJ670a.js → retry-Ddbq3AcK.mjs} +4 -7
  117. package/dist/rolldown-runtime-C7fyD9f2.js +15 -0
  118. package/dist/runtime/authdocloader.test.d.mts +2 -0
  119. package/dist/runtime/{authdocloader.test.js → authdocloader.test.mjs} +16 -28
  120. package/dist/runtime/docloader.test.d.mts +2 -0
  121. package/dist/runtime/{docloader.test.js → docloader.test.mjs} +52 -72
  122. package/dist/runtime/key.test.d.mts +2 -0
  123. package/dist/runtime/{key.test.js → key.test.mjs} +27 -57
  124. package/dist/runtime/langstr.test.d.mts +2 -0
  125. package/dist/runtime/{langstr.test.js → langstr.test.mjs} +9 -19
  126. package/dist/runtime/link.test.d.mts +2 -0
  127. package/dist/runtime/{link.test.js → link.test.mjs} +7 -11
  128. package/dist/runtime/mod.cjs +7 -13
  129. package/dist/runtime/mod.d.cts +103 -6
  130. package/dist/runtime/mod.d.ts +103 -6
  131. package/dist/runtime/mod.js +6 -13
  132. package/dist/runtime/multibase/multibase.test.d.mts +2 -0
  133. package/dist/runtime/multibase/{multibase.test.js → multibase.test.mjs} +16 -33
  134. package/dist/runtime/url.test.d.mts +2 -0
  135. package/dist/runtime/{url.test.js → url.test.mjs} +10 -15
  136. package/dist/{semver-dArNLkR9.js → semver-CgD82xxg.mjs} +13 -28
  137. package/dist/{send-BfMYakUE.js → send-BsQbGuw4.mjs} +7 -12
  138. package/dist/sig/http.test.d.mts +2 -0
  139. package/dist/sig/{http.test.js → http.test.mjs} +119 -203
  140. package/dist/sig/key.test.d.mts +2 -0
  141. package/dist/sig/{key.test.js → key.test.mjs} +13 -22
  142. package/dist/sig/ld.test.d.mts +2 -0
  143. package/dist/sig/{ld.test.js → ld.test.mjs} +24 -39
  144. package/dist/sig/mod.cjs +7 -13
  145. package/dist/sig/mod.d.cts +3 -7
  146. package/dist/sig/mod.d.ts +3 -7
  147. package/dist/sig/mod.js +6 -13
  148. package/dist/sig/owner.test.d.mts +2 -0
  149. package/dist/sig/owner.test.mjs +39 -0
  150. package/dist/sig/proof.test.d.mts +2 -0
  151. package/dist/sig/{proof.test.js → proof.test.mjs} +18 -31
  152. package/dist/{std__assert-X-_kMxKM.js → std__assert-2v7gYiZp.mjs} +13 -24
  153. package/dist/testing/docloader.test.d.mts +2 -0
  154. package/dist/testing/docloader.test.mjs +12 -0
  155. package/dist/testing/{mod.d.ts → mod.d.mts} +371 -541
  156. package/dist/testing/mod.mjs +5 -0
  157. package/dist/{testing-RPOc_gVG.js → testing-DS3gcq8V.mjs} +27 -35
  158. package/dist/{transformers-CoBS-oFG.cjs → transformers-BM0M8hnW.cjs} +20 -25
  159. package/dist/{transformers-BFT6d7J5.js → transformers-BV4OeK9o.js} +3 -7
  160. package/dist/{types-Cptev2nt.js → types-BXfL-dsX.js} +18 -36
  161. package/dist/{types-BIgY6c-l.js → types-CAnkAQGM.mjs} +5 -9
  162. package/dist/{types-CGnM1vft.cjs → types-DpM4FhjW.cjs} +45 -64
  163. package/dist/vocab/actor.test.d.mts +2 -0
  164. package/dist/vocab/{actor.test.js → actor.test.mjs} +308 -550
  165. package/dist/vocab/cjs.test.d.mts +2 -0
  166. package/dist/vocab/cjs.test.mjs +14 -0
  167. package/dist/vocab/lookup.test.d.mts +2 -0
  168. package/dist/vocab/{lookup.test.js → lookup.test.mjs} +29 -45
  169. package/dist/vocab/mod.cjs +251 -16
  170. package/dist/vocab/mod.d.cts +3 -5
  171. package/dist/vocab/mod.d.ts +3 -5
  172. package/dist/vocab/mod.js +244 -10
  173. package/dist/vocab/type.test.d.mts +2 -0
  174. package/dist/vocab/type.test.mjs +16 -0
  175. package/dist/vocab/vocab.test.d.mts +2 -0
  176. package/dist/vocab/{vocab.test.js → vocab.test.mjs} +178 -311
  177. package/dist/{vocab-CDHNj5zp.d.ts → vocab-BLvSEtuz.d.cts} +2 -4
  178. package/dist/{type-COPv6pMi.js → vocab-DuW9rL1h.mjs} +1177 -2871
  179. package/dist/{vocab-Cfs0937i.d.cts → vocab-lhCS9lzq.d.ts} +4 -2
  180. package/dist/webfinger/handler.test.d.mts +2 -0
  181. package/dist/webfinger/{handler.test.js → handler.test.mjs} +23 -56
  182. package/dist/webfinger/lookup.test.d.mts +2 -0
  183. package/dist/webfinger/{lookup.test.js → lookup.test.mjs} +13 -27
  184. package/dist/webfinger/mod.cjs +5 -9
  185. package/dist/webfinger/mod.d.cts +1 -3
  186. package/dist/webfinger/mod.d.ts +1 -3
  187. package/dist/webfinger/mod.js +4 -9
  188. package/dist/x/cfworkers.cjs +25 -14
  189. package/dist/x/cfworkers.d.cts +33 -6
  190. package/dist/x/cfworkers.d.ts +33 -6
  191. package/dist/x/cfworkers.js +22 -12
  192. package/dist/x/cfworkers.test.d.mts +2 -0
  193. package/dist/x/{cfworkers.test.js → cfworkers.test.mjs} +28 -26
  194. package/dist/x/hono.cjs +25 -14
  195. package/dist/x/hono.d.cts +1 -11
  196. package/dist/x/hono.d.ts +1 -11
  197. package/dist/x/hono.js +22 -12
  198. package/dist/x/sveltekit.cjs +23 -12
  199. package/dist/x/sveltekit.d.cts +1 -11
  200. package/dist/x/sveltekit.d.ts +1 -11
  201. package/dist/x/sveltekit.js +20 -10
  202. package/package.json +2 -2
  203. package/dist/chunk-DqRYRqnO.cjs +0 -34
  204. package/dist/compat/transformers.test.d.ts +0 -3
  205. package/dist/compat/transformers.test.js +0 -86
  206. package/dist/compat-DmDDELst.cjs +0 -4
  207. package/dist/compat-nxUqe4Z-.js +0 -4
  208. package/dist/federation/builder.test.d.ts +0 -3
  209. package/dist/federation/collection.test.d.ts +0 -3
  210. package/dist/federation/collection.test.js +0 -35
  211. package/dist/federation/handler.test.d.ts +0 -3
  212. package/dist/federation/idempotency.test.d.ts +0 -3
  213. package/dist/federation/inbox.test.d.ts +0 -3
  214. package/dist/federation/keycache.test.d.ts +0 -3
  215. package/dist/federation/kv.test.d.ts +0 -3
  216. package/dist/federation/middleware.test.d.ts +0 -3
  217. package/dist/federation/mq.test.d.ts +0 -3
  218. package/dist/federation/retry.test.d.ts +0 -3
  219. package/dist/federation/router.test.d.ts +0 -3
  220. package/dist/federation/send.test.d.ts +0 -3
  221. package/dist/federation-D1U8YY9t.js +0 -226
  222. package/dist/federation-H2_En3j5.cjs +0 -244
  223. package/dist/key-BCUd8FWp.js +0 -10
  224. package/dist/key-BUardnTH.cjs +0 -10
  225. package/dist/key-Dr6H_e3K.js +0 -10
  226. package/dist/middleware-BJ83veqi.js +0 -26
  227. package/dist/middleware-CJ4W2ir5.cjs +0 -17
  228. package/dist/middleware-Ve2mHJgo.js +0 -17
  229. package/dist/mod-BcObK1Lz.d.ts +0 -82
  230. package/dist/mod-C2tOeRkN.d.cts +0 -1
  231. package/dist/mod-CIbqfZW0.d.ts +0 -104
  232. package/dist/mod-Dt-G9ZOS.d.cts +0 -102
  233. package/dist/mod-FZd39qVq.d.cts +0 -1
  234. package/dist/mod-mXx9V0q5.d.cts +0 -80
  235. package/dist/nodeinfo/client.test.d.ts +0 -3
  236. package/dist/nodeinfo/handler.test.d.ts +0 -3
  237. package/dist/nodeinfo/semver.test.d.ts +0 -3
  238. package/dist/nodeinfo/types.test.d.ts +0 -3
  239. package/dist/nodeinfo-Co9lJrWl.cjs +0 -4
  240. package/dist/nodeinfo-DfycQ8Wf.js +0 -4
  241. package/dist/runtime/authdocloader.test.d.ts +0 -3
  242. package/dist/runtime/docloader.test.d.ts +0 -3
  243. package/dist/runtime/key.test.d.ts +0 -3
  244. package/dist/runtime/langstr.test.d.ts +0 -3
  245. package/dist/runtime/link.test.d.ts +0 -3
  246. package/dist/runtime/multibase/multibase.test.d.ts +0 -3
  247. package/dist/runtime/url.test.d.ts +0 -3
  248. package/dist/runtime-C58AJWSv.cjs +0 -4
  249. package/dist/runtime-DPYEDf-o.js +0 -4
  250. package/dist/sig/http.test.d.ts +0 -3
  251. package/dist/sig/key.test.d.ts +0 -3
  252. package/dist/sig/ld.test.d.ts +0 -3
  253. package/dist/sig/owner.test.d.ts +0 -3
  254. package/dist/sig/owner.test.js +0 -52
  255. package/dist/sig/proof.test.d.ts +0 -3
  256. package/dist/sig-ByHXzqUi.cjs +0 -4
  257. package/dist/sig-Cj3tk-ig.js +0 -4
  258. package/dist/testing/docloader.test.d.ts +0 -3
  259. package/dist/testing/docloader.test.js +0 -24
  260. package/dist/testing/mod.js +0 -10
  261. package/dist/vocab/actor.test.d.ts +0 -3
  262. package/dist/vocab/lookup.test.d.ts +0 -3
  263. package/dist/vocab/type.test.d.ts +0 -3
  264. package/dist/vocab/type.test.js +0 -25
  265. package/dist/vocab/vocab.test.d.ts +0 -3
  266. package/dist/vocab-BFy1CS5L.cjs +0 -289
  267. package/dist/vocab-BPFiQ650.js +0 -253
  268. package/dist/webfinger/handler.test.d.ts +0 -3
  269. package/dist/webfinger/lookup.test.d.ts +0 -3
  270. package/dist/webfinger-BjOEdFPs.cjs +0 -4
  271. package/dist/webfinger-De_bU0iE.js +0 -4
  272. package/dist/x/cfworkers.test.d.ts +0 -3
  273. /package/dist/{mod-1pDWKvUL.d.ts → compat/transformers.test.d.mts} +0 -0
  274. /package/dist/{mod-g0xFzAP9.d.ts → federation/builder.test.d.mts} +0 -0
@@ -1,22 +1,15 @@
1
-
2
- import { Temporal } from "@js-temporal/polyfill";
3
- import { URLPattern } from "urlpattern-polyfill";
4
- globalThis.addEventListener = () => {};
5
-
6
- import { Application, Group, Organization, Person, Service, __export } from "../type-COPv6pMi.js";
7
- import { assertEquals } from "../assert_equals-DSbWqCm3.js";
8
- import { assert } from "../assert-MZs1qjMx.js";
9
- import "../assert_instance_of-DHz7EHNU.js";
10
- import "../lookup-BMAWLsP2.js";
11
- import { getActorClassByTypeName, getActorHandle, getActorTypeName, isActor, normalizeActorHandle } from "../actor-DbpZ6pzg.js";
12
- import { test } from "../testing-RPOc_gVG.js";
13
- import { assertStrictEquals } from "../std__assert-X-_kMxKM.js";
14
- import { assertFalse, assertRejects } from "../assert_rejects-DiIiJbZn.js";
15
- import "../assert_is_error-BPGph1Jx.js";
16
- import "../assert_not_equals-f3m3epl3.js";
17
- import { assertThrows } from "../assert_throws-BOO88avQ.js";
18
- import { esm_default } from "../esm-C1EfGjSS.js";
19
-
1
+ import "@js-temporal/polyfill";
2
+ import "urlpattern-polyfill";
3
+ globalThis.addEventListener = () => {};
4
+ import { C as Person, E as Service, S as Organization, d as Group, lt as __exportAll, r as Application } from "../vocab-DuW9rL1h.mjs";
5
+ import { t as test } from "../testing-DS3gcq8V.mjs";
6
+ import { t as assertEquals } from "../assert_equals-Ew3jOFa3.mjs";
7
+ import { n as assertStrictEquals } from "../std__assert-2v7gYiZp.mjs";
8
+ import { n as assertFalse, t as assertRejects } from "../assert_rejects-CJC9ThS-.mjs";
9
+ import { t as assertThrows } from "../assert_throws-BIL7gChy.mjs";
10
+ import { t as assert$1 } from "../assert-DikXweDx.mjs";
11
+ import { a as normalizeActorHandle, i as isActor, n as getActorHandle, r as getActorTypeName, t as getActorClassByTypeName } from "../actor-DGa1EWaV.mjs";
12
+ import { t as esm_default } from "../esm-BHJ7sdNg.mjs";
20
13
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/precondition/PreconditionFailure.js
21
14
  var PreconditionFailure = class PreconditionFailure extends Error {
22
15
  constructor(interruptExecution = false) {
@@ -29,7 +22,6 @@ var PreconditionFailure = class PreconditionFailure extends Error {
29
22
  }
30
23
  };
31
24
  PreconditionFailure.SharedFootPrint = Symbol.for("fast-check/PreconditionFailure");
32
-
33
25
  //#endregion
34
26
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/stream/StreamHelpers.js
35
27
  var Nil = class {
@@ -74,7 +66,6 @@ function* joinHelper(g, others) {
74
66
  for (let cur = g.next(); !cur.done; cur = g.next()) yield cur.value;
75
67
  for (const s of others) for (let cur = s.next(); !cur.done; cur = s.next()) yield cur.value;
76
68
  }
77
-
78
69
  //#endregion
79
70
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/stream/Stream.js
80
71
  const safeSymbolIterator = Symbol.iterator;
@@ -151,7 +142,6 @@ var Stream = class Stream {
151
142
  function stream(g) {
152
143
  return new Stream(g);
153
144
  }
154
-
155
145
  //#endregion
156
146
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/symbols.js
157
147
  const cloneMethod = Symbol.for("fast-check/cloneMethod");
@@ -161,7 +151,6 @@ function hasCloneMethod(instance) {
161
151
  function cloneIfNeeded(instance) {
162
152
  return hasCloneMethod(instance) ? instance[cloneMethod]() : instance;
163
153
  }
164
-
165
154
  //#endregion
166
155
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/arbitrary/definition/Value.js
167
156
  const safeObjectDefineProperty$2 = Object.defineProperty;
@@ -185,7 +174,6 @@ var Value = class {
185
174
  return this.value_;
186
175
  }
187
176
  };
188
-
189
177
  //#endregion
190
178
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/arbitrary/definition/Arbitrary.js
191
179
  const safeObjectAssign$4 = Object.assign;
@@ -285,11 +273,10 @@ var MapArbitrary = class extends Arbitrary {
285
273
  }
286
274
  valueMapper(v) {
287
275
  const [mappedValue, sourceValue] = this.mapperWithCloneIfNeeded(v);
288
- const context = {
276
+ return new Value(mappedValue, {
289
277
  originalValue: sourceValue,
290
278
  originalContext: v.context
291
- };
292
- return new Value(mappedValue, context);
279
+ });
293
280
  }
294
281
  isSafeContext(context) {
295
282
  return context != null && typeof context === "object" && "originalValue" in context && "originalContext" in context;
@@ -360,7 +347,6 @@ function isArbitrary(instance) {
360
347
  function assertIsArbitrary(instance) {
361
348
  if (!isArbitrary(instance)) throw new Error("Unexpected value received: not an instance of Arbitrary");
362
349
  }
363
-
364
350
  //#endregion
365
351
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/utils/apply.js
366
352
  const untouchedApply = Function.prototype.apply;
@@ -369,7 +355,7 @@ function safeExtractApply(f) {
369
355
  try {
370
356
  return f.apply;
371
357
  } catch (err) {
372
- return void 0;
358
+ return;
373
359
  }
374
360
  }
375
361
  function safeApplyHacky(f, instance, args) {
@@ -383,11 +369,10 @@ function safeApply(f, instance, args) {
383
369
  if (safeExtractApply(f) === untouchedApply) return f.apply(instance, args);
384
370
  return safeApplyHacky(f, instance, args);
385
371
  }
386
-
387
372
  //#endregion
388
373
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/utils/globals.js
389
374
  const SArray = typeof Array !== "undefined" ? Array : void 0;
390
- const SBigInt = typeof BigInt !== "undefined" ? BigInt : void 0;
375
+ const SBigInt$1 = typeof BigInt !== "undefined" ? BigInt : void 0;
391
376
  const SBoolean = typeof Boolean !== "undefined" ? Boolean : void 0;
392
377
  const SDate = typeof Date !== "undefined" ? Date : void 0;
393
378
  const SError = typeof Error !== "undefined" ? Error : void 0;
@@ -412,71 +397,71 @@ const untouchedMap = Array.prototype.map;
412
397
  const untouchedFilter = Array.prototype.filter;
413
398
  const untouchedPush = Array.prototype.push;
414
399
  const untouchedPop = Array.prototype.pop;
415
- const untouchedSplice = Array.prototype.splice;
400
+ Array.prototype.splice;
416
401
  const untouchedSlice = Array.prototype.slice;
417
- const untouchedSort = Array.prototype.sort;
402
+ Array.prototype.sort;
418
403
  const untouchedEvery = Array.prototype.every;
419
404
  function extractForEach(instance) {
420
405
  try {
421
406
  return instance.forEach;
422
407
  } catch (err) {
423
- return void 0;
408
+ return;
424
409
  }
425
410
  }
426
411
  function extractIndexOf(instance) {
427
412
  try {
428
413
  return instance.indexOf;
429
414
  } catch (err) {
430
- return void 0;
415
+ return;
431
416
  }
432
417
  }
433
418
  function extractJoin(instance) {
434
419
  try {
435
420
  return instance.join;
436
421
  } catch (err) {
437
- return void 0;
422
+ return;
438
423
  }
439
424
  }
440
425
  function extractMap(instance) {
441
426
  try {
442
427
  return instance.map;
443
428
  } catch (err) {
444
- return void 0;
429
+ return;
445
430
  }
446
431
  }
447
432
  function extractFilter(instance) {
448
433
  try {
449
434
  return instance.filter;
450
435
  } catch (err) {
451
- return void 0;
436
+ return;
452
437
  }
453
438
  }
454
439
  function extractPush(instance) {
455
440
  try {
456
441
  return instance.push;
457
442
  } catch (err) {
458
- return void 0;
443
+ return;
459
444
  }
460
445
  }
461
446
  function extractPop(instance) {
462
447
  try {
463
448
  return instance.pop;
464
449
  } catch (err) {
465
- return void 0;
450
+ return;
466
451
  }
467
452
  }
468
453
  function extractSlice(instance) {
469
454
  try {
470
455
  return instance.slice;
471
456
  } catch (err) {
472
- return void 0;
457
+ return;
473
458
  }
474
459
  }
475
460
  function extractEvery(instance) {
476
461
  try {
477
462
  return instance.every;
478
463
  } catch (err) {
479
- return void 0;
464
+ return;
480
465
  }
481
466
  }
482
467
  function safeForEach(instance, fn) {
@@ -521,14 +506,14 @@ function extractGetTime(instance) {
521
506
  try {
522
507
  return instance.getTime;
523
508
  } catch (err) {
524
- return void 0;
509
+ return;
525
510
  }
526
511
  }
527
512
  function extractToISOString(instance) {
528
513
  try {
529
514
  return instance.toISOString;
530
515
  } catch (err) {
531
- return void 0;
516
+ return;
532
517
  }
533
518
  }
534
519
  function safeGetTime(instance) {
@@ -545,14 +530,14 @@ function extractAdd(instance) {
545
530
  try {
546
531
  return instance.add;
547
532
  } catch (err) {
548
- return void 0;
533
+ return;
549
534
  }
550
535
  }
551
536
  function extractHas(instance) {
552
537
  try {
553
538
  return instance.has;
554
539
  } catch (err) {
555
- return void 0;
540
+ return;
556
541
  }
557
542
  }
558
543
  function safeAdd(instance, value) {
@@ -569,14 +554,14 @@ function extractSet(instance) {
569
554
  try {
570
555
  return instance.set;
571
556
  } catch (err) {
572
- return void 0;
557
+ return;
573
558
  }
574
559
  }
575
560
  function extractGet(instance) {
576
561
  try {
577
562
  return instance.get;
578
563
  } catch (err) {
579
- return void 0;
564
+ return;
580
565
  }
581
566
  }
582
567
  function safeSet(instance, key, value) {
@@ -593,14 +578,14 @@ function extractMapSet(instance) {
593
578
  try {
594
579
  return instance.set;
595
580
  } catch (err) {
596
- return void 0;
581
+ return;
597
582
  }
598
583
  }
599
584
  function extractMapGet(instance) {
600
585
  try {
601
586
  return instance.get;
602
587
  } catch (err) {
603
- return void 0;
588
+ return;
604
589
  }
605
590
  }
606
591
  function safeMapSet(instance, key, value) {
@@ -612,12 +597,12 @@ function safeMapGet(instance, key) {
612
597
  return safeApply(untouchedMapGet, instance, [key]);
613
598
  }
614
599
  const untouchedSplit = String.prototype.split;
615
- const untouchedStartsWith = String.prototype.startsWith;
616
- const untouchedEndsWith = String.prototype.endsWith;
600
+ String.prototype.startsWith;
601
+ String.prototype.endsWith;
617
602
  const untouchedSubstring = String.prototype.substring;
618
- const untouchedToLowerCase = String.prototype.toLowerCase;
619
- const untouchedToUpperCase = String.prototype.toUpperCase;
620
- const untouchedPadStart = String.prototype.padStart;
603
+ String.prototype.toLowerCase;
604
+ String.prototype.toUpperCase;
605
+ String.prototype.padStart;
621
606
  const untouchedCharCodeAt = String.prototype.charCodeAt;
622
607
  const untouchedNormalize = String.prototype.normalize;
623
608
  const untouchedReplace = String.prototype.replace;
@@ -625,35 +610,35 @@ function extractSplit(instance) {
625
610
  try {
626
611
  return instance.split;
627
612
  } catch (err) {
628
- return void 0;
613
+ return;
629
614
  }
630
615
  }
631
616
  function extractSubstring(instance) {
632
617
  try {
633
618
  return instance.substring;
634
619
  } catch (err) {
635
- return void 0;
620
+ return;
636
621
  }
637
622
  }
638
623
  function extractCharCodeAt(instance) {
639
624
  try {
640
625
  return instance.charCodeAt;
641
626
  } catch (err) {
642
- return void 0;
627
+ return;
643
628
  }
644
629
  }
645
630
  function extractNormalize(instance) {
646
631
  try {
647
632
  return instance.normalize;
648
633
  } catch (err) {
649
- return void 0;
634
+ return;
650
635
  }
651
636
  }
652
637
  function extractReplace(instance) {
653
638
  try {
654
639
  return instance.replace;
655
640
  } catch (err) {
656
- return void 0;
641
+ return;
657
642
  }
658
643
  }
659
644
  function safeSplit(instance, ...args) {
@@ -676,7 +661,7 @@ function safeReplace(instance, pattern, replacement) {
676
661
  if (extractReplace(instance) === untouchedReplace) return instance.replace(pattern, replacement);
677
662
  return safeApply(untouchedReplace, instance, [pattern, replacement]);
678
663
  }
679
- const untouchedNumberToString = Number.prototype.toString;
664
+ Number.prototype.toString;
680
665
  const untouchedHasOwnProperty = Object.prototype.hasOwnProperty;
681
666
  const untouchedToString = Object.prototype.toString;
682
667
  function safeHasOwnProperty(instance, v) {
@@ -685,7 +670,6 @@ function safeHasOwnProperty(instance, v) {
685
670
  function safeToString(instance) {
686
671
  return safeApply(untouchedToString, instance, []);
687
672
  }
688
-
689
673
  //#endregion
690
674
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/stream/LazyIterableIterator.js
691
675
  var LazyIterableIterator = class {
@@ -704,7 +688,6 @@ var LazyIterableIterator = class {
704
688
  function makeLazy(producer) {
705
689
  return new LazyIterableIterator(producer);
706
690
  }
707
-
708
691
  //#endregion
709
692
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/TupleArbitrary.js
710
693
  const safeArrayIsArray$2 = Array.isArray;
@@ -734,7 +717,7 @@ function tupleShrink(arbs, value, context) {
734
717
  const shrinks = [];
735
718
  const safeContext = safeArrayIsArray$2(context) ? context : [];
736
719
  for (let idx = 0; idx !== arbs.length; ++idx) safePush(shrinks, makeLazy(() => arbs[idx].shrink(value[idx], safeContext[idx]).map((v) => {
737
- const nextValues = safeMap(value, (v$1, idx$1) => new Value(cloneIfNeeded(v$1), safeContext[idx$1]));
720
+ const nextValues = safeMap(value, (v, idx) => new Value(cloneIfNeeded(v), safeContext[idx]));
738
721
  return [
739
722
  ...safeSlice(nextValues, 0, idx),
740
723
  v,
@@ -766,27 +749,23 @@ var TupleArbitrary = class extends Arbitrary {
766
749
  return tupleShrink(this.arbs, value, context);
767
750
  }
768
751
  };
769
-
770
752
  //#endregion
771
753
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/tuple.js
772
754
  function tuple(...arbs) {
773
755
  return new TupleArbitrary(arbs);
774
756
  }
775
-
776
757
  //#endregion
777
758
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/IRawProperty.js
778
759
  const safeMathLog$2 = Math.log;
779
760
  function runIdToFrequency(runId) {
780
761
  return 2 + ~~(safeMathLog$2(runId + 1) * .4342944819032518);
781
762
  }
782
-
783
763
  //#endregion
784
764
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/configuration/GlobalParameters.js
785
765
  let globalParameters = {};
786
766
  function readConfigureGlobal() {
787
767
  return globalParameters;
788
768
  }
789
-
790
769
  //#endregion
791
770
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/NoUndefinedAsContext.js
792
771
  const UndefinedContextPlaceholder = Symbol("UndefinedContextPlaceholder");
@@ -795,7 +774,6 @@ function noUndefinedAsContext(value) {
795
774
  if (value.hasToBeCloned) return new Value(value.value_, UndefinedContextPlaceholder, () => value.value);
796
775
  return new Value(value.value_, UndefinedContextPlaceholder);
797
776
  }
798
-
799
777
  //#endregion
800
778
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/AlwaysShrinkableArbitrary.js
801
779
  var AlwaysShrinkableArbitrary = class extends Arbitrary {
@@ -804,8 +782,7 @@ var AlwaysShrinkableArbitrary = class extends Arbitrary {
804
782
  this.arb = arb;
805
783
  }
806
784
  generate(mrng, biasFactor) {
807
- const value = this.arb.generate(mrng, biasFactor);
808
- return noUndefinedAsContext(value);
785
+ return noUndefinedAsContext(this.arb.generate(mrng, biasFactor));
809
786
  }
810
787
  canShrinkWithoutContext(value) {
811
788
  return true;
@@ -816,7 +793,6 @@ var AlwaysShrinkableArbitrary = class extends Arbitrary {
816
793
  return this.arb.shrink(value, safeContext).map(noUndefinedAsContext);
817
794
  }
818
795
  };
819
-
820
796
  //#endregion
821
797
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/Property.generic.js
822
798
  var Property = class Property {
@@ -833,8 +809,7 @@ var Property = class Property {
833
809
  return false;
834
810
  }
835
811
  generate(mrng, runId) {
836
- const value = this.arb.generate(mrng, runId != null ? runIdToFrequency(runId) : void 0);
837
- return noUndefinedAsContext(value);
812
+ return noUndefinedAsContext(this.arb.generate(mrng, runId != null ? runIdToFrequency(runId) : void 0));
838
813
  }
839
814
  shrink(value) {
840
815
  if (value.context === void 0 && !this.arb.canShrinkWithoutContext(value.value_)) return Stream.nil();
@@ -881,7 +856,6 @@ var Property = class Property {
881
856
  }
882
857
  };
883
858
  Property.dummyHook = () => {};
884
-
885
859
  //#endregion
886
860
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/Property.js
887
861
  function property(...args) {
@@ -889,10 +863,8 @@ function property(...args) {
889
863
  const arbs = safeSlice(args, 0, args.length - 1);
890
864
  const p = args[args.length - 1];
891
865
  safeForEach(arbs, assertIsArbitrary);
892
- const mappedArbs = safeMap(arbs, (arb) => new AlwaysShrinkableArbitrary(arb));
893
- return new Property(tuple(...mappedArbs), (t) => p(...t));
866
+ return new Property(tuple(...safeMap(arbs, (arb) => new AlwaysShrinkableArbitrary(arb))), (t) => p(...t));
894
867
  }
895
-
896
868
  //#endregion
897
869
  //#region ../../node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/RandomGenerator.js
898
870
  function unsafeGenerateN(rng, num) {
@@ -902,8 +874,7 @@ function unsafeGenerateN(rng, num) {
902
874
  }
903
875
  function generateN(rng, num) {
904
876
  var nextRng = rng.clone();
905
- var out = unsafeGenerateN(nextRng, num);
906
- return [out, nextRng];
877
+ return [unsafeGenerateN(nextRng, num), nextRng];
907
878
  }
908
879
  function unsafeSkipN(rng, num) {
909
880
  for (var idx = 0; idx != num; ++idx) rng.unsafeNext();
@@ -913,7 +884,6 @@ function skipN(rng, num) {
913
884
  unsafeSkipN(nextRng, num);
914
885
  return nextRng;
915
886
  }
916
-
917
887
  //#endregion
918
888
  //#region ../../node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/LinearCongruential.js
919
889
  var MULTIPLIER = 214013;
@@ -927,44 +897,39 @@ var computeValueFromNextSeed = function(nextseed) {
927
897
  return (nextseed & MASK_2) >> 16;
928
898
  };
929
899
  var LinearCongruential32 = function() {
930
- function LinearCongruential32$1(seed) {
900
+ function LinearCongruential32(seed) {
931
901
  this.seed = seed;
932
902
  }
933
- LinearCongruential32$1.prototype.clone = function() {
934
- return new LinearCongruential32$1(this.seed);
903
+ LinearCongruential32.prototype.clone = function() {
904
+ return new LinearCongruential32(this.seed);
935
905
  };
936
- LinearCongruential32$1.prototype.next = function() {
937
- var nextRng = new LinearCongruential32$1(this.seed);
938
- var out = nextRng.unsafeNext();
939
- return [out, nextRng];
906
+ LinearCongruential32.prototype.next = function() {
907
+ var nextRng = new LinearCongruential32(this.seed);
908
+ return [nextRng.unsafeNext(), nextRng];
940
909
  };
941
- LinearCongruential32$1.prototype.unsafeNext = function() {
910
+ LinearCongruential32.prototype.unsafeNext = function() {
942
911
  var s1 = computeNextSeed(this.seed);
943
912
  var v1 = computeValueFromNextSeed(s1);
944
913
  var s2 = computeNextSeed(s1);
945
914
  var v2 = computeValueFromNextSeed(s2);
946
915
  this.seed = computeNextSeed(s2);
947
- var v3 = computeValueFromNextSeed(this.seed);
948
- var vnext = v3 + (v2 + (v1 << 15) << 15);
949
- return vnext | 0;
916
+ return computeValueFromNextSeed(this.seed) + (v2 + (v1 << 15) << 15) | 0;
950
917
  };
951
- LinearCongruential32$1.prototype.getState = function() {
918
+ LinearCongruential32.prototype.getState = function() {
952
919
  return [this.seed];
953
920
  };
954
- return LinearCongruential32$1;
921
+ return LinearCongruential32;
955
922
  }();
956
923
  function fromState$3(state) {
957
- var valid = state.length === 1;
958
- if (!valid) throw new Error("The state must have been produced by a congruential32 RandomGenerator");
924
+ if (!(state.length === 1)) throw new Error("The state must have been produced by a congruential32 RandomGenerator");
959
925
  return new LinearCongruential32(state[0]);
960
926
  }
961
927
  var congruential32 = Object.assign(function(seed) {
962
928
  return new LinearCongruential32(seed);
963
929
  }, { fromState: fromState$3 });
964
-
965
930
  //#endregion
966
931
  //#region ../../node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/MersenneTwister.js
967
- var __read = void 0 && (void 0).__read || function(o, n) {
932
+ var __read = function(o, n) {
968
933
  var m = typeof Symbol === "function" && o[Symbol.iterator];
969
934
  if (!m) return o;
970
935
  var i = m.call(o), r, ar = [], e;
@@ -981,7 +946,7 @@ var __read = void 0 && (void 0).__read || function(o, n) {
981
946
  }
982
947
  return ar;
983
948
  };
984
- var __spreadArray = void 0 && (void 0).__spreadArray || function(to, from, pack) {
949
+ var __spreadArray = function(to, from, pack) {
985
950
  if (pack || arguments.length === 2) {
986
951
  for (var i = 0, l = from.length, ar; i < l; i++) if (ar || !(i in from)) {
987
952
  if (!ar) ar = Array.prototype.slice.call(from, 0, i);
@@ -991,78 +956,76 @@ var __spreadArray = void 0 && (void 0).__spreadArray || function(to, from, pack)
991
956
  return to.concat(ar || Array.prototype.slice.call(from));
992
957
  };
993
958
  var MersenneTwister = function() {
994
- function MersenneTwister$1(states, index) {
959
+ function MersenneTwister(states, index) {
995
960
  this.states = states;
996
961
  this.index = index;
997
962
  }
998
- MersenneTwister$1.twist = function(prev) {
963
+ MersenneTwister.twist = function(prev) {
999
964
  var mt = prev.slice();
1000
- for (var idx = 0; idx !== MersenneTwister$1.N - MersenneTwister$1.M; ++idx) {
1001
- var y_1 = (mt[idx] & MersenneTwister$1.MASK_UPPER) + (mt[idx + 1] & MersenneTwister$1.MASK_LOWER);
1002
- mt[idx] = mt[idx + MersenneTwister$1.M] ^ y_1 >>> 1 ^ -(y_1 & 1) & MersenneTwister$1.A;
965
+ for (var idx = 0; idx !== MersenneTwister.N - MersenneTwister.M; ++idx) {
966
+ var y_1 = (mt[idx] & MersenneTwister.MASK_UPPER) + (mt[idx + 1] & MersenneTwister.MASK_LOWER);
967
+ mt[idx] = mt[idx + MersenneTwister.M] ^ y_1 >>> 1 ^ -(y_1 & 1) & MersenneTwister.A;
1003
968
  }
1004
- for (var idx = MersenneTwister$1.N - MersenneTwister$1.M; idx !== MersenneTwister$1.N - 1; ++idx) {
1005
- var y_2 = (mt[idx] & MersenneTwister$1.MASK_UPPER) + (mt[idx + 1] & MersenneTwister$1.MASK_LOWER);
1006
- mt[idx] = mt[idx + MersenneTwister$1.M - MersenneTwister$1.N] ^ y_2 >>> 1 ^ -(y_2 & 1) & MersenneTwister$1.A;
969
+ for (var idx = MersenneTwister.N - MersenneTwister.M; idx !== MersenneTwister.N - 1; ++idx) {
970
+ var y_2 = (mt[idx] & MersenneTwister.MASK_UPPER) + (mt[idx + 1] & MersenneTwister.MASK_LOWER);
971
+ mt[idx] = mt[idx + MersenneTwister.M - MersenneTwister.N] ^ y_2 >>> 1 ^ -(y_2 & 1) & MersenneTwister.A;
1007
972
  }
1008
- var y = (mt[MersenneTwister$1.N - 1] & MersenneTwister$1.MASK_UPPER) + (mt[0] & MersenneTwister$1.MASK_LOWER);
1009
- mt[MersenneTwister$1.N - 1] = mt[MersenneTwister$1.M - 1] ^ y >>> 1 ^ -(y & 1) & MersenneTwister$1.A;
973
+ var y = (mt[MersenneTwister.N - 1] & MersenneTwister.MASK_UPPER) + (mt[0] & MersenneTwister.MASK_LOWER);
974
+ mt[MersenneTwister.N - 1] = mt[MersenneTwister.M - 1] ^ y >>> 1 ^ -(y & 1) & MersenneTwister.A;
1010
975
  return mt;
1011
976
  };
1012
- MersenneTwister$1.seeded = function(seed) {
1013
- var out = Array(MersenneTwister$1.N);
977
+ MersenneTwister.seeded = function(seed) {
978
+ var out = Array(MersenneTwister.N);
1014
979
  out[0] = seed;
1015
- for (var idx = 1; idx !== MersenneTwister$1.N; ++idx) {
980
+ for (var idx = 1; idx !== MersenneTwister.N; ++idx) {
1016
981
  var xored = out[idx - 1] ^ out[idx - 1] >>> 30;
1017
- out[idx] = Math.imul(MersenneTwister$1.F, xored) + idx | 0;
982
+ out[idx] = Math.imul(MersenneTwister.F, xored) + idx | 0;
1018
983
  }
1019
984
  return out;
1020
985
  };
1021
- MersenneTwister$1.from = function(seed) {
1022
- return new MersenneTwister$1(MersenneTwister$1.twist(MersenneTwister$1.seeded(seed)), 0);
986
+ MersenneTwister.from = function(seed) {
987
+ return new MersenneTwister(MersenneTwister.twist(MersenneTwister.seeded(seed)), 0);
1023
988
  };
1024
- MersenneTwister$1.prototype.clone = function() {
1025
- return new MersenneTwister$1(this.states, this.index);
989
+ MersenneTwister.prototype.clone = function() {
990
+ return new MersenneTwister(this.states, this.index);
1026
991
  };
1027
- MersenneTwister$1.prototype.next = function() {
1028
- var nextRng = new MersenneTwister$1(this.states, this.index);
1029
- var out = nextRng.unsafeNext();
1030
- return [out, nextRng];
992
+ MersenneTwister.prototype.next = function() {
993
+ var nextRng = new MersenneTwister(this.states, this.index);
994
+ return [nextRng.unsafeNext(), nextRng];
1031
995
  };
1032
- MersenneTwister$1.prototype.unsafeNext = function() {
996
+ MersenneTwister.prototype.unsafeNext = function() {
1033
997
  var y = this.states[this.index];
1034
- y ^= this.states[this.index] >>> MersenneTwister$1.U;
1035
- y ^= y << MersenneTwister$1.S & MersenneTwister$1.B;
1036
- y ^= y << MersenneTwister$1.T & MersenneTwister$1.C;
1037
- y ^= y >>> MersenneTwister$1.L;
1038
- if (++this.index >= MersenneTwister$1.N) {
1039
- this.states = MersenneTwister$1.twist(this.states);
998
+ y ^= this.states[this.index] >>> MersenneTwister.U;
999
+ y ^= y << MersenneTwister.S & MersenneTwister.B;
1000
+ y ^= y << MersenneTwister.T & MersenneTwister.C;
1001
+ y ^= y >>> MersenneTwister.L;
1002
+ if (++this.index >= MersenneTwister.N) {
1003
+ this.states = MersenneTwister.twist(this.states);
1040
1004
  this.index = 0;
1041
1005
  }
1042
1006
  return y;
1043
1007
  };
1044
- MersenneTwister$1.prototype.getState = function() {
1008
+ MersenneTwister.prototype.getState = function() {
1045
1009
  return __spreadArray([this.index], __read(this.states), false);
1046
1010
  };
1047
- MersenneTwister$1.fromState = function(state) {
1048
- var valid = state.length === MersenneTwister$1.N + 1 && state[0] >= 0 && state[0] < MersenneTwister$1.N;
1049
- if (!valid) throw new Error("The state must have been produced by a mersenne RandomGenerator");
1050
- return new MersenneTwister$1(state.slice(1), state[0]);
1011
+ MersenneTwister.fromState = function(state) {
1012
+ if (!(state.length === MersenneTwister.N + 1 && state[0] >= 0 && state[0] < MersenneTwister.N)) throw new Error("The state must have been produced by a mersenne RandomGenerator");
1013
+ return new MersenneTwister(state.slice(1), state[0]);
1051
1014
  };
1052
- MersenneTwister$1.N = 624;
1053
- MersenneTwister$1.M = 397;
1054
- MersenneTwister$1.R = 31;
1055
- MersenneTwister$1.A = 2567483615;
1056
- MersenneTwister$1.F = 1812433253;
1057
- MersenneTwister$1.U = 11;
1058
- MersenneTwister$1.S = 7;
1059
- MersenneTwister$1.B = 2636928640;
1060
- MersenneTwister$1.T = 15;
1061
- MersenneTwister$1.C = 4022730752;
1062
- MersenneTwister$1.L = 18;
1063
- MersenneTwister$1.MASK_LOWER = Math.pow(2, MersenneTwister$1.R) - 1;
1064
- MersenneTwister$1.MASK_UPPER = Math.pow(2, MersenneTwister$1.R);
1065
- return MersenneTwister$1;
1015
+ MersenneTwister.N = 624;
1016
+ MersenneTwister.M = 397;
1017
+ MersenneTwister.R = 31;
1018
+ MersenneTwister.A = 2567483615;
1019
+ MersenneTwister.F = 1812433253;
1020
+ MersenneTwister.U = 11;
1021
+ MersenneTwister.S = 7;
1022
+ MersenneTwister.B = 2636928640;
1023
+ MersenneTwister.T = 15;
1024
+ MersenneTwister.C = 4022730752;
1025
+ MersenneTwister.L = 18;
1026
+ MersenneTwister.MASK_LOWER = Math.pow(2, MersenneTwister.R) - 1;
1027
+ MersenneTwister.MASK_UPPER = Math.pow(2, MersenneTwister.R);
1028
+ return MersenneTwister;
1066
1029
  }();
1067
1030
  function fromState$2(state) {
1068
1031
  return MersenneTwister.fromState(state);
@@ -1070,25 +1033,23 @@ function fromState$2(state) {
1070
1033
  var MersenneTwister_default = Object.assign(function(seed) {
1071
1034
  return MersenneTwister.from(seed);
1072
1035
  }, { fromState: fromState$2 });
1073
-
1074
1036
  //#endregion
1075
1037
  //#region ../../node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/XorShift.js
1076
1038
  var XorShift128Plus = function() {
1077
- function XorShift128Plus$1(s01, s00, s11, s10) {
1039
+ function XorShift128Plus(s01, s00, s11, s10) {
1078
1040
  this.s01 = s01;
1079
1041
  this.s00 = s00;
1080
1042
  this.s11 = s11;
1081
1043
  this.s10 = s10;
1082
1044
  }
1083
- XorShift128Plus$1.prototype.clone = function() {
1084
- return new XorShift128Plus$1(this.s01, this.s00, this.s11, this.s10);
1045
+ XorShift128Plus.prototype.clone = function() {
1046
+ return new XorShift128Plus(this.s01, this.s00, this.s11, this.s10);
1085
1047
  };
1086
- XorShift128Plus$1.prototype.next = function() {
1087
- var nextRng = new XorShift128Plus$1(this.s01, this.s00, this.s11, this.s10);
1088
- var out = nextRng.unsafeNext();
1089
- return [out, nextRng];
1048
+ XorShift128Plus.prototype.next = function() {
1049
+ var nextRng = new XorShift128Plus(this.s01, this.s00, this.s11, this.s10);
1050
+ return [nextRng.unsafeNext(), nextRng];
1090
1051
  };
1091
- XorShift128Plus$1.prototype.unsafeNext = function() {
1052
+ XorShift128Plus.prototype.unsafeNext = function() {
1092
1053
  var a0 = this.s00 ^ this.s00 << 23;
1093
1054
  var a1 = this.s01 ^ (this.s01 << 23 | this.s00 >>> 9);
1094
1055
  var b0 = a0 ^ this.s10 ^ (a0 >>> 18 | a1 << 14) ^ (this.s10 >>> 5 | this.s11 << 27);
@@ -1100,12 +1061,12 @@ var XorShift128Plus = function() {
1100
1061
  this.s10 = b0;
1101
1062
  return out;
1102
1063
  };
1103
- XorShift128Plus$1.prototype.jump = function() {
1104
- var nextRng = new XorShift128Plus$1(this.s01, this.s00, this.s11, this.s10);
1064
+ XorShift128Plus.prototype.jump = function() {
1065
+ var nextRng = new XorShift128Plus(this.s01, this.s00, this.s11, this.s10);
1105
1066
  nextRng.unsafeJump();
1106
1067
  return nextRng;
1107
1068
  };
1108
- XorShift128Plus$1.prototype.unsafeJump = function() {
1069
+ XorShift128Plus.prototype.unsafeJump = function() {
1109
1070
  var ns01 = 0;
1110
1071
  var ns00 = 0;
1111
1072
  var ns11 = 0;
@@ -1130,7 +1091,7 @@ var XorShift128Plus = function() {
1130
1091
  this.s11 = ns11;
1131
1092
  this.s10 = ns10;
1132
1093
  };
1133
- XorShift128Plus$1.prototype.getState = function() {
1094
+ XorShift128Plus.prototype.getState = function() {
1134
1095
  return [
1135
1096
  this.s01,
1136
1097
  this.s00,
@@ -1138,35 +1099,32 @@ var XorShift128Plus = function() {
1138
1099
  this.s10
1139
1100
  ];
1140
1101
  };
1141
- return XorShift128Plus$1;
1102
+ return XorShift128Plus;
1142
1103
  }();
1143
1104
  function fromState$1(state) {
1144
- var valid = state.length === 4;
1145
- if (!valid) throw new Error("The state must have been produced by a xorshift128plus RandomGenerator");
1105
+ if (!(state.length === 4)) throw new Error("The state must have been produced by a xorshift128plus RandomGenerator");
1146
1106
  return new XorShift128Plus(state[0], state[1], state[2], state[3]);
1147
1107
  }
1148
1108
  var xorshift128plus = Object.assign(function(seed) {
1149
1109
  return new XorShift128Plus(-1, ~seed, seed | 0, 0);
1150
1110
  }, { fromState: fromState$1 });
1151
-
1152
1111
  //#endregion
1153
1112
  //#region ../../node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/generator/XoroShiro.js
1154
1113
  var XoroShiro128Plus = function() {
1155
- function XoroShiro128Plus$1(s01, s00, s11, s10) {
1114
+ function XoroShiro128Plus(s01, s00, s11, s10) {
1156
1115
  this.s01 = s01;
1157
1116
  this.s00 = s00;
1158
1117
  this.s11 = s11;
1159
1118
  this.s10 = s10;
1160
1119
  }
1161
- XoroShiro128Plus$1.prototype.clone = function() {
1162
- return new XoroShiro128Plus$1(this.s01, this.s00, this.s11, this.s10);
1120
+ XoroShiro128Plus.prototype.clone = function() {
1121
+ return new XoroShiro128Plus(this.s01, this.s00, this.s11, this.s10);
1163
1122
  };
1164
- XoroShiro128Plus$1.prototype.next = function() {
1165
- var nextRng = new XoroShiro128Plus$1(this.s01, this.s00, this.s11, this.s10);
1166
- var out = nextRng.unsafeNext();
1167
- return [out, nextRng];
1123
+ XoroShiro128Plus.prototype.next = function() {
1124
+ var nextRng = new XoroShiro128Plus(this.s01, this.s00, this.s11, this.s10);
1125
+ return [nextRng.unsafeNext(), nextRng];
1168
1126
  };
1169
- XoroShiro128Plus$1.prototype.unsafeNext = function() {
1127
+ XoroShiro128Plus.prototype.unsafeNext = function() {
1170
1128
  var out = this.s00 + this.s10 | 0;
1171
1129
  var a0 = this.s10 ^ this.s00;
1172
1130
  var a1 = this.s11 ^ this.s01;
@@ -1178,12 +1136,12 @@ var XoroShiro128Plus = function() {
1178
1136
  this.s11 = a0 << 5 ^ a1 >>> 27;
1179
1137
  return out;
1180
1138
  };
1181
- XoroShiro128Plus$1.prototype.jump = function() {
1182
- var nextRng = new XoroShiro128Plus$1(this.s01, this.s00, this.s11, this.s10);
1139
+ XoroShiro128Plus.prototype.jump = function() {
1140
+ var nextRng = new XoroShiro128Plus(this.s01, this.s00, this.s11, this.s10);
1183
1141
  nextRng.unsafeJump();
1184
1142
  return nextRng;
1185
1143
  };
1186
- XoroShiro128Plus$1.prototype.unsafeJump = function() {
1144
+ XoroShiro128Plus.prototype.unsafeJump = function() {
1187
1145
  var ns01 = 0;
1188
1146
  var ns00 = 0;
1189
1147
  var ns11 = 0;
@@ -1208,7 +1166,7 @@ var XoroShiro128Plus = function() {
1208
1166
  this.s11 = ns11;
1209
1167
  this.s10 = ns10;
1210
1168
  };
1211
- XoroShiro128Plus$1.prototype.getState = function() {
1169
+ XoroShiro128Plus.prototype.getState = function() {
1212
1170
  return [
1213
1171
  this.s01,
1214
1172
  this.s00,
@@ -1216,17 +1174,15 @@ var XoroShiro128Plus = function() {
1216
1174
  this.s10
1217
1175
  ];
1218
1176
  };
1219
- return XoroShiro128Plus$1;
1177
+ return XoroShiro128Plus;
1220
1178
  }();
1221
1179
  function fromState(state) {
1222
- var valid = state.length === 4;
1223
- if (!valid) throw new Error("The state must have been produced by a xoroshiro128plus RandomGenerator");
1180
+ if (!(state.length === 4)) throw new Error("The state must have been produced by a xoroshiro128plus RandomGenerator");
1224
1181
  return new XoroShiro128Plus(state[0], state[1], state[2], state[3]);
1225
1182
  }
1226
1183
  var xoroshiro128plus = Object.assign(function(seed) {
1227
1184
  return new XoroShiro128Plus(-1, ~seed, seed | 0, 0);
1228
1185
  }, { fromState });
1229
-
1230
1186
  //#endregion
1231
1187
  //#region ../../node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/internals/ArrayInt.js
1232
1188
  function addArrayIntToNew(arrayIntA, arrayIntB) {
@@ -1239,9 +1195,7 @@ function addArrayIntToNew(arrayIntA, arrayIntB) {
1239
1195
  var dataA = arrayIntA.data;
1240
1196
  var dataB = arrayIntB.data;
1241
1197
  for (var indexA = dataA.length - 1, indexB = dataB.length - 1; indexA >= 0 || indexB >= 0; --indexA, --indexB) {
1242
- var vA = indexA >= 0 ? dataA[indexA] : 0;
1243
- var vB = indexB >= 0 ? dataB[indexB] : 0;
1244
- var current = vA + vB + reminder;
1198
+ var current = (indexA >= 0 ? dataA[indexA] : 0) + (indexB >= 0 ? dataB[indexB] : 0) + reminder;
1245
1199
  data.push(current >>> 0);
1246
1200
  reminder = ~~(current / 4294967296);
1247
1201
  }
@@ -1289,9 +1243,7 @@ function substractArrayIntToNew(arrayIntA, arrayIntB) {
1289
1243
  var data = [];
1290
1244
  var reminder = 0;
1291
1245
  for (var indexA = dataA.length - 1, indexB = dataB.length - 1; indexA >= 0 || indexB >= 0; --indexA, --indexB) {
1292
- var vA = indexA >= 0 ? dataA[indexA] : 0;
1293
- var vB = indexB >= 0 ? dataB[indexB] : 0;
1294
- var current = vA - vB - reminder;
1246
+ var current = (indexA >= 0 ? dataA[indexA] : 0) - (indexB >= 0 ? dataB[indexB] : 0) - reminder;
1295
1247
  data.push(current >>> 0);
1296
1248
  reminder = current < 0 ? 1 : 0;
1297
1249
  }
@@ -1360,7 +1312,6 @@ function substractArrayInt64(out, arrayIntA, arrayIntB) {
1360
1312
  out.data[1] = low;
1361
1313
  return out;
1362
1314
  }
1363
-
1364
1315
  //#endregion
1365
1316
  //#region ../../node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/internals/UnsafeUniformIntDistributionInternal.js
1366
1317
  function unsafeUniformIntDistributionInternal(rangeSize, rng) {
@@ -1369,17 +1320,12 @@ function unsafeUniformIntDistributionInternal(rangeSize, rng) {
1369
1320
  while (deltaV >= MaxAllowed) deltaV = rng.unsafeNext() + 2147483648;
1370
1321
  return deltaV % rangeSize;
1371
1322
  }
1372
-
1373
1323
  //#endregion
1374
1324
  //#region ../../node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/internals/UnsafeUniformArrayIntDistributionInternal.js
1375
1325
  function unsafeUniformArrayIntDistributionInternal(out, rangeSize, rng) {
1376
1326
  var rangeLength = rangeSize.length;
1377
1327
  while (true) {
1378
- for (var index = 0; index !== rangeLength; ++index) {
1379
- var indexRangeSize = index === 0 ? rangeSize[0] + 1 : 4294967296;
1380
- var g = unsafeUniformIntDistributionInternal(indexRangeSize, rng);
1381
- out[index] = g;
1382
- }
1328
+ for (var index = 0; index !== rangeLength; ++index) out[index] = unsafeUniformIntDistributionInternal(index === 0 ? rangeSize[0] + 1 : 4294967296, rng);
1383
1329
  for (var index = 0; index !== rangeLength; ++index) {
1384
1330
  var current = out[index];
1385
1331
  var currentInRange = rangeSize[index];
@@ -1388,19 +1334,15 @@ function unsafeUniformArrayIntDistributionInternal(out, rangeSize, rng) {
1388
1334
  }
1389
1335
  }
1390
1336
  }
1391
-
1392
1337
  //#endregion
1393
1338
  //#region ../../node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UnsafeUniformArrayIntDistribution.js
1394
1339
  function unsafeUniformArrayIntDistribution(from, to, rng) {
1395
1340
  var rangeSize = trimArrayIntInplace(addOneToPositiveArrayInt(substractArrayIntToNew(to, from)));
1396
- var emptyArrayIntData = rangeSize.data.slice(0);
1397
- var g = unsafeUniformArrayIntDistributionInternal(emptyArrayIntData, rangeSize.data, rng);
1398
1341
  return trimArrayIntInplace(addArrayIntToNew({
1399
1342
  sign: 1,
1400
- data: g
1343
+ data: unsafeUniformArrayIntDistributionInternal(rangeSize.data.slice(0), rangeSize.data, rng)
1401
1344
  }, from));
1402
1345
  }
1403
-
1404
1346
  //#endregion
1405
1347
  //#region ../../node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UniformArrayIntDistribution.js
1406
1348
  function uniformArrayIntDistribution(from, to, rng) {
@@ -1408,19 +1350,18 @@ function uniformArrayIntDistribution(from, to, rng) {
1408
1350
  var nextRng = rng.clone();
1409
1351
  return [unsafeUniformArrayIntDistribution(from, to, nextRng), nextRng];
1410
1352
  }
1411
- return function(rng$1) {
1412
- var nextRng$1 = rng$1.clone();
1413
- return [unsafeUniformArrayIntDistribution(from, to, nextRng$1), nextRng$1];
1353
+ return function(rng) {
1354
+ var nextRng = rng.clone();
1355
+ return [unsafeUniformArrayIntDistribution(from, to, nextRng), nextRng];
1414
1356
  };
1415
1357
  }
1416
-
1417
1358
  //#endregion
1418
1359
  //#region ../../node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UnsafeUniformBigIntDistribution.js
1419
- var SBigInt$1 = typeof BigInt !== "undefined" ? BigInt : void 0;
1360
+ var SBigInt = typeof BigInt !== "undefined" ? BigInt : void 0;
1420
1361
  function unsafeUniformBigIntDistribution(from, to, rng) {
1421
- var diff = to - from + SBigInt$1(1);
1422
- var MinRng = SBigInt$1(-2147483648);
1423
- var NumValues = SBigInt$1(4294967296);
1362
+ var diff = to - from + SBigInt(1);
1363
+ var MinRng = SBigInt(-2147483648);
1364
+ var NumValues = SBigInt(4294967296);
1424
1365
  var FinalNumValues = NumValues;
1425
1366
  var NumIterations = 1;
1426
1367
  while (FinalNumValues < diff) {
@@ -1429,18 +1370,14 @@ function unsafeUniformBigIntDistribution(from, to, rng) {
1429
1370
  }
1430
1371
  var MaxAcceptedRandom = FinalNumValues - FinalNumValues % diff;
1431
1372
  while (true) {
1432
- var value = SBigInt$1(0);
1373
+ var value = SBigInt(0);
1433
1374
  for (var num = 0; num !== NumIterations; ++num) {
1434
1375
  var out = rng.unsafeNext();
1435
- value = NumValues * value + (SBigInt$1(out) - MinRng);
1436
- }
1437
- if (value < MaxAcceptedRandom) {
1438
- var inDiff = value % diff;
1439
- return inDiff + from;
1376
+ value = NumValues * value + (SBigInt(out) - MinRng);
1440
1377
  }
1378
+ if (value < MaxAcceptedRandom) return value % diff + from;
1441
1379
  }
1442
1380
  }
1443
-
1444
1381
  //#endregion
1445
1382
  //#region ../../node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UniformBigIntDistribution.js
1446
1383
  function uniformBigIntDistribution(from, to, rng) {
@@ -1448,12 +1385,11 @@ function uniformBigIntDistribution(from, to, rng) {
1448
1385
  var nextRng = rng.clone();
1449
1386
  return [unsafeUniformBigIntDistribution(from, to, nextRng), nextRng];
1450
1387
  }
1451
- return function(rng$1) {
1452
- var nextRng$1 = rng$1.clone();
1453
- return [unsafeUniformBigIntDistribution(from, to, nextRng$1), nextRng$1];
1388
+ return function(rng) {
1389
+ var nextRng = rng.clone();
1390
+ return [unsafeUniformBigIntDistribution(from, to, nextRng), nextRng];
1454
1391
  };
1455
1392
  }
1456
-
1457
1393
  //#endregion
1458
1394
  //#region ../../node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UnsafeUniformIntDistribution.js
1459
1395
  var safeNumberMaxSafeInteger = Number.MAX_SAFE_INTEGER;
@@ -1481,13 +1417,9 @@ function uniformLargeIntInternal(from, to, rangeSize, rng) {
1481
1417
  }
1482
1418
  function unsafeUniformIntDistribution(from, to, rng) {
1483
1419
  var rangeSize = to - from;
1484
- if (rangeSize <= 4294967295) {
1485
- var g = unsafeUniformIntDistributionInternal(rangeSize + 1, rng);
1486
- return g + from;
1487
- }
1420
+ if (rangeSize <= 4294967295) return unsafeUniformIntDistributionInternal(rangeSize + 1, rng) + from;
1488
1421
  return uniformLargeIntInternal(from, to, rangeSize, rng);
1489
1422
  }
1490
-
1491
1423
  //#endregion
1492
1424
  //#region ../../node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/distribution/UniformIntDistribution.js
1493
1425
  function uniformIntDistribution(from, to, rng) {
@@ -1495,16 +1427,14 @@ function uniformIntDistribution(from, to, rng) {
1495
1427
  var nextRng = rng.clone();
1496
1428
  return [unsafeUniformIntDistribution(from, to, nextRng), nextRng];
1497
1429
  }
1498
- return function(rng$1) {
1499
- var nextRng$1 = rng$1.clone();
1500
- return [unsafeUniformIntDistribution(from, to, nextRng$1), nextRng$1];
1430
+ return function(rng) {
1431
+ var nextRng = rng.clone();
1432
+ return [unsafeUniformIntDistribution(from, to, nextRng), nextRng];
1501
1433
  };
1502
1434
  }
1503
-
1504
1435
  //#endregion
1505
1436
  //#region ../../node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/pure-rand-default.js
1506
- var pure_rand_default_exports = {};
1507
- __export(pure_rand_default_exports, {
1437
+ var pure_rand_default_exports = /* @__PURE__ */ __exportAll({
1508
1438
  __commitHash: () => __commitHash,
1509
1439
  __type: () => __type,
1510
1440
  __version: () => __version,
@@ -1526,20 +1456,17 @@ __export(pure_rand_default_exports, {
1526
1456
  var __type = "module";
1527
1457
  var __version = "6.1.0";
1528
1458
  var __commitHash = "a413dd2b721516be2ef29adffb515c5ae67bfbad";
1529
-
1530
1459
  //#endregion
1531
1460
  //#region ../../node_modules/.pnpm/pure-rand@6.1.0/node_modules/pure-rand/lib/esm/pure-rand.js
1532
1461
  var pure_rand_default = pure_rand_default_exports;
1533
-
1534
1462
  //#endregion
1535
1463
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/configuration/VerbosityLevel.js
1536
1464
  var VerbosityLevel;
1537
- (function(VerbosityLevel$1) {
1538
- VerbosityLevel$1[VerbosityLevel$1["None"] = 0] = "None";
1539
- VerbosityLevel$1[VerbosityLevel$1["Verbose"] = 1] = "Verbose";
1540
- VerbosityLevel$1[VerbosityLevel$1["VeryVerbose"] = 2] = "VeryVerbose";
1465
+ (function(VerbosityLevel) {
1466
+ VerbosityLevel[VerbosityLevel["None"] = 0] = "None";
1467
+ VerbosityLevel[VerbosityLevel["Verbose"] = 1] = "Verbose";
1468
+ VerbosityLevel[VerbosityLevel["VeryVerbose"] = 2] = "VeryVerbose";
1541
1469
  })(VerbosityLevel || (VerbosityLevel = {}));
1542
-
1543
1470
  //#endregion
1544
1471
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/configuration/QualifiedParameters.js
1545
1472
  const safeDateNow$1 = Date.now;
@@ -1572,7 +1499,7 @@ var QualifiedParameters = class QualifiedParameters {
1572
1499
  }
1573
1500
  toParameters() {
1574
1501
  const orUndefined = (value) => value !== null ? value : void 0;
1575
- const parameters = {
1502
+ return {
1576
1503
  seed: this.seed,
1577
1504
  randomType: this.randomType,
1578
1505
  numRuns: this.numRuns,
@@ -1593,7 +1520,6 @@ var QualifiedParameters = class QualifiedParameters {
1593
1520
  asyncReporter: orUndefined(this.asyncReporter),
1594
1521
  errorWithCause: this.errorWithCause
1595
1522
  };
1596
- return parameters;
1597
1523
  }
1598
1524
  static read(op) {
1599
1525
  return new QualifiedParameters(op);
@@ -1610,8 +1536,7 @@ QualifiedParameters.readSeed = (p) => {
1610
1536
  if (p.seed == null) return safeDateNow$1() ^ safeMathRandom() * 4294967296;
1611
1537
  const seed32 = p.seed | 0;
1612
1538
  if (p.seed === seed32) return seed32;
1613
- const gap = p.seed - seed32;
1614
- return seed32 ^ gap * 4294967296;
1539
+ return seed32 ^ (p.seed - seed32) * 4294967296;
1615
1540
  };
1616
1541
  QualifiedParameters.readRandomType = (p) => {
1617
1542
  if (p.randomType == null) return pure_rand_default.xorshift128plus;
@@ -1651,25 +1576,22 @@ QualifiedParameters.safeTimeout = (value) => {
1651
1576
  if (value === null) return null;
1652
1577
  return safeMathMin$5(value, 2147483647);
1653
1578
  };
1654
-
1655
1579
  //#endregion
1656
1580
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/SkipAfterProperty.js
1657
1581
  function interruptAfter(timeMs, setTimeoutSafe, clearTimeoutSafe) {
1658
1582
  let timeoutHandle = null;
1659
- const promise = new Promise((resolve) => {
1660
- timeoutHandle = setTimeoutSafe(() => {
1661
- const preconditionFailure = new PreconditionFailure(true);
1662
- resolve(preconditionFailure);
1663
- }, timeMs);
1664
- });
1665
1583
  return {
1666
1584
  clear: () => clearTimeoutSafe(timeoutHandle),
1667
- promise
1585
+ promise: new Promise((resolve) => {
1586
+ timeoutHandle = setTimeoutSafe(() => {
1587
+ resolve(new PreconditionFailure(true));
1588
+ }, timeMs);
1589
+ })
1668
1590
  };
1669
1591
  }
1670
1592
  var SkipAfterProperty = class {
1671
- constructor(property$1, getTime, timeLimit, interruptExecution, setTimeoutSafe, clearTimeoutSafe) {
1672
- this.property = property$1;
1593
+ constructor(property, getTime, timeLimit, interruptExecution, setTimeoutSafe, clearTimeoutSafe) {
1594
+ this.property = property;
1673
1595
  this.getTime = getTime;
1674
1596
  this.interruptExecution = interruptExecution;
1675
1597
  this.setTimeoutSafe = setTimeoutSafe;
@@ -1705,27 +1627,25 @@ var SkipAfterProperty = class {
1705
1627
  return this.property.run(v, dontRunHook);
1706
1628
  }
1707
1629
  };
1708
-
1709
1630
  //#endregion
1710
1631
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/TimeoutProperty.js
1711
1632
  const timeoutAfter = (timeMs, setTimeoutSafe, clearTimeoutSafe) => {
1712
1633
  let timeoutHandle = null;
1713
- const promise = new Promise((resolve) => {
1714
- timeoutHandle = setTimeoutSafe(() => {
1715
- resolve({
1716
- error: new SError(`Property timeout: exceeded limit of ${timeMs} milliseconds`),
1717
- errorMessage: `Property timeout: exceeded limit of ${timeMs} milliseconds`
1718
- });
1719
- }, timeMs);
1720
- });
1721
1634
  return {
1722
1635
  clear: () => clearTimeoutSafe(timeoutHandle),
1723
- promise
1636
+ promise: new Promise((resolve) => {
1637
+ timeoutHandle = setTimeoutSafe(() => {
1638
+ resolve({
1639
+ error: new SError(`Property timeout: exceeded limit of ${timeMs} milliseconds`),
1640
+ errorMessage: `Property timeout: exceeded limit of ${timeMs} milliseconds`
1641
+ });
1642
+ }, timeMs);
1643
+ })
1724
1644
  };
1725
1645
  };
1726
1646
  var TimeoutProperty = class {
1727
- constructor(property$1, timeMs, setTimeoutSafe, clearTimeoutSafe) {
1728
- this.property = property$1;
1647
+ constructor(property, timeMs, setTimeoutSafe, clearTimeoutSafe) {
1648
+ this.property = property;
1729
1649
  this.timeMs = timeMs;
1730
1650
  this.setTimeoutSafe = setTimeoutSafe;
1731
1651
  this.clearTimeoutSafe = clearTimeoutSafe;
@@ -1750,12 +1670,11 @@ var TimeoutProperty = class {
1750
1670
  return propRun;
1751
1671
  }
1752
1672
  };
1753
-
1754
1673
  //#endregion
1755
1674
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/UnbiasedProperty.js
1756
1675
  var UnbiasedProperty = class {
1757
- constructor(property$1) {
1758
- this.property = property$1;
1676
+ constructor(property) {
1677
+ this.property = property;
1759
1678
  if (this.property.runBeforeEach !== void 0 && this.property.runAfterEach !== void 0) {
1760
1679
  this.runBeforeEach = () => this.property.runBeforeEach();
1761
1680
  this.runAfterEach = () => this.property.runAfterEach();
@@ -1774,7 +1693,6 @@ var UnbiasedProperty = class {
1774
1693
  return this.property.run(v, dontRunHook);
1775
1694
  }
1776
1695
  };
1777
-
1778
1696
  //#endregion
1779
1697
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/utils/stringify.js
1780
1698
  const safeArrayFrom = Array.from;
@@ -1861,11 +1779,10 @@ function stringifyInternal(value, previousValues, getAsyncContent) {
1861
1779
  return "[object Object]";
1862
1780
  }
1863
1781
  const mapper = (k) => `${k === "__proto__" ? "[\"__proto__\"]" : typeof k === "symbol" ? `[${stringifyInternal(k, currentValues, getAsyncContent)}]` : safeJsonStringify(k)}:${stringifyInternal(value[k], currentValues, getAsyncContent)}`;
1864
- const stringifiedProperties = [...safeMap(safeObjectKeys(value), mapper), ...safeMap(safeFilter(safeObjectGetOwnPropertySymbols$1(value), (s) => {
1782
+ const rawRepr = "{" + safeJoin([...safeMap(safeObjectKeys(value), mapper), ...safeMap(safeFilter(safeObjectGetOwnPropertySymbols$1(value), (s) => {
1865
1783
  const descriptor = safeObjectGetOwnPropertyDescriptor$1(value, s);
1866
1784
  return descriptor && descriptor.enumerable;
1867
- }), mapper)];
1868
- const rawRepr = "{" + safeJoin(stringifiedProperties, ",") + "}";
1785
+ }), mapper)], ",") + "}";
1869
1786
  if (safeObjectGetPrototypeOf$1(value) === null) return rawRepr === "{}" ? "Object.create(null)" : `Object.assign(Object.create(null),${rawRepr})`;
1870
1787
  return rawRepr;
1871
1788
  }
@@ -1876,8 +1793,7 @@ function stringifyInternal(value, previousValues, getAsyncContent) {
1876
1793
  if (SSymbol.keyFor(s) !== void 0) return `Symbol.for(${safeJsonStringify(SSymbol.keyFor(s))})`;
1877
1794
  const desc = getSymbolDescription(s);
1878
1795
  if (desc === null) return "Symbol()";
1879
- const knownSymbol = desc.startsWith("Symbol.") && SSymbol[desc.substring(7)];
1880
- return s === knownSymbol ? desc : `Symbol(${safeJsonStringify(desc)})`;
1796
+ return s === (desc.startsWith("Symbol.") && SSymbol[desc.substring(7)]) ? desc : `Symbol(${safeJsonStringify(desc)})`;
1881
1797
  }
1882
1798
  case "[object Promise]": {
1883
1799
  const promiseContent = getAsyncContent(value);
@@ -1885,7 +1801,6 @@ function stringifyInternal(value, previousValues, getAsyncContent) {
1885
1801
  case "fulfilled": return `Promise.resolve(${stringifyInternal(promiseContent.value, currentValues, getAsyncContent)})`;
1886
1802
  case "rejected": return `Promise.reject(${stringifyInternal(promiseContent.value, currentValues, getAsyncContent)})`;
1887
1803
  case "pending": return `new Promise(() => {/*pending*/})`;
1888
- case "unknown":
1889
1804
  default: return `new Promise(() => {/*unknown*/})`;
1890
1805
  }
1891
1806
  }
@@ -1907,11 +1822,7 @@ function stringifyInternal(value, previousValues, getAsyncContent) {
1907
1822
  if (typeof safeBufferIsBuffer === "function" && safeBufferIsBuffer(value)) return `Buffer.from(${stringifyInternal(safeArrayFrom(value.values()), currentValues, getAsyncContent)})`;
1908
1823
  const valuePrototype = safeObjectGetPrototypeOf$1(value);
1909
1824
  const className = valuePrototype && valuePrototype.constructor && valuePrototype.constructor.name;
1910
- if (typeof className === "string") {
1911
- const typedArray$1 = value;
1912
- const valuesFromTypedArr = typedArray$1.values();
1913
- return `${className}.from(${stringifyInternal(safeArrayFrom(valuesFromTypedArr), currentValues, getAsyncContent)})`;
1914
- }
1825
+ if (typeof className === "string") return `${className}.from(${stringifyInternal(safeArrayFrom(value.values()), currentValues, getAsyncContent)})`;
1915
1826
  break;
1916
1827
  }
1917
1828
  }
@@ -1936,14 +1847,13 @@ function possiblyAsyncStringify(value) {
1936
1847
  const cancel = () => {
1937
1848
  if (handleId !== null) clearTimeout(handleId);
1938
1849
  };
1939
- const delay = new Promise((resolve) => {
1940
- handleId = setTimeout(() => {
1941
- handleId = null;
1942
- resolve(stillPendingMarker);
1943
- }, 0);
1944
- });
1945
1850
  return {
1946
- delay,
1851
+ delay: new Promise((resolve) => {
1852
+ handleId = setTimeout(() => {
1853
+ handleId = null;
1854
+ resolve(stillPendingMarker);
1855
+ }, 0);
1856
+ }),
1947
1857
  cancel
1948
1858
  };
1949
1859
  }
@@ -1951,7 +1861,7 @@ function possiblyAsyncStringify(value) {
1951
1861
  state: "unknown",
1952
1862
  value: void 0
1953
1863
  };
1954
- const getAsyncContent = function getAsyncContent$1(data) {
1864
+ const getAsyncContent = function getAsyncContent(data) {
1955
1865
  const cacheKey = data;
1956
1866
  if (cache.has(cacheKey)) return cache.get(cacheKey);
1957
1867
  const delay0 = createDelay0();
@@ -1984,7 +1894,6 @@ function possiblyAsyncStringify(value) {
1984
1894
  }
1985
1895
  return loop();
1986
1896
  }
1987
-
1988
1897
  //#endregion
1989
1898
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/property/IgnoreEqualValuesProperty.js
1990
1899
  function fromSyncCached(cachedValue) {
@@ -1998,8 +1907,8 @@ function fromCachedUnsafe(cachedValue, isAsync) {
1998
1907
  return fromCached(cachedValue, isAsync);
1999
1908
  }
2000
1909
  var IgnoreEqualValuesProperty = class {
2001
- constructor(property$1, skipRuns) {
2002
- this.property = property$1;
1910
+ constructor(property, skipRuns) {
1911
+ this.property = property;
2003
1912
  this.skipRuns = skipRuns;
2004
1913
  this.coveredCases = /* @__PURE__ */ new Map();
2005
1914
  if (this.property.runBeforeEach !== void 0 && this.property.runAfterEach !== void 0) {
@@ -2028,7 +1937,6 @@ var IgnoreEqualValuesProperty = class {
2028
1937
  return out;
2029
1938
  }
2030
1939
  };
2031
-
2032
1940
  //#endregion
2033
1941
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/DecorateProperty.js
2034
1942
  const safeDateNow = Date.now;
@@ -2044,16 +1952,14 @@ function decorateProperty(rawProperty, qParams) {
2044
1952
  if (qParams.ignoreEqualValues) prop = new IgnoreEqualValuesProperty(prop, false);
2045
1953
  return prop;
2046
1954
  }
2047
-
2048
1955
  //#endregion
2049
1956
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/reporter/ExecutionStatus.js
2050
1957
  var ExecutionStatus;
2051
- (function(ExecutionStatus$1) {
2052
- ExecutionStatus$1[ExecutionStatus$1["Success"] = 0] = "Success";
2053
- ExecutionStatus$1[ExecutionStatus$1["Skipped"] = -1] = "Skipped";
2054
- ExecutionStatus$1[ExecutionStatus$1["Failure"] = 1] = "Failure";
1958
+ (function(ExecutionStatus) {
1959
+ ExecutionStatus[ExecutionStatus["Success"] = 0] = "Success";
1960
+ ExecutionStatus[ExecutionStatus["Skipped"] = -1] = "Skipped";
1961
+ ExecutionStatus[ExecutionStatus["Failure"] = 1] = "Failure";
2055
1962
  })(ExecutionStatus || (ExecutionStatus = {}));
2056
-
2057
1963
  //#endregion
2058
1964
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/reporter/RunExecution.js
2059
1965
  var RunExecution = class RunExecution {
@@ -2080,10 +1986,7 @@ var RunExecution = class RunExecution {
2080
1986
  return currentTree;
2081
1987
  }
2082
1988
  fail(value, id, failure) {
2083
- if (this.verbosity >= VerbosityLevel.Verbose) {
2084
- const currentTree = this.appendExecutionTree(ExecutionStatus.Failure, value);
2085
- this.currentLevelExecutionTrees = currentTree.children;
2086
- }
1989
+ if (this.verbosity >= VerbosityLevel.Verbose) this.currentLevelExecutionTrees = this.appendExecutionTree(ExecutionStatus.Failure, value).children;
2087
1990
  if (this.pathToFailure == null) this.pathToFailure = `${id}`;
2088
1991
  else this.pathToFailure += `:${id}`;
2089
1992
  this.value = value;
@@ -2129,9 +2032,8 @@ var RunExecution = class RunExecution {
2129
2032
  runConfiguration: qParams.toParameters()
2130
2033
  };
2131
2034
  const considerInterruptedAsFailure = this.interruptedAsFailure || this.numSuccesses === 0;
2132
- const failed = this.numSkips > maxSkips || this.interrupted && considerInterruptedAsFailure;
2133
- const out = {
2134
- failed,
2035
+ return {
2036
+ failed: this.numSkips > maxSkips || this.interrupted && considerInterruptedAsFailure,
2135
2037
  interrupted: this.interrupted,
2136
2038
  numRuns: this.numSuccesses,
2137
2039
  numSkips: this.numSkips,
@@ -2146,7 +2048,6 @@ var RunExecution = class RunExecution {
2146
2048
  verbose: this.verbosity,
2147
2049
  runConfiguration: qParams.toParameters()
2148
2050
  };
2149
- return out;
2150
2051
  }
2151
2052
  };
2152
2053
  RunExecution.mergePaths = (offsetPath, path) => {
@@ -2160,7 +2061,6 @@ RunExecution.mergePaths = (offsetPath, path) => {
2160
2061
  ...remainingItems.slice(1)
2161
2062
  ].join(":");
2162
2063
  };
2163
-
2164
2064
  //#endregion
2165
2065
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/RunnerIterator.js
2166
2066
  var RunnerIterator = class {
@@ -2199,7 +2099,6 @@ var RunnerIterator = class {
2199
2099
  else this.runExecution.success(this.currentValue.value_);
2200
2100
  }
2201
2101
  };
2202
-
2203
2102
  //#endregion
2204
2103
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/SourceValuesIterator.js
2205
2104
  var SourceValuesIterator = class {
@@ -2229,7 +2128,6 @@ var SourceValuesIterator = class {
2229
2128
  ++this.maxInitialIterations;
2230
2129
  }
2231
2130
  };
2232
-
2233
2131
  //#endregion
2234
2132
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/random/generator/Random.js
2235
2133
  var Random = class Random {
@@ -2261,14 +2159,12 @@ var Random = class Random {
2261
2159
  }
2262
2160
  getState() {
2263
2161
  if ("getState" in this.internalRng && typeof this.internalRng.getState === "function") return this.internalRng.getState();
2264
- return void 0;
2265
2162
  }
2266
2163
  };
2267
2164
  Random.MIN_INT = -2147483648;
2268
2165
  Random.MAX_INT = 2147483647;
2269
2166
  Random.DBL_FACTOR = Math.pow(2, 27);
2270
2167
  Random.DBL_DIVISOR = Math.pow(2, -53);
2271
-
2272
2168
  //#endregion
2273
2169
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/Tosser.js
2274
2170
  function tossNext(generator, rng, index) {
@@ -2291,7 +2187,6 @@ function* lazyToss(generator, seed, random, examples) {
2291
2187
  yield lazyGenerate(generator, rng, idx++);
2292
2188
  }
2293
2189
  }
2294
-
2295
2190
  //#endregion
2296
2191
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/utils/PathWalker.js
2297
2192
  function produce(producer) {
@@ -2310,7 +2205,6 @@ function pathWalk(path, initialProducers, shrink) {
2310
2205
  }
2311
2206
  return values;
2312
2207
  }
2313
-
2314
2208
  //#endregion
2315
2209
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/utils/RunDetailsFormatter.js
2316
2210
  const safeObjectAssign$3 = Object.assign;
@@ -2355,8 +2249,7 @@ function preFormatTooManySkipped(out, stringifyOne) {
2355
2249
  };
2356
2250
  }
2357
2251
  function preFormatFailure(out, stringifyOne) {
2358
- const noErrorInMessage = out.runConfiguration.errorWithCause;
2359
- const messageErrorPart = noErrorInMessage ? "" : `\nGot ${safeReplace(out.error, /^Error: /, "error: ")}`;
2252
+ const messageErrorPart = out.runConfiguration.errorWithCause ? "" : `\nGot ${safeReplace(out.error, /^Error: /, "error: ")}`;
2360
2253
  const message = `Property failed after ${out.numRuns} tests\n{ seed: ${out.seed}, path: "${out.counterexamplePath}", endOnFailure: true }\nCounterexample: ${stringifyOne(out.counterexample)}\nShrunk ${out.numShrinks} time(s)${messageErrorPart}`;
2361
2254
  let details = null;
2362
2255
  const hints = [];
@@ -2412,8 +2305,7 @@ async function asyncDefaultReportMessage(out) {
2412
2305
  }
2413
2306
  function buildError(errorMessage, out) {
2414
2307
  if (!out.runConfiguration.errorWithCause) throw new SError(errorMessage);
2415
- const ErrorWithCause = SError;
2416
- const error = new ErrorWithCause(errorMessage, { cause: out.errorInstance });
2308
+ const error = new SError(errorMessage, { cause: out.errorInstance });
2417
2309
  if (!("cause" in error)) safeObjectAssign$3(error, { cause: out.errorInstance });
2418
2310
  return error;
2419
2311
  }
@@ -2435,28 +2327,27 @@ async function asyncReportRunDetails(out) {
2435
2327
  else if (out.runConfiguration.reporter) return out.runConfiguration.reporter(out);
2436
2328
  else return asyncThrowIfFailed(out);
2437
2329
  }
2438
-
2439
2330
  //#endregion
2440
2331
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/check/runner/Runner.js
2441
2332
  const safeObjectAssign$2 = Object.assign;
2442
- function runIt(property$1, shrink, sourceValues, verbose, interruptedAsFailure) {
2443
- const isModernProperty = property$1.runBeforeEach !== void 0 && property$1.runAfterEach !== void 0;
2333
+ function runIt(property, shrink, sourceValues, verbose, interruptedAsFailure) {
2334
+ const isModernProperty = property.runBeforeEach !== void 0 && property.runAfterEach !== void 0;
2444
2335
  const runner = new RunnerIterator(sourceValues, shrink, verbose, interruptedAsFailure);
2445
2336
  for (const v of runner) {
2446
- if (isModernProperty) property$1.runBeforeEach();
2447
- const out = property$1.run(v, isModernProperty);
2448
- if (isModernProperty) property$1.runAfterEach();
2337
+ if (isModernProperty) property.runBeforeEach();
2338
+ const out = property.run(v, isModernProperty);
2339
+ if (isModernProperty) property.runAfterEach();
2449
2340
  runner.handleResult(out);
2450
2341
  }
2451
2342
  return runner.runExecution;
2452
2343
  }
2453
- async function asyncRunIt(property$1, shrink, sourceValues, verbose, interruptedAsFailure) {
2454
- const isModernProperty = property$1.runBeforeEach !== void 0 && property$1.runAfterEach !== void 0;
2344
+ async function asyncRunIt(property, shrink, sourceValues, verbose, interruptedAsFailure) {
2345
+ const isModernProperty = property.runBeforeEach !== void 0 && property.runAfterEach !== void 0;
2455
2346
  const runner = new RunnerIterator(sourceValues, shrink, verbose, interruptedAsFailure);
2456
2347
  for (const v of runner) {
2457
- if (isModernProperty) await property$1.runBeforeEach();
2458
- const out = await property$1.run(v, isModernProperty);
2459
- if (isModernProperty) await property$1.runAfterEach();
2348
+ if (isModernProperty) await property.runBeforeEach();
2349
+ const out = await property.run(v, isModernProperty);
2350
+ if (isModernProperty) await property.runAfterEach();
2460
2351
  runner.handleResult(out);
2461
2352
  }
2462
2353
  return runner.runExecution;
@@ -2467,21 +2358,19 @@ function check(rawProperty, params) {
2467
2358
  const qParams = QualifiedParameters.read(safeObjectAssign$2(safeObjectAssign$2({}, readConfigureGlobal()), params));
2468
2359
  if (qParams.reporter !== null && qParams.asyncReporter !== null) throw new Error("Invalid parameters encountered, reporter and asyncReporter cannot be specified together");
2469
2360
  if (qParams.asyncReporter !== null && !rawProperty.isAsync()) throw new Error("Invalid parameters encountered, only asyncProperty can be used when asyncReporter specified");
2470
- const property$1 = decorateProperty(rawProperty, qParams);
2361
+ const property = decorateProperty(rawProperty, qParams);
2471
2362
  const maxInitialIterations = qParams.path.length === 0 || qParams.path.indexOf(":") === -1 ? qParams.numRuns : -1;
2472
2363
  const maxSkips = qParams.numRuns * qParams.maxSkipsPerRun;
2473
- const shrink = (...args) => property$1.shrink(...args);
2474
- const initialValues = qParams.path.length === 0 ? toss(property$1, qParams.seed, qParams.randomType, qParams.examples) : pathWalk(qParams.path, stream(lazyToss(property$1, qParams.seed, qParams.randomType, qParams.examples)), shrink);
2475
- const sourceValues = new SourceValuesIterator(initialValues, maxInitialIterations, maxSkips);
2364
+ const shrink = (...args) => property.shrink(...args);
2365
+ const sourceValues = new SourceValuesIterator(qParams.path.length === 0 ? toss(property, qParams.seed, qParams.randomType, qParams.examples) : pathWalk(qParams.path, stream(lazyToss(property, qParams.seed, qParams.randomType, qParams.examples)), shrink), maxInitialIterations, maxSkips);
2476
2366
  const finalShrink = !qParams.endOnFailure ? shrink : Stream.nil;
2477
- return property$1.isAsync() ? asyncRunIt(property$1, finalShrink, sourceValues, qParams.verbose, qParams.markInterruptAsFailure).then((e) => e.toRunDetails(qParams.seed, qParams.path, maxSkips, qParams)) : runIt(property$1, finalShrink, sourceValues, qParams.verbose, qParams.markInterruptAsFailure).toRunDetails(qParams.seed, qParams.path, maxSkips, qParams);
2367
+ return property.isAsync() ? asyncRunIt(property, finalShrink, sourceValues, qParams.verbose, qParams.markInterruptAsFailure).then((e) => e.toRunDetails(qParams.seed, qParams.path, maxSkips, qParams)) : runIt(property, finalShrink, sourceValues, qParams.verbose, qParams.markInterruptAsFailure).toRunDetails(qParams.seed, qParams.path, maxSkips, qParams);
2478
2368
  }
2479
- function assert$1(property$1, params) {
2480
- const out = check(property$1, params);
2481
- if (property$1.isAsync()) return out.then(asyncReportRunDetails);
2369
+ function assert(property, params) {
2370
+ const out = check(property, params);
2371
+ if (property.isAsync()) return out.then(asyncReportRunDetails);
2482
2372
  else reportRunDetails(out);
2483
2373
  }
2484
-
2485
2374
  //#endregion
2486
2375
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/BiasNumericRange.js
2487
2376
  const safeMathFloor$4 = Math.floor;
@@ -2490,8 +2379,8 @@ function integerLogLike(v) {
2490
2379
  return safeMathFloor$4(safeMathLog$1(v) / safeMathLog$1(2));
2491
2380
  }
2492
2381
  function bigIntLogLike(v) {
2493
- if (v === SBigInt(0)) return SBigInt(0);
2494
- return SBigInt(SString(v).length);
2382
+ if (v === SBigInt$1(0)) return SBigInt$1(0);
2383
+ return SBigInt$1(SString(v).length);
2495
2384
  }
2496
2385
  function biasNumericRange(min, max, logLike) {
2497
2386
  if (min === max) return [{
@@ -2527,7 +2416,6 @@ function biasNumericRange(min, max, logLike) {
2527
2416
  };
2528
2417
  return min < 0 ? [arbCloseToMax, arbCloseToMin] : [arbCloseToMin, arbCloseToMax];
2529
2418
  }
2530
-
2531
2419
  //#endregion
2532
2420
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/ShrinkInteger.js
2533
2421
  const safeMathCeil = Math.ceil;
@@ -2560,7 +2448,6 @@ function shrinkInteger(current, target, tryTargetAsap) {
2560
2448
  }
2561
2449
  return realGap > 0 ? stream(shrinkDecr()) : stream(shrinkIncr());
2562
2450
  }
2563
-
2564
2451
  //#endregion
2565
2452
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/IntegerArbitrary.js
2566
2453
  const safeMathSign = Math.sign;
@@ -2580,10 +2467,7 @@ var IntegerArbitrary = class IntegerArbitrary extends Arbitrary {
2580
2467
  return typeof value === "number" && safeNumberIsInteger$6(value) && !safeObjectIs$4(value, -0) && this.min <= value && value <= this.max;
2581
2468
  }
2582
2469
  shrink(current, context) {
2583
- if (!IntegerArbitrary.isValidContext(current, context)) {
2584
- const target = this.defaultTarget();
2585
- return shrinkInteger(current, target, true);
2586
- }
2470
+ if (!IntegerArbitrary.isValidContext(current, context)) return shrinkInteger(current, this.defaultTarget(), true);
2587
2471
  if (this.isLastChanceTry(current, context)) return Stream.of(new Value(context, void 0));
2588
2472
  return shrinkInteger(current, context, false);
2589
2473
  }
@@ -2613,16 +2497,13 @@ var IntegerArbitrary = class IntegerArbitrary extends Arbitrary {
2613
2497
  return true;
2614
2498
  }
2615
2499
  };
2616
-
2617
2500
  //#endregion
2618
2501
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/integer.js
2619
2502
  const safeNumberIsInteger$5 = Number.isInteger;
2620
2503
  function buildCompleteIntegerConstraints(constraints) {
2621
- const min = constraints.min !== void 0 ? constraints.min : -2147483648;
2622
- const max = constraints.max !== void 0 ? constraints.max : 2147483647;
2623
2504
  return {
2624
- min,
2625
- max
2505
+ min: constraints.min !== void 0 ? constraints.min : -2147483648,
2506
+ max: constraints.max !== void 0 ? constraints.max : 2147483647
2626
2507
  };
2627
2508
  }
2628
2509
  function integer(constraints = {}) {
@@ -2632,7 +2513,6 @@ function integer(constraints = {}) {
2632
2513
  if (!safeNumberIsInteger$5(fullConstraints.max)) throw new Error("fc.integer maximum value should be an integer");
2633
2514
  return new IntegerArbitrary(fullConstraints.min, fullConstraints.max);
2634
2515
  }
2635
-
2636
2516
  //#endregion
2637
2517
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/DepthContext.js
2638
2518
  const depthContextCache = /* @__PURE__ */ new Map();
@@ -2646,10 +2526,8 @@ function getDepthContextFor(contextMeta) {
2646
2526
  return context;
2647
2527
  }
2648
2528
  function createDepthIdentifier() {
2649
- const identifier = { depth: 0 };
2650
- return identifier;
2529
+ return { depth: 0 };
2651
2530
  }
2652
-
2653
2531
  //#endregion
2654
2532
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/implementations/NoopSlicedGenerator.js
2655
2533
  var NoopSlicedGenerator = class {
@@ -2658,14 +2536,11 @@ var NoopSlicedGenerator = class {
2658
2536
  this.mrng = mrng;
2659
2537
  this.biasFactor = biasFactor;
2660
2538
  }
2661
- attemptExact() {
2662
- return;
2663
- }
2539
+ attemptExact() {}
2664
2540
  next() {
2665
2541
  return this.arb.generate(this.mrng, this.biasFactor);
2666
2542
  }
2667
2543
  };
2668
-
2669
2544
  //#endregion
2670
2545
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/implementations/SlicedBasedGenerator.js
2671
2546
  const safeMathMin$4 = Math.min;
@@ -2683,10 +2558,7 @@ var SlicedBasedGenerator = class {
2683
2558
  attemptExact(targetLength) {
2684
2559
  if (targetLength !== 0 && this.mrng.nextInt(1, this.biasFactor) === 1) {
2685
2560
  const eligibleIndices = [];
2686
- for (let index = 0; index !== this.slices.length; ++index) {
2687
- const slice = this.slices[index];
2688
- if (slice.length === targetLength) safePush(eligibleIndices, index);
2689
- }
2561
+ for (let index = 0; index !== this.slices.length; ++index) if (this.slices[index].length === targetLength) safePush(eligibleIndices, index);
2690
2562
  if (eligibleIndices.length === 0) return;
2691
2563
  this.activeSliceIndex = eligibleIndices[this.mrng.nextInt(0, eligibleIndices.length - 1)];
2692
2564
  this.nextIndexInSlice = 0;
@@ -2710,14 +2582,12 @@ var SlicedBasedGenerator = class {
2710
2582
  return new Value(slice[this.nextIndexInSlice++], void 0);
2711
2583
  }
2712
2584
  };
2713
-
2714
2585
  //#endregion
2715
2586
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/BuildSlicedGenerator.js
2716
2587
  function buildSlicedGenerator(arb, mrng, slices, biasFactor) {
2717
2588
  if (biasFactor === void 0 || slices.length === 0 || mrng.nextInt(1, biasFactor) !== 1) return new NoopSlicedGenerator(arb, mrng, biasFactor);
2718
2589
  return new SlicedBasedGenerator(arb, mrng, slices, biasFactor);
2719
2590
  }
2720
-
2721
2591
  //#endregion
2722
2592
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/ArrayArbitrary.js
2723
2593
  const safeMathFloor$2 = Math.floor;
@@ -2782,10 +2652,7 @@ var ArrayArbitrary = class ArrayArbitrary extends Arbitrary {
2782
2652
  const items = [];
2783
2653
  const slicedGenerator = buildSlicedGenerator(this.arb, mrng, this.customSlices, biasFactorItems);
2784
2654
  slicedGenerator.attemptExact(N);
2785
- for (let index = 0; index !== N; ++index) {
2786
- const current = slicedGenerator.next();
2787
- safePush(items, current);
2788
- }
2655
+ for (let index = 0; index !== N; ++index) safePush(items, slicedGenerator.next());
2789
2656
  return items;
2790
2657
  }
2791
2658
  safeGenerateNItems(N, mrng, biasFactorItems) {
@@ -2809,13 +2676,12 @@ var ArrayArbitrary = class ArrayArbitrary extends Arbitrary {
2809
2676
  safePush(itemsContexts, s.context);
2810
2677
  }
2811
2678
  if (cloneable) ArrayArbitrary.makeItCloneable(vs, items);
2812
- const context = {
2679
+ return new Value(vs, {
2813
2680
  shrunkOnce,
2814
2681
  lengthContext: itemsRaw.length === items.length && itemsRawLengthContext !== void 0 ? itemsRawLengthContext : void 0,
2815
2682
  itemsContexts,
2816
2683
  startIndex
2817
- };
2818
- return new Value(vs, context);
2684
+ });
2819
2685
  }
2820
2686
  generate(mrng, biasFactor) {
2821
2687
  const biasMeta = this.applyBias(mrng, biasFactor);
@@ -2835,12 +2701,11 @@ var ArrayArbitrary = class ArrayArbitrary extends Arbitrary {
2835
2701
  biasFactorItems: biasFactor
2836
2702
  };
2837
2703
  const maxBiasedLength = biasedMaxLength(this.minLength, this.maxGeneratedLength);
2838
- const targetSizeValue = integer({
2839
- min: this.minLength,
2840
- max: maxBiasedLength
2841
- }).generate(mrng, void 0);
2842
2704
  return {
2843
- size: targetSizeValue.value,
2705
+ size: integer({
2706
+ min: this.minLength,
2707
+ max: maxBiasedLength
2708
+ }).generate(mrng, void 0).value,
2844
2709
  biasFactorItems: biasFactor
2845
2710
  };
2846
2711
  }
@@ -2850,14 +2715,13 @@ var ArrayArbitrary = class ArrayArbitrary extends Arbitrary {
2850
2715
  if (!(index in value)) return false;
2851
2716
  if (!this.arb.canShrinkWithoutContext(value[index])) return false;
2852
2717
  }
2853
- const filtered = this.preFilter(safeMap(value, (item) => new Value(item, void 0)));
2854
- return filtered.length === value.length;
2718
+ return this.preFilter(safeMap(value, (item) => new Value(item, void 0))).length === value.length;
2855
2719
  }
2856
2720
  shrinkItemByItem(value, safeContext, endIndex) {
2857
2721
  const shrinks = [];
2858
2722
  for (let index = safeContext.startIndex; index < endIndex; ++index) safePush(shrinks, makeLazy(() => this.arb.shrink(value[index], safeContext.itemsContexts[index]).map((v) => {
2859
- const beforeCurrent = safeMap(safeSlice(value, 0, index), (v$1, i) => new Value(cloneIfNeeded(v$1), safeContext.itemsContexts[i]));
2860
- const afterCurrent = safeMap(safeSlice(value, index + 1), (v$1, i) => new Value(cloneIfNeeded(v$1), safeContext.itemsContexts[i + index + 1]));
2723
+ const beforeCurrent = safeMap(safeSlice(value, 0, index), (v, i) => new Value(cloneIfNeeded(v), safeContext.itemsContexts[i]));
2724
+ const afterCurrent = safeMap(safeSlice(value, index + 1), (v, i) => new Value(cloneIfNeeded(v), safeContext.itemsContexts[i + index + 1]));
2861
2725
  return [
2862
2726
  [
2863
2727
  ...beforeCurrent,
@@ -2905,7 +2769,6 @@ var ArrayArbitrary = class ArrayArbitrary extends Arbitrary {
2905
2769
  return this.shrinkImpl(value, context).map((contextualValue) => this.wrapper(contextualValue[0], true, contextualValue[1], contextualValue[2]));
2906
2770
  }
2907
2771
  };
2908
-
2909
2772
  //#endregion
2910
2773
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/MaxLengthFromMinLength.js
2911
2774
  const safeMathFloor$1 = Math.floor;
@@ -2952,16 +2815,14 @@ function maxGeneratedLengthFromSizeForArbitrary(size, minLength, maxLength, spec
2952
2815
  const { baseSize: defaultSize = DefaultSize, defaultSizeToMaxWhenMaxSpecified } = readConfigureGlobal() || {};
2953
2816
  const definedSize = size !== void 0 ? size : specifiedMaxLength && defaultSizeToMaxWhenMaxSpecified ? "max" : defaultSize;
2954
2817
  if (definedSize === "max") return maxLength;
2955
- const finalSize = relativeSizeToSize(definedSize, defaultSize);
2956
- return safeMathMin$3(maxLengthFromMinLength(minLength, finalSize), maxLength);
2818
+ return safeMathMin$3(maxLengthFromMinLength(minLength, relativeSizeToSize(definedSize, defaultSize)), maxLength);
2957
2819
  }
2958
2820
  function depthBiasFromSizeForArbitrary(depthSizeOrSize, specifiedMaxDepth) {
2959
2821
  if (typeof depthSizeOrSize === "number") return 1 / depthSizeOrSize;
2960
2822
  const { baseSize: defaultSize = DefaultSize, defaultSizeToMaxWhenMaxSpecified } = readConfigureGlobal() || {};
2961
2823
  const definedSize = depthSizeOrSize !== void 0 ? depthSizeOrSize : specifiedMaxDepth && defaultSizeToMaxWhenMaxSpecified ? "max" : defaultSize;
2962
2824
  if (definedSize === "max") return 0;
2963
- const finalSize = relativeSizeToSize(definedSize, defaultSize);
2964
- switch (finalSize) {
2825
+ switch (relativeSizeToSize(definedSize, defaultSize)) {
2965
2826
  case "xsmall": return 1;
2966
2827
  case "small": return .5;
2967
2828
  case "medium": return .25;
@@ -2969,7 +2830,6 @@ function depthBiasFromSizeForArbitrary(depthSizeOrSize, specifiedMaxDepth) {
2969
2830
  case "xlarge": return .0625;
2970
2831
  }
2971
2832
  }
2972
-
2973
2833
  //#endregion
2974
2834
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/array.js
2975
2835
  function array(arb, constraints = {}) {
@@ -2978,16 +2838,12 @@ function array(arb, constraints = {}) {
2978
2838
  const maxLengthOrUnset = constraints.maxLength;
2979
2839
  const depthIdentifier = constraints.depthIdentifier;
2980
2840
  const maxLength = maxLengthOrUnset !== void 0 ? maxLengthOrUnset : MaxLengthUpperBound;
2981
- const specifiedMaxLength = maxLengthOrUnset !== void 0;
2982
- const maxGeneratedLength = maxGeneratedLengthFromSizeForArbitrary(size, minLength, maxLength, specifiedMaxLength);
2983
- const customSlices = constraints.experimentalCustomSlices || [];
2984
- return new ArrayArbitrary(arb, minLength, maxGeneratedLength, maxLength, depthIdentifier, void 0, customSlices);
2841
+ return new ArrayArbitrary(arb, minLength, maxGeneratedLengthFromSizeForArbitrary(size, minLength, maxLength, maxLengthOrUnset !== void 0), maxLength, depthIdentifier, void 0, constraints.experimentalCustomSlices || []);
2985
2842
  }
2986
-
2987
2843
  //#endregion
2988
2844
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/ShrinkBigInt.js
2989
2845
  function halveBigInt(n) {
2990
- return n / SBigInt(2);
2846
+ return n / SBigInt$1(2);
2991
2847
  }
2992
2848
  function shrinkBigInt(current, target, tryTargetAsap) {
2993
2849
  const realGap = current - target;
@@ -3011,7 +2867,6 @@ function shrinkBigInt(current, target, tryTargetAsap) {
3011
2867
  }
3012
2868
  return realGap > 0 ? stream(shrinkDecr()) : stream(shrinkIncr());
3013
2869
  }
3014
-
3015
2870
  //#endregion
3016
2871
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/BigIntArbitrary.js
3017
2872
  var BigIntArbitrary = class BigIntArbitrary extends Arbitrary {
@@ -3038,50 +2893,43 @@ var BigIntArbitrary = class BigIntArbitrary extends Arbitrary {
3038
2893
  return typeof value === "bigint" && this.min <= value && value <= this.max;
3039
2894
  }
3040
2895
  shrink(current, context) {
3041
- if (!BigIntArbitrary.isValidContext(current, context)) {
3042
- const target = this.defaultTarget();
3043
- return shrinkBigInt(current, target, true);
3044
- }
2896
+ if (!BigIntArbitrary.isValidContext(current, context)) return shrinkBigInt(current, this.defaultTarget(), true);
3045
2897
  if (this.isLastChanceTry(current, context)) return Stream.of(new Value(context, void 0));
3046
2898
  return shrinkBigInt(current, context, false);
3047
2899
  }
3048
2900
  defaultTarget() {
3049
- if (this.min <= 0 && this.max >= 0) return SBigInt(0);
2901
+ if (this.min <= 0 && this.max >= 0) return SBigInt$1(0);
3050
2902
  return this.min < 0 ? this.max : this.min;
3051
2903
  }
3052
2904
  isLastChanceTry(current, context) {
3053
- if (current > 0) return current === context + SBigInt(1) && current > this.min;
3054
- if (current < 0) return current === context - SBigInt(1) && current < this.max;
2905
+ if (current > 0) return current === context + SBigInt$1(1) && current > this.min;
2906
+ if (current < 0) return current === context - SBigInt$1(1) && current < this.max;
3055
2907
  return false;
3056
2908
  }
3057
2909
  static isValidContext(current, context) {
3058
2910
  if (context === void 0) return false;
3059
2911
  if (typeof context !== "bigint") throw new Error(`Invalid context type passed to BigIntArbitrary (#1)`);
3060
2912
  const differentSigns = current > 0 && context < 0 || current < 0 && context > 0;
3061
- if (context !== SBigInt(0) && differentSigns) throw new Error(`Invalid context value passed to BigIntArbitrary (#2)`);
2913
+ if (context !== SBigInt$1(0) && differentSigns) throw new Error(`Invalid context value passed to BigIntArbitrary (#2)`);
3062
2914
  return true;
3063
2915
  }
3064
2916
  };
3065
-
3066
2917
  //#endregion
3067
2918
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/bigInt.js
3068
2919
  function buildCompleteBigIntConstraints(constraints) {
3069
2920
  const DefaultPow = 256;
3070
- const DefaultMin = SBigInt(-1) << SBigInt(DefaultPow - 1);
3071
- const DefaultMax = (SBigInt(1) << SBigInt(DefaultPow - 1)) - SBigInt(1);
2921
+ const DefaultMin = SBigInt$1(-1) << SBigInt$1(DefaultPow - 1);
2922
+ const DefaultMax = (SBigInt$1(1) << SBigInt$1(DefaultPow - 1)) - SBigInt$1(1);
3072
2923
  const min = constraints.min;
3073
2924
  const max = constraints.max;
3074
2925
  return {
3075
- min: min !== void 0 ? min : DefaultMin - (max !== void 0 && max < SBigInt(0) ? max * max : SBigInt(0)),
3076
- max: max !== void 0 ? max : DefaultMax + (min !== void 0 && min > SBigInt(0) ? min * min : SBigInt(0))
2926
+ min: min !== void 0 ? min : DefaultMin - (max !== void 0 && max < SBigInt$1(0) ? max * max : SBigInt$1(0)),
2927
+ max: max !== void 0 ? max : DefaultMax + (min !== void 0 && min > SBigInt$1(0) ? min * min : SBigInt$1(0))
3077
2928
  };
3078
2929
  }
3079
2930
  function extractBigIntConstraints(args) {
3080
2931
  if (args[0] === void 0) return {};
3081
- if (args[1] === void 0) {
3082
- const constraints = args[0];
3083
- return constraints;
3084
- }
2932
+ if (args[1] === void 0) return args[0];
3085
2933
  return {
3086
2934
  min: args[0],
3087
2935
  max: args[1]
@@ -3092,13 +2940,11 @@ function bigInt(...args) {
3092
2940
  if (constraints.min > constraints.max) throw new Error("fc.bigInt expects max to be greater than or equal to min");
3093
2941
  return new BigIntArbitrary(constraints.min, constraints.max);
3094
2942
  }
3095
-
3096
2943
  //#endregion
3097
2944
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/noBias.js
3098
2945
  function noBias(arb) {
3099
2946
  return arb.noBias();
3100
2947
  }
3101
-
3102
2948
  //#endregion
3103
2949
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/boolean.js
3104
2950
  function booleanMapper(v) {
@@ -3114,7 +2960,6 @@ function boolean() {
3114
2960
  max: 1
3115
2961
  }).map(booleanMapper, booleanUnmapper));
3116
2962
  }
3117
-
3118
2963
  //#endregion
3119
2964
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/ConstantArbitrary.js
3120
2965
  const safeObjectIs$3 = Object.is;
@@ -3161,14 +3006,12 @@ var FastConstantValuesLookup = class {
3161
3006
  return safeHas(this.fastValues, value);
3162
3007
  }
3163
3008
  };
3164
-
3165
3009
  //#endregion
3166
3010
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/constantFrom.js
3167
3011
  function constantFrom(...values) {
3168
3012
  if (values.length === 0) throw new Error("fc.constantFrom expects at least one parameter");
3169
3013
  return new ConstantArbitrary(values);
3170
3014
  }
3171
-
3172
3015
  //#endregion
3173
3016
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/IndexToCharString.js
3174
3017
  const indexToCharStringMapper = String.fromCodePoint;
@@ -3181,7 +3024,6 @@ function indexToCharStringUnmapper(c) {
3181
3024
  if (c1 < 55296 || c1 > 56319 || c2 < 56320 || c2 > 57343) throw new Error("Cannot unmap invalid surrogate pairs");
3182
3025
  return c.codePointAt(0);
3183
3026
  }
3184
-
3185
3027
  //#endregion
3186
3028
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/CharacterArbitraryBuilder.js
3187
3029
  function buildCharacterArbitrary(min, max, mapToCode, unmapFromCode) {
@@ -3190,7 +3032,6 @@ function buildCharacterArbitrary(min, max, mapToCode, unmapFromCode) {
3190
3032
  max
3191
3033
  }).map((n) => indexToCharStringMapper(mapToCode(n)), (c) => unmapFromCode(indexToCharStringUnmapper(c)));
3192
3034
  }
3193
-
3194
3035
  //#endregion
3195
3036
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/IndexToPrintableIndex.js
3196
3037
  function indexToPrintableIndexMapper(v) {
@@ -3203,7 +3044,6 @@ function indexToPrintableIndexUnmapper(v) {
3203
3044
  if (v >= 0 && v <= 31) return v + 95;
3204
3045
  return v;
3205
3046
  }
3206
-
3207
3047
  //#endregion
3208
3048
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/fullUnicode.js
3209
3049
  const gapSize = 2048;
@@ -3219,13 +3059,11 @@ function unicodeUnmapper(v) {
3219
3059
  function fullUnicode() {
3220
3060
  return buildCharacterArbitrary(0, 1114111 - gapSize, unicodeMapper, unicodeUnmapper);
3221
3061
  }
3222
-
3223
3062
  //#endregion
3224
3063
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/constant.js
3225
3064
  function constant(value) {
3226
3065
  return new ConstantArbitrary([value]);
3227
3066
  }
3228
-
3229
3067
  //#endregion
3230
3068
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/TimeToDate.js
3231
3069
  const safeNaN$2 = NaN;
@@ -3248,7 +3086,6 @@ function timeToDateUnmapperWithNaN(valueForNaN) {
3248
3086
  return safeNumberIsNaN$4(time) ? valueForNaN : time;
3249
3087
  };
3250
3088
  }
3251
-
3252
3089
  //#endregion
3253
3090
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/date.js
3254
3091
  const safeNumberIsNaN$3 = Number.isNaN;
@@ -3269,7 +3106,6 @@ function date(constraints = {}) {
3269
3106
  max: intMax + 1
3270
3107
  }).map(timeToDateMapperWithNaN(valueForNaN), timeToDateUnmapperWithNaN(valueForNaN));
3271
3108
  }
3272
-
3273
3109
  //#endregion
3274
3110
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/CustomEqualSet.js
3275
3111
  var CustomEqualSet = class {
@@ -3289,7 +3125,6 @@ var CustomEqualSet = class {
3289
3125
  return this.data;
3290
3126
  }
3291
3127
  };
3292
-
3293
3128
  //#endregion
3294
3129
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/StrictlyEqualSet.js
3295
3130
  const safeNumberIsNaN$2 = Number.isNaN;
@@ -3320,7 +3155,6 @@ var StrictlyEqualSet = class {
3320
3155
  return this.data;
3321
3156
  }
3322
3157
  };
3323
-
3324
3158
  //#endregion
3325
3159
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/SameValueSet.js
3326
3160
  const safeObjectIs$2 = Object.is;
@@ -3354,7 +3188,6 @@ var SameValueSet = class {
3354
3188
  return this.data;
3355
3189
  }
3356
3190
  };
3357
-
3358
3191
  //#endregion
3359
3192
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/SameValueZeroSet.js
3360
3193
  var SameValueZeroSet = class {
@@ -3380,20 +3213,19 @@ var SameValueZeroSet = class {
3380
3213
  return this.data;
3381
3214
  }
3382
3215
  };
3383
-
3384
3216
  //#endregion
3385
3217
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uniqueArray.js
3386
3218
  function buildUniqueArraySetBuilder(constraints) {
3387
3219
  if (typeof constraints.comparator === "function") {
3388
3220
  if (constraints.selector === void 0) {
3389
- const comparator$1 = constraints.comparator;
3390
- const isEqualForBuilder$1 = (nextA, nextB) => comparator$1(nextA.value_, nextB.value_);
3391
- return () => new CustomEqualSet(isEqualForBuilder$1);
3221
+ const comparator = constraints.comparator;
3222
+ const isEqualForBuilder = (nextA, nextB) => comparator(nextA.value_, nextB.value_);
3223
+ return () => new CustomEqualSet(isEqualForBuilder);
3392
3224
  }
3393
3225
  const comparator = constraints.comparator;
3394
- const selector$1 = constraints.selector;
3395
- const refinedSelector$1 = (next) => selector$1(next.value_);
3396
- const isEqualForBuilder = (nextA, nextB) => comparator(refinedSelector$1(nextA), refinedSelector$1(nextB));
3226
+ const selector = constraints.selector;
3227
+ const refinedSelector = (next) => selector(next.value_);
3228
+ const isEqualForBuilder = (nextA, nextB) => comparator(refinedSelector(nextA), refinedSelector(nextB));
3397
3229
  return () => new CustomEqualSet(isEqualForBuilder);
3398
3230
  }
3399
3231
  const selector = constraints.selector || ((v) => v);
@@ -3410,12 +3242,10 @@ function uniqueArray(arb, constraints = {}) {
3410
3242
  const maxLength = constraints.maxLength !== void 0 ? constraints.maxLength : MaxLengthUpperBound;
3411
3243
  const maxGeneratedLength = maxGeneratedLengthFromSizeForArbitrary(constraints.size, minLength, maxLength, constraints.maxLength !== void 0);
3412
3244
  const depthIdentifier = constraints.depthIdentifier;
3413
- const setBuilder = buildUniqueArraySetBuilder(constraints);
3414
- const arrayArb = new ArrayArbitrary(arb, minLength, maxGeneratedLength, maxLength, depthIdentifier, setBuilder, []);
3245
+ const arrayArb = new ArrayArbitrary(arb, minLength, maxGeneratedLength, maxLength, depthIdentifier, buildUniqueArraySetBuilder(constraints), []);
3415
3246
  if (minLength === 0) return arrayArb;
3416
3247
  return arrayArb.filter((tab) => tab.length >= minLength);
3417
3248
  }
3418
-
3419
3249
  //#endregion
3420
3250
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/KeyValuePairsToObject.js
3421
3251
  const safeObjectCreate$1 = Object.create;
@@ -3450,7 +3280,6 @@ function keyValuePairsToObjectUnmapper(value) {
3450
3280
  if (!safeEvery(safeObjectGetOwnPropertyNames(value), buildIsValidPropertyNameFilter(value))) throw new SError("Incompatible instance received: should contain only c/e/w properties without get/set");
3451
3281
  return [safeObjectEntries$1(value), hasNullPrototype];
3452
3282
  }
3453
-
3454
3283
  //#endregion
3455
3284
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/dictionary.js
3456
3285
  function dictionaryKeyExtractor(entry) {
@@ -3466,7 +3295,6 @@ function dictionary(keyArb, valueArb, constraints = {}) {
3466
3295
  depthIdentifier: constraints.depthIdentifier
3467
3296
  }), noNullPrototype ? constant(false) : boolean()).map(keyValuePairsToObjectMapper, keyValuePairsToObjectUnmapper);
3468
3297
  }
3469
-
3470
3298
  //#endregion
3471
3299
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/FrequencyArbitrary.js
3472
3300
  const safePositiveInfinity$7 = Number.POSITIVE_INFINITY;
@@ -3480,20 +3308,18 @@ var FrequencyArbitrary = class FrequencyArbitrary extends Arbitrary {
3480
3308
  if (warbs.length === 0) throw new Error(`${label} expects at least one weighted arbitrary`);
3481
3309
  let totalWeight = 0;
3482
3310
  for (let idx = 0; idx !== warbs.length; ++idx) {
3483
- const currentArbitrary = warbs[idx].arbitrary;
3484
- if (currentArbitrary === void 0) throw new Error(`${label} expects arbitraries to be specified`);
3311
+ if (warbs[idx].arbitrary === void 0) throw new Error(`${label} expects arbitraries to be specified`);
3485
3312
  const currentWeight = warbs[idx].weight;
3486
3313
  totalWeight += currentWeight;
3487
3314
  if (!safeNumberIsInteger$4(currentWeight)) throw new Error(`${label} expects weights to be integer values`);
3488
3315
  if (currentWeight < 0) throw new Error(`${label} expects weights to be superior or equal to 0`);
3489
3316
  }
3490
3317
  if (totalWeight <= 0) throw new Error(`${label} expects the sum of weights to be strictly superior to 0`);
3491
- const sanitizedConstraints = {
3318
+ return new FrequencyArbitrary(warbs, {
3492
3319
  depthBias: depthBiasFromSizeForArbitrary(constraints.depthSize, constraints.maxDepth !== void 0),
3493
3320
  maxDepth: constraints.maxDepth != void 0 ? constraints.maxDepth : safePositiveInfinity$7,
3494
3321
  withCrossShrink: !!constraints.withCrossShrink
3495
- };
3496
- return new FrequencyArbitrary(warbs, sanitizedConstraints, getDepthContextFor(constraints.depthIdentifier));
3322
+ }, getDepthContextFor(constraints.depthIdentifier));
3497
3323
  }
3498
3324
  constructor(warbs, constraints, context) {
3499
3325
  super();
@@ -3522,8 +3348,7 @@ var FrequencyArbitrary = class FrequencyArbitrary extends Arbitrary {
3522
3348
  const safeContext = context;
3523
3349
  const selectedIndex = safeContext.selectedIndex;
3524
3350
  const originalBias = safeContext.originalBias;
3525
- const originalArbitrary = this.warbs[selectedIndex].arbitrary;
3526
- const originalShrinks = originalArbitrary.shrink(value, safeContext.originalContext).map((v) => this.mapIntoValue(selectedIndex, v, null, originalBias));
3351
+ const originalShrinks = this.warbs[selectedIndex].arbitrary.shrink(value, safeContext.originalContext).map((v) => this.mapIntoValue(selectedIndex, v, null, originalBias));
3527
3352
  if (safeContext.clonedMrngForFallbackFirst !== null) {
3528
3353
  if (safeContext.cachedGeneratedForFirst === void 0) safeContext.cachedGeneratedForFirst = this.safeGenerateForIndex(safeContext.clonedMrngForFallbackFirst, 0, originalBias);
3529
3354
  const valueFromFirst = safeContext.cachedGeneratedForFirst;
@@ -3590,7 +3415,6 @@ var FrequencyArbitrary = class FrequencyArbitrary extends Arbitrary {
3590
3415
  return -safeMathMin$2(this.totalWeight * depthBenefit, safeMaxSafeInteger$1) || 0;
3591
3416
  }
3592
3417
  };
3593
-
3594
3418
  //#endregion
3595
3419
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/oneof.js
3596
3420
  function isOneOfContraints(param) {
@@ -3606,13 +3430,12 @@ function toWeightedArbitrary(maybeWeightedArbitrary) {
3606
3430
  function oneof(...args) {
3607
3431
  const constraints = args[0];
3608
3432
  if (isOneOfContraints(constraints)) {
3609
- const weightedArbs$1 = safeMap(safeSlice(args, 1), toWeightedArbitrary);
3610
- return FrequencyArbitrary.from(weightedArbs$1, constraints, "fc.oneof");
3433
+ const weightedArbs = safeMap(safeSlice(args, 1), toWeightedArbitrary);
3434
+ return FrequencyArbitrary.from(weightedArbs, constraints, "fc.oneof");
3611
3435
  }
3612
3436
  const weightedArbs = safeMap(args, toWeightedArbitrary);
3613
3437
  return FrequencyArbitrary.from(weightedArbs, {}, "fc.oneof");
3614
3438
  }
3615
-
3616
3439
  //#endregion
3617
3440
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/nat.js
3618
3441
  const safeNumberIsInteger$3 = Number.isInteger;
@@ -3622,7 +3445,6 @@ function nat(arg) {
3622
3445
  if (!safeNumberIsInteger$3(max)) throw new Error("fc.nat maximum value should be an integer");
3623
3446
  return new IntegerArbitrary(0, max);
3624
3447
  }
3625
-
3626
3448
  //#endregion
3627
3449
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/IndexToMappedConstant.js
3628
3450
  const safeObjectIs$1 = Object.is;
@@ -3684,7 +3506,6 @@ function indexToMappedConstantUnmapperFor(entries) {
3684
3506
  return choiceIndex;
3685
3507
  };
3686
3508
  }
3687
-
3688
3509
  //#endregion
3689
3510
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/mapToConstant.js
3690
3511
  function computeNumChoices(options) {
@@ -3698,18 +3519,16 @@ function computeNumChoices(options) {
3698
3519
  return numChoices;
3699
3520
  }
3700
3521
  function mapToConstant(...entries) {
3701
- const numChoices = computeNumChoices(entries);
3702
- return nat({ max: numChoices - 1 }).map(indexToMappedConstantMapperFor(entries), indexToMappedConstantUnmapperFor(entries));
3522
+ return nat({ max: computeNumChoices(entries) - 1 }).map(indexToMappedConstantMapperFor(entries), indexToMappedConstantUnmapperFor(entries));
3703
3523
  }
3704
-
3705
3524
  //#endregion
3706
3525
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/TokenizeString.js
3707
3526
  function tokenizeString(patternsArb, value, minLength, maxLength) {
3708
3527
  if (value.length === 0) {
3709
- if (minLength > 0) return void 0;
3528
+ if (minLength > 0) return;
3710
3529
  return [];
3711
3530
  }
3712
- if (maxLength <= 0) return void 0;
3531
+ if (maxLength <= 0) return;
3713
3532
  const stack = [{
3714
3533
  endIndexChunks: 0,
3715
3534
  nextStartIndex: 1,
@@ -3739,9 +3558,7 @@ function tokenizeString(patternsArb, value, minLength, maxLength) {
3739
3558
  }
3740
3559
  }
3741
3560
  }
3742
- return void 0;
3743
3561
  }
3744
-
3745
3562
  //#endregion
3746
3563
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/PatternsToString.js
3747
3564
  function patternsToStringMapper(tab) {
@@ -3764,7 +3581,6 @@ function patternsToStringUnmapperFor(patternsArb, constraints) {
3764
3581
  return tokens;
3765
3582
  };
3766
3583
  }
3767
-
3768
3584
  //#endregion
3769
3585
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/SlicesForStringBuilder.js
3770
3586
  const dangerousStrings = [
@@ -3796,9 +3612,9 @@ function computeCandidateStringLegacy(dangerous, charArbitrary, stringSplitter)
3796
3612
  try {
3797
3613
  candidate = stringSplitter(dangerous);
3798
3614
  } catch (err) {
3799
- return void 0;
3615
+ return;
3800
3616
  }
3801
- for (const entry of candidate) if (!charArbitrary.canShrinkWithoutContext(entry)) return void 0;
3617
+ for (const entry of candidate) if (!charArbitrary.canShrinkWithoutContext(entry)) return;
3802
3618
  return candidate;
3803
3619
  }
3804
3620
  function createSlicesForStringLegacy(charArbitrary, stringSplitter) {
@@ -3828,7 +3644,6 @@ function createSlicesForString(charArbitrary, constraints) {
3828
3644
  for (const slice of slices) if (patternsToStringUnmapperIsValidLength(slice, constraints)) safePush(slicesForConstraints, slice);
3829
3645
  return slicesForConstraints;
3830
3646
  }
3831
-
3832
3647
  //#endregion
3833
3648
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/data/GraphemeRanges.js
3834
3649
  const asciiAlphabetRanges = [[0, 127]];
@@ -4813,7 +4628,6 @@ const autonomousDecomposableGraphemeRanges = [
4813
4628
  [119134, 119140],
4814
4629
  [119227, 119232]
4815
4630
  ];
4816
-
4817
4631
  //#endregion
4818
4632
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/GraphemeRangesHelpers.js
4819
4633
  const safeStringFromCodePoint = String.fromCodePoint;
@@ -4851,8 +4665,7 @@ function intersectGraphemeRanges(rangesA, rangesB) {
4851
4665
  const max = safeMathMin$1(rangeAMax, rangeBMax);
4852
4666
  if (mergedRanges.length >= 1) {
4853
4667
  const lastMergedRange = mergedRanges[mergedRanges.length - 1];
4854
- const lastMergedRangeMax = lastMergedRange.length === 1 ? lastMergedRange[0] : lastMergedRange[1];
4855
- if (lastMergedRangeMax + 1 === min) {
4668
+ if ((lastMergedRange.length === 1 ? lastMergedRange[0] : lastMergedRange[1]) + 1 === min) {
4856
4669
  min = lastMergedRange[0];
4857
4670
  safePop(mergedRanges);
4858
4671
  }
@@ -4864,7 +4677,6 @@ function intersectGraphemeRanges(rangesA, rangesB) {
4864
4677
  }
4865
4678
  return mergedRanges;
4866
4679
  }
4867
-
4868
4680
  //#endregion
4869
4681
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/StringUnitArbitrary.js
4870
4682
  const registeredStringUnitInstancesMap = Object.create(null);
@@ -4899,7 +4711,6 @@ function getOrCreateStringUnitInstance(type, alphabet) {
4899
4711
  function stringUnit(type, alphabet) {
4900
4712
  return getOrCreateStringUnitInstance(type, alphabet);
4901
4713
  }
4902
-
4903
4714
  //#endregion
4904
4715
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/string.js
4905
4716
  const safeObjectAssign$1 = Object.assign;
@@ -4918,10 +4729,8 @@ function string(constraints = {}) {
4918
4729
  const charArbitrary = extractUnitArbitrary(constraints);
4919
4730
  const unmapper = patternsToStringUnmapperFor(charArbitrary, constraints);
4920
4731
  const experimentalCustomSlices = createSlicesForString(charArbitrary, constraints);
4921
- const enrichedConstraints = safeObjectAssign$1(safeObjectAssign$1({}, constraints), { experimentalCustomSlices });
4922
- return array(charArbitrary, enrichedConstraints).map(patternsToStringMapper, unmapper);
4732
+ return array(charArbitrary, safeObjectAssign$1(safeObjectAssign$1({}, constraints), { experimentalCustomSlices })).map(patternsToStringMapper, unmapper);
4923
4733
  }
4924
-
4925
4734
  //#endregion
4926
4735
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/ArrayInt64.js
4927
4736
  const Zero64 = {
@@ -4970,10 +4779,9 @@ function substract64DataInternal(a, b) {
4970
4779
  function substract64Internal(a, b) {
4971
4780
  if (a.sign === 1 && b.sign === -1) {
4972
4781
  const low = a.data[1] + b.data[1];
4973
- const high = a.data[0] + b.data[0] + (low > 4294967295 ? 1 : 0);
4974
4782
  return {
4975
4783
  sign: 1,
4976
- data: [high >>> 0, low >>> 0]
4784
+ data: [a.data[0] + b.data[0] + (low > 4294967295 ? 1 : 0) >>> 0, low >>> 0]
4977
4785
  };
4978
4786
  }
4979
4787
  return {
@@ -5014,7 +4822,6 @@ function logLike64(a) {
5014
4822
  data: [0, Math.floor(Math.log(a.data[0] * 4294967296 + a.data[1]) / Math.log(2))]
5015
4823
  };
5016
4824
  }
5017
-
5018
4825
  //#endregion
5019
4826
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/ArrayInt64Arbitrary.js
5020
4827
  var ArrayInt64Arbitrary = class ArrayInt64Arbitrary extends Arbitrary {
@@ -5123,10 +4930,8 @@ var ArrayInt64Arbitrary = class ArrayInt64Arbitrary extends Arbitrary {
5123
4930
  }
5124
4931
  };
5125
4932
  function arrayInt64(min, max) {
5126
- const arb = new ArrayInt64Arbitrary(min, max);
5127
- return arb;
4933
+ return new ArrayInt64Arbitrary(min, max);
5128
4934
  }
5129
-
5130
4935
  //#endregion
5131
4936
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/DoubleHelpers.js
5132
4937
  const safeNegativeInfinity$6 = Number.NEGATIVE_INFINITY;
@@ -5164,10 +4969,7 @@ function positiveNumberToInt64(n) {
5164
4969
  return [~~(n / 4294967296), n >>> 0];
5165
4970
  }
5166
4971
  function indexInDoubleFromDecomp(exponent, significand) {
5167
- if (exponent === -1022) {
5168
- const rescaledSignificand$1 = significand * 2 ** 52;
5169
- return positiveNumberToInt64(rescaledSignificand$1);
5170
- }
4972
+ if (exponent === -1022) return positiveNumberToInt64(significand * 2 ** 52);
5171
4973
  const rescaledSignificand = (significand - 1) * 2 ** 52;
5172
4974
  const exponentOnlyHigh = (exponent + 1023) * 2 ** 20;
5173
4975
  const index = positiveNumberToInt64(rescaledSignificand);
@@ -5212,21 +5014,19 @@ function indexToDouble(index) {
5212
5014
  if (index.data[0] < 2097152) return (index.data[0] * 4294967296 + index.data[1]) * 2 ** -1074;
5213
5015
  const postIndexHigh = index.data[0] - 2097152;
5214
5016
  const exponent = -1021 + (postIndexHigh >> 20);
5215
- const significand = 1 + ((postIndexHigh & 1048575) * 2 ** 32 + index.data[1]) * safeEpsilon;
5216
- return significand * 2 ** exponent;
5017
+ return (1 + ((postIndexHigh & 1048575) * 2 ** 32 + index.data[1]) * safeEpsilon) * 2 ** exponent;
5217
5018
  }
5218
-
5219
5019
  //#endregion
5220
5020
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/FloatingOnlyHelpers.js
5221
5021
  const safeNumberIsInteger$2 = Number.isInteger;
5222
5022
  const safeObjectIs = Object.is;
5223
5023
  const safeNegativeInfinity$5 = Number.NEGATIVE_INFINITY;
5224
5024
  const safePositiveInfinity$5 = Number.POSITIVE_INFINITY;
5225
- function refineConstraintsForFloatingOnly(constraints, maxValue, maxNonIntegerValue$2, onlyIntegersAfterThisValue$2) {
5025
+ function refineConstraintsForFloatingOnly(constraints, maxValue, maxNonIntegerValue, onlyIntegersAfterThisValue) {
5226
5026
  const { noDefaultInfinity = false, minExcluded = false, maxExcluded = false, min = noDefaultInfinity ? -maxValue : safeNegativeInfinity$5, max = noDefaultInfinity ? maxValue : safePositiveInfinity$5 } = constraints;
5227
- const effectiveMin = minExcluded ? min < -maxNonIntegerValue$2 ? -onlyIntegersAfterThisValue$2 : Math.max(min, -maxNonIntegerValue$2) : min === safeNegativeInfinity$5 ? Math.max(min, -onlyIntegersAfterThisValue$2) : Math.max(min, -maxNonIntegerValue$2);
5228
- const effectiveMax = maxExcluded ? max > maxNonIntegerValue$2 ? onlyIntegersAfterThisValue$2 : Math.min(max, maxNonIntegerValue$2) : max === safePositiveInfinity$5 ? Math.min(max, onlyIntegersAfterThisValue$2) : Math.min(max, maxNonIntegerValue$2);
5229
- const fullConstraints = {
5027
+ const effectiveMin = minExcluded ? min < -maxNonIntegerValue ? -onlyIntegersAfterThisValue : Math.max(min, -maxNonIntegerValue) : min === safeNegativeInfinity$5 ? Math.max(min, -onlyIntegersAfterThisValue) : Math.max(min, -maxNonIntegerValue);
5028
+ const effectiveMax = maxExcluded ? max > maxNonIntegerValue ? onlyIntegersAfterThisValue : Math.min(max, maxNonIntegerValue) : max === safePositiveInfinity$5 ? Math.min(max, onlyIntegersAfterThisValue) : Math.min(max, maxNonIntegerValue);
5029
+ return {
5230
5030
  noDefaultInfinity: false,
5231
5031
  minExcluded: minExcluded || (min !== safeNegativeInfinity$5 || minExcluded) && safeNumberIsInteger$2(effectiveMin),
5232
5032
  maxExcluded: maxExcluded || (max !== safePositiveInfinity$5 || maxExcluded) && safeNumberIsInteger$2(effectiveMax),
@@ -5234,9 +5034,7 @@ function refineConstraintsForFloatingOnly(constraints, maxValue, maxNonIntegerVa
5234
5034
  max: safeObjectIs(effectiveMax, 0) ? -0 : effectiveMax,
5235
5035
  noNaN: constraints.noNaN || false
5236
5036
  };
5237
- return fullConstraints;
5238
5037
  }
5239
-
5240
5038
  //#endregion
5241
5039
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/DoubleOnlyHelpers.js
5242
5040
  const safeNegativeInfinity$4 = Number.NEGATIVE_INFINITY;
@@ -5248,13 +5046,12 @@ function refineConstraintsForDoubleOnly(constraints) {
5248
5046
  return refineConstraintsForFloatingOnly(constraints, safeMaxValue$2, maxNonIntegerValue$1, onlyIntegersAfterThisValue$1);
5249
5047
  }
5250
5048
  function doubleOnlyMapper(value) {
5251
- return value === onlyIntegersAfterThisValue$1 ? safePositiveInfinity$4 : value === -onlyIntegersAfterThisValue$1 ? safeNegativeInfinity$4 : value;
5049
+ return value === 4503599627370496 ? safePositiveInfinity$4 : value === -4503599627370496 ? safeNegativeInfinity$4 : value;
5252
5050
  }
5253
5051
  function doubleOnlyUnmapper(value) {
5254
5052
  if (typeof value !== "number") throw new Error("Unsupported type");
5255
5053
  return value === safePositiveInfinity$4 ? onlyIntegersAfterThisValue$1 : value === safeNegativeInfinity$4 ? -onlyIntegersAfterThisValue$1 : value;
5256
5054
  }
5257
-
5258
5055
  //#endregion
5259
5056
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/double.js
5260
5057
  const safeNumberIsInteger$1 = Number.isInteger;
@@ -5298,14 +5095,11 @@ function double(constraints = {}) {
5298
5095
  if (!constraints.noInteger) return anyDouble(constraints);
5299
5096
  return anyDouble(refineConstraintsForDoubleOnly(constraints)).map(doubleOnlyMapper, doubleOnlyUnmapper).filter(numberIsNotInteger$1);
5300
5097
  }
5301
-
5302
5098
  //#endregion
5303
5099
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/FloatHelpers.js
5304
5100
  const safeNegativeInfinity$2 = Number.NEGATIVE_INFINITY;
5305
5101
  const safePositiveInfinity$2 = Number.POSITIVE_INFINITY;
5306
- const MIN_VALUE_32 = 2 ** -126 * 2 ** -23;
5307
5102
  const MAX_VALUE_32 = 2 ** 127 * (1 + (2 ** 23 - 1) / 2 ** 23);
5308
- const EPSILON_32 = 2 ** -23;
5309
5103
  const INDEX_POSITIVE_INFINITY = 2139095040;
5310
5104
  const INDEX_NEGATIVE_INFINITY = -2139095041;
5311
5105
  const f32 = new Float32Array(1);
@@ -5347,10 +5141,8 @@ function indexToFloat(index) {
5347
5141
  if (index < 16777216) return index * 2 ** -149;
5348
5142
  const postIndex = index - 16777216;
5349
5143
  const exponent = -125 + (postIndex >> 23);
5350
- const significand = 1 + (postIndex & 8388607) / 8388608;
5351
- return significand * 2 ** exponent;
5144
+ return (1 + (postIndex & 8388607) / 8388608) * 2 ** exponent;
5352
5145
  }
5353
-
5354
5146
  //#endregion
5355
5147
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/FloatOnlyHelpers.js
5356
5148
  const safeNegativeInfinity$1 = Number.NEGATIVE_INFINITY;
@@ -5362,13 +5154,12 @@ function refineConstraintsForFloatOnly(constraints) {
5362
5154
  return refineConstraintsForFloatingOnly(constraints, safeMaxValue, maxNonIntegerValue, onlyIntegersAfterThisValue);
5363
5155
  }
5364
5156
  function floatOnlyMapper(value) {
5365
- return value === onlyIntegersAfterThisValue ? safePositiveInfinity$1 : value === -onlyIntegersAfterThisValue ? safeNegativeInfinity$1 : value;
5157
+ return value === 8388608 ? safePositiveInfinity$1 : value === -8388608 ? safeNegativeInfinity$1 : value;
5366
5158
  }
5367
5159
  function floatOnlyUnmapper(value) {
5368
5160
  if (typeof value !== "number") throw new Error("Unsupported type");
5369
5161
  return value === safePositiveInfinity$1 ? onlyIntegersAfterThisValue : value === safeNegativeInfinity$1 ? -onlyIntegersAfterThisValue : value;
5370
5162
  }
5371
-
5372
5163
  //#endregion
5373
5164
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/float.js
5374
5165
  const safeNumberIsInteger = Number.isInteger;
@@ -5378,7 +5169,6 @@ const safeNegativeInfinity = Number.NEGATIVE_INFINITY;
5378
5169
  const safePositiveInfinity = Number.POSITIVE_INFINITY;
5379
5170
  const safeNaN = NaN;
5380
5171
  function safeFloatToIndex(f, constraintsLabel) {
5381
- const conversionTrick = "you can convert any double to a 32-bit float by using `Math.fround(myDouble)`";
5382
5172
  const errorMessage = "fc.float constraints." + constraintsLabel + " must be a 32-bit float - you can convert any double to a 32-bit float by using `Math.fround(myDouble)`";
5383
5173
  if (safeNumberIsNaN(f) || safeMathFround(f) !== f) throw new Error(errorMessage);
5384
5174
  return floatToIndex(f);
@@ -5419,7 +5209,6 @@ function float(constraints = {}) {
5419
5209
  if (!constraints.noInteger) return anyFloat(constraints);
5420
5210
  return anyFloat(refineConstraintsForFloatOnly(constraints)).map(floatOnlyMapper, floatOnlyUnmapper).filter(numberIsNotInteger);
5421
5211
  }
5422
-
5423
5212
  //#endregion
5424
5213
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/maxSafeInteger.js
5425
5214
  const safeMinSafeInteger = Number.MIN_SAFE_INTEGER;
@@ -5427,7 +5216,6 @@ const safeMaxSafeInteger = Number.MAX_SAFE_INTEGER;
5427
5216
  function maxSafeInteger() {
5428
5217
  return new IntegerArbitrary(safeMinSafeInteger, safeMaxSafeInteger);
5429
5218
  }
5430
-
5431
5219
  //#endregion
5432
5220
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/CodePointsToString.js
5433
5221
  function codePointsToStringMapper(tab) {
@@ -5437,7 +5225,6 @@ function codePointsToStringUnmapper(value) {
5437
5225
  if (typeof value !== "string") throw new Error("Cannot unmap the passed value");
5438
5226
  return [...value];
5439
5227
  }
5440
-
5441
5228
  //#endregion
5442
5229
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/LazyArbitrary.js
5443
5230
  var LazyArbitrary = class extends Arbitrary {
@@ -5459,7 +5246,6 @@ var LazyArbitrary = class extends Arbitrary {
5459
5246
  return this.underlying.shrink(value, context);
5460
5247
  }
5461
5248
  };
5462
-
5463
5249
  //#endregion
5464
5250
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/letrec.js
5465
5251
  const safeObjectCreate = Object.create;
@@ -5479,7 +5265,6 @@ function letrec(builder) {
5479
5265
  }
5480
5266
  return strictArbs;
5481
5267
  }
5482
-
5483
5268
  //#endregion
5484
5269
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/float32Array.js
5485
5270
  function toTypedMapper$1(data) {
@@ -5492,7 +5277,6 @@ function fromTypedUnmapper$1(value) {
5492
5277
  function float32Array(constraints = {}) {
5493
5278
  return array(float(constraints), constraints).map(toTypedMapper$1, fromTypedUnmapper$1);
5494
5279
  }
5495
-
5496
5280
  //#endregion
5497
5281
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/float64Array.js
5498
5282
  function toTypedMapper(data) {
@@ -5505,10 +5289,9 @@ function fromTypedUnmapper(value) {
5505
5289
  function float64Array(constraints = {}) {
5506
5290
  return array(double(constraints), constraints).map(toTypedMapper, fromTypedUnmapper);
5507
5291
  }
5508
-
5509
5292
  //#endregion
5510
5293
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/TypedIntArrayArbitraryBuilder.js
5511
- var __rest = void 0 && (void 0).__rest || function(s, e) {
5294
+ var __rest = function(s, e) {
5512
5295
  var t = {};
5513
5296
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
5514
5297
  if (s != null && typeof Object.getOwnPropertySymbols === "function") {
@@ -5530,49 +5313,41 @@ function typedIntArrayArbitraryArbitraryBuilder(constraints, defaultMin, default
5530
5313
  return [...value];
5531
5314
  });
5532
5315
  }
5533
-
5534
5316
  //#endregion
5535
5317
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/int16Array.js
5536
5318
  function int16Array(constraints = {}) {
5537
5319
  return typedIntArrayArbitraryArbitraryBuilder(constraints, -32768, 32767, SInt16Array, integer);
5538
5320
  }
5539
-
5540
5321
  //#endregion
5541
5322
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/int32Array.js
5542
5323
  function int32Array(constraints = {}) {
5543
5324
  return typedIntArrayArbitraryArbitraryBuilder(constraints, -2147483648, 2147483647, SInt32Array, integer);
5544
5325
  }
5545
-
5546
5326
  //#endregion
5547
5327
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/int8Array.js
5548
5328
  function int8Array(constraints = {}) {
5549
5329
  return typedIntArrayArbitraryArbitraryBuilder(constraints, -128, 127, SInt8Array, integer);
5550
5330
  }
5551
-
5552
5331
  //#endregion
5553
5332
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint16Array.js
5554
5333
  function uint16Array(constraints = {}) {
5555
5334
  return typedIntArrayArbitraryArbitraryBuilder(constraints, 0, 65535, SUint16Array, integer);
5556
5335
  }
5557
-
5558
5336
  //#endregion
5559
5337
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint32Array.js
5560
5338
  function uint32Array(constraints = {}) {
5561
5339
  return typedIntArrayArbitraryArbitraryBuilder(constraints, 0, 4294967295, SUint32Array, integer);
5562
5340
  }
5563
-
5564
5341
  //#endregion
5565
5342
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint8Array.js
5566
5343
  function uint8Array(constraints = {}) {
5567
5344
  return typedIntArrayArbitraryArbitraryBuilder(constraints, 0, 255, SUint8Array, integer);
5568
5345
  }
5569
-
5570
5346
  //#endregion
5571
5347
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/uint8ClampedArray.js
5572
5348
  function uint8ClampedArray(constraints = {}) {
5573
5349
  return typedIntArrayArbitraryArbitraryBuilder(constraints, 0, 255, SUint8ClampedArray, integer);
5574
5350
  }
5575
-
5576
5351
  //#endregion
5577
5352
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/WithShrinkFromOtherArbitrary.js
5578
5353
  function isSafeContext(context) {
@@ -5604,7 +5379,6 @@ var WithShrinkFromOtherArbitrary = class extends Arbitrary {
5604
5379
  return this.shrinkerArbitrary.shrink(value, context.shrinkerContext).map(toShrinkerValue);
5605
5380
  }
5606
5381
  };
5607
-
5608
5382
  //#endregion
5609
5383
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/RestrictedIntegerArbitraryBuilder.js
5610
5384
  function restrictedIntegerArbitraryBuilder(min, maxGenerated, max) {
@@ -5613,13 +5387,11 @@ function restrictedIntegerArbitraryBuilder(min, maxGenerated, max) {
5613
5387
  max: maxGenerated
5614
5388
  });
5615
5389
  if (maxGenerated === max) return generatorArbitrary;
5616
- const shrinkerArbitrary = integer({
5390
+ return new WithShrinkFromOtherArbitrary(generatorArbitrary, integer({
5617
5391
  min,
5618
5392
  max
5619
- });
5620
- return new WithShrinkFromOtherArbitrary(generatorArbitrary, shrinkerArbitrary);
5393
+ }));
5621
5394
  }
5622
-
5623
5395
  //#endregion
5624
5396
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/sparseArray.js
5625
5397
  const safeMathMin = Math.min;
@@ -5632,32 +5404,28 @@ function extractMaxIndex(indexesAndValues) {
5632
5404
  return maxIndex;
5633
5405
  }
5634
5406
  function arrayFromItems(length, indexesAndValues) {
5635
- const array$1 = SArray(length);
5407
+ const array = SArray(length);
5636
5408
  for (let index = 0; index !== indexesAndValues.length; ++index) {
5637
5409
  const it = indexesAndValues[index];
5638
- if (it[0] < length) array$1[it[0]] = it[1];
5410
+ if (it[0] < length) array[it[0]] = it[1];
5639
5411
  }
5640
- return array$1;
5412
+ return array;
5641
5413
  }
5642
5414
  function sparseArray(arb, constraints = {}) {
5643
5415
  const { size, minNumElements = 0, maxLength = MaxLengthUpperBound, maxNumElements = maxLength, noTrailingHole, depthIdentifier } = constraints;
5644
- const maxGeneratedNumElements = maxGeneratedLengthFromSizeForArbitrary(size, minNumElements, maxNumElements, constraints.maxNumElements !== void 0);
5645
- const maxGeneratedLength = maxGeneratedLengthFromSizeForArbitrary(size, maxGeneratedNumElements, maxLength, constraints.maxLength !== void 0);
5416
+ const maxGeneratedLength = maxGeneratedLengthFromSizeForArbitrary(size, maxGeneratedLengthFromSizeForArbitrary(size, minNumElements, maxNumElements, constraints.maxNumElements !== void 0), maxLength, constraints.maxLength !== void 0);
5646
5417
  if (minNumElements > maxLength) throw new Error(`The minimal number of non-hole elements cannot be higher than the maximal length of the array`);
5647
5418
  if (minNumElements > maxNumElements) throw new Error(`The minimal number of non-hole elements cannot be higher than the maximal number of non-holes`);
5648
5419
  const resultedMaxNumElements = safeMathMin(maxNumElements, maxLength);
5649
5420
  const resultedSizeMaxNumElements = constraints.maxNumElements !== void 0 || size !== void 0 ? size : "=";
5650
- const maxGeneratedIndexAuthorized = safeMathMax(maxGeneratedLength - 1, 0);
5651
- const maxIndexAuthorized = safeMathMax(maxLength - 1, 0);
5652
- const sparseArrayNoTrailingHole = uniqueArray(tuple(restrictedIntegerArbitraryBuilder(0, maxGeneratedIndexAuthorized, maxIndexAuthorized), arb), {
5421
+ const sparseArrayNoTrailingHole = uniqueArray(tuple(restrictedIntegerArbitraryBuilder(0, safeMathMax(maxGeneratedLength - 1, 0), safeMathMax(maxLength - 1, 0)), arb), {
5653
5422
  size: resultedSizeMaxNumElements,
5654
5423
  minLength: minNumElements,
5655
5424
  maxLength: resultedMaxNumElements,
5656
5425
  selector: (item) => item[0],
5657
5426
  depthIdentifier
5658
5427
  }).map((items) => {
5659
- const lastIndex = extractMaxIndex(items);
5660
- return arrayFromItems(lastIndex + 1, items);
5428
+ return arrayFromItems(extractMaxIndex(items) + 1, items);
5661
5429
  }, (value) => {
5662
5430
  if (!safeArrayIsArray(value)) throw new Error("Not supported entry type");
5663
5431
  if (noTrailingHole && value.length !== 0 && !(value.length - 1 in value)) throw new Error("No trailing hole");
@@ -5676,7 +5444,6 @@ function sparseArray(arb, constraints = {}) {
5676
5444
  return [value, value.length];
5677
5445
  });
5678
5446
  }
5679
-
5680
5447
  //#endregion
5681
5448
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/ArrayToMap.js
5682
5449
  function arrayToMapMapper(data) {
@@ -5687,7 +5454,6 @@ function arrayToMapUnmapper(value) {
5687
5454
  if (!("constructor" in value) || value.constructor !== Map) throw new Error("Incompatible instance received: should be of exact type Map");
5688
5455
  return Array.from(value);
5689
5456
  }
5690
-
5691
5457
  //#endregion
5692
5458
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/ArrayToSet.js
5693
5459
  function arrayToSetMapper(data) {
@@ -5698,7 +5464,6 @@ function arrayToSetUnmapper(value) {
5698
5464
  if (!("constructor" in value) || value.constructor !== Set) throw new Error("Incompatible instance received: should be of exact type Set");
5699
5465
  return Array.from(value);
5700
5466
  }
5701
-
5702
5467
  //#endregion
5703
5468
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/AnyArbitraryBuilder.js
5704
5469
  function mapOf(ka, va, maxKeys, size, depthIdentifier) {
@@ -5767,17 +5532,14 @@ function anyArbitraryBuilder(constraints) {
5767
5532
  object: dictOf(tie("keys"), tie("anything"), maxKeys, size, depthIdentifier, constraints.withNullPrototype)
5768
5533
  })).anything;
5769
5534
  }
5770
-
5771
5535
  //#endregion
5772
5536
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/fullUnicodeString.js
5773
5537
  const safeObjectAssign = Object.assign;
5774
5538
  function fullUnicodeString(constraints = {}) {
5775
5539
  const charArbitrary = fullUnicode();
5776
5540
  const experimentalCustomSlices = createSlicesForStringLegacy(charArbitrary, codePointsToStringUnmapper);
5777
- const enrichedConstraints = safeObjectAssign(safeObjectAssign({}, constraints), { experimentalCustomSlices });
5778
- return array(charArbitrary, enrichedConstraints).map(codePointsToStringMapper, codePointsToStringUnmapper);
5541
+ return array(charArbitrary, safeObjectAssign(safeObjectAssign({}, constraints), { experimentalCustomSlices })).map(codePointsToStringMapper, codePointsToStringUnmapper);
5779
5542
  }
5780
-
5781
5543
  //#endregion
5782
5544
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/mappers/UnboxedToBoxed.js
5783
5545
  function unboxedToBoxedMapper(value) {
@@ -5792,13 +5554,11 @@ function unboxedToBoxedUnmapper(value) {
5792
5554
  if (typeof value !== "object" || value === null || !("constructor" in value)) return value;
5793
5555
  return value.constructor === SBoolean || value.constructor === SNumber || value.constructor === SString ? value.valueOf() : value;
5794
5556
  }
5795
-
5796
5557
  //#endregion
5797
5558
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/builders/BoxedArbitraryBuilder.js
5798
5559
  function boxedArbitraryBuilder(arb) {
5799
5560
  return arb.map(unboxedToBoxedMapper, unboxedToBoxedUnmapper);
5800
5561
  }
5801
-
5802
5562
  //#endregion
5803
5563
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/_internals/helpers/QualifiedObjectConstraints.js
5804
5564
  function defaultValues(constraints, stringArbitrary) {
@@ -5842,13 +5602,11 @@ function toQualifiedObjectConstraints(settings = {}) {
5842
5602
  withSparseArray: orDefault(settings.withSparseArray, false)
5843
5603
  };
5844
5604
  }
5845
-
5846
5605
  //#endregion
5847
5606
  //#region ../../node_modules/.pnpm/fast-check@3.23.2/node_modules/fast-check/lib/esm/arbitrary/anything.js
5848
5607
  function anything(constraints) {
5849
5608
  return anyArbitraryBuilder(toQualifiedObjectConstraints(constraints));
5850
5609
  }
5851
-
5852
5610
  //#endregion
5853
5611
  //#region src/vocab/actor.test.ts
5854
5612
  function actorClass() {
@@ -5861,8 +5619,8 @@ function actor() {
5861
5619
  return actorClassAndInstance().map(([, instance]) => instance);
5862
5620
  }
5863
5621
  test("isActor()", () => {
5864
- assert$1(property(actor(), (actor$1) => assert(isActor(actor$1))));
5865
- assert$1(property(anything({
5622
+ assert(property(actor(), (actor) => assert$1(isActor(actor))));
5623
+ assert(property(anything({
5866
5624
  withBigInt: true,
5867
5625
  withBoxedValues: true,
5868
5626
  withDate: true,
@@ -5875,10 +5633,10 @@ test("isActor()", () => {
5875
5633
  }), (nonActor) => assertFalse(isActor(nonActor))));
5876
5634
  });
5877
5635
  test("getActorTypeName()", () => {
5878
- assert$1(property(actorClassAndInstance(), ([cls, instance]) => assertEquals(getActorTypeName(instance), cls.name)));
5636
+ assert(property(actorClassAndInstance(), ([cls, instance]) => assertEquals(getActorTypeName(instance), cls.name)));
5879
5637
  });
5880
5638
  test("getActorClassByTypeName()", () => {
5881
- assert$1(property(actorClassAndInstance(), ([cls, instance]) => assertStrictEquals(getActorClassByTypeName(getActorTypeName(instance)), cls)));
5639
+ assert(property(actorClassAndInstance(), ([cls, instance]) => assertStrictEquals(getActorClassByTypeName(getActorTypeName(instance)), cls)));
5882
5640
  });
5883
5641
  test({
5884
5642
  name: "getActorHandle()",
@@ -5893,13 +5651,13 @@ test({
5893
5651
  headers: { "Content-Type": "application/jrd+json" }
5894
5652
  });
5895
5653
  const actorId = new URL("https://foo.example.com/@john");
5896
- const actor$1 = new Person({
5654
+ const actor = new Person({
5897
5655
  id: actorId,
5898
5656
  preferredUsername: "john"
5899
5657
  });
5900
5658
  await t.step("WebFinger subject", async () => {
5901
- assertEquals(await getActorHandle(actor$1), "@johndoe@foo.example.com");
5902
- assertEquals(await getActorHandle(actor$1, { trimLeadingAt: true }), "johndoe@foo.example.com");
5659
+ assertEquals(await getActorHandle(actor), "@johndoe@foo.example.com");
5660
+ assertEquals(await getActorHandle(actor, { trimLeadingAt: true }), "johndoe@foo.example.com");
5903
5661
  assertEquals(await getActorHandle(actorId), "@johndoe@foo.example.com");
5904
5662
  assertEquals(await getActorHandle(actorId, { trimLeadingAt: true }), "johndoe@foo.example.com");
5905
5663
  });
@@ -5912,8 +5670,8 @@ test({
5912
5670
  headers: { "Content-Type": "application/jrd+json" }
5913
5671
  });
5914
5672
  await t.step("WebFinger aliases", async () => {
5915
- assertEquals(await getActorHandle(actor$1), "@johndoe@foo.example.com");
5916
- assertEquals(await getActorHandle(actor$1, { trimLeadingAt: true }), "johndoe@foo.example.com");
5673
+ assertEquals(await getActorHandle(actor), "@johndoe@foo.example.com");
5674
+ assertEquals(await getActorHandle(actor, { trimLeadingAt: true }), "johndoe@foo.example.com");
5917
5675
  assertEquals(await getActorHandle(actorId), "@johndoe@foo.example.com");
5918
5676
  assertEquals(await getActorHandle(actorId, { trimLeadingAt: true }), "johndoe@foo.example.com");
5919
5677
  });
@@ -5925,12 +5683,12 @@ test({
5925
5683
  headers: { "Content-Type": "application/jrd+json" }
5926
5684
  });
5927
5685
  await t.step("cross-origin WebFinger resources", async () => {
5928
- assertEquals(await getActorHandle(actor$1), "@john@bar.example.com");
5686
+ assertEquals(await getActorHandle(actor), "@john@bar.example.com");
5929
5687
  });
5930
5688
  esm_default.removeRoutes();
5931
5689
  esm_default.get("begin:https://foo.example.com/.well-known/webfinger?", { status: 404 });
5932
5690
  await t.step("no WebFinger", async () => {
5933
- assertEquals(await getActorHandle(actor$1), "@john@foo.example.com");
5691
+ assertEquals(await getActorHandle(actor), "@john@foo.example.com");
5934
5692
  assertRejects(() => getActorHandle(actorId), TypeError);
5935
5693
  });
5936
5694
  esm_default.hardReset();
@@ -5961,5 +5719,5 @@ test("normalizeActorHandle()", () => {
5961
5719
  assertThrows(() => normalizeActorHandle("foo@bar.com@baz.com"));
5962
5720
  assertThrows(() => normalizeActorHandle("@foo@bar.com@baz.com"));
5963
5721
  });
5964
-
5965
- //#endregion
5722
+ //#endregion
5723
+ export {};