@openclaw/discord 2026.9.2 → 2026.9.4
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/dist/action-runtime-api.js +1 -1
- package/dist/activities-api-w8j7Elou.js +758 -0
- package/dist/activities-api.js +1 -1
- package/dist/allow-list-DWEio925.js +374 -0
- package/dist/api-LIV--eMq.js +161 -0
- package/dist/api.js +14 -14
- package/dist/approval-handler.runtime-BnPUU5NK.js +377 -0
- package/dist/audit-BgAgIzwo.js +25 -0
- package/dist/channel-C_OFFR5Y.js +1050 -0
- package/dist/channel-access-C12aDZ0p.js +62 -0
- package/dist/channel-actions.runtime-tShzmemq.js +319 -0
- package/dist/channel-config-api.js +1 -1
- package/dist/channel-plugin-api.js +1 -1
- package/dist/channel.setup-CpAwAiS0.js +301 -0
- package/dist/components-DBFTIN6P.js +1019 -0
- package/dist/config-schema-r38UkM_J.js +675 -0
- package/dist/conversation-binding-route-CB9PRqgi.js +43 -0
- package/dist/directory-config-D1uDGbWh.js +49 -0
- package/dist/directory-contract-api.js +1 -1
- package/dist/directory-live-C5o1uKlw.js +164 -0
- package/dist/discord-CmL3ati-.js +3088 -0
- package/dist/doctor-DgKMH6N7.js +253 -0
- package/dist/doctor-contract-api.js +2 -1
- package/dist/handle-action.guild-admin-CpEwox_X.js +316 -0
- package/dist/index.js +1 -1
- package/dist/live-policy-config-BblutQAq.js +74 -0
- package/dist/message-handler-C7FZGKa8.js +561 -0
- package/dist/message-handler.preflight-DFpwDW2W.js +1155 -0
- package/dist/message-handler.process-ZKrmmA9D.js +1864 -0
- package/dist/outbound-adapter-C8PTt7_p.js +498 -0
- package/dist/outbound-components-DrlHcWfM.js +100 -0
- package/dist/outbound-session-route-B0N6os97.js +667 -0
- package/dist/pluralkit-BiUW53Yn.js +43 -0
- package/dist/presence-cache-dYSHPWMx.js +45 -0
- package/dist/probe-BcoN44eK.js +180 -0
- package/dist/probe.runtime-BnuED0fI.js +2 -0
- package/dist/provider-DmRHCZ_K.js +10638 -0
- package/dist/provider-session.runtime-U1M8_EYY.js +6 -0
- package/dist/provider.runtime-CqfE-RvC.js +2 -0
- package/dist/realtime-session.runtime-Bjsk9Q5t.js +1670 -0
- package/dist/resolve-allowlist-common-ChPf0Qy7.js +34 -0
- package/dist/resolve-channels-VbpLmUS8.js +266 -0
- package/dist/resolve-users-D-wRFsd5.js +121 -0
- package/dist/retry-DKeoT7UO.js +608 -0
- package/dist/runtime-CbknwoBH.js +80 -0
- package/dist/runtime-Dxl-ZOvg.js +1770 -0
- package/dist/runtime-api.js +20 -20
- package/dist/send-CLpzfzJe.js +1081 -0
- package/dist/send.components-BWnkX4QN.js +493 -0
- package/dist/send.outbound-BVTWrl_4.js +752 -0
- package/dist/send.shared-BHPM3CSl.js +740 -0
- package/dist/sender-identity-f3l5OYgV.js +43 -0
- package/dist/setup-plugin-api.js +1 -1
- package/dist/shared-CPPR0Xo4.js +227 -0
- package/dist/subagent-hooks-DfsiwCec.js +49 -0
- package/dist/subagent-hooks-api.js +1 -1
- package/dist/system-events-B6HkUhF_.js +34 -0
- package/dist/target-resolver-CoFQ7iSX.js +84 -0
- package/dist/targets-Cm6aV9nJ.js +3 -0
- package/dist/thread-bindings-uudC_0TY.js +239 -0
- package/dist/thread-bindings.manager-BeUxc8nr.js +673 -0
- package/dist/thread-bindings.session-updates-BwkXpcy0.js +55 -0
- package/dist/thread-bindings.state-dDn-dwBw.js +340 -0
- package/dist/transcripts-source-VkgenQv-.js +1689 -0
- package/dist/transcripts-source-api.js +1 -1
- package/dist/typing-DuBg1U8Q.js +14 -0
- package/dist/voice-runtime-DMYDMkJx.js +3607 -0
- package/node_modules/@napi-rs/wasm-runtime/dist/emnapi-plugins.cjs +1468 -0
- package/node_modules/@napi-rs/wasm-runtime/dist/emnapi-plugins.js +1466 -0
- package/node_modules/@napi-rs/wasm-runtime/dist/fs-proxy.cjs +237 -0
- package/node_modules/@napi-rs/wasm-runtime/dist/fs.js +18185 -0
- package/node_modules/@napi-rs/wasm-runtime/fs-proxy.js +316 -0
- package/node_modules/@napi-rs/wasm-runtime/package.json +67 -0
- package/node_modules/@napi-rs/wasm-runtime/runtime.cjs +39 -0
- package/node_modules/@napi-rs/wasm-runtime/runtime.js +36 -0
- package/node_modules/@snazzah/davey-android-arm-eabi/README.md +3 -0
- package/node_modules/@snazzah/davey-android-arm-eabi/davey.android-arm-eabi.node +0 -0
- package/node_modules/@snazzah/davey-android-arm-eabi/package.json +40 -0
- package/node_modules/@snazzah/davey-android-arm64/README.md +3 -0
- package/node_modules/@snazzah/davey-android-arm64/davey.android-arm64.node +0 -0
- package/node_modules/@snazzah/davey-android-arm64/package.json +40 -0
- package/node_modules/@snazzah/davey-darwin-arm64/README.md +3 -0
- package/node_modules/@snazzah/davey-darwin-arm64/davey.darwin-arm64.node +0 -0
- package/node_modules/@snazzah/davey-darwin-arm64/package.json +40 -0
- package/node_modules/@snazzah/davey-darwin-x64/README.md +3 -0
- package/node_modules/@snazzah/davey-darwin-x64/davey.darwin-x64.node +0 -0
- package/node_modules/@snazzah/davey-darwin-x64/package.json +40 -0
- package/node_modules/@snazzah/davey-freebsd-x64/README.md +3 -0
- package/node_modules/@snazzah/davey-freebsd-x64/davey.freebsd-x64.node +0 -0
- package/node_modules/@snazzah/davey-freebsd-x64/package.json +40 -0
- package/node_modules/@snazzah/davey-linux-arm-gnueabihf/README.md +3 -0
- package/node_modules/@snazzah/davey-linux-arm-gnueabihf/davey.linux-arm-gnueabihf.node +0 -0
- package/node_modules/@snazzah/davey-linux-arm-gnueabihf/package.json +40 -0
- package/node_modules/@snazzah/davey-linux-arm64-gnu/README.md +3 -0
- package/node_modules/@snazzah/davey-linux-arm64-gnu/davey.linux-arm64-gnu.node +0 -0
- package/node_modules/@snazzah/davey-linux-arm64-gnu/package.json +43 -0
- package/node_modules/@snazzah/davey-linux-arm64-musl/README.md +3 -0
- package/node_modules/@snazzah/davey-linux-arm64-musl/davey.linux-arm64-musl.node +0 -0
- package/node_modules/@snazzah/davey-linux-arm64-musl/package.json +43 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/README.md +3 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/davey.wasi-browser.js +71 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/davey.wasi.cjs +123 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/davey.wasm32-wasi.wasm +0 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/package.json +45 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/wasi-worker-browser.mjs +32 -0
- package/node_modules/@snazzah/davey-wasm32-wasi/wasi-worker.mjs +63 -0
- package/node_modules/@snazzah/davey-win32-arm64-msvc/README.md +3 -0
- package/node_modules/@snazzah/davey-win32-arm64-msvc/davey.win32-arm64-msvc.node +0 -0
- package/node_modules/@snazzah/davey-win32-arm64-msvc/package.json +40 -0
- package/node_modules/@snazzah/davey-win32-ia32-msvc/README.md +3 -0
- package/node_modules/@snazzah/davey-win32-ia32-msvc/davey.win32-ia32-msvc.node +0 -0
- package/node_modules/@snazzah/davey-win32-ia32-msvc/package.json +40 -0
- package/node_modules/@snazzah/davey-win32-x64-msvc/README.md +3 -0
- package/node_modules/@snazzah/davey-win32-x64-msvc/davey.win32-x64-msvc.node +0 -0
- package/node_modules/@snazzah/davey-win32-x64-msvc/package.json +40 -0
- package/node_modules/@tybys/wasm-util/README.md +193 -0
- package/node_modules/@tybys/wasm-util/dist/tsdoc-metadata.json +11 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.d.ts +423 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.esm-bundler.js +2932 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.esm.js +2932 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.esm.min.js +1 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.js +2954 -0
- package/node_modules/@tybys/wasm-util/dist/wasm-util.min.js +1 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/asyncify.js +158 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/index.js +13 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/jspi.js +46 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/load.js +97 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/memory.js +35 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/error.js +103 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/fd.js +268 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/fs.js +3 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/index.js +192 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/path.js +316 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/preview1.js +1599 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/rights.js +141 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/types.js +220 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/wasi/util.js +128 -0
- package/node_modules/@tybys/wasm-util/lib/cjs/webassembly.js +13 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/asyncify.mjs +153 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/index.mjs +9 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/jspi.mjs +39 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/load.mjs +89 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/memory.mjs +28 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/error.mjs +97 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/fd.mjs +256 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/index.mjs +186 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/path.mjs +310 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/preview1.mjs +1593 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/rights.mjs +135 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/types.mjs +216 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/wasi/util.mjs +113 -0
- package/node_modules/@tybys/wasm-util/lib/mjs/webassembly.mjs +9 -0
- package/node_modules/@tybys/wasm-util/package.json +58 -0
- package/node_modules/@types/node/README.md +15 -0
- package/node_modules/@types/node/buffer.buffer.d.ts +471 -0
- package/node_modules/@types/node/crypto.d.ts +3952 -0
- package/node_modules/@types/node/dgram.d.ts +652 -0
- package/node_modules/@types/node/fs/promises.d.ts +1477 -0
- package/node_modules/@types/node/fs.d.ts +4803 -0
- package/node_modules/@types/node/http.d.ts +2218 -0
- package/node_modules/@types/node/http2.d.ts +2497 -0
- package/node_modules/@types/node/index.d.ts +116 -0
- package/node_modules/@types/node/inspector.d.ts +265 -0
- package/node_modules/@types/node/net.d.ts +1062 -0
- package/node_modules/@types/node/package.json +155 -0
- package/node_modules/@types/node/quic.d.ts +2151 -0
- package/node_modules/@types/node/stream/iter.d.ts +452 -0
- package/node_modules/@types/node/tls.d.ts +1217 -0
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +467 -0
- package/node_modules/@types/node/ts5.6/index.d.ts +118 -0
- package/node_modules/@types/node/ts5.7/index.d.ts +118 -0
- package/node_modules/@types/node/tty.d.ts +226 -0
- package/node_modules/@types/node/vfs.d.ts +210 -0
- package/node_modules/@types/node/vm.d.ts +1136 -0
- package/node_modules/discord-api-types/CHANGELOG.md +14 -0
- package/node_modules/discord-api-types/gateway/index.mjs +1 -0
- package/node_modules/discord-api-types/gateway/v10.d.ts +20 -0
- package/node_modules/discord-api-types/gateway/v10.d.ts.map +1 -1
- package/node_modules/discord-api-types/gateway/v10.js +15 -1
- package/node_modules/discord-api-types/gateway/v10.js.map +1 -1
- package/node_modules/discord-api-types/gateway/v10.mjs +1 -0
- package/node_modules/discord-api-types/gateway/v9.d.ts +20 -0
- package/node_modules/discord-api-types/gateway/v9.d.ts.map +1 -1
- package/node_modules/discord-api-types/gateway/v9.js +15 -1
- package/node_modules/discord-api-types/gateway/v9.js.map +1 -1
- package/node_modules/discord-api-types/gateway/v9.mjs +1 -0
- package/node_modules/discord-api-types/package.json +3 -3
- package/node_modules/discord-api-types/payloads/v10/channel.d.ts +8 -2
- package/node_modules/discord-api-types/payloads/v10/channel.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v10/channel.js +6 -0
- package/node_modules/discord-api-types/payloads/v10/channel.js.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.d.ts +1 -1
- package/node_modules/discord-api-types/payloads/v9/_interactions/_applicationCommands/_chatInput/channel.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/channel.d.ts +7 -1
- package/node_modules/discord-api-types/payloads/v9/channel.d.ts.map +1 -1
- package/node_modules/discord-api-types/payloads/v9/channel.js +6 -0
- package/node_modules/discord-api-types/payloads/v9/channel.js.map +1 -1
- package/node_modules/discord-api-types/rest/v10/channel.d.ts +14 -2
- package/node_modules/discord-api-types/rest/v10/channel.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v10/channel.js.map +1 -1
- package/node_modules/discord-api-types/rest/v10/guild.d.ts +7 -3
- package/node_modules/discord-api-types/rest/v10/guild.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v10/interactions.d.ts +8 -8
- package/node_modules/discord-api-types/rest/v10/interactions.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/channel.d.ts +14 -2
- package/node_modules/discord-api-types/rest/v9/channel.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/channel.js.map +1 -1
- package/node_modules/discord-api-types/rest/v9/guild.d.ts +7 -3
- package/node_modules/discord-api-types/rest/v9/guild.d.ts.map +1 -1
- package/node_modules/discord-api-types/rest/v9/interactions.d.ts +8 -8
- package/node_modules/discord-api-types/rest/v9/interactions.d.ts.map +1 -1
- package/node_modules/discord-api-types/v10.mjs +1 -0
- package/node_modules/discord-api-types/v9.mjs +1 -0
- package/node_modules/uuid/dist/uuid-bin.d.ts +1 -0
- package/openclaw.plugin.json +19 -1
- package/package.json +6 -5
- package/dist/activities-api-CTcGq3Hf.js +0 -758
- package/dist/allow-list-DBTtR2dz.js +0 -363
- package/dist/api-BfmEP6wp.js +0 -161
- package/dist/approval-handler.runtime-DUSe5fyH.js +0 -376
- package/dist/audit-DpPfwoJM.js +0 -25
- package/dist/channel-BHajPgwR.js +0 -1022
- package/dist/channel-actions.runtime-DS8pXo0S.js +0 -319
- package/dist/channel.setup-BWmMe1tT.js +0 -301
- package/dist/components-BimX47Mq.js +0 -1018
- package/dist/config-schema-B797-Spt.js +0 -669
- package/dist/conversation-binding-route-DuR5NGIx.js +0 -43
- package/dist/directory-config-CD2v2Szs.js +0 -49
- package/dist/directory-live-DaJzWJ2N.js +0 -164
- package/dist/doctor-D4HH1inA.js +0 -253
- package/dist/handle-action.guild-admin-4We6wWQU.js +0 -316
- package/dist/ingress-identity-XNmW-mZS.js +0 -60
- package/dist/message-handler-DhgBabyU.js +0 -581
- package/dist/message-handler.preflight-oZ7dQCd0.js +0 -1120
- package/dist/message-handler.process-BzCYf1pa.js +0 -1859
- package/dist/message-text-DK4NnBg-.js +0 -571
- package/dist/outbound-adapter-CtggmGh9.js +0 -497
- package/dist/outbound-components-Dn8SJWMS.js +0 -100
- package/dist/outbound-session-route-Q_HEusBQ.js +0 -667
- package/dist/owner-access-Cp8r6Ipf.js +0 -109
- package/dist/pluralkit-BY75YcK0.js +0 -43
- package/dist/presence-cache-z1N8MbJ3.js +0 -45
- package/dist/probe-3ovFAp3b.js +0 -180
- package/dist/probe.runtime-BckHn3cJ.js +0 -2
- package/dist/provider-session.runtime-BL2lHBH7.js +0 -6
- package/dist/provider-uKmmrDM4.js +0 -10401
- package/dist/provider.runtime-C-IkWF2w.js +0 -2
- package/dist/realtime-session.runtime-CGYm1t_0.js +0 -1689
- package/dist/resolve-allowlist-common-sKIKy-cF.js +0 -34
- package/dist/resolve-channels-CoiMlWy0.js +0 -266
- package/dist/resolve-users-DJpiokfW.js +0 -121
- package/dist/retry-DQt1zDgH.js +0 -3685
- package/dist/retry-after-BrLjLUJi.js +0 -13
- package/dist/runtime-BHsdEdr5.js +0 -80
- package/dist/runtime-Ghtfh5ZA.js +0 -1757
- package/dist/send-CZeWKUiA.js +0 -1064
- package/dist/send.components-BG5IDABj.js +0 -525
- package/dist/send.outbound-DHuFUL6W.js +0 -740
- package/dist/send.shared-B0n_fWzu.js +0 -739
- package/dist/sender-identity-B8Ncfi63.js +0 -43
- package/dist/shared-C3dKun_X.js +0 -218
- package/dist/subagent-hooks-ZoQXEI1E.js +0 -49
- package/dist/system-events-DFF_awl7.js +0 -34
- package/dist/target-resolver-DLtHDwMK.js +0 -83
- package/dist/targets-BObRyaKX.js +0 -3
- package/dist/thread-bindings-DKvsNjQR.js +0 -238
- package/dist/thread-bindings.manager-pbbRT5gb.js +0 -768
- package/dist/thread-bindings.session-updates-t6jeFB1-.js +0 -55
- package/dist/thread-bindings.state-DtgOqsbX.js +0 -321
- package/dist/threading-BCx49X-6.js +0 -480
- package/dist/transcripts-source-Dc6Nnli5.js +0 -313
- package/dist/typing-CuopV-Hi.js +0 -14
- package/dist/voice-runtime-BQnILUbG.js +0 -2928
- package/node_modules/@discordjs/voice/node_modules/@types/node/README.md +0 -15
- package/node_modules/@discordjs/voice/node_modules/@types/node/buffer.buffer.d.ts +0 -466
- package/node_modules/@discordjs/voice/node_modules/@types/node/crypto.d.ts +0 -3954
- package/node_modules/@discordjs/voice/node_modules/@types/node/dgram.d.ts +0 -537
- package/node_modules/@discordjs/voice/node_modules/@types/node/fs/promises.d.ts +0 -1481
- package/node_modules/@discordjs/voice/node_modules/@types/node/fs.d.ts +0 -4793
- package/node_modules/@discordjs/voice/node_modules/@types/node/http.d.ts +0 -2218
- package/node_modules/@discordjs/voice/node_modules/@types/node/http2.d.ts +0 -2497
- package/node_modules/@discordjs/voice/node_modules/@types/node/index.d.ts +0 -115
- package/node_modules/@discordjs/voice/node_modules/@types/node/inspector.d.ts +0 -264
- package/node_modules/@discordjs/voice/node_modules/@types/node/net.d.ts +0 -970
- package/node_modules/@discordjs/voice/node_modules/@types/node/package.json +0 -155
- package/node_modules/@discordjs/voice/node_modules/@types/node/quic.d.ts +0 -2125
- package/node_modules/@discordjs/voice/node_modules/@types/node/stream/iter.d.ts +0 -452
- package/node_modules/@discordjs/voice/node_modules/@types/node/tls.d.ts +0 -1193
- package/node_modules/@discordjs/voice/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -462
- package/node_modules/@discordjs/voice/node_modules/@types/node/ts5.6/index.d.ts +0 -117
- package/node_modules/@discordjs/voice/node_modules/@types/node/ts5.7/index.d.ts +0 -117
- package/node_modules/@discordjs/voice/node_modules/@types/node/tty.d.ts +0 -225
- package/node_modules/@discordjs/voice/node_modules/@types/node/vm.d.ts +0 -1136
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey/README.md +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey/browser.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey/index.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey/index.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey/package.json +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey-linux-x64-gnu/README.md +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey-linux-x64-gnu/davey.linux-x64-gnu.node +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey-linux-x64-gnu/package.json +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey-linux-x64-musl/README.md +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey-linux-x64-musl/davey.linux-x64-musl.node +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@snazzah → @snazzah}/davey-linux-x64-musl/package.json +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid/dist-node/types.js → @tybys/wasm-util/lib/mjs/wasi/fs.mjs} +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types/lodash.transform → @types/debug}/LICENSE +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/debug/README.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/debug/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/debug/package.json +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types/uuid → @types/lodash}/LICENSE +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/README.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/add.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/after.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/ary.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/assign.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/assignIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/assignInWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/assignWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/at.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/attempt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/before.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/bind.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/bindAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/bindKey.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/camelCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/capitalize.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/castArray.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/ceil.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/chain.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/chunk.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/clamp.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/clone.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/cloneDeep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/cloneDeepWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/cloneWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/array.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/collection.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/common.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/date.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/function.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/lang.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/math.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/number.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/object.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/seq.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/string.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/common/util.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/compact.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/concat.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/cond.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/conforms.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/conformsTo.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/constant.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/countBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/create.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/curry.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/curryRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/debounce.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/deburr.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/defaultTo.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/defaults.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/defaultsDeep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/defer.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/delay.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/difference.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/differenceBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/differenceWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/divide.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/drop.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/dropRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/dropRightWhile.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/dropWhile.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/each.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/eachRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/endsWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/entries.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/entriesIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/eq.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/escape.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/escapeRegExp.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/every.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/extend.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/extendWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fill.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/filter.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/find.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/findIndex.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/findKey.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/findLast.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/findLastIndex.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/findLastKey.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/first.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/flatMap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/flatMapDeep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/flatMapDepth.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/flatten.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/flattenDeep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/flattenDepth.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/flip.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/floor.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/flow.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/flowRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/forEach.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/forEachRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/forIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/forInRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/forOwn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/forOwnRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/F.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/T.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/__.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/add.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/after.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/all.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/allPass.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/always.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/any.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/anyPass.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/apply.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/ary.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/assign.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/assignAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/assignAllWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/assignIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/assignInAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/assignInAllWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/assignInWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/assignWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/assoc.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/assocPath.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/at.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/attempt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/before.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/bind.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/bindAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/bindKey.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/camelCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/capitalize.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/castArray.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/ceil.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/chunk.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/clamp.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/clone.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/cloneDeep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/cloneDeepWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/cloneWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/compact.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/complement.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/compose.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/concat.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/cond.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/conforms.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/conformsTo.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/constant.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/contains.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/convert.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/countBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/create.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/curry.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/curryN.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/curryRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/curryRightN.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/debounce.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/deburr.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/defaultTo.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/defaults.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/defaultsAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/defaultsDeep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/defaultsDeepAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/defer.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/delay.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/difference.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/differenceBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/differenceWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/dissoc.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/dissocPath.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/divide.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/drop.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/dropLast.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/dropLastWhile.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/dropRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/dropRightWhile.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/dropWhile.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/each.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/eachRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/endsWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/entries.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/entriesIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/eq.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/equals.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/escape.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/escapeRegExp.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/every.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/extend.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/extendAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/extendAllWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/extendWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/fill.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/filter.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/find.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/findFrom.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/findIndex.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/findIndexFrom.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/findKey.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/findLast.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/findLastFrom.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/findLastIndex.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/findLastIndexFrom.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/findLastKey.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/first.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/flatMap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/flatMapDeep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/flatMapDepth.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/flatten.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/flattenDeep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/flattenDepth.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/flip.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/floor.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/flow.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/flowRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/forEach.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/forEachRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/forIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/forInRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/forOwn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/forOwnRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/fromPairs.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/functions.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/functionsIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/get.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/getOr.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/groupBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/gt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/gte.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/has.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/hasIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/head.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/identical.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/identity.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/inRange.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/includes.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/includesFrom.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/indexBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/indexOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/indexOfFrom.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/init.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/initial.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/intersection.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/intersectionBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/intersectionWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/invert.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/invertBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/invertObj.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/invoke.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/invokeArgs.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/invokeArgsMap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/invokeMap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isArguments.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isArray.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isArrayBuffer.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isArrayLike.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isArrayLikeObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isBoolean.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isBuffer.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isDate.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isElement.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isEmpty.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isEqual.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isEqualWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isError.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isFinite.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isFunction.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isInteger.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isLength.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isMap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isMatch.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isMatchWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isNaN.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isNative.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isNil.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isNull.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isNumber.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isObjectLike.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isPlainObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isRegExp.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isSafeInteger.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isSet.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isString.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isSymbol.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isTypedArray.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isUndefined.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isWeakMap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/isWeakSet.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/iteratee.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/join.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/juxt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/kebabCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/keyBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/keys.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/keysIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/last.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/lastIndexOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/lastIndexOfFrom.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/lowerCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/lowerFirst.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/lt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/lte.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/map.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/mapKeys.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/mapValues.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/matches.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/matchesProperty.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/max.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/maxBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/mean.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/meanBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/memoize.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/merge.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/mergeAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/mergeAllWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/mergeWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/method.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/methodOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/min.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/minBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/multiply.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/nAry.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/negate.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/noConflict.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/noop.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/now.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/nth.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/nthArg.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/omit.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/omitAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/omitBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/once.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/orderBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/over.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/overArgs.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/overEvery.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/overSome.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pad.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/padChars.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/padCharsEnd.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/padCharsStart.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/padEnd.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/padStart.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/parseInt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/partial.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/partialRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/partition.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/path.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pathEq.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pathOr.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/paths.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pick.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pickAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pickBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pipe.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/placeholder.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pluck.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/prop.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/propEq.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/propOr.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/property.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/propertyOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/props.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pull.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pullAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pullAllBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pullAllWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/pullAt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/random.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/range.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/rangeRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/rangeStep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/rangeStepRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/rearg.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/reduce.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/reduceRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/reject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/remove.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/repeat.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/replace.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/rest.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/restFrom.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/result.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/reverse.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/round.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/runInContext.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sample.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sampleSize.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/set.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/setWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/shuffle.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/size.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/slice.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/snakeCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/some.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sortBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sortedIndex.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sortedIndexBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sortedIndexOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sortedLastIndex.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sortedLastIndexBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sortedLastIndexOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sortedUniq.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sortedUniqBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/split.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/spread.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/spreadFrom.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/startCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/startsWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/stubArray.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/stubFalse.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/stubObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/stubString.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/stubTrue.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/subtract.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sum.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/sumBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/symmetricDifference.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/symmetricDifferenceBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/symmetricDifferenceWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/tail.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/take.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/takeLast.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/takeLastWhile.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/takeRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/takeRightWhile.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/takeWhile.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/tap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/template.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/throttle.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/thru.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/times.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toArray.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toFinite.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toInteger.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toLength.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toLower.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toNumber.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toPairs.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toPairsIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toPath.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toPlainObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toSafeInteger.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toString.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/toUpper.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/transform.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/trim.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/trimChars.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/trimCharsEnd.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/trimCharsStart.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/trimEnd.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/trimStart.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/truncate.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/unapply.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/unary.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/unescape.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/union.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/unionBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/unionWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/uniq.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/uniqBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/uniqWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/uniqueId.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/unnest.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/unset.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/unzip.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/unzipWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/update.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/updateWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/upperCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/upperFirst.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/useWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/values.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/valuesIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/where.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/whereEq.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/without.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/words.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/wrap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/xor.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/xorBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/xorWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/zip.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/zipAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/zipObj.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/zipObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/zipObjectDeep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp/zipWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fp.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/fromPairs.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/functions.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/functionsIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/get.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/groupBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/gt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/gte.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/has.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/hasIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/head.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/identity.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/inRange.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/includes.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/index.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/indexOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/initial.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/intersection.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/intersectionBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/intersectionWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/invert.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/invertBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/invoke.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/invokeMap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isArguments.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isArray.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isArrayBuffer.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isArrayLike.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isArrayLikeObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isBoolean.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isBuffer.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isDate.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isElement.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isEmpty.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isEqual.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isEqualWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isError.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isFinite.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isFunction.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isInteger.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isLength.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isMap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isMatch.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isMatchWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isNaN.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isNative.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isNil.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isNull.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isNumber.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isObjectLike.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isPlainObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isRegExp.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isSafeInteger.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isSet.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isString.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isSymbol.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isTypedArray.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isUndefined.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isWeakMap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/isWeakSet.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/iteratee.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/join.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/kebabCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/keyBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/keys.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/keysIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/last.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/lastIndexOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/lowerCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/lowerFirst.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/lt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/lte.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/map.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/mapKeys.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/mapValues.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/matches.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/matchesProperty.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/max.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/maxBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/mean.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/meanBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/memoize.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/merge.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/mergeWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/method.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/methodOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/min.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/minBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/mixin.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/multiply.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/negate.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/noConflict.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/noop.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/now.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/nth.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/nthArg.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/omit.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/omitBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/once.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/orderBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/over.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/overArgs.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/overEvery.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/overSome.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/package.json +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/pad.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/padEnd.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/padStart.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/parseInt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/partial.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/partialRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/partition.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/pick.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/pickBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/property.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/propertyOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/pull.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/pullAll.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/pullAllBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/pullAllWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/pullAt.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/random.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/range.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/rangeRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/rearg.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/reduce.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/reduceRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/reject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/remove.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/repeat.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/replace.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/rest.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/result.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/reverse.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/round.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/runInContext.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sample.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sampleSize.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/set.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/setWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/shuffle.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/size.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/slice.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/snakeCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/some.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sortBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sortedIndex.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sortedIndexBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sortedIndexOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sortedLastIndex.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sortedLastIndexBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sortedLastIndexOf.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sortedUniq.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sortedUniqBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/split.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/spread.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/startCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/startsWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/stubArray.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/stubFalse.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/stubObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/stubString.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/stubTrue.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/subtract.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sum.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/sumBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/tail.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/take.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/takeRight.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/takeRightWhile.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/takeWhile.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/tap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/template.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/throttle.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/thru.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/times.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toArray.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toFinite.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toInteger.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toLength.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toLower.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toNumber.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toPairs.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toPairsIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toPath.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toPlainObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toSafeInteger.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toString.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/toUpper.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/transform.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/trim.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/trimEnd.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/trimStart.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/truncate.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/unary.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/unescape.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/union.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/unionBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/unionWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/uniq.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/uniqBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/uniqWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/uniqueId.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/unset.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/unzip.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/unzipWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/update.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/updateWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/upperCase.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/upperFirst.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/values.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/valuesIn.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/without.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/words.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/wrap.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/xor.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/xorBy.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/xorWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/zip.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/zipObject.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/zipObjectDeep.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash/zipWith.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types/lodash → @types/lodash.transform}/LICENSE +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash.transform/README.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash.transform/index.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/lodash.transform/package.json +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types/node → @types/mdast}/LICENSE +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/mdast/README.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/mdast/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/mdast/package.json +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types/ws → @types/ms}/LICENSE +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/ms/README.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/ms/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/ms/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types/debug → @types/node}/LICENSE +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/assert/strict.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/assert.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/async_hooks.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/buffer.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/child_process.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/cluster.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/console.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/constants.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/diagnostics_channel.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/dns/promises.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/dns.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/domain.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/events.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/ffi.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/globals.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/globals.typedarray.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/https.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/inspector/promises.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/inspector.generated.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/module.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/os.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/path/posix.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/path/win32.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/path.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/perf_hooks.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/process.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/punycode.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/querystring.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/readline/promises.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/readline.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/repl.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/sea.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/sqlite.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/stream/consumers.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/stream/promises.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/stream/web.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/stream.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/string_decoder.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/test/reporters.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/test.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/timers/promises.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/timers.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/trace_events.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/ts5.6/compatibility/float16array.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/ts5.6/globals.typedarray.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/ts5.7/compatibility/float16array.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/url.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/util/types.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/util.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/v8.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/wasi.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/abortcontroller.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/blob.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/console.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/crypto.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/domexception.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/encoding.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/events.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/fetch.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/importmeta.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/messaging.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/navigator.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/performance.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/storage.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/streams.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/timers.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/web-globals/url.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/worker_threads.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/zlib/iter.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/node/zlib.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types/mdast → @types/unist}/LICENSE +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/unist/README.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/unist/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types → @types}/unist/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types/ms → @types/uuid}/LICENSE +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/uuid/README.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/uuid/index.d.mts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/uuid/index.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/@types → @types}/uuid/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types/unist → @types/ws}/LICENSE +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/ws/README.md +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/ws/index.d.mts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/ws/index.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/@types → @types}/ws/package.json +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/big-integer → big-integer}/BigInteger.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/big-integer → big-integer}/BigInteger.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/big-integer → big-integer}/BigInteger.min.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/big-integer → big-integer}/LICENSE +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/big-integer → big-integer}/README.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/big-integer → big-integer}/bower.json +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/big-integer → big-integer}/package.json +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/big-integer → big-integer}/tsconfig.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/character-entities → character-entities}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/character-entities → character-entities}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/character-entities → character-entities}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/character-entities → character-entities}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/character-entities → character-entities}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/debug → debug}/LICENSE +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/debug → debug}/README.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/debug → debug}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/debug → debug}/src/browser.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/debug → debug}/src/common.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/debug → debug}/src/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/debug → debug}/src/node.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/decimal.js-light → decimal.js-light}/CHANGELOG.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/decimal.js-light → decimal.js-light}/LICENCE.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/decimal.js-light → decimal.js-light}/README.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/decimal.js-light → decimal.js-light}/decimal.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/decimal.js-light → decimal.js-light}/decimal.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/decimal.js-light → decimal.js-light}/decimal.min.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/decimal.js-light → decimal.js-light}/decimal.mjs +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/decimal.js-light → decimal.js-light}/doc/API.html +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/decimal.js-light → decimal.js-light}/doc/decimal.js.map +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/decimal.js-light → decimal.js-light}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/decode-named-character-reference → decode-named-character-reference}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/decode-named-character-reference → decode-named-character-reference}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/decode-named-character-reference → decode-named-character-reference}/index.dom.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/decode-named-character-reference → decode-named-character-reference}/index.dom.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/decode-named-character-reference → decode-named-character-reference}/index.dom.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/decode-named-character-reference → decode-named-character-reference}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/decode-named-character-reference → decode-named-character-reference}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/decode-named-character-reference → decode-named-character-reference}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/decode-named-character-reference → decode-named-character-reference}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/dist/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/dist/index.min.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/dist/index.mjs +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/lite/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/lite/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/lite/index.min.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/lite/index.mjs +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/dequal → dequal}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/devlop → devlop}/lib/default.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/devlop → devlop}/lib/development.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/devlop → devlop}/lib/development.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/devlop → devlop}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/devlop → devlop}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/devlop → devlop}/readme.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/LICENSE +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/README.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/dist/eventemitter3.esm.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/dist/eventemitter3.esm.min.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/dist/eventemitter3.esm.min.js.map +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/dist/eventemitter3.umd.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/dist/eventemitter3.umd.min.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/dist/eventemitter3.umd.min.js.map +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/index.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/index.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/index.mjs +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/eventemitter3 → eventemitter3}/package.json +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/lodash.transform → lodash.transform}/LICENSE +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/lodash.transform → lodash.transform}/README.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/lodash.transform → lodash.transform}/index.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/lodash.transform → lodash.transform}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/mdast-util-to-string → mdast-util-to-string}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/mdast-util-to-string → mdast-util-to-string}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/mdast-util-to-string → mdast-util-to-string}/lib/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/mdast-util-to-string → mdast-util-to-string}/lib/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/mdast-util-to-string → mdast-util-to-string}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/mdast-util-to-string → mdast-util-to-string}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/mdast-util-to-string → mdast-util-to-string}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/compile.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/compile.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/compile.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/constructs.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/constructs.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/constructs.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/create-tokenizer.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/create-tokenizer.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/create-tokenizer.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/content.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/content.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/content.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/document.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/document.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/document.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/flow.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/flow.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/flow.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/text.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/text.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/initialize/text.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/parse.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/parse.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/parse.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/postprocess.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/postprocess.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/postprocess.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/preprocess.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/preprocess.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/lib/preprocess.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/stream.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/stream.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/dev/stream.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/compile.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/compile.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/compile.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/constructs.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/constructs.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/constructs.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/create-tokenizer.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/create-tokenizer.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/create-tokenizer.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/content.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/content.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/content.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/document.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/document.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/document.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/flow.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/flow.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/flow.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/text.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/text.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/initialize/text.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/parse.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/parse.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/parse.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/postprocess.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/postprocess.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/postprocess.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/preprocess.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/preprocess.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/lib/preprocess.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/stream.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/stream.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark → micromark}/stream.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/attention.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/attention.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/attention.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/autolink.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/autolink.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/autolink.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/blank-line.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/blank-line.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/blank-line.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/block-quote.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/block-quote.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/block-quote.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/character-escape.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/character-escape.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/character-escape.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/character-reference.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/character-reference.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/character-reference.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/code-fenced.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/code-fenced.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/code-fenced.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/code-indented.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/code-indented.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/code-indented.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/code-text.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/code-text.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/code-text.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/content.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/content.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/content.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/definition.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/definition.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/definition.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/hard-break-escape.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/hard-break-escape.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/hard-break-escape.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/heading-atx.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/heading-atx.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/heading-atx.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/html-flow.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/html-flow.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/html-flow.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/html-text.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/html-text.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/html-text.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/label-end.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/label-end.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/label-end.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/label-start-image.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/label-start-image.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/label-start-image.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/label-start-link.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/label-start-link.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/label-start-link.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/line-ending.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/line-ending.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/line-ending.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/list.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/list.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/list.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/setext-underline.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/setext-underline.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/setext-underline.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/thematic-break.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/thematic-break.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/dev/lib/thematic-break.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/attention.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/attention.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/attention.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/autolink.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/autolink.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/autolink.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/blank-line.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/blank-line.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/blank-line.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/block-quote.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/block-quote.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/block-quote.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/character-escape.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/character-escape.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/character-escape.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/character-reference.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/character-reference.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/character-reference.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/code-fenced.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/code-fenced.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/code-fenced.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/code-indented.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/code-indented.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/code-indented.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/code-text.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/code-text.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/code-text.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/content.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/content.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/content.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/definition.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/definition.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/definition.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/hard-break-escape.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/hard-break-escape.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/hard-break-escape.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/heading-atx.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/heading-atx.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/heading-atx.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/html-flow.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/html-flow.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/html-flow.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/html-text.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/html-text.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/html-text.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/label-end.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/label-end.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/label-end.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/label-start-image.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/label-start-image.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/label-start-image.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/label-start-link.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/label-start-link.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/label-start-link.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/line-ending.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/line-ending.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/line-ending.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/list.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/list.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/list.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/setext-underline.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/setext-underline.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/setext-underline.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/thematic-break.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/thematic-break.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/lib/thematic-break.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-core-commonmark → micromark-core-commonmark}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-destination → micromark-factory-destination}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-destination → micromark-factory-destination}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-destination → micromark-factory-destination}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-destination → micromark-factory-destination}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-destination → micromark-factory-destination}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-destination → micromark-factory-destination}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-destination → micromark-factory-destination}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-destination → micromark-factory-destination}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-destination → micromark-factory-destination}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-label → micromark-factory-label}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-label → micromark-factory-label}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-label → micromark-factory-label}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-label → micromark-factory-label}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-label → micromark-factory-label}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-label → micromark-factory-label}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-label → micromark-factory-label}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-label → micromark-factory-label}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-label → micromark-factory-label}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-space → micromark-factory-space}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-space → micromark-factory-space}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-space → micromark-factory-space}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-space → micromark-factory-space}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-space → micromark-factory-space}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-space → micromark-factory-space}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-space → micromark-factory-space}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-space → micromark-factory-space}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-space → micromark-factory-space}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-title → micromark-factory-title}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-title → micromark-factory-title}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-title → micromark-factory-title}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-title → micromark-factory-title}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-title → micromark-factory-title}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-title → micromark-factory-title}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-title → micromark-factory-title}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-title → micromark-factory-title}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-title → micromark-factory-title}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-whitespace → micromark-factory-whitespace}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-whitespace → micromark-factory-whitespace}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-whitespace → micromark-factory-whitespace}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-whitespace → micromark-factory-whitespace}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-whitespace → micromark-factory-whitespace}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-whitespace → micromark-factory-whitespace}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-whitespace → micromark-factory-whitespace}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-whitespace → micromark-factory-whitespace}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-factory-whitespace → micromark-factory-whitespace}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-character → micromark-util-character}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-character → micromark-util-character}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-character → micromark-util-character}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-character → micromark-util-character}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-character → micromark-util-character}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-character → micromark-util-character}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-character → micromark-util-character}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-character → micromark-util-character}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-character → micromark-util-character}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-chunked → micromark-util-chunked}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-chunked → micromark-util-chunked}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-chunked → micromark-util-chunked}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-chunked → micromark-util-chunked}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-chunked → micromark-util-chunked}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-chunked → micromark-util-chunked}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-chunked → micromark-util-chunked}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-chunked → micromark-util-chunked}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-chunked → micromark-util-chunked}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-classify-character → micromark-util-classify-character}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-classify-character → micromark-util-classify-character}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-classify-character → micromark-util-classify-character}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-classify-character → micromark-util-classify-character}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-classify-character → micromark-util-classify-character}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-classify-character → micromark-util-classify-character}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-classify-character → micromark-util-classify-character}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-classify-character → micromark-util-classify-character}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-classify-character → micromark-util-classify-character}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-combine-extensions → micromark-util-combine-extensions}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-combine-extensions → micromark-util-combine-extensions}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-combine-extensions → micromark-util-combine-extensions}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-combine-extensions → micromark-util-combine-extensions}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-combine-extensions → micromark-util-combine-extensions}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-combine-extensions → micromark-util-combine-extensions}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference → micromark-util-decode-numeric-character-reference}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference → micromark-util-decode-numeric-character-reference}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference → micromark-util-decode-numeric-character-reference}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference → micromark-util-decode-numeric-character-reference}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference → micromark-util-decode-numeric-character-reference}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference → micromark-util-decode-numeric-character-reference}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference → micromark-util-decode-numeric-character-reference}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference → micromark-util-decode-numeric-character-reference}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference → micromark-util-decode-numeric-character-reference}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-string → micromark-util-decode-string}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-string → micromark-util-decode-string}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-string → micromark-util-decode-string}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-string → micromark-util-decode-string}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-string → micromark-util-decode-string}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-string → micromark-util-decode-string}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-string → micromark-util-decode-string}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-string → micromark-util-decode-string}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-decode-string → micromark-util-decode-string}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-encode → micromark-util-encode}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-encode → micromark-util-encode}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-encode → micromark-util-encode}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-encode → micromark-util-encode}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-encode → micromark-util-encode}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-encode → micromark-util-encode}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-html-tag-name → micromark-util-html-tag-name}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-html-tag-name → micromark-util-html-tag-name}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-html-tag-name → micromark-util-html-tag-name}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-html-tag-name → micromark-util-html-tag-name}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-html-tag-name → micromark-util-html-tag-name}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-html-tag-name → micromark-util-html-tag-name}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier → micromark-util-normalize-identifier}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier → micromark-util-normalize-identifier}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier → micromark-util-normalize-identifier}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier → micromark-util-normalize-identifier}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier → micromark-util-normalize-identifier}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier → micromark-util-normalize-identifier}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier → micromark-util-normalize-identifier}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier → micromark-util-normalize-identifier}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier → micromark-util-normalize-identifier}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-resolve-all → micromark-util-resolve-all}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-resolve-all → micromark-util-resolve-all}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-resolve-all → micromark-util-resolve-all}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-resolve-all → micromark-util-resolve-all}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-resolve-all → micromark-util-resolve-all}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-resolve-all → micromark-util-resolve-all}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri → micromark-util-sanitize-uri}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri → micromark-util-sanitize-uri}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri → micromark-util-sanitize-uri}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri → micromark-util-sanitize-uri}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri → micromark-util-sanitize-uri}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri → micromark-util-sanitize-uri}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri → micromark-util-sanitize-uri}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri → micromark-util-sanitize-uri}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri → micromark-util-sanitize-uri}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/dev/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/dev/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/dev/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/dev/lib/splice-buffer.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/dev/lib/splice-buffer.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/dev/lib/splice-buffer.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/index.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/lib/splice-buffer.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/lib/splice-buffer.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/lib/splice-buffer.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-subtokenize → micromark-util-subtokenize}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/codes.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/codes.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/codes.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/constants.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/constants.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/constants.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/default.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/default.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/default.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/types.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/types.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/types.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/values.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/values.d.ts.map +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/lib/values.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-symbol → micromark-util-symbol}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-types → micromark-util-types}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-types → micromark-util-types}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-types → micromark-util-types}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-types → micromark-util-types}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/micromark-util-types → micromark-util-types}/readme.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/ms → ms}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/ms → ms}/license.md +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/ms → ms}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/ms → ms}/readme.md +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/LICENSE +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/README.md +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/package.json +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/core/FFmpeg.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/core/VolumeTransformer.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/core/WebmBase.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/core/index.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/index.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/opus/OggDemuxer.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/opus/Opus.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/opus/WebmDemuxer.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/opus/index.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/util/loader.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/vorbis/WebmDemuxer.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/src/vorbis/index.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/typings/index.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/typings/opus.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/prism-media → prism-media}/typings/vorbis.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/CopyrightNotice.txt +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/LICENSE.txt +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/README.md +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/SECURITY.md +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/modules/index.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/modules/index.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/modules/package.json +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/package.json +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/tslib.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/tslib.es6.html +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/tslib.es6.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/tslib.es6.mjs +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/tslib.html +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/tslib → tslib}/tslib.js +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/LICENSE +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/README.md +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/agent.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/api.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/balanced-pool.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/cache-interceptor.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/cache.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/client-stats.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/client.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/connector.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/content-type.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/cookies.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/diagnostics-channel.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/dispatcher.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/dispatcher1-wrapper.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/env-http-proxy-agent.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/errors.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/eventsource.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/fetch.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/formdata.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/global-dispatcher.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/global-origin.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/h2c-client.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/handlers.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/header.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/index.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/interceptors.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/mock-agent.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/mock-call-history.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/mock-client.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/mock-errors.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/mock-interceptor.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/mock-pool.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/package.json +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/patch.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/pool-stats.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/pool.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/proxy-agent.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/readable.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/retry-agent.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/retry-handler.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/round-robin-pool.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/snapshot-agent.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/socks5-proxy-agent.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/util.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/utility.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/webidl.d.ts +0 -0
- /package/node_modules/{@discordjs/voice/node_modules/undici-types → undici-types}/websocket.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/unist-util-stringify-position → unist-util-stringify-position}/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/unist-util-stringify-position → unist-util-stringify-position}/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/unist-util-stringify-position → unist-util-stringify-position}/lib/index.d.ts +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/unist-util-stringify-position → unist-util-stringify-position}/lib/index.js +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/unist-util-stringify-position → unist-util-stringify-position}/license +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/unist-util-stringify-position → unist-util-stringify-position}/package.json +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/unist-util-stringify-position → unist-util-stringify-position}/readme.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/LICENSE.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/README.md +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/index.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/index.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/max.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/max.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/md5.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/md5.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/nil.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/nil.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/parse.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/parse.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/regex.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/regex.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/rng.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/rng.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/sha1.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/sha1.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/stringify.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/stringify.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/types.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid/dist/uuid-bin.d.ts → uuid/dist/types.js} +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/uuid-bin.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v1.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v1.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v1ToV6.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v1ToV6.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v3.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v3.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v35.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v35.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v4.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v4.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v5.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v5.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v6.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v6.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v6ToV1.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v6ToV1.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v7.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/v7.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/validate.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/validate.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/version.d.ts +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist/version.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/bin/uuid +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/index.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/max.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/md5.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/nil.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/parse.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/regex.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/rng.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/sha1.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/stringify.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid/dist → uuid/dist-node}/types.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/uuid-bin.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/v1.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/v1ToV6.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/v3.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/v35.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/v4.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/v5.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/v6.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/v6ToV1.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/v7.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/validate.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/dist-node/version.js +0 -0
- /package/node_modules/{@discord/embedded-app-sdk/node_modules/uuid → uuid}/package.json +0 -0
|
@@ -0,0 +1,2932 @@
|
|
|
1
|
+
const _WebAssembly = typeof WebAssembly !== 'undefined'
|
|
2
|
+
? WebAssembly
|
|
3
|
+
: typeof WXWebAssembly !== 'undefined'
|
|
4
|
+
? WXWebAssembly
|
|
5
|
+
: undefined;
|
|
6
|
+
if (!_WebAssembly) {
|
|
7
|
+
throw new Error('WebAssembly is not supported in this environment');
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* eslint-disable spaced-comment */
|
|
11
|
+
|
|
12
|
+
function validateObject(value, name) {
|
|
13
|
+
if (value === null || typeof value !== 'object') {
|
|
14
|
+
throw new TypeError(`${name} must be an object. Received ${value === null ? 'null' : typeof value}`);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function validateArray(value, name) {
|
|
18
|
+
if (!Array.isArray(value)) {
|
|
19
|
+
throw new TypeError(`${name} must be an array. Received ${value === null ? 'null' : typeof value}`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function validateBoolean(value, name) {
|
|
23
|
+
if (typeof value !== 'boolean') {
|
|
24
|
+
throw new TypeError(`${name} must be a boolean. Received ${value === null ? 'null' : typeof value}`);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function validateString(value, name) {
|
|
28
|
+
if (typeof value !== 'string') {
|
|
29
|
+
throw new TypeError(`${name} must be a string. Received ${value === null ? 'null' : typeof value}`);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function validateFunction(value, name) {
|
|
33
|
+
if (typeof value !== 'function') {
|
|
34
|
+
throw new TypeError(`${name} must be a function. Received ${value === null ? 'null' : typeof value}`);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function validateUndefined(value, name) {
|
|
38
|
+
if (value !== undefined) {
|
|
39
|
+
throw new TypeError(`${name} must be undefined. Received ${value === null ? 'null' : typeof value}`);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function isPromiseLike(obj) {
|
|
43
|
+
return !!(obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function');
|
|
44
|
+
}
|
|
45
|
+
function wrapInstanceExports(exports, mapFn) {
|
|
46
|
+
const newExports = Object.create(null);
|
|
47
|
+
Object.keys(exports).forEach(name => {
|
|
48
|
+
const exportValue = exports[name];
|
|
49
|
+
Object.defineProperty(newExports, name, {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
value: mapFn(exportValue, name)
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
return newExports;
|
|
55
|
+
}
|
|
56
|
+
function sleepBreakIf(delay, breakIf) {
|
|
57
|
+
const start = Date.now();
|
|
58
|
+
const end = start + delay;
|
|
59
|
+
let ret = false;
|
|
60
|
+
while (Date.now() < end) {
|
|
61
|
+
if (breakIf()) {
|
|
62
|
+
ret = true;
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return ret;
|
|
67
|
+
}
|
|
68
|
+
function unsharedSlice(view, start, end) {
|
|
69
|
+
return ((typeof SharedArrayBuffer === 'function' && view.buffer instanceof SharedArrayBuffer) || (Object.prototype.toString.call(view.buffer.constructor) === '[object SharedArrayBuffer]'))
|
|
70
|
+
? view.slice(start, end)
|
|
71
|
+
: view.subarray(start, end);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const ignoreNames = [
|
|
75
|
+
'asyncify_get_state',
|
|
76
|
+
'asyncify_start_rewind',
|
|
77
|
+
'asyncify_start_unwind',
|
|
78
|
+
'asyncify_stop_rewind',
|
|
79
|
+
'asyncify_stop_unwind'
|
|
80
|
+
];
|
|
81
|
+
function tryAllocate(instance, wasm64, size, mallocName) {
|
|
82
|
+
if (typeof instance.exports[mallocName] !== 'function' || size <= 0) {
|
|
83
|
+
return {
|
|
84
|
+
wasm64,
|
|
85
|
+
dataPtr: 16,
|
|
86
|
+
start: wasm64 ? 32 : 24,
|
|
87
|
+
end: 1024
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
const malloc = instance.exports[mallocName];
|
|
91
|
+
const dataPtr = wasm64 ? Number(malloc(BigInt(16) + BigInt(size))) : malloc(8 + size);
|
|
92
|
+
if (dataPtr === 0) {
|
|
93
|
+
throw new Error('Allocate asyncify data failed');
|
|
94
|
+
}
|
|
95
|
+
return wasm64
|
|
96
|
+
? { wasm64, dataPtr, start: dataPtr + 16, end: dataPtr + 16 + size }
|
|
97
|
+
: { wasm64, dataPtr, start: dataPtr + 8, end: dataPtr + 8 + size };
|
|
98
|
+
}
|
|
99
|
+
/** @public */
|
|
100
|
+
class Asyncify {
|
|
101
|
+
constructor() {
|
|
102
|
+
this.value = undefined;
|
|
103
|
+
this.exports = undefined;
|
|
104
|
+
this.dataPtr = 0;
|
|
105
|
+
}
|
|
106
|
+
init(memory, instance, options) {
|
|
107
|
+
var _a, _b;
|
|
108
|
+
if (this.exports) {
|
|
109
|
+
throw new Error('Asyncify has been initialized');
|
|
110
|
+
}
|
|
111
|
+
if (!(memory instanceof _WebAssembly.Memory)) {
|
|
112
|
+
throw new TypeError('Require WebAssembly.Memory object');
|
|
113
|
+
}
|
|
114
|
+
const exports = instance.exports;
|
|
115
|
+
for (let i = 0; i < ignoreNames.length; ++i) {
|
|
116
|
+
if (typeof exports[ignoreNames[i]] !== 'function') {
|
|
117
|
+
throw new TypeError('Invalid asyncify wasm');
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
let address;
|
|
121
|
+
const wasm64 = Boolean(options.wasm64);
|
|
122
|
+
if (!options.tryAllocate) {
|
|
123
|
+
address = {
|
|
124
|
+
wasm64,
|
|
125
|
+
dataPtr: 16,
|
|
126
|
+
start: wasm64 ? 32 : 24,
|
|
127
|
+
end: 1024
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
if (options.tryAllocate === true) {
|
|
132
|
+
address = tryAllocate(instance, wasm64, 4096, 'malloc');
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
address = tryAllocate(instance, wasm64, (_a = options.tryAllocate.size) !== null && _a !== void 0 ? _a : 4096, (_b = options.tryAllocate.name) !== null && _b !== void 0 ? _b : 'malloc');
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
this.dataPtr = address.dataPtr;
|
|
139
|
+
if (wasm64) {
|
|
140
|
+
new BigInt64Array(memory.buffer, this.dataPtr).set([BigInt(address.start), BigInt(address.end)]);
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
new Int32Array(memory.buffer, this.dataPtr).set([address.start, address.end]);
|
|
144
|
+
}
|
|
145
|
+
this.exports = this.wrapExports(exports, options.wrapExports);
|
|
146
|
+
const asyncifiedInstance = Object.create(_WebAssembly.Instance.prototype);
|
|
147
|
+
Object.defineProperty(asyncifiedInstance, 'exports', { value: this.exports });
|
|
148
|
+
// Object.setPrototypeOf(instance, Instance.prototype)
|
|
149
|
+
return asyncifiedInstance;
|
|
150
|
+
}
|
|
151
|
+
assertState() {
|
|
152
|
+
if (this.exports.asyncify_get_state() !== 0 /* AsyncifyState.NONE */) {
|
|
153
|
+
throw new Error('Asyncify state error');
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
wrapImportFunction(f) {
|
|
157
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
158
|
+
const _this = this;
|
|
159
|
+
return (function () {
|
|
160
|
+
// eslint-disable-next-line no-unreachable-loop
|
|
161
|
+
while (_this.exports.asyncify_get_state() === 2 /* AsyncifyState.REWINDING */) {
|
|
162
|
+
_this.exports.asyncify_stop_rewind();
|
|
163
|
+
return _this.value;
|
|
164
|
+
}
|
|
165
|
+
_this.assertState();
|
|
166
|
+
const v = f.apply(this, arguments);
|
|
167
|
+
if (!isPromiseLike(v))
|
|
168
|
+
return v;
|
|
169
|
+
_this.exports.asyncify_start_unwind(_this.dataPtr);
|
|
170
|
+
_this.value = v;
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
wrapImports(imports) {
|
|
174
|
+
const importObject = {};
|
|
175
|
+
Object.keys(imports).forEach(k => {
|
|
176
|
+
const mod = imports[k];
|
|
177
|
+
const newModule = {};
|
|
178
|
+
Object.keys(mod).forEach(name => {
|
|
179
|
+
const importValue = mod[name];
|
|
180
|
+
if (typeof importValue === 'function') {
|
|
181
|
+
newModule[name] = this.wrapImportFunction(importValue);
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
newModule[name] = importValue;
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
importObject[k] = newModule;
|
|
188
|
+
});
|
|
189
|
+
return importObject;
|
|
190
|
+
}
|
|
191
|
+
wrapExportFunction(f) {
|
|
192
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
193
|
+
const _this = this;
|
|
194
|
+
return (async function () {
|
|
195
|
+
_this.assertState();
|
|
196
|
+
let ret = f.apply(this, arguments);
|
|
197
|
+
while (_this.exports.asyncify_get_state() === 1 /* AsyncifyState.UNWINDING */) {
|
|
198
|
+
_this.exports.asyncify_stop_unwind();
|
|
199
|
+
_this.value = await _this.value;
|
|
200
|
+
_this.assertState();
|
|
201
|
+
_this.exports.asyncify_start_rewind(_this.dataPtr);
|
|
202
|
+
ret = f.call(this);
|
|
203
|
+
}
|
|
204
|
+
_this.assertState();
|
|
205
|
+
return ret;
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
wrapExports(exports, needWrap) {
|
|
209
|
+
return wrapInstanceExports(exports, (exportValue, name) => {
|
|
210
|
+
let ignore = ignoreNames.indexOf(name) !== -1 || typeof exportValue !== 'function';
|
|
211
|
+
if (Array.isArray(needWrap)) {
|
|
212
|
+
ignore = ignore || (needWrap.indexOf(name) === -1);
|
|
213
|
+
}
|
|
214
|
+
return ignore ? exportValue : this.wrapExportFunction(exportValue);
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
function validateImports(imports) {
|
|
220
|
+
if (imports && typeof imports !== 'object') {
|
|
221
|
+
throw new TypeError('imports must be an object or undefined');
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
function fetchWasm(urlOrBuffer, imports) {
|
|
225
|
+
if (typeof wx !== 'undefined' && typeof __wxConfig !== 'undefined') {
|
|
226
|
+
return _WebAssembly.instantiate(urlOrBuffer, imports);
|
|
227
|
+
}
|
|
228
|
+
return fetch(urlOrBuffer)
|
|
229
|
+
.then(response => response.arrayBuffer())
|
|
230
|
+
.then(buffer => _WebAssembly.instantiate(buffer, imports));
|
|
231
|
+
}
|
|
232
|
+
/** @public */
|
|
233
|
+
function load(wasmInput, imports) {
|
|
234
|
+
validateImports(imports);
|
|
235
|
+
imports = imports !== null && imports !== void 0 ? imports : {};
|
|
236
|
+
let source;
|
|
237
|
+
if (wasmInput instanceof ArrayBuffer || ArrayBuffer.isView(wasmInput)) {
|
|
238
|
+
return _WebAssembly.instantiate(wasmInput, imports);
|
|
239
|
+
}
|
|
240
|
+
if (wasmInput instanceof _WebAssembly.Module) {
|
|
241
|
+
return _WebAssembly.instantiate(wasmInput, imports).then((instance) => {
|
|
242
|
+
return { instance, module: wasmInput };
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
if (typeof wasmInput !== 'string' && !(wasmInput instanceof URL)) {
|
|
246
|
+
throw new TypeError('Invalid source');
|
|
247
|
+
}
|
|
248
|
+
if (typeof _WebAssembly.instantiateStreaming === 'function') {
|
|
249
|
+
let responsePromise;
|
|
250
|
+
try {
|
|
251
|
+
responsePromise = fetch(wasmInput);
|
|
252
|
+
source = _WebAssembly.instantiateStreaming(responsePromise, imports).catch(() => {
|
|
253
|
+
return fetchWasm(wasmInput, imports);
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
catch (_) {
|
|
257
|
+
source = fetchWasm(wasmInput, imports);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
else {
|
|
261
|
+
source = fetchWasm(wasmInput, imports);
|
|
262
|
+
}
|
|
263
|
+
return source;
|
|
264
|
+
}
|
|
265
|
+
/** @public */
|
|
266
|
+
function asyncifyLoad(asyncify, urlOrBuffer, imports) {
|
|
267
|
+
validateImports(imports);
|
|
268
|
+
imports = imports !== null && imports !== void 0 ? imports : {};
|
|
269
|
+
const asyncifyHelper = new Asyncify();
|
|
270
|
+
imports = asyncifyHelper.wrapImports(imports);
|
|
271
|
+
return load(urlOrBuffer, imports).then(source => {
|
|
272
|
+
var _a;
|
|
273
|
+
const memory = source.instance.exports.memory || ((_a = imports.env) === null || _a === void 0 ? void 0 : _a.memory);
|
|
274
|
+
return { module: source.module, instance: asyncifyHelper.init(memory, source.instance, asyncify) };
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
/** @public */
|
|
278
|
+
function loadSync(wasmInput, imports) {
|
|
279
|
+
validateImports(imports);
|
|
280
|
+
imports = imports !== null && imports !== void 0 ? imports : {};
|
|
281
|
+
let module;
|
|
282
|
+
if ((wasmInput instanceof ArrayBuffer) || ArrayBuffer.isView(wasmInput)) {
|
|
283
|
+
module = new _WebAssembly.Module(wasmInput);
|
|
284
|
+
}
|
|
285
|
+
else if (wasmInput instanceof WebAssembly.Module) {
|
|
286
|
+
module = wasmInput;
|
|
287
|
+
}
|
|
288
|
+
else {
|
|
289
|
+
throw new TypeError('Invalid source');
|
|
290
|
+
}
|
|
291
|
+
const instance = new _WebAssembly.Instance(module, imports);
|
|
292
|
+
const source = { instance, module };
|
|
293
|
+
return source;
|
|
294
|
+
}
|
|
295
|
+
/** @public */
|
|
296
|
+
function asyncifyLoadSync(asyncify, buffer, imports) {
|
|
297
|
+
var _a;
|
|
298
|
+
validateImports(imports);
|
|
299
|
+
imports = imports !== null && imports !== void 0 ? imports : {};
|
|
300
|
+
const asyncifyHelper = new Asyncify();
|
|
301
|
+
imports = asyncifyHelper.wrapImports(imports);
|
|
302
|
+
const source = loadSync(buffer, imports);
|
|
303
|
+
const memory = source.instance.exports.memory || ((_a = imports.env) === null || _a === void 0 ? void 0 : _a.memory);
|
|
304
|
+
return { module: source.module, instance: asyncifyHelper.init(memory, source.instance, asyncify) };
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
const CHAR_DOT = 46; /* . */
|
|
308
|
+
const CHAR_FORWARD_SLASH = 47; /* / */
|
|
309
|
+
const CHAR_BACKWARD_SLASH = 92; /* \ */
|
|
310
|
+
const CHAR_COLON = 58; /* : */
|
|
311
|
+
const CHAR_UPPERCASE_A = 65; /* A */
|
|
312
|
+
const CHAR_UPPERCASE_Z = 90; /* Z */
|
|
313
|
+
const CHAR_LOWERCASE_A = 97; /* a */
|
|
314
|
+
const CHAR_LOWERCASE_Z = 122; /* z */
|
|
315
|
+
function isPathSeparatorWin(code) {
|
|
316
|
+
return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
|
|
317
|
+
}
|
|
318
|
+
function isWindowsDeviceRoot(code) {
|
|
319
|
+
return (code >= CHAR_UPPERCASE_A && code <= CHAR_UPPERCASE_Z) ||
|
|
320
|
+
(code >= CHAR_LOWERCASE_A && code <= CHAR_LOWERCASE_Z);
|
|
321
|
+
}
|
|
322
|
+
const _isWin32 = typeof process !== 'undefined' && process.platform === 'win32';
|
|
323
|
+
/**
|
|
324
|
+
* Windows variant of `resolve()`. Mirrors Node's `path.win32.resolve`
|
|
325
|
+
* semantics enough for the WASI shim's needs (drive-letter absolutes
|
|
326
|
+
* + UNC paths + per-drive cwd lookups via `process.env`/`process.cwd`).
|
|
327
|
+
*
|
|
328
|
+
* Why this is needed: on Windows, `FileDescriptor.realPath` is the
|
|
329
|
+
* host realpath returned by `fs.realpathSync(realPath, 'utf8')` — the
|
|
330
|
+
* backslash form `D:\…`. The POSIX-only `resolveImpl` below only
|
|
331
|
+
* treats `/` as a separator, reads `D` as non-`/`, decides realPath
|
|
332
|
+
* is "relative", and produces a garbage joined path. Downstream
|
|
333
|
+
* `fs.openSync(garbage)` then returns `EINVAL` and the WASI caller
|
|
334
|
+
* sees a permanent failure. This function gives us the correct
|
|
335
|
+
* Windows-style resolution without taking a Node-only `path` import
|
|
336
|
+
* (which would break browser bundles of this package).
|
|
337
|
+
*
|
|
338
|
+
* Cribbed from Node's `lib/path.js` `win32.resolve()` (MIT-licensed),
|
|
339
|
+
* trimmed to what WASI realpath resolution actually exercises.
|
|
340
|
+
*/
|
|
341
|
+
function resolveWin32(args) {
|
|
342
|
+
let resolvedDevice = '';
|
|
343
|
+
let resolvedTail = '';
|
|
344
|
+
let resolvedAbsolute = false;
|
|
345
|
+
for (let i = args.length - 1; i >= -1; i--) {
|
|
346
|
+
let path;
|
|
347
|
+
if (i >= 0) {
|
|
348
|
+
path = args[i];
|
|
349
|
+
validateString(path, 'path');
|
|
350
|
+
if (path.length === 0)
|
|
351
|
+
continue;
|
|
352
|
+
}
|
|
353
|
+
else if (resolvedDevice.length === 0) {
|
|
354
|
+
path = (typeof process !== 'undefined' && typeof process.cwd === 'function')
|
|
355
|
+
? process.cwd()
|
|
356
|
+
: '';
|
|
357
|
+
}
|
|
358
|
+
else {
|
|
359
|
+
// Look up per-drive cwd via the `=X:` env var convention; fall back
|
|
360
|
+
// to the global cwd if absent.
|
|
361
|
+
const envKey = `=${resolvedDevice}`;
|
|
362
|
+
const env = (typeof process !== 'undefined') ? process.env : undefined;
|
|
363
|
+
path = (env && typeof env[envKey] === 'string')
|
|
364
|
+
? env[envKey]
|
|
365
|
+
: (typeof process !== 'undefined' && typeof process.cwd === 'function')
|
|
366
|
+
? process.cwd()
|
|
367
|
+
: '';
|
|
368
|
+
if (path === undefined ||
|
|
369
|
+
(path.slice(0, 2).toLowerCase() !== resolvedDevice.toLowerCase() &&
|
|
370
|
+
path.charCodeAt(2) === CHAR_BACKWARD_SLASH)) {
|
|
371
|
+
path = `${resolvedDevice}\\`;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
const len = path.length;
|
|
375
|
+
let rootEnd = 0;
|
|
376
|
+
let device = '';
|
|
377
|
+
let isAbsolute = false;
|
|
378
|
+
const code = path.charCodeAt(0);
|
|
379
|
+
if (len === 1) {
|
|
380
|
+
if (isPathSeparatorWin(code)) {
|
|
381
|
+
rootEnd = 1;
|
|
382
|
+
isAbsolute = true;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
else if (isPathSeparatorWin(code)) {
|
|
386
|
+
isAbsolute = true;
|
|
387
|
+
if (isPathSeparatorWin(path.charCodeAt(1))) {
|
|
388
|
+
// UNC path: `\\server\share\…`
|
|
389
|
+
let j = 2;
|
|
390
|
+
let last = j;
|
|
391
|
+
while (j < len && !isPathSeparatorWin(path.charCodeAt(j)))
|
|
392
|
+
j++;
|
|
393
|
+
if (j < len && j !== last) {
|
|
394
|
+
const firstPart = path.slice(last, j);
|
|
395
|
+
last = j;
|
|
396
|
+
while (j < len && isPathSeparatorWin(path.charCodeAt(j)))
|
|
397
|
+
j++;
|
|
398
|
+
if (j < len && j !== last) {
|
|
399
|
+
last = j;
|
|
400
|
+
while (j < len && !isPathSeparatorWin(path.charCodeAt(j)))
|
|
401
|
+
j++;
|
|
402
|
+
if (j === len || j !== last) {
|
|
403
|
+
device = `\\\\${firstPart}\\${path.slice(last, j)}`;
|
|
404
|
+
rootEnd = j;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
else {
|
|
410
|
+
rootEnd = 1;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
else if (isWindowsDeviceRoot(code) && path.charCodeAt(1) === CHAR_COLON) {
|
|
414
|
+
device = path.slice(0, 2);
|
|
415
|
+
rootEnd = 2;
|
|
416
|
+
if (len > 2 && isPathSeparatorWin(path.charCodeAt(2))) {
|
|
417
|
+
isAbsolute = true;
|
|
418
|
+
rootEnd = 3;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
if (device.length > 0) {
|
|
422
|
+
if (resolvedDevice.length > 0) {
|
|
423
|
+
if (device.toLowerCase() !== resolvedDevice.toLowerCase())
|
|
424
|
+
continue;
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
resolvedDevice = device;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
if (resolvedAbsolute) {
|
|
431
|
+
if (resolvedDevice.length > 0)
|
|
432
|
+
break;
|
|
433
|
+
}
|
|
434
|
+
else {
|
|
435
|
+
resolvedTail = `${path.slice(rootEnd)}\\${resolvedTail}`;
|
|
436
|
+
resolvedAbsolute = isAbsolute;
|
|
437
|
+
if (isAbsolute && resolvedDevice.length > 0)
|
|
438
|
+
break;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
resolvedTail = normalizeString(resolvedTail, !resolvedAbsolute, '\\', isPathSeparatorWin);
|
|
442
|
+
return resolvedDevice + (resolvedAbsolute ? '\\' : '') + resolvedTail || '.';
|
|
443
|
+
}
|
|
444
|
+
function isPosixPathSeparator(code) {
|
|
445
|
+
return code === CHAR_FORWARD_SLASH;
|
|
446
|
+
}
|
|
447
|
+
function normalizeString(path, allowAboveRoot, separator, isPathSeparator) {
|
|
448
|
+
let res = '';
|
|
449
|
+
let lastSegmentLength = 0;
|
|
450
|
+
let lastSlash = -1;
|
|
451
|
+
let dots = 0;
|
|
452
|
+
let code = 0;
|
|
453
|
+
for (let i = 0; i <= path.length; ++i) {
|
|
454
|
+
if (i < path.length) {
|
|
455
|
+
code = path.charCodeAt(i);
|
|
456
|
+
}
|
|
457
|
+
else if (isPathSeparator(code)) {
|
|
458
|
+
break;
|
|
459
|
+
}
|
|
460
|
+
else {
|
|
461
|
+
code = CHAR_FORWARD_SLASH;
|
|
462
|
+
}
|
|
463
|
+
if (isPathSeparator(code)) {
|
|
464
|
+
if (lastSlash === i - 1 || dots === 1) ;
|
|
465
|
+
else if (dots === 2) {
|
|
466
|
+
if (res.length < 2 || lastSegmentLength !== 2 ||
|
|
467
|
+
res.charCodeAt(res.length - 1) !== CHAR_DOT ||
|
|
468
|
+
res.charCodeAt(res.length - 2) !== CHAR_DOT) {
|
|
469
|
+
if (res.length > 2) {
|
|
470
|
+
const lastSlashIndex = res.indexOf(separator);
|
|
471
|
+
if (lastSlashIndex === -1) {
|
|
472
|
+
res = '';
|
|
473
|
+
lastSegmentLength = 0;
|
|
474
|
+
}
|
|
475
|
+
else {
|
|
476
|
+
res = res.slice(0, lastSlashIndex);
|
|
477
|
+
lastSegmentLength =
|
|
478
|
+
res.length - 1 - res.indexOf(separator);
|
|
479
|
+
}
|
|
480
|
+
lastSlash = i;
|
|
481
|
+
dots = 0;
|
|
482
|
+
continue;
|
|
483
|
+
}
|
|
484
|
+
else if (res.length !== 0) {
|
|
485
|
+
res = '';
|
|
486
|
+
lastSegmentLength = 0;
|
|
487
|
+
lastSlash = i;
|
|
488
|
+
dots = 0;
|
|
489
|
+
continue;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
if (allowAboveRoot) {
|
|
493
|
+
res += res.length > 0 ? `${separator}..` : '..';
|
|
494
|
+
lastSegmentLength = 2;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
else {
|
|
498
|
+
if (res.length > 0) {
|
|
499
|
+
res += `${separator}${path.slice(lastSlash + 1, i)}`;
|
|
500
|
+
}
|
|
501
|
+
else {
|
|
502
|
+
res = path.slice(lastSlash + 1, i);
|
|
503
|
+
}
|
|
504
|
+
lastSegmentLength = i - lastSlash - 1;
|
|
505
|
+
}
|
|
506
|
+
lastSlash = i;
|
|
507
|
+
dots = 0;
|
|
508
|
+
}
|
|
509
|
+
else if (code === CHAR_DOT && dots !== -1) {
|
|
510
|
+
++dots;
|
|
511
|
+
}
|
|
512
|
+
else {
|
|
513
|
+
dots = -1;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
return res;
|
|
517
|
+
}
|
|
518
|
+
function resolve(...args) {
|
|
519
|
+
// On Windows, host paths are `D:\…` style. The POSIX-only resolver
|
|
520
|
+
// below treats `D` as a non-`/` character and produces garbage; route
|
|
521
|
+
// to the Windows-aware variant. POSIX hosts (Linux/macOS/browser)
|
|
522
|
+
// run the original code path unchanged — `_isWin32` is constant-folded
|
|
523
|
+
// away on those targets.
|
|
524
|
+
if (_isWin32)
|
|
525
|
+
return resolveWin32(args);
|
|
526
|
+
let resolvedPath = '';
|
|
527
|
+
let resolvedAbsolute = false;
|
|
528
|
+
for (let i = args.length - 1; i >= -1 && !resolvedAbsolute; i--) {
|
|
529
|
+
const path = i >= 0 ? args[i] : '/';
|
|
530
|
+
validateString(path, 'path');
|
|
531
|
+
// Skip empty entries
|
|
532
|
+
if (path.length === 0) {
|
|
533
|
+
continue;
|
|
534
|
+
}
|
|
535
|
+
resolvedPath = `${path}/${resolvedPath}`;
|
|
536
|
+
resolvedAbsolute = path.charCodeAt(0) === CHAR_FORWARD_SLASH;
|
|
537
|
+
}
|
|
538
|
+
// At this point the path should be resolved to a full absolute path, but
|
|
539
|
+
// handle relative paths to be safe (might happen when process.cwd() fails)
|
|
540
|
+
// Normalize the path
|
|
541
|
+
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute, '/', isPosixPathSeparator);
|
|
542
|
+
if (resolvedAbsolute) {
|
|
543
|
+
return `/${resolvedPath}`;
|
|
544
|
+
}
|
|
545
|
+
return resolvedPath.length > 0 ? resolvedPath : '.';
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
const FD_DATASYNC = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(0));
|
|
549
|
+
const FD_READ = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(1));
|
|
550
|
+
const FD_SEEK = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(2));
|
|
551
|
+
const FD_FDSTAT_SET_FLAGS = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(3));
|
|
552
|
+
const FD_SYNC = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(4));
|
|
553
|
+
const FD_TELL = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(5));
|
|
554
|
+
const FD_WRITE = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(6));
|
|
555
|
+
const FD_ADVISE = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(7));
|
|
556
|
+
const FD_ALLOCATE = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(8));
|
|
557
|
+
const PATH_CREATE_DIRECTORY = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(9));
|
|
558
|
+
const PATH_CREATE_FILE = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(10));
|
|
559
|
+
const PATH_LINK_SOURCE = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(11));
|
|
560
|
+
const PATH_LINK_TARGET = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(12));
|
|
561
|
+
const PATH_OPEN = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(13));
|
|
562
|
+
const FD_READDIR = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(14));
|
|
563
|
+
const PATH_READLINK = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(15));
|
|
564
|
+
const PATH_RENAME_SOURCE = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(16));
|
|
565
|
+
const PATH_RENAME_TARGET = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(17));
|
|
566
|
+
const PATH_FILESTAT_GET = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(18));
|
|
567
|
+
const PATH_FILESTAT_SET_SIZE = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(19));
|
|
568
|
+
const PATH_FILESTAT_SET_TIMES = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(20));
|
|
569
|
+
const FD_FILESTAT_GET = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(21));
|
|
570
|
+
const FD_FILESTAT_SET_SIZE = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(22));
|
|
571
|
+
const FD_FILESTAT_SET_TIMES = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(23));
|
|
572
|
+
const PATH_SYMLINK = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(24));
|
|
573
|
+
const PATH_REMOVE_DIRECTORY = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(25));
|
|
574
|
+
const PATH_UNLINK_FILE = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(26));
|
|
575
|
+
const POLL_FD_READWRITE = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(27));
|
|
576
|
+
const SOCK_SHUTDOWN = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(28));
|
|
577
|
+
const SOCK_ACCEPT = ( /*#__PURE__*/BigInt(1) << /*#__PURE__*/ BigInt(29));
|
|
578
|
+
const WasiRights = {
|
|
579
|
+
FD_DATASYNC,
|
|
580
|
+
FD_READ,
|
|
581
|
+
FD_SEEK,
|
|
582
|
+
FD_FDSTAT_SET_FLAGS,
|
|
583
|
+
FD_SYNC,
|
|
584
|
+
FD_TELL,
|
|
585
|
+
FD_WRITE,
|
|
586
|
+
FD_ADVISE,
|
|
587
|
+
FD_ALLOCATE,
|
|
588
|
+
PATH_CREATE_DIRECTORY,
|
|
589
|
+
PATH_CREATE_FILE,
|
|
590
|
+
PATH_LINK_SOURCE,
|
|
591
|
+
PATH_LINK_TARGET,
|
|
592
|
+
PATH_OPEN,
|
|
593
|
+
FD_READDIR,
|
|
594
|
+
PATH_READLINK,
|
|
595
|
+
PATH_RENAME_SOURCE,
|
|
596
|
+
PATH_RENAME_TARGET,
|
|
597
|
+
PATH_FILESTAT_GET,
|
|
598
|
+
PATH_FILESTAT_SET_SIZE,
|
|
599
|
+
PATH_FILESTAT_SET_TIMES,
|
|
600
|
+
FD_FILESTAT_GET,
|
|
601
|
+
FD_FILESTAT_SET_SIZE,
|
|
602
|
+
FD_FILESTAT_SET_TIMES,
|
|
603
|
+
PATH_SYMLINK,
|
|
604
|
+
PATH_REMOVE_DIRECTORY,
|
|
605
|
+
PATH_UNLINK_FILE,
|
|
606
|
+
POLL_FD_READWRITE,
|
|
607
|
+
SOCK_SHUTDOWN,
|
|
608
|
+
SOCK_ACCEPT
|
|
609
|
+
};
|
|
610
|
+
|
|
611
|
+
function strerror(errno) {
|
|
612
|
+
switch (errno) {
|
|
613
|
+
case 0 /* WasiErrno.ESUCCESS */: return 'Success';
|
|
614
|
+
case 1 /* WasiErrno.E2BIG */: return 'Argument list too long';
|
|
615
|
+
case 2 /* WasiErrno.EACCES */: return 'Permission denied';
|
|
616
|
+
case 3 /* WasiErrno.EADDRINUSE */: return 'Address in use';
|
|
617
|
+
case 4 /* WasiErrno.EADDRNOTAVAIL */: return 'Address not available';
|
|
618
|
+
case 5 /* WasiErrno.EAFNOSUPPORT */: return 'Address family not supported by protocol';
|
|
619
|
+
case 6 /* WasiErrno.EAGAIN */: return 'Resource temporarily unavailable';
|
|
620
|
+
case 7 /* WasiErrno.EALREADY */: return 'Operation already in progress';
|
|
621
|
+
case 8 /* WasiErrno.EBADF */: return 'Bad file descriptor';
|
|
622
|
+
case 9 /* WasiErrno.EBADMSG */: return 'Bad message';
|
|
623
|
+
case 10 /* WasiErrno.EBUSY */: return 'Resource busy';
|
|
624
|
+
case 11 /* WasiErrno.ECANCELED */: return 'Operation canceled';
|
|
625
|
+
case 12 /* WasiErrno.ECHILD */: return 'No child process';
|
|
626
|
+
case 13 /* WasiErrno.ECONNABORTED */: return 'Connection aborted';
|
|
627
|
+
case 14 /* WasiErrno.ECONNREFUSED */: return 'Connection refused';
|
|
628
|
+
case 15 /* WasiErrno.ECONNRESET */: return 'Connection reset by peer';
|
|
629
|
+
case 16 /* WasiErrno.EDEADLK */: return 'Resource deadlock would occur';
|
|
630
|
+
case 17 /* WasiErrno.EDESTADDRREQ */: return 'Destination address required';
|
|
631
|
+
case 18 /* WasiErrno.EDOM */: return 'Domain error';
|
|
632
|
+
case 19 /* WasiErrno.EDQUOT */: return 'Quota exceeded';
|
|
633
|
+
case 20 /* WasiErrno.EEXIST */: return 'File exists';
|
|
634
|
+
case 21 /* WasiErrno.EFAULT */: return 'Bad address';
|
|
635
|
+
case 22 /* WasiErrno.EFBIG */: return 'File too large';
|
|
636
|
+
case 23 /* WasiErrno.EHOSTUNREACH */: return 'Host is unreachable';
|
|
637
|
+
case 24 /* WasiErrno.EIDRM */: return 'Identifier removed';
|
|
638
|
+
case 25 /* WasiErrno.EILSEQ */: return 'Illegal byte sequence';
|
|
639
|
+
case 26 /* WasiErrno.EINPROGRESS */: return 'Operation in progress';
|
|
640
|
+
case 27 /* WasiErrno.EINTR */: return 'Interrupted system call';
|
|
641
|
+
case 28 /* WasiErrno.EINVAL */: return 'Invalid argument';
|
|
642
|
+
case 29 /* WasiErrno.EIO */: return 'I/O error';
|
|
643
|
+
case 30 /* WasiErrno.EISCONN */: return 'Socket is connected';
|
|
644
|
+
case 31 /* WasiErrno.EISDIR */: return 'Is a directory';
|
|
645
|
+
case 32 /* WasiErrno.ELOOP */: return 'Symbolic link loop';
|
|
646
|
+
case 33 /* WasiErrno.EMFILE */: return 'No file descriptors available';
|
|
647
|
+
case 34 /* WasiErrno.EMLINK */: return 'Too many links';
|
|
648
|
+
case 35 /* WasiErrno.EMSGSIZE */: return 'Message too large';
|
|
649
|
+
case 36 /* WasiErrno.EMULTIHOP */: return 'Multihop attempted';
|
|
650
|
+
case 37 /* WasiErrno.ENAMETOOLONG */: return 'Filename too long';
|
|
651
|
+
case 38 /* WasiErrno.ENETDOWN */: return 'Network is down';
|
|
652
|
+
case 39 /* WasiErrno.ENETRESET */: return 'Connection reset by network';
|
|
653
|
+
case 40 /* WasiErrno.ENETUNREACH */: return 'Network unreachable';
|
|
654
|
+
case 41 /* WasiErrno.ENFILE */: return 'Too many files open in system';
|
|
655
|
+
case 42 /* WasiErrno.ENOBUFS */: return 'No buffer space available';
|
|
656
|
+
case 43 /* WasiErrno.ENODEV */: return 'No such device';
|
|
657
|
+
case 44 /* WasiErrno.ENOENT */: return 'No such file or directory';
|
|
658
|
+
case 45 /* WasiErrno.ENOEXEC */: return 'Exec format error';
|
|
659
|
+
case 46 /* WasiErrno.ENOLCK */: return 'No locks available';
|
|
660
|
+
case 47 /* WasiErrno.ENOLINK */: return 'Link has been severed';
|
|
661
|
+
case 48 /* WasiErrno.ENOMEM */: return 'Out of memory';
|
|
662
|
+
case 49 /* WasiErrno.ENOMSG */: return 'No message of the desired type';
|
|
663
|
+
case 50 /* WasiErrno.ENOPROTOOPT */: return 'Protocol not available';
|
|
664
|
+
case 51 /* WasiErrno.ENOSPC */: return 'No space left on device';
|
|
665
|
+
case 52 /* WasiErrno.ENOSYS */: return 'Function not implemented';
|
|
666
|
+
case 53 /* WasiErrno.ENOTCONN */: return 'Socket not connected';
|
|
667
|
+
case 54 /* WasiErrno.ENOTDIR */: return 'Not a directory';
|
|
668
|
+
case 55 /* WasiErrno.ENOTEMPTY */: return 'Directory not empty';
|
|
669
|
+
case 56 /* WasiErrno.ENOTRECOVERABLE */: return 'State not recoverable';
|
|
670
|
+
case 57 /* WasiErrno.ENOTSOCK */: return 'Not a socket';
|
|
671
|
+
case 58 /* WasiErrno.ENOTSUP */: return 'Not supported';
|
|
672
|
+
case 59 /* WasiErrno.ENOTTY */: return 'Not a tty';
|
|
673
|
+
case 60 /* WasiErrno.ENXIO */: return 'No such device or address';
|
|
674
|
+
case 61 /* WasiErrno.EOVERFLOW */: return 'Value too large for data type';
|
|
675
|
+
case 62 /* WasiErrno.EOWNERDEAD */: return 'Previous owner died';
|
|
676
|
+
case 63 /* WasiErrno.EPERM */: return 'Operation not permitted';
|
|
677
|
+
case 64 /* WasiErrno.EPIPE */: return 'Broken pipe';
|
|
678
|
+
case 65 /* WasiErrno.EPROTO */: return 'Protocol error';
|
|
679
|
+
case 66 /* WasiErrno.EPROTONOSUPPORT */: return 'Protocol not supported';
|
|
680
|
+
case 67 /* WasiErrno.EPROTOTYPE */: return 'Protocol wrong type for socket';
|
|
681
|
+
case 68 /* WasiErrno.ERANGE */: return 'Result not representable';
|
|
682
|
+
case 69 /* WasiErrno.EROFS */: return 'Read-only file system';
|
|
683
|
+
case 70 /* WasiErrno.ESPIPE */: return 'Invalid seek';
|
|
684
|
+
case 71 /* WasiErrno.ESRCH */: return 'No such process';
|
|
685
|
+
case 72 /* WasiErrno.ESTALE */: return 'Stale file handle';
|
|
686
|
+
case 73 /* WasiErrno.ETIMEDOUT */: return 'Operation timed out';
|
|
687
|
+
case 74 /* WasiErrno.ETXTBSY */: return 'Text file busy';
|
|
688
|
+
case 75 /* WasiErrno.EXDEV */: return 'Cross-device link';
|
|
689
|
+
case 76 /* WasiErrno.ENOTCAPABLE */: return 'Capabilities insufficient';
|
|
690
|
+
default: return 'Unknown error';
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
class WasiError extends Error {
|
|
694
|
+
constructor(message, errno) {
|
|
695
|
+
super(message);
|
|
696
|
+
this.errno = errno;
|
|
697
|
+
}
|
|
698
|
+
getErrorMessage() {
|
|
699
|
+
return strerror(this.errno);
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
Object.defineProperty(WasiError.prototype, 'name', {
|
|
703
|
+
configurable: true,
|
|
704
|
+
writable: true,
|
|
705
|
+
value: 'WasiError'
|
|
706
|
+
});
|
|
707
|
+
|
|
708
|
+
const RIGHTS_ALL = WasiRights.FD_DATASYNC |
|
|
709
|
+
WasiRights.FD_READ |
|
|
710
|
+
WasiRights.FD_SEEK |
|
|
711
|
+
WasiRights.FD_FDSTAT_SET_FLAGS |
|
|
712
|
+
WasiRights.FD_SYNC |
|
|
713
|
+
WasiRights.FD_TELL |
|
|
714
|
+
WasiRights.FD_WRITE |
|
|
715
|
+
WasiRights.FD_ADVISE |
|
|
716
|
+
WasiRights.FD_ALLOCATE |
|
|
717
|
+
WasiRights.PATH_CREATE_DIRECTORY |
|
|
718
|
+
WasiRights.PATH_CREATE_FILE |
|
|
719
|
+
WasiRights.PATH_LINK_SOURCE |
|
|
720
|
+
WasiRights.PATH_LINK_TARGET |
|
|
721
|
+
WasiRights.PATH_OPEN |
|
|
722
|
+
WasiRights.FD_READDIR |
|
|
723
|
+
WasiRights.PATH_READLINK |
|
|
724
|
+
WasiRights.PATH_RENAME_SOURCE |
|
|
725
|
+
WasiRights.PATH_RENAME_TARGET |
|
|
726
|
+
WasiRights.PATH_FILESTAT_GET |
|
|
727
|
+
WasiRights.PATH_FILESTAT_SET_SIZE |
|
|
728
|
+
WasiRights.PATH_FILESTAT_SET_TIMES |
|
|
729
|
+
WasiRights.FD_FILESTAT_GET |
|
|
730
|
+
WasiRights.FD_FILESTAT_SET_TIMES |
|
|
731
|
+
WasiRights.FD_FILESTAT_SET_SIZE |
|
|
732
|
+
WasiRights.PATH_SYMLINK |
|
|
733
|
+
WasiRights.PATH_UNLINK_FILE |
|
|
734
|
+
WasiRights.PATH_REMOVE_DIRECTORY |
|
|
735
|
+
WasiRights.POLL_FD_READWRITE |
|
|
736
|
+
WasiRights.SOCK_SHUTDOWN |
|
|
737
|
+
WasiRights.SOCK_ACCEPT;
|
|
738
|
+
const BLOCK_DEVICE_BASE = RIGHTS_ALL;
|
|
739
|
+
const BLOCK_DEVICE_INHERITING = RIGHTS_ALL;
|
|
740
|
+
const CHARACTER_DEVICE_BASE = RIGHTS_ALL;
|
|
741
|
+
const CHARACTER_DEVICE_INHERITING = RIGHTS_ALL;
|
|
742
|
+
const REGULAR_FILE_BASE = WasiRights.FD_DATASYNC |
|
|
743
|
+
WasiRights.FD_READ |
|
|
744
|
+
WasiRights.FD_SEEK |
|
|
745
|
+
WasiRights.FD_FDSTAT_SET_FLAGS |
|
|
746
|
+
WasiRights.FD_SYNC |
|
|
747
|
+
WasiRights.FD_TELL |
|
|
748
|
+
WasiRights.FD_WRITE |
|
|
749
|
+
WasiRights.FD_ADVISE |
|
|
750
|
+
WasiRights.FD_ALLOCATE |
|
|
751
|
+
WasiRights.FD_FILESTAT_GET |
|
|
752
|
+
WasiRights.FD_FILESTAT_SET_SIZE |
|
|
753
|
+
WasiRights.FD_FILESTAT_SET_TIMES |
|
|
754
|
+
WasiRights.POLL_FD_READWRITE;
|
|
755
|
+
const REGULAR_FILE_INHERITING = /*#__PURE__*/ BigInt(0);
|
|
756
|
+
const DIRECTORY_BASE = WasiRights.FD_FDSTAT_SET_FLAGS |
|
|
757
|
+
WasiRights.FD_SYNC |
|
|
758
|
+
WasiRights.FD_ADVISE |
|
|
759
|
+
WasiRights.PATH_CREATE_DIRECTORY |
|
|
760
|
+
WasiRights.PATH_CREATE_FILE |
|
|
761
|
+
WasiRights.PATH_LINK_SOURCE |
|
|
762
|
+
WasiRights.PATH_LINK_TARGET |
|
|
763
|
+
WasiRights.PATH_OPEN |
|
|
764
|
+
WasiRights.FD_READDIR |
|
|
765
|
+
WasiRights.PATH_READLINK |
|
|
766
|
+
WasiRights.PATH_RENAME_SOURCE |
|
|
767
|
+
WasiRights.PATH_RENAME_TARGET |
|
|
768
|
+
WasiRights.PATH_FILESTAT_GET |
|
|
769
|
+
WasiRights.PATH_FILESTAT_SET_SIZE |
|
|
770
|
+
WasiRights.PATH_FILESTAT_SET_TIMES |
|
|
771
|
+
WasiRights.FD_FILESTAT_GET |
|
|
772
|
+
WasiRights.FD_FILESTAT_SET_TIMES |
|
|
773
|
+
WasiRights.PATH_SYMLINK |
|
|
774
|
+
WasiRights.PATH_UNLINK_FILE |
|
|
775
|
+
WasiRights.PATH_REMOVE_DIRECTORY |
|
|
776
|
+
WasiRights.POLL_FD_READWRITE;
|
|
777
|
+
const DIRECTORY_INHERITING = DIRECTORY_BASE | REGULAR_FILE_BASE;
|
|
778
|
+
const SOCKET_BASE = (WasiRights.FD_READ |
|
|
779
|
+
WasiRights.FD_FDSTAT_SET_FLAGS |
|
|
780
|
+
WasiRights.FD_WRITE |
|
|
781
|
+
WasiRights.FD_FILESTAT_GET |
|
|
782
|
+
WasiRights.POLL_FD_READWRITE |
|
|
783
|
+
WasiRights.SOCK_SHUTDOWN);
|
|
784
|
+
const SOCKET_INHERITING = RIGHTS_ALL;
|
|
785
|
+
const TTY_BASE = WasiRights.FD_READ |
|
|
786
|
+
WasiRights.FD_FDSTAT_SET_FLAGS |
|
|
787
|
+
WasiRights.FD_WRITE |
|
|
788
|
+
WasiRights.FD_FILESTAT_GET |
|
|
789
|
+
WasiRights.POLL_FD_READWRITE;
|
|
790
|
+
const TTY_INHERITING = /*#__PURE__*/ BigInt(0);
|
|
791
|
+
function getRights(stdio, fd, flags, type) {
|
|
792
|
+
const ret = {
|
|
793
|
+
base: BigInt(0),
|
|
794
|
+
inheriting: BigInt(0)
|
|
795
|
+
};
|
|
796
|
+
if (type === 0 /* WasiFileType.UNKNOWN */) {
|
|
797
|
+
throw new WasiError('Unknown file type', 28 /* WasiErrno.EINVAL */);
|
|
798
|
+
}
|
|
799
|
+
switch (type) {
|
|
800
|
+
case 4 /* WasiFileType.REGULAR_FILE */:
|
|
801
|
+
ret.base = REGULAR_FILE_BASE;
|
|
802
|
+
ret.inheriting = REGULAR_FILE_INHERITING;
|
|
803
|
+
break;
|
|
804
|
+
case 3 /* WasiFileType.DIRECTORY */:
|
|
805
|
+
ret.base = DIRECTORY_BASE;
|
|
806
|
+
ret.inheriting = DIRECTORY_INHERITING;
|
|
807
|
+
break;
|
|
808
|
+
case 6 /* WasiFileType.SOCKET_STREAM */:
|
|
809
|
+
case 5 /* WasiFileType.SOCKET_DGRAM */:
|
|
810
|
+
ret.base = SOCKET_BASE;
|
|
811
|
+
ret.inheriting = SOCKET_INHERITING;
|
|
812
|
+
break;
|
|
813
|
+
case 2 /* WasiFileType.CHARACTER_DEVICE */:
|
|
814
|
+
if (stdio.indexOf(fd) !== -1) {
|
|
815
|
+
ret.base = TTY_BASE;
|
|
816
|
+
ret.inheriting = TTY_INHERITING;
|
|
817
|
+
}
|
|
818
|
+
else {
|
|
819
|
+
ret.base = CHARACTER_DEVICE_BASE;
|
|
820
|
+
ret.inheriting = CHARACTER_DEVICE_INHERITING;
|
|
821
|
+
}
|
|
822
|
+
break;
|
|
823
|
+
case 1 /* WasiFileType.BLOCK_DEVICE */:
|
|
824
|
+
ret.base = BLOCK_DEVICE_BASE;
|
|
825
|
+
ret.inheriting = BLOCK_DEVICE_INHERITING;
|
|
826
|
+
break;
|
|
827
|
+
default:
|
|
828
|
+
ret.base = BigInt(0);
|
|
829
|
+
ret.inheriting = BigInt(0);
|
|
830
|
+
}
|
|
831
|
+
/* Disable read/write bits depending on access mode. */
|
|
832
|
+
const read_or_write_only = flags & (0 | 1 | 2);
|
|
833
|
+
if (read_or_write_only === 0) {
|
|
834
|
+
ret.base &= ~WasiRights.FD_WRITE;
|
|
835
|
+
}
|
|
836
|
+
else if (read_or_write_only === 1) {
|
|
837
|
+
ret.base &= ~WasiRights.FD_READ;
|
|
838
|
+
}
|
|
839
|
+
return ret;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
function concatBuffer(buffers, size) {
|
|
843
|
+
let total = 0;
|
|
844
|
+
if (typeof size === 'number' && size >= 0) {
|
|
845
|
+
total = size;
|
|
846
|
+
}
|
|
847
|
+
else {
|
|
848
|
+
for (let i = 0; i < buffers.length; i++) {
|
|
849
|
+
const buffer = buffers[i];
|
|
850
|
+
total += buffer.length;
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
let pos = 0;
|
|
854
|
+
const ret = new Uint8Array(total);
|
|
855
|
+
for (let i = 0; i < buffers.length; i++) {
|
|
856
|
+
const buffer = buffers[i];
|
|
857
|
+
ret.set(buffer, pos);
|
|
858
|
+
pos += buffer.length;
|
|
859
|
+
}
|
|
860
|
+
return ret;
|
|
861
|
+
}
|
|
862
|
+
class FileDescriptor {
|
|
863
|
+
constructor(id, fd, path, realPath, type, rightsBase, rightsInheriting, preopen) {
|
|
864
|
+
this.id = id;
|
|
865
|
+
this.fd = fd;
|
|
866
|
+
this.path = path;
|
|
867
|
+
this.realPath = realPath;
|
|
868
|
+
this.type = type;
|
|
869
|
+
this.rightsBase = rightsBase;
|
|
870
|
+
this.rightsInheriting = rightsInheriting;
|
|
871
|
+
this.preopen = preopen;
|
|
872
|
+
this.pos = BigInt(0);
|
|
873
|
+
this.size = BigInt(0);
|
|
874
|
+
}
|
|
875
|
+
seek(offset, whence) {
|
|
876
|
+
if (whence === 0 /* WasiWhence.SET */) {
|
|
877
|
+
this.pos = BigInt(offset);
|
|
878
|
+
}
|
|
879
|
+
else if (whence === 1 /* WasiWhence.CUR */) {
|
|
880
|
+
this.pos += BigInt(offset);
|
|
881
|
+
}
|
|
882
|
+
else if (whence === 2 /* WasiWhence.END */) {
|
|
883
|
+
this.pos = BigInt(this.size) - BigInt(offset);
|
|
884
|
+
}
|
|
885
|
+
else {
|
|
886
|
+
throw new WasiError('Unknown whence', 29 /* WasiErrno.EIO */);
|
|
887
|
+
}
|
|
888
|
+
return this.pos;
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
class StandardOutput extends FileDescriptor {
|
|
892
|
+
constructor(log, id, fd, path, realPath, type, rightsBase, rightsInheriting, preopen) {
|
|
893
|
+
super(id, fd, path, realPath, type, rightsBase, rightsInheriting, preopen);
|
|
894
|
+
this._log = log;
|
|
895
|
+
this._buf = null;
|
|
896
|
+
}
|
|
897
|
+
write(buffer) {
|
|
898
|
+
const originalBuffer = buffer;
|
|
899
|
+
if (this._buf) {
|
|
900
|
+
buffer = concatBuffer([this._buf, buffer]);
|
|
901
|
+
this._buf = null;
|
|
902
|
+
}
|
|
903
|
+
if (buffer.indexOf(10) === -1) {
|
|
904
|
+
this._buf = buffer;
|
|
905
|
+
return originalBuffer.byteLength;
|
|
906
|
+
}
|
|
907
|
+
let written = 0;
|
|
908
|
+
let lastBegin = 0;
|
|
909
|
+
let index;
|
|
910
|
+
while ((index = buffer.indexOf(10, written)) !== -1) {
|
|
911
|
+
const str = new TextDecoder().decode(buffer.subarray(lastBegin, index));
|
|
912
|
+
this._log(str);
|
|
913
|
+
written += index - lastBegin + 1;
|
|
914
|
+
lastBegin = index + 1;
|
|
915
|
+
}
|
|
916
|
+
if (written < buffer.length) {
|
|
917
|
+
this._buf = buffer.slice(written);
|
|
918
|
+
}
|
|
919
|
+
return originalBuffer.byteLength;
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
function toFileType(stat) {
|
|
923
|
+
if (stat.isBlockDevice())
|
|
924
|
+
return 1 /* WasiFileType.BLOCK_DEVICE */;
|
|
925
|
+
if (stat.isCharacterDevice())
|
|
926
|
+
return 2 /* WasiFileType.CHARACTER_DEVICE */;
|
|
927
|
+
if (stat.isDirectory())
|
|
928
|
+
return 3 /* WasiFileType.DIRECTORY */;
|
|
929
|
+
if (stat.isSocket())
|
|
930
|
+
return 6 /* WasiFileType.SOCKET_STREAM */;
|
|
931
|
+
if (stat.isFile())
|
|
932
|
+
return 4 /* WasiFileType.REGULAR_FILE */;
|
|
933
|
+
if (stat.isSymbolicLink())
|
|
934
|
+
return 7 /* WasiFileType.SYMBOLIC_LINK */;
|
|
935
|
+
return 0 /* WasiFileType.UNKNOWN */;
|
|
936
|
+
}
|
|
937
|
+
function toFileStat(view, buf, stat) {
|
|
938
|
+
view.setBigUint64(buf, stat.dev, true);
|
|
939
|
+
view.setBigUint64(buf + 8, stat.ino, true);
|
|
940
|
+
view.setBigUint64(buf + 16, BigInt(toFileType(stat)), true);
|
|
941
|
+
view.setBigUint64(buf + 24, stat.nlink, true);
|
|
942
|
+
view.setBigUint64(buf + 32, stat.size, true);
|
|
943
|
+
view.setBigUint64(buf + 40, stat.atimeMs * BigInt(1000000), true);
|
|
944
|
+
view.setBigUint64(buf + 48, stat.mtimeMs * BigInt(1000000), true);
|
|
945
|
+
view.setBigUint64(buf + 56, stat.ctimeMs * BigInt(1000000), true);
|
|
946
|
+
}
|
|
947
|
+
class FileDescriptorTable {
|
|
948
|
+
constructor(options) {
|
|
949
|
+
this.used = 0;
|
|
950
|
+
this.size = options.size;
|
|
951
|
+
this.fds = Array(options.size);
|
|
952
|
+
this.stdio = [options.in, options.out, options.err];
|
|
953
|
+
this.print = options.print;
|
|
954
|
+
this.printErr = options.printErr;
|
|
955
|
+
this.insertStdio(options.in, 0, '<stdin>');
|
|
956
|
+
this.insertStdio(options.out, 1, '<stdout>');
|
|
957
|
+
this.insertStdio(options.err, 2, '<stderr>');
|
|
958
|
+
}
|
|
959
|
+
insertStdio(fd, expected, name) {
|
|
960
|
+
const type = 2 /* WasiFileType.CHARACTER_DEVICE */;
|
|
961
|
+
const { base, inheriting } = getRights(this.stdio, fd, 2 /* FileControlFlag.O_RDWR */, type);
|
|
962
|
+
const wrap = this.insert(fd, name, name, type, base, inheriting, 0);
|
|
963
|
+
if (wrap.id !== expected) {
|
|
964
|
+
throw new WasiError(`id: ${wrap.id} !== expected: ${expected}`, 8 /* WasiErrno.EBADF */);
|
|
965
|
+
}
|
|
966
|
+
return wrap;
|
|
967
|
+
}
|
|
968
|
+
insert(fd, mappedPath, realPath, type, rightsBase, rightsInheriting, preopen) {
|
|
969
|
+
var _a, _b;
|
|
970
|
+
let index = -1;
|
|
971
|
+
if (this.used >= this.size) {
|
|
972
|
+
const newSize = this.size * 2;
|
|
973
|
+
this.fds.length = newSize;
|
|
974
|
+
index = this.size;
|
|
975
|
+
this.size = newSize;
|
|
976
|
+
}
|
|
977
|
+
else {
|
|
978
|
+
for (let i = 0; i < this.size; ++i) {
|
|
979
|
+
if (this.fds[i] == null) {
|
|
980
|
+
index = i;
|
|
981
|
+
break;
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
let entry;
|
|
986
|
+
if (mappedPath === '<stdout>') {
|
|
987
|
+
entry = new StandardOutput((_a = this.print) !== null && _a !== void 0 ? _a : console.log, index, fd, mappedPath, realPath, type, rightsBase, rightsInheriting, preopen);
|
|
988
|
+
}
|
|
989
|
+
else if (mappedPath === '<stderr>') {
|
|
990
|
+
entry = new StandardOutput((_b = this.printErr) !== null && _b !== void 0 ? _b : console.error, index, fd, mappedPath, realPath, type, rightsBase, rightsInheriting, preopen);
|
|
991
|
+
}
|
|
992
|
+
else {
|
|
993
|
+
entry = new FileDescriptor(index, fd, mappedPath, realPath, type, rightsBase, rightsInheriting, preopen);
|
|
994
|
+
}
|
|
995
|
+
this.fds[index] = entry;
|
|
996
|
+
this.used++;
|
|
997
|
+
return entry;
|
|
998
|
+
}
|
|
999
|
+
get(id, base, inheriting) {
|
|
1000
|
+
if (id >= this.size) {
|
|
1001
|
+
throw new WasiError('Invalid fd', 8 /* WasiErrno.EBADF */);
|
|
1002
|
+
}
|
|
1003
|
+
const entry = this.fds[id];
|
|
1004
|
+
if (!entry || entry.id !== id) {
|
|
1005
|
+
throw new WasiError('Bad file descriptor', 8 /* WasiErrno.EBADF */);
|
|
1006
|
+
}
|
|
1007
|
+
/* Validate that the fd has the necessary rights. */
|
|
1008
|
+
if ((~entry.rightsBase & base) !== BigInt(0) || (~entry.rightsInheriting & inheriting) !== BigInt(0)) {
|
|
1009
|
+
throw new WasiError('Capabilities insufficient', 76 /* WasiErrno.ENOTCAPABLE */);
|
|
1010
|
+
}
|
|
1011
|
+
return entry;
|
|
1012
|
+
}
|
|
1013
|
+
remove(id) {
|
|
1014
|
+
if (id >= this.size) {
|
|
1015
|
+
throw new WasiError('Invalid fd', 8 /* WasiErrno.EBADF */);
|
|
1016
|
+
}
|
|
1017
|
+
const entry = this.fds[id];
|
|
1018
|
+
if (!entry || entry.id !== id) {
|
|
1019
|
+
throw new WasiError('Bad file descriptor', 8 /* WasiErrno.EBADF */);
|
|
1020
|
+
}
|
|
1021
|
+
this.fds[id] = undefined;
|
|
1022
|
+
this.used--;
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
class SyncTable extends FileDescriptorTable {
|
|
1026
|
+
constructor(options) {
|
|
1027
|
+
super(options);
|
|
1028
|
+
this.fs = options.fs;
|
|
1029
|
+
}
|
|
1030
|
+
getFileTypeByFd(fd) {
|
|
1031
|
+
const stats = this.fs.fstatSync(fd, { bigint: true });
|
|
1032
|
+
return toFileType(stats);
|
|
1033
|
+
}
|
|
1034
|
+
insertPreopen(fd, mappedPath, realPath) {
|
|
1035
|
+
const type = this.getFileTypeByFd(fd);
|
|
1036
|
+
if (type !== 3 /* WasiFileType.DIRECTORY */) {
|
|
1037
|
+
throw new WasiError(`Preopen not dir: ["${mappedPath}", "${realPath}"]`, 54 /* WasiErrno.ENOTDIR */);
|
|
1038
|
+
}
|
|
1039
|
+
const result = getRights(this.stdio, fd, 0, type);
|
|
1040
|
+
return this.insert(fd, mappedPath, realPath, type, result.base, result.inheriting, 1);
|
|
1041
|
+
}
|
|
1042
|
+
renumber(dst, src) {
|
|
1043
|
+
if (dst === src)
|
|
1044
|
+
return;
|
|
1045
|
+
if (dst >= this.size || src >= this.size) {
|
|
1046
|
+
throw new WasiError('Invalid fd', 8 /* WasiErrno.EBADF */);
|
|
1047
|
+
}
|
|
1048
|
+
const dstEntry = this.fds[dst];
|
|
1049
|
+
const srcEntry = this.fds[src];
|
|
1050
|
+
if (!dstEntry || !srcEntry || dstEntry.id !== dst || srcEntry.id !== src) {
|
|
1051
|
+
throw new WasiError('Invalid fd', 8 /* WasiErrno.EBADF */);
|
|
1052
|
+
}
|
|
1053
|
+
this.fs.closeSync(dstEntry.fd);
|
|
1054
|
+
this.fds[dst] = this.fds[src];
|
|
1055
|
+
this.fds[dst].id = dst;
|
|
1056
|
+
this.fds[src] = undefined;
|
|
1057
|
+
this.used--;
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
class AsyncTable extends FileDescriptorTable {
|
|
1061
|
+
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
1062
|
+
constructor(options) {
|
|
1063
|
+
super(options);
|
|
1064
|
+
}
|
|
1065
|
+
async getFileTypeByFd(fd) {
|
|
1066
|
+
const stats = await fd.stat({ bigint: true });
|
|
1067
|
+
return toFileType(stats);
|
|
1068
|
+
}
|
|
1069
|
+
async insertPreopen(fd, mappedPath, realPath) {
|
|
1070
|
+
const type = await this.getFileTypeByFd(fd);
|
|
1071
|
+
if (type !== 3 /* WasiFileType.DIRECTORY */) {
|
|
1072
|
+
throw new WasiError(`Preopen not dir: ["${mappedPath}", "${realPath}"]`, 54 /* WasiErrno.ENOTDIR */);
|
|
1073
|
+
}
|
|
1074
|
+
const result = getRights(this.stdio, fd.fd, 0, type);
|
|
1075
|
+
return this.insert(fd, mappedPath, realPath, type, result.base, result.inheriting, 1);
|
|
1076
|
+
}
|
|
1077
|
+
async renumber(dst, src) {
|
|
1078
|
+
if (dst === src)
|
|
1079
|
+
return;
|
|
1080
|
+
if (dst >= this.size || src >= this.size) {
|
|
1081
|
+
throw new WasiError('Invalid fd', 8 /* WasiErrno.EBADF */);
|
|
1082
|
+
}
|
|
1083
|
+
const dstEntry = this.fds[dst];
|
|
1084
|
+
const srcEntry = this.fds[src];
|
|
1085
|
+
if (!dstEntry || !srcEntry || dstEntry.id !== dst || srcEntry.id !== src) {
|
|
1086
|
+
throw new WasiError('Invalid fd', 8 /* WasiErrno.EBADF */);
|
|
1087
|
+
}
|
|
1088
|
+
await dstEntry.fd.close();
|
|
1089
|
+
this.fds[dst] = this.fds[src];
|
|
1090
|
+
this.fds[dst].id = dst;
|
|
1091
|
+
this.fds[src] = undefined;
|
|
1092
|
+
this.used--;
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
/** @public */
|
|
1097
|
+
const WebAssemblyMemory = /*#__PURE__*/ (function () { return _WebAssembly.Memory; })();
|
|
1098
|
+
/** @public */
|
|
1099
|
+
class Memory extends WebAssemblyMemory {
|
|
1100
|
+
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
1101
|
+
constructor(descriptor) {
|
|
1102
|
+
super(descriptor);
|
|
1103
|
+
}
|
|
1104
|
+
get HEAP8() { return new Int8Array(super.buffer); }
|
|
1105
|
+
get HEAPU8() { return new Uint8Array(super.buffer); }
|
|
1106
|
+
get HEAP16() { return new Int16Array(super.buffer); }
|
|
1107
|
+
get HEAPU16() { return new Uint16Array(super.buffer); }
|
|
1108
|
+
get HEAP32() { return new Int32Array(super.buffer); }
|
|
1109
|
+
get HEAPU32() { return new Uint32Array(super.buffer); }
|
|
1110
|
+
get HEAP64() { return new BigInt64Array(super.buffer); }
|
|
1111
|
+
get HEAPU64() { return new BigUint64Array(super.buffer); }
|
|
1112
|
+
get HEAPF32() { return new Float32Array(super.buffer); }
|
|
1113
|
+
get HEAPF64() { return new Float64Array(super.buffer); }
|
|
1114
|
+
get view() { return new DataView(super.buffer); }
|
|
1115
|
+
}
|
|
1116
|
+
/** @public */
|
|
1117
|
+
function extendMemory(memory) {
|
|
1118
|
+
if (Object.getPrototypeOf(memory) === _WebAssembly.Memory.prototype) {
|
|
1119
|
+
Object.setPrototypeOf(memory, Memory.prototype);
|
|
1120
|
+
}
|
|
1121
|
+
return memory;
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
function checkWebAssemblyFunction() {
|
|
1125
|
+
const WebAssemblyFunction = _WebAssembly.Function;
|
|
1126
|
+
if (typeof WebAssemblyFunction !== 'function') {
|
|
1127
|
+
throw new Error('WebAssembly.Function is not supported in this environment.' +
|
|
1128
|
+
' If you are using V8 based browser like Chrome, try to specify' +
|
|
1129
|
+
' --js-flags="--wasm-staging --experimental-wasm-stack-switching"');
|
|
1130
|
+
}
|
|
1131
|
+
return WebAssemblyFunction;
|
|
1132
|
+
}
|
|
1133
|
+
/** @public */
|
|
1134
|
+
function wrapAsyncImport(f, parameterType, returnType) {
|
|
1135
|
+
const WebAssemblyFunction = checkWebAssemblyFunction();
|
|
1136
|
+
if (typeof f !== 'function') {
|
|
1137
|
+
throw new TypeError('Function required');
|
|
1138
|
+
}
|
|
1139
|
+
const parameters = parameterType.slice(0);
|
|
1140
|
+
parameters.unshift('externref');
|
|
1141
|
+
return new WebAssemblyFunction({ parameters, results: returnType }, f, { suspending: 'first' });
|
|
1142
|
+
}
|
|
1143
|
+
/** @public */
|
|
1144
|
+
function wrapAsyncExport(f) {
|
|
1145
|
+
const WebAssemblyFunction = checkWebAssemblyFunction();
|
|
1146
|
+
if (typeof f !== 'function') {
|
|
1147
|
+
throw new TypeError('Function required');
|
|
1148
|
+
}
|
|
1149
|
+
return new WebAssemblyFunction({ parameters: [...WebAssemblyFunction.type(f).parameters.slice(1)], results: ['externref'] }, f, { promising: 'first' });
|
|
1150
|
+
}
|
|
1151
|
+
/** @public */
|
|
1152
|
+
function wrapExports(exports, needWrap) {
|
|
1153
|
+
return wrapInstanceExports(exports, (exportValue, name) => {
|
|
1154
|
+
let ignore = typeof exportValue !== 'function';
|
|
1155
|
+
if (Array.isArray(needWrap)) {
|
|
1156
|
+
ignore = ignore || (needWrap.indexOf(name) === -1);
|
|
1157
|
+
}
|
|
1158
|
+
return ignore ? exportValue : wrapAsyncExport(exportValue);
|
|
1159
|
+
});
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
// Linux fcntl flag bits ↔ Windows libuv flag bits. `pathOpen()` builds
|
|
1163
|
+
// `flagsRes` using Linux constants (O_CREAT=0x40, O_EXCL=0x80,
|
|
1164
|
+
// O_APPEND=0x400). Windows libuv expects different bits (O_CREAT=0x100,
|
|
1165
|
+
// O_EXCL=0x400, O_APPEND=0x8). Without translation,
|
|
1166
|
+
// `fs.openSync(path, 0x241 /* L:WRONLY|CREAT|TRUNC */)` is rejected
|
|
1167
|
+
// with EINVAL because Linux's 0x40 happens to mean O_TEMPORARY on
|
|
1168
|
+
// Windows — and O_TEMPORARY without O_CREAT is invalid.
|
|
1169
|
+
const _isWin32Flags = typeof process !== 'undefined' && process.platform === 'win32';
|
|
1170
|
+
function _toWinOpenFlags(f) {
|
|
1171
|
+
let r = f & 3; // RDONLY/WRONLY/RDWR — same on both
|
|
1172
|
+
if ((f & 0x40) !== 0)
|
|
1173
|
+
r |= 0x100; // O_CREAT: Linux 0x40 -> Windows 0x100
|
|
1174
|
+
if ((f & 0x80) !== 0)
|
|
1175
|
+
r |= 0x400; // O_EXCL: Linux 0x80 -> Windows 0x400
|
|
1176
|
+
if ((f & 0x200) !== 0)
|
|
1177
|
+
r |= 0x200; // O_TRUNC: same value on both
|
|
1178
|
+
if ((f & 0x400) !== 0)
|
|
1179
|
+
r |= 0x8; // O_APPEND: Linux 0x400 -> Windows 0x8
|
|
1180
|
+
return r;
|
|
1181
|
+
}
|
|
1182
|
+
function copyMemory(targets, src) {
|
|
1183
|
+
if (targets.length === 0 || src.length === 0)
|
|
1184
|
+
return 0;
|
|
1185
|
+
let copied = 0;
|
|
1186
|
+
let left = src.length - copied;
|
|
1187
|
+
for (let i = 0; i < targets.length; ++i) {
|
|
1188
|
+
const target = targets[i];
|
|
1189
|
+
if (left < target.length) {
|
|
1190
|
+
target.set(src.subarray(copied, copied + left), 0);
|
|
1191
|
+
copied += left;
|
|
1192
|
+
left = 0;
|
|
1193
|
+
return copied;
|
|
1194
|
+
}
|
|
1195
|
+
target.set(src.subarray(copied, copied + target.length), 0);
|
|
1196
|
+
copied += target.length;
|
|
1197
|
+
left -= target.length;
|
|
1198
|
+
}
|
|
1199
|
+
return copied;
|
|
1200
|
+
}
|
|
1201
|
+
const _memory = new WeakMap();
|
|
1202
|
+
const _wasi = new WeakMap();
|
|
1203
|
+
const _fs = new WeakMap();
|
|
1204
|
+
function ensureMemoryFor(memory, end) {
|
|
1205
|
+
let buffer = memory.buffer;
|
|
1206
|
+
if (end > buffer.byteLength) {
|
|
1207
|
+
memory.grow(0);
|
|
1208
|
+
buffer = memory.buffer;
|
|
1209
|
+
}
|
|
1210
|
+
return buffer;
|
|
1211
|
+
}
|
|
1212
|
+
function getMemory(wasi, end = 0) {
|
|
1213
|
+
const memory = _memory.get(wasi);
|
|
1214
|
+
ensureMemoryFor(memory, end);
|
|
1215
|
+
return memory;
|
|
1216
|
+
}
|
|
1217
|
+
function getFs(wasi) {
|
|
1218
|
+
const fs = _fs.get(wasi);
|
|
1219
|
+
if (!fs)
|
|
1220
|
+
throw new Error('filesystem is unavailable');
|
|
1221
|
+
return fs;
|
|
1222
|
+
}
|
|
1223
|
+
function handleError(err) {
|
|
1224
|
+
if (err instanceof WasiError) {
|
|
1225
|
+
if (((process.env.NODE_ENV)) !== 'production') {
|
|
1226
|
+
console.warn(err);
|
|
1227
|
+
}
|
|
1228
|
+
return err.errno;
|
|
1229
|
+
}
|
|
1230
|
+
switch (err.code) {
|
|
1231
|
+
case 'ENOENT': return 44 /* WasiErrno.ENOENT */;
|
|
1232
|
+
case 'EBADF': return 8 /* WasiErrno.EBADF */;
|
|
1233
|
+
case 'EINVAL': return 28 /* WasiErrno.EINVAL */;
|
|
1234
|
+
case 'EPERM': return 63 /* WasiErrno.EPERM */;
|
|
1235
|
+
case 'EPROTO': return 65 /* WasiErrno.EPROTO */;
|
|
1236
|
+
case 'EEXIST': return 20 /* WasiErrno.EEXIST */;
|
|
1237
|
+
case 'ENOTDIR': return 54 /* WasiErrno.ENOTDIR */;
|
|
1238
|
+
case 'EMFILE': return 33 /* WasiErrno.EMFILE */;
|
|
1239
|
+
case 'EACCES': return 2 /* WasiErrno.EACCES */;
|
|
1240
|
+
case 'EISDIR': return 31 /* WasiErrno.EISDIR */;
|
|
1241
|
+
case 'ENOTEMPTY': return 55 /* WasiErrno.ENOTEMPTY */;
|
|
1242
|
+
case 'ENOSYS': return 52 /* WasiErrno.ENOSYS */;
|
|
1243
|
+
}
|
|
1244
|
+
throw err;
|
|
1245
|
+
}
|
|
1246
|
+
function defineName(name, f) {
|
|
1247
|
+
Object.defineProperty(f, 'name', { value: name });
|
|
1248
|
+
return f;
|
|
1249
|
+
}
|
|
1250
|
+
function tryCall(f, wasi, args) {
|
|
1251
|
+
let r;
|
|
1252
|
+
try {
|
|
1253
|
+
r = f.apply(wasi, args);
|
|
1254
|
+
}
|
|
1255
|
+
catch (err) {
|
|
1256
|
+
return handleError(err);
|
|
1257
|
+
}
|
|
1258
|
+
if (isPromiseLike(r)) {
|
|
1259
|
+
return r.then(_ => _, handleError);
|
|
1260
|
+
}
|
|
1261
|
+
return r;
|
|
1262
|
+
}
|
|
1263
|
+
function syscallWrap(self, name, f) {
|
|
1264
|
+
let debug = false;
|
|
1265
|
+
const NODE_DEBUG_NATIVE = (() => {
|
|
1266
|
+
try {
|
|
1267
|
+
return process.env.NODE_DEBUG_NATIVE;
|
|
1268
|
+
}
|
|
1269
|
+
catch (_) {
|
|
1270
|
+
return undefined;
|
|
1271
|
+
}
|
|
1272
|
+
})();
|
|
1273
|
+
if (typeof NODE_DEBUG_NATIVE === 'string' && NODE_DEBUG_NATIVE.split(',').includes('wasi')) {
|
|
1274
|
+
debug = true;
|
|
1275
|
+
}
|
|
1276
|
+
return debug
|
|
1277
|
+
? defineName(name, function () {
|
|
1278
|
+
const args = Array.prototype.slice.call(arguments);
|
|
1279
|
+
let debugArgs = [`${name}(${Array.from({ length: arguments.length }).map(() => '%d').join(', ')})`];
|
|
1280
|
+
debugArgs = debugArgs.concat(args);
|
|
1281
|
+
console.debug.apply(console, debugArgs);
|
|
1282
|
+
return tryCall(f, self, args);
|
|
1283
|
+
})
|
|
1284
|
+
: defineName(name, function () {
|
|
1285
|
+
return tryCall(f, self, arguments);
|
|
1286
|
+
});
|
|
1287
|
+
}
|
|
1288
|
+
function resolvePathSync(fs, fileDescriptor, path, flags) {
|
|
1289
|
+
let resolvedPath = resolve(fileDescriptor.realPath, path);
|
|
1290
|
+
if ((flags & 1) === 1) {
|
|
1291
|
+
try {
|
|
1292
|
+
resolvedPath = fs.readlinkSync(resolvedPath);
|
|
1293
|
+
}
|
|
1294
|
+
catch (err) {
|
|
1295
|
+
if (err.code !== 'EINVAL' && err.code !== 'ENOENT') {
|
|
1296
|
+
throw err;
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
return resolvedPath;
|
|
1301
|
+
}
|
|
1302
|
+
async function resolvePathAsync(fs, fileDescriptor, path, flags) {
|
|
1303
|
+
let resolvedPath = resolve(fileDescriptor.realPath, path);
|
|
1304
|
+
if ((flags & 1) === 1) {
|
|
1305
|
+
try {
|
|
1306
|
+
resolvedPath = await fs.promises.readlink(resolvedPath);
|
|
1307
|
+
}
|
|
1308
|
+
catch (err) {
|
|
1309
|
+
if (err.code !== 'EINVAL' && err.code !== 'ENOENT') {
|
|
1310
|
+
throw err;
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
return resolvedPath;
|
|
1315
|
+
}
|
|
1316
|
+
// eslint-disable-next-line spaced-comment
|
|
1317
|
+
const encoder = /*#__PURE__*/ new TextEncoder();
|
|
1318
|
+
// eslint-disable-next-line spaced-comment
|
|
1319
|
+
const decoder = /*#__PURE__*/ new TextDecoder();
|
|
1320
|
+
const INT64_MAX = (BigInt(1) << BigInt(63)) - BigInt(1);
|
|
1321
|
+
function readStdin() {
|
|
1322
|
+
const value = window.prompt();
|
|
1323
|
+
if (value === null)
|
|
1324
|
+
return new Uint8Array();
|
|
1325
|
+
const buffer = new TextEncoder().encode(value + '\n');
|
|
1326
|
+
return buffer;
|
|
1327
|
+
}
|
|
1328
|
+
function validateFstFlagsOrReturn(flags) {
|
|
1329
|
+
return (Boolean((flags) & ~(1 /* WasiFstFlag.SET_ATIM */ | 2 /* WasiFstFlag.SET_ATIM_NOW */ |
|
|
1330
|
+
4 /* WasiFstFlag.SET_MTIM */ | 8 /* WasiFstFlag.SET_MTIM_NOW */)) ||
|
|
1331
|
+
((flags) & (1 /* WasiFstFlag.SET_ATIM */ | 2 /* WasiFstFlag.SET_ATIM_NOW */)) ===
|
|
1332
|
+
(1 /* WasiFstFlag.SET_ATIM */ | 2 /* WasiFstFlag.SET_ATIM_NOW */) ||
|
|
1333
|
+
((flags) & (4 /* WasiFstFlag.SET_MTIM */ | 8 /* WasiFstFlag.SET_MTIM_NOW */)) ===
|
|
1334
|
+
(4 /* WasiFstFlag.SET_MTIM */ | 8 /* WasiFstFlag.SET_MTIM_NOW */));
|
|
1335
|
+
}
|
|
1336
|
+
class WASI$1 {
|
|
1337
|
+
constructor(args, env, fds, asyncFs, fs, asyncify) {
|
|
1338
|
+
this.args_get = syscallWrap(this, 'args_get', function (argv, argv_buf) {
|
|
1339
|
+
argv = Number(argv);
|
|
1340
|
+
argv_buf = Number(argv_buf);
|
|
1341
|
+
if (argv === 0 || argv_buf === 0) {
|
|
1342
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1343
|
+
}
|
|
1344
|
+
const wasi = _wasi.get(this);
|
|
1345
|
+
const args = wasi.args;
|
|
1346
|
+
const argsSize = encoder.encode(args.join('\0') + '\0').length;
|
|
1347
|
+
const { HEAPU8, view } = getMemory(this, Math.max(argv + args.length * 4, argv_buf + argsSize));
|
|
1348
|
+
for (let i = 0; i < args.length; ++i) {
|
|
1349
|
+
const arg = args[i];
|
|
1350
|
+
view.setInt32(argv, argv_buf, true);
|
|
1351
|
+
argv += 4;
|
|
1352
|
+
const data = encoder.encode(arg + '\0');
|
|
1353
|
+
HEAPU8.set(data, argv_buf);
|
|
1354
|
+
argv_buf += data.length;
|
|
1355
|
+
}
|
|
1356
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1357
|
+
});
|
|
1358
|
+
this.args_sizes_get = syscallWrap(this, 'args_sizes_get', function (argc, argv_buf_size) {
|
|
1359
|
+
argc = Number(argc);
|
|
1360
|
+
argv_buf_size = Number(argv_buf_size);
|
|
1361
|
+
if (argc === 0 || argv_buf_size === 0) {
|
|
1362
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1363
|
+
}
|
|
1364
|
+
const { view } = getMemory(this, Math.max(argc + 4, argv_buf_size + 4));
|
|
1365
|
+
const wasi = _wasi.get(this);
|
|
1366
|
+
const args = wasi.args;
|
|
1367
|
+
view.setUint32(argc, args.length, true);
|
|
1368
|
+
view.setUint32(argv_buf_size, encoder.encode(args.join('\0') + '\0').length, true);
|
|
1369
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1370
|
+
});
|
|
1371
|
+
this.environ_get = syscallWrap(this, 'environ_get', function (environ, environ_buf) {
|
|
1372
|
+
environ = Number(environ);
|
|
1373
|
+
environ_buf = Number(environ_buf);
|
|
1374
|
+
if (environ === 0 || environ_buf === 0) {
|
|
1375
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1376
|
+
}
|
|
1377
|
+
const wasi = _wasi.get(this);
|
|
1378
|
+
const env = wasi.env;
|
|
1379
|
+
const envSize = encoder.encode(env.join('\0') + '\0').length;
|
|
1380
|
+
const { HEAPU8, view } = getMemory(this, Math.max(environ + env.length * 4, environ_buf + envSize));
|
|
1381
|
+
for (let i = 0; i < env.length; ++i) {
|
|
1382
|
+
const pair = env[i];
|
|
1383
|
+
view.setInt32(environ, environ_buf, true);
|
|
1384
|
+
environ += 4;
|
|
1385
|
+
const data = encoder.encode(pair + '\0');
|
|
1386
|
+
HEAPU8.set(data, environ_buf);
|
|
1387
|
+
environ_buf += data.length;
|
|
1388
|
+
}
|
|
1389
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1390
|
+
});
|
|
1391
|
+
this.environ_sizes_get = syscallWrap(this, 'environ_sizes_get', function (len, buflen) {
|
|
1392
|
+
len = Number(len);
|
|
1393
|
+
buflen = Number(buflen);
|
|
1394
|
+
if (len === 0 || buflen === 0) {
|
|
1395
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1396
|
+
}
|
|
1397
|
+
const { view } = getMemory(this, Math.max(len + 4, buflen + 4));
|
|
1398
|
+
const wasi = _wasi.get(this);
|
|
1399
|
+
view.setUint32(len, wasi.env.length, true);
|
|
1400
|
+
view.setUint32(buflen, encoder.encode(wasi.env.join('\0') + '\0').length, true);
|
|
1401
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1402
|
+
});
|
|
1403
|
+
this.clock_res_get = syscallWrap(this, 'clock_res_get', function (id, resolution) {
|
|
1404
|
+
resolution = Number(resolution);
|
|
1405
|
+
if (resolution === 0) {
|
|
1406
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1407
|
+
}
|
|
1408
|
+
const { view } = getMemory(this, resolution + 8);
|
|
1409
|
+
switch (id) {
|
|
1410
|
+
case 0 /* WasiClockid.REALTIME */:
|
|
1411
|
+
view.setBigUint64(resolution, BigInt(1000000), true);
|
|
1412
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1413
|
+
case 1 /* WasiClockid.MONOTONIC */:
|
|
1414
|
+
case 2 /* WasiClockid.PROCESS_CPUTIME_ID */:
|
|
1415
|
+
case 3 /* WasiClockid.THREAD_CPUTIME_ID */:
|
|
1416
|
+
view.setBigUint64(resolution, BigInt(1000), true);
|
|
1417
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1418
|
+
default: return 28 /* WasiErrno.EINVAL */;
|
|
1419
|
+
}
|
|
1420
|
+
});
|
|
1421
|
+
this.clock_time_get = syscallWrap(this, 'clock_time_get', function (id, _percision, time) {
|
|
1422
|
+
time = Number(time);
|
|
1423
|
+
if (time === 0) {
|
|
1424
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1425
|
+
}
|
|
1426
|
+
const { view } = getMemory(this, time + 8);
|
|
1427
|
+
switch (id) {
|
|
1428
|
+
case 0 /* WasiClockid.REALTIME */:
|
|
1429
|
+
view.setBigUint64(time, BigInt(Date.now()) * BigInt(1000000), true);
|
|
1430
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1431
|
+
case 1 /* WasiClockid.MONOTONIC */:
|
|
1432
|
+
case 2 /* WasiClockid.PROCESS_CPUTIME_ID */:
|
|
1433
|
+
case 3 /* WasiClockid.THREAD_CPUTIME_ID */: {
|
|
1434
|
+
const t = performance.now() / 1000;
|
|
1435
|
+
const s = Math.trunc(t);
|
|
1436
|
+
const ms = Math.floor((t - s) * 1000);
|
|
1437
|
+
const result = BigInt(s) * BigInt(1000000000) + BigInt(ms) * BigInt(1000000);
|
|
1438
|
+
view.setBigUint64(time, result, true);
|
|
1439
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1440
|
+
}
|
|
1441
|
+
default: return 28 /* WasiErrno.EINVAL */;
|
|
1442
|
+
}
|
|
1443
|
+
});
|
|
1444
|
+
this.fd_advise = syscallWrap(this, 'fd_advise', function (_fd, _offset, _len, _advice) {
|
|
1445
|
+
return 52 /* WasiErrno.ENOSYS */;
|
|
1446
|
+
});
|
|
1447
|
+
this.fd_fdstat_get = syscallWrap(this, 'fd_fdstat_get', function (fd, fdstat) {
|
|
1448
|
+
fdstat = Number(fdstat);
|
|
1449
|
+
if (fdstat === 0) {
|
|
1450
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1451
|
+
}
|
|
1452
|
+
const wasi = _wasi.get(this);
|
|
1453
|
+
const fileDescriptor = wasi.fds.get(fd, BigInt(0), BigInt(0));
|
|
1454
|
+
const { view } = getMemory(this, fdstat + 24);
|
|
1455
|
+
view.setUint16(fdstat, fileDescriptor.type, true);
|
|
1456
|
+
view.setUint16(fdstat + 2, 0, true);
|
|
1457
|
+
view.setBigUint64(fdstat + 8, fileDescriptor.rightsBase, true);
|
|
1458
|
+
view.setBigUint64(fdstat + 16, fileDescriptor.rightsInheriting, true);
|
|
1459
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1460
|
+
});
|
|
1461
|
+
this.fd_fdstat_set_flags = syscallWrap(this, 'fd_fdstat_set_flags', function (_fd, _flags) {
|
|
1462
|
+
return 52 /* WasiErrno.ENOSYS */;
|
|
1463
|
+
});
|
|
1464
|
+
this.fd_fdstat_set_rights = syscallWrap(this, 'fd_fdstat_set_rights', function (fd, rightsBase, rightsInheriting) {
|
|
1465
|
+
const wasi = _wasi.get(this);
|
|
1466
|
+
const fileDescriptor = wasi.fds.get(fd, BigInt(0), BigInt(0));
|
|
1467
|
+
if ((rightsBase | fileDescriptor.rightsBase) > fileDescriptor.rightsBase) {
|
|
1468
|
+
return 76 /* WasiErrno.ENOTCAPABLE */;
|
|
1469
|
+
}
|
|
1470
|
+
if ((rightsInheriting | fileDescriptor.rightsInheriting) >
|
|
1471
|
+
fileDescriptor.rightsInheriting) {
|
|
1472
|
+
return 76 /* WasiErrno.ENOTCAPABLE */;
|
|
1473
|
+
}
|
|
1474
|
+
fileDescriptor.rightsBase = rightsBase;
|
|
1475
|
+
fileDescriptor.rightsInheriting = rightsInheriting;
|
|
1476
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1477
|
+
});
|
|
1478
|
+
this.fd_prestat_get = syscallWrap(this, 'fd_prestat_get', function (fd, prestat) {
|
|
1479
|
+
prestat = Number(prestat);
|
|
1480
|
+
if (prestat === 0) {
|
|
1481
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1482
|
+
}
|
|
1483
|
+
const wasi = _wasi.get(this);
|
|
1484
|
+
let fileDescriptor;
|
|
1485
|
+
try {
|
|
1486
|
+
fileDescriptor = wasi.fds.get(fd, BigInt(0), BigInt(0));
|
|
1487
|
+
}
|
|
1488
|
+
catch (err) {
|
|
1489
|
+
if (err instanceof WasiError)
|
|
1490
|
+
return err.errno;
|
|
1491
|
+
throw err;
|
|
1492
|
+
}
|
|
1493
|
+
if (fileDescriptor.preopen !== 1)
|
|
1494
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1495
|
+
const { view } = getMemory(this, prestat + 8);
|
|
1496
|
+
// preopen type is dir(0)
|
|
1497
|
+
view.setUint32(prestat, 0, true);
|
|
1498
|
+
view.setUint32(prestat + 4, encoder.encode(fileDescriptor.path).length, true);
|
|
1499
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1500
|
+
});
|
|
1501
|
+
this.fd_prestat_dir_name = syscallWrap(this, 'fd_prestat_dir_name', function (fd, path, path_len) {
|
|
1502
|
+
path = Number(path);
|
|
1503
|
+
path_len = Number(path_len);
|
|
1504
|
+
if (path === 0) {
|
|
1505
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1506
|
+
}
|
|
1507
|
+
const wasi = _wasi.get(this);
|
|
1508
|
+
const fileDescriptor = wasi.fds.get(fd, BigInt(0), BigInt(0));
|
|
1509
|
+
if (fileDescriptor.preopen !== 1)
|
|
1510
|
+
return 8 /* WasiErrno.EBADF */;
|
|
1511
|
+
const buffer = encoder.encode(fileDescriptor.path);
|
|
1512
|
+
const size = buffer.length;
|
|
1513
|
+
if (size > path_len)
|
|
1514
|
+
return 42 /* WasiErrno.ENOBUFS */;
|
|
1515
|
+
const { HEAPU8 } = getMemory(this, path + size);
|
|
1516
|
+
HEAPU8.set(buffer, path);
|
|
1517
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1518
|
+
});
|
|
1519
|
+
this.fd_seek = syscallWrap(this, 'fd_seek', function (fd, offset, whence, newOffset) {
|
|
1520
|
+
newOffset = Number(newOffset);
|
|
1521
|
+
if (newOffset === 0) {
|
|
1522
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1523
|
+
}
|
|
1524
|
+
if (fd === 0 || fd === 1 || fd === 2)
|
|
1525
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1526
|
+
const wasi = _wasi.get(this);
|
|
1527
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_SEEK, BigInt(0));
|
|
1528
|
+
const r = fileDescriptor.seek(offset, whence);
|
|
1529
|
+
const { view } = getMemory(this, newOffset + 8);
|
|
1530
|
+
view.setBigUint64(newOffset, r, true);
|
|
1531
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1532
|
+
});
|
|
1533
|
+
this.fd_tell = syscallWrap(this, 'fd_tell', function (fd, offset) {
|
|
1534
|
+
const wasi = _wasi.get(this);
|
|
1535
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_TELL, BigInt(0));
|
|
1536
|
+
const pos = BigInt(fileDescriptor.pos);
|
|
1537
|
+
const { view } = getMemory(this, Number(offset) + 8);
|
|
1538
|
+
view.setBigUint64(Number(offset), pos, true);
|
|
1539
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1540
|
+
});
|
|
1541
|
+
this.poll_oneoff = syscallWrap(this, 'poll_oneoff', function (in_ptr, out_ptr, nsubscriptions, nevents) {
|
|
1542
|
+
in_ptr = Number(in_ptr);
|
|
1543
|
+
out_ptr = Number(out_ptr);
|
|
1544
|
+
nevents = Number(nevents);
|
|
1545
|
+
nsubscriptions = Number(nsubscriptions);
|
|
1546
|
+
nsubscriptions = nsubscriptions >>> 0;
|
|
1547
|
+
if (in_ptr === 0 || out_ptr === 0 || nsubscriptions === 0 || nevents === 0) {
|
|
1548
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1549
|
+
}
|
|
1550
|
+
const { view } = getMemory(this, Math.max(in_ptr + nsubscriptions * 48, out_ptr + nsubscriptions * 32, nevents + 4));
|
|
1551
|
+
view.setUint32(nevents, 0, true);
|
|
1552
|
+
let i = 0;
|
|
1553
|
+
let timer_userdata = BigInt(0);
|
|
1554
|
+
let cur_timeout = BigInt(0);
|
|
1555
|
+
let has_timeout = 0;
|
|
1556
|
+
let min_timeout = BigInt(0);
|
|
1557
|
+
let sub;
|
|
1558
|
+
const subscriptions = Array(nsubscriptions);
|
|
1559
|
+
for (i = 0; i < nsubscriptions; i++) {
|
|
1560
|
+
sub = in_ptr + i * 48;
|
|
1561
|
+
const userdata = view.getBigUint64(sub, true);
|
|
1562
|
+
const type = view.getUint8(sub + 8);
|
|
1563
|
+
const clockIdOrFd = view.getUint32(sub + 16, true);
|
|
1564
|
+
const timeout = view.getBigUint64(sub + 24, true);
|
|
1565
|
+
const precision = view.getBigUint64(sub + 32, true);
|
|
1566
|
+
const flags = view.getUint16(sub + 40, true);
|
|
1567
|
+
subscriptions[i] = {
|
|
1568
|
+
userdata,
|
|
1569
|
+
type,
|
|
1570
|
+
u: {
|
|
1571
|
+
clock: {
|
|
1572
|
+
clock_id: clockIdOrFd,
|
|
1573
|
+
timeout,
|
|
1574
|
+
precision,
|
|
1575
|
+
flags
|
|
1576
|
+
},
|
|
1577
|
+
fd_readwrite: {
|
|
1578
|
+
fd: clockIdOrFd
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
};
|
|
1582
|
+
}
|
|
1583
|
+
const fdevents = [];
|
|
1584
|
+
for (i = 0; i < nsubscriptions; i++) {
|
|
1585
|
+
sub = subscriptions[i];
|
|
1586
|
+
switch (sub.type) {
|
|
1587
|
+
case 0 /* WasiEventType.CLOCK */: {
|
|
1588
|
+
if (sub.u.clock.flags === 1 /* WasiSubclockflags.ABSTIME */) {
|
|
1589
|
+
/* Convert absolute time to relative delay. */
|
|
1590
|
+
const now = BigInt(Date.now()) * BigInt(1000000);
|
|
1591
|
+
cur_timeout = sub.u.clock.timeout - now;
|
|
1592
|
+
}
|
|
1593
|
+
else {
|
|
1594
|
+
cur_timeout = sub.u.clock.timeout;
|
|
1595
|
+
}
|
|
1596
|
+
if (has_timeout === 0 || cur_timeout < min_timeout) {
|
|
1597
|
+
min_timeout = cur_timeout;
|
|
1598
|
+
timer_userdata = sub.userdata;
|
|
1599
|
+
has_timeout = 1;
|
|
1600
|
+
}
|
|
1601
|
+
break;
|
|
1602
|
+
}
|
|
1603
|
+
case 1 /* WasiEventType.FD_READ */:
|
|
1604
|
+
case 2 /* WasiEventType.FD_WRITE */:
|
|
1605
|
+
fdevents.push(sub);
|
|
1606
|
+
break;
|
|
1607
|
+
default: return 28 /* WasiErrno.EINVAL */;
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
if (fdevents.length > 0) {
|
|
1611
|
+
for (i = 0; i < fdevents.length; i++) {
|
|
1612
|
+
const fdevent = fdevents[i];
|
|
1613
|
+
const event = out_ptr + 32 * i;
|
|
1614
|
+
view.setBigUint64(event, fdevent.userdata, true);
|
|
1615
|
+
view.setUint32(event + 8, 52 /* WasiErrno.ENOSYS */, true);
|
|
1616
|
+
view.setUint32(event + 12, fdevent.type, true);
|
|
1617
|
+
view.setBigUint64(event + 16, BigInt(0), true);
|
|
1618
|
+
view.setUint16(event + 24, 0, true);
|
|
1619
|
+
view.setUint32(nevents, 1, true);
|
|
1620
|
+
}
|
|
1621
|
+
view.setUint32(nevents, fdevents.length, true);
|
|
1622
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1623
|
+
}
|
|
1624
|
+
if (has_timeout) {
|
|
1625
|
+
const delay = Number(min_timeout / BigInt(1000000));
|
|
1626
|
+
// if (isMainThread || typeof SharedArrayBuffer !== 'function') {
|
|
1627
|
+
sleepBreakIf(delay, () => false);
|
|
1628
|
+
// } else {
|
|
1629
|
+
// const buf = new SharedArrayBuffer(4)
|
|
1630
|
+
// const arr = new Int32Array(buf)
|
|
1631
|
+
// postMsg({
|
|
1632
|
+
// __tybys_wasm_util_wasi__: {
|
|
1633
|
+
// type: 'set-timeout',
|
|
1634
|
+
// payload: {
|
|
1635
|
+
// buffer: buf,
|
|
1636
|
+
// delay
|
|
1637
|
+
// }
|
|
1638
|
+
// }
|
|
1639
|
+
// })
|
|
1640
|
+
// Atomics.wait(arr, 0, 0)
|
|
1641
|
+
// }
|
|
1642
|
+
const event = out_ptr;
|
|
1643
|
+
view.setBigUint64(event, timer_userdata, true);
|
|
1644
|
+
view.setUint32(event + 8, 0 /* WasiErrno.ESUCCESS */, true);
|
|
1645
|
+
view.setUint32(event + 12, 0 /* WasiEventType.CLOCK */, true);
|
|
1646
|
+
view.setUint32(nevents, 1, true);
|
|
1647
|
+
}
|
|
1648
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1649
|
+
});
|
|
1650
|
+
this.proc_exit = syscallWrap(this, 'proc_exit', function (rval) {
|
|
1651
|
+
if ((typeof process === 'object') && (process !== null) && (typeof process.exit === 'function')) {
|
|
1652
|
+
process.exit(rval);
|
|
1653
|
+
}
|
|
1654
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1655
|
+
});
|
|
1656
|
+
this.proc_raise = syscallWrap(this, 'proc_raise', function (_sig) {
|
|
1657
|
+
return 52 /* WasiErrno.ENOSYS */;
|
|
1658
|
+
});
|
|
1659
|
+
this.sched_yield = syscallWrap(this, 'sched_yield', function () {
|
|
1660
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1661
|
+
});
|
|
1662
|
+
this.random_get = typeof crypto !== 'undefined' && typeof crypto.getRandomValues === 'function'
|
|
1663
|
+
? syscallWrap(this, 'random_get', function (buf, buf_len) {
|
|
1664
|
+
buf = Number(buf);
|
|
1665
|
+
if (buf === 0) {
|
|
1666
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1667
|
+
}
|
|
1668
|
+
buf_len = Number(buf_len);
|
|
1669
|
+
const { HEAPU8, view } = getMemory(this, buf + buf_len);
|
|
1670
|
+
if ((typeof SharedArrayBuffer === 'function' && HEAPU8.buffer instanceof SharedArrayBuffer) ||
|
|
1671
|
+
(Object.prototype.toString.call(HEAPU8.buffer) === '[object SharedArrayBuffer]')) {
|
|
1672
|
+
for (let i = buf; i < buf + buf_len; ++i) {
|
|
1673
|
+
view.setUint8(i, Math.floor(Math.random() * 256));
|
|
1674
|
+
}
|
|
1675
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1676
|
+
}
|
|
1677
|
+
let pos;
|
|
1678
|
+
const stride = 65536;
|
|
1679
|
+
for (pos = 0; pos + stride < buf_len; pos += stride) {
|
|
1680
|
+
crypto.getRandomValues(HEAPU8.subarray(buf + pos, buf + pos + stride));
|
|
1681
|
+
}
|
|
1682
|
+
crypto.getRandomValues(HEAPU8.subarray(buf + pos, buf + buf_len));
|
|
1683
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1684
|
+
})
|
|
1685
|
+
: syscallWrap(this, 'random_get', function (buf, buf_len) {
|
|
1686
|
+
buf = Number(buf);
|
|
1687
|
+
if (buf === 0) {
|
|
1688
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1689
|
+
}
|
|
1690
|
+
buf_len = Number(buf_len);
|
|
1691
|
+
const { view } = getMemory(this, buf + buf_len);
|
|
1692
|
+
for (let i = buf; i < buf + buf_len; ++i) {
|
|
1693
|
+
view.setUint8(i, Math.floor(Math.random() * 256));
|
|
1694
|
+
}
|
|
1695
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1696
|
+
});
|
|
1697
|
+
this.sock_recv = syscallWrap(this, 'sock_recv', function () {
|
|
1698
|
+
return 58 /* WasiErrno.ENOTSUP */;
|
|
1699
|
+
});
|
|
1700
|
+
this.sock_send = syscallWrap(this, 'sock_send', function () {
|
|
1701
|
+
return 58 /* WasiErrno.ENOTSUP */;
|
|
1702
|
+
});
|
|
1703
|
+
this.sock_shutdown = syscallWrap(this, 'sock_shutdown', function () {
|
|
1704
|
+
return 58 /* WasiErrno.ENOTSUP */;
|
|
1705
|
+
});
|
|
1706
|
+
this.sock_accept = syscallWrap(this, 'sock_accept', function () {
|
|
1707
|
+
return 58 /* WasiErrno.ENOTSUP */;
|
|
1708
|
+
});
|
|
1709
|
+
_wasi.set(this, {
|
|
1710
|
+
fds,
|
|
1711
|
+
args,
|
|
1712
|
+
env
|
|
1713
|
+
});
|
|
1714
|
+
if (fs)
|
|
1715
|
+
_fs.set(this, fs);
|
|
1716
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
1717
|
+
const _this = this;
|
|
1718
|
+
function defineImport(name, syncVersion, asyncVersion, parameterType, returnType) {
|
|
1719
|
+
if (asyncFs) {
|
|
1720
|
+
if (asyncify) {
|
|
1721
|
+
_this[name] = asyncify.wrapImportFunction(syscallWrap(_this, name, asyncVersion));
|
|
1722
|
+
}
|
|
1723
|
+
else {
|
|
1724
|
+
_this[name] = wrapAsyncImport(syscallWrap(_this, name, asyncVersion), parameterType, returnType);
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1727
|
+
else {
|
|
1728
|
+
_this[name] = syscallWrap(_this, name, syncVersion);
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1731
|
+
defineImport('fd_allocate', function fd_allocate(fd, offset, len) {
|
|
1732
|
+
const wasi = _wasi.get(this);
|
|
1733
|
+
const fs = getFs(this);
|
|
1734
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_ALLOCATE, BigInt(0));
|
|
1735
|
+
const stat = fs.fstatSync(fileDescriptor.fd, { bigint: true });
|
|
1736
|
+
if (stat.size < offset + len) {
|
|
1737
|
+
fs.ftruncateSync(fileDescriptor.fd, Number(offset + len));
|
|
1738
|
+
}
|
|
1739
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1740
|
+
}, async function fd_allocate(fd, offset, len) {
|
|
1741
|
+
const wasi = _wasi.get(this);
|
|
1742
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_ALLOCATE, BigInt(0));
|
|
1743
|
+
const h = fileDescriptor.fd;
|
|
1744
|
+
const stat = await h.stat({ bigint: true });
|
|
1745
|
+
if (stat.size < offset + len) {
|
|
1746
|
+
await h.truncate(Number(offset + len));
|
|
1747
|
+
}
|
|
1748
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1749
|
+
}, ['i32', 'i64', 'f64'], ['i32']);
|
|
1750
|
+
defineImport('fd_close', function fd_close(fd) {
|
|
1751
|
+
const wasi = _wasi.get(this);
|
|
1752
|
+
const fileDescriptor = wasi.fds.get(fd, BigInt(0), BigInt(0));
|
|
1753
|
+
const fs = getFs(this);
|
|
1754
|
+
fs.closeSync(fileDescriptor.fd);
|
|
1755
|
+
wasi.fds.remove(fd);
|
|
1756
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1757
|
+
}, async function fd_close(fd) {
|
|
1758
|
+
const wasi = _wasi.get(this);
|
|
1759
|
+
const fileDescriptor = wasi.fds.get(fd, BigInt(0), BigInt(0));
|
|
1760
|
+
await fileDescriptor.fd.close();
|
|
1761
|
+
wasi.fds.remove(fd);
|
|
1762
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1763
|
+
}, ['i32'], ['i32']);
|
|
1764
|
+
defineImport('fd_datasync', function fd_datasync(fd) {
|
|
1765
|
+
const wasi = _wasi.get(this);
|
|
1766
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_DATASYNC, BigInt(0));
|
|
1767
|
+
const fs = getFs(this);
|
|
1768
|
+
fs.fdatasyncSync(fileDescriptor.fd);
|
|
1769
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1770
|
+
}, async function fd_datasync(fd) {
|
|
1771
|
+
const wasi = _wasi.get(this);
|
|
1772
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_DATASYNC, BigInt(0));
|
|
1773
|
+
await fileDescriptor.fd.datasync();
|
|
1774
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1775
|
+
}, ['i32'], ['i32']);
|
|
1776
|
+
defineImport('fd_filestat_get', function fd_filestat_get(fd, buf) {
|
|
1777
|
+
buf = Number(buf);
|
|
1778
|
+
if (buf === 0)
|
|
1779
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1780
|
+
const wasi = _wasi.get(this);
|
|
1781
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_FILESTAT_GET, BigInt(0));
|
|
1782
|
+
const fs = getFs(this);
|
|
1783
|
+
const stat = fs.fstatSync(fileDescriptor.fd, { bigint: true });
|
|
1784
|
+
const { view } = getMemory(this, buf + 64);
|
|
1785
|
+
toFileStat(view, buf, stat);
|
|
1786
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1787
|
+
}, async function fd_filestat_get(fd, buf) {
|
|
1788
|
+
buf = Number(buf);
|
|
1789
|
+
if (buf === 0)
|
|
1790
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1791
|
+
const wasi = _wasi.get(this);
|
|
1792
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_FILESTAT_GET, BigInt(0));
|
|
1793
|
+
const h = fileDescriptor.fd;
|
|
1794
|
+
const stat = await h.stat({ bigint: true });
|
|
1795
|
+
const { view } = getMemory(this, buf + 64);
|
|
1796
|
+
toFileStat(view, buf, stat);
|
|
1797
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1798
|
+
}, ['i32', 'i32'], ['i32']);
|
|
1799
|
+
defineImport('fd_filestat_set_size', function fd_filestat_set_size(fd, size) {
|
|
1800
|
+
const wasi = _wasi.get(this);
|
|
1801
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_FILESTAT_SET_SIZE, BigInt(0));
|
|
1802
|
+
const fs = getFs(this);
|
|
1803
|
+
fs.ftruncateSync(fileDescriptor.fd, Number(size));
|
|
1804
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1805
|
+
}, async function fd_filestat_set_size(fd, size) {
|
|
1806
|
+
const wasi = _wasi.get(this);
|
|
1807
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_FILESTAT_SET_SIZE, BigInt(0));
|
|
1808
|
+
const h = fileDescriptor.fd;
|
|
1809
|
+
await h.truncate(Number(size));
|
|
1810
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1811
|
+
}, ['i32', 'i64'], ['i32']);
|
|
1812
|
+
function fdFilestatGetTimes(fd, atim, mtim, flags) {
|
|
1813
|
+
const wasi = _wasi.get(this);
|
|
1814
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_FILESTAT_SET_TIMES, BigInt(0));
|
|
1815
|
+
if ((flags & 2 /* WasiFstFlag.SET_ATIM_NOW */) === 2 /* WasiFstFlag.SET_ATIM_NOW */) {
|
|
1816
|
+
atim = BigInt(Date.now() * 1000000);
|
|
1817
|
+
}
|
|
1818
|
+
if ((flags & 8 /* WasiFstFlag.SET_MTIM_NOW */) === 8 /* WasiFstFlag.SET_MTIM_NOW */) {
|
|
1819
|
+
mtim = BigInt(Date.now() * 1000000);
|
|
1820
|
+
}
|
|
1821
|
+
return { fileDescriptor, atim, mtim };
|
|
1822
|
+
}
|
|
1823
|
+
defineImport('fd_filestat_set_times', function fd_filestat_set_times(fd, atim, mtim, flags) {
|
|
1824
|
+
if (validateFstFlagsOrReturn(flags)) {
|
|
1825
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1826
|
+
}
|
|
1827
|
+
const { fileDescriptor, atim: atimRes, mtim: mtimRes } = fdFilestatGetTimes.call(this, fd, atim, mtim, flags);
|
|
1828
|
+
const fs = getFs(this);
|
|
1829
|
+
fs.futimesSync(fileDescriptor.fd, Number(atimRes), Number(mtimRes));
|
|
1830
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1831
|
+
}, async function fd_filestat_set_times(fd, atim, mtim, flags) {
|
|
1832
|
+
if (validateFstFlagsOrReturn(flags)) {
|
|
1833
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1834
|
+
}
|
|
1835
|
+
const { fileDescriptor, atim: atimRes, mtim: mtimRes } = fdFilestatGetTimes.call(this, fd, atim, mtim, flags);
|
|
1836
|
+
const h = fileDescriptor.fd;
|
|
1837
|
+
await h.utimes(Number(atimRes), Number(mtimRes));
|
|
1838
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1839
|
+
}, ['i32', 'i64', 'i64', 'i32'], ['i32']);
|
|
1840
|
+
defineImport('fd_pread', function fd_pread(fd, iovs, iovslen, offset, size) {
|
|
1841
|
+
iovs = Number(iovs);
|
|
1842
|
+
size = Number(size);
|
|
1843
|
+
if ((iovs === 0 && iovslen) || size === 0 || offset > INT64_MAX) {
|
|
1844
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1845
|
+
}
|
|
1846
|
+
const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
|
|
1847
|
+
const wasi = _wasi.get(this);
|
|
1848
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_READ | WasiRights.FD_SEEK, BigInt(0));
|
|
1849
|
+
if (!iovslen) {
|
|
1850
|
+
view.setUint32(size, 0, true);
|
|
1851
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1852
|
+
}
|
|
1853
|
+
let totalSize = 0;
|
|
1854
|
+
const ioVecs = Array.from({ length: Number(iovslen) }, (_, i) => {
|
|
1855
|
+
const offset = iovs + (i * 8);
|
|
1856
|
+
const buf = view.getInt32(offset, true);
|
|
1857
|
+
const bufLen = view.getUint32(offset + 4, true);
|
|
1858
|
+
totalSize += bufLen;
|
|
1859
|
+
return HEAPU8.subarray(buf, buf + bufLen);
|
|
1860
|
+
});
|
|
1861
|
+
let nread = 0;
|
|
1862
|
+
const buffer = (() => {
|
|
1863
|
+
try {
|
|
1864
|
+
return new Uint8Array(new SharedArrayBuffer(totalSize));
|
|
1865
|
+
}
|
|
1866
|
+
catch (_) {
|
|
1867
|
+
return new Uint8Array(totalSize);
|
|
1868
|
+
}
|
|
1869
|
+
})();
|
|
1870
|
+
buffer._isBuffer = true;
|
|
1871
|
+
const fs = getFs(this);
|
|
1872
|
+
const bytesRead = fs.readSync(fileDescriptor.fd, buffer, 0, buffer.length, Number(offset));
|
|
1873
|
+
nread = buffer ? copyMemory(ioVecs, buffer.subarray(0, bytesRead)) : 0;
|
|
1874
|
+
view.setUint32(size, nread, true);
|
|
1875
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1876
|
+
}, async function (fd, iovs, iovslen, offset, size) {
|
|
1877
|
+
iovs = Number(iovs);
|
|
1878
|
+
size = Number(size);
|
|
1879
|
+
if ((iovs === 0 && iovslen) || size === 0 || offset > INT64_MAX) {
|
|
1880
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1881
|
+
}
|
|
1882
|
+
const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
|
|
1883
|
+
const wasi = _wasi.get(this);
|
|
1884
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_READ | WasiRights.FD_SEEK, BigInt(0));
|
|
1885
|
+
if (!iovslen) {
|
|
1886
|
+
view.setUint32(size, 0, true);
|
|
1887
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1888
|
+
}
|
|
1889
|
+
let totalSize = 0;
|
|
1890
|
+
const ioVecs = Array.from({ length: Number(iovslen) }, (_, i) => {
|
|
1891
|
+
const offset = iovs + (i * 8);
|
|
1892
|
+
const buf = view.getInt32(offset, true);
|
|
1893
|
+
const bufLen = view.getUint32(offset + 4, true);
|
|
1894
|
+
totalSize += bufLen;
|
|
1895
|
+
return HEAPU8.subarray(buf, buf + bufLen);
|
|
1896
|
+
});
|
|
1897
|
+
let nread = 0;
|
|
1898
|
+
const buffer = new Uint8Array(totalSize);
|
|
1899
|
+
buffer._isBuffer = true;
|
|
1900
|
+
const { bytesRead } = await fileDescriptor.fd.read(buffer, 0, buffer.length, Number(offset));
|
|
1901
|
+
nread = buffer ? copyMemory(ioVecs, buffer.subarray(0, bytesRead)) : 0;
|
|
1902
|
+
view.setUint32(size, nread, true);
|
|
1903
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1904
|
+
}, ['i32', 'i32', 'i32', 'i64', 'i32'], ['i32']);
|
|
1905
|
+
defineImport('fd_pwrite', function fd_pwrite(fd, iovs, iovslen, offset, size) {
|
|
1906
|
+
iovs = Number(iovs);
|
|
1907
|
+
size = Number(size);
|
|
1908
|
+
if ((iovs === 0 && iovslen) || size === 0 || offset > INT64_MAX) {
|
|
1909
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1910
|
+
}
|
|
1911
|
+
const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
|
|
1912
|
+
const wasi = _wasi.get(this);
|
|
1913
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_WRITE | WasiRights.FD_SEEK, BigInt(0));
|
|
1914
|
+
if (!iovslen) {
|
|
1915
|
+
view.setUint32(size, 0, true);
|
|
1916
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1917
|
+
}
|
|
1918
|
+
const buffer = concatBuffer(Array.from({ length: Number(iovslen) }, (_, i) => {
|
|
1919
|
+
const offset = iovs + (i * 8);
|
|
1920
|
+
const buf = view.getInt32(offset, true);
|
|
1921
|
+
const bufLen = view.getUint32(offset + 4, true);
|
|
1922
|
+
return HEAPU8.subarray(buf, buf + bufLen);
|
|
1923
|
+
}));
|
|
1924
|
+
const fs = getFs(this);
|
|
1925
|
+
const nwritten = fs.writeSync(fileDescriptor.fd, buffer, 0, buffer.length, Number(offset));
|
|
1926
|
+
view.setUint32(size, nwritten, true);
|
|
1927
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1928
|
+
}, async function fd_pwrite(fd, iovs, iovslen, offset, size) {
|
|
1929
|
+
iovs = Number(iovs);
|
|
1930
|
+
size = Number(size);
|
|
1931
|
+
if ((iovs === 0 && iovslen) || size === 0 || offset > INT64_MAX) {
|
|
1932
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1933
|
+
}
|
|
1934
|
+
const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
|
|
1935
|
+
const wasi = _wasi.get(this);
|
|
1936
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_WRITE | WasiRights.FD_SEEK, BigInt(0));
|
|
1937
|
+
if (!iovslen) {
|
|
1938
|
+
view.setUint32(size, 0, true);
|
|
1939
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1940
|
+
}
|
|
1941
|
+
const buffer = concatBuffer(Array.from({ length: Number(iovslen) }, (_, i) => {
|
|
1942
|
+
const offset = iovs + (i * 8);
|
|
1943
|
+
const buf = view.getInt32(offset, true);
|
|
1944
|
+
const bufLen = view.getUint32(offset + 4, true);
|
|
1945
|
+
return HEAPU8.subarray(buf, buf + bufLen);
|
|
1946
|
+
}));
|
|
1947
|
+
const { bytesWritten } = await fileDescriptor.fd.write(buffer, 0, buffer.length, Number(offset));
|
|
1948
|
+
view.setUint32(size, bytesWritten, true);
|
|
1949
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1950
|
+
}, ['i32', 'i32', 'i32', 'i64', 'i32'], ['i32']);
|
|
1951
|
+
defineImport('fd_read', function fd_read(fd, iovs, iovslen, size) {
|
|
1952
|
+
iovs = Number(iovs);
|
|
1953
|
+
size = Number(size);
|
|
1954
|
+
if ((iovs === 0 && iovslen) || size === 0) {
|
|
1955
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
1956
|
+
}
|
|
1957
|
+
const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
|
|
1958
|
+
const wasi = _wasi.get(this);
|
|
1959
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_READ, BigInt(0));
|
|
1960
|
+
if (!iovslen) {
|
|
1961
|
+
view.setUint32(size, 0, true);
|
|
1962
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1963
|
+
}
|
|
1964
|
+
let totalSize = 0;
|
|
1965
|
+
const ioVecs = Array.from({ length: Number(iovslen) }, (_, i) => {
|
|
1966
|
+
const offset = iovs + (i * 8);
|
|
1967
|
+
const buf = view.getInt32(offset, true);
|
|
1968
|
+
const bufLen = view.getUint32(offset + 4, true);
|
|
1969
|
+
totalSize += bufLen;
|
|
1970
|
+
return HEAPU8.subarray(buf, buf + bufLen);
|
|
1971
|
+
});
|
|
1972
|
+
let buffer;
|
|
1973
|
+
let nread = 0;
|
|
1974
|
+
if (fd === 0) {
|
|
1975
|
+
if (typeof window === 'undefined' || typeof window.prompt !== 'function') {
|
|
1976
|
+
return 58 /* WasiErrno.ENOTSUP */;
|
|
1977
|
+
}
|
|
1978
|
+
buffer = readStdin();
|
|
1979
|
+
nread = buffer ? copyMemory(ioVecs, buffer) : 0;
|
|
1980
|
+
}
|
|
1981
|
+
else {
|
|
1982
|
+
buffer = (() => {
|
|
1983
|
+
try {
|
|
1984
|
+
return new Uint8Array(new SharedArrayBuffer(totalSize));
|
|
1985
|
+
}
|
|
1986
|
+
catch (_) {
|
|
1987
|
+
return new Uint8Array(totalSize);
|
|
1988
|
+
}
|
|
1989
|
+
})();
|
|
1990
|
+
buffer._isBuffer = true;
|
|
1991
|
+
const fs = getFs(this);
|
|
1992
|
+
const bytesRead = fs.readSync(fileDescriptor.fd, buffer, 0, buffer.length, Number(fileDescriptor.pos));
|
|
1993
|
+
nread = buffer ? copyMemory(ioVecs, buffer.subarray(0, bytesRead)) : 0;
|
|
1994
|
+
fileDescriptor.pos += BigInt(nread);
|
|
1995
|
+
}
|
|
1996
|
+
view.setUint32(size, nread, true);
|
|
1997
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
1998
|
+
}, async function fd_read(fd, iovs, iovslen, size) {
|
|
1999
|
+
iovs = Number(iovs);
|
|
2000
|
+
size = Number(size);
|
|
2001
|
+
if ((iovs === 0 && iovslen) || size === 0) {
|
|
2002
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2003
|
+
}
|
|
2004
|
+
const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
|
|
2005
|
+
const wasi = _wasi.get(this);
|
|
2006
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_READ, BigInt(0));
|
|
2007
|
+
if (!iovslen) {
|
|
2008
|
+
view.setUint32(size, 0, true);
|
|
2009
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2010
|
+
}
|
|
2011
|
+
let totalSize = 0;
|
|
2012
|
+
const ioVecs = Array.from({ length: Number(iovslen) }, (_, i) => {
|
|
2013
|
+
const offset = iovs + (i * 8);
|
|
2014
|
+
const buf = view.getInt32(offset, true);
|
|
2015
|
+
const bufLen = view.getUint32(offset + 4, true);
|
|
2016
|
+
totalSize += bufLen;
|
|
2017
|
+
return HEAPU8.subarray(buf, buf + bufLen);
|
|
2018
|
+
});
|
|
2019
|
+
let buffer;
|
|
2020
|
+
let nread = 0;
|
|
2021
|
+
if (fd === 0) {
|
|
2022
|
+
if (typeof window === 'undefined' || typeof window.prompt !== 'function') {
|
|
2023
|
+
return 58 /* WasiErrno.ENOTSUP */;
|
|
2024
|
+
}
|
|
2025
|
+
buffer = readStdin();
|
|
2026
|
+
nread = buffer ? copyMemory(ioVecs, buffer) : 0;
|
|
2027
|
+
}
|
|
2028
|
+
else {
|
|
2029
|
+
buffer = new Uint8Array(totalSize);
|
|
2030
|
+
buffer._isBuffer = true;
|
|
2031
|
+
const { bytesRead } = await fileDescriptor.fd.read(buffer, 0, buffer.length, Number(fileDescriptor.pos));
|
|
2032
|
+
nread = buffer ? copyMemory(ioVecs, buffer.subarray(0, bytesRead)) : 0;
|
|
2033
|
+
fileDescriptor.pos += BigInt(nread);
|
|
2034
|
+
}
|
|
2035
|
+
view.setUint32(size, nread, true);
|
|
2036
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2037
|
+
}, ['i32', 'i32', 'i32', 'i32'], ['i32']);
|
|
2038
|
+
defineImport('fd_readdir', function fd_readdir(fd, buf, buf_len, cookie, bufused) {
|
|
2039
|
+
buf = Number(buf);
|
|
2040
|
+
buf_len = Number(buf_len);
|
|
2041
|
+
bufused = Number(bufused);
|
|
2042
|
+
if (buf === 0 || bufused === 0)
|
|
2043
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2044
|
+
const wasi = _wasi.get(this);
|
|
2045
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_READDIR, BigInt(0));
|
|
2046
|
+
const fs = getFs(this);
|
|
2047
|
+
const entries = fs.readdirSync(fileDescriptor.realPath, { withFileTypes: true });
|
|
2048
|
+
const { HEAPU8, view } = getMemory(this, Math.max(buf + buf_len, bufused + 4));
|
|
2049
|
+
let bufferUsed = 0;
|
|
2050
|
+
for (let i = Number(cookie); i < entries.length; i++) {
|
|
2051
|
+
const nameData = encoder.encode(entries[i].name);
|
|
2052
|
+
const entryInfo = fs.statSync(resolve(fileDescriptor.realPath, entries[i].name), { bigint: true });
|
|
2053
|
+
const entryData = new Uint8Array(24 + nameData.byteLength);
|
|
2054
|
+
const entryView = new DataView(entryData.buffer);
|
|
2055
|
+
entryView.setBigUint64(0, BigInt(i + 1), true);
|
|
2056
|
+
entryView.setBigUint64(8, BigInt(entryInfo.ino ? entryInfo.ino : 0), true);
|
|
2057
|
+
entryView.setUint32(16, nameData.byteLength, true);
|
|
2058
|
+
let type;
|
|
2059
|
+
if (entries[i].isFile()) {
|
|
2060
|
+
type = 4 /* WasiFileType.REGULAR_FILE */;
|
|
2061
|
+
}
|
|
2062
|
+
else if (entries[i].isDirectory()) {
|
|
2063
|
+
type = 3 /* WasiFileType.DIRECTORY */;
|
|
2064
|
+
}
|
|
2065
|
+
else if (entries[i].isSymbolicLink()) {
|
|
2066
|
+
type = 7 /* WasiFileType.SYMBOLIC_LINK */;
|
|
2067
|
+
}
|
|
2068
|
+
else if (entries[i].isCharacterDevice()) {
|
|
2069
|
+
type = 2 /* WasiFileType.CHARACTER_DEVICE */;
|
|
2070
|
+
}
|
|
2071
|
+
else if (entries[i].isBlockDevice()) {
|
|
2072
|
+
type = 1 /* WasiFileType.BLOCK_DEVICE */;
|
|
2073
|
+
}
|
|
2074
|
+
else if (entries[i].isSocket()) {
|
|
2075
|
+
type = 6 /* WasiFileType.SOCKET_STREAM */;
|
|
2076
|
+
}
|
|
2077
|
+
else {
|
|
2078
|
+
type = 0 /* WasiFileType.UNKNOWN */;
|
|
2079
|
+
}
|
|
2080
|
+
entryView.setUint8(20, type);
|
|
2081
|
+
entryData.set(nameData, 24);
|
|
2082
|
+
const data = entryData.slice(0, Math.min(entryData.length, buf_len - bufferUsed));
|
|
2083
|
+
HEAPU8.set(data, buf + bufferUsed);
|
|
2084
|
+
bufferUsed += data.byteLength;
|
|
2085
|
+
}
|
|
2086
|
+
view.setUint32(bufused, bufferUsed, true);
|
|
2087
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2088
|
+
}, async function fd_readdir(fd, buf, buf_len, cookie, bufused) {
|
|
2089
|
+
buf = Number(buf);
|
|
2090
|
+
buf_len = Number(buf_len);
|
|
2091
|
+
bufused = Number(bufused);
|
|
2092
|
+
if (buf === 0 || bufused === 0)
|
|
2093
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2094
|
+
const wasi = _wasi.get(this);
|
|
2095
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_READDIR, BigInt(0));
|
|
2096
|
+
const fs = getFs(this);
|
|
2097
|
+
const entries = await fs.promises.readdir(fileDescriptor.realPath, { withFileTypes: true });
|
|
2098
|
+
const { HEAPU8, view } = getMemory(this, Math.max(buf + buf_len, bufused + 4));
|
|
2099
|
+
let bufferUsed = 0;
|
|
2100
|
+
for (let i = Number(cookie); i < entries.length; i++) {
|
|
2101
|
+
const nameData = encoder.encode(entries[i].name);
|
|
2102
|
+
const entryInfo = await fs.promises.stat(resolve(fileDescriptor.realPath, entries[i].name), { bigint: true });
|
|
2103
|
+
const entryData = new Uint8Array(24 + nameData.byteLength);
|
|
2104
|
+
const entryView = new DataView(entryData.buffer);
|
|
2105
|
+
entryView.setBigUint64(0, BigInt(i + 1), true);
|
|
2106
|
+
entryView.setBigUint64(8, BigInt(entryInfo.ino ? entryInfo.ino : 0), true);
|
|
2107
|
+
entryView.setUint32(16, nameData.byteLength, true);
|
|
2108
|
+
let type;
|
|
2109
|
+
if (entries[i].isFile()) {
|
|
2110
|
+
type = 4 /* WasiFileType.REGULAR_FILE */;
|
|
2111
|
+
}
|
|
2112
|
+
else if (entries[i].isDirectory()) {
|
|
2113
|
+
type = 3 /* WasiFileType.DIRECTORY */;
|
|
2114
|
+
}
|
|
2115
|
+
else if (entries[i].isSymbolicLink()) {
|
|
2116
|
+
type = 7 /* WasiFileType.SYMBOLIC_LINK */;
|
|
2117
|
+
}
|
|
2118
|
+
else if (entries[i].isCharacterDevice()) {
|
|
2119
|
+
type = 2 /* WasiFileType.CHARACTER_DEVICE */;
|
|
2120
|
+
}
|
|
2121
|
+
else if (entries[i].isBlockDevice()) {
|
|
2122
|
+
type = 1 /* WasiFileType.BLOCK_DEVICE */;
|
|
2123
|
+
}
|
|
2124
|
+
else if (entries[i].isSocket()) {
|
|
2125
|
+
type = 6 /* WasiFileType.SOCKET_STREAM */;
|
|
2126
|
+
}
|
|
2127
|
+
else {
|
|
2128
|
+
type = 0 /* WasiFileType.UNKNOWN */;
|
|
2129
|
+
}
|
|
2130
|
+
entryView.setUint8(20, type);
|
|
2131
|
+
entryData.set(nameData, 24);
|
|
2132
|
+
const data = entryData.slice(0, Math.min(entryData.length, buf_len - bufferUsed));
|
|
2133
|
+
HEAPU8.set(data, buf + bufferUsed);
|
|
2134
|
+
bufferUsed += data.byteLength;
|
|
2135
|
+
}
|
|
2136
|
+
view.setUint32(bufused, bufferUsed, true);
|
|
2137
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2138
|
+
}, ['i32', 'i32', 'i32', 'i64', 'i32'], ['i32']);
|
|
2139
|
+
defineImport('fd_renumber', function fd_renumber(from, to) {
|
|
2140
|
+
const wasi = _wasi.get(this);
|
|
2141
|
+
wasi.fds.renumber(to, from);
|
|
2142
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2143
|
+
}, async function fd_renumber(from, to) {
|
|
2144
|
+
const wasi = _wasi.get(this);
|
|
2145
|
+
await wasi.fds.renumber(to, from);
|
|
2146
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2147
|
+
}, ['i32', 'i32'], ['i32']);
|
|
2148
|
+
defineImport('fd_sync', function fd_sync(fd) {
|
|
2149
|
+
const wasi = _wasi.get(this);
|
|
2150
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_SYNC, BigInt(0));
|
|
2151
|
+
const fs = getFs(this);
|
|
2152
|
+
fs.fsyncSync(fileDescriptor.fd);
|
|
2153
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2154
|
+
}, async function fd_sync(fd) {
|
|
2155
|
+
const wasi = _wasi.get(this);
|
|
2156
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_SYNC, BigInt(0));
|
|
2157
|
+
await fileDescriptor.fd.sync();
|
|
2158
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2159
|
+
}, ['i32'], ['i32']);
|
|
2160
|
+
defineImport('fd_write', function fd_write(fd, iovs, iovslen, size) {
|
|
2161
|
+
iovs = Number(iovs);
|
|
2162
|
+
size = Number(size);
|
|
2163
|
+
if ((iovs === 0 && iovslen) || size === 0) {
|
|
2164
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2165
|
+
}
|
|
2166
|
+
const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
|
|
2167
|
+
const wasi = _wasi.get(this);
|
|
2168
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_WRITE, BigInt(0));
|
|
2169
|
+
if (!iovslen) {
|
|
2170
|
+
view.setUint32(size, 0, true);
|
|
2171
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2172
|
+
}
|
|
2173
|
+
const buffer = concatBuffer(Array.from({ length: Number(iovslen) }, (_, i) => {
|
|
2174
|
+
const offset = iovs + (i * 8);
|
|
2175
|
+
const buf = view.getInt32(offset, true);
|
|
2176
|
+
const bufLen = view.getUint32(offset + 4, true);
|
|
2177
|
+
return HEAPU8.subarray(buf, buf + bufLen);
|
|
2178
|
+
}));
|
|
2179
|
+
let nwritten;
|
|
2180
|
+
if (fd === 1 || fd === 2) {
|
|
2181
|
+
nwritten = fileDescriptor.write(buffer);
|
|
2182
|
+
}
|
|
2183
|
+
else {
|
|
2184
|
+
const fs = getFs(this);
|
|
2185
|
+
nwritten = fs.writeSync(fileDescriptor.fd, buffer, 0, buffer.length, Number(fileDescriptor.pos));
|
|
2186
|
+
fileDescriptor.pos += BigInt(nwritten);
|
|
2187
|
+
}
|
|
2188
|
+
view.setUint32(size, nwritten, true);
|
|
2189
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2190
|
+
}, async function fd_write(fd, iovs, iovslen, size) {
|
|
2191
|
+
iovs = Number(iovs);
|
|
2192
|
+
size = Number(size);
|
|
2193
|
+
if ((iovs === 0 && iovslen) || size === 0) {
|
|
2194
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2195
|
+
}
|
|
2196
|
+
const { HEAPU8, view } = getMemory(this, Math.max(iovs + Number(iovslen) * 8, size + 4));
|
|
2197
|
+
const wasi = _wasi.get(this);
|
|
2198
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.FD_WRITE, BigInt(0));
|
|
2199
|
+
if (!iovslen) {
|
|
2200
|
+
view.setUint32(size, 0, true);
|
|
2201
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2202
|
+
}
|
|
2203
|
+
const buffer = concatBuffer(Array.from({ length: Number(iovslen) }, (_, i) => {
|
|
2204
|
+
const offset = iovs + (i * 8);
|
|
2205
|
+
const buf = view.getInt32(offset, true);
|
|
2206
|
+
const bufLen = view.getUint32(offset + 4, true);
|
|
2207
|
+
return HEAPU8.subarray(buf, buf + bufLen);
|
|
2208
|
+
}));
|
|
2209
|
+
let nwritten;
|
|
2210
|
+
if (fd === 1 || fd === 2) {
|
|
2211
|
+
nwritten = fileDescriptor.write(buffer);
|
|
2212
|
+
}
|
|
2213
|
+
else {
|
|
2214
|
+
nwritten = await (await (fileDescriptor.fd.write(buffer, 0, buffer.length, Number(fileDescriptor.pos)))).bytesWritten;
|
|
2215
|
+
fileDescriptor.pos += BigInt(nwritten);
|
|
2216
|
+
}
|
|
2217
|
+
view.setUint32(size, nwritten, true);
|
|
2218
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2219
|
+
}, ['i32', 'i32', 'i32', 'i32'], ['i32']);
|
|
2220
|
+
defineImport('path_create_directory', function path_create_directory(fd, path, path_len) {
|
|
2221
|
+
path = Number(path);
|
|
2222
|
+
path_len = Number(path_len);
|
|
2223
|
+
if (path === 0) {
|
|
2224
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2225
|
+
}
|
|
2226
|
+
const { HEAPU8 } = getMemory(this, path + path_len);
|
|
2227
|
+
const wasi = _wasi.get(this);
|
|
2228
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_CREATE_DIRECTORY, BigInt(0));
|
|
2229
|
+
let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
|
|
2230
|
+
pathString = resolve(fileDescriptor.realPath, pathString);
|
|
2231
|
+
const fs = getFs(this);
|
|
2232
|
+
fs.mkdirSync(pathString);
|
|
2233
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2234
|
+
}, async function path_create_directory(fd, path, path_len) {
|
|
2235
|
+
path = Number(path);
|
|
2236
|
+
path_len = Number(path_len);
|
|
2237
|
+
if (path === 0) {
|
|
2238
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2239
|
+
}
|
|
2240
|
+
const { HEAPU8 } = getMemory(this, path + path_len);
|
|
2241
|
+
const wasi = _wasi.get(this);
|
|
2242
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_CREATE_DIRECTORY, BigInt(0));
|
|
2243
|
+
let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
|
|
2244
|
+
pathString = resolve(fileDescriptor.realPath, pathString);
|
|
2245
|
+
const fs = getFs(this);
|
|
2246
|
+
await fs.promises.mkdir(pathString);
|
|
2247
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2248
|
+
}, ['i32', 'i32', 'i32'], ['i32']);
|
|
2249
|
+
defineImport('path_filestat_get', function path_filestat_get(fd, flags, path, path_len, filestat) {
|
|
2250
|
+
path = Number(path);
|
|
2251
|
+
path_len = Number(path_len);
|
|
2252
|
+
filestat = Number(filestat);
|
|
2253
|
+
if (path === 0 || filestat === 0) {
|
|
2254
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2255
|
+
}
|
|
2256
|
+
const { HEAPU8, view } = getMemory(this, Math.max(path + path_len, filestat + 64));
|
|
2257
|
+
const wasi = _wasi.get(this);
|
|
2258
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_FILESTAT_GET, BigInt(0));
|
|
2259
|
+
let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
|
|
2260
|
+
const fs = getFs(this);
|
|
2261
|
+
pathString = resolve(fileDescriptor.realPath, pathString);
|
|
2262
|
+
let stat;
|
|
2263
|
+
if ((flags & 1) === 1) {
|
|
2264
|
+
stat = fs.statSync(pathString, { bigint: true });
|
|
2265
|
+
}
|
|
2266
|
+
else {
|
|
2267
|
+
stat = fs.lstatSync(pathString, { bigint: true });
|
|
2268
|
+
}
|
|
2269
|
+
toFileStat(view, filestat, stat);
|
|
2270
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2271
|
+
}, async function path_filestat_get(fd, flags, path, path_len, filestat) {
|
|
2272
|
+
path = Number(path);
|
|
2273
|
+
path_len = Number(path_len);
|
|
2274
|
+
filestat = Number(filestat);
|
|
2275
|
+
if (path === 0 || filestat === 0) {
|
|
2276
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2277
|
+
}
|
|
2278
|
+
const { HEAPU8, view } = getMemory(this, Math.max(path + path_len, filestat + 64));
|
|
2279
|
+
const wasi = _wasi.get(this);
|
|
2280
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_FILESTAT_GET, BigInt(0));
|
|
2281
|
+
let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
|
|
2282
|
+
const fs = getFs(this);
|
|
2283
|
+
pathString = resolve(fileDescriptor.realPath, pathString);
|
|
2284
|
+
let stat;
|
|
2285
|
+
if ((flags & 1) === 1) {
|
|
2286
|
+
stat = await fs.promises.stat(pathString, { bigint: true });
|
|
2287
|
+
}
|
|
2288
|
+
else {
|
|
2289
|
+
stat = await fs.promises.lstat(pathString, { bigint: true });
|
|
2290
|
+
}
|
|
2291
|
+
toFileStat(view, filestat, stat);
|
|
2292
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2293
|
+
}, ['i32', 'i32', 'i32', 'i32', 'i32'], ['i32']);
|
|
2294
|
+
defineImport('path_filestat_set_times', function path_filestat_set_times(fd, flags, path, path_len, atim, mtim, fst_flags) {
|
|
2295
|
+
path = Number(path);
|
|
2296
|
+
path_len = Number(path_len);
|
|
2297
|
+
if (path === 0)
|
|
2298
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2299
|
+
const { HEAPU8 } = getMemory(this, path + path_len);
|
|
2300
|
+
const wasi = _wasi.get(this);
|
|
2301
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_FILESTAT_SET_TIMES, BigInt(0));
|
|
2302
|
+
if (validateFstFlagsOrReturn(fst_flags)) {
|
|
2303
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2304
|
+
}
|
|
2305
|
+
const fs = getFs(this);
|
|
2306
|
+
const resolvedPath = resolvePathSync(fs, fileDescriptor, decoder.decode(unsharedSlice(HEAPU8, path, path + path_len)), flags);
|
|
2307
|
+
if ((fst_flags & 2 /* WasiFstFlag.SET_ATIM_NOW */) === 2 /* WasiFstFlag.SET_ATIM_NOW */) {
|
|
2308
|
+
atim = BigInt(Date.now() * 1000000);
|
|
2309
|
+
}
|
|
2310
|
+
if ((fst_flags & 8 /* WasiFstFlag.SET_MTIM_NOW */) === 8 /* WasiFstFlag.SET_MTIM_NOW */) {
|
|
2311
|
+
mtim = BigInt(Date.now() * 1000000);
|
|
2312
|
+
}
|
|
2313
|
+
fs.utimesSync(resolvedPath, Number(atim), Number(mtim));
|
|
2314
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2315
|
+
}, async function path_filestat_set_times(fd, flags, path, path_len, atim, mtim, fst_flags) {
|
|
2316
|
+
path = Number(path);
|
|
2317
|
+
path_len = Number(path_len);
|
|
2318
|
+
if (path === 0)
|
|
2319
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2320
|
+
const { HEAPU8 } = getMemory(this, path + path_len);
|
|
2321
|
+
const wasi = _wasi.get(this);
|
|
2322
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_FILESTAT_SET_TIMES, BigInt(0));
|
|
2323
|
+
if (validateFstFlagsOrReturn(fst_flags)) {
|
|
2324
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2325
|
+
}
|
|
2326
|
+
const fs = getFs(this);
|
|
2327
|
+
const resolvedPath = await resolvePathAsync(fs, fileDescriptor, decoder.decode(unsharedSlice(HEAPU8, path, path + path_len)), flags);
|
|
2328
|
+
if ((fst_flags & 2 /* WasiFstFlag.SET_ATIM_NOW */) === 2 /* WasiFstFlag.SET_ATIM_NOW */) {
|
|
2329
|
+
atim = BigInt(Date.now() * 1000000);
|
|
2330
|
+
}
|
|
2331
|
+
if ((fst_flags & 8 /* WasiFstFlag.SET_MTIM_NOW */) === 8 /* WasiFstFlag.SET_MTIM_NOW */) {
|
|
2332
|
+
mtim = BigInt(Date.now() * 1000000);
|
|
2333
|
+
}
|
|
2334
|
+
await fs.promises.utimes(resolvedPath, Number(atim), Number(mtim));
|
|
2335
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2336
|
+
}, ['i32', 'i32', 'i32', 'i32', 'i64', 'i64', 'i32'], ['i32']);
|
|
2337
|
+
defineImport('path_link', function path_link(old_fd, old_flags, old_path, old_path_len, new_fd, new_path, new_path_len) {
|
|
2338
|
+
old_path = Number(old_path);
|
|
2339
|
+
old_path_len = Number(old_path_len);
|
|
2340
|
+
new_path = Number(new_path);
|
|
2341
|
+
new_path_len = Number(new_path_len);
|
|
2342
|
+
if (old_path === 0 || new_path === 0) {
|
|
2343
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2344
|
+
}
|
|
2345
|
+
const wasi = _wasi.get(this);
|
|
2346
|
+
let oldWrap;
|
|
2347
|
+
let newWrap;
|
|
2348
|
+
if (old_fd === new_fd) {
|
|
2349
|
+
oldWrap = newWrap = wasi.fds.get(old_fd, WasiRights.PATH_LINK_SOURCE | WasiRights.PATH_LINK_TARGET, BigInt(0));
|
|
2350
|
+
}
|
|
2351
|
+
else {
|
|
2352
|
+
oldWrap = wasi.fds.get(old_fd, WasiRights.PATH_LINK_SOURCE, BigInt(0));
|
|
2353
|
+
newWrap = wasi.fds.get(new_fd, WasiRights.PATH_LINK_TARGET, BigInt(0));
|
|
2354
|
+
}
|
|
2355
|
+
const { HEAPU8 } = getMemory(this, Math.max(old_path + old_path_len, new_path + new_path_len));
|
|
2356
|
+
const fs = getFs(this);
|
|
2357
|
+
const resolvedOldPath = resolvePathSync(fs, oldWrap, decoder.decode(unsharedSlice(HEAPU8, old_path, old_path + old_path_len)), old_flags);
|
|
2358
|
+
const resolvedNewPath = resolve(newWrap.realPath, decoder.decode(unsharedSlice(HEAPU8, new_path, new_path + new_path_len)));
|
|
2359
|
+
fs.linkSync(resolvedOldPath, resolvedNewPath);
|
|
2360
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2361
|
+
}, async function path_link(old_fd, old_flags, old_path, old_path_len, new_fd, new_path, new_path_len) {
|
|
2362
|
+
old_path = Number(old_path);
|
|
2363
|
+
old_path_len = Number(old_path_len);
|
|
2364
|
+
new_path = Number(new_path);
|
|
2365
|
+
new_path_len = Number(new_path_len);
|
|
2366
|
+
if (old_path === 0 || new_path === 0) {
|
|
2367
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2368
|
+
}
|
|
2369
|
+
const wasi = _wasi.get(this);
|
|
2370
|
+
let oldWrap;
|
|
2371
|
+
let newWrap;
|
|
2372
|
+
if (old_fd === new_fd) {
|
|
2373
|
+
oldWrap = newWrap = wasi.fds.get(old_fd, WasiRights.PATH_LINK_SOURCE | WasiRights.PATH_LINK_TARGET, BigInt(0));
|
|
2374
|
+
}
|
|
2375
|
+
else {
|
|
2376
|
+
oldWrap = wasi.fds.get(old_fd, WasiRights.PATH_LINK_SOURCE, BigInt(0));
|
|
2377
|
+
newWrap = wasi.fds.get(new_fd, WasiRights.PATH_LINK_TARGET, BigInt(0));
|
|
2378
|
+
}
|
|
2379
|
+
const { HEAPU8 } = getMemory(this, Math.max(old_path + old_path_len, new_path + new_path_len));
|
|
2380
|
+
const fs = getFs(this);
|
|
2381
|
+
const resolvedOldPath = await resolvePathAsync(fs, oldWrap, decoder.decode(unsharedSlice(HEAPU8, old_path, old_path + old_path_len)), old_flags);
|
|
2382
|
+
const resolvedNewPath = resolve(newWrap.realPath, decoder.decode(unsharedSlice(HEAPU8, new_path, new_path + new_path_len)));
|
|
2383
|
+
await fs.promises.link(resolvedOldPath, resolvedNewPath);
|
|
2384
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2385
|
+
}, ['i32', 'i32', 'i32', 'i32', 'i32', 'i32', 'i32'], ['i32']);
|
|
2386
|
+
function pathOpen(o_flags, fs_rights_base, fs_rights_inheriting, fs_flags) {
|
|
2387
|
+
const read = (fs_rights_base & (WasiRights.FD_READ |
|
|
2388
|
+
WasiRights.FD_READDIR)) !== BigInt(0);
|
|
2389
|
+
const write = (fs_rights_base & (WasiRights.FD_DATASYNC |
|
|
2390
|
+
WasiRights.FD_WRITE |
|
|
2391
|
+
WasiRights.FD_ALLOCATE |
|
|
2392
|
+
WasiRights.FD_FILESTAT_SET_SIZE)) !== BigInt(0);
|
|
2393
|
+
let flags = write ? read ? 2 /* FileControlFlag.O_RDWR */ : 1 /* FileControlFlag.O_WRONLY */ : 0 /* FileControlFlag.O_RDONLY */;
|
|
2394
|
+
let needed_base = WasiRights.PATH_OPEN;
|
|
2395
|
+
let needed_inheriting = fs_rights_base | fs_rights_inheriting;
|
|
2396
|
+
if ((o_flags & 1 /* WasiFileControlFlag.O_CREAT */) !== 0) {
|
|
2397
|
+
flags |= 64 /* FileControlFlag.O_CREAT */;
|
|
2398
|
+
needed_base |= WasiRights.PATH_CREATE_FILE;
|
|
2399
|
+
}
|
|
2400
|
+
if ((o_flags & 2 /* WasiFileControlFlag.O_DIRECTORY */) !== 0) {
|
|
2401
|
+
flags |= 65536 /* FileControlFlag.O_DIRECTORY */;
|
|
2402
|
+
}
|
|
2403
|
+
if ((o_flags & 4 /* WasiFileControlFlag.O_EXCL */) !== 0) {
|
|
2404
|
+
flags |= 128 /* FileControlFlag.O_EXCL */;
|
|
2405
|
+
}
|
|
2406
|
+
if ((o_flags & 8 /* WasiFileControlFlag.O_TRUNC */) !== 0) {
|
|
2407
|
+
flags |= 512 /* FileControlFlag.O_TRUNC */;
|
|
2408
|
+
needed_base |= WasiRights.PATH_FILESTAT_SET_SIZE;
|
|
2409
|
+
}
|
|
2410
|
+
if ((fs_flags & 1 /* WasiFdFlag.APPEND */) !== 0) {
|
|
2411
|
+
flags |= 1024 /* FileControlFlag.O_APPEND */;
|
|
2412
|
+
}
|
|
2413
|
+
if ((fs_flags & 2 /* WasiFdFlag.DSYNC */) !== 0) {
|
|
2414
|
+
// flags |= FileControlFlag.O_DSYNC;
|
|
2415
|
+
needed_inheriting |= WasiRights.FD_DATASYNC;
|
|
2416
|
+
}
|
|
2417
|
+
if ((fs_flags & 4 /* WasiFdFlag.NONBLOCK */) !== 0) {
|
|
2418
|
+
flags |= 2048 /* FileControlFlag.O_NONBLOCK */;
|
|
2419
|
+
}
|
|
2420
|
+
if ((fs_flags & 8 /* WasiFdFlag.RSYNC */) !== 0) {
|
|
2421
|
+
flags |= 1052672 /* FileControlFlag.O_SYNC */;
|
|
2422
|
+
needed_inheriting |= WasiRights.FD_SYNC;
|
|
2423
|
+
}
|
|
2424
|
+
if ((fs_flags & 16 /* WasiFdFlag.SYNC */) !== 0) {
|
|
2425
|
+
flags |= 1052672 /* FileControlFlag.O_SYNC */;
|
|
2426
|
+
needed_inheriting |= WasiRights.FD_SYNC;
|
|
2427
|
+
}
|
|
2428
|
+
if (write && (flags & (1024 /* FileControlFlag.O_APPEND */ | 512 /* FileControlFlag.O_TRUNC */)) === 0) {
|
|
2429
|
+
needed_inheriting |= WasiRights.FD_SEEK;
|
|
2430
|
+
}
|
|
2431
|
+
return { flags, needed_base, needed_inheriting };
|
|
2432
|
+
}
|
|
2433
|
+
defineImport('path_open', function path_open(dirfd, dirflags, path, path_len, o_flags, fs_rights_base, fs_rights_inheriting, fs_flags, fd) {
|
|
2434
|
+
path = Number(path);
|
|
2435
|
+
fd = Number(fd);
|
|
2436
|
+
if (path === 0 || fd === 0) {
|
|
2437
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2438
|
+
}
|
|
2439
|
+
path_len = Number(path_len);
|
|
2440
|
+
fs_rights_base = BigInt(fs_rights_base);
|
|
2441
|
+
fs_rights_inheriting = BigInt(fs_rights_inheriting);
|
|
2442
|
+
const { flags: flagsRes, needed_base: neededBase, needed_inheriting: neededInheriting } = pathOpen(o_flags, fs_rights_base, fs_rights_inheriting, fs_flags);
|
|
2443
|
+
const wasi = _wasi.get(this);
|
|
2444
|
+
const fileDescriptor = wasi.fds.get(dirfd, neededBase, neededInheriting);
|
|
2445
|
+
const memory = getMemory(this, Math.max(path + path_len, fd + 4));
|
|
2446
|
+
const HEAPU8 = memory.HEAPU8;
|
|
2447
|
+
const pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
|
|
2448
|
+
const fs = getFs(this);
|
|
2449
|
+
const resolved_path = resolvePathSync(fs, fileDescriptor, pathString, dirflags);
|
|
2450
|
+
const r = fs.openSync(resolved_path, _isWin32Flags ? _toWinOpenFlags(flagsRes) : flagsRes, 0o666);
|
|
2451
|
+
const filetype = wasi.fds.getFileTypeByFd(r);
|
|
2452
|
+
if ((filetype !== 3 /* WasiFileType.DIRECTORY */) &&
|
|
2453
|
+
((o_flags & 2 /* WasiFileControlFlag.O_DIRECTORY */) !== 0 ||
|
|
2454
|
+
(resolved_path.endsWith('/')))) {
|
|
2455
|
+
return 54 /* WasiErrno.ENOTDIR */;
|
|
2456
|
+
}
|
|
2457
|
+
const { base: max_base, inheriting: max_inheriting } = getRights(wasi.fds.stdio, r, flagsRes, filetype);
|
|
2458
|
+
const wrap = wasi.fds.insert(r, resolved_path, resolved_path, filetype, fs_rights_base & max_base, fs_rights_inheriting & max_inheriting, 0);
|
|
2459
|
+
const stat = fs.fstatSync(r, { bigint: true });
|
|
2460
|
+
if (stat.isFile()) {
|
|
2461
|
+
wrap.size = stat.size;
|
|
2462
|
+
if ((flagsRes & 1024 /* FileControlFlag.O_APPEND */) !== 0) {
|
|
2463
|
+
wrap.pos = stat.size;
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
const view = memory.view;
|
|
2467
|
+
view.setInt32(fd, wrap.id, true);
|
|
2468
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2469
|
+
}, async function path_open(dirfd, dirflags, path, path_len, o_flags, fs_rights_base, fs_rights_inheriting, fs_flags, fd) {
|
|
2470
|
+
path = Number(path);
|
|
2471
|
+
fd = Number(fd);
|
|
2472
|
+
if (path === 0 || fd === 0) {
|
|
2473
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2474
|
+
}
|
|
2475
|
+
path_len = Number(path_len);
|
|
2476
|
+
fs_rights_base = BigInt(fs_rights_base);
|
|
2477
|
+
fs_rights_inheriting = BigInt(fs_rights_inheriting);
|
|
2478
|
+
const { flags: flagsRes, needed_base: neededBase, needed_inheriting: neededInheriting } = pathOpen(o_flags, fs_rights_base, fs_rights_inheriting, fs_flags);
|
|
2479
|
+
const wasi = _wasi.get(this);
|
|
2480
|
+
const fileDescriptor = wasi.fds.get(dirfd, neededBase, neededInheriting);
|
|
2481
|
+
const memory = getMemory(this, Math.max(path + path_len, fd + 4));
|
|
2482
|
+
const HEAPU8 = memory.HEAPU8;
|
|
2483
|
+
const pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
|
|
2484
|
+
const fs = getFs(this);
|
|
2485
|
+
const resolved_path = await resolvePathAsync(fs, fileDescriptor, pathString, dirflags);
|
|
2486
|
+
const r = await fs.promises.open(resolved_path, _isWin32Flags ? _toWinOpenFlags(flagsRes) : flagsRes, 0o666);
|
|
2487
|
+
const filetype = await wasi.fds.getFileTypeByFd(r);
|
|
2488
|
+
if ((o_flags & 2 /* WasiFileControlFlag.O_DIRECTORY */) !== 0 && filetype !== 3 /* WasiFileType.DIRECTORY */) {
|
|
2489
|
+
return 54 /* WasiErrno.ENOTDIR */;
|
|
2490
|
+
}
|
|
2491
|
+
const { base: max_base, inheriting: max_inheriting } = getRights(wasi.fds.stdio, r.fd, flagsRes, filetype);
|
|
2492
|
+
const wrap = wasi.fds.insert(r, resolved_path, resolved_path, filetype, fs_rights_base & max_base, fs_rights_inheriting & max_inheriting, 0);
|
|
2493
|
+
const stat = await r.stat({ bigint: true });
|
|
2494
|
+
if (stat.isFile()) {
|
|
2495
|
+
wrap.size = stat.size;
|
|
2496
|
+
if ((flagsRes & 1024 /* FileControlFlag.O_APPEND */) !== 0) {
|
|
2497
|
+
wrap.pos = stat.size;
|
|
2498
|
+
}
|
|
2499
|
+
}
|
|
2500
|
+
const view = memory.view;
|
|
2501
|
+
view.setInt32(fd, wrap.id, true);
|
|
2502
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2503
|
+
}, ['i32', 'i32', 'i32', 'i32', 'i32', 'i64', 'i64', 'i32', 'i32'], ['i32']);
|
|
2504
|
+
defineImport('path_readlink', function path_readlink(fd, path, path_len, buf, buf_len, bufused) {
|
|
2505
|
+
path = Number(path);
|
|
2506
|
+
path_len = Number(path_len);
|
|
2507
|
+
buf = Number(buf);
|
|
2508
|
+
buf_len = Number(buf_len);
|
|
2509
|
+
bufused = Number(bufused);
|
|
2510
|
+
if (path === 0 || buf === 0 || bufused === 0) {
|
|
2511
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2512
|
+
}
|
|
2513
|
+
const { HEAPU8, view } = getMemory(this, Math.max(path + path_len, buf + buf_len, bufused + 4));
|
|
2514
|
+
const wasi = _wasi.get(this);
|
|
2515
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_READLINK, BigInt(0));
|
|
2516
|
+
let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
|
|
2517
|
+
pathString = resolve(fileDescriptor.realPath, pathString);
|
|
2518
|
+
const fs = getFs(this);
|
|
2519
|
+
const link = fs.readlinkSync(pathString);
|
|
2520
|
+
const linkData = encoder.encode(link);
|
|
2521
|
+
const len = Math.min(linkData.length, buf_len);
|
|
2522
|
+
if (len >= buf_len)
|
|
2523
|
+
return 42 /* WasiErrno.ENOBUFS */;
|
|
2524
|
+
HEAPU8.set(linkData.subarray(0, len), buf);
|
|
2525
|
+
HEAPU8[buf + len] = 0;
|
|
2526
|
+
view.setUint32(bufused, len, true);
|
|
2527
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2528
|
+
}, async function path_readlink(fd, path, path_len, buf, buf_len, bufused) {
|
|
2529
|
+
path = Number(path);
|
|
2530
|
+
path_len = Number(path_len);
|
|
2531
|
+
buf = Number(buf);
|
|
2532
|
+
buf_len = Number(buf_len);
|
|
2533
|
+
bufused = Number(bufused);
|
|
2534
|
+
if (path === 0 || buf === 0 || bufused === 0) {
|
|
2535
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2536
|
+
}
|
|
2537
|
+
const { HEAPU8, view } = getMemory(this, Math.max(path + path_len, buf + buf_len, bufused + 4));
|
|
2538
|
+
const wasi = _wasi.get(this);
|
|
2539
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_READLINK, BigInt(0));
|
|
2540
|
+
let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
|
|
2541
|
+
pathString = resolve(fileDescriptor.realPath, pathString);
|
|
2542
|
+
const fs = getFs(this);
|
|
2543
|
+
const link = await fs.promises.readlink(pathString);
|
|
2544
|
+
const linkData = encoder.encode(link);
|
|
2545
|
+
const len = Math.min(linkData.length, buf_len);
|
|
2546
|
+
if (len >= buf_len)
|
|
2547
|
+
return 42 /* WasiErrno.ENOBUFS */;
|
|
2548
|
+
HEAPU8.set(linkData.subarray(0, len), buf);
|
|
2549
|
+
HEAPU8[buf + len] = 0;
|
|
2550
|
+
view.setUint32(bufused, len, true);
|
|
2551
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2552
|
+
}, ['i32', 'i32', 'i32', 'i32', 'i32', 'i32'], ['i32']);
|
|
2553
|
+
defineImport('path_remove_directory', function path_remove_directory(fd, path, path_len) {
|
|
2554
|
+
path = Number(path);
|
|
2555
|
+
path_len = Number(path_len);
|
|
2556
|
+
if (path === 0) {
|
|
2557
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2558
|
+
}
|
|
2559
|
+
const { HEAPU8 } = getMemory(this, path + path_len);
|
|
2560
|
+
const wasi = _wasi.get(this);
|
|
2561
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_REMOVE_DIRECTORY, BigInt(0));
|
|
2562
|
+
let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
|
|
2563
|
+
pathString = resolve(fileDescriptor.realPath, pathString);
|
|
2564
|
+
const fs = getFs(this);
|
|
2565
|
+
fs.rmdirSync(pathString);
|
|
2566
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2567
|
+
}, async function path_remove_directory(fd, path, path_len) {
|
|
2568
|
+
path = Number(path);
|
|
2569
|
+
path_len = Number(path_len);
|
|
2570
|
+
if (path === 0) {
|
|
2571
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2572
|
+
}
|
|
2573
|
+
const { HEAPU8 } = getMemory(this, path + path_len);
|
|
2574
|
+
const wasi = _wasi.get(this);
|
|
2575
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_REMOVE_DIRECTORY, BigInt(0));
|
|
2576
|
+
let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
|
|
2577
|
+
pathString = resolve(fileDescriptor.realPath, pathString);
|
|
2578
|
+
const fs = getFs(this);
|
|
2579
|
+
await fs.promises.rmdir(pathString);
|
|
2580
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2581
|
+
}, ['i32', 'i32', 'i32'], ['i32']);
|
|
2582
|
+
defineImport('path_rename', function path_rename(old_fd, old_path, old_path_len, new_fd, new_path, new_path_len) {
|
|
2583
|
+
old_path = Number(old_path);
|
|
2584
|
+
old_path_len = Number(old_path_len);
|
|
2585
|
+
new_path = Number(new_path);
|
|
2586
|
+
new_path_len = Number(new_path_len);
|
|
2587
|
+
if (old_path === 0 || new_path === 0) {
|
|
2588
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2589
|
+
}
|
|
2590
|
+
const wasi = _wasi.get(this);
|
|
2591
|
+
let oldWrap;
|
|
2592
|
+
let newWrap;
|
|
2593
|
+
if (old_fd === new_fd) {
|
|
2594
|
+
oldWrap = newWrap = wasi.fds.get(old_fd, WasiRights.PATH_RENAME_SOURCE | WasiRights.PATH_RENAME_TARGET, BigInt(0));
|
|
2595
|
+
}
|
|
2596
|
+
else {
|
|
2597
|
+
oldWrap = wasi.fds.get(old_fd, WasiRights.PATH_RENAME_SOURCE, BigInt(0));
|
|
2598
|
+
newWrap = wasi.fds.get(new_fd, WasiRights.PATH_RENAME_TARGET, BigInt(0));
|
|
2599
|
+
}
|
|
2600
|
+
const { HEAPU8 } = getMemory(this, Math.max(old_path + old_path_len, new_path + new_path_len));
|
|
2601
|
+
const resolvedOldPath = resolve(oldWrap.realPath, decoder.decode(unsharedSlice(HEAPU8, old_path, old_path + old_path_len)));
|
|
2602
|
+
const resolvedNewPath = resolve(newWrap.realPath, decoder.decode(unsharedSlice(HEAPU8, new_path, new_path + new_path_len)));
|
|
2603
|
+
const fs = getFs(this);
|
|
2604
|
+
fs.renameSync(resolvedOldPath, resolvedNewPath);
|
|
2605
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2606
|
+
}, async function path_rename(old_fd, old_path, old_path_len, new_fd, new_path, new_path_len) {
|
|
2607
|
+
old_path = Number(old_path);
|
|
2608
|
+
old_path_len = Number(old_path_len);
|
|
2609
|
+
new_path = Number(new_path);
|
|
2610
|
+
new_path_len = Number(new_path_len);
|
|
2611
|
+
if (old_path === 0 || new_path === 0) {
|
|
2612
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2613
|
+
}
|
|
2614
|
+
const wasi = _wasi.get(this);
|
|
2615
|
+
let oldWrap;
|
|
2616
|
+
let newWrap;
|
|
2617
|
+
if (old_fd === new_fd) {
|
|
2618
|
+
oldWrap = newWrap = wasi.fds.get(old_fd, WasiRights.PATH_RENAME_SOURCE | WasiRights.PATH_RENAME_TARGET, BigInt(0));
|
|
2619
|
+
}
|
|
2620
|
+
else {
|
|
2621
|
+
oldWrap = wasi.fds.get(old_fd, WasiRights.PATH_RENAME_SOURCE, BigInt(0));
|
|
2622
|
+
newWrap = wasi.fds.get(new_fd, WasiRights.PATH_RENAME_TARGET, BigInt(0));
|
|
2623
|
+
}
|
|
2624
|
+
const { HEAPU8 } = getMemory(this, Math.max(old_path + old_path_len, new_path + new_path_len));
|
|
2625
|
+
const resolvedOldPath = resolve(oldWrap.realPath, decoder.decode(unsharedSlice(HEAPU8, old_path, old_path + old_path_len)));
|
|
2626
|
+
const resolvedNewPath = resolve(newWrap.realPath, decoder.decode(unsharedSlice(HEAPU8, new_path, new_path + new_path_len)));
|
|
2627
|
+
const fs = getFs(this);
|
|
2628
|
+
await fs.promises.rename(resolvedOldPath, resolvedNewPath);
|
|
2629
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2630
|
+
}, ['i32', 'i32', 'i32', 'i32', 'i32', 'i32'], ['i32']);
|
|
2631
|
+
defineImport('path_symlink', function path_symlink(old_path, old_path_len, fd, new_path, new_path_len) {
|
|
2632
|
+
old_path = Number(old_path);
|
|
2633
|
+
old_path_len = Number(old_path_len);
|
|
2634
|
+
new_path = Number(new_path);
|
|
2635
|
+
new_path_len = Number(new_path_len);
|
|
2636
|
+
if (old_path === 0 || new_path === 0) {
|
|
2637
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2638
|
+
}
|
|
2639
|
+
const { HEAPU8 } = getMemory(this, Math.max(old_path + old_path_len, new_path + new_path_len));
|
|
2640
|
+
const wasi = _wasi.get(this);
|
|
2641
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_SYMLINK, BigInt(0));
|
|
2642
|
+
const oldPath = decoder.decode(unsharedSlice(HEAPU8, old_path, old_path + old_path_len));
|
|
2643
|
+
if (oldPath.length > 0 && oldPath[0] === '/') {
|
|
2644
|
+
return 63 /* WasiErrno.EPERM */;
|
|
2645
|
+
}
|
|
2646
|
+
let newPath = decoder.decode(unsharedSlice(HEAPU8, new_path, new_path + new_path_len));
|
|
2647
|
+
newPath = resolve(fileDescriptor.realPath, newPath);
|
|
2648
|
+
const fs = getFs(this);
|
|
2649
|
+
fs.symlinkSync(oldPath, newPath);
|
|
2650
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2651
|
+
}, async function path_symlink(old_path, old_path_len, fd, new_path, new_path_len) {
|
|
2652
|
+
old_path = Number(old_path);
|
|
2653
|
+
old_path_len = Number(old_path_len);
|
|
2654
|
+
new_path = Number(new_path);
|
|
2655
|
+
new_path_len = Number(new_path_len);
|
|
2656
|
+
if (old_path === 0 || new_path === 0) {
|
|
2657
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2658
|
+
}
|
|
2659
|
+
const { HEAPU8 } = getMemory(this, Math.max(old_path + old_path_len, new_path + new_path_len));
|
|
2660
|
+
const wasi = _wasi.get(this);
|
|
2661
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_SYMLINK, BigInt(0));
|
|
2662
|
+
const oldPath = decoder.decode(unsharedSlice(HEAPU8, old_path, old_path + old_path_len));
|
|
2663
|
+
let newPath = decoder.decode(unsharedSlice(HEAPU8, new_path, new_path + new_path_len));
|
|
2664
|
+
newPath = resolve(fileDescriptor.realPath, newPath);
|
|
2665
|
+
const fs = getFs(this);
|
|
2666
|
+
await fs.promises.symlink(oldPath, newPath);
|
|
2667
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2668
|
+
}, ['i32', 'i32', 'i32', 'i32', 'i32'], ['i32']);
|
|
2669
|
+
defineImport('path_unlink_file', function path_unlink_file(fd, path, path_len) {
|
|
2670
|
+
path = Number(path);
|
|
2671
|
+
path_len = Number(path_len);
|
|
2672
|
+
if (path === 0) {
|
|
2673
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2674
|
+
}
|
|
2675
|
+
const { HEAPU8 } = getMemory(this, path + path_len);
|
|
2676
|
+
const wasi = _wasi.get(this);
|
|
2677
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_UNLINK_FILE, BigInt(0));
|
|
2678
|
+
let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
|
|
2679
|
+
pathString = resolve(fileDescriptor.realPath, pathString);
|
|
2680
|
+
const fs = getFs(this);
|
|
2681
|
+
fs.unlinkSync(pathString);
|
|
2682
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2683
|
+
}, async function path_unlink_file(fd, path, path_len) {
|
|
2684
|
+
path = Number(path);
|
|
2685
|
+
path_len = Number(path_len);
|
|
2686
|
+
if (path === 0) {
|
|
2687
|
+
return 28 /* WasiErrno.EINVAL */;
|
|
2688
|
+
}
|
|
2689
|
+
const { HEAPU8 } = getMemory(this, path + path_len);
|
|
2690
|
+
const wasi = _wasi.get(this);
|
|
2691
|
+
const fileDescriptor = wasi.fds.get(fd, WasiRights.PATH_UNLINK_FILE, BigInt(0));
|
|
2692
|
+
let pathString = decoder.decode(unsharedSlice(HEAPU8, path, path + path_len));
|
|
2693
|
+
pathString = resolve(fileDescriptor.realPath, pathString);
|
|
2694
|
+
const fs = getFs(this);
|
|
2695
|
+
await fs.promises.unlink(pathString);
|
|
2696
|
+
return 0 /* WasiErrno.ESUCCESS */;
|
|
2697
|
+
}, ['i32', 'i32', 'i32'], ['i32']);
|
|
2698
|
+
this._setMemory = function setMemory(m) {
|
|
2699
|
+
if (!(m instanceof _WebAssembly.Memory)) {
|
|
2700
|
+
throw new TypeError('"instance.exports.memory" property must be a WebAssembly.Memory');
|
|
2701
|
+
}
|
|
2702
|
+
_memory.set(_this, extendMemory(m));
|
|
2703
|
+
};
|
|
2704
|
+
}
|
|
2705
|
+
static createSync(args, env, preopens, stdio, fs, print, printErr) {
|
|
2706
|
+
const fds = new SyncTable({
|
|
2707
|
+
size: 3,
|
|
2708
|
+
in: stdio[0],
|
|
2709
|
+
out: stdio[1],
|
|
2710
|
+
err: stdio[2],
|
|
2711
|
+
fs,
|
|
2712
|
+
print,
|
|
2713
|
+
printErr
|
|
2714
|
+
});
|
|
2715
|
+
const _this = new WASI$1(args, env, fds, false, fs);
|
|
2716
|
+
if (preopens.length > 0) {
|
|
2717
|
+
for (let i = 0; i < preopens.length; ++i) {
|
|
2718
|
+
const realPath = fs.realpathSync(preopens[i].realPath, 'utf8');
|
|
2719
|
+
const fd = fs.openSync(realPath, 'r', 0o666);
|
|
2720
|
+
fds.insertPreopen(fd, preopens[i].mappedPath, realPath);
|
|
2721
|
+
}
|
|
2722
|
+
}
|
|
2723
|
+
return _this;
|
|
2724
|
+
}
|
|
2725
|
+
static async createAsync(args, env, preopens, stdio, fs, print, printErr, asyncify) {
|
|
2726
|
+
const fds = new AsyncTable({
|
|
2727
|
+
size: 3,
|
|
2728
|
+
in: stdio[0],
|
|
2729
|
+
out: stdio[1],
|
|
2730
|
+
err: stdio[2],
|
|
2731
|
+
print,
|
|
2732
|
+
printErr
|
|
2733
|
+
});
|
|
2734
|
+
const _this = new WASI$1(args, env, fds, true, fs, asyncify);
|
|
2735
|
+
if (preopens.length > 0) {
|
|
2736
|
+
for (let i = 0; i < preopens.length; ++i) {
|
|
2737
|
+
const entry = preopens[i];
|
|
2738
|
+
const realPath = await fs.promises.realpath(entry.realPath);
|
|
2739
|
+
const fd = await fs.promises.open(realPath, 'r', 0o666);
|
|
2740
|
+
await fds.insertPreopen(fd, entry.mappedPath, realPath);
|
|
2741
|
+
}
|
|
2742
|
+
}
|
|
2743
|
+
return _this;
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
// eslint-disable-next-line spaced-comment
|
|
2748
|
+
const kEmptyObject = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.create(null));
|
|
2749
|
+
const kExitCode = Symbol('kExitCode');
|
|
2750
|
+
const kSetMemory = Symbol('kSetMemory');
|
|
2751
|
+
const kStarted = Symbol('kStarted');
|
|
2752
|
+
const kInstance = Symbol('kInstance');
|
|
2753
|
+
const kBindingName = Symbol('kBindingName');
|
|
2754
|
+
function validateOptions(options) {
|
|
2755
|
+
var _a;
|
|
2756
|
+
validateObject(options, 'options');
|
|
2757
|
+
let _WASI;
|
|
2758
|
+
if (options.version !== undefined) {
|
|
2759
|
+
validateString(options.version, 'options.version');
|
|
2760
|
+
switch (options.version) {
|
|
2761
|
+
case 'unstable':
|
|
2762
|
+
_WASI = WASI$1;
|
|
2763
|
+
this[kBindingName] = 'wasi_unstable';
|
|
2764
|
+
break;
|
|
2765
|
+
case 'preview1':
|
|
2766
|
+
_WASI = WASI$1;
|
|
2767
|
+
this[kBindingName] = 'wasi_snapshot_preview1';
|
|
2768
|
+
break;
|
|
2769
|
+
default:
|
|
2770
|
+
throw new TypeError(`unsupported WASI version "${options.version}"`);
|
|
2771
|
+
}
|
|
2772
|
+
}
|
|
2773
|
+
else {
|
|
2774
|
+
_WASI = WASI$1;
|
|
2775
|
+
this[kBindingName] = 'wasi_snapshot_preview1';
|
|
2776
|
+
}
|
|
2777
|
+
if (options.args !== undefined) {
|
|
2778
|
+
validateArray(options.args, 'options.args');
|
|
2779
|
+
}
|
|
2780
|
+
const args = ((_a = options.args) !== null && _a !== void 0 ? _a : []).map(String);
|
|
2781
|
+
const env = [];
|
|
2782
|
+
if (options.env !== undefined) {
|
|
2783
|
+
validateObject(options.env, 'options.env');
|
|
2784
|
+
Object.entries(options.env).forEach(({ 0: key, 1: value }) => {
|
|
2785
|
+
if (value !== undefined) {
|
|
2786
|
+
env.push(`${key}=${value}`);
|
|
2787
|
+
}
|
|
2788
|
+
});
|
|
2789
|
+
}
|
|
2790
|
+
const preopens = [];
|
|
2791
|
+
if (options.preopens !== undefined) {
|
|
2792
|
+
validateObject(options.preopens, 'options.preopens');
|
|
2793
|
+
Object.entries(options.preopens).forEach(({ 0: key, 1: value }) => preopens.push({ mappedPath: String(key), realPath: String(value) }));
|
|
2794
|
+
}
|
|
2795
|
+
if (preopens.length > 0) {
|
|
2796
|
+
if (options.fs === undefined) {
|
|
2797
|
+
throw new Error('filesystem is disabled, can not preopen directory');
|
|
2798
|
+
}
|
|
2799
|
+
try {
|
|
2800
|
+
validateObject(options.fs, 'options.fs');
|
|
2801
|
+
}
|
|
2802
|
+
catch (_) {
|
|
2803
|
+
throw new TypeError('Node.js fs like implementation is not provided');
|
|
2804
|
+
}
|
|
2805
|
+
}
|
|
2806
|
+
// if (options.filesystem !== undefined) {
|
|
2807
|
+
// validateObject(options.filesystem, 'options.filesystem')
|
|
2808
|
+
// validateString(options.filesystem.type, 'options.filesystem.type')
|
|
2809
|
+
// if (options.filesystem.type !== 'memfs' && options.filesystem.type !== 'file-system-access-api') {
|
|
2810
|
+
// throw new Error(`Filesystem type ${(options.filesystem as any).type as string} is not supported, only "memfs" and "file-system-access-api" is supported currently`)
|
|
2811
|
+
// }
|
|
2812
|
+
// try {
|
|
2813
|
+
// validateObject(options.filesystem.fs, 'options.filesystem.fs')
|
|
2814
|
+
// } catch (_) {
|
|
2815
|
+
// throw new Error('Node.js fs like implementation is not provided')
|
|
2816
|
+
// }
|
|
2817
|
+
// }
|
|
2818
|
+
if (options.print !== undefined)
|
|
2819
|
+
validateFunction(options.print, 'options.print');
|
|
2820
|
+
if (options.printErr !== undefined)
|
|
2821
|
+
validateFunction(options.printErr, 'options.printErr');
|
|
2822
|
+
if (options.returnOnExit !== undefined) {
|
|
2823
|
+
validateBoolean(options.returnOnExit, 'options.returnOnExit');
|
|
2824
|
+
}
|
|
2825
|
+
// const { stdin = 0, stdout = 1, stderr = 2 } = options
|
|
2826
|
+
// validateInt32(stdin, 'options.stdin', 0)
|
|
2827
|
+
// validateInt32(stdout, 'options.stdout', 0)
|
|
2828
|
+
// validateInt32(stderr, 'options.stderr', 0)
|
|
2829
|
+
// const stdio = [stdin, stdout, stderr] as const
|
|
2830
|
+
const stdio = [0, 1, 2];
|
|
2831
|
+
return {
|
|
2832
|
+
args,
|
|
2833
|
+
env,
|
|
2834
|
+
preopens,
|
|
2835
|
+
stdio,
|
|
2836
|
+
_WASI
|
|
2837
|
+
};
|
|
2838
|
+
}
|
|
2839
|
+
function initWASI(setMemory, wrap) {
|
|
2840
|
+
this[kSetMemory] = setMemory;
|
|
2841
|
+
this.wasiImport = wrap;
|
|
2842
|
+
this[kStarted] = false;
|
|
2843
|
+
this[kExitCode] = 0;
|
|
2844
|
+
this[kInstance] = undefined;
|
|
2845
|
+
}
|
|
2846
|
+
/** @public */
|
|
2847
|
+
class WASI {
|
|
2848
|
+
constructor(options = kEmptyObject) {
|
|
2849
|
+
const { args, env, preopens, stdio, _WASI } = validateOptions.call(this, options);
|
|
2850
|
+
const wrap = _WASI.createSync(args, env, preopens, stdio, options.fs, options.print, options.printErr);
|
|
2851
|
+
const setMemory = wrap._setMemory;
|
|
2852
|
+
delete wrap._setMemory;
|
|
2853
|
+
initWASI.call(this, setMemory, wrap);
|
|
2854
|
+
if (options.returnOnExit) {
|
|
2855
|
+
wrap.proc_exit = wasiReturnOnProcExit.bind(this);
|
|
2856
|
+
}
|
|
2857
|
+
}
|
|
2858
|
+
finalizeBindings(instance, _a) {
|
|
2859
|
+
var _b;
|
|
2860
|
+
var { memory = (_b = instance === null || instance === void 0 ? void 0 : instance.exports) === null || _b === void 0 ? void 0 : _b.memory } = _a === void 0 ? {} : _a;
|
|
2861
|
+
if (this[kStarted]) {
|
|
2862
|
+
throw new Error('WASI instance has already started');
|
|
2863
|
+
}
|
|
2864
|
+
validateObject(instance, 'instance');
|
|
2865
|
+
validateObject(instance.exports, 'instance.exports');
|
|
2866
|
+
this[kSetMemory](memory);
|
|
2867
|
+
this[kInstance] = instance;
|
|
2868
|
+
this[kStarted] = true;
|
|
2869
|
+
}
|
|
2870
|
+
// Must not export _initialize, must export _start
|
|
2871
|
+
start(instance) {
|
|
2872
|
+
this.finalizeBindings(instance);
|
|
2873
|
+
const { _start, _initialize } = this[kInstance].exports;
|
|
2874
|
+
validateFunction(_start, 'instance.exports._start');
|
|
2875
|
+
validateUndefined(_initialize, 'instance.exports._initialize');
|
|
2876
|
+
let ret;
|
|
2877
|
+
try {
|
|
2878
|
+
ret = _start();
|
|
2879
|
+
}
|
|
2880
|
+
catch (err) {
|
|
2881
|
+
if (err !== kExitCode) {
|
|
2882
|
+
throw err;
|
|
2883
|
+
}
|
|
2884
|
+
}
|
|
2885
|
+
if (ret instanceof Promise) {
|
|
2886
|
+
return ret.then(() => this[kExitCode], (err) => {
|
|
2887
|
+
if (err !== kExitCode) {
|
|
2888
|
+
throw err;
|
|
2889
|
+
}
|
|
2890
|
+
return this[kExitCode];
|
|
2891
|
+
});
|
|
2892
|
+
}
|
|
2893
|
+
return this[kExitCode];
|
|
2894
|
+
}
|
|
2895
|
+
// Must not export _start, may optionally export _initialize
|
|
2896
|
+
initialize(instance) {
|
|
2897
|
+
this.finalizeBindings(instance);
|
|
2898
|
+
const { _start, _initialize } = this[kInstance].exports;
|
|
2899
|
+
validateUndefined(_start, 'instance.exports._start');
|
|
2900
|
+
if (_initialize !== undefined) {
|
|
2901
|
+
validateFunction(_initialize, 'instance.exports._initialize');
|
|
2902
|
+
return _initialize();
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
getImportObject() {
|
|
2906
|
+
return { [this[kBindingName]]: this.wasiImport };
|
|
2907
|
+
}
|
|
2908
|
+
}
|
|
2909
|
+
function wasiReturnOnProcExit(rval) {
|
|
2910
|
+
this[kExitCode] = rval;
|
|
2911
|
+
// eslint-disable-next-line @typescript-eslint/no-throw-literal
|
|
2912
|
+
throw kExitCode;
|
|
2913
|
+
}
|
|
2914
|
+
/** @public */
|
|
2915
|
+
async function createAsyncWASI(options = kEmptyObject) {
|
|
2916
|
+
const _this = Object.create(WASI.prototype);
|
|
2917
|
+
const { args, env, preopens, stdio, _WASI } = validateOptions.call(_this, options);
|
|
2918
|
+
if (options.asyncify !== undefined) {
|
|
2919
|
+
validateObject(options.asyncify, 'options.asyncify');
|
|
2920
|
+
validateFunction(options.asyncify.wrapImportFunction, 'options.asyncify.wrapImportFunction');
|
|
2921
|
+
}
|
|
2922
|
+
const wrap = await _WASI.createAsync(args, env, preopens, stdio, options.fs, options.print, options.printErr, options.asyncify);
|
|
2923
|
+
const setMemory = wrap._setMemory;
|
|
2924
|
+
delete wrap._setMemory;
|
|
2925
|
+
initWASI.call(_this, setMemory, wrap);
|
|
2926
|
+
if (options.returnOnExit) {
|
|
2927
|
+
wrap.proc_exit = wasiReturnOnProcExit.bind(_this);
|
|
2928
|
+
}
|
|
2929
|
+
return _this;
|
|
2930
|
+
}
|
|
2931
|
+
|
|
2932
|
+
export { Asyncify, Memory, WASI, WebAssemblyMemory, asyncifyLoad, asyncifyLoadSync, createAsyncWASI, extendMemory, load, loadSync, wrapAsyncExport, wrapAsyncImport, wrapExports };
|