@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.
Files changed (823) hide show
  1. package/README.md +100 -3
  2. package/THIRD_PARTY_NOTICES.txt +1064 -0
  3. package/apps/cli/dist/_virtual/_rolldown/runtime.mjs +35 -0
  4. package/apps/cli/dist/args.mjs +204 -0
  5. package/apps/cli/dist/cli.mjs +392 -0
  6. package/apps/cli/dist/errors.mjs +32 -0
  7. package/apps/cli/dist/help.mjs +73 -0
  8. package/apps/cli/dist/io.mjs +37 -0
  9. package/apps/cli/dist/main.mjs +10 -0
  10. package/apps/cli/dist/node_modules/.pnpm/@keyv_serialize@1.1.1/node_modules/@keyv/serialize/dist/index.mjs +37 -0
  11. 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
  12. 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
  13. package/apps/cli/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/index.mjs +1015 -0
  14. package/apps/cli/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/utilities.mjs +6 -0
  15. package/apps/cli/dist/node_modules/.pnpm/boolbase@1.0.0/node_modules/boolbase/index.mjs +15 -0
  16. package/apps/cli/dist/node_modules/.pnpm/byte-counter@0.1.0/node_modules/byte-counter/utilities.mjs +9 -0
  17. package/apps/cli/dist/node_modules/.pnpm/cacheable-lookup@7.0.0/node_modules/cacheable-lookup/source/index.mjs +279 -0
  18. package/apps/cli/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/index.mjs +274 -0
  19. package/apps/cli/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/types.mjs +15 -0
  20. package/apps/cli/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/helpers.mjs +15 -0
  21. package/apps/cli/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/index.mjs +159 -0
  22. package/apps/cli/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/positionals.mjs +33 -0
  23. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/attributes.mjs +465 -0
  24. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/css.mjs +94 -0
  25. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/extract.mjs +39 -0
  26. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/forms.mjs +63 -0
  27. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/manipulation.mjs +731 -0
  28. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/traversing.mjs +828 -0
  29. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/cheerio.mjs +53 -0
  30. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/index.mjs +11 -0
  31. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load-parse.mjs +25 -0
  32. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load.mjs +73 -0
  33. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/options.mjs +27 -0
  34. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parse.mjs +53 -0
  35. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parsers/parse5-adapter.mjs +42 -0
  36. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/static.mjs +165 -0
  37. package/apps/cli/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/utils.mjs +78 -0
  38. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/attributes.mjs +187 -0
  39. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/compile.mjs +77 -0
  40. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/general.mjs +89 -0
  41. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/index.mjs +43 -0
  42. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/aliases.mjs +32 -0
  43. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/filters.mjs +114 -0
  44. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/index.mjs +35 -0
  45. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/pseudos.mjs +53 -0
  46. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/pseudo-selectors/subselects.mjs +68 -0
  47. package/apps/cli/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/sort.mjs +60 -0
  48. package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/index.mjs +50 -0
  49. package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/parse.mjs +320 -0
  50. package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/stringify.mjs +102 -0
  51. package/apps/cli/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/types.mjs +45 -0
  52. package/apps/cli/dist/node_modules/.pnpm/decompress-response@10.0.0/node_modules/decompress-response/index.mjs +59 -0
  53. package/apps/cli/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/foreignNames.mjs +103 -0
  54. package/apps/cli/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/index.mjs +144 -0
  55. package/apps/cli/dist/node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/esm/index.mjs +51 -0
  56. package/apps/cli/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/index.mjs +128 -0
  57. package/apps/cli/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/node.mjs +312 -0
  58. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/feeds.mjs +161 -0
  59. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/helpers.mjs +113 -0
  60. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/index.mjs +56 -0
  61. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/legacy.mjs +141 -0
  62. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/manipulation.mjs +117 -0
  63. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/querying.mjs +124 -0
  64. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/stringify.mjs +69 -0
  65. package/apps/cli/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/traversal.mjs +109 -0
  66. package/apps/cli/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/index.mjs +7 -0
  67. package/apps/cli/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/sniffer.mjs +112 -0
  68. package/apps/cli/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/escape.mjs +83 -0
  69. package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +43 -0
  70. package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs +330 -0
  71. package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/escape.mjs +49 -0
  72. package/apps/cli/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +4 -0
  73. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +57 -0
  74. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode.mjs +351 -0
  75. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +5 -0
  76. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-xml.mjs +5 -0
  77. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/bin-trie-flags.mjs +20 -0
  78. package/apps/cli/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/decode-shared.mjs +14 -0
  79. package/apps/cli/dist/node_modules/.pnpm/fflate@0.8.3/node_modules/fflate/esm/index.mjs +871 -0
  80. package/apps/cli/dist/node_modules/.pnpm/form-data-encoder@4.1.0/node_modules/form-data-encoder/lib/index.mjs +279 -0
  81. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array-buffer.mjs +54 -0
  82. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/buffer.mjs +14 -0
  83. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/contents.mjs +80 -0
  84. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.mjs +41 -0
  85. package/apps/cli/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/utils.mjs +8 -0
  86. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/index.mjs +154 -0
  87. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/types.mjs +20 -0
  88. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/calculate-retry-delay.mjs +20 -0
  89. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/diagnostics-channel.mjs +38 -0
  90. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/errors.mjs +132 -0
  91. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/index.mjs +923 -0
  92. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/options.mjs +1622 -0
  93. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/parse-link-header.mjs +27 -0
  94. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/response.mjs +36 -0
  95. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/timed-out.mjs +107 -0
  96. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/defer-to-connect.mjs +28 -0
  97. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/get-body-size.mjs +23 -0
  98. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-client-request.mjs +6 -0
  99. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/is-form-data.mjs +7 -0
  100. 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
  101. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/proxy-events.mjs +16 -0
  102. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/timer.mjs +114 -0
  103. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/unhandle.mjs +23 -0
  104. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/url-to-options.mjs +20 -0
  105. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/weakable-map.mjs +19 -0
  106. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/create.mjs +166 -0
  107. package/apps/cli/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/index.mjs +17 -0
  108. package/apps/cli/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Parser.mjs +441 -0
  109. package/apps/cli/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Tokenizer.mjs +661 -0
  110. package/apps/cli/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/index.mjs +19 -0
  111. package/apps/cli/dist/node_modules/.pnpm/http-cache-semantics@4.3.0/node_modules/http-cache-semantics/index.mjs +608 -0
  112. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/agent.mjs +441 -0
  113. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/auto.mjs +145 -0
  114. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/client-request.mjs +318 -0
  115. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/incoming-message.mjs +58 -0
  116. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/index.mjs +51 -0
  117. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/get-auth-headers.mjs +19 -0
  118. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h1-over-h2.mjs +84 -0
  119. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h1.mjs +49 -0
  120. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-h2.mjs +38 -0
  121. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/h2-over-hx.mjs +39 -0
  122. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/initialize.mjs +23 -0
  123. 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
  124. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/calculate-server-name.mjs +24 -0
  125. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/check-type.mjs +17 -0
  126. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/delay-async-destroy.mjs +28 -0
  127. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/errors.mjs +30 -0
  128. 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
  129. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/js-stream-socket.mjs +9 -0
  130. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-events.mjs +10 -0
  131. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-socket-handler.mjs +77 -0
  132. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-name.mjs +15 -0
  133. package/apps/cli/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/validate-header-value.mjs +14 -0
  134. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-codec.mjs +355 -0
  135. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-data.mjs +191 -0
  136. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/index.mjs +31 -0
  137. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/internal.mjs +140 -0
  138. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-codec.mjs +50 -0
  139. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data-generated.mjs +455 -0
  140. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data.mjs +151 -0
  141. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/big5-added.mjs +169 -0
  142. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp936.mjs +2584 -0
  143. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp949.mjs +2220 -0
  144. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp950.mjs +227 -0
  145. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/eucjp.mjs +425 -0
  146. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.mjs +427 -0
  147. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gbk-added.mjs +230 -0
  148. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/shiftjis.mjs +292 -0
  149. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf16.mjs +123 -0
  150. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf32.mjs +197 -0
  151. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf7.mjs +182 -0
  152. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/bom-handling.mjs +42 -0
  153. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.mjs +108 -0
  154. package/apps/cli/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/streams.mjs +90 -0
  155. package/apps/cli/dist/node_modules/.pnpm/is-stream@4.0.1/node_modules/is-stream/index.mjs +9 -0
  156. package/apps/cli/dist/node_modules/.pnpm/js-sha256@0.11.1/node_modules/js-sha256/src/sha256.mjs +495 -0
  157. package/apps/cli/dist/node_modules/.pnpm/keyv@5.6.0/node_modules/keyv/dist/index.mjs +740 -0
  158. package/apps/cli/dist/node_modules/.pnpm/lowercase-keys@3.0.0/node_modules/lowercase-keys/index.mjs +6 -0
  159. package/apps/cli/dist/node_modules/.pnpm/mimic-response@4.0.0/node_modules/mimic-response/index.mjs +53 -0
  160. package/apps/cli/dist/node_modules/.pnpm/normalize-url@8.1.1/node_modules/normalize-url/index.mjs +145 -0
  161. package/apps/cli/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/compile.mjs +37 -0
  162. package/apps/cli/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/index.mjs +31 -0
  163. package/apps/cli/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/parse.mjs +60 -0
  164. package/apps/cli/dist/node_modules/.pnpm/p-cancelable@4.0.1/node_modules/p-cancelable/index.mjs +86 -0
  165. 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
  166. package/apps/cli/dist/node_modules/.pnpm/parse5-parser-stream@7.1.2/node_modules/parse5-parser-stream/dist/index.mjs +2 -0
  167. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.mjs +101 -0
  168. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.mjs +66 -0
  169. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.mjs +259 -0
  170. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.mjs +544 -0
  171. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.mjs +19 -0
  172. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.mjs +91 -0
  173. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/index.mjs +41 -0
  174. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.mjs +91 -0
  175. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.mjs +2492 -0
  176. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.mjs +292 -0
  177. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.mjs +111 -0
  178. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.mjs +2067 -0
  179. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs +154 -0
  180. package/apps/cli/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.mjs +164 -0
  181. package/apps/cli/dist/node_modules/.pnpm/quick-lru@5.1.1/node_modules/quick-lru/index.mjs +77 -0
  182. package/apps/cli/dist/node_modules/.pnpm/resolve-alpn@1.2.1/node_modules/resolve-alpn/index.mjs +47 -0
  183. package/apps/cli/dist/node_modules/.pnpm/responselike@4.0.2/node_modules/responselike/index.mjs +32 -0
  184. package/apps/cli/dist/node_modules/.pnpm/safer-buffer@2.1.2/node_modules/safer-buffer/safer.mjs +45 -0
  185. package/apps/cli/dist/node_modules/.pnpm/tldts@7.4.18/node_modules/tldts/dist/cjs/index.mjs +22542 -0
  186. package/apps/cli/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.mjs +1761 -0
  187. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/index.mjs +221 -0
  188. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/abort-signal.mjs +44 -0
  189. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-connect.mjs +85 -0
  190. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-pipeline.mjs +174 -0
  191. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-request.mjs +155 -0
  192. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-stream.mjs +136 -0
  193. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-upgrade.mjs +88 -0
  194. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/index.mjs +17 -0
  195. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/readable.mjs +418 -0
  196. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/memory-cache-store.mjs +190 -0
  197. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/sqlite-cache-store.mjs +324 -0
  198. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/connect.mjs +115 -0
  199. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/constants.mjs +134 -0
  200. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/diagnostics.mjs +114 -0
  201. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/errors.mjs +412 -0
  202. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/request.mjs +282 -0
  203. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-client.mjs +288 -0
  204. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-utils.mjs +166 -0
  205. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/symbols.mjs +80 -0
  206. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/tree.mjs +124 -0
  207. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/util.mjs +940 -0
  208. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/agent.mjs +119 -0
  209. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/balanced-pool.mjs +129 -0
  210. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h1.mjs +1091 -0
  211. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h2.mjs +588 -0
  212. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client.mjs +385 -0
  213. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher-base.mjs +121 -0
  214. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher.mjs +35 -0
  215. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/env-http-proxy-agent.mjs +105 -0
  216. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/fixed-queue.mjs +75 -0
  217. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/h2c-client.mjs +31 -0
  218. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool-base.mjs +155 -0
  219. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool.mjs +76 -0
  220. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/proxy-agent.mjs +233 -0
  221. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/retry-agent.mjs +37 -0
  222. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/round-robin-pool.mjs +94 -0
  223. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/socks5-proxy-agent.mjs +194 -0
  224. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/encoding/index.mjs +18 -0
  225. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/global.mjs +48 -0
  226. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-handler.mjs +457 -0
  227. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-revalidation-handler.mjs +82 -0
  228. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/decorator-handler.mjs +57 -0
  229. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/deduplication-handler.mjs +341 -0
  230. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/redirect-handler.mjs +131 -0
  231. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/retry-handler.mjs +332 -0
  232. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/unwrap-handler.mjs +88 -0
  233. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/wrap-handler.mjs +68 -0
  234. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/cache.mjs +350 -0
  235. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/decompress.mjs +416 -0
  236. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/deduplicate.mjs +69 -0
  237. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dns.mjs +323 -0
  238. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dump.mjs +65 -0
  239. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/redirect.mjs +20 -0
  240. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/response-error.mjs +73 -0
  241. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/retry.mjs +25 -0
  242. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/constants.mjs +590 -0
  243. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp-wasm.mjs +13 -0
  244. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp_simd-wasm.mjs +13 -0
  245. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/utils.mjs +16 -0
  246. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-agent.mjs +154 -0
  247. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-call-history.mjs +159 -0
  248. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-client.mjs +59 -0
  249. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-errors.mjs +28 -0
  250. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-interceptor.mjs +150 -0
  251. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-pool.mjs +59 -0
  252. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-symbols.mjs +37 -0
  253. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-utils.mjs +302 -0
  254. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/pending-interceptors-formatter.mjs +38 -0
  255. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-agent.mjs +268 -0
  256. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-recorder.mjs +424 -0
  257. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-utils.mjs +121 -0
  258. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/cache.mjs +440 -0
  259. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/date.mjs +332 -0
  260. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/promise.mjs +31 -0
  261. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/runtime-features.mjs +101 -0
  262. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/stats.mjs +31 -0
  263. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/timers.mjs +341 -0
  264. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cache.mjs +462 -0
  265. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cachestorage.mjs +103 -0
  266. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/util.mjs +39 -0
  267. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/constants.mjs +11 -0
  268. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/index.mjs +169 -0
  269. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/parse.mjs +108 -0
  270. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/util.mjs +239 -0
  271. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource-stream.mjs +317 -0
  272. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource.mjs +345 -0
  273. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/util.mjs +29 -0
  274. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/body.mjs +271 -0
  275. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/constants.mjs +224 -0
  276. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/data-url.mjs +247 -0
  277. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata-parser.mjs +255 -0
  278. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata.mjs +153 -0
  279. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/global.mjs +34 -0
  280. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/headers.mjs +400 -0
  281. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/index.mjs +776 -0
  282. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/request.mjs +602 -0
  283. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/response.mjs +358 -0
  284. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/util.mjs +795 -0
  285. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/infra/index.mjs +154 -0
  286. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.mjs +170 -0
  287. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/webidl/index.mjs +505 -0
  288. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/connection.mjs +166 -0
  289. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/constants.mjs +47 -0
  290. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/events.mjs +268 -0
  291. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/frame.mjs +105 -0
  292. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/permessage-deflate.mjs +85 -0
  293. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/receiver.mjs +323 -0
  294. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/sender.mjs +90 -0
  295. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketerror.mjs +78 -0
  296. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketstream.mjs +270 -0
  297. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/util.mjs +212 -0
  298. package/apps/cli/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/websocket.mjs +432 -0
  299. package/apps/cli/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/labels-to-names.mjs +224 -0
  300. package/apps/cli/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/supported-names.mjs +45 -0
  301. package/apps/cli/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/whatwg-encoding.mjs +40 -0
  302. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type-parameters.mjs +54 -0
  303. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type.mjs +92 -0
  304. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/parser.mjs +62 -0
  305. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/serializer.mjs +24 -0
  306. package/apps/cli/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/utils.mjs +47 -0
  307. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.mjs +26 -0
  308. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.mjs +35 -0
  309. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.mjs +17 -0
  310. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.mjs +800 -0
  311. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.mjs +508 -0
  312. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.mjs +366 -0
  313. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.mjs +60 -0
  314. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.mjs +32 -0
  315. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.mjs +63 -0
  316. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.mjs +253 -0
  317. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.mjs +118 -0
  318. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.mjs +65 -0
  319. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.mjs +48 -0
  320. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.mjs +1235 -0
  321. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.mjs +297 -0
  322. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.mjs +316 -0
  323. package/apps/cli/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.mjs +8 -0
  324. package/apps/cli/dist/packages/data-maintenance/src/archive.mjs +143 -0
  325. package/apps/cli/dist/packages/data-maintenance/src/contracts.mjs +17 -0
  326. package/apps/cli/dist/packages/data-maintenance/src/files.mjs +121 -0
  327. package/apps/cli/dist/packages/data-maintenance/src/index.mjs +494 -0
  328. package/apps/cli/dist/packages/data-maintenance/src/lease.mjs +53 -0
  329. package/apps/cli/dist/packages/data-maintenance/src/migration-backup.mjs +57 -0
  330. package/apps/cli/dist/packages/data-maintenance/src/paths.mjs +15 -0
  331. package/apps/cli/dist/packages/feidee/src/client.mjs +635 -0
  332. package/apps/cli/dist/packages/feidee/src/hash.mjs +10 -0
  333. package/apps/cli/dist/packages/feidee/src/index.mjs +8 -0
  334. package/apps/cli/dist/packages/feidee/src/mutation-gateway.mjs +165 -0
  335. package/apps/cli/dist/packages/feidee/src/parsers.mjs +634 -0
  336. package/apps/cli/dist/packages/feidee/src/transaction-text.mjs +39 -0
  337. package/apps/cli/dist/packages/feidee/src/write-contract.mjs +273 -0
  338. package/apps/cli/dist/packages/finance/src/date-range.mjs +74 -0
  339. package/apps/cli/dist/packages/finance/src/domain.mjs +18 -0
  340. package/apps/cli/dist/packages/finance/src/errors.mjs +221 -0
  341. package/apps/cli/dist/packages/finance/src/index.mjs +16 -0
  342. package/apps/cli/dist/packages/finance/src/metadata-query.mjs +32 -0
  343. package/apps/cli/dist/packages/finance/src/sync/progress.mjs +27 -0
  344. package/apps/cli/dist/packages/finance/src/sync/service.mjs +282 -0
  345. package/apps/cli/dist/packages/finance/src/transactions/audit.mjs +104 -0
  346. package/apps/cli/dist/packages/finance/src/transactions/canary.mjs +85 -0
  347. package/apps/cli/dist/packages/finance/src/transactions/compare.mjs +76 -0
  348. package/apps/cli/dist/packages/finance/src/transactions/contracts.mjs +92 -0
  349. package/apps/cli/dist/packages/finance/src/transactions/memo-policy.mjs +79 -0
  350. package/apps/cli/dist/packages/finance/src/transactions/mutation.mjs +656 -0
  351. package/apps/cli/dist/packages/finance/src/transactions/query.mjs +59 -0
  352. package/apps/cli/dist/packages/finance/src/transactions/statistics.mjs +67 -0
  353. package/apps/cli/dist/packages/finance/src/write-policy.mjs +4 -0
  354. package/apps/cli/dist/packages/finance-module/src/balance-preview.mjs +4 -0
  355. package/apps/cli/dist/packages/finance-module/src/contracts.mjs +13 -0
  356. package/apps/cli/dist/packages/finance-module/src/database.mjs +1292 -0
  357. package/apps/cli/dist/packages/finance-module/src/draft-entries.mjs +89 -0
  358. package/apps/cli/dist/packages/finance-module/src/draft-receipts.mjs +8 -0
  359. package/apps/cli/dist/packages/finance-module/src/historical-task-archives.mjs +24 -0
  360. package/apps/cli/dist/packages/finance-module/src/node.mjs +76 -0
  361. package/apps/cli/dist/packages/finance-module/src/personal-preferences.mjs +29 -0
  362. package/apps/cli/dist/packages/finance-module/src/route-contracts.mjs +11 -0
  363. package/apps/cli/dist/packages/finance-module/src/schema-compatibility.mjs +142 -0
  364. package/apps/cli/dist/packages/finance-module/src/service-record-domain.mjs +16 -0
  365. package/apps/cli/dist/packages/finance-module/src/service-record-store.mjs +119 -0
  366. package/apps/cli/dist/packages/finance-module/src/shared-draft-migration.mjs +39 -0
  367. package/apps/cli/dist/packages/finance-module/src/single-draft-migration.mjs +70 -0
  368. package/apps/cli/dist/packages/finance-module/src/storage.mjs +282 -0
  369. package/apps/cli/dist/packages/finance-module/src/web-contracts.mjs +38 -0
  370. package/apps/cli/dist/packages/local-store/src/checkpoint-backup.mjs +40 -0
  371. package/apps/cli/dist/packages/local-store/src/checkpoint-history.mjs +77 -0
  372. package/apps/cli/dist/packages/local-store/src/database.mjs +1523 -0
  373. package/apps/cli/dist/packages/local-store/src/exchange-rates.mjs +169 -0
  374. package/apps/cli/dist/packages/local-store/src/node.mjs +71 -0
  375. package/apps/cli/dist/packages/sdk/src/account-snapshot-service.mjs +582 -0
  376. package/apps/cli/dist/packages/sdk/src/auth.mjs +89 -0
  377. package/apps/cli/dist/packages/sdk/src/cache-analysis.mjs +393 -0
  378. package/apps/cli/dist/packages/sdk/src/config.mjs +64 -0
  379. package/apps/cli/dist/packages/sdk/src/credential-identity.mjs +8 -0
  380. package/apps/cli/dist/packages/sdk/src/credentials.mjs +86 -0
  381. package/apps/cli/dist/packages/sdk/src/exchange-rate-service.mjs +253 -0
  382. package/apps/cli/dist/packages/sdk/src/finance-cookie-cache.mjs +93 -0
  383. package/apps/cli/dist/packages/sdk/src/finance-session.mjs +215 -0
  384. package/apps/cli/dist/packages/sdk/src/frankfurter.mjs +125 -0
  385. package/apps/cli/dist/packages/sdk/src/node.mjs +53 -0
  386. package/apps/cli/dist/packages/sdk/src/probe.mjs +65 -0
  387. package/apps/cli/dist/packages/sdk/src/resource-lease-node.mjs +27 -0
  388. package/apps/cli/dist/packages/sdk/src/resource-lease-owner-node.mjs +68 -0
  389. package/apps/cli/dist/packages/sdk/src/resource-lease.mjs +143 -0
  390. package/apps/cli/dist/packages/sdk/src/runtime.mjs +643 -0
  391. package/apps/cli/dist/storage.mjs +11 -0
  392. package/bundles/sui-ledger/dist/_virtual/_rolldown/runtime.mjs +35 -0
  393. package/bundles/sui-ledger/dist/capabilities/tools.mjs +32 -0
  394. package/bundles/sui-ledger/dist/client.js +23511 -0
  395. package/bundles/sui-ledger/dist/finance-prompt.mjs +30 -0
  396. package/bundles/sui-ledger/dist/finance-state-context.mjs +38 -0
  397. package/bundles/sui-ledger/dist/index.mjs +198 -0
  398. package/bundles/sui-ledger/dist/maintenance-cli.mjs +76 -0
  399. 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
  400. package/bundles/sui-ledger/dist/node_modules/.pnpm/@keyv_serialize@1.1.1/node_modules/@keyv/serialize/dist/index.mjs +37 -0
  401. 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
  402. 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
  403. package/bundles/sui-ledger/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/index.mjs +1015 -0
  404. package/bundles/sui-ledger/dist/node_modules/.pnpm/@sindresorhus_is@7.2.0/node_modules/@sindresorhus/is/distribution/utilities.mjs +6 -0
  405. package/bundles/sui-ledger/dist/node_modules/.pnpm/boolbase@1.0.0/node_modules/boolbase/index.mjs +15 -0
  406. package/bundles/sui-ledger/dist/node_modules/.pnpm/byte-counter@0.1.0/node_modules/byte-counter/utilities.mjs +9 -0
  407. package/bundles/sui-ledger/dist/node_modules/.pnpm/cacheable-lookup@7.0.0/node_modules/cacheable-lookup/source/index.mjs +279 -0
  408. package/bundles/sui-ledger/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/index.mjs +274 -0
  409. package/bundles/sui-ledger/dist/node_modules/.pnpm/cacheable-request@13.0.19/node_modules/cacheable-request/dist/types.mjs +15 -0
  410. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/helpers.mjs +15 -0
  411. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/index.mjs +159 -0
  412. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio-select@2.1.0/node_modules/cheerio-select/lib/esm/positionals.mjs +33 -0
  413. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/attributes.mjs +465 -0
  414. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/css.mjs +94 -0
  415. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/extract.mjs +39 -0
  416. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/forms.mjs +63 -0
  417. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/manipulation.mjs +731 -0
  418. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/api/traversing.mjs +828 -0
  419. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/cheerio.mjs +53 -0
  420. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/index.mjs +11 -0
  421. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load-parse.mjs +25 -0
  422. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/load.mjs +73 -0
  423. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/options.mjs +27 -0
  424. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parse.mjs +53 -0
  425. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/parsers/parse5-adapter.mjs +42 -0
  426. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/static.mjs +165 -0
  427. package/bundles/sui-ledger/dist/node_modules/.pnpm/cheerio@1.1.2/node_modules/cheerio/dist/esm/utils.mjs +78 -0
  428. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/attributes.mjs +187 -0
  429. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/compile.mjs +77 -0
  430. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/general.mjs +89 -0
  431. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/index.mjs +43 -0
  432. 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
  433. 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
  434. 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
  435. 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
  436. 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
  437. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/esm/sort.mjs +60 -0
  438. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/index.mjs +50 -0
  439. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/parse.mjs +320 -0
  440. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/stringify.mjs +102 -0
  441. package/bundles/sui-ledger/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/commonjs/types.mjs +45 -0
  442. package/bundles/sui-ledger/dist/node_modules/.pnpm/decompress-response@10.0.0/node_modules/decompress-response/index.mjs +59 -0
  443. package/bundles/sui-ledger/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/foreignNames.mjs +103 -0
  444. package/bundles/sui-ledger/dist/node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/esm/index.mjs +144 -0
  445. package/bundles/sui-ledger/dist/node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/esm/index.mjs +51 -0
  446. package/bundles/sui-ledger/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/index.mjs +128 -0
  447. package/bundles/sui-ledger/dist/node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/esm/node.mjs +312 -0
  448. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/feeds.mjs +161 -0
  449. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/helpers.mjs +113 -0
  450. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/index.mjs +56 -0
  451. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/legacy.mjs +141 -0
  452. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/manipulation.mjs +117 -0
  453. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/querying.mjs +124 -0
  454. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/stringify.mjs +69 -0
  455. package/bundles/sui-ledger/dist/node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/esm/traversal.mjs +109 -0
  456. package/bundles/sui-ledger/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/index.mjs +7 -0
  457. package/bundles/sui-ledger/dist/node_modules/.pnpm/encoding-sniffer@0.2.1/node_modules/encoding-sniffer/dist/esm/sniffer.mjs +112 -0
  458. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/escape.mjs +83 -0
  459. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +43 -0
  460. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/decode.mjs +330 -0
  461. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/escape.mjs +49 -0
  462. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@6.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +4 -0
  463. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode-codepoint.mjs +57 -0
  464. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/decode.mjs +351 -0
  465. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-html.mjs +5 -0
  466. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/generated/decode-data-xml.mjs +5 -0
  467. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/bin-trie-flags.mjs +20 -0
  468. package/bundles/sui-ledger/dist/node_modules/.pnpm/entities@7.0.1/node_modules/entities/dist/esm/internal/decode-shared.mjs +14 -0
  469. package/bundles/sui-ledger/dist/node_modules/.pnpm/fflate@0.8.3/node_modules/fflate/esm/index.mjs +871 -0
  470. package/bundles/sui-ledger/dist/node_modules/.pnpm/form-data-encoder@4.1.0/node_modules/form-data-encoder/lib/index.mjs +279 -0
  471. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/array-buffer.mjs +54 -0
  472. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/buffer.mjs +14 -0
  473. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/contents.mjs +80 -0
  474. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/stream.mjs +41 -0
  475. package/bundles/sui-ledger/dist/node_modules/.pnpm/get-stream@9.0.1/node_modules/get-stream/source/utils.mjs +8 -0
  476. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/index.mjs +154 -0
  477. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/as-promise/types.mjs +20 -0
  478. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/calculate-retry-delay.mjs +20 -0
  479. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/diagnostics-channel.mjs +38 -0
  480. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/errors.mjs +132 -0
  481. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/index.mjs +923 -0
  482. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/options.mjs +1622 -0
  483. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/parse-link-header.mjs +27 -0
  484. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/response.mjs +36 -0
  485. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/timed-out.mjs +107 -0
  486. 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
  487. 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
  488. 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
  489. 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
  490. 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
  491. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/proxy-events.mjs +16 -0
  492. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/timer.mjs +114 -0
  493. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/unhandle.mjs +23 -0
  494. 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
  495. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/core/utils/weakable-map.mjs +19 -0
  496. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/create.mjs +166 -0
  497. package/bundles/sui-ledger/dist/node_modules/.pnpm/got@14.6.5/node_modules/got/dist/source/index.mjs +17 -0
  498. package/bundles/sui-ledger/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Parser.mjs +441 -0
  499. package/bundles/sui-ledger/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/Tokenizer.mjs +661 -0
  500. package/bundles/sui-ledger/dist/node_modules/.pnpm/htmlparser2@10.1.0/node_modules/htmlparser2/dist/esm/index.mjs +19 -0
  501. package/bundles/sui-ledger/dist/node_modules/.pnpm/http-cache-semantics@4.3.0/node_modules/http-cache-semantics/index.mjs +608 -0
  502. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/agent.mjs +441 -0
  503. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/auto.mjs +145 -0
  504. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/client-request.mjs +318 -0
  505. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/incoming-message.mjs +58 -0
  506. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/index.mjs +51 -0
  507. 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
  508. 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
  509. 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
  510. 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
  511. 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
  512. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/proxies/initialize.mjs +23 -0
  513. 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
  514. 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
  515. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/check-type.mjs +17 -0
  516. 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
  517. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/errors.mjs +30 -0
  518. 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
  519. 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
  520. package/bundles/sui-ledger/dist/node_modules/.pnpm/http2-wrapper@2.2.1/node_modules/http2-wrapper/source/utils/proxy-events.mjs +10 -0
  521. 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
  522. 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
  523. 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
  524. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-codec.mjs +355 -0
  525. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/dbcs-data.mjs +191 -0
  526. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/index.mjs +31 -0
  527. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/internal.mjs +140 -0
  528. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-codec.mjs +50 -0
  529. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data-generated.mjs +455 -0
  530. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/sbcs-data.mjs +151 -0
  531. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/big5-added.mjs +169 -0
  532. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp936.mjs +2584 -0
  533. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp949.mjs +2220 -0
  534. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/cp950.mjs +227 -0
  535. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/eucjp.mjs +425 -0
  536. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.mjs +427 -0
  537. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/gbk-added.mjs +230 -0
  538. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/tables/shiftjis.mjs +292 -0
  539. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf16.mjs +123 -0
  540. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf32.mjs +197 -0
  541. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/encodings/utf7.mjs +182 -0
  542. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/bom-handling.mjs +42 -0
  543. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/index.mjs +108 -0
  544. package/bundles/sui-ledger/dist/node_modules/.pnpm/iconv-lite@0.6.3/node_modules/iconv-lite/lib/streams.mjs +90 -0
  545. package/bundles/sui-ledger/dist/node_modules/.pnpm/is-stream@4.0.1/node_modules/is-stream/index.mjs +9 -0
  546. package/bundles/sui-ledger/dist/node_modules/.pnpm/js-sha256@0.11.1/node_modules/js-sha256/src/sha256.mjs +495 -0
  547. package/bundles/sui-ledger/dist/node_modules/.pnpm/keyv@5.6.0/node_modules/keyv/dist/index.mjs +740 -0
  548. package/bundles/sui-ledger/dist/node_modules/.pnpm/lowercase-keys@3.0.0/node_modules/lowercase-keys/index.mjs +6 -0
  549. package/bundles/sui-ledger/dist/node_modules/.pnpm/mimic-response@4.0.0/node_modules/mimic-response/index.mjs +53 -0
  550. package/bundles/sui-ledger/dist/node_modules/.pnpm/normalize-url@8.1.1/node_modules/normalize-url/index.mjs +145 -0
  551. package/bundles/sui-ledger/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/compile.mjs +37 -0
  552. package/bundles/sui-ledger/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/index.mjs +31 -0
  553. package/bundles/sui-ledger/dist/node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/esm/parse.mjs +60 -0
  554. package/bundles/sui-ledger/dist/node_modules/.pnpm/p-cancelable@4.0.1/node_modules/p-cancelable/index.mjs +86 -0
  555. 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
  556. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5-parser-stream@7.1.2/node_modules/parse5-parser-stream/dist/index.mjs +2 -0
  557. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/doctype.mjs +101 -0
  558. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/error-codes.mjs +66 -0
  559. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/foreign-content.mjs +259 -0
  560. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/html.mjs +544 -0
  561. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/token.mjs +19 -0
  562. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/common/unicode.mjs +91 -0
  563. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/index.mjs +41 -0
  564. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/formatting-element-list.mjs +91 -0
  565. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/index.mjs +2492 -0
  566. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/parser/open-element-stack.mjs +292 -0
  567. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/serializer/index.mjs +111 -0
  568. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/index.mjs +2067 -0
  569. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tokenizer/preprocessor.mjs +154 -0
  570. package/bundles/sui-ledger/dist/node_modules/.pnpm/parse5@7.3.0/node_modules/parse5/dist/tree-adapters/default.mjs +164 -0
  571. package/bundles/sui-ledger/dist/node_modules/.pnpm/quick-lru@5.1.1/node_modules/quick-lru/index.mjs +77 -0
  572. package/bundles/sui-ledger/dist/node_modules/.pnpm/resolve-alpn@1.2.1/node_modules/resolve-alpn/index.mjs +47 -0
  573. package/bundles/sui-ledger/dist/node_modules/.pnpm/responselike@4.0.2/node_modules/responselike/index.mjs +32 -0
  574. package/bundles/sui-ledger/dist/node_modules/.pnpm/safer-buffer@2.1.2/node_modules/safer-buffer/safer.mjs +45 -0
  575. package/bundles/sui-ledger/dist/node_modules/.pnpm/tldts@7.4.18/node_modules/tldts/dist/cjs/index.mjs +22542 -0
  576. package/bundles/sui-ledger/dist/node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.mjs +1761 -0
  577. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/index.mjs +221 -0
  578. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/abort-signal.mjs +44 -0
  579. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-connect.mjs +85 -0
  580. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-pipeline.mjs +174 -0
  581. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-request.mjs +155 -0
  582. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-stream.mjs +136 -0
  583. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/api-upgrade.mjs +88 -0
  584. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/index.mjs +17 -0
  585. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/api/readable.mjs +418 -0
  586. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/memory-cache-store.mjs +190 -0
  587. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/cache/sqlite-cache-store.mjs +324 -0
  588. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/connect.mjs +115 -0
  589. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/constants.mjs +134 -0
  590. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/diagnostics.mjs +114 -0
  591. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/errors.mjs +412 -0
  592. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/request.mjs +282 -0
  593. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-client.mjs +288 -0
  594. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/socks5-utils.mjs +166 -0
  595. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/symbols.mjs +80 -0
  596. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/tree.mjs +124 -0
  597. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/core/util.mjs +940 -0
  598. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/agent.mjs +119 -0
  599. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/balanced-pool.mjs +129 -0
  600. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h1.mjs +1091 -0
  601. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client-h2.mjs +588 -0
  602. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/client.mjs +385 -0
  603. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher-base.mjs +121 -0
  604. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/dispatcher.mjs +35 -0
  605. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/env-http-proxy-agent.mjs +105 -0
  606. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/fixed-queue.mjs +75 -0
  607. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/h2c-client.mjs +31 -0
  608. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool-base.mjs +155 -0
  609. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/pool.mjs +76 -0
  610. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/proxy-agent.mjs +233 -0
  611. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/retry-agent.mjs +37 -0
  612. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/round-robin-pool.mjs +94 -0
  613. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/dispatcher/socks5-proxy-agent.mjs +194 -0
  614. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/encoding/index.mjs +18 -0
  615. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/global.mjs +48 -0
  616. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-handler.mjs +457 -0
  617. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/cache-revalidation-handler.mjs +82 -0
  618. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/decorator-handler.mjs +57 -0
  619. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/deduplication-handler.mjs +341 -0
  620. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/redirect-handler.mjs +131 -0
  621. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/retry-handler.mjs +332 -0
  622. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/unwrap-handler.mjs +88 -0
  623. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/handler/wrap-handler.mjs +68 -0
  624. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/cache.mjs +350 -0
  625. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/decompress.mjs +416 -0
  626. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/deduplicate.mjs +69 -0
  627. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dns.mjs +323 -0
  628. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/dump.mjs +65 -0
  629. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/redirect.mjs +20 -0
  630. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/response-error.mjs +73 -0
  631. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/interceptor/retry.mjs +25 -0
  632. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/constants.mjs +590 -0
  633. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp-wasm.mjs +13 -0
  634. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/llhttp_simd-wasm.mjs +13 -0
  635. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/llhttp/utils.mjs +16 -0
  636. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-agent.mjs +154 -0
  637. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-call-history.mjs +159 -0
  638. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-client.mjs +59 -0
  639. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-errors.mjs +28 -0
  640. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-interceptor.mjs +150 -0
  641. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-pool.mjs +59 -0
  642. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-symbols.mjs +37 -0
  643. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/mock-utils.mjs +302 -0
  644. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/pending-interceptors-formatter.mjs +38 -0
  645. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-agent.mjs +268 -0
  646. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-recorder.mjs +424 -0
  647. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/mock/snapshot-utils.mjs +121 -0
  648. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/cache.mjs +440 -0
  649. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/date.mjs +332 -0
  650. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/promise.mjs +31 -0
  651. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/runtime-features.mjs +101 -0
  652. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/stats.mjs +31 -0
  653. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/util/timers.mjs +341 -0
  654. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cache.mjs +462 -0
  655. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/cachestorage.mjs +103 -0
  656. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cache/util.mjs +39 -0
  657. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/constants.mjs +11 -0
  658. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/index.mjs +169 -0
  659. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/parse.mjs +108 -0
  660. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/cookies/util.mjs +239 -0
  661. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource-stream.mjs +317 -0
  662. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/eventsource.mjs +345 -0
  663. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/eventsource/util.mjs +29 -0
  664. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/body.mjs +271 -0
  665. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/constants.mjs +224 -0
  666. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/data-url.mjs +247 -0
  667. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata-parser.mjs +255 -0
  668. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/formdata.mjs +153 -0
  669. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/global.mjs +34 -0
  670. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/headers.mjs +400 -0
  671. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/index.mjs +776 -0
  672. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/request.mjs +602 -0
  673. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/response.mjs +358 -0
  674. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/fetch/util.mjs +795 -0
  675. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/infra/index.mjs +154 -0
  676. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.mjs +170 -0
  677. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/webidl/index.mjs +505 -0
  678. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/connection.mjs +166 -0
  679. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/constants.mjs +47 -0
  680. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/events.mjs +268 -0
  681. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/frame.mjs +105 -0
  682. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/permessage-deflate.mjs +85 -0
  683. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/receiver.mjs +323 -0
  684. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/sender.mjs +90 -0
  685. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketerror.mjs +78 -0
  686. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/stream/websocketstream.mjs +270 -0
  687. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/util.mjs +212 -0
  688. package/bundles/sui-ledger/dist/node_modules/.pnpm/undici@7.30.0/node_modules/undici/lib/web/websocket/websocket.mjs +432 -0
  689. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/labels-to-names.mjs +224 -0
  690. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/supported-names.mjs +45 -0
  691. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-encoding@3.1.1/node_modules/whatwg-encoding/lib/whatwg-encoding.mjs +40 -0
  692. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type-parameters.mjs +54 -0
  693. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/mime-type.mjs +92 -0
  694. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/parser.mjs +62 -0
  695. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/serializer.mjs +24 -0
  696. package/bundles/sui-ledger/dist/node_modules/.pnpm/whatwg-mimetype@4.0.0/node_modules/whatwg-mimetype/lib/utils.mjs +47 -0
  697. package/bundles/sui-ledger/dist/node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/dist/cpexcel.mjs +3348 -0
  698. package/bundles/sui-ledger/dist/node_modules/.pnpm/xlsx@0.18.5/node_modules/xlsx/xlsx.mjs +26473 -0
  699. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/errors.mjs +26 -0
  700. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/iso.mjs +35 -0
  701. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/parse.mjs +17 -0
  702. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/classic/schemas.mjs +800 -0
  703. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.mjs +508 -0
  704. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.mjs +366 -0
  705. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.mjs +60 -0
  706. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/doc.mjs +32 -0
  707. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.mjs +63 -0
  708. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.mjs +253 -0
  709. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.mjs +118 -0
  710. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.mjs +65 -0
  711. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.mjs +48 -0
  712. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.mjs +1235 -0
  713. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.mjs +297 -0
  714. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.mjs +316 -0
  715. package/bundles/sui-ledger/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.mjs +8 -0
  716. package/bundles/sui-ledger/dist/packages/data-maintenance/src/archive.mjs +143 -0
  717. package/bundles/sui-ledger/dist/packages/data-maintenance/src/contracts.mjs +17 -0
  718. package/bundles/sui-ledger/dist/packages/data-maintenance/src/files.mjs +158 -0
  719. package/bundles/sui-ledger/dist/packages/data-maintenance/src/index.mjs +494 -0
  720. package/bundles/sui-ledger/dist/packages/data-maintenance/src/lease.mjs +53 -0
  721. package/bundles/sui-ledger/dist/packages/data-maintenance/src/migration-backup.mjs +57 -0
  722. package/bundles/sui-ledger/dist/packages/data-maintenance/src/paths.mjs +15 -0
  723. package/bundles/sui-ledger/dist/packages/data-maintenance/src/runtime.mjs +132 -0
  724. package/bundles/sui-ledger/dist/packages/feidee/src/client.mjs +635 -0
  725. package/bundles/sui-ledger/dist/packages/feidee/src/hash.mjs +10 -0
  726. package/bundles/sui-ledger/dist/packages/feidee/src/index.mjs +8 -0
  727. package/bundles/sui-ledger/dist/packages/feidee/src/mutation-gateway.mjs +165 -0
  728. package/bundles/sui-ledger/dist/packages/feidee/src/parsers.mjs +634 -0
  729. package/bundles/sui-ledger/dist/packages/feidee/src/transaction-text.mjs +39 -0
  730. package/bundles/sui-ledger/dist/packages/feidee/src/write-contract.mjs +273 -0
  731. package/bundles/sui-ledger/dist/packages/finance/src/date-range.mjs +74 -0
  732. package/bundles/sui-ledger/dist/packages/finance/src/domain.mjs +18 -0
  733. package/bundles/sui-ledger/dist/packages/finance/src/errors.mjs +221 -0
  734. package/bundles/sui-ledger/dist/packages/finance/src/index.mjs +17 -0
  735. package/bundles/sui-ledger/dist/packages/finance/src/json-schema.mjs +212 -0
  736. package/bundles/sui-ledger/dist/packages/finance/src/metadata-query.mjs +32 -0
  737. package/bundles/sui-ledger/dist/packages/finance/src/money.mjs +39 -0
  738. package/bundles/sui-ledger/dist/packages/finance/src/public-error.mjs +10 -0
  739. package/bundles/sui-ledger/dist/packages/finance/src/sync/progress.mjs +27 -0
  740. package/bundles/sui-ledger/dist/packages/finance/src/sync/service.mjs +282 -0
  741. package/bundles/sui-ledger/dist/packages/finance/src/transactions/audit.mjs +104 -0
  742. package/bundles/sui-ledger/dist/packages/finance/src/transactions/canary.mjs +85 -0
  743. package/bundles/sui-ledger/dist/packages/finance/src/transactions/compare.mjs +76 -0
  744. package/bundles/sui-ledger/dist/packages/finance/src/transactions/contracts.mjs +83 -0
  745. package/bundles/sui-ledger/dist/packages/finance/src/transactions/memo-policy.mjs +79 -0
  746. package/bundles/sui-ledger/dist/packages/finance/src/transactions/mutation.mjs +656 -0
  747. package/bundles/sui-ledger/dist/packages/finance/src/transactions/query.mjs +59 -0
  748. package/bundles/sui-ledger/dist/packages/finance/src/transactions/statistics.mjs +67 -0
  749. package/bundles/sui-ledger/dist/packages/finance/src/write-policy.mjs +4 -0
  750. package/bundles/sui-ledger/dist/packages/finance-module/src/balance-preview.mjs +119 -0
  751. package/bundles/sui-ledger/dist/packages/finance-module/src/capabilities.mjs +1306 -0
  752. package/bundles/sui-ledger/dist/packages/finance-module/src/checkpoint-review.mjs +75 -0
  753. package/bundles/sui-ledger/dist/packages/finance-module/src/commit-failure.mjs +161 -0
  754. package/bundles/sui-ledger/dist/packages/finance-module/src/commit-recovery.mjs +41 -0
  755. package/bundles/sui-ledger/dist/packages/finance-module/src/contracts.mjs +13 -0
  756. package/bundles/sui-ledger/dist/packages/finance-module/src/data-version.mjs +8 -0
  757. package/bundles/sui-ledger/dist/packages/finance-module/src/database.mjs +1292 -0
  758. package/bundles/sui-ledger/dist/packages/finance-module/src/draft-entries.mjs +216 -0
  759. package/bundles/sui-ledger/dist/packages/finance-module/src/draft-receipts.mjs +16 -0
  760. package/bundles/sui-ledger/dist/packages/finance-module/src/finance-guidance.mjs +23 -0
  761. package/bundles/sui-ledger/dist/packages/finance-module/src/historical-task-archives.mjs +24 -0
  762. package/bundles/sui-ledger/dist/packages/finance-module/src/index.mjs +17 -0
  763. package/bundles/sui-ledger/dist/packages/finance-module/src/interactions.mjs +229 -0
  764. package/bundles/sui-ledger/dist/packages/finance-module/src/model-pages.mjs +61 -0
  765. package/bundles/sui-ledger/dist/packages/finance-module/src/model-views.mjs +206 -0
  766. package/bundles/sui-ledger/dist/packages/finance-module/src/node.mjs +76 -0
  767. package/bundles/sui-ledger/dist/packages/finance-module/src/personal-preferences.mjs +103 -0
  768. package/bundles/sui-ledger/dist/packages/finance-module/src/route-contracts.mjs +11 -0
  769. package/bundles/sui-ledger/dist/packages/finance-module/src/routes.mjs +427 -0
  770. package/bundles/sui-ledger/dist/packages/finance-module/src/schema-compatibility.mjs +142 -0
  771. package/bundles/sui-ledger/dist/packages/finance-module/src/sdk-adapter.mjs +100 -0
  772. package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-domain.mjs +207 -0
  773. package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-routes.mjs +91 -0
  774. package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-store.mjs +119 -0
  775. package/bundles/sui-ledger/dist/packages/finance-module/src/service-record-tools.mjs +283 -0
  776. package/bundles/sui-ledger/dist/packages/finance-module/src/service-records.mjs +626 -0
  777. package/bundles/sui-ledger/dist/packages/finance-module/src/service.mjs +2525 -0
  778. package/bundles/sui-ledger/dist/packages/finance-module/src/shared-draft-migration.mjs +39 -0
  779. package/bundles/sui-ledger/dist/packages/finance-module/src/single-draft-migration.mjs +70 -0
  780. package/bundles/sui-ledger/dist/packages/finance-module/src/source-reader.mjs +354 -0
  781. package/bundles/sui-ledger/dist/packages/finance-module/src/storage.mjs +282 -0
  782. package/bundles/sui-ledger/dist/packages/finance-module/src/tool-contracts.mjs +42 -0
  783. package/bundles/sui-ledger/dist/packages/finance-module/src/web-contracts.mjs +74 -0
  784. package/bundles/sui-ledger/dist/packages/interaction/src/registry.mjs +36 -0
  785. package/bundles/sui-ledger/dist/packages/interaction/src/service.mjs +424 -0
  786. package/bundles/sui-ledger/dist/packages/local-store/src/checkpoint-backup.mjs +40 -0
  787. package/bundles/sui-ledger/dist/packages/local-store/src/checkpoint-history.mjs +77 -0
  788. package/bundles/sui-ledger/dist/packages/local-store/src/database.mjs +1523 -0
  789. package/bundles/sui-ledger/dist/packages/local-store/src/exchange-rates.mjs +169 -0
  790. package/bundles/sui-ledger/dist/packages/local-store/src/node.mjs +71 -0
  791. package/bundles/sui-ledger/dist/packages/local-store/src/readonly-node.mjs +486 -0
  792. package/bundles/sui-ledger/dist/packages/sdk/src/account-snapshot-service.mjs +582 -0
  793. package/bundles/sui-ledger/dist/packages/sdk/src/cache-analysis.mjs +597 -0
  794. package/bundles/sui-ledger/dist/packages/sdk/src/config.mjs +64 -0
  795. package/bundles/sui-ledger/dist/packages/sdk/src/credential-identity.mjs +7 -0
  796. package/bundles/sui-ledger/dist/packages/sdk/src/credentials.mjs +86 -0
  797. package/bundles/sui-ledger/dist/packages/sdk/src/exchange-rate-service.mjs +253 -0
  798. package/bundles/sui-ledger/dist/packages/sdk/src/finance-cookie-cache.mjs +93 -0
  799. package/bundles/sui-ledger/dist/packages/sdk/src/finance-session.mjs +215 -0
  800. package/bundles/sui-ledger/dist/packages/sdk/src/frankfurter.mjs +125 -0
  801. package/bundles/sui-ledger/dist/packages/sdk/src/ledger-money.mjs +183 -0
  802. package/bundles/sui-ledger/dist/packages/sdk/src/node-readonly.mjs +381 -0
  803. package/bundles/sui-ledger/dist/packages/sdk/src/node.mjs +53 -0
  804. package/bundles/sui-ledger/dist/packages/sdk/src/probe.mjs +65 -0
  805. package/bundles/sui-ledger/dist/packages/sdk/src/resource-lease-node.mjs +27 -0
  806. package/bundles/sui-ledger/dist/packages/sdk/src/resource-lease-owner-node.mjs +68 -0
  807. package/bundles/sui-ledger/dist/packages/sdk/src/resource-lease.mjs +143 -0
  808. package/bundles/sui-ledger/dist/packages/sdk/src/runtime.mjs +643 -0
  809. package/bundles/sui-ledger/dist/preferences-context.mjs +21 -0
  810. package/bundles/sui-ledger/dist/remote-write-policy.mjs +51 -0
  811. package/bundles/sui-ledger/dist/routes/finance-api.mjs +380 -0
  812. package/bundles/sui-ledger/dist/session/attachment-ownership.mjs +53 -0
  813. package/bundles/sui-ledger/dist/session/call-context.mjs +14 -0
  814. package/bundles/sui-ledger/dist/session/source-ports.mjs +74 -0
  815. package/bundles/sui-ledger/dist/storage/business-runtime.mjs +116 -0
  816. package/bundles/sui-ledger/dist/storage/maintenance-http.mjs +159 -0
  817. package/bundles/sui-ledger/dist/storage/paths.mjs +15 -0
  818. package/bundles/sui-ledger/dist/style.css +15416 -0
  819. package/bundles/sui-ledger/icon.svg +1 -0
  820. package/bundles/sui-ledger/locale/en.json +6 -0
  821. package/bundles/sui-ledger/locale/zh-CN.json +6 -0
  822. package/cordis.patch.yml +4 -0
  823. package/package.json +111 -3
