@goodpeanuts/dsh-sui 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +100 -3
- package/THIRD_PARTY_NOTICES.txt +1064 -0
- package/apps/cli/dist/_virtual/_rolldown/runtime.mjs +35 -0
- package/apps/cli/dist/args.mjs +204 -0
- package/apps/cli/dist/cli.mjs +392 -0
- package/apps/cli/dist/errors.mjs +32 -0
- package/apps/cli/dist/help.mjs +73 -0
- package/apps/cli/dist/io.mjs +37 -0
- package/apps/cli/dist/main.mjs +10 -0
- package/apps/cli/dist/node_modules/.pnpm/@keyv_serialize@1.1.1/node_modules/@keyv/serialize/dist/index.mjs +37 -0
- package/apps/cli/dist/node_modules/.pnpm/@sec-ant_readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.mjs +81 -0
- package/apps/cli/dist/node_modules/.pnpm/@sec-ant_readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.mjs +1 -0
- package/apps/cli/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/index.mjs +1015 -0
- package/apps/cli/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/utilities.mjs +6 -0
- package/apps/cli/dist/node_modules/.pnpm/boolbase@1.0.0/node_modules/boolbase/index.mjs +15 -0
- package/apps/cli/dist/node_modules/.pnpm/byte-counter@0.1.0/node_modules/byte-counter/utilities.mjs +9 -0
- package/apps/cli/dist/node_modules/.pnpm/cacheable-lookup@7.0.0/node_modules/cacheable-lookup/source/index.mjs +279 -0
- package/apps/cli/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/index.mjs +274 -0
- package/apps/cli/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/types.mjs +15 -0
- package/apps/cli/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/helpers.mjs +15 -0
- package/apps/cli/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/index.mjs +159 -0
- package/apps/cli/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/positionals.mjs +33 -0
- package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/attributes.mjs +465 -0
- package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/css.mjs +94 -0
- package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/extract.mjs +39 -0
- package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/forms.mjs +63 -0
- package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/manipulation.mjs +731 -0
- package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/traversing.mjs +828 -0
- package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/cheerio.mjs +53 -0
- package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/index.mjs +11 -0
- package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load-parse.mjs +25 -0
- package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load.mjs +73 -0
- package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/options.mjs +27 -0
- package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parse.mjs +53 -0
- package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parsers/parse5-adapter.mjs +42 -0
- package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/static.mjs +165 -0
- package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/utils.mjs +78 -0
- package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/attributes.mjs +187 -0
- package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/compile.mjs +77 -0
- package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/general.mjs +89 -0
- package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/index.mjs +43 -0
- package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/aliases.mjs +32 -0
- package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/filters.mjs +114 -0
- package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/index.mjs +35 -0
- package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.mjs +53 -0
- package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/subselects.mjs +68 -0
- package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/sort.mjs +60 -0
- package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/index.mjs +50 -0
- package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/parse.mjs +320 -0
- package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/stringify.mjs +102 -0
- package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/types.mjs +45 -0
- package/apps/cli/dist/node_modules/.pnpm/decompress-response@10.0.0/node_modules/decompress-response/index.mjs +59 -0
- package/apps/cli/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/foreignNames.mjs +103 -0
- package/apps/cli/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/index.mjs +144 -0
- package/apps/cli/dist/node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/esm/index.mjs +51 -0
- package/apps/cli/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/index.mjs +128 -0
- package/apps/cli/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/node.mjs +312 -0
- package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/feeds.mjs +161 -0
- package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/helpers.mjs +113 -0
- package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/index.mjs +56 -0
- package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/legacy.mjs +141 -0
- package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/manipulation.mjs +117 -0
- package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/querying.mjs +124 -0
- package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/stringify.mjs +69 -0
- package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/traversal.mjs +109 -0
- package/apps/cli/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/index.mjs +7 -0
- package/apps/cli/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/sniffer.mjs +112 -0
- package/apps/cli/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/escape.mjs +83 -0
- package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +43 -0
- package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs +330 -0
- package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/escape.mjs +49 -0
- package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +4 -0
- package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +57 -0
- package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode.mjs +351 -0
- package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +5 -0
- package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-xml.mjs +5 -0
- package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/bin-trie-flags.mjs +20 -0
- package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/decode-shared.mjs +14 -0
- package/apps/cli/dist/node_modules/.pnpm/fflate@0.8.3/node_modules/fflate/esm/index.mjs +871 -0
- package/apps/cli/dist/node_modules/.pnpm/form-data-encoder@4.1.0/node_modules/form-data-encoder/lib/index.mjs +279 -0
- package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array-buffer.mjs +54 -0
- package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/buffer.mjs +14 -0
- package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/contents.mjs +80 -0
- package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.mjs +41 -0
- package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/utils.mjs +8 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/index.mjs +154 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/types.mjs +20 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/calculate-retry-delay.mjs +20 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/diagnostics-channel.mjs +38 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/errors.mjs +132 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/index.mjs +923 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/options.mjs +1622 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/parse-link-header.mjs +27 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/response.mjs +36 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/timed-out.mjs +107 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/defer-to-connect.mjs +28 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/get-body-size.mjs +23 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-client-request.mjs +6 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-form-data.mjs +7 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-unix-socket-url.mjs +25 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/proxy-events.mjs +16 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/timer.mjs +114 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/unhandle.mjs +23 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/url-to-options.mjs +20 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/weakable-map.mjs +19 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/create.mjs +166 -0
- package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/index.mjs +17 -0
- package/apps/cli/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Parser.mjs +441 -0
- package/apps/cli/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Tokenizer.mjs +661 -0
- package/apps/cli/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/index.mjs +19 -0
- package/apps/cli/dist/node_modules/.pnpm/http-cache-semantics@4.3.0/node_modules/http-cache-semantics/index.mjs +608 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/agent.mjs +441 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/auto.mjs +145 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/client-request.mjs +318 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/incoming-message.mjs +58 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/index.mjs +51 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/get-auth-headers.mjs +19 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h1-over-h2.mjs +84 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h1.mjs +49 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h2.mjs +38 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-hx.mjs +39 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/initialize.mjs +23 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/unexpected-status-code-error.mjs +15 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/calculate-server-name.mjs +24 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/check-type.mjs +17 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/delay-async-destroy.mjs +28 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/errors.mjs +30 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.mjs +16 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/js-stream-socket.mjs +9 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-events.mjs +10 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-socket-handler.mjs +77 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-name.mjs +15 -0
- package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-value.mjs +14 -0
- package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-codec.mjs +355 -0
- package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-data.mjs +191 -0
- package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/index.mjs +31 -0
- package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/internal.mjs +140 -0
- package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-codec.mjs +50 -0
- package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data-generated.mjs +455 -0
- package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data.mjs +151 -0
- package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/big5-added.mjs +169 -0
- package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp936.mjs +2584 -0
- package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp949.mjs +2220 -0
- package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp950.mjs +227 -0
- package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/eucjp.mjs +425 -0
- package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.mjs +427 -0
- package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gbk-added.mjs +230 -0
- package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/shiftjis.mjs +292 -0
- package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf16.mjs +123 -0
- package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf32.mjs +197 -0
- package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf7.mjs +182 -0
- package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/bom-handling.mjs +42 -0
- package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.mjs +108 -0
- package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/streams.mjs +90 -0
- package/apps/cli/dist/node_modules/.pnpm/is-stream@4.0.1/node_modules/is-stream/index.mjs +9 -0
- package/apps/cli/dist/node_modules/.pnpm/js-sha256@0.11.1/node_modules/js-sha256/src/sha256.mjs +495 -0
- package/apps/cli/dist/node_modules/.pnpm/keyv@5.6.0/node_modules/keyv/dist/index.mjs +740 -0
- package/apps/cli/dist/node_modules/.pnpm/lowercase-keys@3.0.0/node_modules/lowercase-keys/index.mjs +6 -0
- package/apps/cli/dist/node_modules/.pnpm/mimic-response@4.0.0/node_modules/mimic-response/index.mjs +53 -0
- package/apps/cli/dist/node_modules/.pnpm/normalize-url@8.1.1/node_modules/normalize-url/index.mjs +145 -0
- package/apps/cli/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/compile.mjs +37 -0
- package/apps/cli/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/index.mjs +31 -0
- package/apps/cli/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/parse.mjs +60 -0
- package/apps/cli/dist/node_modules/.pnpm/p-cancelable@4.0.1/node_modules/p-cancelable/index.mjs +86 -0
- package/apps/cli/dist/node_modules/.pnpm/parse5-htmlparser2-tree-adapter@7.1.0/node_modules/parse5-htmlparser2-tree-adapter/dist/index.mjs +187 -0
- package/apps/cli/dist/node_modules/.pnpm/parse5-parser-stream@7.1.2/node_modules/parse5-parser-stream/dist/index.mjs +2 -0
- package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.mjs +101 -0
- package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.mjs +66 -0
- package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.mjs +259 -0
- package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.mjs +544 -0
- package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.mjs +19 -0
- package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.mjs +91 -0
- package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/index.mjs +41 -0
- package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.mjs +91 -0
- package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.mjs +2492 -0
- package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.mjs +292 -0
- package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.mjs +111 -0
- package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.mjs +2067 -0
- package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs +154 -0
- package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.mjs +164 -0
- package/apps/cli/dist/node_modules/.pnpm/quick-lru@5.1.1/node_modules/quick-lru/index.mjs +77 -0
- package/apps/cli/dist/node_modules/.pnpm/resolve-alpn@1.2.1/node_modules/resolve-alpn/index.mjs +47 -0
- package/apps/cli/dist/node_modules/.pnpm/responselike@4.0.2/node_modules/responselike/index.mjs +32 -0
- package/apps/cli/dist/node_modules/.pnpm/safer-buffer@2.1.2/node_modules/safer-buffer/safer.mjs +45 -0
- package/apps/cli/dist/node_modules/.pnpm/tldts@7.4.18/node_modules/tldts/dist/cjs/index.mjs +22542 -0
- package/apps/cli/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.mjs +1761 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/index.mjs +221 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/abort-signal.mjs +44 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-connect.mjs +85 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-pipeline.mjs +174 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-request.mjs +155 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-stream.mjs +136 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-upgrade.mjs +88 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/index.mjs +17 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/readable.mjs +418 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/memory-cache-store.mjs +190 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/sqlite-cache-store.mjs +324 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/connect.mjs +115 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/constants.mjs +134 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/diagnostics.mjs +114 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/errors.mjs +412 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/request.mjs +282 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-client.mjs +288 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-utils.mjs +166 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/symbols.mjs +80 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/tree.mjs +124 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/util.mjs +940 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/agent.mjs +119 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/balanced-pool.mjs +129 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h1.mjs +1091 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h2.mjs +588 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client.mjs +385 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher-base.mjs +121 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher.mjs +35 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/env-http-proxy-agent.mjs +105 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/fixed-queue.mjs +75 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/h2c-client.mjs +31 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool-base.mjs +155 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool.mjs +76 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/proxy-agent.mjs +233 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/retry-agent.mjs +37 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/round-robin-pool.mjs +94 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/socks5-proxy-agent.mjs +194 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/encoding/index.mjs +18 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/global.mjs +48 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-handler.mjs +457 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-revalidation-handler.mjs +82 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/decorator-handler.mjs +57 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/deduplication-handler.mjs +341 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/redirect-handler.mjs +131 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/retry-handler.mjs +332 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/unwrap-handler.mjs +88 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/wrap-handler.mjs +68 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/cache.mjs +350 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/decompress.mjs +416 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/deduplicate.mjs +69 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dns.mjs +323 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dump.mjs +65 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/redirect.mjs +20 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/response-error.mjs +73 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/retry.mjs +25 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/constants.mjs +590 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp-wasm.mjs +13 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp_simd-wasm.mjs +13 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/utils.mjs +16 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-agent.mjs +154 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-call-history.mjs +159 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-client.mjs +59 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-errors.mjs +28 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-interceptor.mjs +150 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-pool.mjs +59 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-symbols.mjs +37 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-utils.mjs +302 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/pending-interceptors-formatter.mjs +38 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-agent.mjs +268 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-recorder.mjs +424 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-utils.mjs +121 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/cache.mjs +440 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/date.mjs +332 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/promise.mjs +31 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/runtime-features.mjs +101 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/stats.mjs +31 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/timers.mjs +341 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cache.mjs +462 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cachestorage.mjs +103 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/util.mjs +39 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/constants.mjs +11 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/index.mjs +169 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/parse.mjs +108 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/util.mjs +239 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource-stream.mjs +317 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource.mjs +345 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/util.mjs +29 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/body.mjs +271 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/constants.mjs +224 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/data-url.mjs +247 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata-parser.mjs +255 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata.mjs +153 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/global.mjs +34 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/headers.mjs +400 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/index.mjs +776 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/request.mjs +602 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/response.mjs +358 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/util.mjs +795 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/infra/index.mjs +154 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.mjs +170 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/webidl/index.mjs +505 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/connection.mjs +166 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/constants.mjs +47 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/events.mjs +268 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/frame.mjs +105 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/permessage-deflate.mjs +85 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/receiver.mjs +323 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/sender.mjs +90 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketerror.mjs +78 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketstream.mjs +270 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/util.mjs +212 -0
- package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/websocket.mjs +432 -0
- package/apps/cli/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/labels-to-names.mjs +224 -0
- package/apps/cli/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/supported-names.mjs +45 -0
- package/apps/cli/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/whatwg-encoding.mjs +40 -0
- package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type-parameters.mjs +54 -0
- package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type.mjs +92 -0
- package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/parser.mjs +62 -0
- package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/serializer.mjs +24 -0
- package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/utils.mjs +47 -0
- package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.mjs +26 -0
- package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.mjs +35 -0
- package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.mjs +17 -0
- package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.mjs +800 -0
- package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.mjs +508 -0
- package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.mjs +366 -0
- package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.mjs +60 -0
- package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.mjs +32 -0
- package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.mjs +63 -0
- package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.mjs +253 -0
- package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.mjs +118 -0
- package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.mjs +65 -0
- package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.mjs +48 -0
- package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.mjs +1235 -0
- package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.mjs +297 -0
- package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.mjs +316 -0
- package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.mjs +8 -0
- package/apps/cli/dist/packages/data-maintenance/src/archive.mjs +143 -0
- package/apps/cli/dist/packages/data-maintenance/src/contracts.mjs +17 -0
- package/apps/cli/dist/packages/data-maintenance/src/files.mjs +121 -0
- package/apps/cli/dist/packages/data-maintenance/src/index.mjs +494 -0
- package/apps/cli/dist/packages/data-maintenance/src/lease.mjs +53 -0
- package/apps/cli/dist/packages/data-maintenance/src/migration-backup.mjs +57 -0
- package/apps/cli/dist/packages/data-maintenance/src/paths.mjs +15 -0
- package/apps/cli/dist/packages/feidee/src/client.mjs +635 -0
- package/apps/cli/dist/packages/feidee/src/hash.mjs +10 -0
- package/apps/cli/dist/packages/feidee/src/index.mjs +8 -0
- package/apps/cli/dist/packages/feidee/src/mutation-gateway.mjs +165 -0
- package/apps/cli/dist/packages/feidee/src/parsers.mjs +634 -0
- package/apps/cli/dist/packages/feidee/src/transaction-text.mjs +39 -0
- package/apps/cli/dist/packages/feidee/src/write-contract.mjs +273 -0
- package/apps/cli/dist/packages/finance/src/date-range.mjs +74 -0
- package/apps/cli/dist/packages/finance/src/domain.mjs +18 -0
- package/apps/cli/dist/packages/finance/src/errors.mjs +221 -0
- package/apps/cli/dist/packages/finance/src/index.mjs +16 -0
- package/apps/cli/dist/packages/finance/src/metadata-query.mjs +32 -0
- package/apps/cli/dist/packages/finance/src/sync/progress.mjs +27 -0
- package/apps/cli/dist/packages/finance/src/sync/service.mjs +282 -0
- package/apps/cli/dist/packages/finance/src/transactions/audit.mjs +104 -0
- package/apps/cli/dist/packages/finance/src/transactions/canary.mjs +85 -0
- package/apps/cli/dist/packages/finance/src/transactions/compare.mjs +76 -0
- package/apps/cli/dist/packages/finance/src/transactions/contracts.mjs +92 -0
- package/apps/cli/dist/packages/finance/src/transactions/memo-policy.mjs +79 -0
- package/apps/cli/dist/packages/finance/src/transactions/mutation.mjs +656 -0
- package/apps/cli/dist/packages/finance/src/transactions/query.mjs +59 -0
- package/apps/cli/dist/packages/finance/src/transactions/statistics.mjs +67 -0
- package/apps/cli/dist/packages/finance/src/write-policy.mjs +4 -0
- package/apps/cli/dist/packages/finance-module/src/balance-preview.mjs +4 -0
- package/apps/cli/dist/packages/finance-module/src/contracts.mjs +13 -0
- package/apps/cli/dist/packages/finance-module/src/database.mjs +1292 -0
- package/apps/cli/dist/packages/finance-module/src/draft-entries.mjs +89 -0
- package/apps/cli/dist/packages/finance-module/src/draft-receipts.mjs +8 -0
- package/apps/cli/dist/packages/finance-module/src/historical-task-archives.mjs +24 -0
- package/apps/cli/dist/packages/finance-module/src/node.mjs +76 -0
- package/apps/cli/dist/packages/finance-module/src/personal-preferences.mjs +29 -0
- package/apps/cli/dist/packages/finance-module/src/route-contracts.mjs +11 -0
- package/apps/cli/dist/packages/finance-module/src/schema-compatibility.mjs +142 -0
- package/apps/cli/dist/packages/finance-module/src/service-record-domain.mjs +16 -0
- package/apps/cli/dist/packages/finance-module/src/service-record-store.mjs +119 -0
- package/apps/cli/dist/packages/finance-module/src/shared-draft-migration.mjs +39 -0
- package/apps/cli/dist/packages/finance-module/src/single-draft-migration.mjs +70 -0
- package/apps/cli/dist/packages/finance-module/src/storage.mjs +282 -0
- package/apps/cli/dist/packages/finance-module/src/web-contracts.mjs +38 -0
- package/apps/cli/dist/packages/local-store/src/checkpoint-backup.mjs +40 -0
- package/apps/cli/dist/packages/local-store/src/checkpoint-history.mjs +77 -0
- package/apps/cli/dist/packages/local-store/src/database.mjs +1523 -0
- package/apps/cli/dist/packages/local-store/src/exchange-rates.mjs +169 -0
- package/apps/cli/dist/packages/local-store/src/node.mjs +71 -0
- package/apps/cli/dist/packages/sdk/src/account-snapshot-service.mjs +582 -0
- package/apps/cli/dist/packages/sdk/src/auth.mjs +89 -0
- package/apps/cli/dist/packages/sdk/src/cache-analysis.mjs +393 -0
- package/apps/cli/dist/packages/sdk/src/config.mjs +64 -0
- package/apps/cli/dist/packages/sdk/src/credential-identity.mjs +8 -0
- package/apps/cli/dist/packages/sdk/src/credentials.mjs +86 -0
- package/apps/cli/dist/packages/sdk/src/exchange-rate-service.mjs +253 -0
- package/apps/cli/dist/packages/sdk/src/finance-cookie-cache.mjs +93 -0
- package/apps/cli/dist/packages/sdk/src/finance-session.mjs +215 -0
- package/apps/cli/dist/packages/sdk/src/frankfurter.mjs +125 -0
- package/apps/cli/dist/packages/sdk/src/node.mjs +53 -0
- package/apps/cli/dist/packages/sdk/src/probe.mjs +65 -0
- package/apps/cli/dist/packages/sdk/src/resource-lease-node.mjs +27 -0
- package/apps/cli/dist/packages/sdk/src/resource-lease-owner-node.mjs +68 -0
- package/apps/cli/dist/packages/sdk/src/resource-lease.mjs +143 -0
- package/apps/cli/dist/packages/sdk/src/runtime.mjs +643 -0
- package/apps/cli/dist/storage.mjs +11 -0
- package/bundles/sui-ledger/dist/_virtual/_rolldown/runtime.mjs +35 -0
- package/bundles/sui-ledger/dist/capabilities/tools.mjs +32 -0
- package/bundles/sui-ledger/dist/client.js +23511 -0
- package/bundles/sui-ledger/dist/finance-prompt.mjs +30 -0
- package/bundles/sui-ledger/dist/finance-state-context.mjs +38 -0
- package/bundles/sui-ledger/dist/index.mjs +198 -0
- package/bundles/sui-ledger/dist/maintenance-cli.mjs +76 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/@deepseek-ai_dsh-home-paths_159c15e70066431314381a350c2ee56a/node_modules/@deepseek-ai/dsh-home-paths/lib/index.mjs +67 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/@keyv_serialize@1.1.1/node_modules/@keyv/serialize/dist/index.mjs +37 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/@sec-ant_readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.mjs +81 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/@sec-ant_readable-stream@0.4.1/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.mjs +1 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/index.mjs +1015 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/utilities.mjs +6 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/boolbase@1.0.0/node_modules/boolbase/index.mjs +15 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/byte-counter@0.1.0/node_modules/byte-counter/utilities.mjs +9 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/cacheable-lookup@7.0.0/node_modules/cacheable-lookup/source/index.mjs +279 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/index.mjs +274 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/types.mjs +15 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/helpers.mjs +15 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/index.mjs +159 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/positionals.mjs +33 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/attributes.mjs +465 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/css.mjs +94 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/extract.mjs +39 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/forms.mjs +63 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/manipulation.mjs +731 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/traversing.mjs +828 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/cheerio.mjs +53 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/index.mjs +11 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load-parse.mjs +25 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load.mjs +73 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/options.mjs +27 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parse.mjs +53 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parsers/parse5-adapter.mjs +42 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/static.mjs +165 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/utils.mjs +78 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/attributes.mjs +187 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/compile.mjs +77 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/general.mjs +89 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/index.mjs +43 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/aliases.mjs +32 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/filters.mjs +114 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/index.mjs +35 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.mjs +53 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/subselects.mjs +68 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/sort.mjs +60 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/index.mjs +50 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/parse.mjs +320 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/stringify.mjs +102 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/types.mjs +45 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/decompress-response@10.0.0/node_modules/decompress-response/index.mjs +59 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/foreignNames.mjs +103 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/index.mjs +144 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/esm/index.mjs +51 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/index.mjs +128 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/node.mjs +312 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/feeds.mjs +161 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/helpers.mjs +113 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/index.mjs +56 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/legacy.mjs +141 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/manipulation.mjs +117 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/querying.mjs +124 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/stringify.mjs +69 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/traversal.mjs +109 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/index.mjs +7 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/sniffer.mjs +112 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/escape.mjs +83 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +43 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs +330 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/escape.mjs +49 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +4 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +57 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode.mjs +351 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +5 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-xml.mjs +5 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/bin-trie-flags.mjs +20 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/decode-shared.mjs +14 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/fflate@0.8.3/node_modules/fflate/esm/index.mjs +871 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/form-data-encoder@4.1.0/node_modules/form-data-encoder/lib/index.mjs +279 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array-buffer.mjs +54 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/buffer.mjs +14 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/contents.mjs +80 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.mjs +41 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/utils.mjs +8 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/index.mjs +154 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/types.mjs +20 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/calculate-retry-delay.mjs +20 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/diagnostics-channel.mjs +38 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/errors.mjs +132 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/index.mjs +923 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/options.mjs +1622 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/parse-link-header.mjs +27 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/response.mjs +36 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/timed-out.mjs +107 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/defer-to-connect.mjs +28 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/get-body-size.mjs +23 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-client-request.mjs +6 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-form-data.mjs +7 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-unix-socket-url.mjs +25 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/proxy-events.mjs +16 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/timer.mjs +114 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/unhandle.mjs +23 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/url-to-options.mjs +20 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/weakable-map.mjs +19 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/create.mjs +166 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/index.mjs +17 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Parser.mjs +441 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Tokenizer.mjs +661 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/index.mjs +19 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http-cache-semantics@4.3.0/node_modules/http-cache-semantics/index.mjs +608 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/agent.mjs +441 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/auto.mjs +145 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/client-request.mjs +318 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/incoming-message.mjs +58 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/index.mjs +51 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/get-auth-headers.mjs +19 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h1-over-h2.mjs +84 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h1.mjs +49 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h2.mjs +38 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-hx.mjs +39 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/initialize.mjs +23 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/unexpected-status-code-error.mjs +15 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/calculate-server-name.mjs +24 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/check-type.mjs +17 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/delay-async-destroy.mjs +28 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/errors.mjs +30 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/is-request-pseudo-header.mjs +16 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/js-stream-socket.mjs +9 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-events.mjs +10 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-socket-handler.mjs +77 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-name.mjs +15 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-value.mjs +14 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-codec.mjs +355 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-data.mjs +191 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/index.mjs +31 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/internal.mjs +140 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-codec.mjs +50 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data-generated.mjs +455 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data.mjs +151 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/big5-added.mjs +169 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp936.mjs +2584 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp949.mjs +2220 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp950.mjs +227 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/eucjp.mjs +425 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.mjs +427 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gbk-added.mjs +230 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/shiftjis.mjs +292 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf16.mjs +123 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf32.mjs +197 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf7.mjs +182 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/bom-handling.mjs +42 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.mjs +108 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/streams.mjs +90 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/is-stream@4.0.1/node_modules/is-stream/index.mjs +9 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/js-sha256@0.11.1/node_modules/js-sha256/src/sha256.mjs +495 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/keyv@5.6.0/node_modules/keyv/dist/index.mjs +740 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/lowercase-keys@3.0.0/node_modules/lowercase-keys/index.mjs +6 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/mimic-response@4.0.0/node_modules/mimic-response/index.mjs +53 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/normalize-url@8.1.1/node_modules/normalize-url/index.mjs +145 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/compile.mjs +37 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/index.mjs +31 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/parse.mjs +60 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/p-cancelable@4.0.1/node_modules/p-cancelable/index.mjs +86 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5-htmlparser2-tree-adapter@7.1.0/node_modules/parse5-htmlparser2-tree-adapter/dist/index.mjs +187 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5-parser-stream@7.1.2/node_modules/parse5-parser-stream/dist/index.mjs +2 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.mjs +101 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.mjs +66 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.mjs +259 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.mjs +544 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.mjs +19 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.mjs +91 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/index.mjs +41 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.mjs +91 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.mjs +2492 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.mjs +292 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.mjs +111 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.mjs +2067 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs +154 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.mjs +164 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/quick-lru@5.1.1/node_modules/quick-lru/index.mjs +77 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/resolve-alpn@1.2.1/node_modules/resolve-alpn/index.mjs +47 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/responselike@4.0.2/node_modules/responselike/index.mjs +32 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/safer-buffer@2.1.2/node_modules/safer-buffer/safer.mjs +45 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/tldts@7.4.18/node_modules/tldts/dist/cjs/index.mjs +22542 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.mjs +1761 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/index.mjs +221 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/abort-signal.mjs +44 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-connect.mjs +85 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-pipeline.mjs +174 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-request.mjs +155 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-stream.mjs +136 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-upgrade.mjs +88 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/index.mjs +17 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/readable.mjs +418 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/memory-cache-store.mjs +190 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/sqlite-cache-store.mjs +324 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/connect.mjs +115 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/constants.mjs +134 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/diagnostics.mjs +114 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/errors.mjs +412 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/request.mjs +282 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-client.mjs +288 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-utils.mjs +166 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/symbols.mjs +80 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/tree.mjs +124 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/util.mjs +940 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/agent.mjs +119 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/balanced-pool.mjs +129 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h1.mjs +1091 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h2.mjs +588 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client.mjs +385 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher-base.mjs +121 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher.mjs +35 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/env-http-proxy-agent.mjs +105 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/fixed-queue.mjs +75 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/h2c-client.mjs +31 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool-base.mjs +155 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool.mjs +76 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/proxy-agent.mjs +233 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/retry-agent.mjs +37 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/round-robin-pool.mjs +94 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/socks5-proxy-agent.mjs +194 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/encoding/index.mjs +18 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/global.mjs +48 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-handler.mjs +457 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-revalidation-handler.mjs +82 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/decorator-handler.mjs +57 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/deduplication-handler.mjs +341 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/redirect-handler.mjs +131 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/retry-handler.mjs +332 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/unwrap-handler.mjs +88 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/wrap-handler.mjs +68 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/cache.mjs +350 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/decompress.mjs +416 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/deduplicate.mjs +69 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dns.mjs +323 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dump.mjs +65 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/redirect.mjs +20 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/response-error.mjs +73 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/retry.mjs +25 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/constants.mjs +590 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp-wasm.mjs +13 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp_simd-wasm.mjs +13 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/utils.mjs +16 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-agent.mjs +154 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-call-history.mjs +159 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-client.mjs +59 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-errors.mjs +28 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-interceptor.mjs +150 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-pool.mjs +59 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-symbols.mjs +37 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-utils.mjs +302 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/pending-interceptors-formatter.mjs +38 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-agent.mjs +268 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-recorder.mjs +424 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-utils.mjs +121 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/cache.mjs +440 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/date.mjs +332 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/promise.mjs +31 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/runtime-features.mjs +101 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/stats.mjs +31 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/timers.mjs +341 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cache.mjs +462 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cachestorage.mjs +103 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/util.mjs +39 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/constants.mjs +11 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/index.mjs +169 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/parse.mjs +108 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/util.mjs +239 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource-stream.mjs +317 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource.mjs +345 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/util.mjs +29 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/body.mjs +271 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/constants.mjs +224 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/data-url.mjs +247 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata-parser.mjs +255 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata.mjs +153 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/global.mjs +34 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/headers.mjs +400 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/index.mjs +776 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/request.mjs +602 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/response.mjs +358 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/util.mjs +795 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/infra/index.mjs +154 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.mjs +170 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/webidl/index.mjs +505 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/connection.mjs +166 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/constants.mjs +47 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/events.mjs +268 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/frame.mjs +105 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/permessage-deflate.mjs +85 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/receiver.mjs +323 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/sender.mjs +90 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketerror.mjs +78 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketstream.mjs +270 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/util.mjs +212 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/websocket.mjs +432 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/labels-to-names.mjs +224 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/supported-names.mjs +45 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/whatwg-encoding.mjs +40 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type-parameters.mjs +54 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type.mjs +92 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/parser.mjs +62 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/serializer.mjs +24 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/utils.mjs +47 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/dist/cpexcel.mjs +3348 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/xlsx.mjs +26473 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.mjs +26 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.mjs +35 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.mjs +17 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.mjs +800 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.mjs +508 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.mjs +366 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.mjs +60 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.mjs +32 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.mjs +63 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.mjs +253 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.mjs +118 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.mjs +65 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.mjs +48 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.mjs +1235 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.mjs +297 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.mjs +316 -0
- package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.mjs +8 -0
- package/bundles/sui-ledger/dist/packages/data-maintenance/src/archive.mjs +143 -0
- package/bundles/sui-ledger/dist/packages/data-maintenance/src/contracts.mjs +17 -0
- package/bundles/sui-ledger/dist/packages/data-maintenance/src/files.mjs +158 -0
- package/bundles/sui-ledger/dist/packages/data-maintenance/src/index.mjs +494 -0
- package/bundles/sui-ledger/dist/packages/data-maintenance/src/lease.mjs +53 -0
- package/bundles/sui-ledger/dist/packages/data-maintenance/src/migration-backup.mjs +57 -0
- package/bundles/sui-ledger/dist/packages/data-maintenance/src/paths.mjs +15 -0
- package/bundles/sui-ledger/dist/packages/data-maintenance/src/runtime.mjs +132 -0
- package/bundles/sui-ledger/dist/packages/feidee/src/client.mjs +635 -0
- package/bundles/sui-ledger/dist/packages/feidee/src/hash.mjs +10 -0
- package/bundles/sui-ledger/dist/packages/feidee/src/index.mjs +8 -0
- package/bundles/sui-ledger/dist/packages/feidee/src/mutation-gateway.mjs +165 -0
- package/bundles/sui-ledger/dist/packages/feidee/src/parsers.mjs +634 -0
- package/bundles/sui-ledger/dist/packages/feidee/src/transaction-text.mjs +39 -0
- package/bundles/sui-ledger/dist/packages/feidee/src/write-contract.mjs +273 -0
- package/bundles/sui-ledger/dist/packages/finance/src/date-range.mjs +74 -0
- package/bundles/sui-ledger/dist/packages/finance/src/domain.mjs +18 -0
- package/bundles/sui-ledger/dist/packages/finance/src/errors.mjs +221 -0
- package/bundles/sui-ledger/dist/packages/finance/src/index.mjs +17 -0
- package/bundles/sui-ledger/dist/packages/finance/src/json-schema.mjs +212 -0
- package/bundles/sui-ledger/dist/packages/finance/src/metadata-query.mjs +32 -0
- package/bundles/sui-ledger/dist/packages/finance/src/money.mjs +39 -0
- package/bundles/sui-ledger/dist/packages/finance/src/public-error.mjs +10 -0
- package/bundles/sui-ledger/dist/packages/finance/src/sync/progress.mjs +27 -0
- package/bundles/sui-ledger/dist/packages/finance/src/sync/service.mjs +282 -0
- package/bundles/sui-ledger/dist/packages/finance/src/transactions/audit.mjs +104 -0
- package/bundles/sui-ledger/dist/packages/finance/src/transactions/canary.mjs +85 -0
- package/bundles/sui-ledger/dist/packages/finance/src/transactions/compare.mjs +76 -0
- package/bundles/sui-ledger/dist/packages/finance/src/transactions/contracts.mjs +83 -0
- package/bundles/sui-ledger/dist/packages/finance/src/transactions/memo-policy.mjs +79 -0
- package/bundles/sui-ledger/dist/packages/finance/src/transactions/mutation.mjs +656 -0
- package/bundles/sui-ledger/dist/packages/finance/src/transactions/query.mjs +59 -0
- package/bundles/sui-ledger/dist/packages/finance/src/transactions/statistics.mjs +67 -0
- package/bundles/sui-ledger/dist/packages/finance/src/write-policy.mjs +4 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/balance-preview.mjs +119 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/capabilities.mjs +1306 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/checkpoint-review.mjs +75 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/commit-failure.mjs +161 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/commit-recovery.mjs +41 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/contracts.mjs +13 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/data-version.mjs +8 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/database.mjs +1292 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/draft-entries.mjs +216 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/draft-receipts.mjs +16 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/finance-guidance.mjs +23 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/historical-task-archives.mjs +24 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/index.mjs +17 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/interactions.mjs +229 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/model-pages.mjs +61 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/model-views.mjs +206 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/node.mjs +76 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/personal-preferences.mjs +103 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/route-contracts.mjs +11 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/routes.mjs +427 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/schema-compatibility.mjs +142 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/sdk-adapter.mjs +100 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-domain.mjs +207 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-routes.mjs +91 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-store.mjs +119 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-tools.mjs +283 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/service-records.mjs +626 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/service.mjs +2525 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/shared-draft-migration.mjs +39 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/single-draft-migration.mjs +70 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/source-reader.mjs +354 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/storage.mjs +282 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/tool-contracts.mjs +42 -0
- package/bundles/sui-ledger/dist/packages/finance-module/src/web-contracts.mjs +74 -0
- package/bundles/sui-ledger/dist/packages/interaction/src/registry.mjs +36 -0
- package/bundles/sui-ledger/dist/packages/interaction/src/service.mjs +424 -0
- package/bundles/sui-ledger/dist/packages/local-store/src/checkpoint-backup.mjs +40 -0
- package/bundles/sui-ledger/dist/packages/local-store/src/checkpoint-history.mjs +77 -0
- package/bundles/sui-ledger/dist/packages/local-store/src/database.mjs +1523 -0
- package/bundles/sui-ledger/dist/packages/local-store/src/exchange-rates.mjs +169 -0
- package/bundles/sui-ledger/dist/packages/local-store/src/node.mjs +71 -0
- package/bundles/sui-ledger/dist/packages/local-store/src/readonly-node.mjs +486 -0
- package/bundles/sui-ledger/dist/packages/sdk/src/account-snapshot-service.mjs +582 -0
- package/bundles/sui-ledger/dist/packages/sdk/src/cache-analysis.mjs +597 -0
- package/bundles/sui-ledger/dist/packages/sdk/src/config.mjs +64 -0
- package/bundles/sui-ledger/dist/packages/sdk/src/credential-identity.mjs +7 -0
- package/bundles/sui-ledger/dist/packages/sdk/src/credentials.mjs +86 -0
- package/bundles/sui-ledger/dist/packages/sdk/src/exchange-rate-service.mjs +253 -0
- package/bundles/sui-ledger/dist/packages/sdk/src/finance-cookie-cache.mjs +93 -0
- package/bundles/sui-ledger/dist/packages/sdk/src/finance-session.mjs +215 -0
- package/bundles/sui-ledger/dist/packages/sdk/src/frankfurter.mjs +125 -0
- package/bundles/sui-ledger/dist/packages/sdk/src/ledger-money.mjs +183 -0
- package/bundles/sui-ledger/dist/packages/sdk/src/node-readonly.mjs +381 -0
- package/bundles/sui-ledger/dist/packages/sdk/src/node.mjs +53 -0
- package/bundles/sui-ledger/dist/packages/sdk/src/probe.mjs +65 -0
- package/bundles/sui-ledger/dist/packages/sdk/src/resource-lease-node.mjs +27 -0
- package/bundles/sui-ledger/dist/packages/sdk/src/resource-lease-owner-node.mjs +68 -0
- package/bundles/sui-ledger/dist/packages/sdk/src/resource-lease.mjs +143 -0
- package/bundles/sui-ledger/dist/packages/sdk/src/runtime.mjs +643 -0
- package/bundles/sui-ledger/dist/preferences-context.mjs +21 -0
- package/bundles/sui-ledger/dist/remote-write-policy.mjs +51 -0
- package/bundles/sui-ledger/dist/routes/finance-api.mjs +380 -0
- package/bundles/sui-ledger/dist/session/attachment-ownership.mjs +53 -0
- package/bundles/sui-ledger/dist/session/call-context.mjs +14 -0
- package/bundles/sui-ledger/dist/session/source-ports.mjs +74 -0
- package/bundles/sui-ledger/dist/storage/business-runtime.mjs +116 -0
- package/bundles/sui-ledger/dist/storage/maintenance-http.mjs +159 -0
- package/bundles/sui-ledger/dist/storage/paths.mjs +15 -0
- package/bundles/sui-ledger/dist/style.css +15416 -0
- package/bundles/sui-ledger/icon.svg +1 -0
- package/bundles/sui-ledger/locale/en.json +6 -0
- package/bundles/sui-ledger/locale/zh-CN.json +6 -0
- package/cordis.patch.yml +4 -0
- package/package.json +111 -3
|
@@ -0,0 +1,1091 @@
|
|
|
1
|
+
import { __commonJSMin, __require } from "../../../../../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { require_symbols } from "../core/symbols.mjs";
|
|
3
|
+
import { require_timers } from "../util/timers.mjs";
|
|
4
|
+
import { require_errors } from "../core/errors.mjs";
|
|
5
|
+
import { require_util } from "../core/util.mjs";
|
|
6
|
+
import { require_diagnostics } from "../core/diagnostics.mjs";
|
|
7
|
+
import { require_constants } from "../llhttp/constants.mjs";
|
|
8
|
+
import { require_llhttp_wasm } from "../llhttp/llhttp-wasm.mjs";
|
|
9
|
+
import { require_llhttp_simd_wasm } from "../llhttp/llhttp_simd-wasm.mjs";
|
|
10
|
+
import { require_body } from "../web/fetch/body.mjs";
|
|
11
|
+
//#region ../../node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h1.js
|
|
12
|
+
var require_client_h1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
13
|
+
const assert = __require("node:assert");
|
|
14
|
+
const util = require_util();
|
|
15
|
+
const { channels } = require_diagnostics();
|
|
16
|
+
const timers = require_timers();
|
|
17
|
+
const { RequestContentLengthMismatchError, ResponseContentLengthMismatchError, RequestAbortedError, InvalidArgumentError, HeadersTimeoutError, HeadersOverflowError, SocketError, InformationalError, BodyTimeoutError, HTTPParserError, ResponseExceededMaxSizeError } = require_errors();
|
|
18
|
+
const { kUrl, kReset, kClient, kParser, kBlocking, kRunning, kPending, kSize, kWriting, kQueue, kNoRef, kKeepAliveDefaultTimeout, kHostHeader, kPendingIdx, kRunningIdx, kError, kPipelining, kSocket, kKeepAliveTimeoutValue, kMaxHeadersSize, kKeepAliveMaxTimeout, kKeepAliveTimeoutThreshold, kHeadersTimeout, kBodyTimeout, kStrictContentLength, kMaxRequests, kCounter, kMaxResponseSize, kOnError, kResume, kHTTPContext, kClosed } = require_symbols();
|
|
19
|
+
const constants = require_constants();
|
|
20
|
+
const EMPTY_BUF = Buffer.alloc(0);
|
|
21
|
+
const FastBuffer = Buffer[Symbol.species];
|
|
22
|
+
const removeAllListeners = util.removeAllListeners;
|
|
23
|
+
const kIdleSocketValidation = Symbol("kIdleSocketValidation");
|
|
24
|
+
const kIdleSocketValidationTimeout = Symbol("kIdleSocketValidationTimeout");
|
|
25
|
+
const kSocketUsed = Symbol("kSocketUsed");
|
|
26
|
+
let extractBody;
|
|
27
|
+
function lazyllhttp() {
|
|
28
|
+
const llhttpWasmData = process.env.JEST_WORKER_ID ? require_llhttp_wasm() : void 0;
|
|
29
|
+
let mod;
|
|
30
|
+
let useWasmSIMD = true;
|
|
31
|
+
if (process.arch === "ppc64") {
|
|
32
|
+
const [major, minor] = process.versions.node.split(".").map((n) => parseInt(n, 10));
|
|
33
|
+
if (major < 24 || major === 24 && minor < 12) useWasmSIMD = false;
|
|
34
|
+
}
|
|
35
|
+
if (process.env.UNDICI_NO_WASM_SIMD === "1") useWasmSIMD = false;
|
|
36
|
+
else if (process.env.UNDICI_NO_WASM_SIMD === "0") useWasmSIMD = true;
|
|
37
|
+
if (useWasmSIMD) try {
|
|
38
|
+
mod = new WebAssembly.Module(require_llhttp_simd_wasm());
|
|
39
|
+
} catch {}
|
|
40
|
+
if (!mod) mod = new WebAssembly.Module(llhttpWasmData || require_llhttp_wasm());
|
|
41
|
+
return new WebAssembly.Instance(mod, { env: {
|
|
42
|
+
/**
|
|
43
|
+
* @param {number} p
|
|
44
|
+
* @param {number} at
|
|
45
|
+
* @param {number} len
|
|
46
|
+
* @returns {number}
|
|
47
|
+
*/
|
|
48
|
+
wasm_on_url: (p, at, len) => {
|
|
49
|
+
return 0;
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* @param {number} p
|
|
53
|
+
* @param {number} at
|
|
54
|
+
* @param {number} len
|
|
55
|
+
* @returns {number}
|
|
56
|
+
*/
|
|
57
|
+
wasm_on_status: (p, at, len) => {
|
|
58
|
+
assert(currentParser.ptr === p);
|
|
59
|
+
const start = at - currentBufferPtr + currentBufferRef.byteOffset;
|
|
60
|
+
return currentParser.onStatus(new FastBuffer(currentBufferRef.buffer, start, len));
|
|
61
|
+
},
|
|
62
|
+
/**
|
|
63
|
+
* @param {number} p
|
|
64
|
+
* @returns {number}
|
|
65
|
+
*/
|
|
66
|
+
wasm_on_message_begin: (p) => {
|
|
67
|
+
assert(currentParser.ptr === p);
|
|
68
|
+
return currentParser.onMessageBegin();
|
|
69
|
+
},
|
|
70
|
+
/**
|
|
71
|
+
* @param {number} p
|
|
72
|
+
* @param {number} at
|
|
73
|
+
* @param {number} len
|
|
74
|
+
* @returns {number}
|
|
75
|
+
*/
|
|
76
|
+
wasm_on_header_field: (p, at, len) => {
|
|
77
|
+
assert(currentParser.ptr === p);
|
|
78
|
+
const start = at - currentBufferPtr + currentBufferRef.byteOffset;
|
|
79
|
+
return currentParser.onHeaderField(new FastBuffer(currentBufferRef.buffer, start, len));
|
|
80
|
+
},
|
|
81
|
+
/**
|
|
82
|
+
* @param {number} p
|
|
83
|
+
* @param {number} at
|
|
84
|
+
* @param {number} len
|
|
85
|
+
* @returns {number}
|
|
86
|
+
*/
|
|
87
|
+
wasm_on_header_value: (p, at, len) => {
|
|
88
|
+
assert(currentParser.ptr === p);
|
|
89
|
+
const start = at - currentBufferPtr + currentBufferRef.byteOffset;
|
|
90
|
+
return currentParser.onHeaderValue(new FastBuffer(currentBufferRef.buffer, start, len));
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
* @param {number} p
|
|
94
|
+
* @param {number} statusCode
|
|
95
|
+
* @param {0|1} upgrade
|
|
96
|
+
* @param {0|1} shouldKeepAlive
|
|
97
|
+
* @returns {number}
|
|
98
|
+
*/
|
|
99
|
+
wasm_on_headers_complete: (p, statusCode, upgrade, shouldKeepAlive) => {
|
|
100
|
+
assert(currentParser.ptr === p);
|
|
101
|
+
return currentParser.onHeadersComplete(statusCode, upgrade === 1, shouldKeepAlive === 1);
|
|
102
|
+
},
|
|
103
|
+
/**
|
|
104
|
+
* @param {number} p
|
|
105
|
+
* @param {number} at
|
|
106
|
+
* @param {number} len
|
|
107
|
+
* @returns {number}
|
|
108
|
+
*/
|
|
109
|
+
wasm_on_body: (p, at, len) => {
|
|
110
|
+
assert(currentParser.ptr === p);
|
|
111
|
+
const start = at - currentBufferPtr + currentBufferRef.byteOffset;
|
|
112
|
+
return currentParser.onBody(new FastBuffer(currentBufferRef.buffer, start, len));
|
|
113
|
+
},
|
|
114
|
+
/**
|
|
115
|
+
* @param {number} p
|
|
116
|
+
* @returns {number}
|
|
117
|
+
*/
|
|
118
|
+
wasm_on_message_complete: (p) => {
|
|
119
|
+
assert(currentParser.ptr === p);
|
|
120
|
+
return currentParser.onMessageComplete();
|
|
121
|
+
}
|
|
122
|
+
} });
|
|
123
|
+
}
|
|
124
|
+
let llhttpInstance = null;
|
|
125
|
+
/**
|
|
126
|
+
* @type {Parser|null}
|
|
127
|
+
*/
|
|
128
|
+
let currentParser = null;
|
|
129
|
+
let currentBufferRef = null;
|
|
130
|
+
/**
|
|
131
|
+
* @type {number}
|
|
132
|
+
*/
|
|
133
|
+
let currentBufferSize = 0;
|
|
134
|
+
let currentBufferPtr = null;
|
|
135
|
+
const USE_FAST_TIMER = 1;
|
|
136
|
+
const TIMEOUT_HEADERS = 3;
|
|
137
|
+
const TIMEOUT_BODY = 5;
|
|
138
|
+
const TIMEOUT_KEEP_ALIVE = 8;
|
|
139
|
+
var Parser = class {
|
|
140
|
+
/**
|
|
141
|
+
* @param {import('./client.js')} client
|
|
142
|
+
* @param {import('net').Socket} socket
|
|
143
|
+
* @param {*} llhttp
|
|
144
|
+
*/
|
|
145
|
+
constructor(client, socket, { exports: exports$1 }) {
|
|
146
|
+
this.llhttp = exports$1;
|
|
147
|
+
this.ptr = this.llhttp.llhttp_alloc(constants.TYPE.RESPONSE);
|
|
148
|
+
this.client = client;
|
|
149
|
+
/**
|
|
150
|
+
* @type {import('net').Socket}
|
|
151
|
+
*/
|
|
152
|
+
this.socket = socket;
|
|
153
|
+
this.timeout = null;
|
|
154
|
+
this.timeoutWeakRef = new WeakRef(this);
|
|
155
|
+
this.timeoutValue = null;
|
|
156
|
+
this.timeoutType = null;
|
|
157
|
+
this.statusCode = 0;
|
|
158
|
+
this.statusText = "";
|
|
159
|
+
this.upgrade = false;
|
|
160
|
+
this.headers = [];
|
|
161
|
+
this.headersSize = 0;
|
|
162
|
+
this.headersMaxSize = client[kMaxHeadersSize];
|
|
163
|
+
this.shouldKeepAlive = false;
|
|
164
|
+
this.paused = false;
|
|
165
|
+
this.resume = this.resume.bind(this);
|
|
166
|
+
this.bytesRead = 0;
|
|
167
|
+
this.keepAlive = "";
|
|
168
|
+
this.contentLength = "";
|
|
169
|
+
this.connection = "";
|
|
170
|
+
this.maxResponseSize = client[kMaxResponseSize];
|
|
171
|
+
}
|
|
172
|
+
setTimeout(delay, type) {
|
|
173
|
+
if (delay !== this.timeoutValue || type & USE_FAST_TIMER ^ this.timeoutType & USE_FAST_TIMER) {
|
|
174
|
+
if (this.timeout) {
|
|
175
|
+
timers.clearTimeout(this.timeout);
|
|
176
|
+
this.timeout = null;
|
|
177
|
+
}
|
|
178
|
+
if (delay) {
|
|
179
|
+
if (type & USE_FAST_TIMER) this.timeout = timers.setFastTimeout(onParserTimeout, delay, this.timeoutWeakRef);
|
|
180
|
+
else {
|
|
181
|
+
this.timeout = setTimeout(onParserTimeout, delay, this.timeoutWeakRef);
|
|
182
|
+
this.timeout?.unref();
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
this.timeoutValue = delay;
|
|
186
|
+
} else if (this.timeout) {
|
|
187
|
+
if (this.timeout.refresh) this.timeout.refresh();
|
|
188
|
+
}
|
|
189
|
+
this.timeoutType = type;
|
|
190
|
+
}
|
|
191
|
+
resume() {
|
|
192
|
+
if (this.socket.destroyed || !this.paused) return;
|
|
193
|
+
assert(this.ptr != null);
|
|
194
|
+
assert(currentParser === null);
|
|
195
|
+
this.llhttp.llhttp_resume(this.ptr);
|
|
196
|
+
assert(this.timeoutType === TIMEOUT_BODY);
|
|
197
|
+
if (this.timeout) {
|
|
198
|
+
if (this.timeout.refresh) this.timeout.refresh();
|
|
199
|
+
}
|
|
200
|
+
this.paused = false;
|
|
201
|
+
this.execute(this.socket.read() || EMPTY_BUF);
|
|
202
|
+
this.readMore();
|
|
203
|
+
}
|
|
204
|
+
readMore() {
|
|
205
|
+
while (!this.paused && this.ptr) {
|
|
206
|
+
const chunk = this.socket.read();
|
|
207
|
+
if (chunk === null) break;
|
|
208
|
+
this.execute(chunk);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* @param {Buffer} chunk
|
|
213
|
+
*/
|
|
214
|
+
execute(chunk) {
|
|
215
|
+
assert(currentParser === null);
|
|
216
|
+
assert(this.ptr != null);
|
|
217
|
+
assert(!this.paused);
|
|
218
|
+
const { socket, llhttp } = this;
|
|
219
|
+
if (chunk.length > currentBufferSize) {
|
|
220
|
+
if (currentBufferPtr) llhttp.free(currentBufferPtr);
|
|
221
|
+
currentBufferSize = Math.ceil(chunk.length / 4096) * 4096;
|
|
222
|
+
currentBufferPtr = llhttp.malloc(currentBufferSize);
|
|
223
|
+
}
|
|
224
|
+
new Uint8Array(llhttp.memory.buffer, currentBufferPtr, currentBufferSize).set(chunk);
|
|
225
|
+
try {
|
|
226
|
+
let ret;
|
|
227
|
+
try {
|
|
228
|
+
currentBufferRef = chunk;
|
|
229
|
+
currentParser = this;
|
|
230
|
+
ret = llhttp.llhttp_execute(this.ptr, currentBufferPtr, chunk.length);
|
|
231
|
+
} finally {
|
|
232
|
+
currentParser = null;
|
|
233
|
+
currentBufferRef = null;
|
|
234
|
+
}
|
|
235
|
+
if (ret !== constants.ERROR.OK) {
|
|
236
|
+
const data = chunk.subarray(llhttp.llhttp_get_error_pos(this.ptr) - currentBufferPtr);
|
|
237
|
+
if (ret === constants.ERROR.PAUSED_UPGRADE) this.onUpgrade(data);
|
|
238
|
+
else if (ret === constants.ERROR.PAUSED) {
|
|
239
|
+
this.paused = true;
|
|
240
|
+
socket.unshift(data);
|
|
241
|
+
} else throw this.createError(ret, data);
|
|
242
|
+
}
|
|
243
|
+
} catch (err) {
|
|
244
|
+
util.destroy(socket, err);
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
finish() {
|
|
248
|
+
assert(currentParser === null);
|
|
249
|
+
assert(this.ptr != null);
|
|
250
|
+
assert(!this.paused);
|
|
251
|
+
const { llhttp } = this;
|
|
252
|
+
let ret;
|
|
253
|
+
try {
|
|
254
|
+
currentParser = this;
|
|
255
|
+
ret = llhttp.llhttp_finish(this.ptr);
|
|
256
|
+
} finally {
|
|
257
|
+
currentParser = null;
|
|
258
|
+
}
|
|
259
|
+
if (ret === constants.ERROR.OK) return null;
|
|
260
|
+
if (ret === constants.ERROR.PAUSED || ret === constants.ERROR.PAUSED_UPGRADE) {
|
|
261
|
+
this.paused = true;
|
|
262
|
+
return null;
|
|
263
|
+
}
|
|
264
|
+
return this.createError(ret, EMPTY_BUF);
|
|
265
|
+
}
|
|
266
|
+
createError(ret, data) {
|
|
267
|
+
const { llhttp, contentLength, bytesRead } = this;
|
|
268
|
+
if (contentLength && bytesRead !== parseInt(contentLength, 10)) return new ResponseContentLengthMismatchError();
|
|
269
|
+
const ptr = llhttp.llhttp_get_error_reason(this.ptr);
|
|
270
|
+
let message = "";
|
|
271
|
+
if (ptr) {
|
|
272
|
+
const len = new Uint8Array(llhttp.memory.buffer, ptr).indexOf(0);
|
|
273
|
+
message = "Response does not match the HTTP/1.1 protocol (" + Buffer.from(llhttp.memory.buffer, ptr, len).toString() + ")";
|
|
274
|
+
}
|
|
275
|
+
return new HTTPParserError(message, constants.ERROR[ret], data);
|
|
276
|
+
}
|
|
277
|
+
destroy() {
|
|
278
|
+
assert(currentParser === null);
|
|
279
|
+
assert(this.ptr != null);
|
|
280
|
+
this.llhttp.llhttp_free(this.ptr);
|
|
281
|
+
this.ptr = null;
|
|
282
|
+
this.timeout && timers.clearTimeout(this.timeout);
|
|
283
|
+
this.timeout = null;
|
|
284
|
+
this.timeoutValue = null;
|
|
285
|
+
this.timeoutType = null;
|
|
286
|
+
this.paused = false;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* @param {Buffer} buf
|
|
290
|
+
* @returns {0}
|
|
291
|
+
*/
|
|
292
|
+
onStatus(buf) {
|
|
293
|
+
this.statusText = buf.toString();
|
|
294
|
+
return 0;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* @returns {0|-1}
|
|
298
|
+
*/
|
|
299
|
+
onMessageBegin() {
|
|
300
|
+
const { socket, client } = this;
|
|
301
|
+
if (socket.destroyed) return -1;
|
|
302
|
+
if (client[kRunning] === 0) {
|
|
303
|
+
util.destroy(socket, new SocketError("bad response", util.getSocketInfo(socket)));
|
|
304
|
+
return -1;
|
|
305
|
+
}
|
|
306
|
+
const request = client[kQueue][client[kRunningIdx]];
|
|
307
|
+
if (!request) return -1;
|
|
308
|
+
request.onResponseStarted();
|
|
309
|
+
return 0;
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* @param {Buffer} buf
|
|
313
|
+
* @returns {number}
|
|
314
|
+
*/
|
|
315
|
+
onHeaderField(buf) {
|
|
316
|
+
const len = this.headers.length;
|
|
317
|
+
if ((len & 1) === 0) this.headers.push(buf);
|
|
318
|
+
else this.headers[len - 1] = Buffer.concat([this.headers[len - 1], buf]);
|
|
319
|
+
this.trackHeader(buf.length);
|
|
320
|
+
return 0;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* @param {Buffer} buf
|
|
324
|
+
* @returns {number}
|
|
325
|
+
*/
|
|
326
|
+
onHeaderValue(buf) {
|
|
327
|
+
let len = this.headers.length;
|
|
328
|
+
if ((len & 1) === 1) {
|
|
329
|
+
this.headers.push(buf);
|
|
330
|
+
len += 1;
|
|
331
|
+
} else this.headers[len - 1] = Buffer.concat([this.headers[len - 1], buf]);
|
|
332
|
+
const key = this.headers[len - 2];
|
|
333
|
+
if (key.length === 10) {
|
|
334
|
+
const headerName = util.bufferToLowerCasedHeaderName(key);
|
|
335
|
+
if (headerName === "keep-alive") this.keepAlive += buf.toString();
|
|
336
|
+
else if (headerName === "connection") this.connection += buf.toString();
|
|
337
|
+
} else if (key.length === 14 && util.bufferToLowerCasedHeaderName(key) === "content-length") this.contentLength += buf.toString();
|
|
338
|
+
this.trackHeader(buf.length);
|
|
339
|
+
return 0;
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* @param {number} len
|
|
343
|
+
*/
|
|
344
|
+
trackHeader(len) {
|
|
345
|
+
this.headersSize += len;
|
|
346
|
+
if (this.headersSize >= this.headersMaxSize) util.destroy(this.socket, new HeadersOverflowError());
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* @param {Buffer} head
|
|
350
|
+
*/
|
|
351
|
+
onUpgrade(head) {
|
|
352
|
+
const { upgrade, client, socket, headers, statusCode, statusText } = this;
|
|
353
|
+
assert(upgrade);
|
|
354
|
+
assert(client[kSocket] === socket);
|
|
355
|
+
assert(!socket.destroyed);
|
|
356
|
+
assert(!this.paused);
|
|
357
|
+
assert((headers.length & 1) === 0);
|
|
358
|
+
const request = client[kQueue][client[kRunningIdx]];
|
|
359
|
+
assert(request);
|
|
360
|
+
assert(request.upgrade || request.method === "CONNECT");
|
|
361
|
+
this.statusCode = 0;
|
|
362
|
+
this.statusText = "";
|
|
363
|
+
this.shouldKeepAlive = false;
|
|
364
|
+
this.headers = [];
|
|
365
|
+
this.headersSize = 0;
|
|
366
|
+
socket.unshift(head);
|
|
367
|
+
socket[kParser].destroy();
|
|
368
|
+
socket[kParser] = null;
|
|
369
|
+
socket[kClient] = null;
|
|
370
|
+
socket[kError] = null;
|
|
371
|
+
removeAllListeners(socket);
|
|
372
|
+
client[kSocket] = null;
|
|
373
|
+
client[kHTTPContext] = null;
|
|
374
|
+
client[kQueue][client[kRunningIdx]++] = null;
|
|
375
|
+
client.emit("disconnect", client[kUrl], [client], new InformationalError("upgrade"));
|
|
376
|
+
try {
|
|
377
|
+
request.onUpgrade(statusCode, headers, socket, statusText);
|
|
378
|
+
} catch (err) {
|
|
379
|
+
util.errorRequest(client, request, err);
|
|
380
|
+
util.destroy(socket, err);
|
|
381
|
+
}
|
|
382
|
+
client[kResume]();
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* @param {number} statusCode
|
|
386
|
+
* @param {boolean} upgrade
|
|
387
|
+
* @param {boolean} shouldKeepAlive
|
|
388
|
+
* @returns {number}
|
|
389
|
+
*/
|
|
390
|
+
onHeadersComplete(statusCode, upgrade, shouldKeepAlive) {
|
|
391
|
+
const { client, socket, headers, statusText } = this;
|
|
392
|
+
if (socket.destroyed) return -1;
|
|
393
|
+
if (client[kRunning] === 0) {
|
|
394
|
+
util.destroy(socket, new SocketError("bad response", util.getSocketInfo(socket)));
|
|
395
|
+
return -1;
|
|
396
|
+
}
|
|
397
|
+
const request = client[kQueue][client[kRunningIdx]];
|
|
398
|
+
if (!request) return -1;
|
|
399
|
+
assert(!this.upgrade);
|
|
400
|
+
assert(this.statusCode < 200);
|
|
401
|
+
if (statusCode === 100) {
|
|
402
|
+
util.destroy(socket, new SocketError("bad response", util.getSocketInfo(socket)));
|
|
403
|
+
return -1;
|
|
404
|
+
}
|
|
405
|
+
if (upgrade && !request.upgrade) {
|
|
406
|
+
util.destroy(socket, new SocketError("bad upgrade", util.getSocketInfo(socket)));
|
|
407
|
+
return -1;
|
|
408
|
+
}
|
|
409
|
+
assert(this.timeoutType === TIMEOUT_HEADERS);
|
|
410
|
+
this.statusCode = statusCode;
|
|
411
|
+
this.shouldKeepAlive = shouldKeepAlive || request.method === "HEAD" && !socket[kReset] && this.connection.toLowerCase() === "keep-alive";
|
|
412
|
+
if (this.statusCode >= 200) {
|
|
413
|
+
const bodyTimeout = request.bodyTimeout != null ? request.bodyTimeout : client[kBodyTimeout];
|
|
414
|
+
this.setTimeout(bodyTimeout, TIMEOUT_BODY);
|
|
415
|
+
} else if (this.timeout) {
|
|
416
|
+
if (this.timeout.refresh) this.timeout.refresh();
|
|
417
|
+
}
|
|
418
|
+
if (request.method === "CONNECT") {
|
|
419
|
+
assert(client[kRunning] === 1);
|
|
420
|
+
this.upgrade = true;
|
|
421
|
+
return 2;
|
|
422
|
+
}
|
|
423
|
+
if (upgrade) {
|
|
424
|
+
assert(client[kRunning] === 1);
|
|
425
|
+
this.upgrade = true;
|
|
426
|
+
return 2;
|
|
427
|
+
}
|
|
428
|
+
assert((this.headers.length & 1) === 0);
|
|
429
|
+
this.headers = [];
|
|
430
|
+
this.headersSize = 0;
|
|
431
|
+
if (this.shouldKeepAlive && client[kPipelining]) {
|
|
432
|
+
const keepAliveTimeout = this.keepAlive ? util.parseKeepAliveTimeout(this.keepAlive) : null;
|
|
433
|
+
if (keepAliveTimeout != null) {
|
|
434
|
+
const timeout = Math.min(keepAliveTimeout - client[kKeepAliveTimeoutThreshold], client[kKeepAliveMaxTimeout]);
|
|
435
|
+
if (timeout <= 0) socket[kReset] = true;
|
|
436
|
+
else client[kKeepAliveTimeoutValue] = timeout;
|
|
437
|
+
} else client[kKeepAliveTimeoutValue] = client[kKeepAliveDefaultTimeout];
|
|
438
|
+
} else socket[kReset] = true;
|
|
439
|
+
const pause = request.onHeaders(statusCode, headers, this.resume, statusText) === false;
|
|
440
|
+
if (request.aborted) return -1;
|
|
441
|
+
if (request.method === "HEAD") return 1;
|
|
442
|
+
if (statusCode < 200) return 1;
|
|
443
|
+
if (socket[kBlocking]) {
|
|
444
|
+
socket[kBlocking] = false;
|
|
445
|
+
client[kResume]();
|
|
446
|
+
}
|
|
447
|
+
return pause ? constants.ERROR.PAUSED : 0;
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* @param {Buffer} buf
|
|
451
|
+
* @returns {number}
|
|
452
|
+
*/
|
|
453
|
+
onBody(buf) {
|
|
454
|
+
const { client, socket, statusCode, maxResponseSize } = this;
|
|
455
|
+
if (socket.destroyed) return -1;
|
|
456
|
+
const request = client[kQueue][client[kRunningIdx]];
|
|
457
|
+
assert(request);
|
|
458
|
+
assert(this.timeoutType === TIMEOUT_BODY);
|
|
459
|
+
if (this.timeout) {
|
|
460
|
+
if (this.timeout.refresh) this.timeout.refresh();
|
|
461
|
+
}
|
|
462
|
+
assert(statusCode >= 200);
|
|
463
|
+
if (maxResponseSize > -1 && this.bytesRead + buf.length > maxResponseSize) {
|
|
464
|
+
util.destroy(socket, new ResponseExceededMaxSizeError());
|
|
465
|
+
return -1;
|
|
466
|
+
}
|
|
467
|
+
this.bytesRead += buf.length;
|
|
468
|
+
if (request.onData(buf) === false) return constants.ERROR.PAUSED;
|
|
469
|
+
return 0;
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* @returns {number}
|
|
473
|
+
*/
|
|
474
|
+
onMessageComplete() {
|
|
475
|
+
const { client, socket, statusCode, upgrade, headers, contentLength, bytesRead, shouldKeepAlive } = this;
|
|
476
|
+
if (socket.destroyed && (!statusCode || shouldKeepAlive)) return -1;
|
|
477
|
+
if (upgrade) return 0;
|
|
478
|
+
assert(statusCode >= 100);
|
|
479
|
+
assert((this.headers.length & 1) === 0);
|
|
480
|
+
const request = client[kQueue][client[kRunningIdx]];
|
|
481
|
+
assert(request);
|
|
482
|
+
this.statusCode = 0;
|
|
483
|
+
this.statusText = "";
|
|
484
|
+
this.bytesRead = 0;
|
|
485
|
+
this.contentLength = "";
|
|
486
|
+
this.keepAlive = "";
|
|
487
|
+
this.connection = "";
|
|
488
|
+
this.headers = [];
|
|
489
|
+
this.headersSize = 0;
|
|
490
|
+
if (statusCode < 200) return 0;
|
|
491
|
+
if (request.method !== "HEAD" && contentLength && bytesRead !== parseInt(contentLength, 10)) {
|
|
492
|
+
util.destroy(socket, new ResponseContentLengthMismatchError());
|
|
493
|
+
return -1;
|
|
494
|
+
}
|
|
495
|
+
request.onComplete(headers);
|
|
496
|
+
client[kQueue][client[kRunningIdx]++] = null;
|
|
497
|
+
socket[kSocketUsed] = client[kPending] === 0;
|
|
498
|
+
if (socket[kWriting]) {
|
|
499
|
+
assert(client[kRunning] === 0);
|
|
500
|
+
util.destroy(socket, new InformationalError("reset"));
|
|
501
|
+
return constants.ERROR.PAUSED;
|
|
502
|
+
} else if (!shouldKeepAlive) {
|
|
503
|
+
util.destroy(socket, new InformationalError("reset"));
|
|
504
|
+
return constants.ERROR.PAUSED;
|
|
505
|
+
} else if (socket[kReset] && client[kRunning] === 0) {
|
|
506
|
+
util.destroy(socket, new InformationalError("reset"));
|
|
507
|
+
return constants.ERROR.PAUSED;
|
|
508
|
+
} else if (client[kPipelining] == null || client[kPipelining] === 1) setImmediate(client[kResume]);
|
|
509
|
+
else client[kResume]();
|
|
510
|
+
return 0;
|
|
511
|
+
}
|
|
512
|
+
};
|
|
513
|
+
function onParserTimeout(parserWeakRef) {
|
|
514
|
+
const parser = parserWeakRef.deref();
|
|
515
|
+
if (!parser) return;
|
|
516
|
+
const { socket, timeoutType, client, paused } = parser;
|
|
517
|
+
if (timeoutType === TIMEOUT_HEADERS) {
|
|
518
|
+
if (!socket[kWriting] || socket.writableNeedDrain || client[kRunning] > 1) {
|
|
519
|
+
assert(!paused, "cannot be paused while waiting for headers");
|
|
520
|
+
util.destroy(socket, new HeadersTimeoutError());
|
|
521
|
+
}
|
|
522
|
+
} else if (timeoutType === TIMEOUT_BODY) {
|
|
523
|
+
if (!paused) util.destroy(socket, new BodyTimeoutError());
|
|
524
|
+
} else if (timeoutType === TIMEOUT_KEEP_ALIVE) {
|
|
525
|
+
assert(client[kRunning] === 0 && client[kKeepAliveTimeoutValue]);
|
|
526
|
+
util.destroy(socket, new InformationalError("socket idle timeout"));
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* @param {import ('./client.js')} client
|
|
531
|
+
* @param {import('net').Socket} socket
|
|
532
|
+
* @returns
|
|
533
|
+
*/
|
|
534
|
+
function connectH1(client, socket) {
|
|
535
|
+
client[kSocket] = socket;
|
|
536
|
+
if (!llhttpInstance) llhttpInstance = lazyllhttp();
|
|
537
|
+
if (socket.errored) throw socket.errored;
|
|
538
|
+
if (socket.destroyed) throw new SocketError("destroyed");
|
|
539
|
+
socket[kNoRef] = false;
|
|
540
|
+
socket[kWriting] = false;
|
|
541
|
+
socket[kReset] = false;
|
|
542
|
+
socket[kBlocking] = false;
|
|
543
|
+
socket[kIdleSocketValidation] = 0;
|
|
544
|
+
socket[kIdleSocketValidationTimeout] = null;
|
|
545
|
+
socket[kSocketUsed] = false;
|
|
546
|
+
socket[kParser] = new Parser(client, socket, llhttpInstance);
|
|
547
|
+
util.addListener(socket, "error", onHttpSocketError);
|
|
548
|
+
util.addListener(socket, "readable", onHttpSocketReadable);
|
|
549
|
+
util.addListener(socket, "end", onHttpSocketEnd);
|
|
550
|
+
util.addListener(socket, "close", onHttpSocketClose);
|
|
551
|
+
socket[kClosed] = false;
|
|
552
|
+
socket.on("close", onSocketClose);
|
|
553
|
+
return {
|
|
554
|
+
version: "h1",
|
|
555
|
+
defaultPipelining: 1,
|
|
556
|
+
write(request) {
|
|
557
|
+
return writeH1(client, request);
|
|
558
|
+
},
|
|
559
|
+
resume() {
|
|
560
|
+
resumeH1(client);
|
|
561
|
+
},
|
|
562
|
+
/**
|
|
563
|
+
* @param {Error|undefined} err
|
|
564
|
+
* @param {() => void} callback
|
|
565
|
+
*/
|
|
566
|
+
destroy(err, callback) {
|
|
567
|
+
if (socket[kClosed]) queueMicrotask(callback);
|
|
568
|
+
else {
|
|
569
|
+
socket.on("close", callback);
|
|
570
|
+
socket.destroy(err);
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
/**
|
|
574
|
+
* @returns {boolean}
|
|
575
|
+
*/
|
|
576
|
+
get destroyed() {
|
|
577
|
+
return socket.destroyed;
|
|
578
|
+
},
|
|
579
|
+
/**
|
|
580
|
+
* @param {import('../core/request.js')} request
|
|
581
|
+
* @returns {boolean}
|
|
582
|
+
*/
|
|
583
|
+
busy(request) {
|
|
584
|
+
if (socket[kWriting] || socket[kReset] || socket[kBlocking] || socket[kIdleSocketValidation] === 1) return true;
|
|
585
|
+
if (request) {
|
|
586
|
+
if (client[kRunning] > 0 && !request.idempotent) return true;
|
|
587
|
+
if (client[kRunning] > 0 && (request.upgrade || request.method === "CONNECT")) return true;
|
|
588
|
+
if (client[kRunning] > 0 && util.bodyLength(request.body) !== 0 && (util.isStream(request.body) || util.isAsyncIterable(request.body) || util.isFormDataLike(request.body))) return true;
|
|
589
|
+
}
|
|
590
|
+
return false;
|
|
591
|
+
}
|
|
592
|
+
};
|
|
593
|
+
}
|
|
594
|
+
function onHttpSocketError(err) {
|
|
595
|
+
assert(err.code !== "ERR_TLS_CERT_ALTNAME_INVALID");
|
|
596
|
+
const parser = this[kParser];
|
|
597
|
+
if (err.code === "ECONNRESET" && parser.statusCode && !parser.shouldKeepAlive) {
|
|
598
|
+
const parserErr = parser.finish();
|
|
599
|
+
if (parserErr) {
|
|
600
|
+
this[kError] = parserErr;
|
|
601
|
+
this[kClient][kOnError](parserErr);
|
|
602
|
+
}
|
|
603
|
+
return;
|
|
604
|
+
}
|
|
605
|
+
this[kError] = err;
|
|
606
|
+
this[kClient][kOnError](err);
|
|
607
|
+
}
|
|
608
|
+
function onHttpSocketReadable() {
|
|
609
|
+
this[kParser]?.readMore();
|
|
610
|
+
}
|
|
611
|
+
function onHttpSocketEnd() {
|
|
612
|
+
const parser = this[kParser];
|
|
613
|
+
if (parser.statusCode && !parser.shouldKeepAlive) {
|
|
614
|
+
const parserErr = parser.finish();
|
|
615
|
+
if (parserErr) util.destroy(this, parserErr);
|
|
616
|
+
return;
|
|
617
|
+
}
|
|
618
|
+
util.destroy(this, new SocketError("other side closed", util.getSocketInfo(this)));
|
|
619
|
+
}
|
|
620
|
+
function onHttpSocketClose() {
|
|
621
|
+
const parser = this[kParser];
|
|
622
|
+
clearIdleSocketValidation(this);
|
|
623
|
+
if (parser) {
|
|
624
|
+
if (!this[kError] && parser.statusCode && !parser.shouldKeepAlive) this[kError] = parser.finish() || this[kError];
|
|
625
|
+
this[kParser].destroy();
|
|
626
|
+
this[kParser] = null;
|
|
627
|
+
}
|
|
628
|
+
const err = this[kError] || new SocketError("closed", util.getSocketInfo(this));
|
|
629
|
+
const client = this[kClient];
|
|
630
|
+
client[kSocket] = null;
|
|
631
|
+
client[kHTTPContext] = null;
|
|
632
|
+
if (client.destroyed) {
|
|
633
|
+
assert(client[kPending] === 0);
|
|
634
|
+
const requests = client[kQueue].splice(client[kRunningIdx]);
|
|
635
|
+
for (let i = 0; i < requests.length; i++) {
|
|
636
|
+
const request = requests[i];
|
|
637
|
+
util.errorRequest(client, request, err);
|
|
638
|
+
}
|
|
639
|
+
} else if (client[kRunning] > 0 && err.code !== "UND_ERR_INFO") {
|
|
640
|
+
const request = client[kQueue][client[kRunningIdx]];
|
|
641
|
+
client[kQueue][client[kRunningIdx]++] = null;
|
|
642
|
+
util.errorRequest(client, request, err);
|
|
643
|
+
}
|
|
644
|
+
client[kPendingIdx] = client[kRunningIdx];
|
|
645
|
+
assert(client[kRunning] === 0);
|
|
646
|
+
client.emit("disconnect", client[kUrl], [client], err);
|
|
647
|
+
client[kResume]();
|
|
648
|
+
}
|
|
649
|
+
function onSocketClose() {
|
|
650
|
+
this[kClosed] = true;
|
|
651
|
+
}
|
|
652
|
+
function clearIdleSocketValidation(socket) {
|
|
653
|
+
if (socket[kIdleSocketValidationTimeout]) {
|
|
654
|
+
clearImmediate(socket[kIdleSocketValidationTimeout]);
|
|
655
|
+
socket[kIdleSocketValidationTimeout] = null;
|
|
656
|
+
}
|
|
657
|
+
socket[kIdleSocketValidation] = 0;
|
|
658
|
+
}
|
|
659
|
+
function scheduleIdleSocketValidation(client, socket) {
|
|
660
|
+
socket[kIdleSocketValidation] = 1;
|
|
661
|
+
socket[kIdleSocketValidationTimeout] = setImmediate(() => {
|
|
662
|
+
socket[kIdleSocketValidationTimeout] = null;
|
|
663
|
+
socket[kIdleSocketValidation] = 2;
|
|
664
|
+
if (client[kSocket] === socket && !socket.destroyed) client[kResume]();
|
|
665
|
+
});
|
|
666
|
+
}
|
|
667
|
+
/**
|
|
668
|
+
* @param {import('./client.js')} client
|
|
669
|
+
*/
|
|
670
|
+
function resumeH1(client) {
|
|
671
|
+
const socket = client[kSocket];
|
|
672
|
+
if (socket && !socket.destroyed) {
|
|
673
|
+
if (client[kSize] === 0) {
|
|
674
|
+
if (!socket[kNoRef] && socket.unref) {
|
|
675
|
+
socket.unref();
|
|
676
|
+
socket[kNoRef] = true;
|
|
677
|
+
}
|
|
678
|
+
} else if (socket[kNoRef] && socket.ref) {
|
|
679
|
+
socket.ref();
|
|
680
|
+
socket[kNoRef] = false;
|
|
681
|
+
}
|
|
682
|
+
if (client[kRunning] === 0 && client[kPending] > 0 && socket[kSocketUsed]) {
|
|
683
|
+
if (socket[kIdleSocketValidation] === 0) {
|
|
684
|
+
scheduleIdleSocketValidation(client, socket);
|
|
685
|
+
socket[kParser].readMore();
|
|
686
|
+
if (socket.destroyed) return;
|
|
687
|
+
return;
|
|
688
|
+
}
|
|
689
|
+
if (socket[kIdleSocketValidation] === 1) {
|
|
690
|
+
socket[kParser].readMore();
|
|
691
|
+
if (socket.destroyed) return;
|
|
692
|
+
return;
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
if (client[kRunning] === 0) {
|
|
696
|
+
socket[kParser].readMore();
|
|
697
|
+
if (socket.destroyed) return;
|
|
698
|
+
}
|
|
699
|
+
if (client[kSize] === 0) {
|
|
700
|
+
if (socket[kParser].timeoutType !== TIMEOUT_KEEP_ALIVE) socket[kParser].setTimeout(client[kKeepAliveTimeoutValue], TIMEOUT_KEEP_ALIVE);
|
|
701
|
+
} else if (client[kRunning] > 0 && socket[kParser].statusCode < 200) {
|
|
702
|
+
if (socket[kParser].timeoutType !== TIMEOUT_HEADERS) {
|
|
703
|
+
const request = client[kQueue][client[kRunningIdx]];
|
|
704
|
+
const headersTimeout = request.headersTimeout != null ? request.headersTimeout : client[kHeadersTimeout];
|
|
705
|
+
socket[kParser].setTimeout(headersTimeout, TIMEOUT_HEADERS);
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
function shouldSendContentLength(method) {
|
|
711
|
+
return method !== "GET" && method !== "HEAD" && method !== "OPTIONS" && method !== "TRACE" && method !== "CONNECT";
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* @param {import('./client.js')} client
|
|
715
|
+
* @param {import('../core/request.js')} request
|
|
716
|
+
* @returns
|
|
717
|
+
*/
|
|
718
|
+
function writeH1(client, request) {
|
|
719
|
+
const { method, path, host, upgrade, blocking, reset } = request;
|
|
720
|
+
let { body, headers, contentLength } = request;
|
|
721
|
+
const expectsPayload = method === "PUT" || method === "POST" || method === "PATCH" || method === "QUERY" || method === "PROPFIND" || method === "PROPPATCH";
|
|
722
|
+
if (util.isFormDataLike(body)) {
|
|
723
|
+
if (!extractBody) extractBody = require_body().extractBody;
|
|
724
|
+
const [bodyStream, contentType] = extractBody(body);
|
|
725
|
+
if (request.contentType == null) headers.push("content-type", contentType);
|
|
726
|
+
body = bodyStream.stream;
|
|
727
|
+
contentLength = bodyStream.length;
|
|
728
|
+
} else if (util.isBlobLike(body) && request.contentType == null) {
|
|
729
|
+
const contentType = body.type;
|
|
730
|
+
if (contentType) {
|
|
731
|
+
const contentTypeValue = `${contentType}`;
|
|
732
|
+
if (!util.isValidHeaderValue(contentTypeValue)) {
|
|
733
|
+
util.errorRequest(client, request, new InvalidArgumentError("invalid content-type header"));
|
|
734
|
+
return false;
|
|
735
|
+
}
|
|
736
|
+
headers.push("content-type", contentTypeValue);
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
if (body && typeof body.read === "function") body.read(0);
|
|
740
|
+
const bodyLength = util.bodyLength(body);
|
|
741
|
+
contentLength = bodyLength ?? contentLength;
|
|
742
|
+
if (contentLength === null) contentLength = request.contentLength;
|
|
743
|
+
if (contentLength === 0 && !expectsPayload) contentLength = null;
|
|
744
|
+
if (shouldSendContentLength(method) && contentLength > 0 && request.contentLength !== null && request.contentLength !== contentLength) {
|
|
745
|
+
if (client[kStrictContentLength]) {
|
|
746
|
+
util.errorRequest(client, request, new RequestContentLengthMismatchError());
|
|
747
|
+
return false;
|
|
748
|
+
}
|
|
749
|
+
process.emitWarning(new RequestContentLengthMismatchError());
|
|
750
|
+
}
|
|
751
|
+
const socket = client[kSocket];
|
|
752
|
+
clearIdleSocketValidation(socket);
|
|
753
|
+
/**
|
|
754
|
+
* @param {Error} [err]
|
|
755
|
+
* @returns {void}
|
|
756
|
+
*/
|
|
757
|
+
const abort = (err) => {
|
|
758
|
+
if (request.aborted || request.completed) return;
|
|
759
|
+
util.errorRequest(client, request, err || new RequestAbortedError());
|
|
760
|
+
util.destroy(body);
|
|
761
|
+
util.destroy(socket, new InformationalError("aborted"));
|
|
762
|
+
};
|
|
763
|
+
try {
|
|
764
|
+
request.onConnect(abort);
|
|
765
|
+
} catch (err) {
|
|
766
|
+
util.errorRequest(client, request, err);
|
|
767
|
+
}
|
|
768
|
+
if (request.aborted) return false;
|
|
769
|
+
if (method === "HEAD") socket[kReset] = true;
|
|
770
|
+
if (upgrade || method === "CONNECT") socket[kReset] = true;
|
|
771
|
+
if (reset != null) socket[kReset] = reset;
|
|
772
|
+
if (client[kMaxRequests] && socket[kCounter]++ >= client[kMaxRequests]) socket[kReset] = true;
|
|
773
|
+
if (blocking) socket[kBlocking] = true;
|
|
774
|
+
if (socket.setTypeOfService) socket.setTypeOfService(request.typeOfService);
|
|
775
|
+
let header = `${method} ${path} HTTP/1.1\r\n`;
|
|
776
|
+
if (typeof host === "string") header += `host: ${host}\r\n`;
|
|
777
|
+
else header += client[kHostHeader];
|
|
778
|
+
if (upgrade) header += `connection: upgrade\r\nupgrade: ${upgrade}\r\n`;
|
|
779
|
+
else if (client[kPipelining] && !socket[kReset]) header += "connection: keep-alive\r\n";
|
|
780
|
+
else header += "connection: close\r\n";
|
|
781
|
+
if (Array.isArray(headers)) for (let n = 0; n < headers.length; n += 2) {
|
|
782
|
+
const key = headers[n + 0];
|
|
783
|
+
const val = headers[n + 1];
|
|
784
|
+
if (Array.isArray(val)) for (let i = 0; i < val.length; i++) header += `${key}: ${val[i]}\r\n`;
|
|
785
|
+
else header += `${key}: ${val}\r\n`;
|
|
786
|
+
}
|
|
787
|
+
if (channels.sendHeaders.hasSubscribers) channels.sendHeaders.publish({
|
|
788
|
+
request,
|
|
789
|
+
headers: header,
|
|
790
|
+
socket
|
|
791
|
+
});
|
|
792
|
+
if (!body || bodyLength === 0) writeBuffer(abort, null, client, request, socket, contentLength, header, expectsPayload);
|
|
793
|
+
else if (util.isBuffer(body)) writeBuffer(abort, body, client, request, socket, contentLength, header, expectsPayload);
|
|
794
|
+
else if (util.isBlobLike(body)) {
|
|
795
|
+
if (typeof body.stream === "function") writeIterable(abort, body.stream(), client, request, socket, contentLength, header, expectsPayload);
|
|
796
|
+
else writeBlob(abort, body, client, request, socket, contentLength, header, expectsPayload);
|
|
797
|
+
} else if (util.isStream(body)) writeStream(abort, body, client, request, socket, contentLength, header, expectsPayload);
|
|
798
|
+
else if (util.isIterable(body)) writeIterable(abort, body, client, request, socket, contentLength, header, expectsPayload);
|
|
799
|
+
else assert(false);
|
|
800
|
+
return true;
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* @param {AbortCallback} abort
|
|
804
|
+
* @param {import('stream').Stream} body
|
|
805
|
+
* @param {import('./client.js')} client
|
|
806
|
+
* @param {import('../core/request.js')} request
|
|
807
|
+
* @param {import('net').Socket} socket
|
|
808
|
+
* @param {number} contentLength
|
|
809
|
+
* @param {string} header
|
|
810
|
+
* @param {boolean} expectsPayload
|
|
811
|
+
*/
|
|
812
|
+
function writeStream(abort, body, client, request, socket, contentLength, header, expectsPayload) {
|
|
813
|
+
assert(contentLength !== 0 || client[kRunning] === 0, "stream body cannot be pipelined");
|
|
814
|
+
let finished = false;
|
|
815
|
+
const writer = new AsyncWriter({
|
|
816
|
+
abort,
|
|
817
|
+
socket,
|
|
818
|
+
request,
|
|
819
|
+
contentLength,
|
|
820
|
+
client,
|
|
821
|
+
expectsPayload,
|
|
822
|
+
header
|
|
823
|
+
});
|
|
824
|
+
/**
|
|
825
|
+
* @param {Buffer} chunk
|
|
826
|
+
* @returns {void}
|
|
827
|
+
*/
|
|
828
|
+
const onData = function(chunk) {
|
|
829
|
+
if (finished) return;
|
|
830
|
+
try {
|
|
831
|
+
if (!writer.write(chunk) && this.pause) this.pause();
|
|
832
|
+
} catch (err) {
|
|
833
|
+
util.destroy(this, err);
|
|
834
|
+
}
|
|
835
|
+
};
|
|
836
|
+
/**
|
|
837
|
+
* @returns {void}
|
|
838
|
+
*/
|
|
839
|
+
const onDrain = function() {
|
|
840
|
+
if (finished) return;
|
|
841
|
+
if (body.resume) body.resume();
|
|
842
|
+
};
|
|
843
|
+
/**
|
|
844
|
+
* @returns {void}
|
|
845
|
+
*/
|
|
846
|
+
const onClose = function() {
|
|
847
|
+
queueMicrotask(() => {
|
|
848
|
+
body.removeListener("error", onFinished);
|
|
849
|
+
});
|
|
850
|
+
if (!finished) {
|
|
851
|
+
const err = new RequestAbortedError();
|
|
852
|
+
queueMicrotask(() => onFinished(err));
|
|
853
|
+
}
|
|
854
|
+
};
|
|
855
|
+
/**
|
|
856
|
+
* @param {Error} [err]
|
|
857
|
+
* @returns
|
|
858
|
+
*/
|
|
859
|
+
const onFinished = function(err) {
|
|
860
|
+
if (finished) return;
|
|
861
|
+
finished = true;
|
|
862
|
+
assert(socket.destroyed || socket[kWriting] && client[kRunning] <= 1);
|
|
863
|
+
socket.off("drain", onDrain).off("error", onFinished);
|
|
864
|
+
body.removeListener("data", onData).removeListener("end", onFinished).removeListener("close", onClose);
|
|
865
|
+
if (!err) try {
|
|
866
|
+
writer.end();
|
|
867
|
+
} catch (er) {
|
|
868
|
+
err = er;
|
|
869
|
+
}
|
|
870
|
+
writer.destroy(err);
|
|
871
|
+
if (err && (err.code !== "UND_ERR_INFO" || err.message !== "reset")) util.destroy(body, err);
|
|
872
|
+
else util.destroy(body);
|
|
873
|
+
};
|
|
874
|
+
body.on("data", onData).on("end", onFinished).on("error", onFinished).on("close", onClose);
|
|
875
|
+
if (body.resume) body.resume();
|
|
876
|
+
socket.on("drain", onDrain).on("error", onFinished);
|
|
877
|
+
if (body.errorEmitted ?? body.errored) setImmediate(onFinished, body.errored);
|
|
878
|
+
else if (body.endEmitted ?? body.readableEnded) setImmediate(onFinished, null);
|
|
879
|
+
if (body.closeEmitted ?? body.closed) setImmediate(onClose);
|
|
880
|
+
}
|
|
881
|
+
/**
|
|
882
|
+
* @typedef AbortCallback
|
|
883
|
+
* @type {Function}
|
|
884
|
+
* @param {Error} [err]
|
|
885
|
+
* @returns {void}
|
|
886
|
+
*/
|
|
887
|
+
/**
|
|
888
|
+
* @param {AbortCallback} abort
|
|
889
|
+
* @param {Uint8Array|null} body
|
|
890
|
+
* @param {import('./client.js')} client
|
|
891
|
+
* @param {import('../core/request.js')} request
|
|
892
|
+
* @param {import('net').Socket} socket
|
|
893
|
+
* @param {number} contentLength
|
|
894
|
+
* @param {string} header
|
|
895
|
+
* @param {boolean} expectsPayload
|
|
896
|
+
* @returns {void}
|
|
897
|
+
*/
|
|
898
|
+
function writeBuffer(abort, body, client, request, socket, contentLength, header, expectsPayload) {
|
|
899
|
+
try {
|
|
900
|
+
if (!body) {
|
|
901
|
+
if (contentLength === 0) socket.write(`${header}content-length: 0\r\n\r\n`, "latin1");
|
|
902
|
+
else {
|
|
903
|
+
assert(contentLength === null, "no body must not have content length");
|
|
904
|
+
socket.write(`${header}\r\n`, "latin1");
|
|
905
|
+
}
|
|
906
|
+
} else if (util.isBuffer(body)) {
|
|
907
|
+
assert(contentLength === body.byteLength, "buffer body must have content length");
|
|
908
|
+
socket.cork();
|
|
909
|
+
socket.write(`${header}content-length: ${contentLength}\r\n\r\n`, "latin1");
|
|
910
|
+
socket.write(body);
|
|
911
|
+
socket.uncork();
|
|
912
|
+
request.onBodySent(body);
|
|
913
|
+
if (!expectsPayload && request.reset !== false) socket[kReset] = true;
|
|
914
|
+
}
|
|
915
|
+
request.onRequestSent();
|
|
916
|
+
client[kResume]();
|
|
917
|
+
} catch (err) {
|
|
918
|
+
abort(err);
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
/**
|
|
922
|
+
* @param {AbortCallback} abort
|
|
923
|
+
* @param {Blob} body
|
|
924
|
+
* @param {import('./client.js')} client
|
|
925
|
+
* @param {import('../core/request.js')} request
|
|
926
|
+
* @param {import('net').Socket} socket
|
|
927
|
+
* @param {number} contentLength
|
|
928
|
+
* @param {string} header
|
|
929
|
+
* @param {boolean} expectsPayload
|
|
930
|
+
* @returns {Promise<void>}
|
|
931
|
+
*/
|
|
932
|
+
async function writeBlob(abort, body, client, request, socket, contentLength, header, expectsPayload) {
|
|
933
|
+
assert(contentLength === body.size, "blob body must have content length");
|
|
934
|
+
try {
|
|
935
|
+
if (contentLength != null && contentLength !== body.size) throw new RequestContentLengthMismatchError();
|
|
936
|
+
const buffer = Buffer.from(await body.arrayBuffer());
|
|
937
|
+
socket.cork();
|
|
938
|
+
socket.write(`${header}content-length: ${contentLength}\r\n\r\n`, "latin1");
|
|
939
|
+
socket.write(buffer);
|
|
940
|
+
socket.uncork();
|
|
941
|
+
request.onBodySent(buffer);
|
|
942
|
+
request.onRequestSent();
|
|
943
|
+
if (!expectsPayload && request.reset !== false) socket[kReset] = true;
|
|
944
|
+
client[kResume]();
|
|
945
|
+
} catch (err) {
|
|
946
|
+
abort(err);
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
/**
|
|
950
|
+
* @param {AbortCallback} abort
|
|
951
|
+
* @param {Iterable} body
|
|
952
|
+
* @param {import('./client.js')} client
|
|
953
|
+
* @param {import('../core/request.js')} request
|
|
954
|
+
* @param {import('net').Socket} socket
|
|
955
|
+
* @param {number} contentLength
|
|
956
|
+
* @param {string} header
|
|
957
|
+
* @param {boolean} expectsPayload
|
|
958
|
+
* @returns {Promise<void>}
|
|
959
|
+
*/
|
|
960
|
+
async function writeIterable(abort, body, client, request, socket, contentLength, header, expectsPayload) {
|
|
961
|
+
assert(contentLength !== 0 || client[kRunning] === 0, "iterator body cannot be pipelined");
|
|
962
|
+
let callback = null;
|
|
963
|
+
function onDrain() {
|
|
964
|
+
if (callback) {
|
|
965
|
+
const cb = callback;
|
|
966
|
+
callback = null;
|
|
967
|
+
cb();
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
const waitForDrain = () => new Promise((resolve, reject) => {
|
|
971
|
+
assert(callback === null);
|
|
972
|
+
if (socket[kError]) reject(socket[kError]);
|
|
973
|
+
else callback = resolve;
|
|
974
|
+
});
|
|
975
|
+
socket.on("close", onDrain).on("drain", onDrain);
|
|
976
|
+
const writer = new AsyncWriter({
|
|
977
|
+
abort,
|
|
978
|
+
socket,
|
|
979
|
+
request,
|
|
980
|
+
contentLength,
|
|
981
|
+
client,
|
|
982
|
+
expectsPayload,
|
|
983
|
+
header
|
|
984
|
+
});
|
|
985
|
+
try {
|
|
986
|
+
for await (const chunk of body) {
|
|
987
|
+
if (socket[kError]) throw socket[kError];
|
|
988
|
+
if (!writer.write(chunk)) await waitForDrain();
|
|
989
|
+
}
|
|
990
|
+
writer.end();
|
|
991
|
+
} catch (err) {
|
|
992
|
+
writer.destroy(err);
|
|
993
|
+
} finally {
|
|
994
|
+
socket.off("close", onDrain).off("drain", onDrain);
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
var AsyncWriter = class {
|
|
998
|
+
/**
|
|
999
|
+
*
|
|
1000
|
+
* @param {object} arg
|
|
1001
|
+
* @param {AbortCallback} arg.abort
|
|
1002
|
+
* @param {import('net').Socket} arg.socket
|
|
1003
|
+
* @param {import('../core/request.js')} arg.request
|
|
1004
|
+
* @param {number} arg.contentLength
|
|
1005
|
+
* @param {import('./client.js')} arg.client
|
|
1006
|
+
* @param {boolean} arg.expectsPayload
|
|
1007
|
+
* @param {string} arg.header
|
|
1008
|
+
*/
|
|
1009
|
+
constructor({ abort, socket, request, contentLength, client, expectsPayload, header }) {
|
|
1010
|
+
this.socket = socket;
|
|
1011
|
+
this.request = request;
|
|
1012
|
+
this.contentLength = contentLength;
|
|
1013
|
+
this.client = client;
|
|
1014
|
+
this.bytesWritten = 0;
|
|
1015
|
+
this.expectsPayload = expectsPayload;
|
|
1016
|
+
this.header = header;
|
|
1017
|
+
this.abort = abort;
|
|
1018
|
+
socket[kWriting] = true;
|
|
1019
|
+
}
|
|
1020
|
+
/**
|
|
1021
|
+
* @param {Buffer} chunk
|
|
1022
|
+
* @returns
|
|
1023
|
+
*/
|
|
1024
|
+
write(chunk) {
|
|
1025
|
+
const { socket, request, contentLength, client, bytesWritten, expectsPayload, header } = this;
|
|
1026
|
+
if (socket[kError]) throw socket[kError];
|
|
1027
|
+
if (socket.destroyed) return false;
|
|
1028
|
+
const len = Buffer.byteLength(chunk);
|
|
1029
|
+
if (!len) return true;
|
|
1030
|
+
if (contentLength !== null && bytesWritten + len > contentLength) {
|
|
1031
|
+
if (client[kStrictContentLength]) throw new RequestContentLengthMismatchError();
|
|
1032
|
+
process.emitWarning(new RequestContentLengthMismatchError());
|
|
1033
|
+
}
|
|
1034
|
+
socket.cork();
|
|
1035
|
+
if (bytesWritten === 0) {
|
|
1036
|
+
if (!expectsPayload && request.reset !== false) socket[kReset] = true;
|
|
1037
|
+
if (contentLength === null) socket.write(`${header}transfer-encoding: chunked\r\n`, "latin1");
|
|
1038
|
+
else socket.write(`${header}content-length: ${contentLength}\r\n\r\n`, "latin1");
|
|
1039
|
+
}
|
|
1040
|
+
if (contentLength === null) socket.write(`\r\n${len.toString(16)}\r\n`, "latin1");
|
|
1041
|
+
this.bytesWritten += len;
|
|
1042
|
+
const ret = socket.write(chunk);
|
|
1043
|
+
socket.uncork();
|
|
1044
|
+
request.onBodySent(chunk);
|
|
1045
|
+
if (!ret) {
|
|
1046
|
+
if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) {
|
|
1047
|
+
if (socket[kParser].timeout.refresh) socket[kParser].timeout.refresh();
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
return ret;
|
|
1051
|
+
}
|
|
1052
|
+
/**
|
|
1053
|
+
* @returns {void}
|
|
1054
|
+
*/
|
|
1055
|
+
end() {
|
|
1056
|
+
const { socket, contentLength, client, bytesWritten, expectsPayload, header, request } = this;
|
|
1057
|
+
request.onRequestSent();
|
|
1058
|
+
socket[kWriting] = false;
|
|
1059
|
+
if (socket[kError]) throw socket[kError];
|
|
1060
|
+
if (socket.destroyed) return;
|
|
1061
|
+
if (bytesWritten === 0) {
|
|
1062
|
+
if (expectsPayload) socket.write(`${header}content-length: 0\r\n\r\n`, "latin1");
|
|
1063
|
+
else socket.write(`${header}\r\n`, "latin1");
|
|
1064
|
+
} else if (contentLength === null) socket.write("\r\n0\r\n\r\n", "latin1");
|
|
1065
|
+
if (contentLength !== null && bytesWritten !== contentLength) {
|
|
1066
|
+
if (client[kStrictContentLength]) throw new RequestContentLengthMismatchError();
|
|
1067
|
+
else process.emitWarning(new RequestContentLengthMismatchError());
|
|
1068
|
+
}
|
|
1069
|
+
if (socket[kParser].timeout && socket[kParser].timeoutType === TIMEOUT_HEADERS) {
|
|
1070
|
+
if (socket[kParser].timeout.refresh) socket[kParser].timeout.refresh();
|
|
1071
|
+
}
|
|
1072
|
+
client[kResume]();
|
|
1073
|
+
}
|
|
1074
|
+
/**
|
|
1075
|
+
* @param {Error} [err]
|
|
1076
|
+
* @returns {void}
|
|
1077
|
+
*/
|
|
1078
|
+
destroy(err) {
|
|
1079
|
+
const { socket, client, abort } = this;
|
|
1080
|
+
socket[kWriting] = false;
|
|
1081
|
+
if (err) {
|
|
1082
|
+
assert(client[kRunning] <= 1, "pipeline should only contain this request");
|
|
1083
|
+
abort(err);
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
};
|
|
1087
|
+
module.exports = connectH1;
|
|
1088
|
+
}));
|
|
1089
|
+
//#endregion
|
|
1090
|
+
export default require_client_h1();
|
|
1091
|
+
export { require_client_h1 };
|