eliscript 0.0.1 → 0.0.3

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 (417) hide show
  1. package/README.md +61 -0
  2. package/bootstrap/README.md +26 -0
  3. package/bootstrap/backends/README.md +515 -0
  4. package/bootstrap/backends/async.eli +230 -0
  5. package/bootstrap/backends/binary.eli +173 -0
  6. package/bootstrap/backends/capabilities.eli +74 -0
  7. package/bootstrap/backends/elf.eli +246 -0
  8. package/bootstrap/backends/managed.eli +5976 -0
  9. package/bootstrap/backends/memory.eli +100 -0
  10. package/bootstrap/backends/native.eli +2000 -0
  11. package/bootstrap/backends/numeric.eli +1362 -0
  12. package/bootstrap/backends/optimize.eli +79 -0
  13. package/bootstrap/backends/regexp.eli +2263 -0
  14. package/bootstrap/backends/sha256.eli +138 -0
  15. package/bootstrap/backends/wasm.eli +1161 -0
  16. package/bootstrap/compiler/analyzer.eli +165 -77
  17. package/bootstrap/compiler/compiler.eli +43 -19
  18. package/bootstrap/compiler/emitter.eli +780 -170
  19. package/bootstrap/compiler/expander.eli +136 -45
  20. package/bootstrap/compiler/formatter.eli +8 -1
  21. package/bootstrap/compiler/ir.eli +148 -45
  22. package/bootstrap/compiler/lower.eli +29 -2
  23. package/bootstrap/compiler/project.eli +51 -21
  24. package/bootstrap/compiler/reader.eli +128 -36
  25. package/bootstrap/compiler/source-map.eli +46 -4
  26. package/bootstrap/compiler/symbol.eli +2 -1
  27. package/bootstrap/compiler/syntax.eli +47 -12
  28. package/bootstrap/compiler/transient-analysis.eli +40 -4
  29. package/bootstrap/host/check-cli-legacy.mjs +163 -0
  30. package/bootstrap/host/check-cli.mjs +59 -158
  31. package/bootstrap/host/check-cli.mjs.map +1 -0
  32. package/bootstrap/host/compiler-session.eli +1579 -0
  33. package/bootstrap/host/compiler-tools.eli +513 -0
  34. package/bootstrap/host/eliscript-cli.mjs +53 -33
  35. package/bootstrap/host/eliscript-cli.mjs.map +1 -0
  36. package/bootstrap/host/project-cli-legacy.mjs +295 -0
  37. package/bootstrap/host/project-cli.mjs +74 -289
  38. package/bootstrap/host/project-cli.mjs.map +1 -0
  39. package/bootstrap/host/project-legacy.mjs +1080 -0
  40. package/bootstrap/host/project.mjs +210 -1060
  41. package/bootstrap/host/project.mjs.map +1 -0
  42. package/bootstrap/runtime/UNICODE-LICENSE.txt +39 -0
  43. package/bootstrap/runtime/memory.eli +30379 -0
  44. package/browser/host.mjs +732 -11
  45. package/browser/worker.mjs +6 -3
  46. package/compiler/eliscript-analyzer.el +371 -4
  47. package/compiler/eliscript-cli.el +84 -1
  48. package/compiler/eliscript-emitter.el +1189 -256
  49. package/compiler/eliscript-expander.el +147 -10
  50. package/compiler/eliscript-ir-emitter.el +725 -208
  51. package/compiler/eliscript-lower.el +127 -1
  52. package/compiler/eliscript-portable.el +177 -51
  53. package/compiler/eliscript-project.el +20 -2
  54. package/compiler/eliscript-reader.el +141 -57
  55. package/compiler/eliscript-source-map.el +26 -12
  56. package/compiler/eliscript-transient-analysis.el +382 -19
  57. package/dist/backends/async.mjs +561 -0
  58. package/dist/backends/async.mjs.macro-origins.json +1 -0
  59. package/dist/backends/async.mjs.map +1 -0
  60. package/dist/backends/binary.mjs +381 -0
  61. package/dist/backends/binary.mjs.macro-origins.json +1 -0
  62. package/dist/backends/binary.mjs.map +1 -0
  63. package/dist/backends/capabilities.mjs +237 -0
  64. package/dist/backends/capabilities.mjs.macro-origins.json +1 -0
  65. package/dist/backends/capabilities.mjs.map +1 -0
  66. package/dist/backends/elf.mjs +540 -0
  67. package/dist/backends/elf.mjs.macro-origins.json +1 -0
  68. package/dist/backends/elf.mjs.map +1 -0
  69. package/dist/backends/managed.mjs +10616 -0
  70. package/dist/backends/managed.mjs.macro-origins.json +1 -0
  71. package/dist/backends/managed.mjs.map +1 -0
  72. package/dist/backends/memory.mjs +278 -0
  73. package/dist/backends/memory.mjs.macro-origins.json +1 -0
  74. package/dist/backends/memory.mjs.map +1 -0
  75. package/dist/backends/native.mjs +4099 -0
  76. package/dist/backends/native.mjs.macro-origins.json +1 -0
  77. package/dist/backends/native.mjs.map +1 -0
  78. package/dist/backends/numeric.mjs +2458 -0
  79. package/dist/backends/numeric.mjs.macro-origins.json +1 -0
  80. package/dist/backends/numeric.mjs.map +1 -0
  81. package/dist/backends/optimize.mjs +204 -0
  82. package/dist/backends/optimize.mjs.macro-origins.json +1 -0
  83. package/dist/backends/optimize.mjs.map +1 -0
  84. package/dist/backends/regexp.mjs +2033 -0
  85. package/dist/backends/regexp.mjs.macro-origins.json +1 -0
  86. package/dist/backends/regexp.mjs.map +1 -0
  87. package/dist/backends/sha256.mjs +310 -0
  88. package/dist/backends/sha256.mjs.macro-origins.json +1 -0
  89. package/dist/backends/sha256.mjs.map +1 -0
  90. package/dist/backends/wasm.mjs +2258 -0
  91. package/dist/backends/wasm.mjs.macro-origins.json +1 -0
  92. package/dist/backends/wasm.mjs.map +1 -0
  93. package/dist/bootstrap/analyzer.mjs +1908 -776
  94. package/dist/bootstrap/analyzer.mjs.macro-origins.json +1 -0
  95. package/dist/bootstrap/analyzer.mjs.map +1 -1
  96. package/dist/bootstrap/compiler.mjs +450 -142
  97. package/dist/bootstrap/compiler.mjs.macro-origins.json +1 -0
  98. package/dist/bootstrap/compiler.mjs.map +1 -1
  99. package/dist/bootstrap/emitter.mjs +3083 -909
  100. package/dist/bootstrap/emitter.mjs.macro-origins.json +1 -0
  101. package/dist/bootstrap/emitter.mjs.map +1 -1
  102. package/dist/bootstrap/expander.mjs +2887 -1233
  103. package/dist/bootstrap/expander.mjs.macro-origins.json +1 -0
  104. package/dist/bootstrap/expander.mjs.map +1 -1
  105. package/dist/bootstrap/formatter.mjs +582 -218
  106. package/dist/bootstrap/formatter.mjs.macro-origins.json +1 -0
  107. package/dist/bootstrap/formatter.mjs.map +1 -1
  108. package/dist/bootstrap/ir.mjs +670 -116
  109. package/dist/bootstrap/ir.mjs.macro-origins.json +1 -0
  110. package/dist/bootstrap/ir.mjs.map +1 -1
  111. package/dist/bootstrap/lower.mjs +866 -257
  112. package/dist/bootstrap/lower.mjs.macro-origins.json +1 -0
  113. package/dist/bootstrap/lower.mjs.map +1 -1
  114. package/dist/bootstrap/package.json +1 -0
  115. package/dist/bootstrap/project.mjs +1168 -498
  116. package/dist/bootstrap/project.mjs.macro-origins.json +1 -0
  117. package/dist/bootstrap/project.mjs.map +1 -1
  118. package/dist/bootstrap/reader.mjs +674 -175
  119. package/dist/bootstrap/reader.mjs.macro-origins.json +1 -0
  120. package/dist/bootstrap/reader.mjs.map +1 -1
  121. package/dist/bootstrap/runtime/math.mjs +1117 -0
  122. package/dist/bootstrap/runtime/math.mjs.map +1 -0
  123. package/dist/bootstrap/runtime/unicode-case-data.mjs +10125 -0
  124. package/dist/bootstrap/runtime/unicode-case-data.mjs.map +1 -0
  125. package/dist/bootstrap/runtime/unicode-case.mjs +281 -0
  126. package/dist/bootstrap/runtime/unicode-case.mjs.map +1 -0
  127. package/dist/bootstrap/source-map.mjs +430 -119
  128. package/dist/bootstrap/source-map.mjs.macro-origins.json +1 -0
  129. package/dist/bootstrap/source-map.mjs.map +1 -1
  130. package/dist/bootstrap/symbol.mjs +229 -53
  131. package/dist/bootstrap/symbol.mjs.macro-origins.json +1 -0
  132. package/dist/bootstrap/symbol.mjs.map +1 -1
  133. package/dist/bootstrap/syntax.mjs +205 -7
  134. package/dist/bootstrap/syntax.mjs.macro-origins.json +1 -0
  135. package/dist/bootstrap/syntax.mjs.map +1 -1
  136. package/dist/bootstrap/transient-analysis.mjs +1185 -489
  137. package/dist/bootstrap/transient-analysis.mjs.macro-origins.json +1 -0
  138. package/dist/bootstrap/transient-analysis.mjs.map +1 -1
  139. package/dist/browser/compiler.js +199 -6478
  140. package/dist/browser/host.mjs +1078 -0
  141. package/dist/browser/loader.js +1 -0
  142. package/dist/browser/loader.mjs +231 -0
  143. package/dist/browser/worker.mjs +63 -0
  144. package/dist/compiler-artifact.json +1 -0
  145. package/dist/host/compiler-session.mjs +2980 -0
  146. package/dist/host/compiler-session.mjs.macro-origins.json +1 -0
  147. package/dist/host/compiler-session.mjs.map +1 -0
  148. package/dist/host/compiler-tools.mjs +1084 -0
  149. package/dist/host/compiler-tools.mjs.macro-origins.json +1 -0
  150. package/dist/host/compiler-tools.mjs.map +1 -0
  151. package/dist/literal-sources/runtime/core/collection-internals.eli +60 -0
  152. package/dist/literal-sources/runtime/core/collection.eli +639 -0
  153. package/dist/literal-sources/runtime/core/data-text.eli +290 -0
  154. package/dist/literal-sources/runtime/core/data.eli +22 -0
  155. package/dist/literal-sources/runtime/core/identifier.eli +44 -0
  156. package/dist/literal-sources/runtime/core/lazy-sequence.eli +131 -0
  157. package/dist/literal-sources/runtime/core/list.eli +19 -0
  158. package/dist/literal-sources/runtime/core/map.eli +9 -0
  159. package/dist/literal-sources/runtime/core/metadata-internals.eli +6 -0
  160. package/dist/literal-sources/runtime/core/metadata.eli +40 -0
  161. package/dist/literal-sources/runtime/core/object.eli +8 -0
  162. package/dist/literal-sources/runtime/core/order.eli +123 -0
  163. package/dist/literal-sources/runtime/core/persistent-kind.eli +28 -0
  164. package/dist/literal-sources/runtime/core/protocol-error.eli +32 -0
  165. package/dist/literal-sources/runtime/core/protocol.eli +28 -0
  166. package/dist/literal-sources/runtime/core/queue.eli +9 -0
  167. package/dist/literal-sources/runtime/core/record.eli +191 -0
  168. package/dist/literal-sources/runtime/core/regex.eli +158 -0
  169. package/dist/literal-sources/runtime/core/sequence.eli +305 -0
  170. package/dist/literal-sources/runtime/core/set-algebra.eli +28 -0
  171. package/dist/literal-sources/runtime/core/set.eli +9 -0
  172. package/dist/literal-sources/runtime/core/sorted.eli +408 -0
  173. package/dist/literal-sources/runtime/core/text.eli +14 -0
  174. package/dist/literal-sources/runtime/core/transducer.eli +268 -0
  175. package/dist/literal-sources/runtime/core/transient.eli +17 -0
  176. package/dist/literal-sources/runtime/core/truth.eli +4 -0
  177. package/dist/literal-sources/runtime/core/type.eli +232 -0
  178. package/dist/literal-sources/runtime/core/value-internals.eli +13 -0
  179. package/dist/literal-sources/runtime/core/value.eli +19 -0
  180. package/dist/literal-sources/runtime/core/vector.eli +25 -0
  181. package/dist/literal-sources/runtime/literals.eli +23 -0
  182. package/dist/literal-sources/runtime/testing/value.eli +6 -0
  183. package/dist/literal-sources/runtime/wire/http-rpc.eli +362 -0
  184. package/dist/literal-sources/runtime/wire/markdown.eli +275 -0
  185. package/dist/literal-sources/runtime/wire/schema.eli +193 -0
  186. package/dist/literal-sources/stdlib/bit.eli +36 -0
  187. package/dist/literal-sources/stdlib/core/data.eli +306 -0
  188. package/dist/literal-sources/stdlib/core/object.eli +89 -0
  189. package/dist/literal-sources/stdlib/core/protocol.eli +451 -0
  190. package/dist/literal-sources/stdlib/core/set.eli +312 -0
  191. package/dist/literal-sources/stdlib/core/text.eli +103 -0
  192. package/dist/literal-sources/stdlib/managed-literal-protocols.eli +494 -0
  193. package/dist/literal-sources/stdlib/managed-literals.eli +1469 -0
  194. package/dist/literal-sources/stdlib/managed-queue-state.eli +65 -0
  195. package/dist/literal-sources/stdlib/managed-sorted-state.eli +233 -0
  196. package/dist/literal-sources/stdlib/managed-transient-state.eli +348 -0
  197. package/dist/literal-sources/stdlib/managed-value-state.eli +153 -0
  198. package/dist/literal-sources/stdlib/managed-vector-view-state.eli +102 -0
  199. package/dist/literal-sources/stdlib/persistent-list.eli +145 -0
  200. package/dist/literal-sources/stdlib/persistent-map.eli +724 -0
  201. package/dist/literal-sources/stdlib/persistent-set.eli +236 -0
  202. package/dist/literal-sources/stdlib/persistent-vector.eli +359 -0
  203. package/dist/literal-sources/stdlib/value.eli +325 -0
  204. package/dist/package.json +10 -0
  205. package/dist/runtime/math.mjs +1116 -0
  206. package/dist/runtime/math.mjs.macro-origins.json +1 -0
  207. package/dist/runtime/math.mjs.map +1 -0
  208. package/dist/runtime/unicode-case-data.mjs +10124 -0
  209. package/dist/runtime/unicode-case-data.mjs.macro-origins.json +1 -0
  210. package/dist/runtime/unicode-case-data.mjs.map +1 -0
  211. package/dist/runtime/unicode-case.mjs +280 -0
  212. package/dist/runtime/unicode-case.mjs.macro-origins.json +1 -0
  213. package/dist/runtime/unicode-case.mjs.map +1 -0
  214. package/dist/runtime.eli +30379 -0
  215. package/dist/stage3-release.json +1 -0
  216. package/editor/README.md +1 -1
  217. package/editor/eliscript-mode.el +1 -1
  218. package/editor/eliscript-repl.el +1 -1
  219. package/package.json +106 -11
  220. package/platform/http.mjs +20 -0
  221. package/runtime/array-text.mjs +159 -0
  222. package/runtime/core/map-internals.mjs +27 -9
  223. package/runtime/core/object-impl.mjs +26 -17
  224. package/runtime/core/object-impl.mjs.map +1 -1
  225. package/runtime/core/protocol-impl.mjs +682 -255
  226. package/runtime/core/protocol-impl.mjs.map +1 -1
  227. package/runtime/core/protocol.mjs +4 -0
  228. package/runtime/core/record.mjs +23 -2
  229. package/runtime/core/regex.mjs +4 -0
  230. package/runtime/core/sorted.mjs +53 -0
  231. package/runtime/core/text-impl.mjs +167 -48
  232. package/runtime/core/text-impl.mjs.map +1 -1
  233. package/runtime/core/type.mjs +75 -3
  234. package/runtime/core/vector.mjs +6 -0
  235. package/runtime/math.eli +429 -0
  236. package/runtime/math.mjs +1116 -0
  237. package/runtime/math.mjs.map +1 -0
  238. package/runtime/number-radix.mjs +105 -0
  239. package/runtime/unicode-case-data.eli +29 -0
  240. package/runtime/unicode-case-data.mjs +10124 -0
  241. package/runtime/unicode-case-data.mjs.map +1 -0
  242. package/runtime/unicode-case.eli +100 -0
  243. package/runtime/unicode-case.mjs +280 -0
  244. package/runtime/unicode-case.mjs.map +1 -0
  245. package/runtime/wire/http-rpc.mjs +168 -0
  246. package/runtime/wire/markdown.mjs +196 -0
  247. package/runtime/wire/schema.mjs +109 -0
  248. package/stdlib/README.md +54 -0
  249. package/stdlib/core/protocol.eli +81 -17
  250. package/stdlib/core/seq.eli +1 -1
  251. package/stdlib/core/zipper.eli +172 -72
  252. package/stdlib/gepo.eli +12 -0
  253. package/stdlib/interop/js.eli +56 -15
  254. package/stdlib/managed-literal-protocols.eli +494 -0
  255. package/stdlib/managed-literals.eli +1469 -0
  256. package/stdlib/managed-protocol-error.eli +32 -0
  257. package/stdlib/managed-queue-state.eli +65 -0
  258. package/stdlib/managed-runtime-collection-internals.eli +60 -0
  259. package/stdlib/managed-runtime-collection.eli +639 -0
  260. package/stdlib/managed-runtime-data-text.eli +290 -0
  261. package/stdlib/managed-runtime-data.eli +22 -0
  262. package/stdlib/managed-runtime-identifier.eli +44 -0
  263. package/stdlib/managed-runtime-lazy-sequence.eli +131 -0
  264. package/stdlib/managed-runtime-list.eli +19 -0
  265. package/stdlib/managed-runtime-literals.eli +23 -0
  266. package/stdlib/managed-runtime-map.eli +9 -0
  267. package/stdlib/managed-runtime-metadata-internals.eli +6 -0
  268. package/stdlib/managed-runtime-metadata.eli +40 -0
  269. package/stdlib/managed-runtime-object.eli +8 -0
  270. package/stdlib/managed-runtime-order.eli +123 -0
  271. package/stdlib/managed-runtime-persistent-kind.eli +28 -0
  272. package/stdlib/managed-runtime-protocol.eli +28 -0
  273. package/stdlib/managed-runtime-queue.eli +9 -0
  274. package/stdlib/managed-runtime-record.eli +191 -0
  275. package/stdlib/managed-runtime-regex.eli +158 -0
  276. package/stdlib/managed-runtime-sequence.eli +305 -0
  277. package/stdlib/managed-runtime-set-algebra.eli +28 -0
  278. package/stdlib/managed-runtime-set.eli +9 -0
  279. package/stdlib/managed-runtime-sorted.eli +408 -0
  280. package/stdlib/managed-runtime-text.eli +14 -0
  281. package/stdlib/managed-runtime-transducer.eli +268 -0
  282. package/stdlib/managed-runtime-transient.eli +17 -0
  283. package/stdlib/managed-runtime-truth.eli +4 -0
  284. package/stdlib/managed-runtime-type.eli +232 -0
  285. package/stdlib/managed-runtime-value-internals.eli +13 -0
  286. package/stdlib/managed-runtime-value.eli +19 -0
  287. package/stdlib/managed-runtime-vector.eli +25 -0
  288. package/stdlib/managed-sorted-state.eli +233 -0
  289. package/stdlib/managed-testing-value.eli +6 -0
  290. package/stdlib/managed-transient-state.eli +348 -0
  291. package/stdlib/managed-value-state.eli +153 -0
  292. package/stdlib/managed-vector-view-state.eli +102 -0
  293. package/stdlib/managed-wire-http-rpc.eli +362 -0
  294. package/stdlib/managed-wire-markdown.eli +275 -0
  295. package/stdlib/managed-wire-schema.eli +193 -0
  296. package/stdlib/mdp.eli +7 -0
  297. package/stdlib/mds.eli +4 -0
  298. package/stdlib/persistent-vector.eli +23 -6
  299. package/tools/acceptance/check-legacy.mjs +687 -0
  300. package/tools/acceptance/check.eli +431 -0
  301. package/tools/acceptance/compile-evidence.el +49 -0
  302. package/tools/acceptance/finalize-legacy.mjs +498 -0
  303. package/tools/acceptance/finalize.eli +270 -0
  304. package/tools/backends/benchmark.mjs +175 -0
  305. package/tools/backends/build.mjs +135 -0
  306. package/tools/backends/compile.mjs +94 -0
  307. package/tools/backends/compiler-bootstrap.mjs +1001 -0
  308. package/tools/backends/compiler-browser.mjs +361 -0
  309. package/tools/backends/compiler-build.mjs +1628 -0
  310. package/tools/backends/compiler-cli-legacy.mjs +334 -0
  311. package/tools/backends/compiler-cli.mjs +29 -0
  312. package/tools/backends/compiler-corpus-bit.mjs +234 -0
  313. package/tools/backends/compiler-corpus-cli-adapters-legacy.mjs +362 -0
  314. package/tools/backends/compiler-corpus-cli-adapters.mjs +247 -0
  315. package/tools/backends/compiler-corpus-debugging.mjs +221 -0
  316. package/tools/backends/compiler-corpus-emitter.mjs +324 -0
  317. package/tools/backends/compiler-corpus-evaluation-adapters.mjs +65 -0
  318. package/tools/backends/compiler-corpus-execution-legacy.mjs +769 -0
  319. package/tools/backends/compiler-corpus-execution.mjs +3324 -0
  320. package/tools/backends/compiler-corpus-fuzz.mjs +229 -0
  321. package/tools/backends/compiler-corpus-generations.mjs +208 -0
  322. package/tools/backends/compiler-corpus-host-context-legacy.mjs +114 -0
  323. package/tools/backends/compiler-corpus-host-context.mjs +550 -0
  324. package/tools/backends/compiler-corpus-identity-host.mjs +553 -0
  325. package/tools/backends/compiler-corpus-identity-value-adapters-legacy.mjs +298 -0
  326. package/tools/backends/compiler-corpus-identity-value-adapters.mjs +69 -0
  327. package/tools/backends/compiler-corpus-isolated-exports.mjs +21 -0
  328. package/tools/backends/compiler-corpus-legacy.mjs +1155 -0
  329. package/tools/backends/compiler-corpus-literal-provider.mjs +282 -0
  330. package/tools/backends/compiler-corpus-managed-adapters-legacy.mjs +334 -0
  331. package/tools/backends/compiler-corpus-managed-adapters.mjs +937 -0
  332. package/tools/backends/compiler-corpus-managed-cases.mjs +179 -0
  333. package/tools/backends/compiler-corpus-managed-fixtures-legacy.mjs +879 -0
  334. package/tools/backends/compiler-corpus-managed-fixtures.mjs +1287 -0
  335. package/tools/backends/compiler-corpus-matchers.mjs +173 -0
  336. package/tools/backends/compiler-corpus-original-program.mjs +612 -0
  337. package/tools/backends/compiler-corpus-process.mjs +765 -0
  338. package/tools/backends/compiler-corpus-program-driver.mjs +306 -0
  339. package/tools/backends/compiler-corpus-project-adapters-legacy.mjs +497 -0
  340. package/tools/backends/compiler-corpus-project-adapters.mjs +340 -0
  341. package/tools/backends/compiler-corpus-project-entry-host.mjs +511 -0
  342. package/tools/backends/compiler-corpus-project-transport.mjs +151 -0
  343. package/tools/backends/compiler-corpus-raw-fixture-observer.mjs +1438 -0
  344. package/tools/backends/compiler-corpus-raw-language-fixtures.mjs +1456 -0
  345. package/tools/backends/compiler-corpus-raw-math-fixture.mjs +346 -0
  346. package/tools/backends/compiler-corpus-raw-special-fixtures.mjs +523 -0
  347. package/tools/backends/compiler-corpus-reference-legacy.mjs +263 -0
  348. package/tools/backends/compiler-corpus-reference.mjs +241 -0
  349. package/tools/backends/compiler-corpus-runtime-adapters-legacy.mjs +843 -0
  350. package/tools/backends/compiler-corpus-runtime-adapters.mjs +663 -0
  351. package/tools/backends/compiler-corpus-source-archive.mjs +206 -0
  352. package/tools/backends/compiler-corpus-tools-artifact-adapters.mjs +410 -0
  353. package/tools/backends/compiler-corpus-tools-cli.mjs +363 -0
  354. package/tools/backends/compiler-corpus-tools-reference.mjs +264 -0
  355. package/tools/backends/compiler-corpus.mjs +2054 -0
  356. package/tools/backends/compiler-debug.mjs +142 -0
  357. package/tools/backends/compiler-matrix.mjs +1955 -0
  358. package/tools/backends/compiler-metadata.mjs +203 -0
  359. package/tools/backends/compiler-package-browser.mjs +120 -0
  360. package/tools/backends/compiler-package-legacy.mjs +654 -0
  361. package/tools/backends/compiler-package.mjs +464 -0
  362. package/tools/backends/compiler-project.mjs +126 -0
  363. package/tools/backends/compiler-session.mjs +843 -0
  364. package/tools/backends/compiler-sha256.mjs +152 -0
  365. package/tools/backends/compiler-unicode-profile-host.mjs +196 -0
  366. package/tools/backends/compiler-worker.mjs +573 -0
  367. package/tools/backends/dist/bootstrap-js-stages.mjs +919 -0
  368. package/tools/backends/dist/bootstrap-js-stages.mjs.map +1 -0
  369. package/tools/backends/dist/managed-ir-inventory.mjs +488 -0
  370. package/tools/backends/dist/managed-ir-inventory.mjs.map +1 -0
  371. package/tools/backends/dist/record-grid.mjs +1256 -0
  372. package/tools/backends/dist/record-grid.mjs.map +1 -0
  373. package/tools/backends/dist/release-cli.mjs +462 -0
  374. package/tools/backends/dist/release-cli.mjs.map +1 -0
  375. package/tools/backends/dist/run-artifact.mjs +517 -0
  376. package/tools/backends/dist/run-artifact.mjs.map +1 -0
  377. package/tools/backends/eliscript/compiler-corpus-bit.eli +77 -0
  378. package/tools/backends/eliscript/compiler-corpus-debugging.eli +70 -0
  379. package/tools/backends/eliscript/compiler-corpus-project-entry-host.eli +256 -0
  380. package/tools/backends/managed-foreign-binding.mjs +497 -0
  381. package/tools/backends/managed-host-legacy.mjs +1181 -0
  382. package/tools/backends/managed-host-lifecycle.mjs +310 -0
  383. package/tools/backends/managed-host-object-provider.mjs +155 -0
  384. package/tools/backends/managed-host-object-realm.mjs +797 -0
  385. package/tools/backends/managed-host-proxy.mjs +71 -0
  386. package/tools/backends/managed-host-runtime.mjs +5868 -0
  387. package/tools/backends/managed-host.mjs +716 -0
  388. package/tools/backends/managed-module-graph-legacy.mjs +308 -0
  389. package/tools/backends/managed-module-graph.mjs +694 -0
  390. package/tools/backends/managed-runtime-host-legacy.mjs +195 -0
  391. package/tools/backends/managed-runtime.mjs +939 -0
  392. package/tools/backends/managed-source-view-legacy.mjs +332 -0
  393. package/tools/backends/managed-source-view.mjs +959 -0
  394. package/tools/backends/memory-runtime.mjs +100 -0
  395. package/tools/backends/native-benchmark.mjs +88 -0
  396. package/tools/backends/native-managed-runtime.mjs +677 -0
  397. package/tools/backends/native-memory.mjs +768 -0
  398. package/tools/backends/native-node-memory.mjs +142 -0
  399. package/tools/backends/native-node-runner.mjs +99 -0
  400. package/tools/backends/native-node-watchdog.mjs +19 -0
  401. package/tools/backends/native-node-worker.mjs +75 -0
  402. package/tools/backends/stage3-targets.mjs +493 -0
  403. package/tools/bootstrap-command.el +13 -0
  404. package/tools/bootstrap-runtime.el +101 -0
  405. package/tools/bootstrap-seed.el +55 -0
  406. package/tools/project/check-cli.eli +31 -0
  407. package/tools/project/project-cli.eli +42 -0
  408. package/tools/project/project.eli +122 -0
  409. package/tools/runtime/unicode-case-profiles.mjs +13 -0
  410. package/tools/runtime/unicode-case-runtime.el +57 -0
  411. package/tools/testing/source-debugging-corpus-host.eli +16 -0
  412. package/tools/testing/source-debugging.eli +139 -0
  413. package/tools/testing/stdlib-bit-corpus-host.eli +21 -0
  414. package/tools/testing/stdlib-bit-corpus-host.mjs +118 -0
  415. package/tools/testing/stdlib-bit.eli +104 -0
  416. package/tools/testing/stdlib-bit.mjs +255 -0
  417. package/bin/eliscript-bootstrap +0 -15