@@ -0,0 +1,1761 @@
1
+ import { require_cjs } from "../../../../tldts@7.4.18/node_modules/tldts/dist/cjs/index.mjs";
2
+ //#region ../../node_modules/.pnpm/tough-cookie@6.0.0/node_modules/tough-cookie/dist/index.js
3
+ var import_cjs = require_cjs();
4
+ function pathMatch(reqPath, cookiePath) {
5
+ if (cookiePath === reqPath) return true;
6
+ if (reqPath.indexOf(cookiePath) === 0) {
7
+ if (cookiePath[cookiePath.length - 1] === "/") return true;
8
+ if (reqPath.startsWith(cookiePath) && reqPath[cookiePath.length] === "/") return true;
9
+ }
10
+ return false;
11
+ }
12
+ var SPECIAL_USE_DOMAINS = [
13
+ "local",
14
+ "example",
15
+ "invalid",
16
+ "localhost",
17
+ "test"
18
+ ];
19
+ var SPECIAL_TREATMENT_DOMAINS = ["localhost", "invalid"];
20
+ var defaultGetPublicSuffixOptions = {
21
+ allowSpecialUseDomain: false,
22
+ ignoreError: false
23
+ };
24
+ function getPublicSuffix(domain, options = {}) {
25
+ options = {
26
+ ...defaultGetPublicSuffixOptions,
27
+ ...options
28
+ };
29
+ const domainParts = domain.split(".");
30
+ const topLevelDomain = domainParts[domainParts.length - 1];
31
+ const allowSpecialUseDomain = !!options.allowSpecialUseDomain;
32
+ const ignoreError = !!options.ignoreError;
33
+ if (allowSpecialUseDomain && topLevelDomain !== void 0 && SPECIAL_USE_DOMAINS.includes(topLevelDomain)) {
34
+ if (domainParts.length > 1) return `${domainParts[domainParts.length - 2]}.${topLevelDomain}`;
35
+ else if (SPECIAL_TREATMENT_DOMAINS.includes(topLevelDomain)) return topLevelDomain;
36
+ }
37
+ if (!ignoreError && topLevelDomain !== void 0 && SPECIAL_USE_DOMAINS.includes(topLevelDomain)) throw new Error(`Cookie has domain set to the public suffix "${topLevelDomain}" which is a special use domain. To allow this, configure your CookieJar with {allowSpecialUseDomain: true, rejectPublicSuffixes: false}.`);
38
+ const publicSuffix = (0, import_cjs.getDomain)(domain, {
39
+ allowIcannDomains: true,
40
+ allowPrivateDomains: true
41
+ });
42
+ if (publicSuffix) return publicSuffix;
43
+ }
44
+ function permuteDomain(domain, allowSpecialUseDomain) {
45
+ const pubSuf = getPublicSuffix(domain, { allowSpecialUseDomain });
46
+ if (!pubSuf) return;
47
+ if (pubSuf == domain) return [domain];
48
+ if (domain.slice(-1) == ".") domain = domain.slice(0, -1);
49
+ const parts = domain.slice(0, -(pubSuf.length + 1)).split(".").reverse();
50
+ let cur = pubSuf;
51
+ const permutations = [cur];
52
+ while (parts.length) {
53
+ cur = `${parts.shift()}.${cur}`;
54
+ permutations.push(cur);
55
+ }
56
+ return permutations;
57
+ }
58
+ var Store = class {
59
+ constructor() {
60
+ this.synchronous = false;
61
+ }
62
+ /**
63
+ * @internal No doc because this is an overload that supports the implementation
64
+ */
65
+ findCookie(_domain, _path, _key, _callback) {
66
+ throw new Error("findCookie is not implemented");
67
+ }
68
+ /**
69
+ * @internal No doc because this is an overload that supports the implementation
70
+ */
71
+ findCookies(_domain, _path, _allowSpecialUseDomain = false, _callback) {
72
+ throw new Error("findCookies is not implemented");
73
+ }
74
+ /**
75
+ * @internal No doc because this is an overload that supports the implementation
76
+ */
77
+ putCookie(_cookie, _callback) {
78
+ throw new Error("putCookie is not implemented");
79
+ }
80
+ /**
81
+ * @internal No doc because this is an overload that supports the implementation
82
+ */
83
+ updateCookie(_oldCookie, _newCookie, _callback) {
84
+ throw new Error("updateCookie is not implemented");
85
+ }
86
+ /**
87
+ * @internal No doc because this is an overload that supports the implementation
88
+ */
89
+ removeCookie(_domain, _path, _key, _callback) {
90
+ throw new Error("removeCookie is not implemented");
91
+ }
92
+ /**
93
+ * @internal No doc because this is an overload that supports the implementation
94
+ */
95
+ removeCookies(_domain, _path, _callback) {
96
+ throw new Error("removeCookies is not implemented");
97
+ }
98
+ /**
99
+ * @internal No doc because this is an overload that supports the implementation
100
+ */
101
+ removeAllCookies(_callback) {
102
+ throw new Error("removeAllCookies is not implemented");
103
+ }
104
+ /**
105
+ * @internal No doc because this is an overload that supports the implementation
106
+ */
107
+ getAllCookies(_callback) {
108
+ throw new Error("getAllCookies is not implemented (therefore jar cannot be serialized)");
109
+ }
110
+ };
111
+ var objectToString = (obj) => Object.prototype.toString.call(obj);
112
+ var safeArrayToString = (arr, seenArrays) => {
113
+ if (typeof arr.join !== "function") return objectToString(arr);
114
+ seenArrays.add(arr);
115
+ return arr.map((val) => val === null || val === void 0 || seenArrays.has(val) ? "" : safeToStringImpl(val, seenArrays)).join();
116
+ };
117
+ var safeToStringImpl = (val, seenArrays = /* @__PURE__ */ new WeakSet()) => {
118
+ if (typeof val !== "object" || val === null) return String(val);
119
+ else if (typeof val.toString === "function") return Array.isArray(val) ? safeArrayToString(val, seenArrays) : String(val);
120
+ else return objectToString(val);
121
+ };
122
+ var safeToString = (val) => safeToStringImpl(val);
123
+ function createPromiseCallback(cb) {
124
+ let callback;
125
+ let resolve;
126
+ let reject;
127
+ const promise = new Promise((_resolve, _reject) => {
128
+ resolve = _resolve;
129
+ reject = _reject;
130
+ });
131
+ if (typeof cb === "function") callback = (err, result) => {
132
+ try {
133
+ if (err) cb(err);
134
+ else cb(null, result);
135
+ } catch (e) {
136
+ reject(e instanceof Error ? e : /* @__PURE__ */ new Error());
137
+ }
138
+ };
139
+ else callback = (err, result) => {
140
+ try {
141
+ if (err) reject(err);
142
+ else resolve(result);
143
+ } catch (e) {
144
+ reject(e instanceof Error ? e : /* @__PURE__ */ new Error());
145
+ }
146
+ };
147
+ return {
148
+ promise,
149
+ callback,
150
+ resolve: (value) => {
151
+ callback(null, value);
152
+ return promise;
153
+ },
154
+ reject: (error) => {
155
+ callback(error);
156
+ return promise;
157
+ }
158
+ };
159
+ }
160
+ function inOperator(k, o) {
161
+ return k in o;
162
+ }
163
+ var MemoryCookieStore = class extends Store {
164
+ /**
165
+ * Create a new {@link MemoryCookieStore}.
166
+ */
167
+ constructor() {
168
+ super();
169
+ this.synchronous = true;
170
+ this.idx = /* @__PURE__ */ Object.create(null);
171
+ }
172
+ /**
173
+ * @internal No doc because this is an overload that supports the implementation
174
+ */
175
+ findCookie(domain, path, key, callback) {
176
+ const promiseCallback = createPromiseCallback(callback);
177
+ if (domain == null || path == null || key == null) return promiseCallback.resolve(void 0);
178
+ const result = this.idx[domain]?.[path]?.[key];
179
+ return promiseCallback.resolve(result);
180
+ }
181
+ /**
182
+ * @internal No doc because this is an overload that supports the implementation
183
+ */
184
+ findCookies(domain, path, allowSpecialUseDomain = false, callback) {
185
+ if (typeof allowSpecialUseDomain === "function") {
186
+ callback = allowSpecialUseDomain;
187
+ allowSpecialUseDomain = true;
188
+ }
189
+ const results = [];
190
+ const promiseCallback = createPromiseCallback(callback);
191
+ if (!domain) return promiseCallback.resolve([]);
192
+ let pathMatcher;
193
+ if (!path) pathMatcher = function matchAll(domainIndex) {
194
+ for (const curPath in domainIndex) {
195
+ const pathIndex = domainIndex[curPath];
196
+ for (const key in pathIndex) {
197
+ const value = pathIndex[key];
198
+ if (value) results.push(value);
199
+ }
200
+ }
201
+ };
202
+ else pathMatcher = function matchRFC(domainIndex) {
203
+ for (const cookiePath in domainIndex) if (pathMatch(path, cookiePath)) {
204
+ const pathIndex = domainIndex[cookiePath];
205
+ for (const key in pathIndex) {
206
+ const value = pathIndex[key];
207
+ if (value) results.push(value);
208
+ }
209
+ }
210
+ };
211
+ const domains = permuteDomain(domain, allowSpecialUseDomain) || [domain];
212
+ const idx = this.idx;
213
+ domains.forEach((curDomain) => {
214
+ const domainIndex = idx[curDomain];
215
+ if (!domainIndex) return;
216
+ pathMatcher(domainIndex);
217
+ });
218
+ return promiseCallback.resolve(results);
219
+ }
220
+ /**
221
+ * @internal No doc because this is an overload that supports the implementation
222
+ */
223
+ putCookie(cookie, callback) {
224
+ const promiseCallback = createPromiseCallback(callback);
225
+ const { domain, path, key } = cookie;
226
+ if (domain == null || path == null || key == null) return promiseCallback.resolve(void 0);
227
+ const domainEntry = this.idx[domain] ?? /* @__PURE__ */ Object.create(null);
228
+ this.idx[domain] = domainEntry;
229
+ const pathEntry = domainEntry[path] ?? /* @__PURE__ */ Object.create(null);
230
+ domainEntry[path] = pathEntry;
231
+ pathEntry[key] = cookie;
232
+ return promiseCallback.resolve(void 0);
233
+ }
234
+ /**
235
+ * @internal No doc because this is an overload that supports the implementation
236
+ */
237
+ updateCookie(_oldCookie, newCookie, callback) {
238
+ if (callback) this.putCookie(newCookie, callback);
239
+ else return this.putCookie(newCookie);
240
+ }
241
+ /**
242
+ * @internal No doc because this is an overload that supports the implementation
243
+ */
244
+ removeCookie(domain, path, key, callback) {
245
+ const promiseCallback = createPromiseCallback(callback);
246
+ delete this.idx[domain]?.[path]?.[key];
247
+ return promiseCallback.resolve(void 0);
248
+ }
249
+ /**
250
+ * @internal No doc because this is an overload that supports the implementation
251
+ */
252
+ removeCookies(domain, path, callback) {
253
+ const promiseCallback = createPromiseCallback(callback);
254
+ const domainEntry = this.idx[domain];
255
+ if (domainEntry) {
256
+ if (path) delete domainEntry[path];
257
+ else delete this.idx[domain];
258
+ }
259
+ return promiseCallback.resolve(void 0);
260
+ }
261
+ /**
262
+ * @internal No doc because this is an overload that supports the implementation
263
+ */
264
+ removeAllCookies(callback) {
265
+ const promiseCallback = createPromiseCallback(callback);
266
+ this.idx = /* @__PURE__ */ Object.create(null);
267
+ return promiseCallback.resolve(void 0);
268
+ }
269
+ /**
270
+ * @internal No doc because this is an overload that supports the implementation
271
+ */
272
+ getAllCookies(callback) {
273
+ const promiseCallback = createPromiseCallback(callback);
274
+ const cookies = [];
275
+ const idx = this.idx;
276
+ Object.keys(idx).forEach((domain) => {
277
+ const domainEntry = idx[domain] ?? {};
278
+ Object.keys(domainEntry).forEach((path) => {
279
+ const pathEntry = domainEntry[path] ?? {};
280
+ Object.keys(pathEntry).forEach((key) => {
281
+ const keyEntry = pathEntry[key];
282
+ if (keyEntry != null) cookies.push(keyEntry);
283
+ });
284
+ });
285
+ });
286
+ cookies.sort((a, b) => {
287
+ return (a.creationIndex || 0) - (b.creationIndex || 0);
288
+ });
289
+ return promiseCallback.resolve(cookies);
290
+ }
291
+ };
292
+ function isNonEmptyString(data) {
293
+ return isString(data) && data !== "";
294
+ }
295
+ function isEmptyString(data) {
296
+ return data === "" || data instanceof String && data.toString() === "";
297
+ }
298
+ function isString(data) {
299
+ return typeof data === "string" || data instanceof String;
300
+ }
301
+ function isObject(data) {
302
+ return objectToString(data) === "[object Object]";
303
+ }
304
+ function validate(bool, cbOrMessage, message) {
305
+ if (bool) return;
306
+ const cb = typeof cbOrMessage === "function" ? cbOrMessage : void 0;
307
+ let options = typeof cbOrMessage === "function" ? message : cbOrMessage;
308
+ if (!isObject(options)) options = "[object Object]";
309
+ const err = new ParameterError(safeToString(options));
310
+ if (cb) cb(err);
311
+ else throw err;
312
+ }
313
+ var ParameterError = class extends Error {};
314
+ var version = "6.0.0";
315
+ var PrefixSecurityEnum = {
316
+ SILENT: "silent",
317
+ STRICT: "strict",
318
+ DISABLED: "unsafe-disabled"
319
+ };
320
+ Object.freeze(PrefixSecurityEnum);
321
+ var IP_V6_REGEX = `
322
+ \\[?(?:
323
+ (?:[a-fA-F\\d]{1,4}:){7}(?:[a-fA-F\\d]{1,4}|:)|
324
+ (?:[a-fA-F\\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|:[a-fA-F\\d]{1,4}|:)|
325
+ (?:[a-fA-F\\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,2}|:)|
326
+ (?:[a-fA-F\\d]{1,4}:){4}(?:(?::[a-fA-F\\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,3}|:)|
327
+ (?:[a-fA-F\\d]{1,4}:){3}(?:(?::[a-fA-F\\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,4}|:)|
328
+ (?:[a-fA-F\\d]{1,4}:){2}(?:(?::[a-fA-F\\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,5}|:)|
329
+ (?:[a-fA-F\\d]{1,4}:){1}(?:(?::[a-fA-F\\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,6}|:)|
330
+ (?::(?:(?::[a-fA-F\\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?::[a-fA-F\\d]{1,4}){1,7}|:))
331
+ )(?:%[0-9a-zA-Z]{1,})?\\]?
332
+ `.replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim();
333
+ var IP_V6_REGEX_OBJECT = new RegExp(`^${IP_V6_REGEX}$`);
334
+ var IP_V4_REGEX_OBJECT = new RegExp(`^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$`);
335
+ function domainToASCII(domain) {
336
+ return new URL(`http://${domain}`).hostname;
337
+ }
338
+ function canonicalDomain(domainName) {
339
+ if (domainName == null) return;
340
+ let str = domainName.trim().replace(/^\./, "");
341
+ if (IP_V6_REGEX_OBJECT.test(str)) {
342
+ if (!str.startsWith("[")) str = "[" + str;
343
+ if (!str.endsWith("]")) str = str + "]";
344
+ return domainToASCII(str).slice(1, -1);
345
+ }
346
+ if (/[^\u0001-\u007f]/.test(str)) return domainToASCII(str);
347
+ return str.toLowerCase();
348
+ }
349
+ function formatDate(date) {
350
+ return date.toUTCString();
351
+ }
352
+ var DATE_DELIM = /[\x09\x20-\x2F\x3B-\x40\x5B-\x60\x7B-\x7E]/;
353
+ var MONTH_TO_NUM = {
354
+ jan: 0,
355
+ feb: 1,
356
+ mar: 2,
357
+ apr: 3,
358
+ may: 4,
359
+ jun: 5,
360
+ jul: 6,
361
+ aug: 7,
362
+ sep: 8,
363
+ oct: 9,
364
+ nov: 10,
365
+ dec: 11
366
+ };
367
+ function parseDigits(token, minDigits, maxDigits, trailingOK) {
368
+ let count = 0;
369
+ while (count < token.length) {
370
+ const c = token.charCodeAt(count);
371
+ if (c <= 47 || c >= 58) break;
372
+ count++;
373
+ }
374
+ if (count < minDigits || count > maxDigits) return;
375
+ if (!trailingOK && count != token.length) return;
376
+ return parseInt(token.slice(0, count), 10);
377
+ }
378
+ function parseTime(token) {
379
+ const parts = token.split(":");
380
+ const result = [
381
+ 0,
382
+ 0,
383
+ 0
384
+ ];
385
+ if (parts.length !== 3) return;
386
+ for (let i = 0; i < 3; i++) {
387
+ const trailingOK = i == 2;
388
+ const numPart = parts[i];
389
+ if (numPart === void 0) return;
390
+ const num = parseDigits(numPart, 1, 2, trailingOK);
391
+ if (num === void 0) return;
392
+ result[i] = num;
393
+ }
394
+ return result;
395
+ }
396
+ function parseMonth(token) {
397
+ token = String(token).slice(0, 3).toLowerCase();
398
+ switch (token) {
399
+ case "jan": return MONTH_TO_NUM.jan;
400
+ case "feb": return MONTH_TO_NUM.feb;
401
+ case "mar": return MONTH_TO_NUM.mar;
402
+ case "apr": return MONTH_TO_NUM.apr;
403
+ case "may": return MONTH_TO_NUM.may;
404
+ case "jun": return MONTH_TO_NUM.jun;
405
+ case "jul": return MONTH_TO_NUM.jul;
406
+ case "aug": return MONTH_TO_NUM.aug;
407
+ case "sep": return MONTH_TO_NUM.sep;
408
+ case "oct": return MONTH_TO_NUM.oct;
409
+ case "nov": return MONTH_TO_NUM.nov;
410
+ case "dec": return MONTH_TO_NUM.dec;
411
+ default: return;
412
+ }
413
+ }
414
+ function parseDate(cookieDate) {
415
+ if (!cookieDate) return;
416
+ const tokens = cookieDate.split(DATE_DELIM);
417
+ let hour;
418
+ let minute;
419
+ let second;
420
+ let dayOfMonth;
421
+ let month;
422
+ let year;
423
+ for (let i = 0; i < tokens.length; i++) {
424
+ const token = (tokens[i] ?? "").trim();
425
+ if (!token.length) continue;
426
+ if (second === void 0) {
427
+ const result = parseTime(token);
428
+ if (result) {
429
+ hour = result[0];
430
+ minute = result[1];
431
+ second = result[2];
432
+ continue;
433
+ }
434
+ }
435
+ if (dayOfMonth === void 0) {
436
+ const result = parseDigits(token, 1, 2, true);
437
+ if (result !== void 0) {
438
+ dayOfMonth = result;
439
+ continue;
440
+ }
441
+ }
442
+ if (month === void 0) {
443
+ const result = parseMonth(token);
444
+ if (result !== void 0) {
445
+ month = result;
446
+ continue;
447
+ }
448
+ }
449
+ if (year === void 0) {
450
+ const result = parseDigits(token, 2, 4, true);
451
+ if (result !== void 0) {
452
+ year = result;
453
+ if (year >= 70 && year <= 99) year += 1900;
454
+ else if (year >= 0 && year <= 69) year += 2e3;
455
+ }
456
+ }
457
+ }
458
+ if (dayOfMonth === void 0 || month === void 0 || year === void 0 || hour === void 0 || minute === void 0 || second === void 0 || dayOfMonth < 1 || dayOfMonth > 31 || year < 1601 || hour > 23 || minute > 59 || second > 59) return;
459
+ return new Date(Date.UTC(year, month, dayOfMonth, hour, minute, second));
460
+ }
461
+ var COOKIE_OCTETS = /^[\x21\x23-\x2B\x2D-\x3A\x3C-\x5B\x5D-\x7E]+$/;
462
+ var PATH_VALUE = /[\x20-\x3A\x3C-\x7E]+/;
463
+ var CONTROL_CHARS = /[\x00-\x1F]/;
464
+ var TERMINATORS = [
465
+ "\n",
466
+ "\r",
467
+ "\0"
468
+ ];
469
+ function trimTerminator(str) {
470
+ if (isEmptyString(str)) return str;
471
+ for (let t = 0; t < TERMINATORS.length; t++) {
472
+ const terminator = TERMINATORS[t];
473
+ const terminatorIdx = terminator ? str.indexOf(terminator) : -1;
474
+ if (terminatorIdx !== -1) str = str.slice(0, terminatorIdx);
475
+ }
476
+ return str;
477
+ }
478
+ function parseCookiePair(cookiePair, looseMode) {
479
+ cookiePair = trimTerminator(cookiePair);
480
+ let firstEq = cookiePair.indexOf("=");
481
+ if (looseMode) {
482
+ if (firstEq === 0) {
483
+ cookiePair = cookiePair.substring(1);
484
+ firstEq = cookiePair.indexOf("=");
485
+ }
486
+ } else if (firstEq <= 0) return;
487
+ let cookieName, cookieValue;
488
+ if (firstEq <= 0) {
489
+ cookieName = "";
490
+ cookieValue = cookiePair.trim();
491
+ } else {
492
+ cookieName = cookiePair.slice(0, firstEq).trim();
493
+ cookieValue = cookiePair.slice(firstEq + 1).trim();
494
+ }
495
+ if (CONTROL_CHARS.test(cookieName) || CONTROL_CHARS.test(cookieValue)) return;
496
+ const c = new Cookie();
497
+ c.key = cookieName;
498
+ c.value = cookieValue;
499
+ return c;
500
+ }
501
+ function parse(str, options) {
502
+ if (isEmptyString(str) || !isString(str)) return;
503
+ str = str.trim();
504
+ const firstSemi = str.indexOf(";");
505
+ const c = parseCookiePair(firstSemi === -1 ? str : str.slice(0, firstSemi), options?.loose ?? false);
506
+ if (!c) return;
507
+ if (firstSemi === -1) return c;
508
+ const unparsed = str.slice(firstSemi + 1).trim();
509
+ if (unparsed.length === 0) return c;
510
+ const cookie_avs = unparsed.split(";");
511
+ while (cookie_avs.length) {
512
+ const av = (cookie_avs.shift() ?? "").trim();
513
+ if (av.length === 0) continue;
514
+ const av_sep = av.indexOf("=");
515
+ let av_key, av_value;
516
+ if (av_sep === -1) {
517
+ av_key = av;
518
+ av_value = null;
519
+ } else {
520
+ av_key = av.slice(0, av_sep);
521
+ av_value = av.slice(av_sep + 1);
522
+ }
523
+ av_key = av_key.trim().toLowerCase();
524
+ if (av_value) av_value = av_value.trim();
525
+ switch (av_key) {
526
+ case "expires":
527
+ if (av_value) {
528
+ const exp = parseDate(av_value);
529
+ if (exp) c.expires = exp;
530
+ }
531
+ break;
532
+ case "max-age":
533
+ if (av_value) {
534
+ if (/^-?[0-9]+$/.test(av_value)) {
535
+ const delta = parseInt(av_value, 10);
536
+ c.setMaxAge(delta);
537
+ }
538
+ }
539
+ break;
540
+ case "domain":
541
+ if (av_value) {
542
+ const domain = av_value.trim().replace(/^\./, "");
543
+ if (domain) c.domain = domain.toLowerCase();
544
+ }
545
+ break;
546
+ case "path":
547
+ c.path = av_value && av_value[0] === "/" ? av_value : null;
548
+ break;
549
+ case "secure":
550
+ c.secure = true;
551
+ break;
552
+ case "httponly":
553
+ c.httpOnly = true;
554
+ break;
555
+ case "samesite":
556
+ switch (av_value ? av_value.toLowerCase() : "") {
557
+ case "strict":
558
+ c.sameSite = "strict";
559
+ break;
560
+ case "lax":
561
+ c.sameSite = "lax";
562
+ break;
563
+ case "none":
564
+ c.sameSite = "none";
565
+ break;
566
+ default: c.sameSite = void 0;
567
+ }
568
+ break;
569
+ default:
570
+ c.extensions = c.extensions || [];
571
+ c.extensions.push(av);
572
+ }
573
+ }
574
+ return c;
575
+ }
576
+ function fromJSON(str) {
577
+ if (!str || isEmptyString(str)) return;
578
+ let obj;
579
+ if (typeof str === "string") try {
580
+ obj = JSON.parse(str);
581
+ } catch {
582
+ return;
583
+ }
584
+ else obj = str;
585
+ const c = new Cookie();
586
+ Cookie.serializableProperties.forEach((prop) => {
587
+ if (obj && typeof obj === "object" && inOperator(prop, obj)) {
588
+ const val = obj[prop];
589
+ if (val === void 0) return;
590
+ if (inOperator(prop, cookieDefaults) && val === cookieDefaults[prop]) return;
591
+ switch (prop) {
592
+ case "key":
593
+ case "value":
594
+ case "sameSite":
595
+ if (typeof val === "string") c[prop] = val;
596
+ break;
597
+ case "expires":
598
+ case "creation":
599
+ case "lastAccessed":
600
+ if (typeof val === "number" || typeof val === "string" || val instanceof Date) c[prop] = obj[prop] == "Infinity" ? "Infinity" : new Date(val);
601
+ else if (val === null) c[prop] = null;
602
+ break;
603
+ case "maxAge":
604
+ if (typeof val === "number" || val === "Infinity" || val === "-Infinity") c[prop] = val;
605
+ break;
606
+ case "domain":
607
+ case "path":
608
+ if (typeof val === "string" || val === null) c[prop] = val;
609
+ break;
610
+ case "secure":
611
+ case "httpOnly":
612
+ if (typeof val === "boolean") c[prop] = val;
613
+ break;
614
+ case "extensions":
615
+ if (Array.isArray(val) && val.every((item) => typeof item === "string")) c[prop] = val;
616
+ break;
617
+ case "hostOnly":
618
+ case "pathIsDefault": if (typeof val === "boolean" || val === null) c[prop] = val;
619
+ }
620
+ }
621
+ });
622
+ return c;
623
+ }
624
+ var cookieDefaults = {
625
+ key: "",
626
+ value: "",
627
+ expires: "Infinity",
628
+ maxAge: null,
629
+ domain: null,
630
+ path: null,
631
+ secure: false,
632
+ httpOnly: false,
633
+ extensions: null,
634
+ hostOnly: null,
635
+ pathIsDefault: null,
636
+ creation: null,
637
+ lastAccessed: null,
638
+ sameSite: void 0
639
+ };
640
+ var _Cookie = class _Cookie {
641
+ /**
642
+ * Create a new Cookie instance.
643
+ * @public
644
+ * @param options - The attributes to set on the cookie
645
+ */
646
+ constructor(options = {}) {
647
+ this.key = options.key ?? cookieDefaults.key;
648
+ this.value = options.value ?? cookieDefaults.value;
649
+ this.expires = options.expires ?? cookieDefaults.expires;
650
+ this.maxAge = options.maxAge ?? cookieDefaults.maxAge;
651
+ this.domain = options.domain ?? cookieDefaults.domain;
652
+ this.path = options.path ?? cookieDefaults.path;
653
+ this.secure = options.secure ?? cookieDefaults.secure;
654
+ this.httpOnly = options.httpOnly ?? cookieDefaults.httpOnly;
655
+ this.extensions = options.extensions ?? cookieDefaults.extensions;
656
+ this.creation = options.creation ?? cookieDefaults.creation;
657
+ this.hostOnly = options.hostOnly ?? cookieDefaults.hostOnly;
658
+ this.pathIsDefault = options.pathIsDefault ?? cookieDefaults.pathIsDefault;
659
+ this.lastAccessed = options.lastAccessed ?? cookieDefaults.lastAccessed;
660
+ this.sameSite = options.sameSite ?? cookieDefaults.sameSite;
661
+ this.creation = options.creation ?? /* @__PURE__ */ new Date();
662
+ Object.defineProperty(this, "creationIndex", {
663
+ configurable: false,
664
+ enumerable: false,
665
+ writable: true,
666
+ value: ++_Cookie.cookiesCreated
667
+ });
668
+ this.creationIndex = _Cookie.cookiesCreated;
669
+ }
670
+ [Symbol.for("nodejs.util.inspect.custom")]() {
671
+ const now = Date.now();
672
+ const hostOnly = this.hostOnly != null ? this.hostOnly.toString() : "?";
673
+ const createAge = this.creation && this.creation !== "Infinity" ? `${String(now - this.creation.getTime())}ms` : "?";
674
+ const accessAge = this.lastAccessed && this.lastAccessed !== "Infinity" ? `${String(now - this.lastAccessed.getTime())}ms` : "?";
675
+ return `Cookie="${this.toString()}; hostOnly=${hostOnly}; aAge=${accessAge}; cAge=${createAge}"`;
676
+ }
677
+ /**
678
+ * For convenience in using `JSON.stringify(cookie)`. Returns a plain-old Object that can be JSON-serialized.
679
+ *
680
+ * @remarks
681
+ * - Any `Date` properties (such as {@link Cookie.expires}, {@link Cookie.creation}, and {@link Cookie.lastAccessed}) are exported in ISO format (`Date.toISOString()`).
682
+ *
683
+ * - Custom Cookie properties are discarded. In tough-cookie 1.x, since there was no {@link Cookie.toJSON} method explicitly defined, all enumerable properties were captured.
684
+ * If you want a property to be serialized, add the property name to {@link Cookie.serializableProperties}.
685
+ */
686
+ toJSON() {
687
+ const obj = {};
688
+ for (const prop of _Cookie.serializableProperties) {
689
+ const val = this[prop];
690
+ if (val === cookieDefaults[prop]) continue;
691
+ switch (prop) {
692
+ case "key":
693
+ case "value":
694
+ case "sameSite":
695
+ if (typeof val === "string") obj[prop] = val;
696
+ break;
697
+ case "expires":
698
+ case "creation":
699
+ case "lastAccessed":
700
+ if (typeof val === "number" || typeof val === "string" || val instanceof Date) obj[prop] = val == "Infinity" ? "Infinity" : new Date(val).toISOString();
701
+ else if (val === null) obj[prop] = null;
702
+ break;
703
+ case "maxAge":
704
+ if (typeof val === "number" || val === "Infinity" || val === "-Infinity") obj[prop] = val;
705
+ break;
706
+ case "domain":
707
+ case "path":
708
+ if (typeof val === "string" || val === null) obj[prop] = val;
709
+ break;
710
+ case "secure":
711
+ case "httpOnly":
712
+ if (typeof val === "boolean") obj[prop] = val;
713
+ break;
714
+ case "extensions":
715
+ if (Array.isArray(val)) obj[prop] = val;
716
+ break;
717
+ case "hostOnly":
718
+ case "pathIsDefault": if (typeof val === "boolean" || val === null) obj[prop] = val;
719
+ }
720
+ }
721
+ return obj;
722
+ }
723
+ /**
724
+ * Does a deep clone of this cookie, implemented exactly as `Cookie.fromJSON(cookie.toJSON())`.
725
+ * @public
726
+ */
727
+ clone() {
728
+ return fromJSON(this.toJSON());
729
+ }
730
+ /**
731
+ * Validates cookie attributes for semantic correctness. Useful for "lint" checking any `Set-Cookie` headers you generate.
732
+ * For now, it returns a boolean, but eventually could return a reason string.
733
+ *
734
+ * @remarks
735
+ * Works for a few things, but is by no means comprehensive.
736
+ *
737
+ * @beta
738
+ */
739
+ validate() {
740
+ if (!this.value || !COOKIE_OCTETS.test(this.value)) return false;
741
+ if (this.expires != "Infinity" && !(this.expires instanceof Date) && !parseDate(this.expires)) return false;
742
+ if (this.maxAge != null && this.maxAge !== "Infinity" && (this.maxAge === "-Infinity" || this.maxAge <= 0)) return false;
743
+ if (this.path != null && !PATH_VALUE.test(this.path)) return false;
744
+ const cdomain = this.cdomain();
745
+ if (cdomain) {
746
+ if (cdomain.match(/\.$/)) return false;
747
+ if (getPublicSuffix(cdomain) == null) return false;
748
+ }
749
+ return true;
750
+ }
751
+ /**
752
+ * Sets the 'Expires' attribute on a cookie.
753
+ *
754
+ * @remarks
755
+ * When given a `string` value it will be parsed with {@link parseDate}. If the value can't be parsed as a cookie date
756
+ * then the 'Expires' attribute will be set to `"Infinity"`.
757
+ *
758
+ * @param exp - the new value for the 'Expires' attribute of the cookie.
759
+ */
760
+ setExpires(exp) {
761
+ if (exp instanceof Date) this.expires = exp;
762
+ else this.expires = parseDate(exp) || "Infinity";
763
+ }
764
+ /**
765
+ * Sets the 'Max-Age' attribute (in seconds) on a cookie.
766
+ *
767
+ * @remarks
768
+ * Coerces `-Infinity` to `"-Infinity"` and `Infinity` to `"Infinity"` so it can be serialized to JSON.
769
+ *
770
+ * @param age - the new value for the 'Max-Age' attribute (in seconds).
771
+ */
772
+ setMaxAge(age) {
773
+ if (age === Infinity) this.maxAge = "Infinity";
774
+ else if (age === -Infinity) this.maxAge = "-Infinity";
775
+ else this.maxAge = age;
776
+ }
777
+ /**
778
+ * Encodes to a `Cookie` header value (specifically, the {@link Cookie.key} and {@link Cookie.value} properties joined with "=").
779
+ * @public
780
+ */
781
+ cookieString() {
782
+ const val = this.value || "";
783
+ if (this.key) return `${this.key}=${val}`;
784
+ return val;
785
+ }
786
+ /**
787
+ * Encodes to a `Set-Cookie header` value.
788
+ * @public
789
+ */
790
+ toString() {
791
+ let str = this.cookieString();
792
+ if (this.expires != "Infinity") {
793
+ if (this.expires instanceof Date) str += `; Expires=${formatDate(this.expires)}`;
794
+ }
795
+ if (this.maxAge != null && this.maxAge != Infinity) str += `; Max-Age=${String(this.maxAge)}`;
796
+ if (this.domain && !this.hostOnly) str += `; Domain=${this.domain}`;
797
+ if (this.path) str += `; Path=${this.path}`;
798
+ if (this.secure) str += "; Secure";
799
+ if (this.httpOnly) str += "; HttpOnly";
800
+ if (this.sameSite && this.sameSite !== "none") {
801
+ if (this.sameSite.toLowerCase() === _Cookie.sameSiteCanonical.lax.toLowerCase()) str += `; SameSite=${_Cookie.sameSiteCanonical.lax}`;
802
+ else if (this.sameSite.toLowerCase() === _Cookie.sameSiteCanonical.strict.toLowerCase()) str += `; SameSite=${_Cookie.sameSiteCanonical.strict}`;
803
+ else str += `; SameSite=${this.sameSite}`;
804
+ }
805
+ if (this.extensions) this.extensions.forEach((ext) => {
806
+ str += `; ${ext}`;
807
+ });
808
+ return str;
809
+ }
810
+ /**
811
+ * Computes the TTL relative to now (milliseconds).
812
+ *
813
+ * @remarks
814
+ * - `Infinity` is returned for cookies without an explicit expiry
815
+ *
816
+ * - `0` is returned if the cookie is expired.
817
+ *
818
+ * - Otherwise a time-to-live in milliseconds is returned.
819
+ *
820
+ * @param now - passing an explicit value is mostly used for testing purposes since this defaults to the `Date.now()`
821
+ * @public
822
+ */
823
+ TTL(now = Date.now()) {
824
+ if (this.maxAge != null && typeof this.maxAge === "number") return this.maxAge <= 0 ? 0 : this.maxAge * 1e3;
825
+ const expires = this.expires;
826
+ if (expires === "Infinity") return Infinity;
827
+ return (expires?.getTime() ?? now) - (now || Date.now());
828
+ }
829
+ /**
830
+ * Computes the absolute unix-epoch milliseconds that this cookie expires.
831
+ *
832
+ * The "Max-Age" attribute takes precedence over "Expires" (as per the RFC). The {@link Cookie.lastAccessed} attribute
833
+ * (or the `now` parameter if given) is used to offset the {@link Cookie.maxAge} attribute.
834
+ *
835
+ * If Expires ({@link Cookie.expires}) is set, that's returned.
836
+ *
837
+ * @param now - can be used to provide a time offset (instead of {@link Cookie.lastAccessed}) to use when calculating the "Max-Age" value
838
+ */
839
+ expiryTime(now) {
840
+ if (this.maxAge != null) {
841
+ const relativeTo = now || this.lastAccessed || /* @__PURE__ */ new Date();
842
+ const maxAge = typeof this.maxAge === "number" ? this.maxAge : -Infinity;
843
+ const age = maxAge <= 0 ? -Infinity : maxAge * 1e3;
844
+ if (relativeTo === "Infinity") return Infinity;
845
+ return relativeTo.getTime() + age;
846
+ }
847
+ if (this.expires == "Infinity") return Infinity;
848
+ return this.expires ? this.expires.getTime() : void 0;
849
+ }
850
+ /**
851
+ * Similar to {@link Cookie.expiryTime}, computes the absolute unix-epoch milliseconds that this cookie expires and returns it as a Date.
852
+ *
853
+ * The "Max-Age" attribute takes precedence over "Expires" (as per the RFC). The {@link Cookie.lastAccessed} attribute
854
+ * (or the `now` parameter if given) is used to offset the {@link Cookie.maxAge} attribute.
855
+ *
856
+ * If Expires ({@link Cookie.expires}) is set, that's returned.
857
+ *
858
+ * @param now - can be used to provide a time offset (instead of {@link Cookie.lastAccessed}) to use when calculating the "Max-Age" value
859
+ */
860
+ expiryDate(now) {
861
+ const millisec = this.expiryTime(now);
862
+ if (millisec == Infinity) return /* @__PURE__ */ new Date(2147483647e3);
863
+ else if (millisec == -Infinity) return /* @__PURE__ */ new Date(0);
864
+ else return millisec == void 0 ? void 0 : new Date(millisec);
865
+ }
866
+ /**
867
+ * Indicates if the cookie has been persisted to a store or not.
868
+ * @public
869
+ */
870
+ isPersistent() {
871
+ return this.maxAge != null || this.expires != "Infinity";
872
+ }
873
+ /**
874
+ * Calls {@link canonicalDomain} with the {@link Cookie.domain} property.
875
+ * @public
876
+ */
877
+ canonicalizedDomain() {
878
+ return canonicalDomain(this.domain);
879
+ }
880
+ /**
881
+ * Alias for {@link Cookie.canonicalizedDomain}
882
+ * @public
883
+ */
884
+ cdomain() {
885
+ return canonicalDomain(this.domain);
886
+ }
887
+ /**
888
+ * Parses a string into a Cookie object.
889
+ *
890
+ * @remarks
891
+ * Note: when parsing a `Cookie` header it must be split by ';' before each Cookie string can be parsed.
892
+ *
893
+ * @example
894
+ * ```
895
+ * // parse a `Set-Cookie` header
896
+ * const setCookieHeader = 'a=bcd; Expires=Tue, 18 Oct 2011 07:05:03 GMT'
897
+ * const cookie = Cookie.parse(setCookieHeader)
898
+ * cookie.key === 'a'
899
+ * cookie.value === 'bcd'
900
+ * cookie.expires === new Date(Date.parse('Tue, 18 Oct 2011 07:05:03 GMT'))
901
+ * ```
902
+ *
903
+ * @example
904
+ * ```
905
+ * // parse a `Cookie` header
906
+ * const cookieHeader = 'name=value; name2=value2; name3=value3'
907
+ * const cookies = cookieHeader.split(';').map(Cookie.parse)
908
+ * cookies[0].name === 'name'
909
+ * cookies[0].value === 'value'
910
+ * cookies[1].name === 'name2'
911
+ * cookies[1].value === 'value2'
912
+ * cookies[2].name === 'name3'
913
+ * cookies[2].value === 'value3'
914
+ * ```
915
+ *
916
+ * @param str - The `Set-Cookie` header or a Cookie string to parse.
917
+ * @param options - Configures `strict` or `loose` mode for cookie parsing
918
+ */
919
+ static parse(str, options) {
920
+ return parse(str, options);
921
+ }
922
+ /**
923
+ * Does the reverse of {@link Cookie.toJSON}.
924
+ *
925
+ * @remarks
926
+ * Any Date properties (such as .expires, .creation, and .lastAccessed) are parsed via Date.parse, not tough-cookie's parseDate, since ISO timestamps are being handled at this layer.
927
+ *
928
+ * @example
929
+ * ```
930
+ * const json = JSON.stringify({
931
+ * key: 'alpha',
932
+ * value: 'beta',
933
+ * domain: 'example.com',
934
+ * path: '/foo',
935
+ * expires: '2038-01-19T03:14:07.000Z',
936
+ * })
937
+ * const cookie = Cookie.fromJSON(json)
938
+ * cookie.key === 'alpha'
939
+ * cookie.value === 'beta'
940
+ * cookie.domain === 'example.com'
941
+ * cookie.path === '/foo'
942
+ * cookie.expires === new Date(Date.parse('2038-01-19T03:14:07.000Z'))
943
+ * ```
944
+ *
945
+ * @param str - An unparsed JSON string or a value that has already been parsed as JSON
946
+ */
947
+ static fromJSON(str) {
948
+ return fromJSON(str);
949
+ }
950
+ };
951
+ _Cookie.cookiesCreated = 0;
952
+ /**
953
+ * @internal
954
+ */
955
+ _Cookie.sameSiteLevel = {
956
+ strict: 3,
957
+ lax: 2,
958
+ none: 1
959
+ };
960
+ /**
961
+ * @internal
962
+ */
963
+ _Cookie.sameSiteCanonical = {
964
+ strict: "Strict",
965
+ lax: "Lax"
966
+ };
967
+ /**
968
+ * Cookie properties that will be serialized when using {@link Cookie.fromJSON} and {@link Cookie.toJSON}.
969
+ * @public
970
+ */
971
+ _Cookie.serializableProperties = [
972
+ "key",
973
+ "value",
974
+ "expires",
975
+ "maxAge",
976
+ "domain",
977
+ "path",
978
+ "secure",
979
+ "httpOnly",
980
+ "extensions",
981
+ "hostOnly",
982
+ "pathIsDefault",
983
+ "creation",
984
+ "lastAccessed",
985
+ "sameSite"
986
+ ];
987
+ var Cookie = _Cookie;
988
+ var MAX_TIME = 2147483647e3;
989
+ function cookieCompare(a, b) {
990
+ let cmp;
991
+ const aPathLen = a.path ? a.path.length : 0;
992
+ cmp = (b.path ? b.path.length : 0) - aPathLen;
993
+ if (cmp !== 0) return cmp;
994
+ cmp = (a.creation && a.creation instanceof Date ? a.creation.getTime() : MAX_TIME) - (b.creation && b.creation instanceof Date ? b.creation.getTime() : MAX_TIME);
995
+ if (cmp !== 0) return cmp;
996
+ cmp = (a.creationIndex || 0) - (b.creationIndex || 0);
997
+ return cmp;
998
+ }
999
+ function defaultPath(path) {
1000
+ if (!path || path.slice(0, 1) !== "/") return "/";
1001
+ if (path === "/") return path;
1002
+ const rightSlash = path.lastIndexOf("/");
1003
+ if (rightSlash === 0) return "/";
1004
+ return path.slice(0, rightSlash);
1005
+ }
1006
+ var IP_REGEX_LOWERCASE = /(?:^(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}$)|(?:^(?:(?:[a-f\d]{1,4}:){7}(?:[a-f\d]{1,4}|:)|(?:[a-f\d]{1,4}:){6}(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|:[a-f\d]{1,4}|:)|(?:[a-f\d]{1,4}:){5}(?::(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,2}|:)|(?:[a-f\d]{1,4}:){4}(?:(?::[a-f\d]{1,4}){0,1}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,3}|:)|(?:[a-f\d]{1,4}:){3}(?:(?::[a-f\d]{1,4}){0,2}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,4}|:)|(?:[a-f\d]{1,4}:){2}(?:(?::[a-f\d]{1,4}){0,3}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,5}|:)|(?:[a-f\d]{1,4}:){1}(?:(?::[a-f\d]{1,4}){0,4}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,6}|:)|(?::(?:(?::[a-f\d]{1,4}){0,5}:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)){3}|(?::[a-f\d]{1,4}){1,7}|:)))$)/;
1007
+ function domainMatch(domain, cookieDomain, canonicalize) {
1008
+ if (domain == null || cookieDomain == null) return;
1009
+ let _str;
1010
+ let _domStr;
1011
+ if (canonicalize !== false) {
1012
+ _str = canonicalDomain(domain);
1013
+ _domStr = canonicalDomain(cookieDomain);
1014
+ } else {
1015
+ _str = domain;
1016
+ _domStr = cookieDomain;
1017
+ }
1018
+ if (_str == null || _domStr == null) return;
1019
+ if (_str == _domStr) return true;
1020
+ const idx = _str.lastIndexOf(_domStr);
1021
+ if (idx <= 0) return false;
1022
+ if (_str.length !== _domStr.length + idx) return false;
1023
+ if (_str.substring(idx - 1, idx) !== ".") return false;
1024
+ return !IP_REGEX_LOWERCASE.test(_str);
1025
+ }
1026
+ function isLoopbackV4(address) {
1027
+ const octets = address.split(".");
1028
+ return octets.length === 4 && octets[0] !== void 0 && parseInt(octets[0], 10) === 127;
1029
+ }
1030
+ function isLoopbackV6(address) {
1031
+ return address === "::1";
1032
+ }
1033
+ function isNormalizedLocalhostTLD(lowerHost) {
1034
+ return lowerHost.endsWith(".localhost");
1035
+ }
1036
+ function isLocalHostname(host) {
1037
+ const lowerHost = host.toLowerCase();
1038
+ return lowerHost === "localhost" || isNormalizedLocalhostTLD(lowerHost);
1039
+ }
1040
+ function hostNoBrackets(host) {
1041
+ if (host.length >= 2 && host.startsWith("[") && host.endsWith("]")) return host.substring(1, host.length - 1);
1042
+ return host;
1043
+ }
1044
+ function isPotentiallyTrustworthy(inputUrl, allowSecureOnLocal = true) {
1045
+ let url;
1046
+ if (typeof inputUrl === "string") try {
1047
+ url = new URL(inputUrl);
1048
+ } catch {
1049
+ return false;
1050
+ }
1051
+ else url = inputUrl;
1052
+ const scheme = url.protocol.replace(":", "").toLowerCase();
1053
+ const hostname = hostNoBrackets(url.hostname).replace(/\.+$/, "");
1054
+ if (scheme === "https" || scheme === "wss") return true;
1055
+ if (!allowSecureOnLocal) return false;
1056
+ if (IP_V4_REGEX_OBJECT.test(hostname)) return isLoopbackV4(hostname);
1057
+ if (IP_V6_REGEX_OBJECT.test(hostname)) return isLoopbackV6(hostname);
1058
+ return isLocalHostname(hostname);
1059
+ }
1060
+ var defaultSetCookieOptions = {
1061
+ loose: false,
1062
+ sameSiteContext: void 0,
1063
+ ignoreError: false,
1064
+ http: true
1065
+ };
1066
+ var defaultGetCookieOptions = {
1067
+ http: true,
1068
+ expire: true,
1069
+ allPaths: false,
1070
+ sameSiteContext: void 0,
1071
+ sort: void 0
1072
+ };
1073
+ var SAME_SITE_CONTEXT_VAL_ERR = "Invalid sameSiteContext option for getCookies(); expected one of \"strict\", \"lax\", or \"none\"";
1074
+ function getCookieContext(url) {
1075
+ if (url && typeof url === "object" && "hostname" in url && typeof url.hostname === "string" && "pathname" in url && typeof url.pathname === "string" && "protocol" in url && typeof url.protocol === "string") return {
1076
+ hostname: url.hostname,
1077
+ pathname: url.pathname,
1078
+ protocol: url.protocol
1079
+ };
1080
+ else if (typeof url === "string") try {
1081
+ return new URL(decodeURI(url));
1082
+ } catch {
1083
+ return new URL(url);
1084
+ }
1085
+ else throw new ParameterError("`url` argument is not a string or URL.");
1086
+ }
1087
+ function checkSameSiteContext(value) {
1088
+ const context = String(value).toLowerCase();
1089
+ if (context === "none" || context === "lax" || context === "strict") return context;
1090
+ else return;
1091
+ }
1092
+ function isSecurePrefixConditionMet(cookie) {
1093
+ return !(typeof cookie.key === "string" && cookie.key.startsWith("__Secure-")) || cookie.secure;
1094
+ }
1095
+ function isHostPrefixConditionMet(cookie) {
1096
+ return !(typeof cookie.key === "string" && cookie.key.startsWith("__Host-")) || Boolean(cookie.secure && cookie.hostOnly && cookie.path != null && cookie.path === "/");
1097
+ }
1098
+ function getNormalizedPrefixSecurity(prefixSecurity) {
1099
+ const normalizedPrefixSecurity = prefixSecurity.toLowerCase();
1100
+ switch (normalizedPrefixSecurity) {
1101
+ case PrefixSecurityEnum.STRICT:
1102
+ case PrefixSecurityEnum.SILENT:
1103
+ case PrefixSecurityEnum.DISABLED: return normalizedPrefixSecurity;
1104
+ default: return PrefixSecurityEnum.SILENT;
1105
+ }
1106
+ }
1107
+ var CookieJar = class _CookieJar {
1108
+ /**
1109
+ * Creates a new `CookieJar` instance.
1110
+ *
1111
+ * @remarks
1112
+ * - If a custom store is not passed to the constructor, an in-memory store ({@link MemoryCookieStore} will be created and used.
1113
+ * - If a boolean value is passed as the `options` parameter, this is equivalent to passing `{ rejectPublicSuffixes: <value> }`
1114
+ *
1115
+ * @param store - a custom {@link Store} implementation (defaults to {@link MemoryCookieStore})
1116
+ * @param options - configures how cookies are processed by the cookie jar
1117
+ */
1118
+ constructor(store, options) {
1119
+ if (typeof options === "boolean") options = { rejectPublicSuffixes: options };
1120
+ this.rejectPublicSuffixes = options?.rejectPublicSuffixes ?? true;
1121
+ this.enableLooseMode = options?.looseMode ?? false;
1122
+ this.allowSpecialUseDomain = options?.allowSpecialUseDomain ?? true;
1123
+ this.allowSecureOnLocal = options?.allowSecureOnLocal ?? true;
1124
+ this.prefixSecurity = getNormalizedPrefixSecurity(options?.prefixSecurity ?? "silent");
1125
+ this.store = store ?? new MemoryCookieStore();
1126
+ }
1127
+ callSync(fn) {
1128
+ if (!this.store.synchronous) throw new Error("CookieJar store is not synchronous; use async API instead.");
1129
+ let syncErr = null;
1130
+ let syncResult = void 0;
1131
+ try {
1132
+ fn.call(this, (error, result) => {
1133
+ syncErr = error;
1134
+ syncResult = result;
1135
+ });
1136
+ } catch (err) {
1137
+ syncErr = err;
1138
+ }
1139
+ if (syncErr) throw syncErr;
1140
+ return syncResult;
1141
+ }
1142
+ /**
1143
+ * @internal No doc because this is the overload implementation
1144
+ */
1145
+ setCookie(cookie, url, options, callback) {
1146
+ if (typeof options === "function") {
1147
+ callback = options;
1148
+ options = void 0;
1149
+ }
1150
+ const promiseCallback = createPromiseCallback(callback);
1151
+ const cb = promiseCallback.callback;
1152
+ let context;
1153
+ try {
1154
+ if (typeof url === "string") validate(isNonEmptyString(url), callback, safeToString(options));
1155
+ context = getCookieContext(url);
1156
+ if (typeof url === "function") return promiseCallback.reject(/* @__PURE__ */ new Error("No URL was specified"));
1157
+ if (typeof options === "function") options = defaultSetCookieOptions;
1158
+ validate(typeof cb === "function", cb);
1159
+ if (!isNonEmptyString(cookie) && !isObject(cookie) && cookie instanceof String && cookie.length == 0) return promiseCallback.resolve(void 0);
1160
+ } catch (err) {
1161
+ return promiseCallback.reject(err);
1162
+ }
1163
+ const host = canonicalDomain(context.hostname) ?? null;
1164
+ const loose = options?.loose || this.enableLooseMode;
1165
+ let sameSiteContext = null;
1166
+ if (options?.sameSiteContext) {
1167
+ sameSiteContext = checkSameSiteContext(options.sameSiteContext);
1168
+ if (!sameSiteContext) return promiseCallback.reject(new Error(SAME_SITE_CONTEXT_VAL_ERR));
1169
+ }
1170
+ if (typeof cookie === "string" || cookie instanceof String) {
1171
+ const parsedCookie = Cookie.parse(cookie.toString(), { loose });
1172
+ if (!parsedCookie) {
1173
+ const err = /* @__PURE__ */ new Error("Cookie failed to parse");
1174
+ return options?.ignoreError ? promiseCallback.resolve(void 0) : promiseCallback.reject(err);
1175
+ }
1176
+ cookie = parsedCookie;
1177
+ } else if (!(cookie instanceof Cookie)) {
1178
+ const err = /* @__PURE__ */ new Error("First argument to setCookie must be a Cookie object or string");
1179
+ return options?.ignoreError ? promiseCallback.resolve(void 0) : promiseCallback.reject(err);
1180
+ }
1181
+ const now = options?.now || /* @__PURE__ */ new Date();
1182
+ if (this.rejectPublicSuffixes && cookie.domain) try {
1183
+ const cdomain = cookie.cdomain();
1184
+ if ((typeof cdomain === "string" ? getPublicSuffix(cdomain, {
1185
+ allowSpecialUseDomain: this.allowSpecialUseDomain,
1186
+ ignoreError: options?.ignoreError
1187
+ }) : null) == null && !IP_V6_REGEX_OBJECT.test(cookie.domain)) {
1188
+ const err = /* @__PURE__ */ new Error("Cookie has domain set to a public suffix");
1189
+ return options?.ignoreError ? promiseCallback.resolve(void 0) : promiseCallback.reject(err);
1190
+ }
1191
+ } catch (err) {
1192
+ return options?.ignoreError ? promiseCallback.resolve(void 0) : promiseCallback.reject(err);
1193
+ }
1194
+ if (cookie.domain) {
1195
+ if (!domainMatch(host ?? void 0, cookie.cdomain() ?? void 0, false)) {
1196
+ const err = /* @__PURE__ */ new Error(`Cookie not in this host's domain. Cookie:${cookie.cdomain() ?? "null"} Request:${host ?? "null"}`);
1197
+ return options?.ignoreError ? promiseCallback.resolve(void 0) : promiseCallback.reject(err);
1198
+ }
1199
+ if (cookie.hostOnly == null) cookie.hostOnly = false;
1200
+ } else {
1201
+ cookie.hostOnly = true;
1202
+ cookie.domain = host;
1203
+ }
1204
+ if (!cookie.path || cookie.path[0] !== "/") {
1205
+ cookie.path = defaultPath(context.pathname);
1206
+ cookie.pathIsDefault = true;
1207
+ }
1208
+ if (options?.http === false && cookie.httpOnly) {
1209
+ const err = /* @__PURE__ */ new Error("Cookie is HttpOnly and this isn't an HTTP API");
1210
+ return options.ignoreError ? promiseCallback.resolve(void 0) : promiseCallback.reject(err);
1211
+ }
1212
+ if (cookie.sameSite !== "none" && cookie.sameSite !== void 0 && sameSiteContext) {
1213
+ if (sameSiteContext === "none") {
1214
+ const err = /* @__PURE__ */ new Error("Cookie is SameSite but this is a cross-origin request");
1215
+ return options?.ignoreError ? promiseCallback.resolve(void 0) : promiseCallback.reject(err);
1216
+ }
1217
+ }
1218
+ const ignoreErrorForPrefixSecurity = this.prefixSecurity === PrefixSecurityEnum.SILENT;
1219
+ if (!(this.prefixSecurity === PrefixSecurityEnum.DISABLED)) {
1220
+ let errorFound = false;
1221
+ let errorMsg;
1222
+ if (!isSecurePrefixConditionMet(cookie)) {
1223
+ errorFound = true;
1224
+ errorMsg = "Cookie has __Secure prefix but Secure attribute is not set";
1225
+ } else if (!isHostPrefixConditionMet(cookie)) {
1226
+ errorFound = true;
1227
+ errorMsg = "Cookie has __Host prefix but either Secure or HostOnly attribute is not set or Path is not '/'";
1228
+ }
1229
+ if (errorFound) return options?.ignoreError || ignoreErrorForPrefixSecurity ? promiseCallback.resolve(void 0) : promiseCallback.reject(new Error(errorMsg));
1230
+ }
1231
+ const store = this.store;
1232
+ if (!store.updateCookie) store.updateCookie = async function(_oldCookie, newCookie, cb2) {
1233
+ return this.putCookie(newCookie).then(() => cb2?.(null), (error) => cb2?.(error));
1234
+ };
1235
+ store.findCookie(cookie.domain, cookie.path, cookie.key, function withCookie2(err, oldCookie) {
1236
+ if (err) {
1237
+ cb(err);
1238
+ return;
1239
+ }
1240
+ const next = function(err2) {
1241
+ if (err2) cb(err2);
1242
+ else if (typeof cookie === "string") cb(null, void 0);
1243
+ else cb(null, cookie);
1244
+ };
1245
+ if (oldCookie) {
1246
+ if (options && "http" in options && options.http === false && oldCookie.httpOnly) {
1247
+ err = /* @__PURE__ */ new Error("old Cookie is HttpOnly and this isn't an HTTP API");
1248
+ if (options.ignoreError) cb(null, void 0);
1249
+ else cb(err);
1250
+ return;
1251
+ }
1252
+ if (cookie instanceof Cookie) {
1253
+ cookie.creation = oldCookie.creation;
1254
+ cookie.creationIndex = oldCookie.creationIndex;
1255
+ cookie.lastAccessed = now;
1256
+ store.updateCookie(oldCookie, cookie, next);
1257
+ }
1258
+ } else if (cookie instanceof Cookie) {
1259
+ cookie.creation = cookie.lastAccessed = now;
1260
+ store.putCookie(cookie, next);
1261
+ }
1262
+ });
1263
+ return promiseCallback.promise;
1264
+ }
1265
+ /**
1266
+ * Synchronously attempt to set the {@link Cookie} in the {@link CookieJar}.
1267
+ *
1268
+ * <strong>Note:</strong> Only works if the configured {@link Store} is also synchronous.
1269
+ *
1270
+ * @remarks
1271
+ * - If successfully persisted, the {@link Cookie} will have updated
1272
+ * {@link Cookie.creation}, {@link Cookie.lastAccessed} and {@link Cookie.hostOnly}
1273
+ * properties.
1274
+ *
1275
+ * - As per the RFC, the {@link Cookie.hostOnly} flag is set if there was no `Domain={value}`
1276
+ * attribute on the cookie string. The {@link Cookie.domain} property is set to the
1277
+ * fully-qualified hostname of `currentUrl` in this case. Matching this cookie requires an
1278
+ * exact hostname match (not a {@link domainMatch} as per usual)
1279
+ *
1280
+ * @param cookie - The cookie object or cookie string to store. A string value will be parsed into a cookie using {@link Cookie.parse}.
1281
+ * @param url - The domain to store the cookie with.
1282
+ * @param options - Configuration settings to use when storing the cookie.
1283
+ * @public
1284
+ */
1285
+ setCookieSync(cookie, url, options) {
1286
+ const setCookieFn = options ? this.setCookie.bind(this, cookie, url, options) : this.setCookie.bind(this, cookie, url);
1287
+ return this.callSync(setCookieFn);
1288
+ }
1289
+ /**
1290
+ * @internal No doc because this is the overload implementation
1291
+ */
1292
+ getCookies(url, options, callback) {
1293
+ if (typeof options === "function") {
1294
+ callback = options;
1295
+ options = defaultGetCookieOptions;
1296
+ } else if (options === void 0) options = defaultGetCookieOptions;
1297
+ const promiseCallback = createPromiseCallback(callback);
1298
+ const cb = promiseCallback.callback;
1299
+ let context;
1300
+ try {
1301
+ if (typeof url === "string") validate(isNonEmptyString(url), cb, url);
1302
+ context = getCookieContext(url);
1303
+ validate(isObject(options), cb, safeToString(options));
1304
+ validate(typeof cb === "function", cb);
1305
+ } catch (parameterError) {
1306
+ return promiseCallback.reject(parameterError);
1307
+ }
1308
+ const host = canonicalDomain(context.hostname);
1309
+ const path = context.pathname || "/";
1310
+ const potentiallyTrustworthy = isPotentiallyTrustworthy(url, this.allowSecureOnLocal);
1311
+ let sameSiteLevel = 0;
1312
+ if (options.sameSiteContext) {
1313
+ const sameSiteContext = checkSameSiteContext(options.sameSiteContext);
1314
+ if (sameSiteContext == null) return promiseCallback.reject(new Error(SAME_SITE_CONTEXT_VAL_ERR));
1315
+ sameSiteLevel = Cookie.sameSiteLevel[sameSiteContext];
1316
+ if (!sameSiteLevel) return promiseCallback.reject(new Error(SAME_SITE_CONTEXT_VAL_ERR));
1317
+ }
1318
+ const http = options.http ?? true;
1319
+ const now = Date.now();
1320
+ const expireCheck = options.expire ?? true;
1321
+ const allPaths = options.allPaths ?? false;
1322
+ const store = this.store;
1323
+ function matchingCookie(c) {
1324
+ if (c.hostOnly) {
1325
+ if (c.domain != host) return false;
1326
+ } else if (!domainMatch(host ?? void 0, c.domain ?? void 0, false)) return false;
1327
+ if (!allPaths && typeof c.path === "string" && !pathMatch(path, c.path)) return false;
1328
+ if (c.secure && !potentiallyTrustworthy) return false;
1329
+ if (c.httpOnly && !http) return false;
1330
+ if (sameSiteLevel) {
1331
+ let cookieLevel;
1332
+ if (c.sameSite === "lax") cookieLevel = Cookie.sameSiteLevel.lax;
1333
+ else if (c.sameSite === "strict") cookieLevel = Cookie.sameSiteLevel.strict;
1334
+ else cookieLevel = Cookie.sameSiteLevel.none;
1335
+ if (cookieLevel > sameSiteLevel) return false;
1336
+ }
1337
+ const expiryTime = c.expiryTime();
1338
+ if (expireCheck && expiryTime != void 0 && expiryTime <= now) {
1339
+ store.removeCookie(c.domain, c.path, c.key, () => {});
1340
+ return false;
1341
+ }
1342
+ return true;
1343
+ }
1344
+ store.findCookies(host, allPaths ? null : path, this.allowSpecialUseDomain, (err, cookies) => {
1345
+ if (err) {
1346
+ cb(err);
1347
+ return;
1348
+ }
1349
+ if (cookies == null) {
1350
+ cb(null, []);
1351
+ return;
1352
+ }
1353
+ cookies = cookies.filter(matchingCookie);
1354
+ if ("sort" in options && options.sort !== false) cookies = cookies.sort(cookieCompare);
1355
+ const now2 = /* @__PURE__ */ new Date();
1356
+ for (const cookie of cookies) cookie.lastAccessed = now2;
1357
+ cb(null, cookies);
1358
+ });
1359
+ return promiseCallback.promise;
1360
+ }
1361
+ /**
1362
+ * Synchronously retrieve the list of cookies that can be sent in a Cookie header for the
1363
+ * current URL.
1364
+ *
1365
+ * <strong>Note</strong>: Only works if the configured Store is also synchronous.
1366
+ *
1367
+ * @remarks
1368
+ * - The array of cookies returned will be sorted according to {@link cookieCompare}.
1369
+ *
1370
+ * - The {@link Cookie.lastAccessed} property will be updated on all returned cookies.
1371
+ *
1372
+ * @param url - The domain to store the cookie with.
1373
+ * @param options - Configuration settings to use when retrieving the cookies.
1374
+ */
1375
+ getCookiesSync(url, options) {
1376
+ return this.callSync(this.getCookies.bind(this, url, options)) ?? [];
1377
+ }
1378
+ /**
1379
+ * @internal No doc because this is the overload implementation
1380
+ */
1381
+ getCookieString(url, options, callback) {
1382
+ if (typeof options === "function") {
1383
+ callback = options;
1384
+ options = void 0;
1385
+ }
1386
+ const promiseCallback = createPromiseCallback(callback);
1387
+ const next = function(err, cookies) {
1388
+ if (err) promiseCallback.callback(err);
1389
+ else promiseCallback.callback(null, cookies?.sort(cookieCompare).map((c) => c.cookieString()).join("; "));
1390
+ };
1391
+ this.getCookies(url, options, next);
1392
+ return promiseCallback.promise;
1393
+ }
1394
+ /**
1395
+ * Synchronous version of `.getCookieString()`. Accepts the same options as `.getCookies()` but returns a string suitable for a
1396
+ * `Cookie` header rather than an Array.
1397
+ *
1398
+ * <strong>Note</strong>: Only works if the configured Store is also synchronous.
1399
+ *
1400
+ * @param url - The domain to store the cookie with.
1401
+ * @param options - Configuration settings to use when retrieving the cookies.
1402
+ */
1403
+ getCookieStringSync(url, options) {
1404
+ return this.callSync(options ? this.getCookieString.bind(this, url, options) : this.getCookieString.bind(this, url)) ?? "";
1405
+ }
1406
+ /**
1407
+ * @internal No doc because this is the overload implementation
1408
+ */
1409
+ getSetCookieStrings(url, options, callback) {
1410
+ if (typeof options === "function") {
1411
+ callback = options;
1412
+ options = void 0;
1413
+ }
1414
+ const promiseCallback = createPromiseCallback(callback);
1415
+ const next = function(err, cookies) {
1416
+ if (err) promiseCallback.callback(err);
1417
+ else promiseCallback.callback(null, cookies?.map((c) => {
1418
+ return c.toString();
1419
+ }));
1420
+ };
1421
+ this.getCookies(url, options, next);
1422
+ return promiseCallback.promise;
1423
+ }
1424
+ /**
1425
+ * Synchronous version of `.getSetCookieStrings()`. Returns an array of strings suitable for `Set-Cookie` headers.
1426
+ * Accepts the same options as `.getCookies()`.
1427
+ *
1428
+ * <strong>Note</strong>: Only works if the configured Store is also synchronous.
1429
+ *
1430
+ * @param url - The domain to store the cookie with.
1431
+ * @param options - Configuration settings to use when retrieving the cookies.
1432
+ */
1433
+ getSetCookieStringsSync(url, options = {}) {
1434
+ return this.callSync(this.getSetCookieStrings.bind(this, url, options)) ?? [];
1435
+ }
1436
+ /**
1437
+ * @internal No doc because this is the overload implementation
1438
+ */
1439
+ serialize(callback) {
1440
+ const promiseCallback = createPromiseCallback(callback);
1441
+ let type = this.store.constructor.name;
1442
+ if (isObject(type)) type = null;
1443
+ const serialized = {
1444
+ version: `tough-cookie@${version}`,
1445
+ storeType: type,
1446
+ rejectPublicSuffixes: this.rejectPublicSuffixes,
1447
+ enableLooseMode: this.enableLooseMode,
1448
+ allowSpecialUseDomain: this.allowSpecialUseDomain,
1449
+ prefixSecurity: getNormalizedPrefixSecurity(this.prefixSecurity),
1450
+ cookies: []
1451
+ };
1452
+ if (typeof this.store.getAllCookies !== "function") return promiseCallback.reject(/* @__PURE__ */ new Error("store does not support getAllCookies and cannot be serialized"));
1453
+ this.store.getAllCookies((err, cookies) => {
1454
+ if (err) {
1455
+ promiseCallback.callback(err);
1456
+ return;
1457
+ }
1458
+ if (cookies == null) {
1459
+ promiseCallback.callback(null, serialized);
1460
+ return;
1461
+ }
1462
+ serialized.cookies = cookies.map((cookie) => {
1463
+ const serializedCookie = cookie.toJSON();
1464
+ delete serializedCookie.creationIndex;
1465
+ return serializedCookie;
1466
+ });
1467
+ promiseCallback.callback(null, serialized);
1468
+ });
1469
+ return promiseCallback.promise;
1470
+ }
1471
+ /**
1472
+ * Serialize the CookieJar if the underlying store supports `.getAllCookies`.
1473
+ *
1474
+ * <strong>Note</strong>: Only works if the configured Store is also synchronous.
1475
+ */
1476
+ serializeSync() {
1477
+ return this.callSync((callback) => {
1478
+ this.serialize(callback);
1479
+ });
1480
+ }
1481
+ /**
1482
+ * Alias of {@link CookieJar.serializeSync}. Allows the cookie to be serialized
1483
+ * with `JSON.stringify(cookieJar)`.
1484
+ */
1485
+ toJSON() {
1486
+ return this.serializeSync();
1487
+ }
1488
+ /**
1489
+ * Use the class method CookieJar.deserialize instead of calling this directly
1490
+ * @internal
1491
+ */
1492
+ _importCookies(serialized, callback) {
1493
+ let cookies = void 0;
1494
+ if (serialized && typeof serialized === "object" && inOperator("cookies", serialized) && Array.isArray(serialized.cookies)) cookies = serialized.cookies;
1495
+ if (!cookies) {
1496
+ callback(/* @__PURE__ */ new Error("serialized jar has no cookies array"), void 0);
1497
+ return;
1498
+ }
1499
+ cookies = cookies.slice();
1500
+ const putNext = (err) => {
1501
+ if (err) {
1502
+ callback(err, void 0);
1503
+ return;
1504
+ }
1505
+ if (Array.isArray(cookies)) {
1506
+ if (!cookies.length) {
1507
+ callback(err, this);
1508
+ return;
1509
+ }
1510
+ let cookie;
1511
+ try {
1512
+ cookie = Cookie.fromJSON(cookies.shift());
1513
+ } catch (e) {
1514
+ callback(e instanceof Error ? e : /* @__PURE__ */ new Error(), void 0);
1515
+ return;
1516
+ }
1517
+ if (cookie === void 0) {
1518
+ putNext(null);
1519
+ return;
1520
+ }
1521
+ this.store.putCookie(cookie, putNext);
1522
+ }
1523
+ };
1524
+ putNext(null);
1525
+ }
1526
+ /**
1527
+ * @internal
1528
+ */
1529
+ _importCookiesSync(serialized) {
1530
+ this.callSync(this._importCookies.bind(this, serialized));
1531
+ }
1532
+ /**
1533
+ * @internal No doc because this is the overload implementation
1534
+ */
1535
+ clone(newStore, callback) {
1536
+ if (typeof newStore === "function") {
1537
+ callback = newStore;
1538
+ newStore = void 0;
1539
+ }
1540
+ const promiseCallback = createPromiseCallback(callback);
1541
+ const cb = promiseCallback.callback;
1542
+ this.serialize((err, serialized) => {
1543
+ if (err) return promiseCallback.reject(err);
1544
+ return _CookieJar.deserialize(serialized ?? "", newStore, cb);
1545
+ });
1546
+ return promiseCallback.promise;
1547
+ }
1548
+ /**
1549
+ * @internal
1550
+ */
1551
+ _cloneSync(newStore) {
1552
+ const cloneFn = newStore && typeof newStore !== "function" ? this.clone.bind(this, newStore) : this.clone.bind(this);
1553
+ return this.callSync((callback) => {
1554
+ cloneFn(callback);
1555
+ });
1556
+ }
1557
+ /**
1558
+ * Produces a deep clone of this CookieJar. Modifications to the original do
1559
+ * not affect the clone, and vice versa.
1560
+ *
1561
+ * <strong>Note</strong>: Only works if both the configured Store and destination
1562
+ * Store are synchronous.
1563
+ *
1564
+ * @remarks
1565
+ * - When no {@link Store} is provided, a new {@link MemoryCookieStore} will be used.
1566
+ *
1567
+ * - Transferring between store types is supported so long as the source
1568
+ * implements `.getAllCookies()` and the destination implements `.putCookie()`.
1569
+ *
1570
+ * @param newStore - The target {@link Store} to clone cookies into.
1571
+ */
1572
+ cloneSync(newStore) {
1573
+ if (!newStore) return this._cloneSync();
1574
+ if (!newStore.synchronous) throw new Error("CookieJar clone destination store is not synchronous; use async API instead.");
1575
+ return this._cloneSync(newStore);
1576
+ }
1577
+ /**
1578
+ * @internal No doc because this is the overload implementation
1579
+ */
1580
+ removeAllCookies(callback) {
1581
+ const promiseCallback = createPromiseCallback(callback);
1582
+ const cb = promiseCallback.callback;
1583
+ const store = this.store;
1584
+ if (typeof store.removeAllCookies === "function" && store.removeAllCookies !== Store.prototype.removeAllCookies) {
1585
+ store.removeAllCookies(cb);
1586
+ return promiseCallback.promise;
1587
+ }
1588
+ store.getAllCookies((err, cookies) => {
1589
+ if (err) {
1590
+ cb(err);
1591
+ return;
1592
+ }
1593
+ if (!cookies) cookies = [];
1594
+ if (cookies.length === 0) {
1595
+ cb(null, void 0);
1596
+ return;
1597
+ }
1598
+ let completedCount = 0;
1599
+ const removeErrors = [];
1600
+ const removeCookieCb = function removeCookieCb2(removeErr) {
1601
+ if (removeErr) removeErrors.push(removeErr);
1602
+ completedCount++;
1603
+ if (completedCount === cookies.length) {
1604
+ if (removeErrors[0]) cb(removeErrors[0]);
1605
+ else cb(null, void 0);
1606
+ return;
1607
+ }
1608
+ };
1609
+ cookies.forEach((cookie) => {
1610
+ store.removeCookie(cookie.domain, cookie.path, cookie.key, removeCookieCb);
1611
+ });
1612
+ });
1613
+ return promiseCallback.promise;
1614
+ }
1615
+ /**
1616
+ * Removes all cookies from the CookieJar.
1617
+ *
1618
+ * <strong>Note</strong>: Only works if the configured Store is also synchronous.
1619
+ *
1620
+ * @remarks
1621
+ * - This is a new backwards-compatible feature of tough-cookie version 2.5,
1622
+ * so not all Stores will implement it efficiently. For Stores that do not
1623
+ * implement `removeAllCookies`, the fallback is to call `removeCookie` after
1624
+ * `getAllCookies`.
1625
+ *
1626
+ * - If `getAllCookies` fails or isn't implemented in the Store, an error is returned.
1627
+ *
1628
+ * - If one or more of the `removeCookie` calls fail, only the first error is returned.
1629
+ */
1630
+ removeAllCookiesSync() {
1631
+ this.callSync((callback) => {
1632
+ this.removeAllCookies(callback);
1633
+ });
1634
+ }
1635
+ /**
1636
+ * @internal No doc because this is the overload implementation
1637
+ */
1638
+ static deserialize(strOrObj, store, callback) {
1639
+ if (typeof store === "function") {
1640
+ callback = store;
1641
+ store = void 0;
1642
+ }
1643
+ const promiseCallback = createPromiseCallback(callback);
1644
+ let serialized;
1645
+ if (typeof strOrObj === "string") try {
1646
+ serialized = JSON.parse(strOrObj);
1647
+ } catch (e) {
1648
+ return promiseCallback.reject(e instanceof Error ? e : /* @__PURE__ */ new Error());
1649
+ }
1650
+ else serialized = strOrObj;
1651
+ const readSerializedProperty = (property) => {
1652
+ return serialized && typeof serialized === "object" && inOperator(property, serialized) ? serialized[property] : void 0;
1653
+ };
1654
+ const readSerializedBoolean = (property) => {
1655
+ const value = readSerializedProperty(property);
1656
+ return typeof value === "boolean" ? value : void 0;
1657
+ };
1658
+ const readSerializedString = (property) => {
1659
+ const value = readSerializedProperty(property);
1660
+ return typeof value === "string" ? value : void 0;
1661
+ };
1662
+ const jar = new _CookieJar(store, {
1663
+ rejectPublicSuffixes: readSerializedBoolean("rejectPublicSuffixes"),
1664
+ looseMode: readSerializedBoolean("enableLooseMode"),
1665
+ allowSpecialUseDomain: readSerializedBoolean("allowSpecialUseDomain"),
1666
+ prefixSecurity: getNormalizedPrefixSecurity(readSerializedString("prefixSecurity") ?? "silent")
1667
+ });
1668
+ jar._importCookies(serialized, (err) => {
1669
+ if (err) {
1670
+ promiseCallback.callback(err);
1671
+ return;
1672
+ }
1673
+ promiseCallback.callback(null, jar);
1674
+ });
1675
+ return promiseCallback.promise;
1676
+ }
1677
+ /**
1678
+ * A new CookieJar is created and the serialized {@link Cookie} values are added to
1679
+ * the underlying store. Each {@link Cookie} is added via `store.putCookie(...)` in
1680
+ * the order in which they appear in the serialization.
1681
+ *
1682
+ * <strong>Note</strong>: Only works if the configured Store is also synchronous.
1683
+ *
1684
+ * @remarks
1685
+ * - When no {@link Store} is provided, a new {@link MemoryCookieStore} will be used.
1686
+ *
1687
+ * - As a convenience, if `strOrObj` is a string, it is passed through `JSON.parse` first.
1688
+ *
1689
+ * @param strOrObj - A JSON string or object representing the deserialized cookies.
1690
+ * @param store - The underlying store to persist the deserialized cookies into.
1691
+ */
1692
+ static deserializeSync(strOrObj, store) {
1693
+ const serialized = typeof strOrObj === "string" ? JSON.parse(strOrObj) : strOrObj;
1694
+ const readSerializedProperty = (property) => {
1695
+ return serialized && typeof serialized === "object" && inOperator(property, serialized) ? serialized[property] : void 0;
1696
+ };
1697
+ const readSerializedBoolean = (property) => {
1698
+ const value = readSerializedProperty(property);
1699
+ return typeof value === "boolean" ? value : void 0;
1700
+ };
1701
+ const readSerializedString = (property) => {
1702
+ const value = readSerializedProperty(property);
1703
+ return typeof value === "string" ? value : void 0;
1704
+ };
1705
+ const jar = new _CookieJar(store, {
1706
+ rejectPublicSuffixes: readSerializedBoolean("rejectPublicSuffixes"),
1707
+ looseMode: readSerializedBoolean("enableLooseMode"),
1708
+ allowSpecialUseDomain: readSerializedBoolean("allowSpecialUseDomain"),
1709
+ prefixSecurity: getNormalizedPrefixSecurity(readSerializedString("prefixSecurity") ?? "silent")
1710
+ });
1711
+ if (!jar.store.synchronous) throw new Error("CookieJar store is not synchronous; use async API instead.");
1712
+ jar._importCookiesSync(serialized);
1713
+ return jar;
1714
+ }
1715
+ /**
1716
+ * Alias of {@link CookieJar.deserializeSync}.
1717
+ *
1718
+ * @remarks
1719
+ * - When no {@link Store} is provided, a new {@link MemoryCookieStore} will be used.
1720
+ *
1721
+ * - As a convenience, if `strOrObj` is a string, it is passed through `JSON.parse` first.
1722
+ *
1723
+ * @param jsonString - A JSON string or object representing the deserialized cookies.
1724
+ * @param store - The underlying store to persist the deserialized cookies into.
1725
+ */
1726
+ static fromJSON(jsonString, store) {
1727
+ return _CookieJar.deserializeSync(jsonString, store);
1728
+ }
1729
+ };
1730
+ /*!
1731
+ * Copyright (c) 2015-2020, Salesforce.com, Inc.
1732
+ * All rights reserved.
1733
+ *
1734
+ * Redistribution and use in source and binary forms, with or without
1735
+ * modification, are permitted provided that the following conditions are met:
1736
+ *
1737
+ * 1. Redistributions of source code must retain the above copyright notice,
1738
+ * this list of conditions and the following disclaimer.
1739
+ *
1740
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
1741
+ * this list of conditions and the following disclaimer in the documentation
1742
+ * and/or other materials provided with the distribution.
1743
+ *
1744
+ * 3. Neither the name of Salesforce.com nor the names of its contributors may
1745
+ * be used to endorse or promote products derived from this software without
1746
+ * specific prior written permission.
1747
+ *
1748
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1749
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1750
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1751
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
1752
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
1753
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
1754
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
1755
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
1756
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
1757
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
1758
+ * POSSIBILITY OF SUCH DAMAGE.
1759
+ */
1760
+ //#endregion
1761
+ export { Cookie, CookieJar, MemoryCookieStore, ParameterError, PrefixSecurityEnum, Store, canonicalDomain, cookieCompare, defaultPath, domainMatch, formatDate, getPublicSuffix, parseDate, pathMatch, permuteDomain, version };