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.
- package/README.md +61 -0
- package/bootstrap/README.md +26 -0
- package/bootstrap/backends/README.md +515 -0
- package/bootstrap/backends/async.eli +230 -0
- package/bootstrap/backends/binary.eli +173 -0
- package/bootstrap/backends/capabilities.eli +74 -0
- package/bootstrap/backends/elf.eli +246 -0
- package/bootstrap/backends/managed.eli +5976 -0
- package/bootstrap/backends/memory.eli +100 -0
- package/bootstrap/backends/native.eli +2000 -0
- package/bootstrap/backends/numeric.eli +1362 -0
- package/bootstrap/backends/optimize.eli +79 -0
- package/bootstrap/backends/regexp.eli +2263 -0
- package/bootstrap/backends/sha256.eli +138 -0
- package/bootstrap/backends/wasm.eli +1161 -0
- package/bootstrap/compiler/analyzer.eli +165 -77
- package/bootstrap/compiler/compiler.eli +43 -19
- package/bootstrap/compiler/emitter.eli +780 -170
- package/bootstrap/compiler/expander.eli +136 -45
- package/bootstrap/compiler/formatter.eli +8 -1
- package/bootstrap/compiler/ir.eli +148 -45
- package/bootstrap/compiler/lower.eli +29 -2
- package/bootstrap/compiler/project.eli +51 -21
- package/bootstrap/compiler/reader.eli +128 -36
- package/bootstrap/compiler/source-map.eli +46 -4
- package/bootstrap/compiler/symbol.eli +2 -1
- package/bootstrap/compiler/syntax.eli +47 -12
- package/bootstrap/compiler/transient-analysis.eli +40 -4
- package/bootstrap/host/check-cli-legacy.mjs +163 -0
- package/bootstrap/host/check-cli.mjs +59 -158
- package/bootstrap/host/check-cli.mjs.map +1 -0
- package/bootstrap/host/compiler-session.eli +1579 -0
- package/bootstrap/host/compiler-tools.eli +513 -0
- package/bootstrap/host/eliscript-cli.mjs +53 -33
- package/bootstrap/host/eliscript-cli.mjs.map +1 -0
- package/bootstrap/host/project-cli-legacy.mjs +295 -0
- package/bootstrap/host/project-cli.mjs +74 -289
- package/bootstrap/host/project-cli.mjs.map +1 -0
- package/bootstrap/host/project-legacy.mjs +1080 -0
- package/bootstrap/host/project.mjs +210 -1060
- package/bootstrap/host/project.mjs.map +1 -0
- package/bootstrap/runtime/UNICODE-LICENSE.txt +39 -0
- package/bootstrap/runtime/memory.eli +30379 -0
- package/browser/host.mjs +732 -11
- package/browser/worker.mjs +6 -3
- package/compiler/eliscript-analyzer.el +371 -4
- package/compiler/eliscript-cli.el +84 -1
- package/compiler/eliscript-emitter.el +1189 -256
- package/compiler/eliscript-expander.el +147 -10
- package/compiler/eliscript-ir-emitter.el +725 -208
- package/compiler/eliscript-lower.el +127 -1
- package/compiler/eliscript-portable.el +177 -51
- package/compiler/eliscript-project.el +20 -2
- package/compiler/eliscript-reader.el +141 -57
- package/compiler/eliscript-source-map.el +26 -12
- package/compiler/eliscript-transient-analysis.el +382 -19
- package/dist/backends/async.mjs +561 -0
- package/dist/backends/async.mjs.macro-origins.json +1 -0
- package/dist/backends/async.mjs.map +1 -0
- package/dist/backends/binary.mjs +381 -0
- package/dist/backends/binary.mjs.macro-origins.json +1 -0
- package/dist/backends/binary.mjs.map +1 -0
- package/dist/backends/capabilities.mjs +237 -0
- package/dist/backends/capabilities.mjs.macro-origins.json +1 -0
- package/dist/backends/capabilities.mjs.map +1 -0
- package/dist/backends/elf.mjs +540 -0
- package/dist/backends/elf.mjs.macro-origins.json +1 -0
- package/dist/backends/elf.mjs.map +1 -0
- package/dist/backends/managed.mjs +10616 -0
- package/dist/backends/managed.mjs.macro-origins.json +1 -0
- package/dist/backends/managed.mjs.map +1 -0
- package/dist/backends/memory.mjs +278 -0
- package/dist/backends/memory.mjs.macro-origins.json +1 -0
- package/dist/backends/memory.mjs.map +1 -0
- package/dist/backends/native.mjs +4099 -0
- package/dist/backends/native.mjs.macro-origins.json +1 -0
- package/dist/backends/native.mjs.map +1 -0
- package/dist/backends/numeric.mjs +2458 -0
- package/dist/backends/numeric.mjs.macro-origins.json +1 -0
- package/dist/backends/numeric.mjs.map +1 -0
- package/dist/backends/optimize.mjs +204 -0
- package/dist/backends/optimize.mjs.macro-origins.json +1 -0
- package/dist/backends/optimize.mjs.map +1 -0
- package/dist/backends/regexp.mjs +2033 -0
- package/dist/backends/regexp.mjs.macro-origins.json +1 -0
- package/dist/backends/regexp.mjs.map +1 -0
- package/dist/backends/sha256.mjs +310 -0
- package/dist/backends/sha256.mjs.macro-origins.json +1 -0
- package/dist/backends/sha256.mjs.map +1 -0
- package/dist/backends/wasm.mjs +2258 -0
- package/dist/backends/wasm.mjs.macro-origins.json +1 -0
- package/dist/backends/wasm.mjs.map +1 -0
- package/dist/bootstrap/analyzer.mjs +1908 -776
- package/dist/bootstrap/analyzer.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/analyzer.mjs.map +1 -1
- package/dist/bootstrap/compiler.mjs +450 -142
- package/dist/bootstrap/compiler.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/compiler.mjs.map +1 -1
- package/dist/bootstrap/emitter.mjs +3083 -909
- package/dist/bootstrap/emitter.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/emitter.mjs.map +1 -1
- package/dist/bootstrap/expander.mjs +2887 -1233
- package/dist/bootstrap/expander.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/expander.mjs.map +1 -1
- package/dist/bootstrap/formatter.mjs +582 -218
- package/dist/bootstrap/formatter.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/formatter.mjs.map +1 -1
- package/dist/bootstrap/ir.mjs +670 -116
- package/dist/bootstrap/ir.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/ir.mjs.map +1 -1
- package/dist/bootstrap/lower.mjs +866 -257
- package/dist/bootstrap/lower.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/lower.mjs.map +1 -1
- package/dist/bootstrap/package.json +1 -0
- package/dist/bootstrap/project.mjs +1168 -498
- package/dist/bootstrap/project.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/project.mjs.map +1 -1
- package/dist/bootstrap/reader.mjs +674 -175
- package/dist/bootstrap/reader.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/reader.mjs.map +1 -1
- package/dist/bootstrap/runtime/math.mjs +1117 -0
- package/dist/bootstrap/runtime/math.mjs.map +1 -0
- package/dist/bootstrap/runtime/unicode-case-data.mjs +10125 -0
- package/dist/bootstrap/runtime/unicode-case-data.mjs.map +1 -0
- package/dist/bootstrap/runtime/unicode-case.mjs +281 -0
- package/dist/bootstrap/runtime/unicode-case.mjs.map +1 -0
- package/dist/bootstrap/source-map.mjs +430 -119
- package/dist/bootstrap/source-map.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/source-map.mjs.map +1 -1
- package/dist/bootstrap/symbol.mjs +229 -53
- package/dist/bootstrap/symbol.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/symbol.mjs.map +1 -1
- package/dist/bootstrap/syntax.mjs +205 -7
- package/dist/bootstrap/syntax.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/syntax.mjs.map +1 -1
- package/dist/bootstrap/transient-analysis.mjs +1185 -489
- package/dist/bootstrap/transient-analysis.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/transient-analysis.mjs.map +1 -1
- package/dist/browser/compiler.js +199 -6478
- package/dist/browser/host.mjs +1078 -0
- package/dist/browser/loader.js +1 -0
- package/dist/browser/loader.mjs +231 -0
- package/dist/browser/worker.mjs +63 -0
- package/dist/compiler-artifact.json +1 -0
- package/dist/host/compiler-session.mjs +2980 -0
- package/dist/host/compiler-session.mjs.macro-origins.json +1 -0
- package/dist/host/compiler-session.mjs.map +1 -0
- package/dist/host/compiler-tools.mjs +1084 -0
- package/dist/host/compiler-tools.mjs.macro-origins.json +1 -0
- package/dist/host/compiler-tools.mjs.map +1 -0
- package/dist/literal-sources/runtime/core/collection-internals.eli +60 -0
- package/dist/literal-sources/runtime/core/collection.eli +639 -0
- package/dist/literal-sources/runtime/core/data-text.eli +290 -0
- package/dist/literal-sources/runtime/core/data.eli +22 -0
- package/dist/literal-sources/runtime/core/identifier.eli +44 -0
- package/dist/literal-sources/runtime/core/lazy-sequence.eli +131 -0
- package/dist/literal-sources/runtime/core/list.eli +19 -0
- package/dist/literal-sources/runtime/core/map.eli +9 -0
- package/dist/literal-sources/runtime/core/metadata-internals.eli +6 -0
- package/dist/literal-sources/runtime/core/metadata.eli +40 -0
- package/dist/literal-sources/runtime/core/object.eli +8 -0
- package/dist/literal-sources/runtime/core/order.eli +123 -0
- package/dist/literal-sources/runtime/core/persistent-kind.eli +28 -0
- package/dist/literal-sources/runtime/core/protocol-error.eli +32 -0
- package/dist/literal-sources/runtime/core/protocol.eli +28 -0
- package/dist/literal-sources/runtime/core/queue.eli +9 -0
- package/dist/literal-sources/runtime/core/record.eli +191 -0
- package/dist/literal-sources/runtime/core/regex.eli +158 -0
- package/dist/literal-sources/runtime/core/sequence.eli +305 -0
- package/dist/literal-sources/runtime/core/set-algebra.eli +28 -0
- package/dist/literal-sources/runtime/core/set.eli +9 -0
- package/dist/literal-sources/runtime/core/sorted.eli +408 -0
- package/dist/literal-sources/runtime/core/text.eli +14 -0
- package/dist/literal-sources/runtime/core/transducer.eli +268 -0
- package/dist/literal-sources/runtime/core/transient.eli +17 -0
- package/dist/literal-sources/runtime/core/truth.eli +4 -0
- package/dist/literal-sources/runtime/core/type.eli +232 -0
- package/dist/literal-sources/runtime/core/value-internals.eli +13 -0
- package/dist/literal-sources/runtime/core/value.eli +19 -0
- package/dist/literal-sources/runtime/core/vector.eli +25 -0
- package/dist/literal-sources/runtime/literals.eli +23 -0
- package/dist/literal-sources/runtime/testing/value.eli +6 -0
- package/dist/literal-sources/runtime/wire/http-rpc.eli +362 -0
- package/dist/literal-sources/runtime/wire/markdown.eli +275 -0
- package/dist/literal-sources/runtime/wire/schema.eli +193 -0
- package/dist/literal-sources/stdlib/bit.eli +36 -0
- package/dist/literal-sources/stdlib/core/data.eli +306 -0
- package/dist/literal-sources/stdlib/core/object.eli +89 -0
- package/dist/literal-sources/stdlib/core/protocol.eli +451 -0
- package/dist/literal-sources/stdlib/core/set.eli +312 -0
- package/dist/literal-sources/stdlib/core/text.eli +103 -0
- package/dist/literal-sources/stdlib/managed-literal-protocols.eli +494 -0
- package/dist/literal-sources/stdlib/managed-literals.eli +1469 -0
- package/dist/literal-sources/stdlib/managed-queue-state.eli +65 -0
- package/dist/literal-sources/stdlib/managed-sorted-state.eli +233 -0
- package/dist/literal-sources/stdlib/managed-transient-state.eli +348 -0
- package/dist/literal-sources/stdlib/managed-value-state.eli +153 -0
- package/dist/literal-sources/stdlib/managed-vector-view-state.eli +102 -0
- package/dist/literal-sources/stdlib/persistent-list.eli +145 -0
- package/dist/literal-sources/stdlib/persistent-map.eli +724 -0
- package/dist/literal-sources/stdlib/persistent-set.eli +236 -0
- package/dist/literal-sources/stdlib/persistent-vector.eli +359 -0
- package/dist/literal-sources/stdlib/value.eli +325 -0
- package/dist/package.json +10 -0
- package/dist/runtime/math.mjs +1116 -0
- package/dist/runtime/math.mjs.macro-origins.json +1 -0
- package/dist/runtime/math.mjs.map +1 -0
- package/dist/runtime/unicode-case-data.mjs +10124 -0
- package/dist/runtime/unicode-case-data.mjs.macro-origins.json +1 -0
- package/dist/runtime/unicode-case-data.mjs.map +1 -0
- package/dist/runtime/unicode-case.mjs +280 -0
- package/dist/runtime/unicode-case.mjs.macro-origins.json +1 -0
- package/dist/runtime/unicode-case.mjs.map +1 -0
- package/dist/runtime.eli +30379 -0
- package/dist/stage3-release.json +1 -0
- package/editor/README.md +1 -1
- package/editor/eliscript-mode.el +1 -1
- package/editor/eliscript-repl.el +1 -1
- package/package.json +106 -11
- package/platform/http.mjs +20 -0
- package/runtime/array-text.mjs +159 -0
- package/runtime/core/map-internals.mjs +27 -9
- package/runtime/core/object-impl.mjs +26 -17
- package/runtime/core/object-impl.mjs.map +1 -1
- package/runtime/core/protocol-impl.mjs +682 -255
- package/runtime/core/protocol-impl.mjs.map +1 -1
- package/runtime/core/protocol.mjs +4 -0
- package/runtime/core/record.mjs +23 -2
- package/runtime/core/regex.mjs +4 -0
- package/runtime/core/sorted.mjs +53 -0
- package/runtime/core/text-impl.mjs +167 -48
- package/runtime/core/text-impl.mjs.map +1 -1
- package/runtime/core/type.mjs +75 -3
- package/runtime/core/vector.mjs +6 -0
- package/runtime/math.eli +429 -0
- package/runtime/math.mjs +1116 -0
- package/runtime/math.mjs.map +1 -0
- package/runtime/number-radix.mjs +105 -0
- package/runtime/unicode-case-data.eli +29 -0
- package/runtime/unicode-case-data.mjs +10124 -0
- package/runtime/unicode-case-data.mjs.map +1 -0
- package/runtime/unicode-case.eli +100 -0
- package/runtime/unicode-case.mjs +280 -0
- package/runtime/unicode-case.mjs.map +1 -0
- package/runtime/wire/http-rpc.mjs +168 -0
- package/runtime/wire/markdown.mjs +196 -0
- package/runtime/wire/schema.mjs +109 -0
- package/stdlib/README.md +54 -0
- package/stdlib/core/protocol.eli +81 -17
- package/stdlib/core/seq.eli +1 -1
- package/stdlib/core/zipper.eli +172 -72
- package/stdlib/gepo.eli +12 -0
- package/stdlib/interop/js.eli +56 -15
- package/stdlib/managed-literal-protocols.eli +494 -0
- package/stdlib/managed-literals.eli +1469 -0
- package/stdlib/managed-protocol-error.eli +32 -0
- package/stdlib/managed-queue-state.eli +65 -0
- package/stdlib/managed-runtime-collection-internals.eli +60 -0
- package/stdlib/managed-runtime-collection.eli +639 -0
- package/stdlib/managed-runtime-data-text.eli +290 -0
- package/stdlib/managed-runtime-data.eli +22 -0
- package/stdlib/managed-runtime-identifier.eli +44 -0
- package/stdlib/managed-runtime-lazy-sequence.eli +131 -0
- package/stdlib/managed-runtime-list.eli +19 -0
- package/stdlib/managed-runtime-literals.eli +23 -0
- package/stdlib/managed-runtime-map.eli +9 -0
- package/stdlib/managed-runtime-metadata-internals.eli +6 -0
- package/stdlib/managed-runtime-metadata.eli +40 -0
- package/stdlib/managed-runtime-object.eli +8 -0
- package/stdlib/managed-runtime-order.eli +123 -0
- package/stdlib/managed-runtime-persistent-kind.eli +28 -0
- package/stdlib/managed-runtime-protocol.eli +28 -0
- package/stdlib/managed-runtime-queue.eli +9 -0
- package/stdlib/managed-runtime-record.eli +191 -0
- package/stdlib/managed-runtime-regex.eli +158 -0
- package/stdlib/managed-runtime-sequence.eli +305 -0
- package/stdlib/managed-runtime-set-algebra.eli +28 -0
- package/stdlib/managed-runtime-set.eli +9 -0
- package/stdlib/managed-runtime-sorted.eli +408 -0
- package/stdlib/managed-runtime-text.eli +14 -0
- package/stdlib/managed-runtime-transducer.eli +268 -0
- package/stdlib/managed-runtime-transient.eli +17 -0
- package/stdlib/managed-runtime-truth.eli +4 -0
- package/stdlib/managed-runtime-type.eli +232 -0
- package/stdlib/managed-runtime-value-internals.eli +13 -0
- package/stdlib/managed-runtime-value.eli +19 -0
- package/stdlib/managed-runtime-vector.eli +25 -0
- package/stdlib/managed-sorted-state.eli +233 -0
- package/stdlib/managed-testing-value.eli +6 -0
- package/stdlib/managed-transient-state.eli +348 -0
- package/stdlib/managed-value-state.eli +153 -0
- package/stdlib/managed-vector-view-state.eli +102 -0
- package/stdlib/managed-wire-http-rpc.eli +362 -0
- package/stdlib/managed-wire-markdown.eli +275 -0
- package/stdlib/managed-wire-schema.eli +193 -0
- package/stdlib/mdp.eli +7 -0
- package/stdlib/mds.eli +4 -0
- package/stdlib/persistent-vector.eli +23 -6
- package/tools/acceptance/check-legacy.mjs +687 -0
- package/tools/acceptance/check.eli +431 -0
- package/tools/acceptance/compile-evidence.el +49 -0
- package/tools/acceptance/finalize-legacy.mjs +498 -0
- package/tools/acceptance/finalize.eli +270 -0
- package/tools/backends/benchmark.mjs +175 -0
- package/tools/backends/build.mjs +135 -0
- package/tools/backends/compile.mjs +94 -0
- package/tools/backends/compiler-bootstrap.mjs +1001 -0
- package/tools/backends/compiler-browser.mjs +361 -0
- package/tools/backends/compiler-build.mjs +1628 -0
- package/tools/backends/compiler-cli-legacy.mjs +334 -0
- package/tools/backends/compiler-cli.mjs +29 -0
- package/tools/backends/compiler-corpus-bit.mjs +234 -0
- package/tools/backends/compiler-corpus-cli-adapters-legacy.mjs +362 -0
- package/tools/backends/compiler-corpus-cli-adapters.mjs +247 -0
- package/tools/backends/compiler-corpus-debugging.mjs +221 -0
- package/tools/backends/compiler-corpus-emitter.mjs +324 -0
- package/tools/backends/compiler-corpus-evaluation-adapters.mjs +65 -0
- package/tools/backends/compiler-corpus-execution-legacy.mjs +769 -0
- package/tools/backends/compiler-corpus-execution.mjs +3324 -0
- package/tools/backends/compiler-corpus-fuzz.mjs +229 -0
- package/tools/backends/compiler-corpus-generations.mjs +208 -0
- package/tools/backends/compiler-corpus-host-context-legacy.mjs +114 -0
- package/tools/backends/compiler-corpus-host-context.mjs +550 -0
- package/tools/backends/compiler-corpus-identity-host.mjs +553 -0
- package/tools/backends/compiler-corpus-identity-value-adapters-legacy.mjs +298 -0
- package/tools/backends/compiler-corpus-identity-value-adapters.mjs +69 -0
- package/tools/backends/compiler-corpus-isolated-exports.mjs +21 -0
- package/tools/backends/compiler-corpus-legacy.mjs +1155 -0
- package/tools/backends/compiler-corpus-literal-provider.mjs +282 -0
- package/tools/backends/compiler-corpus-managed-adapters-legacy.mjs +334 -0
- package/tools/backends/compiler-corpus-managed-adapters.mjs +937 -0
- package/tools/backends/compiler-corpus-managed-cases.mjs +179 -0
- package/tools/backends/compiler-corpus-managed-fixtures-legacy.mjs +879 -0
- package/tools/backends/compiler-corpus-managed-fixtures.mjs +1287 -0
- package/tools/backends/compiler-corpus-matchers.mjs +173 -0
- package/tools/backends/compiler-corpus-original-program.mjs +612 -0
- package/tools/backends/compiler-corpus-process.mjs +765 -0
- package/tools/backends/compiler-corpus-program-driver.mjs +306 -0
- package/tools/backends/compiler-corpus-project-adapters-legacy.mjs +497 -0
- package/tools/backends/compiler-corpus-project-adapters.mjs +340 -0
- package/tools/backends/compiler-corpus-project-entry-host.mjs +511 -0
- package/tools/backends/compiler-corpus-project-transport.mjs +151 -0
- package/tools/backends/compiler-corpus-raw-fixture-observer.mjs +1438 -0
- package/tools/backends/compiler-corpus-raw-language-fixtures.mjs +1456 -0
- package/tools/backends/compiler-corpus-raw-math-fixture.mjs +346 -0
- package/tools/backends/compiler-corpus-raw-special-fixtures.mjs +523 -0
- package/tools/backends/compiler-corpus-reference-legacy.mjs +263 -0
- package/tools/backends/compiler-corpus-reference.mjs +241 -0
- package/tools/backends/compiler-corpus-runtime-adapters-legacy.mjs +843 -0
- package/tools/backends/compiler-corpus-runtime-adapters.mjs +663 -0
- package/tools/backends/compiler-corpus-source-archive.mjs +206 -0
- package/tools/backends/compiler-corpus-tools-artifact-adapters.mjs +410 -0
- package/tools/backends/compiler-corpus-tools-cli.mjs +363 -0
- package/tools/backends/compiler-corpus-tools-reference.mjs +264 -0
- package/tools/backends/compiler-corpus.mjs +2054 -0
- package/tools/backends/compiler-debug.mjs +142 -0
- package/tools/backends/compiler-matrix.mjs +1955 -0
- package/tools/backends/compiler-metadata.mjs +203 -0
- package/tools/backends/compiler-package-browser.mjs +120 -0
- package/tools/backends/compiler-package-legacy.mjs +654 -0
- package/tools/backends/compiler-package.mjs +464 -0
- package/tools/backends/compiler-project.mjs +126 -0
- package/tools/backends/compiler-session.mjs +843 -0
- package/tools/backends/compiler-sha256.mjs +152 -0
- package/tools/backends/compiler-unicode-profile-host.mjs +196 -0
- package/tools/backends/compiler-worker.mjs +573 -0
- package/tools/backends/dist/bootstrap-js-stages.mjs +919 -0
- package/tools/backends/dist/bootstrap-js-stages.mjs.map +1 -0
- package/tools/backends/dist/managed-ir-inventory.mjs +488 -0
- package/tools/backends/dist/managed-ir-inventory.mjs.map +1 -0
- package/tools/backends/dist/record-grid.mjs +1256 -0
- package/tools/backends/dist/record-grid.mjs.map +1 -0
- package/tools/backends/dist/release-cli.mjs +462 -0
- package/tools/backends/dist/release-cli.mjs.map +1 -0
- package/tools/backends/dist/run-artifact.mjs +517 -0
- package/tools/backends/dist/run-artifact.mjs.map +1 -0
- package/tools/backends/eliscript/compiler-corpus-bit.eli +77 -0
- package/tools/backends/eliscript/compiler-corpus-debugging.eli +70 -0
- package/tools/backends/eliscript/compiler-corpus-project-entry-host.eli +256 -0
- package/tools/backends/managed-foreign-binding.mjs +497 -0
- package/tools/backends/managed-host-legacy.mjs +1181 -0
- package/tools/backends/managed-host-lifecycle.mjs +310 -0
- package/tools/backends/managed-host-object-provider.mjs +155 -0
- package/tools/backends/managed-host-object-realm.mjs +797 -0
- package/tools/backends/managed-host-proxy.mjs +71 -0
- package/tools/backends/managed-host-runtime.mjs +5868 -0
- package/tools/backends/managed-host.mjs +716 -0
- package/tools/backends/managed-module-graph-legacy.mjs +308 -0
- package/tools/backends/managed-module-graph.mjs +694 -0
- package/tools/backends/managed-runtime-host-legacy.mjs +195 -0
- package/tools/backends/managed-runtime.mjs +939 -0
- package/tools/backends/managed-source-view-legacy.mjs +332 -0
- package/tools/backends/managed-source-view.mjs +959 -0
- package/tools/backends/memory-runtime.mjs +100 -0
- package/tools/backends/native-benchmark.mjs +88 -0
- package/tools/backends/native-managed-runtime.mjs +677 -0
- package/tools/backends/native-memory.mjs +768 -0
- package/tools/backends/native-node-memory.mjs +142 -0
- package/tools/backends/native-node-runner.mjs +99 -0
- package/tools/backends/native-node-watchdog.mjs +19 -0
- package/tools/backends/native-node-worker.mjs +75 -0
- package/tools/backends/stage3-targets.mjs +493 -0
- package/tools/bootstrap-command.el +13 -0
- package/tools/bootstrap-runtime.el +101 -0
- package/tools/bootstrap-seed.el +55 -0
- package/tools/project/check-cli.eli +31 -0
- package/tools/project/project-cli.eli +42 -0
- package/tools/project/project.eli +122 -0
- package/tools/runtime/unicode-case-profiles.mjs +13 -0
- package/tools/runtime/unicode-case-runtime.el +57 -0
- package/tools/testing/source-debugging-corpus-host.eli +16 -0
- package/tools/testing/source-debugging.eli +139 -0
- package/tools/testing/stdlib-bit-corpus-host.eli +21 -0
- package/tools/testing/stdlib-bit-corpus-host.mjs +118 -0
- package/tools/testing/stdlib-bit.eli +104 -0
- package/tools/testing/stdlib-bit.mjs +255 -0
- package/bin/eliscript-bootstrap +0 -15
|
@@ -0,0 +1,221 @@
|
|
|
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("id"); return id; }
|
|
5
|
+
function __eliscript_tdz_write_0(__eliscript_tdz_value_0) { if (__eliscript_tdz_ready_0 !== true) __eliscript_tdz_error("id"); 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("suite"); return suite; }
|
|
8
|
+
function __eliscript_tdz_write_1(__eliscript_tdz_value_1) { if (__eliscript_tdz_ready_1 !== true) __eliscript_tdz_error("suite"); 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("suite_sha"); return suite_sha; }
|
|
11
|
+
function __eliscript_tdz_write_2(__eliscript_tdz_value_2) { if (__eliscript_tdz_ready_2 !== true) __eliscript_tdz_error("suite_sha"); 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("files"); return files; }
|
|
14
|
+
function __eliscript_tdz_write_3(__eliscript_tdz_value_3) { if (__eliscript_tdz_ready_3 !== true) __eliscript_tdz_error("files"); return __eliscript_const_error(); }
|
|
15
|
+
import "eliscript/runtime/unicode-case.mjs";
|
|
16
|
+
const __eliscript_truthy = (value) => value !== false && value != null;
|
|
17
|
+
const __eliscript_number_intrinsic = globalThis.Number;
|
|
18
|
+
const __eliscript_bigint_intrinsic = globalThis.BigInt;
|
|
19
|
+
const __eliscript_numeric_apply = globalThis.Reflect.apply;
|
|
20
|
+
const __eliscript_numeric_symbol = globalThis.Symbol.toPrimitive;
|
|
21
|
+
const __eliscript_numeric_error = globalThis.TypeError;
|
|
22
|
+
const __eliscript_numeric_trim = globalThis.String.prototype.trim;
|
|
23
|
+
const __eliscript_numeric_slice = globalThis.String.prototype.slice;
|
|
24
|
+
const __eliscript_numeric_exec = globalThis.RegExp.prototype.exec;
|
|
25
|
+
const __eliscript_numeric_radix = /^(?:0[xX][0-9a-fA-F]+|0[oO][0-7]+|0[bB][01]+)$/;
|
|
26
|
+
const __eliscript_numeric_object = (value) => value !== null && (typeof value === "object" || typeof value === "function" || (typeof value === "undefined" && value !== void 0));
|
|
27
|
+
const __eliscript_numeric_primitive = (value) => {
|
|
28
|
+
if (!__eliscript_numeric_object(value)) return value;
|
|
29
|
+
const exotic = value[__eliscript_numeric_symbol];
|
|
30
|
+
if (exotic !== void 0 && exotic !== null) {
|
|
31
|
+
const result = __eliscript_numeric_apply(exotic, value, ["number"]);
|
|
32
|
+
if (!__eliscript_numeric_object(result)) return result;
|
|
33
|
+
throw new __eliscript_numeric_error("Cannot convert object to primitive value");
|
|
34
|
+
}
|
|
35
|
+
for (let index = 0; index < 2; index++) {
|
|
36
|
+
const method = value[index === 0 ? "valueOf" : "toString"];
|
|
37
|
+
if (typeof method === "function" || (typeof method === "undefined" && method !== void 0)) {
|
|
38
|
+
const result = __eliscript_numeric_apply(method, value, []);
|
|
39
|
+
if (!__eliscript_numeric_object(result)) return result;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
throw new __eliscript_numeric_error("Cannot convert object to primitive value");
|
|
43
|
+
};
|
|
44
|
+
const __eliscript_to_number = (value) => {
|
|
45
|
+
const primitive = __eliscript_numeric_primitive(value);
|
|
46
|
+
if (typeof primitive === "string") {
|
|
47
|
+
const text = __eliscript_numeric_apply(__eliscript_numeric_trim, primitive, []);
|
|
48
|
+
if (__eliscript_numeric_apply(__eliscript_numeric_exec, __eliscript_numeric_radix, [text]) !== null) {
|
|
49
|
+
let first = 2;
|
|
50
|
+
while (first < text.length && text[first] === "0") first++;
|
|
51
|
+
if (first === text.length) return 0;
|
|
52
|
+
const prefix = text[1];
|
|
53
|
+
const limit = prefix === "x" || prefix === "X" ? 256 : prefix === "b" || prefix === "B" ? 1024 : 342;
|
|
54
|
+
if (text.length - first > limit) return 1 / 0;
|
|
55
|
+
const token = __eliscript_numeric_apply(__eliscript_numeric_slice, text, [0, 2]) + __eliscript_numeric_apply(__eliscript_numeric_slice, text, [first]);
|
|
56
|
+
return __eliscript_number_intrinsic(__eliscript_bigint_intrinsic(token));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return __eliscript_number_intrinsic(primitive);
|
|
60
|
+
};
|
|
61
|
+
const __eliscript_numeric = (value) => {
|
|
62
|
+
if (typeof value === "number" || typeof value === "bigint") return value;
|
|
63
|
+
const primitive = __eliscript_numeric_primitive(value);
|
|
64
|
+
if (typeof primitive === "number" || typeof primitive === "bigint") return primitive;
|
|
65
|
+
return typeof primitive === "string" ? __eliscript_to_number(primitive) : +primitive;
|
|
66
|
+
};
|
|
67
|
+
const __eliscript_implicit_number = (value) => {
|
|
68
|
+
if (typeof value === "number") return value;
|
|
69
|
+
const primitive = __eliscript_numeric_primitive(value);
|
|
70
|
+
if (typeof primitive === "bigint") throw new __eliscript_numeric_error("Cannot convert a BigInt value to a number");
|
|
71
|
+
return typeof primitive === "string" ? __eliscript_to_number(primitive) : +primitive;
|
|
72
|
+
};
|
|
73
|
+
const __eliscript_numeric_decrement = (value) => __eliscript_implicit_number(value) - 1;
|
|
74
|
+
const __eliscript_numeric_sub = (a, b) => { if (typeof a === "number" && typeof b === "number") return a - b; return __eliscript_numeric(a) - __eliscript_numeric(b); };
|
|
75
|
+
const __eliscript_numeric_mul = (a, b) => { if (typeof a === "number" && typeof b === "number") return a * b; return __eliscript_numeric(a) * __eliscript_numeric(b); };
|
|
76
|
+
const __eliscript_numeric_div = (a, b) => { if (typeof a === "number" && typeof b === "number") return a / b; return __eliscript_numeric(a) / __eliscript_numeric(b); };
|
|
77
|
+
const __eliscript_numeric_rem = (a, b) => { if (typeof a === "number" && typeof b === "number") return a % b; return __eliscript_numeric(a) % __eliscript_numeric(b); };
|
|
78
|
+
const __eliscript_numeric_and = (a, b) => { if (typeof a === "number" && typeof b === "number") return a & b; return __eliscript_numeric(a) & __eliscript_numeric(b); };
|
|
79
|
+
const __eliscript_numeric_or = (a, b) => { if (typeof a === "number" && typeof b === "number") return a | b; return __eliscript_numeric(a) | __eliscript_numeric(b); };
|
|
80
|
+
const __eliscript_numeric_xor = (a, b) => { if (typeof a === "number" && typeof b === "number") return a ^ b; return __eliscript_numeric(a) ^ __eliscript_numeric(b); };
|
|
81
|
+
const __eliscript_numeric_shl = (a, b) => { if (typeof a === "number" && typeof b === "number") return a << b; return __eliscript_numeric(a) << __eliscript_numeric(b); };
|
|
82
|
+
const __eliscript_numeric_shr = (a, b) => { if (typeof a === "number" && typeof b === "number") return a >> b; return __eliscript_numeric(a) >> __eliscript_numeric(b); };
|
|
83
|
+
const __eliscript_numeric_ushr = (a, b) => { if (typeof a === "number" && typeof b === "number") return a >>> b; return __eliscript_numeric(a) >>> __eliscript_numeric(b); };
|
|
84
|
+
const __eliscript_numeric_neg = (a) => typeof a === "number" ? -a : -__eliscript_numeric(a);
|
|
85
|
+
const __eliscript_numeric_int32 = (a) => typeof a === "number" ? a | 0 : __eliscript_numeric(a) | 0;
|
|
86
|
+
const __eliscript_numeric_uint32 = (a) => typeof a === "number" ? a >>> 0 : __eliscript_numeric(a) >>> 0;
|
|
87
|
+
const __eliscript_numeric_not = (a) => typeof a === "number" ? ~a : ~__eliscript_numeric(a);
|
|
88
|
+
const __eliscript_numeric_relation = (operator, left, right) => {
|
|
89
|
+
if (typeof left === "number" && typeof right === "number") {
|
|
90
|
+
if (operator === "<") return left < right;
|
|
91
|
+
if (operator === "<=") return left <= right;
|
|
92
|
+
if (operator === ">") return left > right;
|
|
93
|
+
return left >= right;
|
|
94
|
+
}
|
|
95
|
+
let a = __eliscript_numeric_primitive(left);
|
|
96
|
+
let b = __eliscript_numeric_primitive(right);
|
|
97
|
+
const x = typeof a, y = typeof b;
|
|
98
|
+
if (!((x === "string" && y === "string") || (x === "bigint" && y === "string") || (x === "string" && y === "bigint"))) {
|
|
99
|
+
a = __eliscript_numeric(a);
|
|
100
|
+
b = __eliscript_numeric(b);
|
|
101
|
+
}
|
|
102
|
+
if (operator === "<") return a < b;
|
|
103
|
+
if (operator === "<=") return a <= b;
|
|
104
|
+
if (operator === ">") return a > b;
|
|
105
|
+
return a >= b;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
import {createHash} from "node:crypto";
|
|
109
|
+
import {Buffer} from "node:buffer";
|
|
110
|
+
import {root} from "./build.mjs";
|
|
111
|
+
import {createOriginalCorpusSourceReader} from "./compiler-corpus-legacy.mjs";
|
|
112
|
+
const id = "original-program:compiler-source-debugging";
|
|
113
|
+
__eliscript_tdz_ready_0 = true;
|
|
114
|
+
const suite = "tests/source-debugging.test.mjs";
|
|
115
|
+
__eliscript_tdz_ready_1 = true;
|
|
116
|
+
const suite_sha = "8eb14ca45564e54d1874bd04a791f1d5ca89cfff72a4c0f07c82b2d00dee8ca7";
|
|
117
|
+
__eliscript_tdz_ready_2 = true;
|
|
118
|
+
const files = [(__eliscript_tdz_read_1()), "tools/backends/eliscript/compiler-corpus-debugging.eli", "tools/backends/compiler-corpus-debugging.mjs", "tests/eliscript/source-debugging.eli", "tests/source-debugging-selfhosted.test.mjs", "tools/testing/source-debugging.eli", "tools/testing/source-debugging.mjs", "tools/testing/source-debugging-corpus-host.eli", "tools/testing/source-debugging-corpus-host.mjs", "tools/testing/fixture-environment.eli", "tools/testing/fixture-environment.mjs", "package.json"];
|
|
119
|
+
__eliscript_tdz_ready_3 = true;
|
|
120
|
+
function hash(value) {
|
|
121
|
+
return ((createHash("sha256"))["update"](value))["digest"]("hex");
|
|
122
|
+
}
|
|
123
|
+
function fail(message) {
|
|
124
|
+
return ((__eliscript_value_1) => { throw __eliscript_value_1; })(new (globalThis.TypeError)(message));
|
|
125
|
+
}
|
|
126
|
+
async function transportOriginalSourceDebuggingCorpus(document, options) {
|
|
127
|
+
return (await (async (records) => {
|
|
128
|
+
(__eliscript_numeric_relation(">", ((records) ?? []).length, 0) ? (await (async () => {
|
|
129
|
+
if ((!(((records) ?? []).length === 1))) {
|
|
130
|
+
fail("original source debugging record must be unique");
|
|
131
|
+
}
|
|
132
|
+
return (await (async (record) => {
|
|
133
|
+
return (await (async (original) => {
|
|
134
|
+
return (await (async (execution) => {
|
|
135
|
+
return (await (async (reader) => {
|
|
136
|
+
return (await (async (source) => {
|
|
137
|
+
return (await (async (proofs) => {
|
|
138
|
+
return (await (async (index) => {
|
|
139
|
+
return (await (async () => {
|
|
140
|
+
if ((!((hash(source) === (__eliscript_tdz_read_2())) && ((original)["sourceSha256"] === (__eliscript_tdz_read_2())) && ((original)["suite"] === (__eliscript_tdz_read_1())) && ((execution)["kind"] === "original-program") && ((execution)["timeoutMs"] === 30000) && ((execution)["requiresBun"] === true) && ((execution)["runtimeLaunchers"] === true) && ((execution)["compilerSourceMaps"] === true) && (JSON.stringify(((execution)["setupReplacement"])["originalCaseTimeouts"]) === "[5000,5000,5000,5000,5000]")))) {
|
|
141
|
+
fail("original source debugging source identity or execution contract changed");
|
|
142
|
+
}
|
|
143
|
+
if ((!(((((original)["regions"]) ?? []).length === 1) && ((((original)["regions"])[0])["start"] === 0) && ((((original)["regions"])[0])["end"] === ((source) ?? []).length) && ((((original)["regions"])[0])["byteStart"] === 0) && ((((original)["regions"])[0])["byteEnd"] === (Buffer)["byteLength"](source)) && ((((original)["regions"])[0])["sha256"] === (__eliscript_tdz_read_2()))))) {
|
|
144
|
+
fail("original source debugging complete assertion span changed");
|
|
145
|
+
}
|
|
146
|
+
(await (async () => {
|
|
147
|
+
while (__eliscript_numeric_relation("<", index, (((__eliscript_tdz_read_3())) ?? []).length)) {
|
|
148
|
+
(await (async (filename) => {
|
|
149
|
+
return ((asset) => {
|
|
150
|
+
return ((previous) => {
|
|
151
|
+
return (() => {
|
|
152
|
+
if (__eliscript_truthy(previous)) {
|
|
153
|
+
if ((!(((previous)["sha256"] === (asset)["sha256"]) && ((previous)["bytes"] === (asset)["bytes"]) && ((previous)["encoding"] === (asset)["encoding"]) && ((previous)["content"] === (asset)["content"])))) {
|
|
154
|
+
fail((String("original source debugging asset identity changed: ") + String(filename)));
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
if ((!__eliscript_truthy(previous))) {
|
|
158
|
+
((document)["evidence"])["push"](asset);
|
|
159
|
+
}
|
|
160
|
+
return (proofs)["push"](({"file": filename, "sourceSha256": (asset)["sha256"]}));
|
|
161
|
+
})();
|
|
162
|
+
})(((document)["evidence"])["find"](((item) => {
|
|
163
|
+
return ((item)["file"] === filename);
|
|
164
|
+
})));
|
|
165
|
+
})(await ((reader)["file"](filename)));
|
|
166
|
+
})(((__eliscript_tdz_read_3()))[index]));
|
|
167
|
+
((index = (index + 1)));
|
|
168
|
+
}
|
|
169
|
+
return null;
|
|
170
|
+
})());
|
|
171
|
+
return (await (async (host_file) => {
|
|
172
|
+
return ((host) => {
|
|
173
|
+
return ((assets) => {
|
|
174
|
+
return ((updated) => {
|
|
175
|
+
return (() => {
|
|
176
|
+
(proofs)["forEach"](((proof) => {
|
|
177
|
+
{
|
|
178
|
+
const __eliscript_value_2 = (assets)["find"](((item) => {
|
|
179
|
+
return ((item)["file"] === (proof)["file"]);
|
|
180
|
+
}));
|
|
181
|
+
{
|
|
182
|
+
let previous = __eliscript_value_2;
|
|
183
|
+
if (__eliscript_truthy(((__eliscript_value_3) => (__eliscript_truthy(__eliscript_value_3) ? ((__eliscript_value_4, __eliscript_value_5) => (__eliscript_value_4 !== __eliscript_value_5))((previous)["sourceSha256"], (proof)["sourceSha256"]) : __eliscript_value_3))(previous))) {
|
|
184
|
+
fail("original source debugging maintained proof changed");
|
|
185
|
+
}
|
|
186
|
+
if ((!__eliscript_truthy(previous))) {
|
|
187
|
+
return (assets)["push"](proof);
|
|
188
|
+
} else {
|
|
189
|
+
return null;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}));
|
|
194
|
+
Reflect.deleteProperty(updated, "hostSource");
|
|
195
|
+
((record)["execution"] = updated);
|
|
196
|
+
return ((record)["original"] = Object.assign(({}), original, ({"sourceAssets": assets, "assertionSource": ({"file": (__eliscript_tdz_read_1()), "sourceSha256": (__eliscript_tdz_read_2()), "regions": (original)["regions"]}), "maintainedAssertions": ({"sourceFile": "tools/testing/source-debugging.eli", "sourceSha256": ((proofs)["find"](((proof) => {
|
|
197
|
+
return ((proof)["file"] === "tools/testing/source-debugging.eli");
|
|
198
|
+
})))["sourceSha256"], "generatedFile": "tools/testing/source-debugging.mjs", "generatedSha256": ((proofs)["find"](((proof) => {
|
|
199
|
+
return ((proof)["file"] === "tools/testing/source-debugging.mjs");
|
|
200
|
+
})))["sourceSha256"]}), "maintainedTransport": ({"kind": "maintained-eli-complete-source-debugging", "version": 1, "logicalSuite": (__eliscript_tdz_read_1()), "originalSourceSha256": (__eliscript_tdz_read_2()), "sourceFile": "tools/testing/source-debugging-corpus-host.eli", "generatedFile": host_file, "generatedSha256": hash(host), "originalTimeoutMs": 30000, "originalCaseTimeouts": [5000, 5000, 5000, 5000, 5000], "hosts": ["bun", "node"], "fallback": false})})));
|
|
201
|
+
})();
|
|
202
|
+
})(Object.assign(({}), execution, ({"host": host_file})));
|
|
203
|
+
})(((original)["sourceAssets"])["slice"]());
|
|
204
|
+
})(await ((reader)["text"](host_file)));
|
|
205
|
+
})("tools/testing/source-debugging-corpus-host.mjs"));
|
|
206
|
+
})());
|
|
207
|
+
})(0));
|
|
208
|
+
})([]));
|
|
209
|
+
})(await ((reader)["text"]((__eliscript_tdz_read_1())))));
|
|
210
|
+
})(createOriginalCorpusSourceReader(({"sourceRoot": ((options)["sourceRoot"] ?? root)}))));
|
|
211
|
+
})((record)["execution"]));
|
|
212
|
+
})((record)["original"]));
|
|
213
|
+
})((records)[0]));
|
|
214
|
+
})()) : null);
|
|
215
|
+
return document;
|
|
216
|
+
})(((document)["records"])["filter"](((record) => {
|
|
217
|
+
return ((record)["id"] === (__eliscript_tdz_read_0()));
|
|
218
|
+
}))));
|
|
219
|
+
}
|
|
220
|
+
export {transportOriginalSourceDebuggingCorpus};
|
|
221
|
+
//# sourceMappingURL=compiler-corpus-debugging.mjs.map
|
|
@@ -0,0 +1,324 @@
|
|
|
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("id"); return id; }
|
|
5
|
+
function __eliscript_tdz_write_0(__eliscript_tdz_value_0) { if (__eliscript_tdz_ready_0 !== true) __eliscript_tdz_error("id"); 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("suite"); return suite; }
|
|
8
|
+
function __eliscript_tdz_write_1(__eliscript_tdz_value_1) { if (__eliscript_tdz_ready_1 !== true) __eliscript_tdz_error("suite"); 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("suite_sha"); return suite_sha; }
|
|
11
|
+
function __eliscript_tdz_write_2(__eliscript_tdz_value_2) { if (__eliscript_tdz_ready_2 !== true) __eliscript_tdz_error("suite_sha"); 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("actual_suite"); return actual_suite; }
|
|
14
|
+
function __eliscript_tdz_write_3(__eliscript_tdz_value_3) { if (__eliscript_tdz_ready_3 !== true) __eliscript_tdz_error("actual_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("title"); return title; }
|
|
17
|
+
function __eliscript_tdz_write_4(__eliscript_tdz_value_4) { if (__eliscript_tdz_ready_4 !== true) __eliscript_tdz_error("title"); 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("pairs"); return pairs; }
|
|
20
|
+
function __eliscript_tdz_write_5(__eliscript_tdz_value_5) { if (__eliscript_tdz_ready_5 !== true) __eliscript_tdz_error("pairs"); return __eliscript_const_error(); }
|
|
21
|
+
import "eliscript/runtime/unicode-case.mjs";
|
|
22
|
+
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=";
|
|
23
|
+
const __eliscript_truthy = (value) => value !== false && value != null;
|
|
24
|
+
const __eliscript_number_intrinsic = globalThis.Number;
|
|
25
|
+
const __eliscript_bigint_intrinsic = globalThis.BigInt;
|
|
26
|
+
const __eliscript_numeric_apply = globalThis.Reflect.apply;
|
|
27
|
+
const __eliscript_numeric_symbol = globalThis.Symbol.toPrimitive;
|
|
28
|
+
const __eliscript_numeric_error = globalThis.TypeError;
|
|
29
|
+
const __eliscript_numeric_trim = globalThis.String.prototype.trim;
|
|
30
|
+
const __eliscript_numeric_slice = globalThis.String.prototype.slice;
|
|
31
|
+
const __eliscript_numeric_exec = globalThis.RegExp.prototype.exec;
|
|
32
|
+
const __eliscript_numeric_radix = /^(?:0[xX][0-9a-fA-F]+|0[oO][0-7]+|0[bB][01]+)$/;
|
|
33
|
+
const __eliscript_numeric_object = (value) => value !== null && (typeof value === "object" || typeof value === "function" || (typeof value === "undefined" && value !== void 0));
|
|
34
|
+
const __eliscript_numeric_primitive = (value) => {
|
|
35
|
+
if (!__eliscript_numeric_object(value)) return value;
|
|
36
|
+
const exotic = value[__eliscript_numeric_symbol];
|
|
37
|
+
if (exotic !== void 0 && exotic !== null) {
|
|
38
|
+
const result = __eliscript_numeric_apply(exotic, value, ["number"]);
|
|
39
|
+
if (!__eliscript_numeric_object(result)) return result;
|
|
40
|
+
throw new __eliscript_numeric_error("Cannot convert object to primitive value");
|
|
41
|
+
}
|
|
42
|
+
for (let index = 0; index < 2; index++) {
|
|
43
|
+
const method = value[index === 0 ? "valueOf" : "toString"];
|
|
44
|
+
if (typeof method === "function" || (typeof method === "undefined" && method !== void 0)) {
|
|
45
|
+
const result = __eliscript_numeric_apply(method, value, []);
|
|
46
|
+
if (!__eliscript_numeric_object(result)) return result;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
throw new __eliscript_numeric_error("Cannot convert object to primitive value");
|
|
50
|
+
};
|
|
51
|
+
const __eliscript_to_number = (value) => {
|
|
52
|
+
const primitive = __eliscript_numeric_primitive(value);
|
|
53
|
+
if (typeof primitive === "string") {
|
|
54
|
+
const text = __eliscript_numeric_apply(__eliscript_numeric_trim, primitive, []);
|
|
55
|
+
if (__eliscript_numeric_apply(__eliscript_numeric_exec, __eliscript_numeric_radix, [text]) !== null) {
|
|
56
|
+
let first = 2;
|
|
57
|
+
while (first < text.length && text[first] === "0") first++;
|
|
58
|
+
if (first === text.length) return 0;
|
|
59
|
+
const prefix = text[1];
|
|
60
|
+
const limit = prefix === "x" || prefix === "X" ? 256 : prefix === "b" || prefix === "B" ? 1024 : 342;
|
|
61
|
+
if (text.length - first > limit) return 1 / 0;
|
|
62
|
+
const token = __eliscript_numeric_apply(__eliscript_numeric_slice, text, [0, 2]) + __eliscript_numeric_apply(__eliscript_numeric_slice, text, [first]);
|
|
63
|
+
return __eliscript_number_intrinsic(__eliscript_bigint_intrinsic(token));
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return __eliscript_number_intrinsic(primitive);
|
|
67
|
+
};
|
|
68
|
+
const __eliscript_numeric = (value) => {
|
|
69
|
+
if (typeof value === "number" || typeof value === "bigint") return value;
|
|
70
|
+
const primitive = __eliscript_numeric_primitive(value);
|
|
71
|
+
if (typeof primitive === "number" || typeof primitive === "bigint") return primitive;
|
|
72
|
+
return typeof primitive === "string" ? __eliscript_to_number(primitive) : +primitive;
|
|
73
|
+
};
|
|
74
|
+
const __eliscript_implicit_number = (value) => {
|
|
75
|
+
if (typeof value === "number") return value;
|
|
76
|
+
const primitive = __eliscript_numeric_primitive(value);
|
|
77
|
+
if (typeof primitive === "bigint") throw new __eliscript_numeric_error("Cannot convert a BigInt value to a number");
|
|
78
|
+
return typeof primitive === "string" ? __eliscript_to_number(primitive) : +primitive;
|
|
79
|
+
};
|
|
80
|
+
const __eliscript_numeric_decrement = (value) => __eliscript_implicit_number(value) - 1;
|
|
81
|
+
const __eliscript_numeric_sub = (a, b) => { if (typeof a === "number" && typeof b === "number") return a - b; return __eliscript_numeric(a) - __eliscript_numeric(b); };
|
|
82
|
+
const __eliscript_numeric_mul = (a, b) => { if (typeof a === "number" && typeof b === "number") return a * b; return __eliscript_numeric(a) * __eliscript_numeric(b); };
|
|
83
|
+
const __eliscript_numeric_div = (a, b) => { if (typeof a === "number" && typeof b === "number") return a / b; return __eliscript_numeric(a) / __eliscript_numeric(b); };
|
|
84
|
+
const __eliscript_numeric_rem = (a, b) => { if (typeof a === "number" && typeof b === "number") return a % b; return __eliscript_numeric(a) % __eliscript_numeric(b); };
|
|
85
|
+
const __eliscript_numeric_and = (a, b) => { if (typeof a === "number" && typeof b === "number") return a & b; return __eliscript_numeric(a) & __eliscript_numeric(b); };
|
|
86
|
+
const __eliscript_numeric_or = (a, b) => { if (typeof a === "number" && typeof b === "number") return a | b; return __eliscript_numeric(a) | __eliscript_numeric(b); };
|
|
87
|
+
const __eliscript_numeric_xor = (a, b) => { if (typeof a === "number" && typeof b === "number") return a ^ b; return __eliscript_numeric(a) ^ __eliscript_numeric(b); };
|
|
88
|
+
const __eliscript_numeric_shl = (a, b) => { if (typeof a === "number" && typeof b === "number") return a << b; return __eliscript_numeric(a) << __eliscript_numeric(b); };
|
|
89
|
+
const __eliscript_numeric_shr = (a, b) => { if (typeof a === "number" && typeof b === "number") return a >> b; return __eliscript_numeric(a) >> __eliscript_numeric(b); };
|
|
90
|
+
const __eliscript_numeric_ushr = (a, b) => { if (typeof a === "number" && typeof b === "number") return a >>> b; return __eliscript_numeric(a) >>> __eliscript_numeric(b); };
|
|
91
|
+
const __eliscript_numeric_neg = (a) => typeof a === "number" ? -a : -__eliscript_numeric(a);
|
|
92
|
+
const __eliscript_numeric_int32 = (a) => typeof a === "number" ? a | 0 : __eliscript_numeric(a) | 0;
|
|
93
|
+
const __eliscript_numeric_uint32 = (a) => typeof a === "number" ? a >>> 0 : __eliscript_numeric(a) >>> 0;
|
|
94
|
+
const __eliscript_numeric_not = (a) => typeof a === "number" ? ~a : ~__eliscript_numeric(a);
|
|
95
|
+
const __eliscript_numeric_relation = (operator, left, right) => {
|
|
96
|
+
if (typeof left === "number" && typeof right === "number") {
|
|
97
|
+
if (operator === "<") return left < right;
|
|
98
|
+
if (operator === "<=") return left <= right;
|
|
99
|
+
if (operator === ">") return left > right;
|
|
100
|
+
return left >= right;
|
|
101
|
+
}
|
|
102
|
+
let a = __eliscript_numeric_primitive(left);
|
|
103
|
+
let b = __eliscript_numeric_primitive(right);
|
|
104
|
+
const x = typeof a, y = typeof b;
|
|
105
|
+
if (!((x === "string" && y === "string") || (x === "bigint" && y === "string") || (x === "string" && y === "bigint"))) {
|
|
106
|
+
a = __eliscript_numeric(a);
|
|
107
|
+
b = __eliscript_numeric(b);
|
|
108
|
+
}
|
|
109
|
+
if (operator === "<") return a < b;
|
|
110
|
+
if (operator === "<=") return a <= b;
|
|
111
|
+
if (operator === ">") return a > b;
|
|
112
|
+
return a >= b;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
import {createHash} from "node:crypto";
|
|
116
|
+
import {Buffer} from "node:buffer";
|
|
117
|
+
import {posix} from "node:path";
|
|
118
|
+
import {root} from "./build.mjs";
|
|
119
|
+
import {createOriginalCorpusSourceReader} from "./compiler-corpus-legacy.mjs";
|
|
120
|
+
const id = "original-program:compiler-module-bootstrap-emitter";
|
|
121
|
+
__eliscript_tdz_ready_0 = true;
|
|
122
|
+
const suite = "tests/bootstrap-emitter.test.mjs";
|
|
123
|
+
__eliscript_tdz_ready_1 = true;
|
|
124
|
+
const suite_sha = "1fb3dc7ac20d64c2b6cd392fa6980451d01269f4dbd3f2c91483bb3e6fda6ed0";
|
|
125
|
+
__eliscript_tdz_ready_2 = true;
|
|
126
|
+
const actual_suite = "tests/bootstrap-emitter-selfhosted.test.mjs";
|
|
127
|
+
__eliscript_tdz_ready_3 = true;
|
|
128
|
+
const title = "bootstrapped emitter matches seed ESM and Source Map output";
|
|
129
|
+
__eliscript_tdz_ready_4 = true;
|
|
130
|
+
const pairs = [["tools/testing/bootstrap-emitter.eli", "tools/testing/bootstrap-emitter.mjs"], ["tools/testing/bootstrap-emitter-corpus-host.eli", "tools/testing/bootstrap-emitter-corpus-host.mjs"], ["tests/eliscript/bootstrap-emitter.eli", "tests/bootstrap-emitter-selfhosted.test.mjs"], ["tests/eliscript/bootstrap-emitter-node.eli", "tests/helpers/bootstrap-emitter-node.mjs"]];
|
|
131
|
+
__eliscript_tdz_ready_5 = true;
|
|
132
|
+
function hash(value) {
|
|
133
|
+
return ((createHash("sha256"))["update"](value))["digest"]("hex");
|
|
134
|
+
}
|
|
135
|
+
function fail(message) {
|
|
136
|
+
return ((__eliscript_value_1) => { throw __eliscript_value_1; })(new (globalThis.TypeError)(message));
|
|
137
|
+
}
|
|
138
|
+
function archive_locator(locator) {
|
|
139
|
+
if ((((locator)["file"] === (__eliscript_tdz_read_3())) && ((locator)["contains"] === (__eliscript_tdz_read_4())))) {
|
|
140
|
+
return Object.assign(({}), locator, ({"file": (__eliscript_tdz_read_1())}));
|
|
141
|
+
} else {
|
|
142
|
+
return locator;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
function archive_dimension(dimension) {
|
|
146
|
+
return Object.assign(({}), dimension, ({"evidence": ((dimension)["evidence"])["map"](archive_locator)}));
|
|
147
|
+
}
|
|
148
|
+
function archive_manifest(manifest) {
|
|
149
|
+
if (((__eliscript_value_2, __eliscript_value_3) => (__eliscript_value_2 !== __eliscript_value_3))((manifest)["id"], "compiler-parity")) {
|
|
150
|
+
return manifest;
|
|
151
|
+
} else {
|
|
152
|
+
{
|
|
153
|
+
let document = (manifest)["document"];
|
|
154
|
+
let updated = Object.assign(({}), document, ({"dimensions": ((document)["dimensions"])["map"](archive_dimension)}));
|
|
155
|
+
return Object.assign(({}), manifest, ({"document": updated}));
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
function prepareOriginalBootstrapEmitterOptions(options) {
|
|
160
|
+
{
|
|
161
|
+
let originals = (options)["originals"];
|
|
162
|
+
let manifests = ((__eliscript_value_4) => (__eliscript_truthy(__eliscript_value_4) ? (originals)["manifests"] : __eliscript_value_4))(originals);
|
|
163
|
+
if ((!__eliscript_truthy(Array.isArray(manifests)))) {
|
|
164
|
+
return options;
|
|
165
|
+
} else {
|
|
166
|
+
{
|
|
167
|
+
const __eliscript_value_5 = Object.assign(({}), originals, ({"manifests": (manifests)["map"](archive_manifest)}));
|
|
168
|
+
{
|
|
169
|
+
let updated = __eliscript_value_5;
|
|
170
|
+
return Object.assign(({}), options, ({"originals": updated}));
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
function region(source, begin, finish) {
|
|
177
|
+
{
|
|
178
|
+
let start = (source)["indexOf"](begin);
|
|
179
|
+
let end = (__eliscript_numeric_relation("<", start, 0) ? -1 : (source)["indexOf"](finish, (start + ((begin) ?? []).length)));
|
|
180
|
+
if ((__eliscript_numeric_relation("<", start, 0) || __eliscript_numeric_relation("<", end, 0))) {
|
|
181
|
+
fail("original emitter assertion boundary changed");
|
|
182
|
+
}
|
|
183
|
+
return ({"start": start, "end": end, "byteStart": (Buffer)["byteLength"]((source)["slice"](0, start)), "byteEnd": (Buffer)["byteLength"]((source)["slice"](0, end)), "sha256": hash((source)["slice"](start, end))});
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
async function transportOriginalBootstrapEmitterCorpus(document, options) {
|
|
187
|
+
return (await (async (records) => {
|
|
188
|
+
(__eliscript_numeric_relation(">", ((records) ?? []).length, 0) ? (await (async () => {
|
|
189
|
+
if ((!(((records) ?? []).length === 1))) {
|
|
190
|
+
fail("original emitter record must be unique");
|
|
191
|
+
}
|
|
192
|
+
return (await (async (record) => {
|
|
193
|
+
return (await (async (original) => {
|
|
194
|
+
return (await (async (execution) => {
|
|
195
|
+
return (await (async (reader) => {
|
|
196
|
+
return (await (async (source) => {
|
|
197
|
+
return (await (async (proofs) => {
|
|
198
|
+
return (await (async (regions) => {
|
|
199
|
+
return (await (async (files) => {
|
|
200
|
+
return (await (async (index) => {
|
|
201
|
+
return (await (async () => {
|
|
202
|
+
if ((!__eliscript_truthy(((__eliscript_value_6) => (__eliscript_truthy(__eliscript_value_6) ? ((__eliscript_value_7) => (__eliscript_truthy(__eliscript_value_7) ? ((__eliscript_value_8) => (__eliscript_truthy(__eliscript_value_8) ? ((__eliscript_value_9) => (__eliscript_truthy(__eliscript_value_9) ? ((__eliscript_value_10) => (__eliscript_truthy(__eliscript_value_10) ? ((__eliscript_value_11) => (__eliscript_truthy(__eliscript_value_11) ? ((__eliscript_value_12) => (__eliscript_truthy(__eliscript_value_12) ? ((__eliscript_value_13) => (__eliscript_truthy(__eliscript_value_13) ? ((__eliscript_value_14) => (__eliscript_truthy(__eliscript_value_14) ? (((((record)["modules"]) ?? []).length === 13) && ((execution)["runtimeProfile"] === "compiler") && ((execution)["requiresBun"] === true) && ((execution)["childProcesses"] === "inherit-selected-artifact") && ((execution)["compilerSourceMaps"] === true) && (JSON.stringify((original)["regions"]) === JSON.stringify(regions))) : __eliscript_value_14))(Array.isArray((record)["modules"])) : __eliscript_value_13))(((record)["entry"] === "bootstrap/compiler/compiler.mjs")) : __eliscript_value_12))(((original)["originalAssertion"] === "bootstrapped emitter matches seed ESM and Source Map output")) : __eliscript_value_11))(((original)["host"] === (__eliscript_tdz_read_1()))) : __eliscript_value_10))(((original)["fixture"] === (__eliscript_tdz_read_1()))) : __eliscript_value_9))(((execution)["kind"] === "original-program")) : __eliscript_value_8))(((original)["suite"] === (__eliscript_tdz_read_1()))) : __eliscript_value_7))(((original)["sourceSha256"] === (__eliscript_tdz_read_2()))) : __eliscript_value_6))((hash(source) === (__eliscript_tdz_read_2())))))) {
|
|
203
|
+
fail("original emitter identity, complete assertion spans or execution contract changed");
|
|
204
|
+
}
|
|
205
|
+
(await (async () => {
|
|
206
|
+
while (__eliscript_numeric_relation("<", index, (((__eliscript_tdz_read_5())) ?? []).length)) {
|
|
207
|
+
(await (async (pair) => {
|
|
208
|
+
return (await (async (source_file) => {
|
|
209
|
+
return (await (async (output) => {
|
|
210
|
+
return (await (async (text) => {
|
|
211
|
+
return ((map) => {
|
|
212
|
+
return (() => {
|
|
213
|
+
if ((!(((map)["version"] === 3) && ((((map)["sourcesContent"]) ?? []).length === 1) && (((map)["sourcesContent"])[0] === text) && ((posix)["normalize"](__eliscript_at(posix, "join")((posix)["dirname"](output), ((map)["sources"])[0])) === source_file)))) {
|
|
214
|
+
fail("maintained emitter source map does not bind its actual source");
|
|
215
|
+
}
|
|
216
|
+
return (files)["push"](source_file, output, (String(output) + String(".map")));
|
|
217
|
+
})();
|
|
218
|
+
})(JSON.parse(await ((reader)["text"]((String(output) + String(".map"))))));
|
|
219
|
+
})(await ((reader)["text"](source_file))));
|
|
220
|
+
})((pair)[1]));
|
|
221
|
+
})((pair)[0]));
|
|
222
|
+
})(((__eliscript_tdz_read_5()))[index]));
|
|
223
|
+
((index = (index + 1)));
|
|
224
|
+
}
|
|
225
|
+
return null;
|
|
226
|
+
})());
|
|
227
|
+
((index = 0));
|
|
228
|
+
(await (async () => {
|
|
229
|
+
while (__eliscript_numeric_relation("<", index, ((files) ?? []).length)) {
|
|
230
|
+
(await (async (filename) => {
|
|
231
|
+
return ((asset) => {
|
|
232
|
+
return ((prior) => {
|
|
233
|
+
return (() => {
|
|
234
|
+
if (__eliscript_truthy(((__eliscript_value_15) => (__eliscript_truthy(__eliscript_value_15) ? ((__eliscript_value_16, __eliscript_value_17) => (__eliscript_value_16 !== __eliscript_value_17))(JSON.stringify(prior), JSON.stringify(asset)) : __eliscript_value_15))(prior))) {
|
|
235
|
+
fail("original emitter asset identity conflicts with its corpus");
|
|
236
|
+
}
|
|
237
|
+
if ((!__eliscript_truthy(prior))) {
|
|
238
|
+
((document)["evidence"])["push"](asset);
|
|
239
|
+
}
|
|
240
|
+
return (proofs)["push"](({"file": filename, "sourceSha256": (asset)["sha256"]}));
|
|
241
|
+
})();
|
|
242
|
+
})(((document)["evidence"])["find"](((item) => {
|
|
243
|
+
return ((item)["file"] === filename);
|
|
244
|
+
})));
|
|
245
|
+
})(await ((reader)["file"](filename)));
|
|
246
|
+
})((files)[index]));
|
|
247
|
+
((index = (index + 1)));
|
|
248
|
+
}
|
|
249
|
+
return null;
|
|
250
|
+
})());
|
|
251
|
+
return (await (async (host) => {
|
|
252
|
+
return (await (async (updated) => {
|
|
253
|
+
return (await (async (assets) => {
|
|
254
|
+
return (await (async () => {
|
|
255
|
+
Reflect.deleteProperty(updated, "hostSource");
|
|
256
|
+
(proofs)["forEach"](((proof) => {
|
|
257
|
+
{
|
|
258
|
+
const __eliscript_value_18 = (assets)["find"](((item) => {
|
|
259
|
+
return ((item)["file"] === (proof)["file"]);
|
|
260
|
+
}));
|
|
261
|
+
{
|
|
262
|
+
let previous = __eliscript_value_18;
|
|
263
|
+
if (__eliscript_truthy(((__eliscript_value_19) => (__eliscript_truthy(__eliscript_value_19) ? ((__eliscript_value_20, __eliscript_value_21) => (__eliscript_value_20 !== __eliscript_value_21))((previous)["sourceSha256"], (proof)["sourceSha256"]) : __eliscript_value_19))(previous))) {
|
|
264
|
+
fail("original emitter maintained source identity changed");
|
|
265
|
+
}
|
|
266
|
+
if ((!__eliscript_truthy(previous))) {
|
|
267
|
+
return (assets)["push"](proof);
|
|
268
|
+
} else {
|
|
269
|
+
return null;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}));
|
|
274
|
+
((record)["execution"] = updated);
|
|
275
|
+
return ((record)["original"] = Object.assign(({}), original, ({"sourceAssets": assets, "assertionSource": ({"file": (__eliscript_tdz_read_1()), "sourceSha256": (__eliscript_tdz_read_2()), "regions": regions}), "maintainedAssertions": ({"sourceFile": "tools/testing/bootstrap-emitter.eli", "sourceSha256": hash(await ((reader)["text"]("tools/testing/bootstrap-emitter.eli"))), "generatedFile": "tools/testing/bootstrap-emitter.mjs", "generatedSha256": hash(await ((reader)["text"]("tools/testing/bootstrap-emitter.mjs")))}), "maintainedTransport": ({"kind": "maintained-eli-complete-bootstrap-emitter", "version": 1, "sourceFile": "tools/testing/bootstrap-emitter-corpus-host.eli", "generatedFile": host, "generatedSha256": hash(await ((reader)["text"](host))), "logicalSuite": (__eliscript_tdz_read_1()), "originalSourceSha256": (__eliscript_tdz_read_2()), "executedSuite": (__eliscript_tdz_read_3()), "fallback": false})})));
|
|
276
|
+
})());
|
|
277
|
+
})((((original)["sourceAssets"] ?? []))["slice"]()));
|
|
278
|
+
})(Object.assign(({}), execution, ({"host": host}))));
|
|
279
|
+
})("tools/testing/bootstrap-emitter-corpus-host.mjs"));
|
|
280
|
+
})());
|
|
281
|
+
})(0));
|
|
282
|
+
})([(__eliscript_tdz_read_1()), "tests/fixtures/bootstrap-ir.json", "tests/bootstrap-emitter-oracle.el", "tools/backends/eliscript/compiler-corpus-emitter.eli"]));
|
|
283
|
+
})([region(source, "async function run(", "\ntest("), region(source, " const module = async (name) => import(", "\n } finally {")]));
|
|
284
|
+
})([]));
|
|
285
|
+
})(await ((reader)["text"]((__eliscript_tdz_read_1())))));
|
|
286
|
+
})(createOriginalCorpusSourceReader(({"sourceRoot": ((options)["sourceRoot"] ?? root)}))));
|
|
287
|
+
})((record)["execution"]));
|
|
288
|
+
})((record)["original"]));
|
|
289
|
+
})((records)[0]));
|
|
290
|
+
})()) : null);
|
|
291
|
+
{
|
|
292
|
+
let originals = (options)["originals"];
|
|
293
|
+
let manifests = ((__eliscript_value_22) => (__eliscript_truthy(__eliscript_value_22) ? (originals)["manifests"] : __eliscript_value_22))(originals);
|
|
294
|
+
let parity = ((__eliscript_value_23) => (__eliscript_truthy(__eliscript_value_23) ? (manifests)["find"](((manifest) => {
|
|
295
|
+
return ((manifest)["id"] === "compiler-parity");
|
|
296
|
+
})) : __eliscript_value_23))(Array.isArray(manifests));
|
|
297
|
+
if (__eliscript_truthy(parity)) {
|
|
298
|
+
(((parity)["document"])["dimensions"])["forEach"](((dimension) => {
|
|
299
|
+
return ((dimension)["evidence"])["forEach"](((locator, index) => {
|
|
300
|
+
if ((((locator)["file"] === (__eliscript_tdz_read_3())) && ((locator)["contains"] === (__eliscript_tdz_read_4())))) {
|
|
301
|
+
{
|
|
302
|
+
let locator_id = (String("compiler-parity:dimension:") + String((dimension)["id"]) + String(":") + String(index));
|
|
303
|
+
let actual = (((document)["originalGateEvidence"])["locators"])["find"](((item) => {
|
|
304
|
+
return ((item)["id"] === locator_id);
|
|
305
|
+
}));
|
|
306
|
+
if ((!__eliscript_truthy(((__eliscript_value_24) => (__eliscript_truthy(__eliscript_value_24) ? (((actual)["file"] === (__eliscript_tdz_read_1())) && ((actual)["contains"] === (__eliscript_tdz_read_4()))) : __eliscript_value_24))(actual)))) {
|
|
307
|
+
fail("original emitter parity locator identity changed");
|
|
308
|
+
}
|
|
309
|
+
return ((actual)["file"] = (__eliscript_tdz_read_3()));
|
|
310
|
+
}
|
|
311
|
+
} else {
|
|
312
|
+
return null;
|
|
313
|
+
}
|
|
314
|
+
}));
|
|
315
|
+
}));
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
return document;
|
|
319
|
+
})(((document)["records"])["filter"](((record) => {
|
|
320
|
+
return ((record)["id"] === (__eliscript_tdz_read_0()));
|
|
321
|
+
}))));
|
|
322
|
+
}
|
|
323
|
+
export {transportOriginalBootstrapEmitterCorpus, prepareOriginalBootstrapEmitterOptions};
|
|
324
|
+
//# sourceMappingURL=compiler-corpus-emitter.mjs.map
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import {createHash} from 'node:crypto';
|
|
2
|
+
|
|
3
|
+
function region(source,begin,end){
|
|
4
|
+
const start=source.indexOf(begin),finish=end===undefined?source.length:source.indexOf(end,start+begin.length);
|
|
5
|
+
if(start<0||finish<0)throw new TypeError('original evaluation host boundary changed');
|
|
6
|
+
const text=source.slice(start,finish);
|
|
7
|
+
return {text,start,end:finish,byteStart:Buffer.byteLength(source.slice(0,start)),byteEnd:Buffer.byteLength(source.slice(0,finish)),
|
|
8
|
+
sha256:createHash('sha256').update(text).digest('hex')};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// Keep the original persistent-session, stdio and terminal bodies intact. Only
|
|
12
|
+
// their compiler construction setup is supplied by the selected target graph.
|
|
13
|
+
export async function addOriginalEvaluationPrograms({add,locators,text,file,bootstrapSources}) {
|
|
14
|
+
const suite='tests/bootstrap-evaluation.test.mjs',coverage=locators.filter(item=>item.file===suite).map(item=>item.id);
|
|
15
|
+
if(!coverage.length)return [];
|
|
16
|
+
const original=await text(suite),helpers=region(original,'async function run(', '\nbeforeAll(');
|
|
17
|
+
const bodies=region(original,'test("self-hosted evaluation descriptors are closed and framework neutral"');
|
|
18
|
+
const modules=[];
|
|
19
|
+
for(const filename of bootstrapSources){
|
|
20
|
+
if(!/^bootstrap\/compiler\/[a-z][a-z-]*[.]eli$/.test(filename))continue;
|
|
21
|
+
modules.push({id:filename.slice(0,-4)+'.mjs',filename,source:await text(filename)});
|
|
22
|
+
}
|
|
23
|
+
if(modules.length!==13||!modules.some(item=>item.id==='bootstrap/compiler/compiler.mjs'))
|
|
24
|
+
throw new TypeError('original evaluation requires the complete original compiler module graph');
|
|
25
|
+
for(const filename of ['bootstrap/host/evaluation.mjs','bootstrap/host/evaluation-cli.mjs','bootstrap/host/project.mjs',
|
|
26
|
+
'bootstrap/host/bun.mjs','bin/eliscript-eval','tests/bootstrap-evaluation-oracle.el','tests/fixtures/evaluation-session/main.eli'])await file(filename);
|
|
27
|
+
const host=[
|
|
28
|
+
'import {expect} from "bun:test";',
|
|
29
|
+
'import {existsSync,mkdtempSync,readFileSync,rmSync,writeFileSync} from "node:fs";',
|
|
30
|
+
'import {tmpdir} from "node:os";',
|
|
31
|
+
'import {join,resolve} from "node:path";',
|
|
32
|
+
'import {pathToFileURL} from "node:url";',
|
|
33
|
+
'const projectDirectory=process.env.ELISCRIPT_ORIGINAL_SOURCE_ROOT;',
|
|
34
|
+
'if(!projectDirectory)throw new Error("original evaluation host requires its source root");',
|
|
35
|
+
'const {EvaluationSession}=await import(pathToFileURL(resolve(projectDirectory,"bootstrap/host/evaluation.mjs")).href);',
|
|
36
|
+
'const evaluationPath=resolve(projectDirectory,"bin/eliscript-eval");',
|
|
37
|
+
'const evaluationOracle=resolve(projectDirectory,"tests/bootstrap-evaluation-oracle.el");',
|
|
38
|
+
'const fixture=resolve(projectDirectory,"tests/fixtures/evaluation-session/main.eli");',
|
|
39
|
+
'const node=process.env.NODE??"node";',
|
|
40
|
+
'const bun=process.env.ELISCRIPT_ORIGINAL_BUN??process.execPath;',
|
|
41
|
+
'const emacs=process.env.EMACS??"emacs";',
|
|
42
|
+
'const directory=mkdtempSync(join(tmpdir(),"eliscript-evaluation-original-"));',
|
|
43
|
+
'const compilerDirectory=resolve(process.argv[2],"bootstrap/compiler");',
|
|
44
|
+
'const compiler=await import(pathToFileURL(resolve(compilerDirectory,"compiler.mjs")).href);',
|
|
45
|
+
'const originalBodies=[];',
|
|
46
|
+
'function test(name,body,timeout=5000){originalBodies.push({name,body,timeout});}',
|
|
47
|
+
helpers.text,
|
|
48
|
+
bodies.text,
|
|
49
|
+
'try{for(const entry of originalBodies){',
|
|
50
|
+
' let timer;try{await Promise.race([Promise.resolve().then(()=>entry.body()),new Promise((_,reject)=>{timer=setTimeout(()=>reject(new Error(entry.name+": original timeout "+entry.timeout+"ms")),entry.timeout);})]);}',
|
|
51
|
+
' finally{clearTimeout(timer);}',
|
|
52
|
+
'}}finally{rmSync(directory,{recursive:true,force:true});}',
|
|
53
|
+
].join('\n')+'\n';
|
|
54
|
+
add({id:'original-program:compiler-persistent-evaluation',kind:'project',coverage,
|
|
55
|
+
modules,entry:'bootstrap/compiler/compiler.mjs',
|
|
56
|
+
request:{operation:'project',resolveImports:true,phased:true,sourceMap:true,entries:modules.map(item=>item.id)},
|
|
57
|
+
execution:{kind:'original-program',host:'tests/__eliscript_original_evaluation.mjs',hostSource:host,
|
|
58
|
+
arguments:[{directory:true}],aliases:true,requiresBun:true,childProcesses:'inherit-selected-artifact',runtimeLaunchers:true,runtimeProfile:'compiler',
|
|
59
|
+
setupReplacement:{kind:'selected-compiler-module-directory',sourceIds:modules.map(item=>item.id),
|
|
60
|
+
replaces:'beforeAll compiler construction',preservedAssertions:'complete original test bodies and timeout parameters'}},
|
|
61
|
+
expected:{kind:'seed-program',oracleRequired:true,stdout:''},
|
|
62
|
+
original:{manifest:'stable-compatibility',suite,fixture:suite,host:suite,sourceSha256:(await file(suite)).sha256,
|
|
63
|
+
regions:[helpers,bodies].map(({start,end,byteStart,byteEnd,sha256})=>({start,end,byteStart,byteEnd,sha256}))}});
|
|
64
|
+
return [suite];
|
|
65
|
+
}
|