@@ -0,0 +1,2054 @@
1
+ // Generated by Eliscript. Do not edit.
2
+ import { tdz as __eliscript_tdz_error, immutable as __eliscript_const_error } from "data:text/javascript;base64,Y29uc3QgRSA9IFJlZmVyZW5jZUVycm9yOyBjb25zdCBUID0gVHlwZUVycm9yOyBleHBvcnQgZnVuY3Rpb24gdGR6KG5hbWUpIHsgdGhyb3cgbmV3IEUoIkNhbm5vdCBhY2Nlc3MgJyIgKyBuYW1lICsgIicgYmVmb3JlIGluaXRpYWxpemF0aW9uIik7IH0gZXhwb3J0IGZ1bmN0aW9uIGltbXV0YWJsZSgpIHsgdGhyb3cgbmV3IFQoIkFzc2lnbm1lbnQgdG8gY29uc3RhbnQgdmFyaWFibGUuIik7IH0K";
3
+ var __eliscript_tdz_ready_0;
4
+ function __eliscript_tdz_read_0() { if (__eliscript_tdz_ready_0 !== true) __eliscript_tdz_error("createOriginalCorpusSourceReader"); return createOriginalCorpusSourceReader; }
5
+ function __eliscript_tdz_write_0(__eliscript_tdz_value_0) { if (__eliscript_tdz_ready_0 !== true) __eliscript_tdz_error("createOriginalCorpusSourceReader"); return __eliscript_const_error(); }
6
+ var __eliscript_tdz_ready_1;
7
+ function __eliscript_tdz_read_1() { if (__eliscript_tdz_ready_1 !== true) __eliscript_tdz_error("cloneCompilerCorpusData"); return cloneCompilerCorpusData; }
8
+ function __eliscript_tdz_write_1(__eliscript_tdz_value_1) { if (__eliscript_tdz_ready_1 !== true) __eliscript_tdz_error("cloneCompilerCorpusData"); return __eliscript_const_error(); }
9
+ var __eliscript_tdz_ready_2;
10
+ function __eliscript_tdz_read_2() { if (__eliscript_tdz_ready_2 !== true) __eliscript_tdz_error("cloneCompilerCorpusModules"); return cloneCompilerCorpusModules; }
11
+ function __eliscript_tdz_write_2(__eliscript_tdz_value_2) { if (__eliscript_tdz_ready_2 !== true) __eliscript_tdz_error("cloneCompilerCorpusModules"); return __eliscript_const_error(); }
12
+ var __eliscript_tdz_ready_3;
13
+ function __eliscript_tdz_read_3() { if (__eliscript_tdz_ready_3 !== true) __eliscript_tdz_error("literal_suite"); return literal_suite; }
14
+ function __eliscript_tdz_write_3(__eliscript_tdz_value_3) { if (__eliscript_tdz_ready_3 !== true) __eliscript_tdz_error("literal_suite"); return __eliscript_const_error(); }
15
+ var __eliscript_tdz_ready_4;
16
+ function __eliscript_tdz_read_4() { if (__eliscript_tdz_ready_4 !== true) __eliscript_tdz_error("literal_source"); return literal_source; }
17
+ function __eliscript_tdz_write_4(__eliscript_tdz_value_4) { if (__eliscript_tdz_ready_4 !== true) __eliscript_tdz_error("literal_source"); return __eliscript_const_error(); }
18
+ var __eliscript_tdz_ready_5;
19
+ function __eliscript_tdz_read_5() { if (__eliscript_tdz_ready_5 !== true) __eliscript_tdz_error("literal_title"); return literal_title; }
20
+ function __eliscript_tdz_write_5(__eliscript_tdz_value_5) { if (__eliscript_tdz_ready_5 !== true) __eliscript_tdz_error("literal_title"); return __eliscript_const_error(); }
21
+ var __eliscript_tdz_ready_6;
22
+ function __eliscript_tdz_read_6() { if (__eliscript_tdz_ready_6 !== true) __eliscript_tdz_error("request_layouts"); return request_layouts; }
23
+ function __eliscript_tdz_write_6(__eliscript_tdz_value_6) { if (__eliscript_tdz_ready_6 !== true) __eliscript_tdz_error("request_layouts"); return __eliscript_const_error(); }
24
+ var __eliscript_tdz_ready_7;
25
+ function __eliscript_tdz_read_7() { if (__eliscript_tdz_ready_7 !== true) __eliscript_tdz_error("matcher_records"); return matcher_records; }
26
+ function __eliscript_tdz_write_7(__eliscript_tdz_value_7) { if (__eliscript_tdz_ready_7 !== true) __eliscript_tdz_error("matcher_records"); return __eliscript_const_error(); }
27
+ var __eliscript_tdz_ready_8;
28
+ function __eliscript_tdz_read_8() { if (__eliscript_tdz_ready_8 !== true) __eliscript_tdz_error("matcher_files"); return matcher_files; }
29
+ function __eliscript_tdz_write_8(__eliscript_tdz_value_8) { if (__eliscript_tdz_ready_8 !== true) __eliscript_tdz_error("matcher_files"); return __eliscript_const_error(); }
30
+ var __eliscript_tdz_ready_9;
31
+ function __eliscript_tdz_read_9() { if (__eliscript_tdz_ready_9 !== true) __eliscript_tdz_error("transportOriginalExecutionAssets"); return transportOriginalExecutionAssets; }
32
+ function __eliscript_tdz_write_9(__eliscript_tdz_value_9) { if (__eliscript_tdz_ready_9 !== true) __eliscript_tdz_error("transportOriginalExecutionAssets"); return __eliscript_const_error(); }
33
+ var __eliscript_tdz_ready_10;
34
+ function __eliscript_tdz_read_10() { if (__eliscript_tdz_ready_10 !== true) __eliscript_tdz_error("transportOriginalToolsDataReferenceAssets"); return transportOriginalToolsDataReferenceAssets; }
35
+ function __eliscript_tdz_write_10(__eliscript_tdz_value_10) { if (__eliscript_tdz_ready_10 !== true) __eliscript_tdz_error("transportOriginalToolsDataReferenceAssets"); return __eliscript_const_error(); }
36
+ var __eliscript_tdz_ready_11;
37
+ function __eliscript_tdz_read_11() { if (__eliscript_tdz_ready_11 !== true) __eliscript_tdz_error("bindOriginalFunctionalResourceInputs"); return bindOriginalFunctionalResourceInputs; }
38
+ function __eliscript_tdz_write_11(__eliscript_tdz_value_11) { if (__eliscript_tdz_ready_11 !== true) __eliscript_tdz_error("bindOriginalFunctionalResourceInputs"); return __eliscript_const_error(); }
39
+ var __eliscript_tdz_ready_12;
40
+ function __eliscript_tdz_read_12() { if (__eliscript_tdz_ready_12 !== true) __eliscript_tdz_error("transportOriginalProjectRuntimeAssets"); return transportOriginalProjectRuntimeAssets; }
41
+ function __eliscript_tdz_write_12(__eliscript_tdz_value_12) { if (__eliscript_tdz_ready_12 !== true) __eliscript_tdz_error("transportOriginalProjectRuntimeAssets"); return __eliscript_const_error(); }
42
+ var __eliscript_tdz_ready_13;
43
+ function __eliscript_tdz_read_13() { if (__eliscript_tdz_ready_13 !== true) __eliscript_tdz_error("transportOriginalToolsCLIAssets"); return transportOriginalToolsCLIAssets; }
44
+ function __eliscript_tdz_write_13(__eliscript_tdz_value_13) { if (__eliscript_tdz_ready_13 !== true) __eliscript_tdz_error("transportOriginalToolsCLIAssets"); return __eliscript_const_error(); }
45
+ import "eliscript/runtime/unicode-case.mjs";
46
+ import { c as __eliscript_at, d as __eliscript_at_direct } from "data:text/javascript;base64,dmFyIG09UmVmbGVjdC5hcHBseSx0dD1OdW1iZXIucHJvdG90eXBlLnZhbHVlT2Ysaj1OdW1iZXIucHJvdG90eXBlLnRvU3RyaW5nLFU9TnVtYmVyLG50PU9iamVjdC5jcmVhdGUsaD1CaWdJbnQsZXQ9RGF0YVZpZXcsb3Q9QXJyYXlCdWZmZXIsaXQ9RGF0YVZpZXcucHJvdG90eXBlLnNldEZsb2F0NjQsSj1EYXRhVmlldy5wcm90b3R5cGUuZ2V0VWludDMyLHJ0PVJhbmdlRXJyb3I7ZnVuY3Rpb24gY3QodCxuKXtsZXQgZT1oKG4pLG89aCh0KSxpPSIiO2lmKG88MG4pbz0tbztkb3tsZXQgZj1vJWU7aT0iMDEyMzQ1Njc4OWFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6IltVKGYpXStpLG8vPWV9d2hpbGUobyE9PTBuKTtyZXR1cm4gdDwwPyItIitpOml9ZnVuY3Rpb24gc3QodCxuKXtsZXQgZT1uZXcgZXQobmV3IG90KDgpKTttKGl0LGUsWzAsdCwhMV0pO2xldCBvPW0oSixlLFswLCExXSksaT1tKEosZSxbNCwhMV0pLGY9bz4+PjIwJjIwNDcsYj1vJjEwNDg1NzUscD1vPj4+MzEscj1oKGIpPDwzMm58aChpKTtpZihmIT09MClyKz0xbjw8NTJuO3I8PD0ybjtsZXQgbD00bix1PWY+MSYmYj09PTAmJmk9PT0wPzFuOjJuLGs9Mm47aWYoZj49MTA3NSl7bGV0IGM9aChmLTEwNzUpO3I8PD1jLHU8PD1jLGs8PD1jfWVsc2UgbDw8PWgoZj09PTA/MTA3NDoxMDc1LWYpO2xldCBkPWgobiksZz1udChudWxsKSxhPTAsUz0wLEQ9MDtpZihyPGwpd2hpbGUocjxsKXtpZihyKjJuPmwmJnIraz5sKWJyZWFrO3IqPWQsdSo9ZCxrKj1kLFMtLX1lbHNlIHdoaWxlKHI+PWwqZClsKj1kLFMrKztmb3IoOzspe2xldCBjPVUoci9sKTtyJT1sO2xldCBJPXI8dSx4PXIraz5sO2dbYSsrXT1jLEQ9RCoobiYxKStjJjE7bGV0IHE9cioybixQPXE+bHx8cT09PWwmJkQ9PT0xO2lmKFAmJnh8fCFQJiZJKXtpZihQKXtsZXQgUj1hLEI9ITA7d2hpbGUoUj4wJiZCKXtSLS07bGV0IEg9Z1tSXSsxO2lmKEg9PT1uKWdbUl09MDtlbHNlIGdbUl09SCxCPSExfWlmKEIpZ1swXT0xLFMrK31icmVha31pZihhPj02NCl0aHJvdyBuZXcgcnQoIm51bWJlciByYWRpeCBmb3JtYXR0aW5nIGRpZCBub3QgY29udmVyZ2UiKTtyKj1kLHUqPWQsayo9ZH13aGlsZShhPjEmJmdbYS0xXT09PTApYS0tO2xldCB3PSIiO2lmKFM8MCl7dz0iMC4iO2ZvcihsZXQgYz0wO2M8LTEtUztjKyspdys9IjAiO2ZvcihsZXQgYz0wO2M8YTtjKyspdys9IjAxMjM0NTY3ODlhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5eiJbZ1tjXV19ZWxzZXtsZXQgYz1TKzEsST1jPmE/YzphO2ZvcihsZXQgeD0wO3g8STt4Kyspe2lmKHg9PT1jJiZjPGEpdys9Ii4iO3crPXg8YT8iMDEyMzQ1Njc4OWFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6IltnW3hdXToiMCJ9fXJldHVybiBwPyItIit3Ond9ZnVuY3Rpb24gRyh0LG4pe2xldCBlO3RyeXtlPW0odHQsdCxbXSl9Y2F0Y2h7cmV0dXJuIG0oaix0LFtuXSl9bGV0IG89MTA7aWYobiE9PXZvaWQgMCl7bGV0IGk9K247aWYobz1pIT09aT8wOmktaSUxLG88Mnx8bz4zNnx8byE9PW8pcmV0dXJuIG0oaixlLFtvXSl9aWYobz09PTEwfHxlPT09MHx8ZSE9PWV8fGU9PT0xLzB8fGU9PT0tMS8wKXJldHVybiBtKGosZSxbMTBdKTtyZXR1cm4gZSUxPT09MD9jdChlLG8pOnN0KGUsbyl9dmFyIHM9UmVmbGVjdC5hcHBseSxNPUZ1bmN0aW9uLnByb3RvdHlwZS5jYWxsLE49RnVuY3Rpb24ucHJvdG90eXBlLmFwcGx5LEU9RnVuY3Rpb24ucHJvdG90eXBlLmJpbmQsVD1PYmplY3QuZGVmaW5lUHJvcGVydHksbHQ9T2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcixmdD1PYmplY3QuZ2V0UHJvdG90eXBlT2YsdXQ9T2JqZWN0LnNldFByb3RvdHlwZU9mLGF0PVJlZmxlY3Qub3duS2V5cyxwdD1TeW1ib2wuaGFzSW5zdGFuY2UsVj1BcnJheS5pc0FycmF5LEs9QXJyYXkucHJvdG90eXBlLmpvaW4sej1BcnJheS5wcm90b3R5cGUudG9TdHJpbmcseXQ9T2JqZWN0LnByb3RvdHlwZS50b1N0cmluZyxidD1TdHJpbmcsQz1UeXBlRXJyb3IsZHQ9U3ltYm9sLnRvUHJpbWl0aXZlLGd0PVdlYWtTZXQucHJvdG90eXBlLmhhcyx3dD1XZWFrU2V0LnByb3RvdHlwZS5hZGQseHQ9V2Vha1NldC5wcm90b3R5cGUuZGVsZXRlLEY9bmV3IFdlYWtTZXQsTz1udWxsLFc9KHQpPT50IT09bnVsbCYmKHR5cGVvZiB0PT09Im9iamVjdCJ8fHR5cGVvZiB0PT09ImZ1bmN0aW9uInx8dHlwZW9mIHQ+InUiJiZ0IT09dm9pZCAwKSxBPSh0KT0+dHlwZW9mIHQ9PT0iZnVuY3Rpb24ifHx0eXBlb2YgdD4idSImJnQhPT12b2lkIDA7ZnVuY3Rpb24gaHQoKXtsZXQgbj1uZXcgQygiY3ljbGljIGFycmF5IHRleHQgY29udmVyc2lvbiIpO3Rocm93IG4uZWxpc2NyaXB0RGlhZ25vc3RpYz17Zm9ybWF0OiJlbGlzY3JpcHQtZGlhZ25vc3RpYyIsdmVyc2lvbjoxLGNvZGU6IkVMSS1SVDAwMDkiLHNldmVyaXR5OiJlcnJvciIscGhhc2U6InJ1bnRpbWUiLG1lc3NhZ2U6ImN5Y2xpYyBhcnJheSB0ZXh0IGNvbnZlcnNpb24ifSxufWZ1bmN0aW9uIG10KHQpe2lmKCFXKHQpKXJldHVybiB0O2xldCBuPXRbZHRdO2lmKG4hPT12b2lkIDAmJm4hPT1udWxsKXtsZXQgZT1zKG4sdCxbInN0cmluZyJdKTtpZighVyhlKSlyZXR1cm4gZTt0aHJvdyBuZXcgQygiQ2Fubm90IGNvbnZlcnQgb2JqZWN0IHRvIHByaW1pdGl2ZSB2YWx1ZSIpfWZvcihsZXQgZT0wO2U8MjtlKyspe2xldCBvPXRbZT09PTA/InRvU3RyaW5nIjoidmFsdWVPZiJdO2lmKEEobykpe2xldCBpPW89PT16JiZWKHQpP3YodCk6cyhvLHQsW10pO2lmKCFXKGkpKXJldHVybiBpfX10aHJvdyBuZXcgQygiQ2Fubm90IGNvbnZlcnQgb2JqZWN0IHRvIHByaW1pdGl2ZSB2YWx1ZSIpfWZ1bmN0aW9uIFEodCl7bGV0IG49bXQodCk7aWYodHlwZW9mIG49PT0ic3ltYm9sIil0aHJvdyBuZXcgQygiQ2Fubm90IGNvbnZlcnQgYSBTeW1ib2wgdmFsdWUgdG8gYSBzdHJpbmciKTtyZXR1cm4gYnQobil9ZnVuY3Rpb24gXyh0LG4pe2xldCBlPSt0Lmxlbmd0aCxvPWUhPT1lfHxlPD0wPzA6ZT49OTAwNzE5OTI1NDc0MDk5MT85MDA3MTk5MjU0NzQwOTkxOmUtZSUxLGk9bj09PXZvaWQgMD8iLCI6UShuKSxmPU89PT1udWxsO2lmKGYpTz10O2Vsc2V7aWYodD09PU98fHMoZ3QsRixbdF0pKWh0KCk7cyh3dCxGLFt0XSl9dHJ5e2xldCBiPSIiO2ZvcihsZXQgcD0wO3A8bztwKyspe2lmKHApYis9aTtsZXQgcj10W3BdO2lmKHIhPT1udWxsJiZyIT09dm9pZCAwKWIrPVEocil9cmV0dXJuIGJ9ZmluYWxseXtpZihmKU89bnVsbDtlbHNlIHMoeHQsRixbdF0pfX1mdW5jdGlvbiB2KHQpe2xldCBuPXQuam9pbjtyZXR1cm4gQShuKT9uPT09Sz9fKHQsdm9pZCAwKTpzKG4sdCxbXSk6cyh5dCx0LFtdKX1mdW5jdGlvbiB5KHQsbil7cmV0dXJuIG48dC5sZW5ndGg/dFtuXTp2b2lkIDB9ZnVuY3Rpb24gWCh0LG4pe2xldCBlPVtdO2ZvcihsZXQgbz1uO288dC5sZW5ndGg7bysrKVQoZSxlLmxlbmd0aCx7dmFsdWU6dFtvXSx3cml0YWJsZTohMCxlbnVtZXJhYmxlOiEwLGNvbmZpZ3VyYWJsZTohMH0pO3JldHVybiBlfWZ1bmN0aW9uIFN0KHQsbil7bGV0IGU9W107Zm9yKGxldCBvPTA7bzx0Lmxlbmd0aCtuLmxlbmd0aDtvKyspVChlLG8se3ZhbHVlOm88dC5sZW5ndGg/dFtvXTpuW28tdC5sZW5ndGhdLHdyaXRhYmxlOiEwLGVudW1lcmFibGU6ITAsY29uZmlndXJhYmxlOiEwfSk7cmV0dXJuIGV9ZnVuY3Rpb24gWSguLi50KXtyZXR1cm4gdH1mdW5jdGlvbiBaKHQsbil7cmV0dXJuIG4/cyhOLFksW3ZvaWQgMCx0XSk6cyhZLHZvaWQgMCx0KX1mdW5jdGlvbiBMKHQsbixlKXtmb3IoOzspe2lmKHQ9PT1qKXJldHVybiBHKG4seShlLDApKTtpZih0PT09SyYmVihuKSlyZXR1cm4gXyhuLHkoZSwwKSk7aWYodD09PXomJlYobikpcmV0dXJuIHYobik7aWYodD09PU0pe2lmKCFBKG4pKXJldHVybiBzKHQsbixlKTtsZXQgbz1uLGk9eShlLDApO2U9WChlLDEpLHQ9byxuPWk7Y29udGludWV9aWYodD09PU4pe2lmKCFBKG4pKXJldHVybiBzKHQsbixlKTtsZXQgbz1uLGk9eShlLDApO2U9Wih5KGUsMSksITApLHQ9byxuPWk7Y29udGludWV9aWYodD09PXMpe2xldCBvPXkoZSwwKSxpPXkoZSwxKTtpZighQShvKSlyZXR1cm4gcyh0LG4sZSk7ZT1aKHkoZSwyKSwhMSksdD1vLG49aTtjb250aW51ZX1pZih0PT09RSl7bGV0IG89cyh0LG4sZSk7aWYobiE9PWomJm4hPT1LJiZuIT09eiYmbiE9PU0mJm4hPT1OJiZuIT09cyYmbiE9PUUpcmV0dXJuIG87bGV0IGk9bixmPXkoZSwwKSxiPVgoZSwxKSxwPSguLi51KT0+TChpLGYsU3QoYix1KSk7VChwLHB0LHt2YWx1ZToodSk9PnUgaW5zdGFuY2VvZiBpLGNvbmZpZ3VyYWJsZTohMH0pO2xldCByPXMoRSxwLFt2b2lkIDBdKTt1dChyLGZ0KG8pKTtsZXQgbD1hdChvKTtmb3IobGV0IHU9MDt1PGwubGVuZ3RoO3UrKylUKHIsbFt1XSxsdChvLGxbdV0pKTtyZXR1cm4gcn1yZXR1cm4gcyh0LG4sZSl9fWZ1bmN0aW9uIFJ0KHQsbil7bGV0IGU9dFtuXTtyZXR1cm4oLi4ubyk9PkwoZSx0LG8pfWZ1bmN0aW9uIEF0KHQsbiwuLi5lKXtsZXQgbz10W25dO3JldHVybiBMKG8sdCxlKX1leHBvcnR7UnQgYXMgYyxBdCBhcyBkfTs=";
47
+ const __eliscript_truthy = (value) => value !== false && value != null;
48
+ const __eliscript_number_intrinsic = globalThis.Number;
49
+ const __eliscript_bigint_intrinsic = globalThis.BigInt;
50
+ const __eliscript_numeric_apply = globalThis.Reflect.apply;
51
+ const __eliscript_numeric_symbol = globalThis.Symbol.toPrimitive;
52
+ const __eliscript_numeric_error = globalThis.TypeError;
53
+ const __eliscript_numeric_trim = globalThis.String.prototype.trim;
54
+ const __eliscript_numeric_slice = globalThis.String.prototype.slice;
55
+ const __eliscript_numeric_exec = globalThis.RegExp.prototype.exec;
56
+ const __eliscript_numeric_radix = /^(?:0[xX][0-9a-fA-F]+|0[oO][0-7]+|0[bB][01]+)$/;
57
+ const __eliscript_numeric_object = (value) => value !== null && (typeof value === "object" || typeof value === "function" || (typeof value === "undefined" && value !== void 0));
58
+ const __eliscript_numeric_primitive = (value) => {
59
+ if (!__eliscript_numeric_object(value)) return value;
60
+ const exotic = value[__eliscript_numeric_symbol];
61
+ if (exotic !== void 0 && exotic !== null) {
62
+ const result = __eliscript_numeric_apply(exotic, value, ["number"]);
63
+ if (!__eliscript_numeric_object(result)) return result;
64
+ throw new __eliscript_numeric_error("Cannot convert object to primitive value");
65
+ }
66
+ for (let index = 0; index < 2; index++) {
67
+ const method = value[index === 0 ? "valueOf" : "toString"];
68
+ if (typeof method === "function" || (typeof method === "undefined" && method !== void 0)) {
69
+ const result = __eliscript_numeric_apply(method, value, []);
70
+ if (!__eliscript_numeric_object(result)) return result;
71
+ }
72
+ }
73
+ throw new __eliscript_numeric_error("Cannot convert object to primitive value");
74
+ };
75
+ const __eliscript_to_number = (value) => {
76
+ const primitive = __eliscript_numeric_primitive(value);
77
+ if (typeof primitive === "string") {
78
+ const text = __eliscript_numeric_apply(__eliscript_numeric_trim, primitive, []);
79
+ if (__eliscript_numeric_apply(__eliscript_numeric_exec, __eliscript_numeric_radix, [text]) !== null) {
80
+ let first = 2;
81
+ while (first < text.length && text[first] === "0") first++;
82
+ if (first === text.length) return 0;
83
+ const prefix = text[1];
84
+ const limit = prefix === "x" || prefix === "X" ? 256 : prefix === "b" || prefix === "B" ? 1024 : 342;
85
+ if (text.length - first > limit) return 1 / 0;
86
+ const token = __eliscript_numeric_apply(__eliscript_numeric_slice, text, [0, 2]) + __eliscript_numeric_apply(__eliscript_numeric_slice, text, [first]);
87
+ return __eliscript_number_intrinsic(__eliscript_bigint_intrinsic(token));
88
+ }
89
+ }
90
+ return __eliscript_number_intrinsic(primitive);
91
+ };
92
+ const __eliscript_numeric = (value) => {
93
+ if (typeof value === "number" || typeof value === "bigint") return value;
94
+ const primitive = __eliscript_numeric_primitive(value);
95
+ if (typeof primitive === "number" || typeof primitive === "bigint") return primitive;
96
+ return typeof primitive === "string" ? __eliscript_to_number(primitive) : +primitive;
97
+ };
98
+ const __eliscript_implicit_number = (value) => {
99
+ if (typeof value === "number") return value;
100
+ const primitive = __eliscript_numeric_primitive(value);
101
+ if (typeof primitive === "bigint") throw new __eliscript_numeric_error("Cannot convert a BigInt value to a number");
102
+ return typeof primitive === "string" ? __eliscript_to_number(primitive) : +primitive;
103
+ };
104
+ const __eliscript_numeric_decrement = (value) => __eliscript_implicit_number(value) - 1;
105
+ const __eliscript_numeric_sub = (a, b) => { if (typeof a === "number" && typeof b === "number") return a - b; return __eliscript_numeric(a) - __eliscript_numeric(b); };
106
+ const __eliscript_numeric_mul = (a, b) => { if (typeof a === "number" && typeof b === "number") return a * b; return __eliscript_numeric(a) * __eliscript_numeric(b); };
107
+ const __eliscript_numeric_div = (a, b) => { if (typeof a === "number" && typeof b === "number") return a / b; return __eliscript_numeric(a) / __eliscript_numeric(b); };
108
+ const __eliscript_numeric_rem = (a, b) => { if (typeof a === "number" && typeof b === "number") return a % b; return __eliscript_numeric(a) % __eliscript_numeric(b); };
109
+ const __eliscript_numeric_and = (a, b) => { if (typeof a === "number" && typeof b === "number") return a & b; return __eliscript_numeric(a) & __eliscript_numeric(b); };
110
+ const __eliscript_numeric_or = (a, b) => { if (typeof a === "number" && typeof b === "number") return a | b; return __eliscript_numeric(a) | __eliscript_numeric(b); };
111
+ const __eliscript_numeric_xor = (a, b) => { if (typeof a === "number" && typeof b === "number") return a ^ b; return __eliscript_numeric(a) ^ __eliscript_numeric(b); };
112
+ const __eliscript_numeric_shl = (a, b) => { if (typeof a === "number" && typeof b === "number") return a << b; return __eliscript_numeric(a) << __eliscript_numeric(b); };
113
+ const __eliscript_numeric_shr = (a, b) => { if (typeof a === "number" && typeof b === "number") return a >> b; return __eliscript_numeric(a) >> __eliscript_numeric(b); };
114
+ const __eliscript_numeric_ushr = (a, b) => { if (typeof a === "number" && typeof b === "number") return a >>> b; return __eliscript_numeric(a) >>> __eliscript_numeric(b); };
115
+ const __eliscript_numeric_neg = (a) => typeof a === "number" ? -a : -__eliscript_numeric(a);
116
+ const __eliscript_numeric_int32 = (a) => typeof a === "number" ? a | 0 : __eliscript_numeric(a) | 0;
117
+ const __eliscript_numeric_uint32 = (a) => typeof a === "number" ? a >>> 0 : __eliscript_numeric(a) >>> 0;
118
+ const __eliscript_numeric_not = (a) => typeof a === "number" ? ~a : ~__eliscript_numeric(a);
119
+ const __eliscript_numeric_relation = (operator, left, right) => {
120
+ if (typeof left === "number" && typeof right === "number") {
121
+ if (operator === "<") return left < right;
122
+ if (operator === "<=") return left <= right;
123
+ if (operator === ">") return left > right;
124
+ return left >= right;
125
+ }
126
+ let a = __eliscript_numeric_primitive(left);
127
+ let b = __eliscript_numeric_primitive(right);
128
+ const x = typeof a, y = typeof b;
129
+ if (!((x === "string" && y === "string") || (x === "bigint" && y === "string") || (x === "string" && y === "bigint"))) {
130
+ a = __eliscript_numeric(a);
131
+ b = __eliscript_numeric(b);
132
+ }
133
+ if (operator === "<") return a < b;
134
+ if (operator === "<=") return a <= b;
135
+ if (operator === ">") return a > b;
136
+ return a >= b;
137
+ };
138
+
139
+ import {createHash} from "node:crypto";
140
+ import {Buffer} from "node:buffer";
141
+ import {posix, resolve} from "node:path";
142
+ import {pathToFileURL} from "node:url";
143
+ import {read_string} from "../../dist/bootstrap/reader.mjs";
144
+ import {compile_string} from "../../dist/bootstrap/compiler.mjs";
145
+ import {independentCompilerResources} from "./compiler-build.mjs";
146
+ import {originalInteropFullRuntimeRecipe} from "./compiler-corpus-host-context.mjs";
147
+ import {root} from "./build.mjs";
148
+ import * as legacy from "./compiler-corpus-legacy.mjs";
149
+ import {transportOriginalFuzzCorpus} from "./compiler-corpus-fuzz.mjs";
150
+ import {transportOriginalStdlibBitCorpus} from "./compiler-corpus-bit.mjs";
151
+ import {transportOriginalSourceDebuggingCorpus} from "./compiler-corpus-debugging.mjs";
152
+ import {transportOriginalBootstrapEmitterCorpus, prepareOriginalBootstrapEmitterOptions} from "./compiler-corpus-emitter.mjs";
153
+ const createOriginalCorpusSourceReader = (legacy)["createOriginalCorpusSourceReader"];
154
+ __eliscript_tdz_ready_0 = true;
155
+ const cloneCompilerCorpusData = (legacy)["cloneCompilerCorpusData"];
156
+ __eliscript_tdz_ready_1 = true;
157
+ const cloneCompilerCorpusModules = (legacy)["cloneCompilerCorpusModules"];
158
+ __eliscript_tdz_ready_2 = true;
159
+ const literal_suite = "tests/literal-runtime.test.mjs";
160
+ __eliscript_tdz_ready_3 = true;
161
+ const literal_source = "tests/eliscript/literal-runtime.eli";
162
+ __eliscript_tdz_ready_4 = true;
163
+ const literal_title = "maintained Eliscript sources use explicit host constructors";
164
+ __eliscript_tdz_ready_5 = true;
165
+ const request_layouts = ((plans) => {
166
+ (["core-set-usage", "core-stdlib-usage", "core-language-api-usage"])["forEach"](((name) => {
167
+ return (plans)["set"](("stable-compatibility:program:tests/fixtures/" + name + ".eli"), [(name + ".mjs"), "keep"]);
168
+ }));
169
+ (plans)["set"]("original-program:core-set-source-map", ["core-set-usage.mjs", "keep"]);
170
+ (plans)["set"]("original-program:core-stdlib-complete-protocols", ["core-stdlib-usage.mjs", "keep"]);
171
+ (plans)["set"]("stable-compatibility:program:stdlib/multimethod.eli", ["multimethod.mjs", "stdlib"]);
172
+ (plans)["set"]("original-program:multimethod-complete-hosts", ["multimethod.mjs", "stdlib"]);
173
+ (["persistent-list", "persistent-vector", "persistent-map", "persistent-set", "numeric", "json", "result", "metadata", "data-text", "value-semantics"])["forEach"](((name) => {
174
+ return (plans)["set"](("original-program:portable-" + name + "-complete-hosts"), [(((name === "value-semantics") ? "value" : name) + ".mjs"), "stdlib"]);
175
+ }));
176
+ (plans)["set"]("original-managed-suite:complete-fixture-suites", ["host/compiler-session.mjs", "compiler"]);
177
+ (plans)["set"]("original-tools-artifact:worker-source-mapping:bun", ["host/compiler-session.mjs", "compiler"]);
178
+ (["node", "bun"])["forEach"](((engine) => {
179
+ (["original-tools-artifact:", "original-managed:"])["forEach"](((prefix) => {
180
+ return (plans)["set"]((prefix + "compiler-session-tools:" + engine), ["host/compiler-session.mjs", "compiler"]);
181
+ }));
182
+ return ([65536, 1])["forEach"](((auto) => {
183
+ ([["core-modules", "tests/core-entry.mjs"], ["transient-state", "entry.mjs"], ["sorted-core", "tests/sorted-entry.mjs"], ["wire", "tests/fixtures/wasm-managed-wire.mjs"], ["wire-original-host", "tests/fixtures/wasm-managed-wire.mjs"]])["forEach"](((family) => {
184
+ return (plans)["set"](("original-managed:" + (family)[0] + ":" + engine + ":auto-" + auto), [(family)[1], (__eliscript_truthy(((family)[0])["startsWith"]("wire")) ? "keep" : "entry")]);
185
+ }));
186
+ (plans)["set"](("original-managed-fixture:persistent-vector-auto-" + auto + ":" + engine), ["entry.mjs", "entry"]);
187
+ return (plans)["set"](("original-identity-value:stdlib-value-json:" + engine + ":auto-" + auto), ["entry.mjs", "entry"]);
188
+ }));
189
+ }));
190
+ return plans;
191
+ })(new (globalThis.Map)());
192
+ __eliscript_tdz_ready_6 = true;
193
+ function request_source(assets, filename) {
194
+ {
195
+ const __eliscript_value_1 = (assets)["get"](filename);
196
+ {
197
+ let asset = __eliscript_value_1;
198
+ if ((!__eliscript_truthy(asset))) {
199
+ ((__eliscript_value_2) => { throw __eliscript_value_2; })(new (globalThis.TypeError)(("original recipe is missing source asset: " + filename)));
200
+ }
201
+ {
202
+ const __eliscript_value_3 = (Buffer)["from"]((asset)["content"], "base64");
203
+ {
204
+ let bytes = __eliscript_value_3;
205
+ if ((!(((asset)["encoding"] === "base64") && (__eliscript_at_direct(bytes, "toString", "base64") === (asset)["content"]) && (((bytes) ?? []).length === (asset)["bytes"]) && (corpus_hash(bytes) === (asset)["sha256"])))) {
206
+ ((__eliscript_value_4) => { throw __eliscript_value_4; })(new (globalThis.TypeError)(("original recipe source asset identity differs: " + filename)));
207
+ }
208
+ return (new (globalThis.TextDecoder)("utf-8", ({"fatal": true, "ignoreBOM": true})))["decode"](bytes);
209
+ }
210
+ }
211
+ }
212
+ }
213
+ }
214
+ function request_imports(module) {
215
+ {
216
+ const __eliscript_value_5 = read_string((module)["source"], (module)["filename"]);
217
+ const __eliscript_value_6 = [];
218
+ {
219
+ let pending = __eliscript_value_5;
220
+ let result = __eliscript_value_6;
221
+ while (__eliscript_numeric_relation(">", ((pending) ?? []).length, 0)) {
222
+ {
223
+ let node = (pending)["shift"]();
224
+ let items = (node)["items"];
225
+ let head = ((__eliscript_value_7) => (__eliscript_truthy(__eliscript_value_7) ? ((items)[0])["name"] : __eliscript_value_7))(items);
226
+ if ((head === "module")) {
227
+ __eliscript_at(Reflect, "apply")((pending)["push"], pending, (items)["slice"](2));
228
+ } else {
229
+ if (((head === "import") || (head === "import-portable"))) {
230
+ {
231
+ const __eliscript_value_8 = ((items)[1])["value"];
232
+ {
233
+ let specifier = __eliscript_value_8;
234
+ if (__eliscript_truthy(((__eliscript_value_9) => (__eliscript_truthy(__eliscript_value_9) ? (specifier)["startsWith"](".") : __eliscript_value_9))((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(specifier) === "string")))) {
235
+ (result)["push"]((posix)["normalize"](__eliscript_at(posix, "join")((posix)["dirname"]((module)["filename"]), specifier)));
236
+ }
237
+ }
238
+ }
239
+ } else {
240
+
241
+ }
242
+ }
243
+ }
244
+ }
245
+ return result;
246
+ }
247
+ }
248
+ }
249
+ function request_canonical_library_filenames(modules, options, assets) {
250
+ {
251
+ const __eliscript_value_10 = (options)["literalSources"];
252
+ const __eliscript_value_11 = (options)["literalSourceIdentity"];
253
+ const __eliscript_value_12 = new (globalThis.Map)();
254
+ const __eliscript_value_13 = new (globalThis.Map)();
255
+ {
256
+ let libraries = __eliscript_value_10;
257
+ let identity = __eliscript_value_11;
258
+ let proofs = __eliscript_value_12;
259
+ let by_file = __eliscript_value_13;
260
+ if ((!__eliscript_truthy(((__eliscript_value_14) => (__eliscript_truthy(__eliscript_value_14) ? ((__eliscript_value_15) => (__eliscript_truthy(__eliscript_value_15) ? (__eliscript_numeric_relation(">", ((libraries) ?? []).length, 0) && (((libraries) ?? []).length === ((identity) ?? []).length)) : __eliscript_value_15))(Array.isArray(identity)) : __eliscript_value_14))(Array.isArray(libraries))))) {
261
+ ((__eliscript_value_16) => { throw __eliscript_value_16; })(new (globalThis.TypeError)("original recipe requires its complete literal source declarations"));
262
+ }
263
+ (identity)["forEach"](((proof) => {
264
+ if (__eliscript_truthy((proofs)["has"]((proof)["id"]))) {
265
+ ((__eliscript_value_17) => { throw __eliscript_value_17; })(new (globalThis.TypeError)("original recipe literal source declarations repeat an identity"));
266
+ }
267
+ return (proofs)["set"]((proof)["id"], proof);
268
+ }));
269
+ (libraries)["forEach"](((library) => {
270
+ {
271
+ let id = (library)["id"];
272
+ let filename = (library)["filename"];
273
+ let proof = (proofs)["get"](id);
274
+ let source = (library)["source"];
275
+ if ((!__eliscript_truthy(((__eliscript_value_18) => (__eliscript_truthy(__eliscript_value_18) ? (((proof)["filename"] === filename) && (((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(source) === "string") && ((proof)["sha256"] === ((createHash("sha256"))["update"](source, "utf16le"))["digest"]("hex")) && (source === request_source(assets, filename)) && (!__eliscript_truthy((by_file)["has"](filename)))) : __eliscript_value_18))(proof)))) {
276
+ ((__eliscript_value_19) => { throw __eliscript_value_19; })(new (globalThis.TypeError)("original recipe literal source declarations differ from their source identity"));
277
+ }
278
+ return (by_file)["set"](filename, library);
279
+ }
280
+ }));
281
+ return (modules)["forEach"](((module) => {
282
+ {
283
+ const __eliscript_value_20 = (by_file)["get"]((module)["filename"]);
284
+ {
285
+ let library = __eliscript_value_20;
286
+ if (__eliscript_truthy(((__eliscript_value_21) => (__eliscript_truthy(__eliscript_value_21) ? ((library)["id"])["startsWith"]("runtime/") : __eliscript_value_21))(library))) {
287
+ if ((!((module)["source"] === (library)["source"]))) {
288
+ ((__eliscript_value_22) => { throw __eliscript_value_22; })(new (globalThis.TypeError)("original recipe literal source declarations differ from their module source"));
289
+ }
290
+ return ((module)["filename"] = (((library)["id"])["slice"](0, -4) + ".eli"));
291
+ } else {
292
+ return null;
293
+ }
294
+ }
295
+ }
296
+ }));
297
+ }
298
+ }
299
+ }
300
+ function complete_request_sources(record, request, options, independent_seed = null) {
301
+ {
302
+ const __eliscript_value_23 = ((__eliscript_value_24) => (__eliscript_truthy(__eliscript_value_24) ? __eliscript_value_24 : (__eliscript_truthy(independent_seed) ? [(record)["entry"], "stdlib"] : null)))(((__eliscript_tdz_read_6()))["get"]((record)["id"]));
303
+ {
304
+ let plan = __eliscript_value_23;
305
+ if (__eliscript_truthy(((__eliscript_value_25) => (__eliscript_truthy(__eliscript_value_25) ? ((__eliscript_value_26) => (__eliscript_truthy(__eliscript_value_26) ? ((record)["entry"] === (plan)[0]) : __eliscript_value_26))(plan) : __eliscript_value_25))(request))) {
306
+ {
307
+ const __eliscript_value_27 = (request)["modules"];
308
+ const __eliscript_value_28 = (plan)[1];
309
+ {
310
+ let modules = __eliscript_value_27;
311
+ let layout = __eliscript_value_28;
312
+ (modules)["forEach"](((module) => {
313
+ if (((layout === "compiler") || ((layout === "entry") && ((module)["id"] === (record)["entry"])))) {
314
+ return ((module)["filename"] = (((module)["id"])["slice"](0, -4) + ".eli"));
315
+ } else {
316
+ return null;
317
+ }
318
+ }));
319
+ {
320
+ const __eliscript_value_29 = ((__eliscript_value_30) => (__eliscript_truthy(__eliscript_value_30) ? (options)["sourceAssets"] : __eliscript_value_30))(options);
321
+ {
322
+ let source_assets = __eliscript_value_29;
323
+ if ((!(source_assets == null))) {
324
+ if ((!__eliscript_truthy(Array.isArray(source_assets)))) {
325
+ ((__eliscript_value_31) => { throw __eliscript_value_31; })(new (globalThis.TypeError)("original recipe source assets must be an array"));
326
+ }
327
+ {
328
+ const __eliscript_value_32 = new (globalThis.Map)();
329
+ const __eliscript_value_33 = new (globalThis.Map)();
330
+ const __eliscript_value_34 = (__eliscript_tdz_read_1())(((request)["hostSources"] ?? []));
331
+ const __eliscript_value_35 = 0;
332
+ {
333
+ let assets = __eliscript_value_32;
334
+ let aliases = __eliscript_value_33;
335
+ let hosts = __eliscript_value_34;
336
+ let index = __eliscript_value_35;
337
+ (source_assets)["forEach"](((asset) => {
338
+ {
339
+ let filename = (asset)["file"];
340
+ let previous = (assets)["get"](filename);
341
+ if (__eliscript_truthy(((__eliscript_value_36) => (__eliscript_truthy(__eliscript_value_36) ? (((__eliscript_value_37, __eliscript_value_38) => (__eliscript_value_37 !== __eliscript_value_38))((previous)["sha256"], (asset)["sha256"]) || ((__eliscript_value_39, __eliscript_value_40) => (__eliscript_value_39 !== __eliscript_value_40))((previous)["content"], (asset)["content"])) : __eliscript_value_36))(previous))) {
342
+ ((__eliscript_value_41) => { throw __eliscript_value_41; })(new (globalThis.TypeError)(("original recipe has conflicting source assets: " + filename)));
343
+ }
344
+ return (assets)["set"](filename, asset);
345
+ }
346
+ }));
347
+ if ((layout === "stdlib")) {
348
+ request_canonical_library_filenames(modules, options, assets);
349
+ }
350
+ ((modules)["concat"](hosts))["forEach"](((module) => {
351
+ (aliases)["set"]((posix)["normalize"]((module)["id"]), module);
352
+ return (aliases)["set"]((posix)["normalize"]((module)["filename"]), module);
353
+ }));
354
+ if ((!(layout === "compiler"))) {
355
+ (assets)["forEach"](((asset, filename) => {
356
+ if (__eliscript_truthy(((__eliscript_value_42) => (__eliscript_truthy(__eliscript_value_42) ? ((__eliscript_value_44) => (__eliscript_truthy(__eliscript_value_44) ? (!__eliscript_truthy((aliases)["has"](filename))) : __eliscript_value_44))((filename)["endsWith"](".mjs")) : __eliscript_value_42))(((__eliscript_value_43) => (__eliscript_truthy(__eliscript_value_43) ? __eliscript_value_43 : (filename)["startsWith"]("platform/")))((filename)["startsWith"]("runtime/"))))) {
357
+ {
358
+ const __eliscript_value_45 = ({"id": filename, "filename": filename, "source": request_source(assets, filename)});
359
+ {
360
+ let provider = __eliscript_value_45;
361
+ (hosts)["push"](provider);
362
+ return (aliases)["set"](filename, provider);
363
+ }
364
+ }
365
+ } else {
366
+ return null;
367
+ }
368
+ }));
369
+ }
370
+ while (__eliscript_numeric_relation("<", index, ((modules) ?? []).length)) {
371
+ (request_imports((modules)[index]))["forEach"](((path) => {
372
+ if ((!__eliscript_truthy((aliases)["has"](path)))) {
373
+ {
374
+ let filename = (__eliscript_truthy(((__eliscript_value_46) => (__eliscript_truthy(__eliscript_value_46) ? ((!__eliscript_truthy((path)["startsWith"]("runtime/"))) && (!__eliscript_truthy((path)["startsWith"]("platform/")))) : __eliscript_value_46))((path)["endsWith"](".mjs"))) ? ((path)["slice"](0, -4) + ".eli") : path);
375
+ let id = (__eliscript_truthy((path)["endsWith"](".eli")) ? ((path)["slice"](0, -4) + ".mjs") : path);
376
+ let module = ({"id": id, "filename": filename, "source": request_source(assets, filename)});
377
+ if (__eliscript_truthy(((__eliscript_value_47) => (__eliscript_truthy(__eliscript_value_47) ? __eliscript_value_47 : (aliases)["has"](filename)))((aliases)["has"](id)))) {
378
+ ((__eliscript_value_48) => { throw __eliscript_value_48; })(new (globalThis.TypeError)(("original recipe source alias conflicts: " + path)));
379
+ }
380
+ if (__eliscript_truthy((filename)["endsWith"](".mjs"))) {
381
+ (hosts)["push"](module);
382
+ } else {
383
+ (modules)["push"](module);
384
+ }
385
+ (aliases)["set"](id, module);
386
+ return (aliases)["set"](filename, module);
387
+ }
388
+ } else {
389
+ return null;
390
+ }
391
+ }));
392
+ ((index = (index + 1)));
393
+ }
394
+ if (__eliscript_truthy(((__eliscript_value_49) => (__eliscript_truthy(__eliscript_value_49) ? __eliscript_value_49 : Object.hasOwn(request, "hostSources")))(__eliscript_numeric_relation(">", ((hosts) ?? []).length, 0)))) {
395
+ ((request)["hostSources"] = hosts);
396
+ }
397
+ }
398
+ }
399
+ }
400
+ }
401
+ }
402
+ }
403
+ }
404
+ }
405
+ return request;
406
+ }
407
+ }
408
+ }
409
+ function prepareOriginalSeedSources(record, options) {
410
+ {
411
+ const __eliscript_value_50 = compilerCorpusRequest(record, "javascript", options);
412
+ {
413
+ let request = __eliscript_value_50;
414
+ if (__eliscript_truthy(((__eliscript_tdz_read_6()))["has"]((record)["id"]))) {
415
+ return request;
416
+ } else {
417
+ return complete_request_sources(record, request, options, true);
418
+ }
419
+ }
420
+ }
421
+ }
422
+ function originalSequenceNativeInteropP(record) {
423
+ return ((__eliscript_value_51) => (__eliscript_truthy(__eliscript_value_51) ? ((__eliscript_value_52) => (__eliscript_truthy(__eliscript_value_52) ? ((__eliscript_value_53) => (__eliscript_truthy(__eliscript_value_53) ? (new (globalThis.RegExp)("^original-managed:sequence-data-(relational-set|standard-identities):(node|bun):auto-65536$"))["test"]((record)["id"]) : __eliscript_value_53))((((record)["original"])["suite"] === "tests/wasm-managed-sequence-data.test.mjs")) : __eliscript_value_52))((!((record)["original"] == null))) : __eliscript_value_51))((!(record == null)));
424
+ }
425
+ function transportOriginalSequenceRuntime(record, libraries) {
426
+ if ((!__eliscript_truthy(originalSequenceNativeInteropP(record)))) {
427
+ return record;
428
+ } else {
429
+ {
430
+ const __eliscript_value_54 = new (globalThis.Map)();
431
+ const __eliscript_value_55 = new (globalThis.Map)();
432
+ const __eliscript_value_56 = [];
433
+ const __eliscript_value_57 = [];
434
+ {
435
+ let canonical = __eliscript_value_54;
436
+ let proofs = __eliscript_value_55;
437
+ let modules = __eliscript_value_56;
438
+ let evidence = __eliscript_value_57;
439
+ if ((!__eliscript_truthy(Array.isArray(libraries)))) {
440
+ ((__eliscript_value_58) => { throw __eliscript_value_58; })(new (globalThis.TypeError)("original sequence runtime import transport requires real literal sources"));
441
+ }
442
+ (((record)["original"])["sourceAssets"])["forEach"](((asset) => {
443
+ return (proofs)["set"]((asset)["file"], (asset)["sourceSha256"]);
444
+ }));
445
+ (libraries)["forEach"](((library) => {
446
+ if ((!((proofs)["get"]((library)["filename"]) === corpus_hash((library)["source"])))) {
447
+ ((__eliscript_value_59) => { throw __eliscript_value_59; })(new (globalThis.TypeError)("original sequence runtime source identity differs"));
448
+ }
449
+ return (canonical)["set"]((library)["id"], library);
450
+ }));
451
+ ((record)["modules"])["forEach"](((module) => {
452
+ {
453
+ let id = (module)["id"];
454
+ let source = (module)["source"];
455
+ let library = (canonical)["get"](id);
456
+ if (__eliscript_truthy(((__eliscript_value_60) => (__eliscript_truthy(__eliscript_value_60) ? library : __eliscript_value_60))((id)["startsWith"]("runtime/")))) {
457
+ if ((!(source === (library)["source"]))) {
458
+ return ((__eliscript_value_61) => { throw __eliscript_value_61; })(new (globalThis.TypeError)("original sequence runtime source identity differs"));
459
+ } else {
460
+ return null;
461
+ }
462
+ } else {
463
+ {
464
+ const __eliscript_value_62 = read_string(source, (module)["filename"]);
465
+ const __eliscript_value_63 = [];
466
+ {
467
+ let pending = __eliscript_value_62;
468
+ let changes = __eliscript_value_63;
469
+ while (__eliscript_numeric_relation(">", ((pending) ?? []).length, 0)) {
470
+ {
471
+ let form = (pending)["shift"]();
472
+ let items = (form)["items"];
473
+ let head = ((__eliscript_value_64) => (__eliscript_truthy(__eliscript_value_64) ? ((__eliscript_value_65) => (__eliscript_truthy(__eliscript_value_65) ? ((items)[0])["name"] : __eliscript_value_65))(__eliscript_numeric_relation(">", ((items) ?? []).length, 0)) : __eliscript_value_64))(items);
474
+ if ((head === "module")) {
475
+ __eliscript_at(Reflect, "apply")((pending)["push"], pending, (items)["slice"](2));
476
+ } else {
477
+ if (((head === "import") || (head === "import-portable"))) {
478
+ {
479
+ let token = (items)[1];
480
+ let specifier = (token)["value"];
481
+ if (__eliscript_truthy(((__eliscript_value_66) => (__eliscript_truthy(__eliscript_value_66) ? (specifier)["startsWith"](".") : __eliscript_value_66))((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(specifier) === "string")))) {
482
+ {
483
+ let target = (posix)["normalize"](__eliscript_at(posix, "join")((posix)["dirname"](id), specifier));
484
+ let provider = (canonical)["get"](target);
485
+ if (__eliscript_truthy(((__eliscript_value_67) => (__eliscript_truthy(__eliscript_value_67) ? (target)["startsWith"]("runtime/") : __eliscript_value_67))(provider))) {
486
+ (changes)["push"](({"start": ((token)["span"])["start"], "end": ((token)["span"])["end"], "from": specifier, "to": ("eliscript/" + target)}));
487
+ }
488
+ }
489
+ }
490
+ }
491
+ } else {
492
+
493
+ }
494
+ }
495
+ }
496
+ }
497
+ {
498
+ const __eliscript_value_68 = Array.from(source);
499
+ const __eliscript_value_69 = source;
500
+ {
501
+ let points = __eliscript_value_68;
502
+ let routed = __eliscript_value_69;
503
+ (changes)["sort"](((left, right) => {
504
+ return __eliscript_numeric_sub((right)["start"], (left)["start"]);
505
+ }));
506
+ (changes)["forEach"](((change) => {
507
+ {
508
+ const __eliscript_value_70 = (change)["start"];
509
+ const __eliscript_value_71 = (change)["end"];
510
+ {
511
+ let start = __eliscript_value_70;
512
+ let end = __eliscript_value_71;
513
+ if ((!__eliscript_truthy(((__eliscript_value_72) => (__eliscript_truthy(__eliscript_value_72) ? ((__eliscript_value_73) => (__eliscript_truthy(__eliscript_value_73) ? (__eliscript_numeric_relation(">=", start, 0) && __eliscript_numeric_relation(">", end, start) && __eliscript_numeric_relation("<=", end, ((points) ?? []).length)) : __eliscript_value_73))(Number.isSafeInteger(end)) : __eliscript_value_72))(Number.isSafeInteger(start))))) {
514
+ ((__eliscript_value_74) => { throw __eliscript_value_74; })(new (globalThis.TypeError)("original sequence runtime import span differs"));
515
+ }
516
+ if ((!(JSON.parse(__eliscript_at_direct((points)["slice"](start, end), "join", "")) === (change)["from"]))) {
517
+ ((__eliscript_value_75) => { throw __eliscript_value_75; })(new (globalThis.TypeError)("original sequence runtime import span differs"));
518
+ }
519
+ return ((points = ((points)["slice"](0, start))["concat"](Array.from(JSON.stringify((change)["to"])), (points)["slice"](end))));
520
+ }
521
+ }
522
+ }));
523
+ ((routed = __eliscript_at_direct(points, "join", "")));
524
+ (modules)["push"](Object.assign(({}), module, ({"source": routed})));
525
+ return (evidence)["push"](({"id": id, "sourceSha256": corpus_hash(source), "transportSourceSha256": corpus_hash(routed), "imports": changes}));
526
+ }
527
+ }
528
+ }
529
+ }
530
+ }
531
+ }
532
+ }));
533
+ return Object.assign(({}), record, ({"modules": modules, "runtimeImportTransport": ({"kind": "original-sequence-native-provider-imports", "modules": evidence})}));
534
+ }
535
+ }
536
+ }
537
+ }
538
+ function resource_field(value, key) {
539
+ if ((value == null)) {
540
+ return undefined;
541
+ } else {
542
+ return (value)[key];
543
+ }
544
+ }
545
+ function resource_budget_specified_p(value) {
546
+ return ((__eliscript_value_76) => (__eliscript_truthy(__eliscript_value_76) ? (["maxSlots", "initialBytes", "maxBytes"])["some"](((key) => {
547
+ return Object.hasOwn(value, key);
548
+ })) : __eliscript_value_76))((!(value == null)));
549
+ }
550
+ function implicit_tool_resource_recipe_p(record) {
551
+ {
552
+ let id = resource_field(record, "id");
553
+ let original = resource_field(record, "original");
554
+ let formatter = (id === "original-program:formatter-node");
555
+ let macro = ((id === "original-program:macro-generated-names-bun") || (id === "original-program:macro-generated-names-node"));
556
+ let suite = (__eliscript_truthy(formatter) ? "tests/bootstrap-formatter.test.mjs" : "tests/macro-generated-names.test.mjs");
557
+ let filename = (__eliscript_truthy(formatter) ? "bootstrap/compiler/formatter.eli" : "generated-names.eli");
558
+ let entry = (__eliscript_truthy(formatter) ? "bootstrap/compiler/formatter.mjs" : "generated-names.mjs");
559
+ let regions = resource_field(original, "regions");
560
+ let modules = resource_field(record, "modules");
561
+ let sha = new (globalThis.RegExp)("^[0-9a-f]{64}$");
562
+ return ((__eliscript_value_77) => (__eliscript_truthy(__eliscript_value_77) ? ((__eliscript_value_79) => (__eliscript_truthy(__eliscript_value_79) ? ((__eliscript_value_80) => (__eliscript_truthy(__eliscript_value_80) ? ((__eliscript_value_81) => (__eliscript_truthy(__eliscript_value_81) ? ((__eliscript_value_82) => (__eliscript_truthy(__eliscript_value_82) ? ((__eliscript_value_83) => (__eliscript_truthy(__eliscript_value_83) ? ((__eliscript_value_84) => (__eliscript_truthy(__eliscript_value_84) ? ((__eliscript_value_85) => (__eliscript_truthy(__eliscript_value_85) ? ((__eliscript_value_86) => (__eliscript_truthy(__eliscript_value_86) ? ((__eliscript_value_87) => (__eliscript_truthy(__eliscript_value_87) ? ((__eliscript_value_98) => (__eliscript_truthy(__eliscript_value_98) ? ((((modules)["filter"](((module) => {
563
+ return (((module)["id"] === entry) && ((module)["filename"] === filename) && (((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })((module)["source"]) === "string"));
564
+ }))) ?? []).length === 1) : __eliscript_value_98))(Array.isArray(modules)) : __eliscript_value_87))((regions)["every"](((region) => {
565
+ return ((__eliscript_value_88) => (__eliscript_truthy(__eliscript_value_88) ? ((__eliscript_value_89) => (__eliscript_truthy(__eliscript_value_89) ? ((__eliscript_value_90) => (__eliscript_truthy(__eliscript_value_90) ? ((__eliscript_value_91) => (__eliscript_truthy(__eliscript_value_91) ? ((__eliscript_value_92) => (__eliscript_truthy(__eliscript_value_92) ? ((__eliscript_value_93) => (__eliscript_truthy(__eliscript_value_93) ? ((__eliscript_value_94) => (__eliscript_truthy(__eliscript_value_94) ? ((__eliscript_value_95) => (__eliscript_truthy(__eliscript_value_95) ? ((__eliscript_value_96) => (__eliscript_truthy(__eliscript_value_96) ? ((__eliscript_value_97) => (__eliscript_truthy(__eliscript_value_97) ? (sha)["test"]((region)["sha256"]) : __eliscript_value_97))((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })((region)["sha256"]) === "string")) : __eliscript_value_96))(__eliscript_numeric_relation(">", (region)["byteEnd"], (region)["byteStart"])) : __eliscript_value_95))(Number.isSafeInteger((region)["byteEnd"])) : __eliscript_value_94))(__eliscript_numeric_relation(">=", (region)["byteStart"], 0)) : __eliscript_value_93))(Number.isSafeInteger((region)["byteStart"])) : __eliscript_value_92))(__eliscript_numeric_relation(">", (region)["end"], (region)["start"])) : __eliscript_value_91))(Number.isSafeInteger((region)["end"])) : __eliscript_value_90))(__eliscript_numeric_relation(">=", (region)["start"], 0)) : __eliscript_value_89))(Number.isSafeInteger((region)["start"])) : __eliscript_value_88))(region);
566
+ }))) : __eliscript_value_86))(__eliscript_numeric_relation(">", ((regions) ?? []).length, 0)) : __eliscript_value_85))(Array.isArray(regions)) : __eliscript_value_84))((sha)["test"]((original)["sourceSha256"])) : __eliscript_value_83))((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(resource_field(original, "sourceSha256")) === "string")) : __eliscript_value_82))((resource_field(record, "entry") === entry)) : __eliscript_value_81))((resource_field(original, "fixture") === (__eliscript_truthy(formatter) ? filename : suite))) : __eliscript_value_80))((resource_field(original, "host") === suite)) : __eliscript_value_79))((resource_field(original, "suite") === suite)) : __eliscript_value_77))(((__eliscript_value_78) => (__eliscript_truthy(__eliscript_value_78) ? __eliscript_value_78 : macro))(formatter));
567
+ }
568
+ }
569
+ function implicit_core_exit_resource_recipe_p(record) {
570
+ {
571
+ const __eliscript_value_99 = resource_field(record, "original");
572
+ const __eliscript_value_100 = resource_field(record, "id");
573
+ {
574
+ let original = __eliscript_value_99;
575
+ let id = __eliscript_value_100;
576
+ return ((__eliscript_value_101) => (__eliscript_truthy(__eliscript_value_101) ? ((__eliscript_value_102) => (__eliscript_truthy(__eliscript_value_102) ? ((__eliscript_value_103) => (__eliscript_truthy(__eliscript_value_103) ? ((__eliscript_value_104) => (__eliscript_truthy(__eliscript_value_104) ? ((__eliscript_value_105) => (__eliscript_truthy(__eliscript_value_105) ? ((__eliscript_value_106) => (__eliscript_truthy(__eliscript_value_106) ? (((((record)["modules"])["filter"](((module) => {
577
+ return (((module)["id"] === "value.mjs") && ((module)["filename"] === "stdlib/value.eli") && (((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })((module)["source"]) === "string"));
578
+ }))) ?? []).length === 1) : __eliscript_value_106))(Array.isArray(resource_field(record, "modules"))) : __eliscript_value_105))((resource_field(record, "entry") === "value.mjs")) : __eliscript_value_104))((resource_field(original, "host") === "tests/fixtures/persistent-core-exit-host.mjs")) : __eliscript_value_103))((resource_field(original, "fixture") === "stdlib/value.eli")) : __eliscript_value_102))((resource_field(original, "manifest") === "stable-compatibility")) : __eliscript_value_101))((["vector", "map", "set"])["some"](((name) => {
579
+ return (id === ("stable-compatibility:program:persistent-core-exit-" + name));
580
+ })));
581
+ }
582
+ }
583
+ }
584
+ function million_core_exit_resource_recipe_p(record) {
585
+ {
586
+ let id = resource_field(record, "id");
587
+ let execution = resource_field(record, "execution");
588
+ let arguments$ = resource_field(execution, "arguments");
589
+ let collection = (__eliscript_truthy(Array.isArray(arguments$)) ? resource_field((arguments$)[1], "literal") : null);
590
+ return ((__eliscript_value_107) => (__eliscript_truthy(__eliscript_value_107) ? ((__eliscript_value_108) => (__eliscript_truthy(__eliscript_value_108) ? ((id === ("stable-compatibility:program:persistent-core-exit-" + collection)) && (resource_field(execution, "host") === "tests/fixtures/persistent-core-exit-host.mjs") && (((arguments$) ?? []).length === 2) && (resource_field((arguments$)[0], "directory") === true)) : __eliscript_value_108))((["vector", "map", "set"])["includes"](collection)) : __eliscript_value_107))(implicit_core_exit_resource_recipe_p(record));
591
+ }
592
+ }
593
+ function retained_deep_walk_resource_recipe_p(record) {
594
+ {
595
+ let original = resource_field(record, "original");
596
+ let fixture = "tests/fixtures/persistent-tree-walk.eli";
597
+ let modules = resource_field(record, "modules");
598
+ let entry = (__eliscript_truthy(Array.isArray(modules)) ? (modules)["find"](((item) => {
599
+ return ((item)["id"] === (record)["entry"]);
600
+ })) : null);
601
+ return ((__eliscript_value_109) => (__eliscript_truthy(__eliscript_value_109) ? ((__eliscript_value_110) => (__eliscript_truthy(__eliscript_value_110) ? ((__eliscript_value_111) => (__eliscript_truthy(__eliscript_value_111) ? ((__eliscript_value_112) => (__eliscript_truthy(__eliscript_value_112) ? ((__eliscript_value_113) => (__eliscript_truthy(__eliscript_value_113) ? ((__eliscript_value_114) => (__eliscript_truthy(__eliscript_value_114) ? ((__eliscript_value_115) => (__eliscript_truthy(__eliscript_value_115) ? ((entry)["source"])["includes"]("(depth 12000)") : __eliscript_value_115))((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })((entry)["source"]) === "string")) : __eliscript_value_114))(((entry)["filename"] === fixture)) : __eliscript_value_113))(entry) : __eliscript_value_112))((resource_field(original, "host") === "tests/fixtures/persistent-tree-walk-host.mjs")) : __eliscript_value_111))((resource_field(original, "fixture") === fixture)) : __eliscript_value_110))((resource_field(original, "manifest") === "stable-compatibility")) : __eliscript_value_109))((["stable-compatibility:program:tests/fixtures/persistent-tree-walk.eli", "original-program:persistent-tree-walk-complete-hosts"])["includes"](resource_field(record, "id")));
602
+ }
603
+ }
604
+ function retained_original_graph_resource_recipe_p(record) {
605
+ {
606
+ let id = resource_field(record, "id");
607
+ let original = resource_field(record, "original");
608
+ let execution = resource_field(record, "execution");
609
+ let rows = [["original-program:portable-value-2", "tests/portable-value-semantics.test.mjs", "stdlib/value.eli", "ec84ada97c91d4c0469e39805647f6d18070ce4e764c93c7d79abe8c36c6f275", "162efa2783a29fa34292eacbf65e6d184b1b4876d3d881d2d0d93cdb2108ad73", "bb2616efda941ef7030f6ef5c7835b8fca44ce1b9034698b319e22683e34a2bd", "Eliscript-authored value semantics preserve generated cross-family invariants"], ["original-program:portable-persistent-list-1", "tests/portable-persistent-list.test.mjs", "stdlib/persistent-list.eli", "c4003467e353f98c384d547249d47a0c8316344dd27c90aac22d33666fc22e3b", "1166d68ce08c8a22c1ec56452d9e009cd498a8aba241dcd3e7966c49e9c5e970", "192c860e81292669ba31e35a523ff674bddf38d09f3b5666ffced7c3ae415cfa", "Eliscript-authored persistent list shares a million-node suffix"]];
610
+ let row = (rows)["find"](((item) => {
611
+ return ((item)[0] === id);
612
+ }));
613
+ let modules = resource_field(record, "modules");
614
+ let entry = (__eliscript_truthy(Array.isArray(modules)) ? (modules)["find"](((item) => {
615
+ return ((item)["id"] === (record)["entry"]);
616
+ })) : null);
617
+ let host = resource_field(execution, "hostSource");
618
+ return ((__eliscript_value_116) => (__eliscript_truthy(__eliscript_value_116) ? ((__eliscript_value_117) => (__eliscript_truthy(__eliscript_value_117) ? ((resource_field(original, "manifest") === "stable-compatibility") && (resource_field(original, "suite") === (row)[1]) && (resource_field(original, "host") === (row)[1]) && (resource_field(original, "fixture") === (row)[2]) && ((entry)["filename"] === (row)[2]) && (resource_field(original, "sourceSha256") === (row)[3]) && (resource_field(original, "originalAssertion") === (row)[6]) && (((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(host) === "string") && (corpus_hash(host) === (row)[4]) && (((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })((entry)["source"]) === "string") && (corpus_hash((entry)["source"]) === (row)[5])) : __eliscript_value_117))(entry) : __eliscript_value_116))(row);
619
+ }
620
+ }
621
+ function retained_original_zipper_resource_coordinate_p(record) {
622
+ {
623
+ let original = resource_field(record, "original");
624
+ let execution = resource_field(record, "execution");
625
+ let rows = [["original-program:persistent-zipper-complete-hosts", "tests/fixtures/persistent-zipper-host.mjs", "tests/__eliscript_original_persistent-zipper.mjs", "5dc962e505dc5bdc89d6416c21f2448ea47e0563a606c78daca883edda2687dd", "persistent zippers navigate edit and rebuild stack-safe trees", 4123, 5340, "cd44b17cad6b04f9a73834ead06d4b8b7603e50724f70cd20bfbd417fd44b930"], ["original-program:persistent-zipper-indexed-ascent", "tests/persistent-zipper.test.mjs", "tests/__eliscript_original_zipper_indexed_ascent.mjs", "1fec4936176e487244c3edfff95d7af8ae142dcb654517c761c30ff25e88edb1", "deep zipper ascent reads indexed ancestor slots without reducing wide parent vectors", 5735, 7774, "621879f188e742007f2c2e01cb71da5598592401a3bb7ba786731c2028f6640b"]];
626
+ let row = (rows)["find"](((item) => {
627
+ return ((item)[0] === resource_field(record, "id"));
628
+ }));
629
+ let modules = resource_field(record, "modules");
630
+ let entry = (__eliscript_truthy(Array.isArray(modules)) ? (modules)["find"](((item) => {
631
+ return ((item)["id"] === (record)["entry"]);
632
+ })) : null);
633
+ let regions = resource_field(original, "regions");
634
+ let region = (__eliscript_truthy(((__eliscript_value_118) => (__eliscript_truthy(__eliscript_value_118) ? (((regions) ?? []).length === 1) : __eliscript_value_118))(Array.isArray(regions))) ? (regions)[0] : null);
635
+ let host = resource_field(execution, "hostSource");
636
+ return ((__eliscript_value_119) => (__eliscript_truthy(__eliscript_value_119) ? ((__eliscript_value_120) => (__eliscript_truthy(__eliscript_value_120) ? ((__eliscript_value_121) => (__eliscript_truthy(__eliscript_value_121) ? ((resource_field(original, "manifest") === "stable-compatibility") && (resource_field(original, "suite") === "tests/persistent-zipper.test.mjs") && (resource_field(original, "fixture") === "tests/fixtures/persistent-zipper.eli") && (resource_field(original, "host") === (row)[1]) && (resource_field(original, "sourceSha256") === "70e2fbd82e1b5210daeeb4cdbb329d92cb470d7f30d6e59ff195147645b2180c") && (resource_field(original, "originalAssertion") === (row)[4]) && ((record)["entry"] === "tests/fixtures/persistent-zipper.mjs") && ((entry)["filename"] === "tests/fixtures/persistent-zipper.eli") && (((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })((entry)["source"]) === "string") && (corpus_hash((entry)["source"]) === "10234df36146cfe881ef33678acc6274ad95c2f775fed51f081dee654ac102cf") && (resource_field(execution, "host") === (row)[2]) && (((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(host) === "string") && (corpus_hash(host) === (row)[3]) && (resource_field(region, "start") === (row)[5]) && (resource_field(region, "byteStart") === (row)[5]) && (resource_field(region, "end") === (row)[6]) && (resource_field(region, "byteEnd") === (row)[6]) && (resource_field(region, "sha256") === (row)[7])) : __eliscript_value_121))(region) : __eliscript_value_120))(entry) : __eliscript_value_119))(row);
637
+ }
638
+ }
639
+ function complete_library_functional_resource_coordinate_p(record) {
640
+ {
641
+ let original = resource_field(record, "original");
642
+ let fixture = resource_field(original, "fixture");
643
+ let modules = resource_field(record, "modules");
644
+ let entry = (__eliscript_truthy(Array.isArray(modules)) ? (modules)["find"](((item) => {
645
+ return ((item)["id"] === (record)["entry"]);
646
+ })) : null);
647
+ return ((__eliscript_value_122) => (__eliscript_truthy(__eliscript_value_122) ? __eliscript_value_122 : ((__eliscript_value_123) => (__eliscript_truthy(__eliscript_value_123) ? ((__eliscript_value_124) => (__eliscript_truthy(__eliscript_value_124) ? ((__eliscript_value_125) => (__eliscript_truthy(__eliscript_value_125) ? ((__eliscript_value_126) => (__eliscript_truthy(__eliscript_value_126) ? ((__eliscript_value_127) => (__eliscript_truthy(__eliscript_value_127) ? ((__eliscript_value_128) => (__eliscript_truthy(__eliscript_value_128) ? ((record)["id"] === (String("stable-compatibility:program:") + String(fixture))) : __eliscript_value_128))(((__eliscript_value_129) => (__eliscript_truthy(__eliscript_value_129) ? __eliscript_value_129 : (["tests/fixtures/map-patterns.eli", "tests/fixtures/core-stdlib-usage.eli", "tests/fixtures/core-language-api-usage.eli", "tests/fixtures/core-set-usage.eli", "tests/fixtures/persistent-zipper.eli"])["includes"](fixture)))((fixture)["startsWith"]("stdlib/"))) : __eliscript_value_127))((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })((entry)["source"]) === "string")) : __eliscript_value_126))(((entry)["filename"] === fixture)) : __eliscript_value_125))(entry) : __eliscript_value_124))((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(fixture) === "string")) : __eliscript_value_123))((resource_field(original, "manifest") === "stable-compatibility"))))(retained_original_zipper_resource_coordinate_p(record));
648
+ }
649
+ }
650
+ function complete_library_input_identity(record) {
651
+ return ({"entry": (record)["entry"], "fixture": ((record)["original"])["fixture"], "host": ((record)["original"])["host"], "modulesSha256": corpus_hash(JSON.stringify((record)["modules"])), "requestSha256": corpus_hash(JSON.stringify((record)["request"])), "executionSha256": corpus_hash(JSON.stringify((record)["execution"]))});
652
+ }
653
+ function complete_library_functional_resource_recipe_p(record) {
654
+ {
655
+ let original = resource_field(record, "original");
656
+ let retained = resource_field(original, "functionalResourceInputs");
657
+ let coordinate = complete_library_functional_resource_coordinate_p(record);
658
+ let bound_coordinate = ((__eliscript_value_130) => (__eliscript_truthy(__eliscript_value_130) ? ((__eliscript_value_131) => (__eliscript_truthy(__eliscript_value_131) ? ((__eliscript_value_132) => (__eliscript_truthy(__eliscript_value_132) ? __eliscript_value_132 : (["original-program:persistent-zipper-complete-hosts", "original-program:persistent-zipper-indexed-ascent"])["includes"](resource_field(record, "id"))))((resource_field(record, "id") === (String("stable-compatibility:program:") + String(resource_field(original, "fixture"))))) : __eliscript_value_131))((resource_field(retained, "fixture") === resource_field(original, "fixture"))) : __eliscript_value_130))(retained);
659
+ if (__eliscript_truthy(((__eliscript_value_133) => (__eliscript_truthy(__eliscript_value_133) ? __eliscript_value_133 : bound_coordinate))(coordinate))) {
660
+ if ((!__eliscript_truthy(((__eliscript_value_134) => (__eliscript_truthy(__eliscript_value_134) ? (JSON.stringify(retained) === JSON.stringify(complete_library_input_identity(record))) : __eliscript_value_134))(coordinate)))) {
661
+ ((__eliscript_value_135) => { throw __eliscript_value_135; })(new (globalThis.TypeError)("complete positive program functional resource inputs differ from their authenticated archive"));
662
+ }
663
+ return true;
664
+ } else {
665
+ return null;
666
+ }
667
+ }
668
+ }
669
+ function bind_complete_library_resource_inputs(document) {
670
+ {
671
+ const __eliscript_value_136 = new (globalThis.Map)();
672
+ {
673
+ let assets = __eliscript_value_136;
674
+ ((document)["evidence"])["forEach"](((asset) => {
675
+ return (assets)["set"]((asset)["file"], asset);
676
+ }));
677
+ ((document)["records"])["forEach"](((record) => {
678
+ if (__eliscript_truthy(complete_library_functional_resource_coordinate_p(record))) {
679
+ ((record)["modules"])["forEach"](((module) => {
680
+ if ((!(request_source(assets, (module)["filename"]) === (module)["source"]))) {
681
+ return ((__eliscript_value_137) => { throw __eliscript_value_137; })(new (globalThis.TypeError)("complete positive program module differs from its authenticated archive"));
682
+ } else {
683
+ return null;
684
+ }
685
+ }));
686
+ {
687
+ let original = (record)["original"];
688
+ let execution = (record)["execution"];
689
+ let host = (original)["host"];
690
+ let origin = request_source(assets, host);
691
+ let inline = (execution)["hostEval"];
692
+ let regions = (original)["regions"];
693
+ if ((!__eliscript_truthy(((__eliscript_value_138) => (__eliscript_truthy(__eliscript_value_138) ? __eliscript_value_138 : ((__eliscript_value_139) => (__eliscript_truthy(__eliscript_value_139) ? __eliscript_value_139 : ((__eliscript_value_142) => (__eliscript_truthy(__eliscript_value_142) ? __eliscript_value_142 : ((__eliscript_value_146) => (__eliscript_truthy(__eliscript_value_146) ? ((__eliscript_value_147) => (__eliscript_truthy(__eliscript_value_147) ? ((__eliscript_value_148) => (__eliscript_truthy(__eliscript_value_148) ? ((__eliscript_value_149) => (__eliscript_truthy(__eliscript_value_149) ? (regions)["every"](((region) => {
694
+ return (corpus_hash((origin)["slice"]((region)["start"], (region)["end"])) === (region)["sha256"]);
695
+ })) : __eliscript_value_149))(__eliscript_numeric_relation(">", ((regions) ?? []).length, 0)) : __eliscript_value_148))(Array.isArray(regions)) : __eliscript_value_147))(((original)["sourceSha256"] === corpus_hash(origin))) : __eliscript_value_146))((["tests/core-set.test.mjs", "tests/core-stdlib.test.mjs"])["includes"](host))))(((__eliscript_value_143) => (__eliscript_truthy(__eliscript_value_143) ? ((__eliscript_value_144) => (__eliscript_truthy(__eliscript_value_144) ? ((__eliscript_value_145) => (__eliscript_truthy(__eliscript_value_145) ? (origin)["includes"]((inline)["trimEnd"]()) : __eliscript_value_145))(__eliscript_numeric_relation(">", ((inline) ?? []).length, 0)) : __eliscript_value_144))((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(inline) === "string")) : __eliscript_value_143))((host === "tests/cli-test.sh")))))(((__eliscript_value_140) => (__eliscript_truthy(__eliscript_value_140) ? ((suite) => {
696
+ return ((__eliscript_value_141) => (__eliscript_truthy(__eliscript_value_141) ? (regions)["every"](((region) => {
697
+ return (corpus_hash((suite)["slice"]((region)["start"], (region)["end"])) === (region)["sha256"]);
698
+ })) : __eliscript_value_141))((corpus_hash(suite) === (original)["sourceSha256"]));
699
+ })(request_source(assets, (original)["suite"])) : __eliscript_value_140))(retained_original_zipper_resource_coordinate_p(record)))))((((execution)["host"] === host) && ((execution)["hostSource"] === origin)))))) {
700
+ ((__eliscript_value_150) => { throw __eliscript_value_150; })(new (globalThis.TypeError)("complete positive program host differs from its authenticated archive"));
701
+ }
702
+ return ((original)["functionalResourceInputs"] = complete_library_input_identity(record));
703
+ }
704
+ } else {
705
+ return null;
706
+ }
707
+ }));
708
+ return document;
709
+ }
710
+ }
711
+ }
712
+ function compilerCorpusFunctionalResources(record, options) {
713
+ {
714
+ const __eliscript_value_151 = resource_field(options, "functionalRuntimeProfile");
715
+ const __eliscript_value_152 = undefined;
716
+ {
717
+ let profile = __eliscript_value_151;
718
+ let result = __eliscript_value_152;
719
+ if ((!(profile === undefined))) {
720
+ if ((!(profile === "small"))) {
721
+ ((__eliscript_value_153) => { throw __eliscript_value_153; })(new (globalThis.TypeError)("functionalRuntimeProfile must be small when explicitly supplied"));
722
+ }
723
+ {
724
+ let id = resource_field(record, "id");
725
+ let execution = resource_field(record, "execution");
726
+ let original = resource_field(record, "original");
727
+ let expected = resource_field(record, "expected");
728
+ let provided = resource_field(options, "runtimeOptions");
729
+ let declared = resource_field(execution, "runtimeOptions");
730
+ let sequence = ((__eliscript_value_154) => (__eliscript_truthy(__eliscript_value_154) ? ((__eliscript_value_155) => (__eliscript_truthy(__eliscript_value_155) ? ((resource_field(original, "suite") === "tests/wasm-managed-sequence-data.test.mjs") && (resource_field(original, "fixture") === "tests/fixtures/wasm-managed-sequence-data.eli")) : __eliscript_value_155))((new (globalThis.RegExp)("^original-managed:sequence-data(?::|-)"))["test"](id)) : __eliscript_value_154))((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(id) === "string"));
731
+ let ordinary = ((__eliscript_value_156) => (__eliscript_truthy(__eliscript_value_156) ? ((!__eliscript_truthy(resource_budget_specified_p(provided))) && (!__eliscript_truthy(resource_budget_specified_p(declared))) && (!(resource_field(execution, "runtimeProfile") === "compiler"))) : __eliscript_value_156))(((__eliscript_value_157) => (__eliscript_truthy(__eliscript_value_157) ? __eliscript_value_157 : ((__eliscript_value_158) => (__eliscript_truthy(__eliscript_value_158) ? __eliscript_value_158 : ((__eliscript_value_159) => (__eliscript_truthy(__eliscript_value_159) ? ((__eliscript_value_160) => (__eliscript_truthy(__eliscript_value_160) ? ((__eliscript_value_161) => (__eliscript_truthy(__eliscript_value_161) ? __eliscript_value_161 : ((__eliscript_value_162) => (__eliscript_truthy(__eliscript_value_162) ? (id)["startsWith"]("original-program:") : __eliscript_value_162))((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(id) === "string"))))((id === ("stable-compatibility:program:" + (original)["fixture"]))) : __eliscript_value_160))((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(resource_field(original, "fixture")) === "string")) : __eliscript_value_159))((resource_field(original, "manifest") === "stable-compatibility"))))(implicit_core_exit_resource_recipe_p(record))))(implicit_tool_resource_recipe_p(record)));
732
+ if (__eliscript_truthy(((__eliscript_value_163) => (__eliscript_truthy(__eliscript_value_163) ? ((__eliscript_value_164) => (__eliscript_truthy(__eliscript_value_164) ? ((!__eliscript_truthy((new (globalThis.RegExp)("(?:^|[-:])(?:negative|oom|capacity|recovery|recover|refusal|exhaustion)(?:[-:]|$)"))["test"](id))) && (resource_field(record, "kind") === "project") && (!__eliscript_truthy(Object.hasOwn(record, "error"))) && (resource_field(execution, "kind") === "original-program") && (resource_field(expected, "kind") === "seed-program") && (resource_field(expected, "oracleRequired") === true)) : __eliscript_value_164))(((__eliscript_value_165) => (__eliscript_truthy(__eliscript_value_165) ? __eliscript_value_165 : ordinary))(sequence)) : __eliscript_value_163))((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(id) === "string")))) {
733
+ {
734
+ let full_interop = ((__eliscript_value_166) => (__eliscript_truthy(__eliscript_value_166) ? ((__eliscript_value_167) => (__eliscript_truthy(__eliscript_value_167) ? originalInteropFullRuntimeRecipe(record) : __eliscript_value_167))((((globalThis.process)["env"])["ELISCRIPT_SEQUENCE_FUNCTIONAL_RUNTIME_PROFILE"] === "small")) : __eliscript_value_166))((((globalThis.process)["env"])["ELISCRIPT_DEFER_PERFORMANCE_ACCEPTANCE"] === "1"));
735
+ let selected_profile = (__eliscript_truthy(full_interop) ? "full-runtime" : (__eliscript_truthy(((__eliscript_value_168) => (__eliscript_truthy(__eliscript_value_168) ? __eliscript_value_168 : ((__eliscript_value_169) => (__eliscript_truthy(__eliscript_value_169) ? __eliscript_value_169 : ((__eliscript_value_170) => (__eliscript_truthy(__eliscript_value_170) ? __eliscript_value_170 : retained_original_graph_resource_recipe_p(record)))(retained_deep_walk_resource_recipe_p(record))))(million_core_exit_resource_recipe_p(record))))(complete_library_functional_resource_recipe_p(record))) ? "full-compiler" : "small"));
736
+ let resources = independentCompilerResources(({"profile": selected_profile}));
737
+ let before = Object.assign(({}), (__eliscript_truthy(sequence) ? ({}) : ({"maxSlots": 1024, "initialBytes": 65536, "maxBytes": 16777216, "auto": 0})), provided, declared, ((resource_field(record, "auto") === undefined) ? ({}) : ({"auto": (record)["auto"]})));
738
+ let explicit_auto = ((__eliscript_value_171) => (__eliscript_truthy(__eliscript_value_171) ? __eliscript_value_171 : ((__eliscript_value_173) => (__eliscript_truthy(__eliscript_value_173) ? __eliscript_value_173 : (!(resource_field(record, "auto") === undefined))))(((__eliscript_value_174) => (__eliscript_truthy(__eliscript_value_174) ? Object.hasOwn(declared, "auto") : __eliscript_value_174))(declared))))(((__eliscript_value_172) => (__eliscript_truthy(__eliscript_value_172) ? Object.hasOwn(provided, "auto") : __eliscript_value_172))(provided));
739
+ let after = Object.assign(({}), before, (resources)["budget"], (__eliscript_truthy(((__eliscript_value_175) => (__eliscript_truthy(__eliscript_value_175) ? (!__eliscript_truthy(explicit_auto)) : __eliscript_value_175))(full_interop)) ? ({"auto": 65536}) : (__eliscript_truthy(((__eliscript_value_176) => (__eliscript_truthy(__eliscript_value_176) ? __eliscript_value_176 : explicit_auto))(sequence)) ? ({}) : ({"auto": (resources)["auto"]}))));
740
+ ((result = ({"functionalRuntimeProfile": "small", "effectiveRuntimeProfile": selected_profile, "resourceAcceptance": "deferred", "originalRuntimeOptions": before, "effectiveRuntimeOptions": after})));
741
+ }
742
+ }
743
+ }
744
+ }
745
+ return result;
746
+ }
747
+ }
748
+ }
749
+ function zipper_stress_resource_deferred(record, target, options) {
750
+ {
751
+ const __eliscript_value_177 = resource_field(record, "id");
752
+ const __eliscript_value_178 = undefined;
753
+ {
754
+ let id = __eliscript_value_177;
755
+ let result = __eliscript_value_178;
756
+ if (__eliscript_truthy(((__eliscript_value_179) => (__eliscript_truthy(__eliscript_value_179) ? ((__eliscript_value_180) => (__eliscript_truthy(__eliscript_value_180) ? ((__eliscript_value_181) => (__eliscript_truthy(__eliscript_value_181) ? ((__eliscript_value_182) => (__eliscript_truthy(__eliscript_value_182) ? ((__eliscript_value_183) => (__eliscript_truthy(__eliscript_value_183) ? (!(compilerCorpusFunctionalResources(record, options) === undefined)) : __eliscript_value_183))(Array.isArray(resource_field(options, "sourceAssets"))) : __eliscript_value_182))((((globalThis.process)["env"])["ELISCRIPT_DEFER_PERFORMANCE_ACCEPTANCE"] === "1")) : __eliscript_value_181))((resource_field(options, "functionalRuntimeProfile") === "small")) : __eliscript_value_180))((["wasm", "native"])["includes"](target)) : __eliscript_value_179))((["stable-compatibility:program:tests/fixtures/persistent-zipper.eli", "original-program:persistent-zipper-complete-hosts", "original-program:persistent-zipper-indexed-ascent"])["includes"](id)))) {
757
+ if ((!__eliscript_truthy(((__eliscript_value_184) => (__eliscript_truthy(__eliscript_value_184) ? original_foreign_entry_p(record, options) : __eliscript_value_184))(complete_library_functional_resource_recipe_p(record))))) {
758
+ ((__eliscript_value_185) => { throw __eliscript_value_185; })(new (globalThis.TypeError)("zipper stress deferral requires the complete authenticated original recipe"));
759
+ }
760
+ {
761
+ let assets = new (globalThis.Map)();
762
+ let proofs = [];
763
+ let original = (record)["original"];
764
+ let execution = (record)["execution"];
765
+ let retained_zipper = retained_original_zipper_resource_coordinate_p(record);
766
+ ((options)["sourceAssets"])["forEach"](((asset) => {
767
+ {
768
+ const __eliscript_value_186 = (assets)["get"]((asset)["file"]);
769
+ {
770
+ let previous = __eliscript_value_186;
771
+ if (__eliscript_truthy(((__eliscript_value_187) => (__eliscript_truthy(__eliscript_value_187) ? (((__eliscript_value_188, __eliscript_value_189) => (__eliscript_value_188 !== __eliscript_value_189))((previous)["sha256"], (asset)["sha256"]) || ((__eliscript_value_190, __eliscript_value_191) => (__eliscript_value_190 !== __eliscript_value_191))((previous)["content"], (asset)["content"])) : __eliscript_value_187))(previous))) {
772
+ ((__eliscript_value_192) => { throw __eliscript_value_192; })(new (globalThis.TypeError)("zipper stress deferral has conflicting source assets"));
773
+ }
774
+ return (assets)["set"]((asset)["file"], asset);
775
+ }
776
+ }
777
+ }));
778
+ ((record)["modules"])["forEach"](((module) => {
779
+ {
780
+ let filename = (module)["filename"];
781
+ let source = request_source(assets, filename);
782
+ if ((!(source === (module)["source"]))) {
783
+ ((__eliscript_value_193) => { throw __eliscript_value_193; })(new (globalThis.TypeError)("zipper stress deferral module differs from its authenticated archive"));
784
+ }
785
+ return (proofs)["push"](({"file": filename, "sha256": corpus_hash(source)}));
786
+ }
787
+ }));
788
+ {
789
+ let host = (original)["host"];
790
+ let host_source = request_source(assets, host);
791
+ if ((!__eliscript_truthy(((__eliscript_value_194) => (__eliscript_truthy(__eliscript_value_194) ? __eliscript_value_194 : (((execution)["host"] === host) && ((execution)["hostSource"] === host_source))))(retained_zipper)))) {
792
+ ((__eliscript_value_195) => { throw __eliscript_value_195; })(new (globalThis.TypeError)("zipper stress deferral host differs from its authenticated archive"));
793
+ }
794
+ (proofs)["push"](({"file": host, "sha256": corpus_hash(host_source)}));
795
+ if (__eliscript_truthy(retained_zipper)) {
796
+ {
797
+ let suite = (original)["suite"];
798
+ let suite_source = request_source(assets, suite);
799
+ if ((!(corpus_hash(suite_source) === (original)["sourceSha256"]))) {
800
+ ((__eliscript_value_196) => { throw __eliscript_value_196; })(new (globalThis.TypeError)("zipper stress deferral suite differs from its authenticated archive"));
801
+ }
802
+ if ((!(host === suite))) {
803
+ (proofs)["push"](({"file": suite, "sha256": corpus_hash(suite_source)}));
804
+ }
805
+ }
806
+ }
807
+ }
808
+ ((result = ({"id": id, "target": target, "status": "resource-deferred", "verification": "deferred", "functionalRuntimeProfile": "small", "functionalVerification": "unverified", "fullCorpusVerification": "unverified", "performanceAcceptance": "failed", "scope": "complete-original-zipper-stress-family", "reason": "explicit performance deferral retains the original binary zipper stress job and known performance failure; complete functional verification remains unverified in this acceptance scope", "inputIdentity": complete_library_input_identity(record), "sourceProofs": proofs, "originalAssertion": resource_field(original, "originalAssertion"), "hostSourceSha256": corpus_hash((execution)["hostSource"])})));
809
+ }
810
+ }
811
+ return result;
812
+ }
813
+ }
814
+ }
815
+ function compilerCorpusResourceDeferred(record, target, options) {
816
+ return ((__eliscript_value_197) => (__eliscript_truthy(__eliscript_value_197) ? __eliscript_value_197 : million_value_resource_deferred(record, target, options)))(zipper_stress_resource_deferred(record, target, options));
817
+ }
818
+ function million_value_resource_deferred(record, target, options) {
819
+ {
820
+ let id = resource_field(record, "id");
821
+ let rows = [["stable-compatibility:program:persistent-core-exit-vector", "vector", null], ["stable-compatibility:program:persistent-core-exit-map", "map", null], ["stable-compatibility:program:persistent-core-exit-set", "set", null], ["original-program:portable-persistent-vector-1", "vector", "Eliscript-authored persistent vector keeps million-value trie bounds"], ["original-program:portable-persistent-map-2", "map", "Eliscript-authored HAMT Map shares the million-key update path"], ["original-program:portable-persistent-set-2", "set", "Eliscript-authored persistent Set shares the million-member update path"]];
822
+ let row = (rows)["find"](((entry) => {
823
+ return ((entry)[0] === id);
824
+ }));
825
+ let result = undefined;
826
+ if (__eliscript_truthy(((__eliscript_value_198) => (__eliscript_truthy(__eliscript_value_198) ? ((__eliscript_value_199) => (__eliscript_truthy(__eliscript_value_199) ? ((__eliscript_value_200) => (__eliscript_truthy(__eliscript_value_200) ? (!(compilerCorpusFunctionalResources(record, options) === undefined)) : __eliscript_value_200))((["javascript", "wasm", "native"])["includes"](target)) : __eliscript_value_199))((resource_field(options, "functionalRuntimeProfile") === "small")) : __eliscript_value_198))(row))) {
827
+ {
828
+ let original = (record)["original"];
829
+ let execution = (record)["execution"];
830
+ let assets = new (globalThis.Map)();
831
+ let input = resource_field(options, "sourceAssets");
832
+ let name = (row)[1];
833
+ let assertion = (row)[2];
834
+ let suite_source = undefined;
835
+ let proofs = [];
836
+ let refuse = (() => {
837
+ return ((__eliscript_value_201) => { throw __eliscript_value_201; })(new (globalThis.TypeError)("million-value resource deferral source identity differs"));
838
+ });
839
+ if ((!__eliscript_truthy(Array.isArray(input)))) {
840
+ refuse();
841
+ }
842
+ (input)["forEach"](((asset) => {
843
+ {
844
+ const __eliscript_value_202 = (assets)["get"]((asset)["file"]);
845
+ {
846
+ let previous = __eliscript_value_202;
847
+ if (__eliscript_truthy(((__eliscript_value_203) => (__eliscript_truthy(__eliscript_value_203) ? (((__eliscript_value_204, __eliscript_value_205) => (__eliscript_value_204 !== __eliscript_value_205))((previous)["sha256"], (asset)["sha256"]) || ((__eliscript_value_206, __eliscript_value_207) => (__eliscript_value_206 !== __eliscript_value_207))((previous)["content"], (asset)["content"])) : __eliscript_value_203))(previous))) {
848
+ refuse();
849
+ }
850
+ return (assets)["set"]((asset)["file"], asset);
851
+ }
852
+ }
853
+ }));
854
+ if ((!((original)["manifest"] === "stable-compatibility"))) {
855
+ refuse();
856
+ }
857
+ if ((assertion === null)) {
858
+ if ((!__eliscript_truthy(million_core_exit_resource_recipe_p(record)))) {
859
+ refuse();
860
+ }
861
+ ((suite_source = request_source(assets, "tests/fixtures/persistent-core-exit-host.mjs")));
862
+ if ((!(resource_field(execution, "hostSource") === suite_source))) {
863
+ refuse();
864
+ }
865
+ (proofs)["push"](({"file": "tests/fixtures/persistent-core-exit-host.mjs", "sha256": corpus_hash(suite_source)}));
866
+ } else {
867
+ {
868
+ let suite = ("tests/portable-persistent-" + name + ".test.mjs");
869
+ let fixture = ("stdlib/persistent-" + name + ".eli");
870
+ let regions = resource_field(original, "regions");
871
+ let million_region = false;
872
+ if ((!__eliscript_truthy(((__eliscript_value_208) => (__eliscript_truthy(__eliscript_value_208) ? ((__eliscript_value_209) => (__eliscript_truthy(__eliscript_value_209) ? ((__eliscript_value_210) => (__eliscript_truthy(__eliscript_value_210) ? ((__eliscript_value_211) => (__eliscript_truthy(__eliscript_value_211) ? ((__eliscript_value_212) => (__eliscript_truthy(__eliscript_value_212) ? ((__eliscript_value_213) => (__eliscript_truthy(__eliscript_value_213) ? __eliscript_numeric_relation(">", ((regions) ?? []).length, 0) : __eliscript_value_213))(Array.isArray(regions)) : __eliscript_value_212))(((record)["entry"] === ("persistent-" + name + ".mjs"))) : __eliscript_value_211))(((original)["originalAssertion"] === assertion)) : __eliscript_value_210))(((original)["fixture"] === fixture)) : __eliscript_value_209))(((original)["host"] === suite)) : __eliscript_value_208))(((original)["suite"] === suite))))) {
873
+ refuse();
874
+ }
875
+ ((suite_source = request_source(assets, suite)));
876
+ if ((!(corpus_hash(suite_source) === (original)["sourceSha256"]))) {
877
+ refuse();
878
+ }
879
+ (proofs)["push"](({"file": suite, "sha256": corpus_hash(suite_source)}));
880
+ {
881
+ const __eliscript_value_214 = (Buffer)["from"](suite_source);
882
+ {
883
+ let bytes = __eliscript_value_214;
884
+ (regions)["forEach"](((region) => {
885
+ {
886
+ const __eliscript_value_215 = (region)["start"];
887
+ const __eliscript_value_216 = (region)["end"];
888
+ const __eliscript_value_217 = (region)["byteStart"];
889
+ const __eliscript_value_218 = (region)["byteEnd"];
890
+ {
891
+ let start = __eliscript_value_215;
892
+ let end = __eliscript_value_216;
893
+ let byte_start = __eliscript_value_217;
894
+ let byte_end = __eliscript_value_218;
895
+ if ((!__eliscript_truthy(((__eliscript_value_219) => (__eliscript_truthy(__eliscript_value_219) ? ((__eliscript_value_220) => (__eliscript_truthy(__eliscript_value_220) ? ((__eliscript_value_221) => (__eliscript_truthy(__eliscript_value_221) ? ((__eliscript_value_222) => (__eliscript_truthy(__eliscript_value_222) ? (__eliscript_numeric_relation(">=", start, 0) && __eliscript_numeric_relation(">", end, start) && __eliscript_numeric_relation("<=", end, ((suite_source) ?? []).length) && __eliscript_numeric_relation(">=", byte_start, 0) && __eliscript_numeric_relation(">", byte_end, byte_start) && __eliscript_numeric_relation("<=", byte_end, ((bytes) ?? []).length) && (corpus_hash((bytes)["subarray"](byte_start, byte_end)) === (region)["sha256"]) && (__eliscript_at_direct((bytes)["subarray"](byte_start, byte_end), "toString", "utf8") === (suite_source)["slice"](start, end))) : __eliscript_value_222))(Number.isSafeInteger(byte_end)) : __eliscript_value_221))(Number.isSafeInteger(byte_start)) : __eliscript_value_220))(Number.isSafeInteger(end)) : __eliscript_value_219))(Number.isSafeInteger(start))))) {
896
+ refuse();
897
+ }
898
+ if (__eliscript_truthy(((suite_source)["slice"](start, end))["includes"]("1_000_000"))) {
899
+ return ((million_region = true));
900
+ } else {
901
+ return null;
902
+ }
903
+ }
904
+ }
905
+ }));
906
+ if ((!__eliscript_truthy(million_region))) {
907
+ refuse();
908
+ }
909
+ }
910
+ }
911
+ }
912
+ }
913
+ if ((!__eliscript_truthy(((__eliscript_value_223) => (__eliscript_truthy(__eliscript_value_223) ? ((execution)["hostSource"])["includes"]("1_000_000") : __eliscript_value_223))((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })((execution)["hostSource"]) === "string"))))) {
914
+ refuse();
915
+ }
916
+ {
917
+ let entry = ((record)["modules"])["find"](((module) => {
918
+ return ((module)["id"] === (record)["entry"]);
919
+ }));
920
+ let filename = ((__eliscript_value_224) => (__eliscript_truthy(__eliscript_value_224) ? (entry)["filename"] : __eliscript_value_224))(entry);
921
+ if ((!__eliscript_truthy(((__eliscript_value_225) => (__eliscript_truthy(__eliscript_value_225) ? ((entry)["source"] === request_source(assets, filename)) : __eliscript_value_225))(entry)))) {
922
+ refuse();
923
+ }
924
+ (proofs)["push"](({"file": filename, "sha256": corpus_hash((entry)["source"])}));
925
+ }
926
+ ((result = ({"id": id, "target": target, "status": "resource-deferred", "verification": "deferred", "functionalRuntimeProfile": "small", "fullCorpusVerification": "unverified", "valueCount": 1000000, "reason": "explicit functional profile defers the authenticated million-value synchronous host job; retained WeakRef views exceed managed slot capacity and incur quadratic cache scans", "sourceProofs": proofs, "originalAssertion": resource_field(original, "originalAssertion"), "hostSourceSha256": corpus_hash((execution)["hostSource"])})));
927
+ }
928
+ }
929
+ return result;
930
+ }
931
+ }
932
+ function original_foreign_entry_p(record, options) {
933
+ {
934
+ let execution = (record)["execution"];
935
+ let expected = (record)["expected"];
936
+ let original = (record)["original"];
937
+ let assets_input = ((__eliscript_value_226) => (__eliscript_truthy(__eliscript_value_226) ? (options)["sourceAssets"] : __eliscript_value_226))(options);
938
+ let host_source = ((__eliscript_value_227) => (__eliscript_truthy(__eliscript_value_227) ? (execution)["hostSource"] : __eliscript_value_227))(execution);
939
+ let host_eval = ((__eliscript_value_228) => (__eliscript_truthy(__eliscript_value_228) ? (execution)["hostEval"] : __eliscript_value_228))(execution);
940
+ if (__eliscript_truthy(((__eliscript_value_229) => (__eliscript_truthy(__eliscript_value_229) ? ((__eliscript_value_230) => (__eliscript_truthy(__eliscript_value_230) ? (((execution)["kind"] === "original-program") && ((expected)["kind"] === "seed-program") && ((expected)["oracleRequired"] === true) && ((execution)["aliases"] === true) && (!((execution)["zeroImports"] === true)) && (((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(host_source) === "string") && __eliscript_numeric_relation(">", ((host_source) ?? []).length, 0)) || ((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(host_eval) === "string") && __eliscript_numeric_relation(">", ((host_eval) ?? []).length, 0))) && (!(assets_input == null))) : __eliscript_value_230))(expected) : __eliscript_value_229))(execution))) {
941
+ if ((!__eliscript_truthy(Array.isArray(assets_input)))) {
942
+ ((__eliscript_value_231) => { throw __eliscript_value_231; })(new (globalThis.TypeError)("original recipe source assets must be an array"));
943
+ }
944
+ {
945
+ const __eliscript_value_232 = new (globalThis.Map)();
946
+ const __eliscript_value_233 = false;
947
+ {
948
+ let assets = __eliscript_value_232;
949
+ let authenticated = __eliscript_value_233;
950
+ (assets_input)["forEach"](((asset) => {
951
+ {
952
+ const __eliscript_value_234 = (asset)["file"];
953
+ const __eliscript_value_235 = (assets)["get"]((asset)["file"]);
954
+ {
955
+ let file = __eliscript_value_234;
956
+ let previous = __eliscript_value_235;
957
+ if (__eliscript_truthy(((__eliscript_value_236) => (__eliscript_truthy(__eliscript_value_236) ? (((__eliscript_value_237, __eliscript_value_238) => (__eliscript_value_237 !== __eliscript_value_238))((previous)["sha256"], (asset)["sha256"]) || ((__eliscript_value_239, __eliscript_value_240) => (__eliscript_value_239 !== __eliscript_value_240))((previous)["content"], (asset)["content"])) : __eliscript_value_236))(previous))) {
958
+ ((__eliscript_value_241) => { throw __eliscript_value_241; })(new (globalThis.TypeError)((String("original recipe has conflicting source assets: ") + String(file))));
959
+ }
960
+ return (assets)["set"](file, asset);
961
+ }
962
+ }
963
+ }));
964
+ ([((__eliscript_value_242) => (__eliscript_truthy(__eliscript_value_242) ? (original)["host"] : __eliscript_value_242))(original), ((__eliscript_value_243) => (__eliscript_truthy(__eliscript_value_243) ? (original)["suite"] : __eliscript_value_243))(original), (execution)["host"]])["forEach"](((filename) => {
965
+ if (__eliscript_truthy(((__eliscript_value_244) => (__eliscript_truthy(__eliscript_value_244) ? (assets)["has"](filename) : __eliscript_value_244))((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(filename) === "string")))) {
966
+ request_source(assets, filename);
967
+ return ((authenticated = true));
968
+ } else {
969
+ return null;
970
+ }
971
+ }));
972
+ if (__eliscript_truthy(((__eliscript_value_245) => (__eliscript_truthy(__eliscript_value_245) ? Array.isArray((original)["sourceAssets"]) : __eliscript_value_245))(original))) {
973
+ ((original)["sourceAssets"])["forEach"](((proof) => {
974
+ {
975
+ let filename = (proof)["file"];
976
+ let asset = (assets)["get"](filename);
977
+ if ((!__eliscript_truthy(((__eliscript_value_246) => (__eliscript_truthy(__eliscript_value_246) ? ((proof)["sourceSha256"] === (asset)["sha256"]) : __eliscript_value_246))(asset)))) {
978
+ ((__eliscript_value_247) => { throw __eliscript_value_247; })(new (globalThis.TypeError)((String("original recipe source asset identity differs: ") + String(filename))));
979
+ }
980
+ request_source(assets, filename);
981
+ return ((authenticated = true));
982
+ }
983
+ }));
984
+ }
985
+ if ((!__eliscript_truthy(authenticated))) {
986
+ ((__eliscript_value_248) => { throw __eliscript_value_248; })(new (globalThis.TypeError)("original foreign entry has no authenticated host source"));
987
+ }
988
+ return true;
989
+ }
990
+ }
991
+ } else {
992
+ return null;
993
+ }
994
+ }
995
+ }
996
+ function compilerCorpusRequest(record, target, ...arguments$) {
997
+ {
998
+ const __eliscript_value_249 = __eliscript_at(Reflect, "apply")((legacy)["compilerCorpusRequest"], undefined, ([record, target])["concat"](arguments$));
999
+ {
1000
+ let request = __eliscript_value_249;
1001
+ {
1002
+ let names = ["core-set-usage", "core-stdlib-usage", "core-language-api-usage"];
1003
+ let name = (names)["find"](((candidate) => {
1004
+ return (((record)["entry"] === (candidate + ".mjs")) && (((record)["id"] === ("stable-compatibility:program:tests/fixtures/" + candidate + ".eli")) || ((candidate === "core-set-usage") && ((record)["id"] === "original-program:core-set-source-map")) || ((candidate === "core-stdlib-usage") && ((record)["id"] === "original-program:core-stdlib-complete-protocols"))));
1005
+ }));
1006
+ if (__eliscript_truthy(((__eliscript_value_250) => (__eliscript_truthy(__eliscript_value_250) ? request : __eliscript_value_250))(name))) {
1007
+ ((request)["modules"])["forEach"](((module) => {
1008
+ {
1009
+ const __eliscript_value_251 = (names)["find"](((candidate) => {
1010
+ return (((module)["id"] === (candidate + ".mjs")) && ((module)["filename"] === ("tests/fixtures/" + candidate + ".eli")));
1011
+ }));
1012
+ {
1013
+ let fixture = __eliscript_value_251;
1014
+ if (__eliscript_truthy(fixture)) {
1015
+ return ((module)["filename"] = (fixture + ".eli"));
1016
+ } else {
1017
+ return null;
1018
+ }
1019
+ }
1020
+ }
1021
+ }));
1022
+ }
1023
+ }
1024
+ if (__eliscript_truthy(((__eliscript_value_252) => (__eliscript_truthy(__eliscript_value_252) ? (((record)["id"] === "stable-compatibility:program:tests/fixtures/core-language-api-usage.eli") && ((record)["entry"] === "core-language-api-usage.mjs")) : __eliscript_value_252))(request))) {
1025
+ ((request)["entries"] = ((record)["modules"])["map"](((module) => {
1026
+ return (module)["id"];
1027
+ })));
1028
+ }
1029
+ if (__eliscript_truthy(((__eliscript_value_253) => (__eliscript_truthy(__eliscript_value_253) ? ((((record)["id"] === "stable-compatibility:program:stdlib/multimethod.eli") || ((record)["id"] === "original-program:multimethod-complete-hosts")) && ((record)["entry"] === "multimethod.mjs")) : __eliscript_value_253))(request))) {
1030
+ ((request)["modules"])["forEach"](((module) => {
1031
+ if ((((module)["id"] === "declarative-multimethod.mjs") && ((module)["filename"] === "tests/fixtures/declarative-multimethod.eli"))) {
1032
+ return ((module)["filename"] = "stdlib/declarative-multimethod.eli");
1033
+ } else {
1034
+ return null;
1035
+ }
1036
+ }));
1037
+ }
1038
+ if (__eliscript_truthy(((__eliscript_value_254) => (__eliscript_truthy(__eliscript_value_254) ? ((__eliscript_value_255) => (__eliscript_truthy(__eliscript_value_255) ? ((__eliscript_value_256) => (__eliscript_truthy(__eliscript_value_256) ? ((__eliscript_value_257) => (__eliscript_truthy(__eliscript_value_257) ? (((record)["execution"])["kind"] === "original-program") : __eliscript_value_257))((record)["execution"]) : __eliscript_value_256))(((request)["phased"] === undefined)) : __eliscript_value_255))(((target === "wasm") || (target === "native"))) : __eliscript_value_254))(request))) {
1039
+ ((request)["phased"] = true);
1040
+ }
1041
+ if (__eliscript_truthy(((__eliscript_value_258) => (__eliscript_truthy(__eliscript_value_258) ? ((__eliscript_value_259) => (__eliscript_truthy(__eliscript_value_259) ? ((__eliscript_value_260) => (__eliscript_truthy(__eliscript_value_260) ? ((((record)["execution"])["kind"] === "original-program") && (((record)["execution"])["runtimeProfile"] === "compiler") && ((record)["memory"] == null)) : __eliscript_value_260))((record)["execution"]) : __eliscript_value_259))(((target === "wasm") || (target === "native"))) : __eliscript_value_258))(request))) {
1042
+ ((request)["memory"] = (independentCompilerResources((__eliscript_numeric_relation(">", ((arguments$) ?? []).length, 0) ? (arguments$)[0] : undefined)))["memory"]);
1043
+ }
1044
+ if (__eliscript_truthy(((__eliscript_value_261) => (__eliscript_truthy(__eliscript_value_261) ? ((__eliscript_value_262) => (__eliscript_truthy(__eliscript_value_262) ? ((__eliscript_value_263) => (__eliscript_truthy(__eliscript_value_263) ? compilerCorpusFunctionalResources(record, (__eliscript_numeric_relation(">", ((arguments$) ?? []).length, 0) ? (arguments$)[0] : undefined)) : __eliscript_value_263))(((record)["memory"] == null)) : __eliscript_value_262))(((target === "wasm") || (target === "native"))) : __eliscript_value_261))(request))) {
1045
+ {
1046
+ const __eliscript_value_264 = compilerCorpusFunctionalResources(record, (__eliscript_numeric_relation(">", ((arguments$) ?? []).length, 0) ? (arguments$)[0] : undefined));
1047
+ {
1048
+ let acceptance = __eliscript_value_264;
1049
+ ((request)["memory"] = (independentCompilerResources(({"profile": (acceptance)["effectiveRuntimeProfile"]})))["memory"]);
1050
+ }
1051
+ }
1052
+ }
1053
+ ((request = complete_request_sources(record, request, (__eliscript_numeric_relation(">", ((arguments$) ?? []).length, 0) ? (arguments$)[0] : undefined))));
1054
+ if (__eliscript_truthy(((__eliscript_value_265) => (__eliscript_truthy(__eliscript_value_265) ? originalSequenceNativeInteropP(record) : __eliscript_value_265))(request))) {
1055
+ {
1056
+ let options = (__eliscript_numeric_relation(">", ((arguments$) ?? []).length, 0) ? (arguments$)[0] : undefined);
1057
+ let transport = transportOriginalSequenceRuntime(record, ((__eliscript_value_266) => (__eliscript_truthy(__eliscript_value_266) ? (options)["literalSources"] : __eliscript_value_266))(options));
1058
+ let ids = new (globalThis.Set)(((transport)["modules"])["map"](((module) => {
1059
+ return (module)["id"];
1060
+ })));
1061
+ ((request)["modules"] = (transport)["modules"]);
1062
+ ((request)["runtimeImportTransport"] = (transport)["runtimeImportTransport"]);
1063
+ if (__eliscript_truthy(Array.isArray((request)["entries"]))) {
1064
+ ((request)["entries"] = ((request)["entries"])["filter"](((id) => {
1065
+ return (ids)["has"](id);
1066
+ })));
1067
+ }
1068
+ }
1069
+ }
1070
+ if (__eliscript_truthy(((__eliscript_value_267) => (__eliscript_truthy(__eliscript_value_267) ? ((__eliscript_value_268) => (__eliscript_truthy(__eliscript_value_268) ? ((__eliscript_value_269) => (__eliscript_truthy(__eliscript_value_269) ? original_foreign_entry_p(record, (__eliscript_numeric_relation(">", ((arguments$) ?? []).length, 0) ? (arguments$)[0] : undefined)) : __eliscript_value_269))((!__eliscript_truthy(Object.hasOwn(request, "foreignEntry")))) : __eliscript_value_268))(((target === "wasm") || (target === "native"))) : __eliscript_value_267))(request))) {
1071
+ ((request)["foreignEntry"] = true);
1072
+ }
1073
+ return request;
1074
+ }
1075
+ }
1076
+ }
1077
+ function corpus_hash(value) {
1078
+ return ((createHash("sha256"))["update"](value))["digest"]("hex");
1079
+ }
1080
+ function audit_symbol_p(node, name) {
1081
+ return ((!(node == null)) && ((node)["kind"] === "symbol") && ((node)["name"] === name));
1082
+ }
1083
+ function audit_list_p(node) {
1084
+ return ((__eliscript_value_270) => (__eliscript_truthy(__eliscript_value_270) ? ((__eliscript_value_271) => (__eliscript_truthy(__eliscript_value_271) ? Array.isArray((node)["items"]) : __eliscript_value_271))(((node)["kind"] === "list")) : __eliscript_value_270))((!(node == null)));
1085
+ }
1086
+ function audit_head_p(node, name) {
1087
+ return ((__eliscript_value_272) => (__eliscript_truthy(__eliscript_value_272) ? ((__eliscript_value_273) => (__eliscript_truthy(__eliscript_value_273) ? audit_symbol_p(((node)["items"])[0], name) : __eliscript_value_273))(__eliscript_numeric_relation(">", (((node)["items"]) ?? []).length, 0)) : __eliscript_value_272))(audit_list_p(node));
1088
+ }
1089
+ function audit_final_assertion_p(node) {
1090
+ {
1091
+ const __eliscript_value_274 = node;
1092
+ const __eliscript_value_275 = true;
1093
+ {
1094
+ let current = __eliscript_value_274;
1095
+ let searching = __eliscript_value_275;
1096
+ while (__eliscript_truthy(((__eliscript_value_276) => (__eliscript_truthy(__eliscript_value_276) ? audit_list_p(current) : __eliscript_value_276))(searching))) {
1097
+ {
1098
+ let items = (current)["items"];
1099
+ let head = (items)[0];
1100
+ if (__eliscript_truthy(((__eliscript_value_277) => (__eliscript_truthy(__eliscript_value_277) ? __eliscript_value_277 : ((__eliscript_value_278) => (__eliscript_truthy(__eliscript_value_278) ? __eliscript_value_278 : audit_symbol_p(head, "progn")))(audit_symbol_p(head, "let*"))))(audit_symbol_p(head, "let")))) {
1101
+ ((current = (items)[__eliscript_numeric_decrement(((items) ?? []).length)]));
1102
+ } else {
1103
+ ((searching = false));
1104
+ }
1105
+ }
1106
+ }
1107
+ return ((__eliscript_value_279) => (__eliscript_truthy(__eliscript_value_279) ? ((__eliscript_value_280) => (__eliscript_truthy(__eliscript_value_280) ? ((items) => {
1108
+ return ((expectation) => {
1109
+ return ((method) => {
1110
+ return ((empty) => {
1111
+ return ((__eliscript_value_281) => (__eliscript_truthy(__eliscript_value_281) ? ((__eliscript_value_282) => (__eliscript_truthy(__eliscript_value_282) ? ((__eliscript_value_283) => (__eliscript_truthy(__eliscript_value_283) ? ((__eliscript_value_284) => (__eliscript_truthy(__eliscript_value_284) ? ((__eliscript_value_285) => (__eliscript_truthy(__eliscript_value_285) ? ((__eliscript_value_286) => (__eliscript_truthy(__eliscript_value_286) ? ((((empty)["items"]) ?? []).length === 1) : __eliscript_value_286))(audit_head_p(empty, "js-array")) : __eliscript_value_285))(((method)["name"] === "toEqual")) : __eliscript_value_284))(((method)["kind"] === "keyword")) : __eliscript_value_283))(audit_symbol_p(((expectation)["items"])[1], "violations")) : __eliscript_value_282))(((((expectation)["items"]) ?? []).length === 2)) : __eliscript_value_281))(audit_head_p(expectation, "expect"));
1112
+ })((items)[3]);
1113
+ })((items)[2]);
1114
+ })((items)[1]);
1115
+ })((current)["items"]) : __eliscript_value_280))(((((current)["items"]) ?? []).length === 4)) : __eliscript_value_279))(audit_head_p(current, "js-call"));
1116
+ }
1117
+ }
1118
+ }
1119
+ function audit_unit_offset(source, offset) {
1120
+ {
1121
+ const __eliscript_value_287 = 0;
1122
+ const __eliscript_value_288 = 0;
1123
+ {
1124
+ let unit = __eliscript_value_287;
1125
+ let point = __eliscript_value_288;
1126
+ while ((__eliscript_numeric_relation("<", point, offset) && __eliscript_numeric_relation("<", unit, ((source) ?? []).length))) {
1127
+ {
1128
+ const __eliscript_value_289 = (source)["charCodeAt"](unit);
1129
+ {
1130
+ let first = __eliscript_value_289;
1131
+ if ((__eliscript_numeric_relation(">=", first, 55296) && __eliscript_numeric_relation("<=", first, 56319) && __eliscript_numeric_relation("<", (unit + 1), ((source) ?? []).length) && __eliscript_numeric_relation(">=", (source)["charCodeAt"]((unit + 1)), 56320) && __eliscript_numeric_relation("<=", (source)["charCodeAt"]((unit + 1)), 57343))) {
1132
+ ((unit = (unit + 2)));
1133
+ } else {
1134
+ ((unit = (unit + 1)));
1135
+ }
1136
+ }
1137
+ }
1138
+ ((point = (point + 1)));
1139
+ }
1140
+ if ((!(point === offset))) {
1141
+ ((__eliscript_value_290) => { throw __eliscript_value_290; })(new (globalThis.TypeError)("literal source audit position is outside its actual source"));
1142
+ }
1143
+ return unit;
1144
+ }
1145
+ }
1146
+ }
1147
+ function readOriginalLiteralRuntimeAudit(source, filename, expected_source_sha256) {
1148
+ if ((!((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(source) === "string") && (((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(filename) === "string") && (((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(expected_source_sha256) === "string") && (corpus_hash(source) === expected_source_sha256)))) {
1149
+ ((__eliscript_value_291) => { throw __eliscript_value_291; })(new (globalThis.TypeError)("literal source audit SHA-256 does not match its actual source"));
1150
+ }
1151
+ {
1152
+ let forms = read_string(source, filename);
1153
+ let candidates = [];
1154
+ let index = 0;
1155
+ while (__eliscript_numeric_relation("<", index, ((forms) ?? []).length)) {
1156
+ {
1157
+ const __eliscript_value_292 = (forms)[index];
1158
+ {
1159
+ let form = __eliscript_value_292;
1160
+ if (__eliscript_truthy(audit_head_p(form, "module"))) {
1161
+ {
1162
+ const __eliscript_value_293 = (form)["items"];
1163
+ const __eliscript_value_294 = 2;
1164
+ {
1165
+ let members = __eliscript_value_293;
1166
+ let position = __eliscript_value_294;
1167
+ while (__eliscript_numeric_relation("<", position, ((members) ?? []).length)) {
1168
+ {
1169
+ const __eliscript_value_295 = (members)[position];
1170
+ {
1171
+ let member = __eliscript_value_295;
1172
+ if (__eliscript_truthy(((__eliscript_value_296) => (__eliscript_truthy(__eliscript_value_296) ? audit_symbol_p(((member)["items"])[1], "literal-runtime-source-audit") : __eliscript_value_296))(audit_head_p(member, "defasync")))) {
1173
+ (candidates)["push"](member);
1174
+ }
1175
+ }
1176
+ }
1177
+ ((position = (position + 1)));
1178
+ }
1179
+ }
1180
+ }
1181
+ } else {
1182
+ if (__eliscript_truthy(((__eliscript_value_297) => (__eliscript_truthy(__eliscript_value_297) ? audit_symbol_p(((form)["items"])[1], "literal-runtime-source-audit") : __eliscript_value_297))(audit_head_p(form, "defasync")))) {
1183
+ (candidates)["push"](form);
1184
+ }
1185
+ }
1186
+ }
1187
+ }
1188
+ ((index = (index + 1)));
1189
+ }
1190
+ if ((!(((candidates) ?? []).length === 1))) {
1191
+ ((__eliscript_value_298) => { throw __eliscript_value_298; })(new (globalThis.TypeError)("literal source audit requires one complete named async form"));
1192
+ }
1193
+ {
1194
+ let form = (candidates)[0];
1195
+ let items = (form)["items"];
1196
+ let span = (form)["span"];
1197
+ let start = audit_unit_offset(source, (span)["start"]);
1198
+ let end = audit_unit_offset(source, (span)["end"]);
1199
+ let body = (source)["slice"](start, end);
1200
+ if ((!__eliscript_truthy(((__eliscript_value_299) => (__eliscript_truthy(__eliscript_value_299) ? ((__eliscript_value_300) => (__eliscript_truthy(__eliscript_value_300) ? ((__eliscript_value_301) => (__eliscript_truthy(__eliscript_value_301) ? audit_final_assertion_p((items)[__eliscript_numeric_decrement(((items) ?? []).length)]) : __eliscript_value_301))((((items)[2])["value"] === null)) : __eliscript_value_300))((((items)[2])["kind"] === "literal")) : __eliscript_value_299))(__eliscript_numeric_relation(">=", ((items) ?? []).length, 4))))) {
1201
+ ((__eliscript_value_302) => { throw __eliscript_value_302; })(new (globalThis.TypeError)("literal source audit final empty violations assertion changed"));
1202
+ }
1203
+ return ({"file": filename, "sourceSha256": expected_source_sha256, "region": ({"start": start, "end": end, "byteStart": (Buffer)["byteLength"]((source)["slice"](0, start)), "byteEnd": (Buffer)["byteLength"]((source)["slice"](0, end)), "sha256": corpus_hash(body)})});
1204
+ }
1205
+ }
1206
+ }
1207
+ async function restore_runtime_scan_recipe(document, options) {
1208
+ (await (async (id) => {
1209
+ return (await (async (records) => {
1210
+ return (await (async (gate) => {
1211
+ return (await (async (suite) => {
1212
+ return (await (async (generated) => {
1213
+ return (await (async (title) => {
1214
+ return (await (async (locators) => {
1215
+ return ((__eliscript_numeric_relation(">", ((locators) ?? []).length, 0) && (!__eliscript_truthy((records)["some"](((record) => {
1216
+ return ((record)["id"] === id);
1217
+ }))))) ? (await (async () => {
1218
+ {
1219
+ const __eliscript_value_303 = (locators)["map"](((locator) => {
1220
+ return (locator)["id"];
1221
+ }));
1222
+ {
1223
+ let coverage_ids = __eliscript_value_303;
1224
+ if ((!((new (globalThis.Set)(coverage_ids))["size"] === ((locators) ?? []).length))) {
1225
+ ((__eliscript_value_304) => { throw __eliscript_value_304; })(new (globalThis.TypeError)("runtime scan has duplicate original coverage identities"));
1226
+ }
1227
+ }
1228
+ }
1229
+ return (await (async (source_root) => {
1230
+ return (await (async (reader) => {
1231
+ return (await (async (source) => {
1232
+ return (await (async (proof) => {
1233
+ return (await (async (locator_proof) => {
1234
+ return (await (async (originals) => {
1235
+ return (await (async (parity) => {
1236
+ return (await (async (files) => {
1237
+ return (await (async (modules) => {
1238
+ return (await (async (regions) => {
1239
+ return (await (async (index) => {
1240
+ return (await (async () => {
1241
+ ([["async function run(", "\ntest("], [" const module = (name) => import(", "\n } finally {"], ["const compilerSources = [", "\n];"]])["forEach"](((pair) => {
1242
+ {
1243
+ let start = (source)["indexOf"]((pair)[0]);
1244
+ let end = (source)["indexOf"]((pair)[1], start);
1245
+ if ((!(__eliscript_numeric_relation(">=", start, 0) && __eliscript_numeric_relation(">", end, start) && __eliscript_numeric_relation("<", (source)["indexOf"]((pair)[0], (start + 1)), 0)))) {
1246
+ ((__eliscript_value_305) => { throw __eliscript_value_305; })(new (globalThis.TypeError)("original runtime scan source region differs"));
1247
+ }
1248
+ return (regions)["push"](({"start": start, "end": end, "byteStart": (Buffer)["byteLength"]((source)["slice"](0, start)), "byteEnd": (Buffer)["byteLength"]((source)["slice"](0, end)), "sha256": corpus_hash((source)["slice"](start, end))}));
1249
+ }
1250
+ }));
1251
+ if ((!__eliscript_truthy(((__eliscript_value_306) => (__eliscript_truthy(__eliscript_value_306) ? (((files) ?? []).length === 13) : __eliscript_value_306))(Array.isArray(files))))) {
1252
+ ((__eliscript_value_307) => { throw __eliscript_value_307; })(new (globalThis.TypeError)("runtime scan requires its complete original thirteen compiler modules"));
1253
+ }
1254
+ (await (async () => {
1255
+ while (__eliscript_numeric_relation("<", index, ((files) ?? []).length)) {
1256
+ (await (async (filename) => {
1257
+ return (modules)["push"](({"id": ((filename)["slice"](0, -4) + ".mjs"), "filename": filename, "source": await ((reader)["text"](filename))}));
1258
+ })((files)[index]));
1259
+ ((index = (index + 1)));
1260
+ }
1261
+ return null;
1262
+ })());
1263
+ {
1264
+ let coverage = (locators)["map"](((locator) => {
1265
+ return (locator)["id"];
1266
+ }));
1267
+ let entries = (modules)["map"](((module) => {
1268
+ return (module)["id"];
1269
+ }));
1270
+ let original = ({"manifest": "stable-compatibility", "suite": suite, "fixture": suite, "host": suite, "sourceSha256": (proof)["sha256"], "regions": regions, "originalAssertion": title, "locatorSource": ({"file": generated, "sourceSha256": (locator_proof)["sha256"]}), "sourceAssets": [({"file": generated, "sourceSha256": (locator_proof)["sha256"]})]});
1271
+ let record = ({"id": id, "kind": "project", "coverage": coverage, "modules": modules, "entry": "bootstrap/compiler/compiler.mjs", "request": ({"operation": "project", "resolveImports": true, "phased": true, "sourceMap": true, "entries": entries}), "execution": ({"kind": "original-program", "host": "tests/__eliscript_original_compiler_runtime-scan.mjs", "arguments": [({"directory": true})], "aliases": true, "requiresBun": true, "runtimeProfile": "compiler"}), "expected": ({"kind": "seed-program", "oracleRequired": true, "stdout": ""}), "original": original});
1272
+ let position = (records)["findIndex"](((item) => {
1273
+ return ((item)["id"] === "original-program:compiler-module-source-map-cursor");
1274
+ }));
1275
+ if (__eliscript_numeric_relation("<", position, 0)) {
1276
+ ((position = ((records) ?? []).length));
1277
+ }
1278
+ (records)["splice"](position, 0, record);
1279
+ ((document)["expectedIds"])["splice"](position, 0, id);
1280
+ ((document)["missingCaseAdapters"] = ((document)["missingCaseAdapters"])["filter"](((item) => {
1281
+ return (!__eliscript_truthy((coverage)["includes"]((item)["coverageId"])));
1282
+ })));
1283
+ ((gate)["coverageIds"] = ((gate)["coverageIds"])["filter"](((value) => {
1284
+ return (!__eliscript_truthy((coverage)["includes"](value)));
1285
+ })));
1286
+ ((gate)["hostOnlyDependencies"] = ((gate)["hostOnlyDependencies"])["filter"](((item) => {
1287
+ return (!__eliscript_truthy((coverage)["includes"]((item)["coverageId"])));
1288
+ })));
1289
+ }
1290
+ {
1291
+ const __eliscript_value_308 = (document)["evidence"];
1292
+ {
1293
+ let evidence = __eliscript_value_308;
1294
+ return ([proof, locator_proof])["forEach"](((asset) => {
1295
+ {
1296
+ const __eliscript_value_309 = (evidence)["find"](((item) => {
1297
+ return ((item)["file"] === (asset)["file"]);
1298
+ }));
1299
+ {
1300
+ let prior = __eliscript_value_309;
1301
+ if (__eliscript_truthy(prior)) {
1302
+ if ((!(((prior)["sha256"] === (asset)["sha256"]) && ((prior)["content"] === (asset)["content"])))) {
1303
+ return ((__eliscript_value_310) => { throw __eliscript_value_310; })(new (globalThis.TypeError)("runtime scan original source identity differs"));
1304
+ } else {
1305
+ return null;
1306
+ }
1307
+ } else {
1308
+ return (evidence)["push"](asset);
1309
+ }
1310
+ }
1311
+ }
1312
+ }));
1313
+ }
1314
+ }
1315
+ })());
1316
+ })(0));
1317
+ })([]));
1318
+ })([]));
1319
+ })((parity)["bootstrapSources"]));
1320
+ })((((originals)["manifests"])["find"](((item) => {
1321
+ return ((item)["id"] === "compiler-parity");
1322
+ })))["document"]));
1323
+ })((options)["originals"]));
1324
+ })(await ((reader)["file"](generated))));
1325
+ })(await ((reader)["file"](suite))));
1326
+ })(await ((reader)["text"](suite))));
1327
+ })((__eliscript_tdz_read_0())(({"sourceRoot": source_root}))));
1328
+ })((options)["sourceRoot"]));
1329
+ })()) : null);
1330
+ })(((gate)["locators"])["filter"](((locator) => {
1331
+ return (((locator)["file"] === generated) && ((locator)["contains"] === title));
1332
+ }))));
1333
+ })("optimized compiler runtime scan matches its readable reference"));
1334
+ })("tests/compiler-runtime-scan-selfhosted.test.mjs"));
1335
+ })("tests/compiler-runtime-scan.test.mjs"));
1336
+ })((document)["originalGateEvidence"]));
1337
+ })((document)["records"]));
1338
+ })("original-program:compiler-module-runtime-scan"));
1339
+ return document;
1340
+ }
1341
+ async function runtime_scan_replay(document, options) {
1342
+ (await (async (record) => {
1343
+ return (__eliscript_truthy(record) ? (await (async (source_root) => {
1344
+ return (await (async (reader) => {
1345
+ return (await (async (assets) => {
1346
+ return (await (async (proofs) => {
1347
+ return (await (async (index) => {
1348
+ return (await (async () => {
1349
+ (await (async () => {
1350
+ while (__eliscript_numeric_relation("<", index, ((assets) ?? []).length)) {
1351
+ (await (async (filename) => {
1352
+ return ((asset) => {
1353
+ return ((previous) => {
1354
+ return (() => {
1355
+ if (__eliscript_truthy(((__eliscript_value_311) => (__eliscript_truthy(__eliscript_value_311) ? ((__eliscript_value_312, __eliscript_value_313) => (__eliscript_value_312 !== __eliscript_value_313))((previous)["sha256"], (asset)["sha256"]) : __eliscript_value_311))(previous))) {
1356
+ ((__eliscript_value_314) => { throw __eliscript_value_314; })(new (globalThis.TypeError)("runtime scan replay source identity differs"));
1357
+ }
1358
+ if ((!__eliscript_truthy(previous))) {
1359
+ ((document)["evidence"])["push"](asset);
1360
+ }
1361
+ return (proofs)["push"](({"file": filename, "sourceSha256": (asset)["sha256"]}));
1362
+ })();
1363
+ })(((document)["evidence"])["find"](((item) => {
1364
+ return ((item)["file"] === filename);
1365
+ })));
1366
+ })(await ((reader)["file"](filename)));
1367
+ })((assets)[index]));
1368
+ ((index = (index + 1)));
1369
+ }
1370
+ return null;
1371
+ })());
1372
+ {
1373
+ let source = (String("(import ") + String(JSON.stringify(resolve(source_root, "tools/compiler/runtime-scan-cases.mjs"))) + String(" verifyRuntimeScan)\n(import \"node:path\" resolve)\n") + String("(defasync run () (await (verifyRuntimeScan (resolve (aref (get globalThis.process :argv) 2) \"bootstrap/compiler\") ") + String("(get (get globalThis.process :env) :ELISCRIPT_ORIGINAL_SOURCE_ROOT))))\n") + String("(js-call (run) :catch (lambda (error) (js-call (get globalThis.process :stderr) :write (str (get error :stack error) \"\\n\")) (put globalThis.process :exitCode 1)))\n"));
1374
+ let execution = (record)["execution"];
1375
+ let original = (record)["original"];
1376
+ let old_assets = ((original)["sourceAssets"] ?? []);
1377
+ ((execution)["hostSource"] = compile_string(source, "runtime-scan-replay.eli"));
1378
+ ((original)["sourceAssets"] = (old_assets)["concat"](proofs));
1379
+ return ((original)["setupReplacement"] = ({"kind": "maintained-eli-runtime-scan-case", "sourceAssets": proofs, "originalSourceSha256": (original)["sourceSha256"], "changes": ["declare the actual math requirement in both exact schema models"], "compilerDirectory": "selected-artifact/bootstrap/compiler", "fallback": false}));
1380
+ }
1381
+ })());
1382
+ })(0));
1383
+ })([]));
1384
+ })(["tools/compiler/eliscript/runtime-scan-cases.eli", "tools/compiler/runtime-scan-cases.mjs", "tests/eliscript/compiler-runtime-scan.eli"]));
1385
+ })((__eliscript_tdz_read_0())(({"sourceRoot": source_root}))));
1386
+ })((options)["sourceRoot"])) : null);
1387
+ })(((document)["records"])["find"](((item) => {
1388
+ return ((item)["id"] === "original-program:compiler-module-runtime-scan");
1389
+ }))));
1390
+ return document;
1391
+ }
1392
+ const matcher_records = ["stable-compatibility:program:tests/fixtures/core-stdlib-usage.eli", "original-program:core-stdlib-complete-protocols"];
1393
+ __eliscript_tdz_ready_7 = true;
1394
+ const matcher_files = ["tools/backends/eliscript/compiler-corpus-matchers.eli", "tools/backends/compiler-corpus-matchers.mjs", "tools/backends/eliscript/managed-source-view.eli", "tools/backends/managed-source-view.mjs", "tools/backends/eliscript/managed-host-proxy.eli", "tools/backends/managed-host-proxy.mjs"];
1395
+ __eliscript_tdz_ready_8 = true;
1396
+ function transportOriginalMatcherRecord(record, source_root, assets) {
1397
+ if ((!__eliscript_truthy(((__eliscript_tdz_read_7()))["includes"]((record)["id"])))) {
1398
+ return record;
1399
+ } else {
1400
+ {
1401
+ let execution = (record)["execution"];
1402
+ let original = (record)["original"];
1403
+ let source = (execution)["hostSource"];
1404
+ let before = "\"bun:test\"";
1405
+ let after = JSON.stringify((pathToFileURL(resolve(source_root, "tools/backends/compiler-corpus-matchers.mjs")))["href"]);
1406
+ let seen = new (globalThis.Set)();
1407
+ if ((!__eliscript_truthy(((__eliscript_value_315) => (__eliscript_truthy(__eliscript_value_315) ? ((__eliscript_value_316) => (__eliscript_truthy(__eliscript_value_316) ? ((__eliscript_value_317) => (__eliscript_truthy(__eliscript_value_317) ? ((__eliscript_value_318) => (__eliscript_truthy(__eliscript_value_318) ? (((assets) ?? []).length === (((__eliscript_tdz_read_8())) ?? []).length) : __eliscript_value_318))(Array.isArray(assets)) : __eliscript_value_317))((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(source) === "string")) : __eliscript_value_316))(original) : __eliscript_value_315))(((execution)["kind"] === "original-program"))))) {
1408
+ ((__eliscript_value_319) => { throw __eliscript_value_319; })(new (globalThis.TypeError)("original matcher transport declaration is incomplete"));
1409
+ }
1410
+ (assets)["forEach"](((asset) => {
1411
+ {
1412
+ const __eliscript_value_320 = (asset)["file"];
1413
+ const __eliscript_value_321 = (asset)["sourceSha256"];
1414
+ {
1415
+ let name = __eliscript_value_320;
1416
+ let digest = __eliscript_value_321;
1417
+ if ((!__eliscript_truthy(((__eliscript_value_322) => (__eliscript_truthy(__eliscript_value_322) ? ((__eliscript_value_323) => (__eliscript_truthy(__eliscript_value_323) ? ((__eliscript_value_324) => (__eliscript_truthy(__eliscript_value_324) ? (new (globalThis.RegExp)("^[0-9a-f]{64}$"))["test"](digest) : __eliscript_value_324))((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(digest) === "string")) : __eliscript_value_323))((!__eliscript_truthy((seen)["has"](name)))) : __eliscript_value_322))(((__eliscript_tdz_read_8()))["includes"](name))))) {
1418
+ ((__eliscript_value_325) => { throw __eliscript_value_325; })(new (globalThis.TypeError)("original matcher transport source identity is invalid"));
1419
+ }
1420
+ return (seen)["add"](name);
1421
+ }
1422
+ }
1423
+ }));
1424
+ {
1425
+ let line_end = (source)["indexOf"]("\n");
1426
+ let line = (source)["slice"](0, line_end);
1427
+ let start = (line)["indexOf"](before);
1428
+ if ((!__eliscript_truthy(((__eliscript_value_326) => (__eliscript_truthy(__eliscript_value_326) ? ((__eliscript_value_327) => (__eliscript_truthy(__eliscript_value_327) ? (__eliscript_numeric_relation(">=", start, 0) && ((line)["indexOf"](before, (start + 1)) === -1) && ((line)["slice"]((start + ((before) ?? []).length)) === ";")) : __eliscript_value_327))((line)["startsWith"]("import ")) : __eliscript_value_326))(__eliscript_numeric_relation(">", line_end, 0))))) {
1429
+ ((__eliscript_value_328) => { throw __eliscript_value_328; })(new (globalThis.TypeError)("original matcher import boundary changed"));
1430
+ }
1431
+ {
1432
+ let output = (String((source)["slice"](0, start)) + String(after) + String((source)["slice"]((start + ((before) ?? []).length))));
1433
+ let proofs = (((original)["sourceAssets"] ?? []))["slice"]();
1434
+ (assets)["forEach"](((asset) => {
1435
+ {
1436
+ const __eliscript_value_329 = (proofs)["find"](((item) => {
1437
+ return ((item)["file"] === (asset)["file"]);
1438
+ }));
1439
+ {
1440
+ let existing = __eliscript_value_329;
1441
+ if (__eliscript_truthy(((__eliscript_value_330) => (__eliscript_truthy(__eliscript_value_330) ? ((__eliscript_value_331, __eliscript_value_332) => (__eliscript_value_331 !== __eliscript_value_332))((existing)["sourceSha256"], (asset)["sourceSha256"]) : __eliscript_value_330))(existing))) {
1442
+ ((__eliscript_value_333) => { throw __eliscript_value_333; })(new (globalThis.TypeError)("original matcher source proof conflicts"));
1443
+ }
1444
+ if ((!__eliscript_truthy(existing))) {
1445
+ return (proofs)["push"](asset);
1446
+ } else {
1447
+ return null;
1448
+ }
1449
+ }
1450
+ }
1451
+ }));
1452
+ return Object.assign(({}), record, ({"execution": Object.assign(({}), execution, ({"hostSource": output})), "original": Object.assign(({}), original, ({"sourceAssets": proofs, "matcherTransport": ({"kind": "managed-source-view-reflection-snapshot", "originalHostSha256": corpus_hash(source), "transportedHostSha256": corpus_hash(output), "originalSpecifier": "bun:test", "sourceAssets": assets, "assertionsUnchanged": true})}))}));
1453
+ }
1454
+ }
1455
+ }
1456
+ }
1457
+ }
1458
+ async function matcher_transport(document, options) {
1459
+ (__eliscript_truthy(((document)["records"])["some"](((record) => {
1460
+ return ((__eliscript_tdz_read_7()))["includes"]((record)["id"]);
1461
+ }))) ? (await (async (source_root) => {
1462
+ return (await (async (reader) => {
1463
+ return (await (async (proofs) => {
1464
+ return (await (async (index) => {
1465
+ return (await (async () => {
1466
+ (await (async () => {
1467
+ while (__eliscript_numeric_relation("<", index, (((__eliscript_tdz_read_8())) ?? []).length)) {
1468
+ (await (async (name) => {
1469
+ return ((asset) => {
1470
+ return ((existing) => {
1471
+ return (() => {
1472
+ if (__eliscript_truthy(((__eliscript_value_334) => (__eliscript_truthy(__eliscript_value_334) ? (((__eliscript_value_335, __eliscript_value_336) => (__eliscript_value_335 !== __eliscript_value_336))((existing)["sha256"], (asset)["sha256"]) || ((__eliscript_value_337, __eliscript_value_338) => (__eliscript_value_337 !== __eliscript_value_338))((existing)["content"], (asset)["content"])) : __eliscript_value_334))(existing))) {
1473
+ ((__eliscript_value_339) => { throw __eliscript_value_339; })(new (globalThis.TypeError)("original matcher archived source identity conflicts"));
1474
+ }
1475
+ if ((!__eliscript_truthy(existing))) {
1476
+ ((document)["evidence"])["push"](asset);
1477
+ }
1478
+ return (proofs)["push"](({"file": name, "sourceSha256": (asset)["sha256"]}));
1479
+ })();
1480
+ })(((document)["evidence"])["find"](((item) => {
1481
+ return ((item)["file"] === name);
1482
+ })));
1483
+ })(await ((reader)["file"](name)));
1484
+ })(((__eliscript_tdz_read_8()))[index]));
1485
+ ((index = (index + 1)));
1486
+ }
1487
+ return null;
1488
+ })());
1489
+ return ((document)["records"] = ((document)["records"])["map"](((record) => {
1490
+ return transportOriginalMatcherRecord(record, source_root, proofs);
1491
+ })));
1492
+ })());
1493
+ })(0));
1494
+ })([]));
1495
+ })((__eliscript_tdz_read_0())(({"sourceRoot": source_root}))));
1496
+ })(((options == null) ? root : ((options)["sourceRoot"] ?? root)))) : null);
1497
+ return document;
1498
+ }
1499
+ async function tools_cli_assets(document, options) {
1500
+ (await (async (ids) => {
1501
+ return (await (async (records) => {
1502
+ return (__eliscript_numeric_relation(">", ((records) ?? []).length, 0) ? (await (async (reader, proofs, files, index) => {
1503
+ (await (async () => {
1504
+ while (__eliscript_numeric_relation("<", index, ((files) ?? []).length)) {
1505
+ (await (async (file) => {
1506
+ return ((asset) => {
1507
+ return ((previous) => {
1508
+ return (() => {
1509
+ if (__eliscript_truthy(((__eliscript_value_340) => (__eliscript_truthy(__eliscript_value_340) ? (((__eliscript_value_341, __eliscript_value_342) => (__eliscript_value_341 !== __eliscript_value_342))((previous)["sha256"], (asset)["sha256"]) || ((__eliscript_value_343, __eliscript_value_344) => (__eliscript_value_343 !== __eliscript_value_344))((previous)["content"], (asset)["content"])) : __eliscript_value_340))(previous))) {
1510
+ ((__eliscript_value_345) => { throw __eliscript_value_345; })(new (globalThis.TypeError)("original tools CLI source identity conflicts"));
1511
+ }
1512
+ if ((!__eliscript_truthy(previous))) {
1513
+ ((document)["evidence"])["push"](asset);
1514
+ }
1515
+ return (proofs)["push"](({"file": file, "sourceSha256": (asset)["sha256"]}));
1516
+ })();
1517
+ })(((document)["evidence"])["find"](((item) => {
1518
+ return ((item)["file"] === file);
1519
+ })));
1520
+ })(await ((reader)["file"](file)));
1521
+ })((files)[index]));
1522
+ ((index = (index + 1)));
1523
+ }
1524
+ return null;
1525
+ })());
1526
+ return (records)["forEach"](((record) => {
1527
+ {
1528
+ let original = (record)["original"];
1529
+ let assets = (((original)["sourceAssets"] ?? []))["slice"]();
1530
+ (proofs)["forEach"](((proof) => {
1531
+ {
1532
+ const __eliscript_value_346 = (assets)["find"](((item) => {
1533
+ return ((item)["file"] === (proof)["file"]);
1534
+ }));
1535
+ {
1536
+ let previous = __eliscript_value_346;
1537
+ if (__eliscript_truthy(((__eliscript_value_347) => (__eliscript_truthy(__eliscript_value_347) ? ((__eliscript_value_348, __eliscript_value_349) => (__eliscript_value_348 !== __eliscript_value_349))((previous)["sourceSha256"], (proof)["sourceSha256"]) : __eliscript_value_347))(previous))) {
1538
+ ((__eliscript_value_350) => { throw __eliscript_value_350; })(new (globalThis.TypeError)("original tools CLI declaration conflicts"));
1539
+ }
1540
+ if ((!__eliscript_truthy(previous))) {
1541
+ return (assets)["push"](proof);
1542
+ } else {
1543
+ return null;
1544
+ }
1545
+ }
1546
+ }
1547
+ }));
1548
+ ((original)["sourceAssets"] = assets);
1549
+ return ((original)["toolsCLITransport"] = ({"kind": "original-tools-final-cli", "sourceAssets": proofs}));
1550
+ }
1551
+ }));
1552
+ })((__eliscript_tdz_read_0())(options), [], ["tools/backends/eliscript/compiler-corpus-tools-cli.eli", "tools/backends/compiler-corpus-tools-cli.mjs"], 0)) : null);
1553
+ })(((document)["records"])["filter"](((record) => {
1554
+ return (ids)["includes"]((record)["id"]);
1555
+ }))));
1556
+ })(["original-tools-artifact:compiler-session-tools:node", "original-tools-artifact:compiler-session-tools:bun"]));
1557
+ return document;
1558
+ }
1559
+ async function maintained_execution_assets(document, options) {
1560
+ return (await (async (reader, modules, index) => {
1561
+ (await (async () => {
1562
+ while (__eliscript_numeric_relation("<", index, ((modules) ?? []).length)) {
1563
+ (await (async (name) => {
1564
+ return (await (async (files) => {
1565
+ return (await (async (position) => {
1566
+ return (await (async () => {
1567
+ while (__eliscript_numeric_relation("<", position, ((files) ?? []).length)) {
1568
+ (await (async (file) => {
1569
+ return ((asset) => {
1570
+ return ((existing) => {
1571
+ return (() => {
1572
+ if (__eliscript_truthy(((__eliscript_value_351) => (__eliscript_truthy(__eliscript_value_351) ? (((__eliscript_value_352, __eliscript_value_353) => (__eliscript_value_352 !== __eliscript_value_353))((existing)["sha256"], (asset)["sha256"]) || ((__eliscript_value_354, __eliscript_value_355) => (__eliscript_value_354 !== __eliscript_value_355))((existing)["content"], (asset)["content"])) : __eliscript_value_351))(existing))) {
1573
+ ((__eliscript_value_356) => { throw __eliscript_value_356; })(new (globalThis.TypeError)("maintained execution source archive differs"));
1574
+ }
1575
+ if ((!__eliscript_truthy(existing))) {
1576
+ return ((document)["evidence"])["push"](asset);
1577
+ } else {
1578
+ return null;
1579
+ }
1580
+ })();
1581
+ })(((document)["evidence"])["find"](((entry) => {
1582
+ return ((entry)["file"] === file);
1583
+ })));
1584
+ })(await ((reader)["file"](file)));
1585
+ })((files)[position]));
1586
+ ((position = (position + 1)));
1587
+ }
1588
+ return null;
1589
+ })());
1590
+ })(0));
1591
+ })([(String("tools/backends/eliscript/") + String(name) + String(".eli")), (String("tools/backends/") + String(name) + String(".mjs"))]));
1592
+ })((modules)[index]));
1593
+ ((index = (index + 1)));
1594
+ }
1595
+ return null;
1596
+ })());
1597
+ return document;
1598
+ })((__eliscript_tdz_read_0())(options), ["compiler-corpus-process", "compiler-corpus-original-program", "compiler-corpus-program-driver", "compiler-corpus-execution", "compiler-corpus-isolated-exports", "compiler-corpus-raw-fixture-observer", "compiler-corpus-raw-special-fixtures", "compiler-corpus-raw-language-fixtures", "compiler-corpus-raw-math-fixture", "managed-source-view"], 0));
1599
+ }
1600
+ async function tools_data_reference_assets(document, options) {
1601
+ return (await (async (ids) => {
1602
+ return (await (async (records) => {
1603
+ return (await (async (reader) => {
1604
+ return (await (async (proofs) => {
1605
+ return (await (async (files) => {
1606
+ return (await (async (index) => {
1607
+ return (await (async () => {
1608
+ (__eliscript_numeric_relation(">", ((records) ?? []).length, 0) ? (await (async () => {
1609
+ (await (async () => {
1610
+ while (__eliscript_numeric_relation("<", index, ((files) ?? []).length)) {
1611
+ (await (async (file) => {
1612
+ return ((asset) => {
1613
+ return ((existing) => {
1614
+ return (() => {
1615
+ if (__eliscript_truthy(((__eliscript_value_357) => (__eliscript_truthy(__eliscript_value_357) ? (((__eliscript_value_358, __eliscript_value_359) => (__eliscript_value_358 !== __eliscript_value_359))((existing)["sha256"], (asset)["sha256"]) || ((__eliscript_value_360, __eliscript_value_361) => (__eliscript_value_360 !== __eliscript_value_361))((existing)["content"], (asset)["content"])) : __eliscript_value_357))(existing))) {
1616
+ ((__eliscript_value_362) => { throw __eliscript_value_362; })(new (globalThis.TypeError)("original tools data reference source identity conflicts"));
1617
+ }
1618
+ if ((!__eliscript_truthy(existing))) {
1619
+ ((document)["evidence"])["push"](asset);
1620
+ }
1621
+ return (proofs)["push"](({"file": file, "sourceSha256": (asset)["sha256"]}));
1622
+ })();
1623
+ })(((document)["evidence"])["find"](((item) => {
1624
+ return ((item)["file"] === file);
1625
+ })));
1626
+ })(await ((reader)["file"](file)));
1627
+ })((files)[index]));
1628
+ ((index = (index + 1)));
1629
+ }
1630
+ return null;
1631
+ })());
1632
+ return (records)["forEach"](((record) => {
1633
+ {
1634
+ const __eliscript_value_363 = (record)["original"];
1635
+ {
1636
+ let original = __eliscript_value_363;
1637
+ return ((original)["toolsDataReferenceTransport"] = ({"kind": "original-tools-data-reference", "version": 1, "sourceAssets": proofs, "hostSha256": corpus_hash(((record)["execution"])["hostSource"])}));
1638
+ }
1639
+ }
1640
+ }));
1641
+ })()) : null);
1642
+ return document;
1643
+ })());
1644
+ })(0));
1645
+ })(["tools/backends/eliscript/compiler-corpus-tools-reference.eli", "tools/backends/compiler-corpus-tools-reference.mjs", "runtime/unicode-case.eli", "runtime/unicode-case.mjs", "runtime/unicode-case-data.eli", "runtime/unicode-case-data.mjs"]));
1646
+ })([]));
1647
+ })((__eliscript_tdz_read_0())(options)));
1648
+ })(((document)["records"])["filter"](((record) => {
1649
+ return (ids)["includes"]((record)["id"]);
1650
+ }))));
1651
+ })(["original-tools-artifact:compiler-session-tools:node", "original-tools-artifact:compiler-session-tools:bun", "original-managed:compiler-session-tools:node", "original-managed:compiler-session-tools:bun"]));
1652
+ }
1653
+ async function project_runtime_assets(document, options) {
1654
+ (await (async (records) => {
1655
+ return (await (async (files) => {
1656
+ return (__eliscript_numeric_relation(">", ((records) ?? []).length, 0) ? (await (async () => {
1657
+ (["math", "unicode-case", "unicode-case-data"])["forEach"](((name) => {
1658
+ return (files)["push"]((String("runtime/") + String(name) + String(".eli")), (String("runtime/") + String(name) + String(".mjs")), (String("runtime/") + String(name) + String(".mjs.map")));
1659
+ }));
1660
+ return (await (async (reader) => {
1661
+ return (await (async (proofs) => {
1662
+ return (await (async (index) => {
1663
+ return (await (async () => {
1664
+ (await (async () => {
1665
+ while (__eliscript_numeric_relation("<", index, ((files) ?? []).length)) {
1666
+ (await (async (filename) => {
1667
+ return ((asset) => {
1668
+ return ((existing) => {
1669
+ return (() => {
1670
+ if (((filename === "bootstrap/host/project-cli-legacy.mjs") && ((__eliscript_value_368, __eliscript_value_369) => (__eliscript_value_368 !== __eliscript_value_369))((asset)["sha256"], "79980b2a6e38e4ab9daca31b04cb366bd749b66e3b384fbd04e696ddc465cd82"))) {
1671
+ ((__eliscript_value_370) => { throw __eliscript_value_370; })(new (globalThis.TypeError)("original project CLI archive bytes changed"));
1672
+ }
1673
+ if (__eliscript_truthy(existing)) {
1674
+ if ((!(((existing)["bytes"] === (asset)["bytes"]) && ((existing)["sha256"] === (asset)["sha256"]) && ((existing)["encoding"] === (asset)["encoding"]) && ((existing)["content"] === (asset)["content"])))) {
1675
+ ((__eliscript_value_371) => { throw __eliscript_value_371; })(new (globalThis.TypeError)((String("original project runtime source identity differs: ") + String(filename))));
1676
+ }
1677
+ } else {
1678
+ ((document)["evidence"])["push"](asset);
1679
+ }
1680
+ return (proofs)["push"](({"file": filename, "sourceSha256": (asset)["sha256"]}));
1681
+ })();
1682
+ })(((document)["evidence"])["find"](((entry) => {
1683
+ return ((entry)["file"] === filename);
1684
+ })));
1685
+ })(await ((reader)["file"](filename)));
1686
+ })((files)[index]));
1687
+ ((index = (index + 1)));
1688
+ }
1689
+ return null;
1690
+ })());
1691
+ return (records)["forEach"](((record) => {
1692
+ {
1693
+ let original = (record)["original"];
1694
+ let assets = (((original)["sourceAssets"] ?? []))["slice"]();
1695
+ (proofs)["forEach"](((proof) => {
1696
+ {
1697
+ const __eliscript_value_372 = (assets)["find"](((entry) => {
1698
+ return ((entry)["file"] === (proof)["file"]);
1699
+ }));
1700
+ {
1701
+ let existing = __eliscript_value_372;
1702
+ if (__eliscript_truthy(existing)) {
1703
+ if ((!((existing)["sourceSha256"] === (proof)["sourceSha256"]))) {
1704
+ return ((__eliscript_value_373) => { throw __eliscript_value_373; })(new (globalThis.TypeError)((String("original project runtime dependency changed: ") + String((proof)["file"]))));
1705
+ } else {
1706
+ return null;
1707
+ }
1708
+ } else {
1709
+ return (assets)["push"](Object.assign(({}), proof));
1710
+ }
1711
+ }
1712
+ }
1713
+ }));
1714
+ return ((original)["sourceAssets"] = assets);
1715
+ }
1716
+ }));
1717
+ })());
1718
+ })(0));
1719
+ })([]));
1720
+ })((__eliscript_tdz_read_0())(({"sourceRoot": ((options == null) ? root : ((options)["sourceRoot"] ?? root))}))));
1721
+ })()) : null);
1722
+ })(["bootstrap/host/project.mjs", "bootstrap/host/project-legacy.mjs", "tools/project/project.eli", "bootstrap/host/project-cli.mjs", "bootstrap/host/project-cli.mjs.map", "bootstrap/host/project-cli-legacy.mjs", "tools/project/project-cli.eli"]));
1723
+ })(((document)["records"])["filter"](((record) => {
1724
+ {
1725
+ let original = (record)["original"];
1726
+ let proofs = ((__eliscript_value_364) => (__eliscript_truthy(__eliscript_value_364) ? (original)["sourceAssets"] : __eliscript_value_364))(original);
1727
+ return ((__eliscript_value_365) => (__eliscript_truthy(__eliscript_value_365) ? ((__eliscript_value_366) => (__eliscript_truthy(__eliscript_value_366) ? __eliscript_value_366 : ((__eliscript_value_367) => (__eliscript_truthy(__eliscript_value_367) ? (proofs)["some"](((proof) => {
1728
+ return ((proof)["file"] === "bootstrap/host/project.mjs");
1729
+ })) : __eliscript_value_367))(Array.isArray(proofs))))((["tests/bootstrap-project.test.mjs", "tests/bootstrap-evaluation.test.mjs"])["includes"]((original)["suite"])) : __eliscript_value_365))(original);
1730
+ }
1731
+ }))));
1732
+ return document;
1733
+ }
1734
+ function bindOriginalMaintainedSuiteEvidence(document) {
1735
+ {
1736
+ let gate = (document)["originalGateEvidence"];
1737
+ let locators = (gate)["locators"];
1738
+ let claimed = new (globalThis.Set)();
1739
+ if (__eliscript_truthy(Array.isArray(locators))) {
1740
+ ([["original-program:compiler-module-reader-program-fuzz", "tests/reader-program-fuzz-acceptance-selfhosted.test.mjs", "100000 deterministic reader and program mutations preserve every invariant", "maintained-eli-complete-fuzz-acceptance"], ["original-program:compiler-stdlib-bit-complete", "tests/stdlib-bit-selfhosted.test.mjs", "portable 32-bit operations and algorithms agree under Bun and Node", "maintained-eli-complete-stdlib-bit"], ["original-program:compiler-module-bootstrap-emitter", "tests/bootstrap-emitter-selfhosted.test.mjs", "bootstrapped emitter matches seed ESM and Source Map output", "maintained-eli-complete-bootstrap-emitter"]])["forEach"](((plan) => {
1741
+ {
1742
+ const __eliscript_value_374 = (locators)["filter"](((locator) => {
1743
+ return (((locator)["file"] === (plan)[1]) && ((locator)["contains"] === (plan)[2]));
1744
+ }));
1745
+ {
1746
+ let selected = __eliscript_value_374;
1747
+ if (__eliscript_numeric_relation(">", ((selected) ?? []).length, 0)) {
1748
+ {
1749
+ let record = ((document)["records"])["find"](((item) => {
1750
+ return ((item)["id"] === (plan)[0]);
1751
+ }));
1752
+ let original = ((__eliscript_value_375) => (__eliscript_truthy(__eliscript_value_375) ? (record)["original"] : __eliscript_value_375))(record);
1753
+ let asset = ((document)["evidence"])["find"](((item) => {
1754
+ return ((item)["file"] === (plan)[1]);
1755
+ }));
1756
+ let proof = ((__eliscript_value_376) => (__eliscript_truthy(__eliscript_value_376) ? ((original)["sourceAssets"])["find"](((item) => {
1757
+ return ((item)["file"] === (plan)[1]);
1758
+ })) : __eliscript_value_376))(original);
1759
+ if ((!__eliscript_truthy(((__eliscript_value_377) => (__eliscript_truthy(__eliscript_value_377) ? ((__eliscript_value_378) => (__eliscript_truthy(__eliscript_value_378) ? ((__eliscript_value_379) => (__eliscript_truthy(__eliscript_value_379) ? ((__eliscript_value_380) => (__eliscript_truthy(__eliscript_value_380) ? ((__eliscript_value_381) => (__eliscript_truthy(__eliscript_value_381) ? ((__eliscript_value_382) => (__eliscript_truthy(__eliscript_value_382) ? ((__eliscript_value_383) => (__eliscript_truthy(__eliscript_value_383) ? (__eliscript_at_direct((Buffer)["from"]((asset)["content"], "base64"), "toString", "utf8"))["includes"]((plan)[2]) : __eliscript_value_383))((corpus_hash((Buffer)["from"]((asset)["content"], "base64")) === (asset)["sha256"])) : __eliscript_value_382))(((asset)["encoding"] === "base64")) : __eliscript_value_381))(((proof)["sourceSha256"] === (asset)["sha256"])) : __eliscript_value_380))((((original)["maintainedTransport"])["kind"] === (plan)[3])) : __eliscript_value_379))(asset) : __eliscript_value_378))(proof) : __eliscript_value_377))(record)))) {
1760
+ ((__eliscript_value_384) => { throw __eliscript_value_384; })(new (globalThis.TypeError)("maintained suite locator lacks its complete authenticated original execution"));
1761
+ }
1762
+ {
1763
+ const __eliscript_value_385 = [];
1764
+ {
1765
+ let bindings = __eliscript_value_385;
1766
+ (selected)["forEach"](((locator) => {
1767
+ {
1768
+ const __eliscript_value_386 = (locator)["id"];
1769
+ {
1770
+ let id = __eliscript_value_386;
1771
+ if ((!__eliscript_truthy(((record)["coverage"])["includes"](id)))) {
1772
+ ((record)["coverage"])["push"](id);
1773
+ }
1774
+ (claimed)["add"](id);
1775
+ return (bindings)["push"](({"coverageId": id, "file": (plan)[1], "sourceSha256": (asset)["sha256"], "record": (plan)[0]}));
1776
+ }
1777
+ }
1778
+ }));
1779
+ return ((original)["maintainedLocatorBindings"] = bindings);
1780
+ }
1781
+ }
1782
+ }
1783
+ } else {
1784
+ return null;
1785
+ }
1786
+ }
1787
+ }
1788
+ }));
1789
+ ((document)["missingCaseAdapters"] = ((document)["missingCaseAdapters"])["filter"](((item) => {
1790
+ return (!__eliscript_truthy((claimed)["has"]((item)["coverageId"])));
1791
+ })));
1792
+ ((gate)["coverageIds"] = ((gate)["coverageIds"])["filter"](((id) => {
1793
+ return (!__eliscript_truthy((claimed)["has"](id)));
1794
+ })));
1795
+ ((gate)["hostOnlyDependencies"] = ((gate)["hostOnlyDependencies"])["filter"](((item) => {
1796
+ return (!__eliscript_truthy((claimed)["has"]((item)["coverageId"])));
1797
+ })));
1798
+ }
1799
+ return document;
1800
+ }
1801
+ }
1802
+ async function bindOriginalRuntimeScanReportEvidence(document, options) {
1803
+ return (await (async (gate) => {
1804
+ return (await (async (locators) => {
1805
+ return (await (async (generated) => {
1806
+ return (await (async (maintained) => {
1807
+ return (await (async (title) => {
1808
+ return (await (async (selected) => {
1809
+ return (await (async () => {
1810
+ (__eliscript_numeric_relation(">", ((selected) ?? []).length, 0) ? (await (async (reader) => {
1811
+ return (await (async (source) => {
1812
+ return (await (async (pending) => {
1813
+ return (await (async (forms) => {
1814
+ return (await (async (proofs) => {
1815
+ return (await (async (files) => {
1816
+ return (await (async (index) => {
1817
+ return (await (async (claimed) => {
1818
+ return (await (async (deferred) => {
1819
+ return (await (async () => {
1820
+ while (__eliscript_numeric_relation(">", ((pending) ?? []).length, 0)) {
1821
+ {
1822
+ let form = (pending)["shift"]();
1823
+ let items = (form)["items"];
1824
+ if (__eliscript_truthy(Array.isArray(items))) {
1825
+ if (((((items)[0])["name"] === "funcall") && (((items)[2])["value"] === title) && (((((items)[1])["items"])[0])["name"] === "currentPerformanceTest"))) {
1826
+ (forms)["push"](form);
1827
+ } else {
1828
+ __eliscript_at(Reflect, "apply")((pending)["push"], pending, items);
1829
+ }
1830
+ }
1831
+ }
1832
+ }
1833
+ if ((!(((forms) ?? []).length === 1))) {
1834
+ ((__eliscript_value_387) => { throw __eliscript_value_387; })(new (globalThis.TypeError)("runtime-scan performance evidence requires its exact maintained original gate"));
1835
+ }
1836
+ (await (async () => {
1837
+ while (__eliscript_numeric_relation("<", index, ((files) ?? []).length)) {
1838
+ (await (async (file) => {
1839
+ return ((asset) => {
1840
+ return ((prior) => {
1841
+ return (() => {
1842
+ if (__eliscript_truthy(((__eliscript_value_388) => (__eliscript_truthy(__eliscript_value_388) ? (((__eliscript_value_389, __eliscript_value_390) => (__eliscript_value_389 !== __eliscript_value_390))((prior)["sha256"], (asset)["sha256"]) || ((__eliscript_value_391, __eliscript_value_392) => (__eliscript_value_391 !== __eliscript_value_392))((prior)["content"], (asset)["content"])) : __eliscript_value_388))(prior))) {
1843
+ ((__eliscript_value_393) => { throw __eliscript_value_393; })(new (globalThis.TypeError)("runtime-scan performance gate source identity changed"));
1844
+ }
1845
+ if ((!__eliscript_truthy(prior))) {
1846
+ ((document)["evidence"])["push"](asset);
1847
+ }
1848
+ return (proofs)["push"](({"file": file, "sourceSha256": (asset)["sha256"]}));
1849
+ })();
1850
+ })(((document)["evidence"])["find"](((item) => {
1851
+ return ((item)["file"] === file);
1852
+ })));
1853
+ })(await ((reader)["file"](file)));
1854
+ })((files)[index]));
1855
+ ((index = (index + 1)));
1856
+ }
1857
+ return null;
1858
+ })());
1859
+ {
1860
+ let form = (forms)[0];
1861
+ let span = (form)["span"];
1862
+ let start = audit_unit_offset(source, (span)["start"]);
1863
+ let end = audit_unit_offset(source, (span)["end"]);
1864
+ let region = ({"start": start, "end": end, "byteStart": (Buffer)["byteLength"]((source)["slice"](0, start)), "byteEnd": (Buffer)["byteLength"]((source)["slice"](0, end)), "sha256": corpus_hash((source)["slice"](start, end))});
1865
+ (selected)["forEach"](((locator) => {
1866
+ {
1867
+ const __eliscript_value_394 = (locator)["id"];
1868
+ {
1869
+ let id = __eliscript_value_394;
1870
+ (claimed)["add"](id);
1871
+ if ((!__eliscript_truthy(((gate)["coverageIds"])["includes"](id)))) {
1872
+ ((gate)["coverageIds"])["push"](id);
1873
+ }
1874
+ if ((!__eliscript_truthy(((gate)["hostOnlyDependencies"])["some"](((item) => {
1875
+ return ((item)["coverageId"] === id);
1876
+ }))))) {
1877
+ return ((gate)["hostOnlyDependencies"])["push"](({"coverageId": id, "file": maintained, "sourceSha256": corpus_hash(source), "kind": "source-bound-performance-report-case", "locator": locator, "originalAssertion": title, "region": region, "dependencies": proofs, "currentPerformanceAcceptance": (__eliscript_truthy(deferred) ? "DEFERRED / NOT ACCEPTED" : "required-by-original-gate"), "performanceAccepted": false, "reason": "the original current-source performance test remains strict by default and is explicitly deferred in functional mode; this binding does not assert current performance acceptance"}));
1878
+ } else {
1879
+ return null;
1880
+ }
1881
+ }
1882
+ }
1883
+ }));
1884
+ }
1885
+ ((document)["missingCaseAdapters"] = ((document)["missingCaseAdapters"])["filter"](((item) => {
1886
+ return (!__eliscript_truthy((claimed)["has"]((item)["coverageId"])));
1887
+ })));
1888
+ {
1889
+ let required = resource_field((options)["originals"], "requiredCoverage");
1890
+ let ids = new (globalThis.Set)((gate)["coverageIds"]);
1891
+ if (__eliscript_truthy(Array.isArray(required))) {
1892
+ return ((gate)["coverageIds"] = (required)["filter"](((id) => {
1893
+ return (ids)["has"](id);
1894
+ })));
1895
+ } else {
1896
+ return null;
1897
+ }
1898
+ }
1899
+ })());
1900
+ })(((resource_field(options, "functionalRuntimeProfile") === "small") || (((globalThis.process)["env"])["ELISCRIPT_DEFER_PERFORMANCE_ACCEPTANCE"] === "1"))));
1901
+ })(new (globalThis.Set)()));
1902
+ })(0));
1903
+ })([maintained, generated, "benchmarks/compiler-runtime-scan-macos-arm64.json", "tools/compiler/runtime-scan-benchmark.mjs", "tests/helpers/performance-acceptance.mjs"]));
1904
+ })([]));
1905
+ })([]));
1906
+ })(read_string(source, maintained)));
1907
+ })(await ((reader)["text"](maintained))));
1908
+ })((__eliscript_tdz_read_0())(({"sourceRoot": (options)["sourceRoot"]})))) : null);
1909
+ return document;
1910
+ })());
1911
+ })((__eliscript_truthy(Array.isArray(locators)) ? (locators)["filter"](((item) => {
1912
+ return (((item)["file"] === generated) && ((item)["contains"] === title));
1913
+ })) : [])));
1914
+ })("committed compiler runtime scan report matches measured sources"));
1915
+ })("tests/eliscript/compiler-runtime-scan.eli"));
1916
+ })("tests/compiler-runtime-scan-selfhosted.test.mjs"));
1917
+ })((gate)["locators"]));
1918
+ })((document)["originalGateEvidence"]));
1919
+ }
1920
+ async function load_original_corpus(options) {
1921
+ return (await (async (document) => {
1922
+ (__eliscript_truthy(((document)["records"])["some"](((record) => {
1923
+ return ((__eliscript_tdz_read_6()))["has"]((record)["id"]);
1924
+ }))) ? (await (async (reader) => {
1925
+ return ((provider) => {
1926
+ return ((existing) => {
1927
+ return (__eliscript_truthy(existing) ? ((!(((existing)["sha256"] === (provider)["sha256"]) && ((existing)["content"] === (provider)["content"]))) ? ((__eliscript_value_395) => { throw __eliscript_value_395; })(new (globalThis.TypeError)("original recipe HTTP provider source identity differs")) : null) : ((document)["evidence"])["push"](provider));
1928
+ })(((document)["evidence"])["find"](((asset) => {
1929
+ return ((asset)["file"] === "platform/http.mjs");
1930
+ })));
1931
+ })(await ((reader)["file"]("platform/http.mjs")));
1932
+ })((__eliscript_tdz_read_0())(({"sourceRoot": ((options == null) ? root : ((options)["sourceRoot"] ?? root))})))) : null);
1933
+ await (restore_runtime_scan_recipe(document, options));
1934
+ await (runtime_scan_replay(document, options));
1935
+ await (matcher_transport(document, options));
1936
+ await (maintained_execution_assets(document, options));
1937
+ await (tools_cli_assets(document, options));
1938
+ await (tools_data_reference_assets(document, options));
1939
+ await (project_runtime_assets(document, options));
1940
+ await (transportOriginalFuzzCorpus(document, options));
1941
+ await (transportOriginalStdlibBitCorpus(document, options));
1942
+ await (transportOriginalSourceDebuggingCorpus(document, options));
1943
+ await (transportOriginalBootstrapEmitterCorpus(document, options));
1944
+ bindOriginalMaintainedSuiteEvidence(document);
1945
+ await (bindOriginalRuntimeScanReportEvidence(document, options));
1946
+ return bind_complete_library_resource_inputs(document);
1947
+ })(await ((legacy)["loadOriginalCompilerCorpus"](prepareOriginalBootstrapEmitterOptions(options)))));
1948
+ }
1949
+ async function loadOriginalCompilerCorpus(options) {
1950
+ return (await (async (source_root) => {
1951
+ return (await (async (originals) => {
1952
+ return (((originals == null) || (!__eliscript_truthy(Array.isArray((originals)["manifests"]))) || ((__eliscript_value_396, __eliscript_value_397) => (__eliscript_value_396 !== __eliscript_value_397))(((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(source_root), "string")) ? await (load_original_corpus(options)) : (await (async (stable) => {
1953
+ return ((stable == null) ? await (load_original_corpus(options)) : (await (async (reader) => {
1954
+ return (await (async (conformance) => {
1955
+ return (await (async (features) => {
1956
+ return (await (async (matches) => {
1957
+ return (await (async (feature_ids) => {
1958
+ return (await (async (index) => {
1959
+ return (await (async () => {
1960
+ while (__eliscript_numeric_relation("<", index, ((feature_ids) ?? []).length)) {
1961
+ {
1962
+ let feature_id = (feature_ids)[index];
1963
+ let feature = (features)["find"](((item) => {
1964
+ return ((item)["id"] === feature_id);
1965
+ }));
1966
+ let locators = ((feature == null) ? [] : (feature)["evidence"]);
1967
+ let position = 0;
1968
+ while (__eliscript_numeric_relation("<", position, ((locators) ?? []).length)) {
1969
+ {
1970
+ const __eliscript_value_398 = (locators)[position];
1971
+ {
1972
+ let locator = __eliscript_value_398;
1973
+ if ((((locator)["file"] === (__eliscript_tdz_read_3())) && ((locator)["contains"] === (__eliscript_tdz_read_5())))) {
1974
+ (matches)["push"](({"id": ("stable-compatibility:evidence:" + feature_id + ":" + position), "locator": Object.assign(({}), ({"id": ("stable-compatibility:evidence:" + feature_id + ":" + position), "featureId": feature_id}), globalThis.structuredClone(locator))}));
1975
+ }
1976
+ }
1977
+ }
1978
+ ((position = (position + 1)));
1979
+ }
1980
+ }
1981
+ ((index = (index + 1)));
1982
+ }
1983
+ if ((!(((matches) ?? []).length === 1))) {
1984
+ ((__eliscript_value_399) => { throw __eliscript_value_399; })(new (globalThis.TypeError)("literal source audit must retain its unique original coverage locator"));
1985
+ }
1986
+ return (await (async (match) => {
1987
+ return (await (async (id) => {
1988
+ return (await (async (required) => {
1989
+ return ((!__eliscript_truthy((required)["includes"](id))) ? await (load_original_corpus(options)) : (await (async (private_originals) => {
1990
+ return ((document) => {
1991
+ return ((evidence) => {
1992
+ return (() => {
1993
+ if ((!__eliscript_truthy(evidence))) {
1994
+ ((__eliscript_value_402) => { throw __eliscript_value_402; })(new (globalThis.TypeError)("literal source audit must be bound to its actual archived Eli source"));
1995
+ }
1996
+ {
1997
+ let source = (new (globalThis.TextDecoder)("utf-8", ({"fatal": true, "ignoreBOM": true})))["decode"]((Buffer)["from"]((evidence)["content"], "base64"));
1998
+ let audit = readOriginalLiteralRuntimeAudit(source, (__eliscript_tdz_read_4()), (evidence)["sha256"]);
1999
+ let gate = (document)["originalGateEvidence"];
2000
+ let gate_ids = new (globalThis.Set)((gate)["coverageIds"]);
2001
+ let dependencies = (gate)["hostOnlyDependencies"];
2002
+ let dependency = ({"coverageId": id, "file": (__eliscript_tdz_read_4()), "sourceSha256": (audit)["sourceSha256"], "kind": "source-only-case", "originalAssertion": (__eliscript_tdz_read_5()), "locator": (match)["locator"], "region": (audit)["region"], "reason": "unchanged original source constructor audit; all compiled-language cases retain selected-session execution"});
2003
+ (gate_ids)["add"](id);
2004
+ ((gate)["coverageIds"] = (required)["filter"](((value) => {
2005
+ return (gate_ids)["has"](value);
2006
+ })));
2007
+ {
2008
+ const __eliscript_value_403 = (dependencies)["findIndex"](((item) => {
2009
+ return __eliscript_numeric_relation(">", (required)["indexOf"]((item)["coverageId"]), (required)["indexOf"](id));
2010
+ }));
2011
+ {
2012
+ let position = __eliscript_value_403;
2013
+ (dependencies)["splice"]((__eliscript_numeric_relation("<", position, 0) ? ((dependencies) ?? []).length : position), 0, dependency);
2014
+ }
2015
+ }
2016
+ ((document)["coverageIds"] = Array.from(required));
2017
+ return document;
2018
+ }
2019
+ })();
2020
+ })(((document)["evidence"])["find"](((asset) => {
2021
+ return ((asset)["file"] === (__eliscript_tdz_read_4()));
2022
+ })));
2023
+ })(await (load_original_corpus(Object.assign(({}), options, ({"originals": private_originals})))));
2024
+ })(Object.assign(({}), originals, ({"requiredCoverage": (required)["filter"](((value) => {
2025
+ return ((__eliscript_value_400, __eliscript_value_401) => (__eliscript_value_400 !== __eliscript_value_401))(value, id);
2026
+ }))})))));
2027
+ })((originals)["requiredCoverage"]));
2028
+ })((match)["id"]));
2029
+ })((matches)[0]));
2030
+ })());
2031
+ })(0));
2032
+ })(((stable)["document"])["stableCoreFeatureIds"]));
2033
+ })([]));
2034
+ })((conformance)["features"]));
2035
+ })(JSON.parse(await ((reader)["text"]("tests/conformance/manifest.json")))));
2036
+ })((__eliscript_tdz_read_0())(({"sourceRoot": source_root})))));
2037
+ })(((originals)["manifests"])["find"](((item) => {
2038
+ return ((item)["id"] === "stable-compatibility");
2039
+ })))));
2040
+ })((options)["originals"]));
2041
+ })((options)["sourceRoot"]));
2042
+ }
2043
+ const transportOriginalExecutionAssets = maintained_execution_assets;
2044
+ __eliscript_tdz_ready_9 = true;
2045
+ const transportOriginalToolsDataReferenceAssets = tools_data_reference_assets;
2046
+ __eliscript_tdz_ready_10 = true;
2047
+ const bindOriginalFunctionalResourceInputs = bind_complete_library_resource_inputs;
2048
+ __eliscript_tdz_ready_11 = true;
2049
+ const transportOriginalProjectRuntimeAssets = project_runtime_assets;
2050
+ __eliscript_tdz_ready_12 = true;
2051
+ const transportOriginalToolsCLIAssets = tools_cli_assets;
2052
+ __eliscript_tdz_ready_13 = true;
2053
+ export {createOriginalCorpusSourceReader, cloneCompilerCorpusData, cloneCompilerCorpusModules, compilerCorpusRequest, prepareOriginalSeedSources, loadOriginalCompilerCorpus, readOriginalLiteralRuntimeAudit, transportOriginalMatcherRecord, bindOriginalMaintainedSuiteEvidence, bindOriginalRuntimeScanReportEvidence, transportOriginalProjectRuntimeAssets, transportOriginalToolsCLIAssets, transportOriginalExecutionAssets, transportOriginalToolsDataReferenceAssets, bindOriginalFunctionalResourceInputs, originalSequenceNativeInteropP, transportOriginalSequenceRuntime, compilerCorpusFunctionalResources, compilerCorpusResourceDeferred};
2054
+ //# sourceMappingURL=compiler-corpus.mjs.map